@flexem/fc-gui 3.0.0-alpha.9 → 3.0.0-alpha.91

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 (1225) hide show
  1. package/.editorconfig +13 -0
  2. package/.eslintrc.js +159 -0
  3. package/.vscode/settings.json +12 -0
  4. package/CHANGELOG.md +386 -0
  5. package/angular.json +157 -0
  6. package/demo/src/app/app.component.html +5 -0
  7. package/demo/src/app/app.component.ts +8 -0
  8. package/demo/src/app/app.module.ts +54 -0
  9. package/demo/src/app/bar/bar-config-store.ts +487 -0
  10. package/demo/src/app/bar/bar.component.html +3 -0
  11. package/demo/src/app/bar/bar.component.ts +146 -0
  12. package/demo/src/app/default/default.component.html +3 -0
  13. package/demo/src/app/default/default.component.ts +28 -0
  14. package/demo/src/app/history-data/history-data.component.html +5 -0
  15. package/demo/src/app/history-data/history-data.component.less +6 -0
  16. package/demo/src/app/history-data/history-data.component.ts +33 -0
  17. package/demo/src/app/history-data/history-data.config-store.ts +159 -0
  18. package/demo/src/app/switch-indicator-light/switch-config-store.ts +477 -0
  19. package/demo/src/app/switch-indicator-light/switch-indicator-light.component.html +5 -0
  20. package/demo/src/app/switch-indicator-light/switch-indicator-light.component.ts +28 -0
  21. package/demo/src/assets/e8nZC.gif +0 -0
  22. package/demo/src/assets/gallery/character01/character1.png +0 -0
  23. package/demo/src/assets/gallery/character01/index.json +24 -0
  24. package/demo/src/assets/gallery/character01/state0.svg +19 -0
  25. package/demo/src/assets/gallery/indicatorLight/index.json +58 -0
  26. package/demo/src/assets/gallery/indicatorLight/indicatorLight.png +0 -0
  27. package/demo/src/assets/gallery/indicatorLight/state0.svg +33 -0
  28. package/demo/src/assets/gallery/indicatorLight/state1.svg +33 -0
  29. package/demo/src/assets/gallery/indicatorLight/state2.svg +68 -0
  30. package/demo/src/assets/gallery/indicatorLight/state3.svg +68 -0
  31. package/demo/src/assets/gallery/indicatorLight/state4.svg +72 -0
  32. package/demo/src/assets/gallery/indicatorLight/state5.svg +68 -0
  33. package/demo/src/assets/gallery/indicatorLight2/app.component.html +3 -0
  34. package/demo/src/assets/gallery/indicatorLight2/index.json +30 -0
  35. package/demo/src/assets/gallery/indicatorLight2/indicatorLight2.png +0 -0
  36. package/demo/src/assets/gallery/indicatorLight2/state0.png +0 -0
  37. package/demo/src/assets/gallery/indicatorLight2/state1.png +0 -0
  38. package/demo/src/environments/environment.prod.ts +3 -0
  39. package/demo/src/environments/environment.ts +8 -0
  40. package/demo/src/favicon.ico +0 -0
  41. package/demo/src/gui/default-config-store.ts +225 -0
  42. package/demo/src/gui/default-gui-context.ts +46 -0
  43. package/demo/src/gui/default-history-data.store.ts +10 -0
  44. package/demo/src/gui/default-operation-record.service.ts +11 -0
  45. package/demo/src/gui/default-permission-checker.ts +23 -0
  46. package/demo/src/gui/default-variable-communicator.ts +68 -0
  47. package/demo/src/index.html +14 -0
  48. package/demo/src/main.ts +11 -0
  49. package/demo/src/polyfills.ts +68 -0
  50. package/demo/src/styles.css +1 -0
  51. package/demo/src/tsconfig.app.json +29 -0
  52. package/demo/src/tsconfig.spec.json +21 -0
  53. package/demo/src/typings.d.ts +5 -0
  54. package/e2e/app.e2e-spec.ts +14 -0
  55. package/e2e/app.po.ts +11 -0
  56. package/e2e/tsconfig.e2e.json +12 -0
  57. package/karma.conf.js +42 -0
  58. package/package.json +98 -23
  59. package/protractor.conf.js +30 -0
  60. package/src/communication/variable/variable-communicator.ts +22 -0
  61. package/src/communication/variable/variable-definition.ts +10 -0
  62. package/src/communication/variable/variable-state-enum.ts +7 -0
  63. package/src/communication/variable/variable-state.ts +5 -0
  64. package/src/communication/variable/variable-value.ts +5 -0
  65. package/src/config/alarm/alarm.store.ts +9 -0
  66. package/src/config/alarm/get-alarms-args.ts +11 -0
  67. package/src/config/alarm/index.ts +2 -0
  68. package/src/config/config-store.ts +24 -0
  69. package/src/config/graph/graph-result.ts +16 -0
  70. package/src/config/graph/graph-store.ts +12 -0
  71. package/src/config/graph/graph-type.ts +4 -0
  72. package/src/config/graph/graph.ts +6 -0
  73. package/src/config/history-data/get-history-data-args.ts +23 -0
  74. package/src/config/history-data/historical-curve.time-range.ts +25 -0
  75. package/src/config/history-data/history-data-value.ts +6 -0
  76. package/src/config/history-data/history-data.model.ts +6 -0
  77. package/src/config/history-data/history-data.store.ts +12 -0
  78. package/src/config/image/image-store.ts +8 -0
  79. package/src/config/index.ts +17 -0
  80. package/src/config/variable/get-variable-name-args.ts +7 -0
  81. package/src/config/variable/variable-store.ts +10 -0
  82. package/src/config/view/view-store.ts +25 -0
  83. package/src/config/view/view.model.ts +4 -0
  84. package/src/core/stringifying-map.ts +30 -0
  85. package/src/core/stringifying-set.ts +26 -0
  86. package/src/elements/air-quality/air-quality-element.ts +239 -0
  87. package/src/elements/alarm/alarm-element.ts +423 -0
  88. package/src/elements/bar-graph-element.ts +193 -0
  89. package/src/elements/base/base-element.ts +15 -0
  90. package/src/elements/base/conditional-control-element.ts +101 -0
  91. package/src/elements/base/conditional-display-element.ts +90 -0
  92. package/src/elements/base/conditional-dynamic-display-element.ts +159 -0
  93. package/src/elements/base/conditional-enable-element.ts +113 -0
  94. package/src/elements/base/readable-element.ts +94 -0
  95. package/src/elements/base/state-control-element.ts +200 -0
  96. package/src/elements/character-display/character-display-element.ts +314 -0
  97. package/src/elements/datetime-display/datetime-display-element.ts +149 -0
  98. package/src/elements/historical-curve/historical-curve-element-status.ts +6 -0
  99. package/src/elements/historical-curve/historical-curve.element.ts +593 -0
  100. package/src/elements/main-element.ts +507 -0
  101. package/src/elements/meter-element.ts +158 -0
  102. package/src/elements/numerical-display/numerical-display-element.ts +438 -0
  103. package/src/elements/per-view-variable-communicator.ts +77 -0
  104. package/src/elements/pipe/pipe-element.ts +166 -0
  105. package/src/elements/ring-graph/ring-graph-element.ts +230 -0
  106. package/src/elements/shared/graph/graph-state-element.ts +121 -0
  107. package/src/elements/shared/math-utils.ts +14 -0
  108. package/src/elements/shared/text/text-element.ts +88 -0
  109. package/src/elements/shared/text/text-state-element.ts +150 -0
  110. package/src/elements/shared/text/text-state.model.ts +6 -0
  111. package/src/elements/shared/text/text-utils.ts +45 -0
  112. package/src/elements/static-elements/hyperlink-element.ts +62 -0
  113. package/src/elements/static-elements/image-element.ts +56 -0
  114. package/src/elements/static-elements/text-element.ts +70 -0
  115. package/src/elements/switch-indicator-light/bit-indicator-light-operator.ts +82 -0
  116. package/src/elements/switch-indicator-light/bit-switch-operator.ts +113 -0
  117. package/src/elements/switch-indicator-light/current-stateId-value.ts +8 -0
  118. package/src/elements/switch-indicator-light/indicator-light-operator.ts +9 -0
  119. package/src/elements/switch-indicator-light/switch-indicator-light-element.ts +305 -0
  120. package/src/elements/switch-indicator-light/switch-operator.ts +7 -0
  121. package/src/elements/switch-indicator-light/word-indicator-light-operator.ts +70 -0
  122. package/src/elements/switch-indicator-light/word-switch-operator.ts +82 -0
  123. package/src/elements/table/table-element.ts +15 -0
  124. package/src/elements/vector-graphics/ellipse-element.ts +15 -0
  125. package/src/elements/vector-graphics/poly-line-element.ts +31 -0
  126. package/src/elements/vector-graphics/polygon-element.ts +31 -0
  127. package/src/elements/vector-graphics/rectangle-element.ts +15 -0
  128. package/src/elements/vector-graphics/sector-element.ts +15 -0
  129. package/src/elements/vector-graphics/straight-line-element.ts +31 -0
  130. package/src/elements/video/video-element.ts +240 -0
  131. package/src/elements/view-operation/view-operation.element.ts +228 -0
  132. package/src/elements/weather/weater-element.ts +281 -0
  133. package/src/gui/gui-context.ts +18 -0
  134. package/src/gui/gui-host.ts +187 -0
  135. package/src/gui/gui-view.ts +214 -0
  136. package/src/gui/gui.component.ts +220 -0
  137. package/src/gui/interfaces/gui-options.ts +7 -0
  138. package/src/gui.module.ts +68 -0
  139. package/src/localization/localization.service.ts +115 -0
  140. package/src/localization/localization.service.zh_CN.ts +57 -0
  141. package/src/logger/console-logger.service.ts +38 -0
  142. package/src/logger/logger.service.ts +26 -0
  143. package/src/modal/alert/alert-modal.component.ts +26 -0
  144. package/src/modal/confirm-operation/confirm-operation-modal.component.ts +28 -0
  145. package/src/modal/verify-password/verify-password-modal.component.ts +59 -0
  146. package/src/modal/write-character/write-character-modal-args.ts +8 -0
  147. package/src/modal/write-character/write-character-modal.component.ts +74 -0
  148. package/src/modal/write-value/write-value-modal-args.ts +16 -0
  149. package/src/modal/write-value/write-value-modal.component.html +26 -0
  150. package/src/modal/write-value/write-value-modal.component.ts +237 -0
  151. package/src/modal/write-value/write-value-model-result.ts +4 -0
  152. package/src/model/air-quality/air-quality-info.ts +25 -0
  153. package/src/model/air-quality/air-quality.model.ts +8 -0
  154. package/src/model/alarm/alarm.model.ts +14 -0
  155. package/src/model/bar-graph/bar-graph-direction.ts +6 -0
  156. package/src/model/bar-graph/bar-graph.ts +28 -0
  157. package/src/model/base/base-element-model.ts +5 -0
  158. package/src/model/base/conditional-control-model.ts +7 -0
  159. package/src/model/base/conditional-display-model.ts +10 -0
  160. package/src/model/base/conditional-dynamic-display-model.ts +22 -0
  161. package/src/model/base/conditional-enable-model.ts +10 -0
  162. package/src/model/base/font-setting-model.ts +14 -0
  163. package/src/model/base/readable-model.ts +21 -0
  164. package/src/model/character-display/character-display.ts +20 -0
  165. package/src/model/datetime-display/date-format-type.ts +5 -0
  166. package/src/model/datetime-display/datetime-display-settings.ts +19 -0
  167. package/src/model/datetime-display/datetime-display.ts +21 -0
  168. package/src/model/datetime-display/datetime-separator-type.ts +6 -0
  169. package/src/model/datetime-display/time-format-type.ts +4 -0
  170. package/src/model/historical-curve/curve-type.ts +5 -0
  171. package/src/model/historical-curve/historical-curve-axis-settings.ts +18 -0
  172. package/src/model/historical-curve/historical-curve-chanel.model.ts +25 -0
  173. package/src/model/historical-curve/historical-curve.data-settings.ts +10 -0
  174. package/src/model/historical-curve/historical-curve.display-settings.ts +20 -0
  175. package/src/model/historical-curve/historical-curve.model.ts +9 -0
  176. package/src/model/hyperlink/hyperlink.model.ts +9 -0
  177. package/src/model/image/image-fill-type.ts +4 -0
  178. package/src/model/image/image.ts +10 -0
  179. package/src/model/meter/meter.ts +20 -0
  180. package/src/model/numerical-display/index.ts +9 -0
  181. package/src/model/numerical-display/numerical-display.ts +30 -0
  182. package/src/model/numerical-display/numerical-operation-settings.ts +7 -0
  183. package/src/model/numerical-display/numerical-operation-type.ts +4 -0
  184. package/src/model/numerical-display/numerical-operation.ts +12 -0
  185. package/src/model/pipe/flow-direction-type.ts +4 -0
  186. package/src/model/pipe/pipe.ts +18 -0
  187. package/src/model/poly-line/poly-line-model.ts +5 -0
  188. package/src/model/polygon/polygon-model.ts +5 -0
  189. package/src/model/ring-graph/ring-graph.model.ts +36 -0
  190. package/src/model/settings/background/view-background-fill-type.ts +5 -0
  191. package/src/model/settings/background/view-background.model.ts +9 -0
  192. package/src/model/settings/popup/view-popup-backdrop-type.ts +4 -0
  193. package/src/model/settings/popup/view-popup-location-type.ts +4 -0
  194. package/src/model/settings/popup/view-popup-setting.model.ts +18 -0
  195. package/src/model/settings/view-settings.model.ts +7 -0
  196. package/src/model/shared/binary.ts +41 -0
  197. package/src/model/shared/condition/bit-condition-item-observer.ts +59 -0
  198. package/src/model/shared/condition/bit-condition-logic.ts +4 -0
  199. package/src/model/shared/condition/bit-condition-model.ts +9 -0
  200. package/src/model/shared/condition/bit-condition.ts +5 -0
  201. package/src/model/shared/condition/condition-control-result-value.ts +6 -0
  202. package/src/model/shared/condition/condition-helper.ts +23 -0
  203. package/src/model/shared/condition/condition-item-model.ts +11 -0
  204. package/src/model/shared/condition/condition-item-observer.ts +22 -0
  205. package/src/model/shared/condition/condition-items-observer.ts +6 -0
  206. package/src/model/shared/condition/condition-items-result-observer.ts +96 -0
  207. package/src/model/shared/condition/condition-type.ts +4 -0
  208. package/src/model/shared/condition/convert-condition-model.ts +6 -0
  209. package/src/model/shared/condition/index.ts +18 -0
  210. package/src/model/shared/condition/relation-condition-result-state.ts +8 -0
  211. package/src/model/shared/condition/relation-condition-result.ts +7 -0
  212. package/src/model/shared/condition/relation-type.ts +5 -0
  213. package/src/model/shared/condition/relational-operator.ts +8 -0
  214. package/src/model/shared/condition/variable-value-logic-model.ts +12 -0
  215. package/src/model/shared/condition/variable-value-type.ts +4 -0
  216. package/src/model/shared/condition/word-condition-item-observer.ts +158 -0
  217. package/src/model/shared/condition/word-condition-model.ts +9 -0
  218. package/src/model/shared/condition/word-condition.ts +6 -0
  219. package/src/model/shared/data-type/display-data-type.ts +5 -0
  220. package/src/model/shared/data-type/fbox-data-type.ts +15 -0
  221. package/src/model/shared/data-type/fcloud-data-Type.ts +8 -0
  222. package/src/model/shared/dynamic-display/dynamic-behavior-type.ts +5 -0
  223. package/src/model/shared/dynamic-display/dynamic-display-behavior-model.ts +6 -0
  224. package/src/model/shared/dynamic-display/dynamic-display-result-model.ts +6 -0
  225. package/src/model/shared/dynamic-display/dynamic-display.ts +48 -0
  226. package/src/model/shared/graph/custom-style.ts +17 -0
  227. package/src/model/shared/graph/graph-setting.ts +11 -0
  228. package/src/model/shared/rotation/rotation-behavior-model.ts +5 -0
  229. package/src/model/shared/rotation/rotation-behavior.ts +91 -0
  230. package/src/model/shared/rotation/rotation-direction-type.ts +4 -0
  231. package/src/model/shared/rotation/rotation-model.ts +15 -0
  232. package/src/model/shared/rotation/rotation-observer-model.ts +5 -0
  233. package/src/model/shared/rotation/rotation-observer.ts +32 -0
  234. package/src/model/shared/scale/scale-mark.model.ts +7 -0
  235. package/src/model/shared/scale/scale-model.ts +25 -0
  236. package/src/model/shared/size.model.ts +17 -0
  237. package/src/model/shared/state/state.ts +8 -0
  238. package/src/model/shared/text/text.ts +6 -0
  239. package/src/model/shared/translation/translation-behavior-model.ts +5 -0
  240. package/src/model/shared/translation/translation-behavior.ts +71 -0
  241. package/src/model/shared/translation/translation-direction-type.ts +4 -0
  242. package/src/model/shared/translation/translation-observer-model.ts +5 -0
  243. package/src/model/shared/translation/translation-observer.ts +33 -0
  244. package/src/model/shared/variable/variable-identifier.model.ts +6 -0
  245. package/src/model/straight-line/straight-line-model.ts +5 -0
  246. package/src/model/switch-indicator-light/bit-switch-operation.ts +6 -0
  247. package/src/model/switch-indicator-light/bit-switch-settings.ts +12 -0
  248. package/src/model/switch-indicator-light/fault-flicker.ts +6 -0
  249. package/src/model/switch-indicator-light/flicker.ts +5 -0
  250. package/src/model/switch-indicator-light/index.ts +18 -0
  251. package/src/model/switch-indicator-light/indicator-light-fault-flicker.ts +6 -0
  252. package/src/model/switch-indicator-light/indicator-light-settings.ts +8 -0
  253. package/src/model/switch-indicator-light/indicator-light-type.ts +4 -0
  254. package/src/model/switch-indicator-light/switch-indicator-light.ts +47 -0
  255. package/src/model/switch-indicator-light/switch-indicator-state.ts +9 -0
  256. package/src/model/switch-indicator-light/switch-settings.ts +8 -0
  257. package/src/model/switch-indicator-light/switch-type.ts +4 -0
  258. package/src/model/switch-indicator-light/word-switch-operation.ts +5 -0
  259. package/src/model/switch-indicator-light/word-switch-settings.ts +14 -0
  260. package/src/model/table/table-model.ts +14 -0
  261. package/src/model/text/text.model.ts +8 -0
  262. package/src/model/video/video.model.ts +9 -0
  263. package/src/model/view-operation/view-operation-element.model.ts +20 -0
  264. package/src/model/view-operation/view-operation-type.ts +22 -0
  265. package/src/model/weather/weather-info.ts +11 -0
  266. package/src/model/weather/weather.model.ts +8 -0
  267. package/src/package.json +17 -0
  268. package/src/public_api.ts +25 -0
  269. package/src/remote/communication/variable/remote-variable-communicator.ts +254 -0
  270. package/src/remote/communication/variable/remote-variable-protocol.ts +29 -0
  271. package/src/remote/config/graph/get-released-graph-state-result.ts +7 -0
  272. package/src/remote/config/graph/get-released-graph-states.ts +5 -0
  273. package/src/remote/config/graph/graph-state-key.ts +7 -0
  274. package/src/remote/config/graph/graph-state-result.ts +6 -0
  275. package/src/remote/config/graph/remote-graph-protocol.ts +19 -0
  276. package/src/remote/config/graph/remote-graph-store.ts +112 -0
  277. package/src/remote/config/image/remote-image-protocol.ts +6 -0
  278. package/src/remote/config/image/remote-image-store.ts +29 -0
  279. package/src/remote/config/view/remote-view-protocol.ts +14 -0
  280. package/src/remote/config/view/remote-view-store.ts +52 -0
  281. package/src/remote/index.ts +17 -0
  282. package/src/service/index.ts +5 -0
  283. package/src/service/operation-record/create-operation-record-args.ts +6 -0
  284. package/src/service/operation-record/index.ts +5 -0
  285. package/src/service/operation-record/operation-record.service.ts +5 -0
  286. package/src/service/operation-record/variable-option.model.ts +6 -0
  287. package/src/service/released-variable/index.ts +1 -0
  288. package/src/service/released-variable/released-variable.service.ts +5 -0
  289. package/src/service/video/video.service.ts +5 -0
  290. package/src/service/weather.service.ts +7 -0
  291. package/src/settings/display-mode.ts +12 -0
  292. package/src/settings/global-settings.ts +11 -0
  293. package/src/settings/view-resize-mode.ts +12 -0
  294. package/src/shared/disposable.ts +3 -0
  295. package/src/shared/gui-consts.ts +33 -0
  296. package/src/shared/operation-helper.ts +42 -0
  297. package/src/tsconfig.json +33 -0
  298. package/src/typings.d.ts +1 -0
  299. package/src/utils/access-permission.service.ts +27 -0
  300. package/src/utils/access-permission.ts +5 -0
  301. package/src/utils/auto-focus.directive.ts +16 -0
  302. package/src/utils/bs-modal-drag.directive.ts +26 -0
  303. package/src/utils/data-type/data-type.service.ts +156 -0
  304. package/src/utils/data-type/fbox-data-type.service.ts +302 -0
  305. package/src/utils/data-type/fcloud-data-type.service.ts +205 -0
  306. package/src/utils/fraction-digit.service.ts +132 -0
  307. package/src/utils/graph-util.ts +19 -0
  308. package/src/utils/guid.ts +29 -0
  309. package/src/utils/index.ts +8 -0
  310. package/src/utils/numerical-operation-type.ts +4 -0
  311. package/src/utils/numerical-operation.service.ts +167 -0
  312. package/src/utils/variable-util.ts +13 -0
  313. package/src/view/popup-view.service.ts +11 -0
  314. package/src/view/view.service.ts +13 -0
  315. package/bundles/@flexem/fc-gui.umd.js +0 -82614
  316. package/bundles/@flexem/fc-gui.umd.js.map +0 -1
  317. package/bundles/@flexem/fc-gui.umd.min.js +0 -47
  318. package/bundles/@flexem/fc-gui.umd.min.js.map +0 -1
  319. package/communication/index.js +0 -1
  320. package/communication/index.metadata.json +0 -1
  321. package/communication/variable/index.js +0 -4
  322. package/communication/variable/index.metadata.json +0 -1
  323. package/communication/variable/variable-communicator.d.ts +0 -12
  324. package/communication/variable/variable-communicator.js +0 -0
  325. package/communication/variable/variable-communicator.metadata.json +0 -1
  326. package/communication/variable/variable-definition.d.ts +0 -10
  327. package/communication/variable/variable-definition.js +0 -14
  328. package/communication/variable/variable-definition.metadata.json +0 -1
  329. package/communication/variable/variable-state-enum.d.ts +0 -7
  330. package/communication/variable/variable-state-enum.js +0 -8
  331. package/communication/variable/variable-state-enum.metadata.json +0 -1
  332. package/communication/variable/variable-state.d.ts +0 -6
  333. package/communication/variable/variable-state.js +0 -6
  334. package/communication/variable/variable-state.metadata.json +0 -1
  335. package/communication/variable/variable-value.d.ts +0 -8
  336. package/communication/variable/variable-value.js +0 -8
  337. package/communication/variable/variable-value.metadata.json +0 -1
  338. package/config/config-store.d.ts +0 -15
  339. package/config/config-store.js +0 -0
  340. package/config/config-store.metadata.json +0 -1
  341. package/config/graph/graph-result.d.ts +0 -9
  342. package/config/graph/graph-result.js +0 -13
  343. package/config/graph/graph-result.metadata.json +0 -1
  344. package/config/graph/graph-store.d.ts +0 -9
  345. package/config/graph/graph-store.js +0 -0
  346. package/config/graph/graph-store.metadata.json +0 -1
  347. package/config/graph/graph-type.d.ts +0 -4
  348. package/config/graph/graph-type.js +0 -5
  349. package/config/graph/graph-type.metadata.json +0 -1
  350. package/config/graph/graph.d.ts +0 -6
  351. package/config/graph/graph.js +0 -6
  352. package/config/graph/graph.metadata.json +0 -1
  353. package/config/history-data/get-history-data-args.d.ts +0 -22
  354. package/config/history-data/get-history-data-args.js +0 -21
  355. package/config/history-data/get-history-data-args.metadata.json +0 -1
  356. package/config/history-data/historical-curve.time-range.d.ts +0 -18
  357. package/config/history-data/historical-curve.time-range.js +0 -19
  358. package/config/history-data/historical-curve.time-range.metadata.json +0 -1
  359. package/config/history-data/history-data-value.d.ts +0 -6
  360. package/config/history-data/history-data-value.js +0 -6
  361. package/config/history-data/history-data-value.metadata.json +0 -1
  362. package/config/history-data/history-data.model.d.ts +0 -7
  363. package/config/history-data/history-data.model.js +0 -7
  364. package/config/history-data/history-data.model.metadata.json +0 -1
  365. package/config/history-data/history-data.store.d.ts +0 -10
  366. package/config/history-data/history-data.store.js +0 -0
  367. package/config/history-data/history-data.store.metadata.json +0 -1
  368. package/config/history-data/index.js +0 -3
  369. package/config/history-data/index.metadata.json +0 -1
  370. package/config/image/image-store.d.ts +0 -6
  371. package/config/image/image-store.js +0 -0
  372. package/config/image/image-store.metadata.json +0 -1
  373. package/config/index.d.ts +0 -10
  374. package/config/index.js +0 -6
  375. package/config/index.metadata.json +0 -1
  376. package/config/variable/get-variable-name-args.d.ts +0 -6
  377. package/config/variable/get-variable-name-args.js +0 -7
  378. package/config/variable/get-variable-name-args.metadata.json +0 -1
  379. package/config/variable/index.js +0 -1
  380. package/config/variable/index.metadata.json +0 -1
  381. package/config/variable/variable-store.d.ts +0 -7
  382. package/config/variable/variable-store.js +0 -0
  383. package/config/variable/variable-store.metadata.json +0 -1
  384. package/config/view/view-store.d.ts +0 -20
  385. package/config/view/view-store.js +0 -0
  386. package/config/view/view-store.metadata.json +0 -1
  387. package/config/view/view.model.d.ts +0 -4
  388. package/config/view/view.model.js +0 -5
  389. package/config/view/view.model.metadata.json +0 -1
  390. package/core/index.js +0 -1
  391. package/core/index.metadata.json +0 -1
  392. package/core/stringifying-map.d.ts +0 -11
  393. package/core/stringifying-map.js +0 -24
  394. package/core/stringifying-map.metadata.json +0 -1
  395. package/core/stringifying-set.d.ts +0 -10
  396. package/core/stringifying-set.js +0 -21
  397. package/core/stringifying-set.metadata.json +0 -1
  398. package/elements/bar-graph-element.d.ts +0 -21
  399. package/elements/bar-graph-element.js +0 -114
  400. package/elements/bar-graph-element.metadata.json +0 -1
  401. package/elements/base/base-element.d.ts +0 -11
  402. package/elements/base/base-element.js +0 -9
  403. package/elements/base/base-element.metadata.json +0 -1
  404. package/elements/base/conditional-control-element.d.ts +0 -16
  405. package/elements/base/conditional-control-element.js +0 -87
  406. package/elements/base/conditional-control-element.metadata.json +0 -1
  407. package/elements/base/conditional-display-element.d.ts +0 -24
  408. package/elements/base/conditional-display-element.js +0 -86
  409. package/elements/base/conditional-display-element.metadata.json +0 -1
  410. package/elements/base/conditional-dynamic-display-element.d.ts +0 -26
  411. package/elements/base/conditional-dynamic-display-element.js +0 -142
  412. package/elements/base/conditional-dynamic-display-element.metadata.json +0 -1
  413. package/elements/base/conditional-enable-element.d.ts +0 -21
  414. package/elements/base/conditional-enable-element.js +0 -100
  415. package/elements/base/conditional-enable-element.metadata.json +0 -1
  416. package/elements/base/index.js +0 -3
  417. package/elements/base/index.metadata.json +0 -1
  418. package/elements/base/readable-element.d.ts +0 -15
  419. package/elements/base/readable-element.js +0 -58
  420. package/elements/base/readable-element.metadata.json +0 -1
  421. package/elements/base/state-control-element.d.ts +0 -24
  422. package/elements/base/state-control-element.js +0 -180
  423. package/elements/base/state-control-element.metadata.json +0 -1
  424. package/elements/character-display/character-display-element.d.ts +0 -35
  425. package/elements/character-display/character-display-element.js +0 -311
  426. package/elements/character-display/character-display-element.metadata.json +0 -1
  427. package/elements/datetime-display/datetime-display-element.d.ts +0 -21
  428. package/elements/datetime-display/datetime-display-element.js +0 -132
  429. package/elements/datetime-display/datetime-display-element.metadata.json +0 -1
  430. package/elements/historical-curve/historical-curve-element-status.d.ts +0 -6
  431. package/elements/historical-curve/historical-curve-element-status.js +0 -7
  432. package/elements/historical-curve/historical-curve-element-status.metadata.json +0 -1
  433. package/elements/historical-curve/historical-curve.element.d.ts +0 -59
  434. package/elements/historical-curve/historical-curve.element.js +0 -372
  435. package/elements/historical-curve/historical-curve.element.metadata.json +0 -1
  436. package/elements/historical-curve/historical-curve.element.option.js +0 -0
  437. package/elements/historical-curve/historical-curve.element.option.metadata.json +0 -1
  438. package/elements/historical-curve/historical-curve.time-period.js +0 -0
  439. package/elements/historical-curve/historical-curve.time-period.metadata.json +0 -1
  440. package/elements/main-element.d.ts +0 -45
  441. package/elements/main-element.js +0 -307
  442. package/elements/main-element.metadata.json +0 -1
  443. package/elements/meter-element.d.ts +0 -20
  444. package/elements/meter-element.js +0 -70
  445. package/elements/meter-element.metadata.json +0 -1
  446. package/elements/numerical-display/numerical-display-element.d.ts +0 -41
  447. package/elements/numerical-display/numerical-display-element.js +0 -361
  448. package/elements/numerical-display/numerical-display-element.metadata.json +0 -1
  449. package/elements/per-view-variable-communicator.d.ts +0 -17
  450. package/elements/per-view-variable-communicator.js +0 -45
  451. package/elements/per-view-variable-communicator.metadata.json +0 -1
  452. package/elements/pipe/pipe-element.d.ts +0 -19
  453. package/elements/pipe/pipe-element.js +0 -141
  454. package/elements/pipe/pipe-element.metadata.json +0 -1
  455. package/elements/ring-graph/ring-graph-element.d.ts +0 -19
  456. package/elements/ring-graph/ring-graph-element.js +0 -89
  457. package/elements/ring-graph/ring-graph-element.metadata.json +0 -1
  458. package/elements/shared/graph/graph-state-element.d.ts +0 -27
  459. package/elements/shared/graph/graph-state-element.js +0 -113
  460. package/elements/shared/graph/graph-state-element.metadata.json +0 -1
  461. package/elements/shared/math-utils.d.ts +0 -2
  462. package/elements/shared/math-utils.js +0 -14
  463. package/elements/shared/math-utils.metadata.json +0 -1
  464. package/elements/shared/text/text-element.d.ts +0 -8
  465. package/elements/shared/text/text-element.js +0 -68
  466. package/elements/shared/text/text-element.metadata.json +0 -1
  467. package/elements/shared/text/text-state-element.d.ts +0 -23
  468. package/elements/shared/text/text-state-element.js +0 -136
  469. package/elements/shared/text/text-state-element.metadata.json +0 -1
  470. package/elements/shared/text/text-state.model.d.ts +0 -5
  471. package/elements/shared/text/text-state.model.js +0 -0
  472. package/elements/shared/text/text-state.model.metadata.json +0 -1
  473. package/elements/shared/text/text-utils.d.ts +0 -5
  474. package/elements/shared/text/text-utils.js +0 -45
  475. package/elements/shared/text/text-utils.metadata.json +0 -1
  476. package/elements/static-elements/hyperlink-element.d.ts +0 -14
  477. package/elements/static-elements/hyperlink-element.js +0 -48
  478. package/elements/static-elements/hyperlink-element.metadata.json +0 -1
  479. package/elements/static-elements/image-element.d.ts +0 -14
  480. package/elements/static-elements/image-element.js +0 -41
  481. package/elements/static-elements/image-element.metadata.json +0 -1
  482. package/elements/static-elements/text-element.d.ts +0 -16
  483. package/elements/static-elements/text-element.js +0 -55
  484. package/elements/static-elements/text-element.metadata.json +0 -1
  485. package/elements/switch-indicator-light/bit-indicator-light-operator.d.ts +0 -20
  486. package/elements/switch-indicator-light/bit-indicator-light-operator.js +0 -78
  487. package/elements/switch-indicator-light/bit-indicator-light-operator.metadata.json +0 -1
  488. package/elements/switch-indicator-light/bit-switch-operator.d.ts +0 -18
  489. package/elements/switch-indicator-light/bit-switch-operator.js +0 -88
  490. package/elements/switch-indicator-light/bit-switch-operator.metadata.json +0 -1
  491. package/elements/switch-indicator-light/current-stateId-value.d.ts +0 -6
  492. package/elements/switch-indicator-light/current-stateId-value.js +0 -8
  493. package/elements/switch-indicator-light/current-stateId-value.metadata.json +0 -1
  494. package/elements/switch-indicator-light/indicator-light-operator.d.ts +0 -8
  495. package/elements/switch-indicator-light/indicator-light-operator.js +0 -0
  496. package/elements/switch-indicator-light/indicator-light-operator.metadata.json +0 -1
  497. package/elements/switch-indicator-light/switch-indicator-light-element.d.ts +0 -31
  498. package/elements/switch-indicator-light/switch-indicator-light-element.js +0 -182
  499. package/elements/switch-indicator-light/switch-indicator-light-element.metadata.json +0 -1
  500. package/elements/switch-indicator-light/switch-operator.d.ts +0 -5
  501. package/elements/switch-indicator-light/switch-operator.js +0 -0
  502. package/elements/switch-indicator-light/switch-operator.metadata.json +0 -1
  503. package/elements/switch-indicator-light/word-indicator-light-operator.d.ts +0 -18
  504. package/elements/switch-indicator-light/word-indicator-light-operator.js +0 -65
  505. package/elements/switch-indicator-light/word-indicator-light-operator.metadata.json +0 -1
  506. package/elements/switch-indicator-light/word-switch-operator.d.ts +0 -17
  507. package/elements/switch-indicator-light/word-switch-operator.js +0 -69
  508. package/elements/switch-indicator-light/word-switch-operator.metadata.json +0 -1
  509. package/elements/table/table-element.d.ts +0 -9
  510. package/elements/table/table-element.js +0 -6
  511. package/elements/table/table-element.metadata.json +0 -1
  512. package/elements/vector-graphics/ellipse-element.d.ts +0 -9
  513. package/elements/vector-graphics/ellipse-element.js +0 -6
  514. package/elements/vector-graphics/ellipse-element.metadata.json +0 -1
  515. package/elements/vector-graphics/poly-line-element.d.ts +0 -12
  516. package/elements/vector-graphics/poly-line-element.js +0 -19
  517. package/elements/vector-graphics/poly-line-element.metadata.json +0 -1
  518. package/elements/vector-graphics/polygon-element.d.ts +0 -12
  519. package/elements/vector-graphics/polygon-element.js +0 -19
  520. package/elements/vector-graphics/polygon-element.metadata.json +0 -1
  521. package/elements/vector-graphics/rectangle-element.d.ts +0 -9
  522. package/elements/vector-graphics/rectangle-element.js +0 -6
  523. package/elements/vector-graphics/rectangle-element.metadata.json +0 -1
  524. package/elements/vector-graphics/sector-element.d.ts +0 -9
  525. package/elements/vector-graphics/sector-element.js +0 -6
  526. package/elements/vector-graphics/sector-element.metadata.json +0 -1
  527. package/elements/vector-graphics/straight-line-element.d.ts +0 -12
  528. package/elements/vector-graphics/straight-line-element.js +0 -19
  529. package/elements/vector-graphics/straight-line-element.metadata.json +0 -1
  530. package/elements/video/video-element.d.ts +0 -27
  531. package/elements/video/video-element.js +0 -160
  532. package/elements/video/video-element.metadata.json +0 -1
  533. package/elements/view-operation/view-operation.element.d.ts +0 -36
  534. package/elements/view-operation/view-operation.element.js +0 -194
  535. package/elements/view-operation/view-operation.element.metadata.json +0 -1
  536. package/elements/weather/weater-element.d.ts +0 -38
  537. package/elements/weather/weater-element.js +0 -238
  538. package/elements/weather/weater-element.metadata.json +0 -1
  539. package/gui/gui-context.d.ts +0 -16
  540. package/gui/gui-context.js +0 -0
  541. package/gui/gui-context.metadata.json +0 -1
  542. package/gui/gui-host.d.ts +0 -50
  543. package/gui/gui-host.js +0 -173
  544. package/gui/gui-host.metadata.json +0 -1
  545. package/gui/gui-view.d.ts +0 -42
  546. package/gui/gui-view.js +0 -204
  547. package/gui/gui-view.metadata.json +0 -1
  548. package/gui/gui.component.d.ts +0 -42
  549. package/gui/gui.component.js +0 -227
  550. package/gui/gui.component.metadata.json +0 -1
  551. package/gui/interfaces/gui-options.d.ts +0 -6
  552. package/gui/interfaces/gui-options.js +0 -0
  553. package/gui/interfaces/gui-options.metadata.json +0 -1
  554. package/gui.module.d.ts +0 -2
  555. package/gui.module.js +0 -78
  556. package/gui.module.metadata.json +0 -1
  557. package/localization/index.js +0 -2
  558. package/localization/index.metadata.json +0 -1
  559. package/localization/localization.service.d.ts +0 -51
  560. package/localization/localization.service.js +0 -50
  561. package/localization/localization.service.metadata.json +0 -1
  562. package/localization/localization.service.zh_CN.d.ts +0 -2
  563. package/localization/localization.service.zh_CN.js +0 -48
  564. package/localization/localization.service.zh_CN.metadata.json +0 -1
  565. package/logger/console-logger.service.d.ts +0 -13
  566. package/logger/console-logger.service.js +0 -38
  567. package/logger/console-logger.service.metadata.json +0 -1
  568. package/logger/index.js +0 -2
  569. package/logger/index.metadata.json +0 -1
  570. package/logger/logger.service.d.ts +0 -14
  571. package/logger/logger.service.js +0 -2
  572. package/logger/logger.service.metadata.json +0 -1
  573. package/modal/alert/alert-modal.component.d.ts +0 -10
  574. package/modal/alert/alert-modal.component.js +0 -38
  575. package/modal/alert/alert-modal.component.metadata.json +0 -1
  576. package/modal/confirm-operation/confirm-operation-modal.component.d.ts +0 -10
  577. package/modal/confirm-operation/confirm-operation-modal.component.js +0 -41
  578. package/modal/confirm-operation/confirm-operation-modal.component.metadata.json +0 -1
  579. package/modal/verify-password/verify-password-modal.component.d.ts +0 -18
  580. package/modal/verify-password/verify-password-modal.component.js +0 -66
  581. package/modal/verify-password/verify-password-modal.component.metadata.json +0 -1
  582. package/modal/write-character/write-character-modal-args.d.ts +0 -7
  583. package/modal/write-character/write-character-modal-args.js +0 -8
  584. package/modal/write-character/write-character-modal-args.metadata.json +0 -1
  585. package/modal/write-character/write-character-modal.component.d.ts +0 -25
  586. package/modal/write-character/write-character-modal.component.js +0 -74
  587. package/modal/write-character/write-character-modal.component.metadata.json +0 -1
  588. package/modal/write-value/write-value-modal-args.d.ts +0 -11
  589. package/modal/write-value/write-value-modal-args.js +0 -11
  590. package/modal/write-value/write-value-modal-args.metadata.json +0 -1
  591. package/modal/write-value/write-value-modal.component.d.ts +0 -53
  592. package/modal/write-value/write-value-modal.component.html +0 -21
  593. package/modal/write-value/write-value-modal.component.js +0 -203
  594. package/modal/write-value/write-value-modal.component.metadata.json +0 -1
  595. package/modal/write-value/write-value-model-result.d.ts +0 -3
  596. package/modal/write-value/write-value-model-result.js +0 -0
  597. package/modal/write-value/write-value-model-result.metadata.json +0 -1
  598. package/model/bar-graph/FontStyleData.js +0 -0
  599. package/model/bar-graph/FontStyleData.metadata.json +0 -1
  600. package/model/bar-graph/bar-graph-direction.d.ts +0 -6
  601. package/model/bar-graph/bar-graph-direction.js +0 -7
  602. package/model/bar-graph/bar-graph-direction.metadata.json +0 -1
  603. package/model/bar-graph/bar-graph.d.ts +0 -22
  604. package/model/bar-graph/bar-graph.js +0 -0
  605. package/model/bar-graph/bar-graph.metadata.json +0 -1
  606. package/model/base/base-element-model.d.ts +0 -5
  607. package/model/base/base-element-model.js +0 -2
  608. package/model/base/base-element-model.metadata.json +0 -1
  609. package/model/base/conditional-control-model.d.ts +0 -6
  610. package/model/base/conditional-control-model.js +0 -0
  611. package/model/base/conditional-control-model.metadata.json +0 -1
  612. package/model/base/conditional-display-model.d.ts +0 -9
  613. package/model/base/conditional-display-model.js +0 -0
  614. package/model/base/conditional-display-model.metadata.json +0 -1
  615. package/model/base/conditional-dynamic-display-model.d.ts +0 -13
  616. package/model/base/conditional-dynamic-display-model.js +0 -0
  617. package/model/base/conditional-dynamic-display-model.metadata.json +0 -1
  618. package/model/base/conditional-enable-model.d.ts +0 -9
  619. package/model/base/conditional-enable-model.js +0 -0
  620. package/model/base/conditional-enable-model.metadata.json +0 -1
  621. package/model/base/font-setting-model.d.ts +0 -8
  622. package/model/base/font-setting-model.js +0 -0
  623. package/model/base/font-setting-model.metadata.json +0 -1
  624. package/model/base/index.js +0 -1
  625. package/model/base/index.metadata.json +0 -1
  626. package/model/base/readable-model.d.ts +0 -10
  627. package/model/base/readable-model.js +0 -0
  628. package/model/base/readable-model.metadata.json +0 -1
  629. package/model/base/security-model.js +0 -0
  630. package/model/base/security-model.metadata.json +0 -1
  631. package/model/character-display/character-display.d.ts +0 -19
  632. package/model/character-display/character-display.js +0 -0
  633. package/model/character-display/character-display.metadata.json +0 -1
  634. package/model/datetime-display/date-format-type.d.ts +0 -5
  635. package/model/datetime-display/date-format-type.js +0 -6
  636. package/model/datetime-display/date-format-type.metadata.json +0 -1
  637. package/model/datetime-display/datetime-display-settings.d.ts +0 -17
  638. package/model/datetime-display/datetime-display-settings.js +0 -0
  639. package/model/datetime-display/datetime-display-settings.metadata.json +0 -1
  640. package/model/datetime-display/datetime-display.d.ts +0 -20
  641. package/model/datetime-display/datetime-display.js +0 -0
  642. package/model/datetime-display/datetime-display.metadata.json +0 -1
  643. package/model/datetime-display/datetime-separator-type.d.ts +0 -6
  644. package/model/datetime-display/datetime-separator-type.js +0 -7
  645. package/model/datetime-display/datetime-separator-type.metadata.json +0 -1
  646. package/model/datetime-display/time-format-type.d.ts +0 -4
  647. package/model/datetime-display/time-format-type.js +0 -5
  648. package/model/datetime-display/time-format-type.metadata.json +0 -1
  649. package/model/historical-curve/curve-type.d.ts +0 -5
  650. package/model/historical-curve/curve-type.js +0 -6
  651. package/model/historical-curve/curve-type.metadata.json +0 -1
  652. package/model/historical-curve/historical-curve-axis-settings.d.ts +0 -6
  653. package/model/historical-curve/historical-curve-axis-settings.js +0 -0
  654. package/model/historical-curve/historical-curve-axis-settings.metadata.json +0 -1
  655. package/model/historical-curve/historical-curve-chanel.model.d.ts +0 -14
  656. package/model/historical-curve/historical-curve-chanel.model.js +0 -0
  657. package/model/historical-curve/historical-curve-chanel.model.metadata.json +0 -1
  658. package/model/historical-curve/historical-curve.data-settings.d.ts +0 -9
  659. package/model/historical-curve/historical-curve.data-settings.js +0 -0
  660. package/model/historical-curve/historical-curve.data-settings.metadata.json +0 -1
  661. package/model/historical-curve/historical-curve.display-settings.d.ts +0 -19
  662. package/model/historical-curve/historical-curve.display-settings.js +0 -0
  663. package/model/historical-curve/historical-curve.display-settings.metadata.json +0 -1
  664. package/model/historical-curve/historical-curve.model.d.ts +0 -8
  665. package/model/historical-curve/historical-curve.model.js +0 -0
  666. package/model/historical-curve/historical-curve.model.metadata.json +0 -1
  667. package/model/historical-curve/index.js +0 -0
  668. package/model/historical-curve/index.metadata.json +0 -1
  669. package/model/hyperlink/hyperlink.model.d.ts +0 -8
  670. package/model/hyperlink/hyperlink.model.js +0 -0
  671. package/model/hyperlink/hyperlink.model.metadata.json +0 -1
  672. package/model/image/image-fill-type.d.ts +0 -4
  673. package/model/image/image-fill-type.js +0 -5
  674. package/model/image/image-fill-type.metadata.json +0 -1
  675. package/model/image/image.d.ts +0 -9
  676. package/model/image/image.js +0 -0
  677. package/model/image/image.metadata.json +0 -1
  678. package/model/index.js +0 -8
  679. package/model/index.metadata.json +0 -1
  680. package/model/meter/meter.d.ts +0 -13
  681. package/model/meter/meter.js +0 -0
  682. package/model/meter/meter.metadata.json +0 -1
  683. package/model/numerical-display/index.d.ts +0 -8
  684. package/model/numerical-display/index.js +0 -2
  685. package/model/numerical-display/index.metadata.json +0 -1
  686. package/model/numerical-display/numerical-display.d.ts +0 -28
  687. package/model/numerical-display/numerical-display.js +0 -0
  688. package/model/numerical-display/numerical-display.metadata.json +0 -1
  689. package/model/numerical-display/numerical-operation-settings.d.ts +0 -6
  690. package/model/numerical-display/numerical-operation-settings.js +0 -0
  691. package/model/numerical-display/numerical-operation-settings.metadata.json +0 -1
  692. package/model/numerical-display/numerical-operation-type.d.ts +0 -4
  693. package/model/numerical-display/numerical-operation-type.js +0 -5
  694. package/model/numerical-display/numerical-operation-type.metadata.json +0 -1
  695. package/model/numerical-display/numerical-operation.d.ts +0 -11
  696. package/model/numerical-display/numerical-operation.js +0 -0
  697. package/model/numerical-display/numerical-operation.metadata.json +0 -1
  698. package/model/numerical-display/proportional-conversion.js +0 -0
  699. package/model/numerical-display/proportional-conversion.metadata.json +0 -1
  700. package/model/numerical-display/type-settings.js +0 -0
  701. package/model/numerical-display/type-settings.metadata.json +0 -1
  702. package/model/numerical-display/zoom.js +0 -0
  703. package/model/numerical-display/zoom.metadata.json +0 -1
  704. package/model/pipe/flow-direction-type.d.ts +0 -4
  705. package/model/pipe/flow-direction-type.js +0 -5
  706. package/model/pipe/flow-direction-type.metadata.json +0 -1
  707. package/model/pipe/index.js +0 -1
  708. package/model/pipe/index.metadata.json +0 -1
  709. package/model/pipe/pipe.d.ts +0 -17
  710. package/model/pipe/pipe.js +0 -0
  711. package/model/pipe/pipe.metadata.json +0 -1
  712. package/model/poly-line/poly-line-model.d.ts +0 -4
  713. package/model/poly-line/poly-line-model.js +0 -0
  714. package/model/poly-line/poly-line-model.metadata.json +0 -1
  715. package/model/polygon/polygon-model.d.ts +0 -4
  716. package/model/polygon/polygon-model.js +0 -0
  717. package/model/polygon/polygon-model.metadata.json +0 -1
  718. package/model/ring-graph/ring-graph.model.d.ts +0 -25
  719. package/model/ring-graph/ring-graph.model.js +0 -0
  720. package/model/ring-graph/ring-graph.model.metadata.json +0 -1
  721. package/model/settings/background/view-background-fill-type.d.ts +0 -5
  722. package/model/settings/background/view-background-fill-type.js +0 -6
  723. package/model/settings/background/view-background-fill-type.metadata.json +0 -1
  724. package/model/settings/background/view-background.model.d.ts +0 -8
  725. package/model/settings/background/view-background.model.js +0 -0
  726. package/model/settings/background/view-background.model.metadata.json +0 -1
  727. package/model/settings/index.js +0 -2
  728. package/model/settings/index.metadata.json +0 -1
  729. package/model/settings/popup/view-popup-backdrop-type.d.ts +0 -4
  730. package/model/settings/popup/view-popup-backdrop-type.js +0 -5
  731. package/model/settings/popup/view-popup-backdrop-type.metadata.json +0 -1
  732. package/model/settings/popup/view-popup-location-type.d.ts +0 -4
  733. package/model/settings/popup/view-popup-location-type.js +0 -5
  734. package/model/settings/popup/view-popup-location-type.metadata.json +0 -1
  735. package/model/settings/popup/view-popup-setting.model.d.ts +0 -17
  736. package/model/settings/popup/view-popup-setting.model.js +0 -2
  737. package/model/settings/popup/view-popup-setting.model.metadata.json +0 -1
  738. package/model/settings/view-settings.model.d.ts +0 -6
  739. package/model/settings/view-settings.model.js +0 -0
  740. package/model/settings/view-settings.model.metadata.json +0 -1
  741. package/model/shared/alarm/alarm-range.model.js +0 -0
  742. package/model/shared/alarm/alarm-range.model.metadata.json +0 -1
  743. package/model/shared/arc.model.js +0 -0
  744. package/model/shared/arc.model.metadata.json +0 -1
  745. package/model/shared/binary.d.ts +0 -7
  746. package/model/shared/binary.js +0 -37
  747. package/model/shared/binary.metadata.json +0 -1
  748. package/model/shared/condition/bit-condition-item-observer.d.ts +0 -14
  749. package/model/shared/condition/bit-condition-item-observer.js +0 -53
  750. package/model/shared/condition/bit-condition-item-observer.metadata.json +0 -1
  751. package/model/shared/condition/bit-condition-logic.d.ts +0 -4
  752. package/model/shared/condition/bit-condition-logic.js +0 -5
  753. package/model/shared/condition/bit-condition-logic.metadata.json +0 -1
  754. package/model/shared/condition/bit-condition-model.d.ts +0 -8
  755. package/model/shared/condition/bit-condition-model.js +0 -0
  756. package/model/shared/condition/bit-condition-model.metadata.json +0 -1
  757. package/model/shared/condition/bit-condition.d.ts +0 -4
  758. package/model/shared/condition/bit-condition.js +0 -0
  759. package/model/shared/condition/bit-condition.metadata.json +0 -1
  760. package/model/shared/condition/condition-control-result-value.d.ts +0 -5
  761. package/model/shared/condition/condition-control-result-value.js +0 -0
  762. package/model/shared/condition/condition-control-result-value.metadata.json +0 -1
  763. package/model/shared/condition/condition-helper.d.ts +0 -4
  764. package/model/shared/condition/condition-helper.js +0 -22
  765. package/model/shared/condition/condition-helper.metadata.json +0 -1
  766. package/model/shared/condition/condition-item-model.d.ts +0 -10
  767. package/model/shared/condition/condition-item-model.js +0 -0
  768. package/model/shared/condition/condition-item-model.metadata.json +0 -1
  769. package/model/shared/condition/condition-item-observer.d.ts +0 -12
  770. package/model/shared/condition/condition-item-observer.js +0 -14
  771. package/model/shared/condition/condition-item-observer.metadata.json +0 -1
  772. package/model/shared/condition/condition-items-observer.d.ts +0 -5
  773. package/model/shared/condition/condition-items-observer.js +0 -0
  774. package/model/shared/condition/condition-items-observer.metadata.json +0 -1
  775. package/model/shared/condition/condition-items-result-observer.d.ts +0 -16
  776. package/model/shared/condition/condition-items-result-observer.js +0 -87
  777. package/model/shared/condition/condition-items-result-observer.metadata.json +0 -1
  778. package/model/shared/condition/condition-model.js +0 -0
  779. package/model/shared/condition/condition-model.metadata.json +0 -1
  780. package/model/shared/condition/condition-type.d.ts +0 -4
  781. package/model/shared/condition/condition-type.js +0 -5
  782. package/model/shared/condition/condition-type.metadata.json +0 -1
  783. package/model/shared/condition/convert-condition-model.d.ts +0 -5
  784. package/model/shared/condition/convert-condition-model.js +0 -0
  785. package/model/shared/condition/convert-condition-model.metadata.json +0 -1
  786. package/model/shared/condition/index.d.ts +0 -11
  787. package/model/shared/condition/index.js +0 -4
  788. package/model/shared/condition/index.metadata.json +0 -1
  789. package/model/shared/condition/relation-condition-result-state.d.ts +0 -6
  790. package/model/shared/condition/relation-condition-result-state.js +0 -8
  791. package/model/shared/condition/relation-condition-result-state.metadata.json +0 -1
  792. package/model/shared/condition/relation-condition-result.d.ts +0 -8
  793. package/model/shared/condition/relation-condition-result.js +0 -7
  794. package/model/shared/condition/relation-condition-result.metadata.json +0 -1
  795. package/model/shared/condition/relation-type.d.ts +0 -5
  796. package/model/shared/condition/relation-type.js +0 -6
  797. package/model/shared/condition/relation-type.metadata.json +0 -1
  798. package/model/shared/condition/relational-operator.d.ts +0 -8
  799. package/model/shared/condition/relational-operator.js +0 -9
  800. package/model/shared/condition/relational-operator.metadata.json +0 -1
  801. package/model/shared/condition/variable-value-logic-model.d.ts +0 -11
  802. package/model/shared/condition/variable-value-logic-model.js +0 -0
  803. package/model/shared/condition/variable-value-logic-model.metadata.json +0 -1
  804. package/model/shared/condition/variable-value-type.d.ts +0 -4
  805. package/model/shared/condition/variable-value-type.js +0 -5
  806. package/model/shared/condition/variable-value-type.metadata.json +0 -1
  807. package/model/shared/condition/word-condition-item-observer.d.ts +0 -21
  808. package/model/shared/condition/word-condition-item-observer.js +0 -165
  809. package/model/shared/condition/word-condition-item-observer.metadata.json +0 -1
  810. package/model/shared/condition/word-condition-model.d.ts +0 -8
  811. package/model/shared/condition/word-condition-model.js +0 -0
  812. package/model/shared/condition/word-condition-model.metadata.json +0 -1
  813. package/model/shared/condition/word-condition.d.ts +0 -5
  814. package/model/shared/condition/word-condition.js +0 -0
  815. package/model/shared/condition/word-condition.metadata.json +0 -1
  816. package/model/shared/data-type/display-data-type.d.ts +0 -5
  817. package/model/shared/data-type/display-data-type.js +0 -6
  818. package/model/shared/data-type/display-data-type.metadata.json +0 -1
  819. package/model/shared/data-type/fbox-data-type.d.ts +0 -15
  820. package/model/shared/data-type/fbox-data-type.js +0 -16
  821. package/model/shared/data-type/fbox-data-type.metadata.json +0 -1
  822. package/model/shared/data-type/fcloud-data-Type.d.ts +0 -8
  823. package/model/shared/data-type/fcloud-data-Type.js +0 -9
  824. package/model/shared/data-type/fcloud-data-Type.metadata.json +0 -1
  825. package/model/shared/dynamic-display/dynamic-behavior-type.d.ts +0 -5
  826. package/model/shared/dynamic-display/dynamic-behavior-type.js +0 -6
  827. package/model/shared/dynamic-display/dynamic-behavior-type.metadata.json +0 -1
  828. package/model/shared/dynamic-display/dynamic-display-behavior-model.d.ts +0 -5
  829. package/model/shared/dynamic-display/dynamic-display-behavior-model.js +0 -0
  830. package/model/shared/dynamic-display/dynamic-display-behavior-model.metadata.json +0 -1
  831. package/model/shared/dynamic-display/dynamic-display-model.js +0 -0
  832. package/model/shared/dynamic-display/dynamic-display-model.metadata.json +0 -1
  833. package/model/shared/dynamic-display/dynamic-display-result-model.d.ts +0 -7
  834. package/model/shared/dynamic-display/dynamic-display-result-model.js +0 -7
  835. package/model/shared/dynamic-display/dynamic-display-result-model.metadata.json +0 -1
  836. package/model/shared/dynamic-display/dynamic-display.d.ts +0 -11
  837. package/model/shared/dynamic-display/dynamic-display.js +0 -35
  838. package/model/shared/dynamic-display/dynamic-display.metadata.json +0 -1
  839. package/model/shared/graph/custom-style.d.ts +0 -14
  840. package/model/shared/graph/custom-style.js +0 -0
  841. package/model/shared/graph/custom-style.metadata.json +0 -1
  842. package/model/shared/graph/graph-setting.d.ts +0 -10
  843. package/model/shared/graph/graph-setting.js +0 -0
  844. package/model/shared/graph/graph-setting.metadata.json +0 -1
  845. package/model/shared/index.js +0 -3
  846. package/model/shared/index.metadata.json +0 -1
  847. package/model/shared/point.model.js +0 -0
  848. package/model/shared/point.model.metadata.json +0 -1
  849. package/model/shared/rotation/rotation-behavior-model.d.ts +0 -4
  850. package/model/shared/rotation/rotation-behavior-model.js +0 -0
  851. package/model/shared/rotation/rotation-behavior-model.metadata.json +0 -1
  852. package/model/shared/rotation/rotation-behavior.d.ts +0 -9
  853. package/model/shared/rotation/rotation-behavior.js +0 -101
  854. package/model/shared/rotation/rotation-behavior.metadata.json +0 -1
  855. package/model/shared/rotation/rotation-direction-type.d.ts +0 -4
  856. package/model/shared/rotation/rotation-direction-type.js +0 -5
  857. package/model/shared/rotation/rotation-direction-type.metadata.json +0 -1
  858. package/model/shared/rotation/rotation-model.d.ts +0 -14
  859. package/model/shared/rotation/rotation-model.js +0 -0
  860. package/model/shared/rotation/rotation-model.metadata.json +0 -1
  861. package/model/shared/rotation/rotation-observer-model.d.ts +0 -4
  862. package/model/shared/rotation/rotation-observer-model.js +0 -0
  863. package/model/shared/rotation/rotation-observer-model.metadata.json +0 -1
  864. package/model/shared/rotation/rotation-observer.d.ts +0 -11
  865. package/model/shared/rotation/rotation-observer.js +0 -28
  866. package/model/shared/rotation/rotation-observer.metadata.json +0 -1
  867. package/model/shared/scale/scale-mark.model.d.ts +0 -6
  868. package/model/shared/scale/scale-mark.model.js +0 -0
  869. package/model/shared/scale/scale-mark.model.metadata.json +0 -1
  870. package/model/shared/scale/scale-model.d.ts +0 -20
  871. package/model/shared/scale/scale-model.js +0 -0
  872. package/model/shared/scale/scale-model.metadata.json +0 -1
  873. package/model/shared/size.model.d.ts +0 -7
  874. package/model/shared/size.model.js +0 -12
  875. package/model/shared/size.model.metadata.json +0 -1
  876. package/model/shared/state/index.js +0 -1
  877. package/model/shared/state/index.metadata.json +0 -1
  878. package/model/shared/state/state.d.ts +0 -8
  879. package/model/shared/state/state.js +0 -9
  880. package/model/shared/state/state.metadata.json +0 -1
  881. package/model/shared/text/font.js +0 -0
  882. package/model/shared/text/font.metadata.json +0 -1
  883. package/model/shared/text/index.js +0 -0
  884. package/model/shared/text/index.metadata.json +0 -1
  885. package/model/shared/text/text.d.ts +0 -5
  886. package/model/shared/text/text.js +0 -0
  887. package/model/shared/text/text.metadata.json +0 -1
  888. package/model/shared/translation/translation-behavior-model.d.ts +0 -4
  889. package/model/shared/translation/translation-behavior-model.js +0 -0
  890. package/model/shared/translation/translation-behavior-model.metadata.json +0 -1
  891. package/model/shared/translation/translation-behavior.d.ts +0 -12
  892. package/model/shared/translation/translation-behavior.js +0 -63
  893. package/model/shared/translation/translation-behavior.metadata.json +0 -1
  894. package/model/shared/translation/translation-direction-type.d.ts +0 -4
  895. package/model/shared/translation/translation-direction-type.js +0 -5
  896. package/model/shared/translation/translation-direction-type.metadata.json +0 -1
  897. package/model/shared/translation/translation-model.js +0 -0
  898. package/model/shared/translation/translation-model.metadata.json +0 -1
  899. package/model/shared/translation/translation-observer-model.d.ts +0 -4
  900. package/model/shared/translation/translation-observer-model.js +0 -0
  901. package/model/shared/translation/translation-observer-model.metadata.json +0 -1
  902. package/model/shared/translation/translation-observer.d.ts +0 -10
  903. package/model/shared/translation/translation-observer.js +0 -27
  904. package/model/shared/translation/translation-observer.metadata.json +0 -1
  905. package/model/shared/variable/variable-identifier.model.d.ts +0 -5
  906. package/model/shared/variable/variable-identifier.model.js +0 -0
  907. package/model/shared/variable/variable-identifier.model.metadata.json +0 -1
  908. package/model/shared/variable/variable-name.model.js +0 -0
  909. package/model/shared/variable/variable-name.model.metadata.json +0 -1
  910. package/model/straight-line/straight-line-model.d.ts +0 -4
  911. package/model/straight-line/straight-line-model.js +0 -0
  912. package/model/straight-line/straight-line-model.metadata.json +0 -1
  913. package/model/switch-indicator-light/bit-indicator-light-settings.js +0 -0
  914. package/model/switch-indicator-light/bit-indicator-light-settings.metadata.json +0 -1
  915. package/model/switch-indicator-light/bit-switch-operation.d.ts +0 -5
  916. package/model/switch-indicator-light/bit-switch-operation.js +0 -6
  917. package/model/switch-indicator-light/bit-switch-operation.metadata.json +0 -1
  918. package/model/switch-indicator-light/bit-switch-settings.d.ts +0 -11
  919. package/model/switch-indicator-light/bit-switch-settings.js +0 -0
  920. package/model/switch-indicator-light/bit-switch-settings.metadata.json +0 -1
  921. package/model/switch-indicator-light/fault-flicker.d.ts +0 -5
  922. package/model/switch-indicator-light/fault-flicker.js +0 -0
  923. package/model/switch-indicator-light/fault-flicker.metadata.json +0 -1
  924. package/model/switch-indicator-light/flicker.d.ts +0 -5
  925. package/model/switch-indicator-light/flicker.js +0 -6
  926. package/model/switch-indicator-light/flicker.metadata.json +0 -1
  927. package/model/switch-indicator-light/index.d.ts +0 -14
  928. package/model/switch-indicator-light/index.js +0 -5
  929. package/model/switch-indicator-light/index.metadata.json +0 -1
  930. package/model/switch-indicator-light/indicator-light-fault-flicker.d.ts +0 -5
  931. package/model/switch-indicator-light/indicator-light-fault-flicker.js +0 -0
  932. package/model/switch-indicator-light/indicator-light-fault-flicker.metadata.json +0 -1
  933. package/model/switch-indicator-light/indicator-light-settings.d.ts +0 -7
  934. package/model/switch-indicator-light/indicator-light-settings.js +0 -0
  935. package/model/switch-indicator-light/indicator-light-settings.metadata.json +0 -1
  936. package/model/switch-indicator-light/indicator-light-type.d.ts +0 -4
  937. package/model/switch-indicator-light/indicator-light-type.js +0 -5
  938. package/model/switch-indicator-light/indicator-light-type.metadata.json +0 -1
  939. package/model/switch-indicator-light/switch-indicator-light.d.ts +0 -33
  940. package/model/switch-indicator-light/switch-indicator-light.js +0 -0
  941. package/model/switch-indicator-light/switch-indicator-light.metadata.json +0 -1
  942. package/model/switch-indicator-light/switch-indicator-state.d.ts +0 -8
  943. package/model/switch-indicator-light/switch-indicator-state.js +0 -0
  944. package/model/switch-indicator-light/switch-indicator-state.metadata.json +0 -1
  945. package/model/switch-indicator-light/switch-settings.d.ts +0 -7
  946. package/model/switch-indicator-light/switch-settings.js +0 -0
  947. package/model/switch-indicator-light/switch-settings.metadata.json +0 -1
  948. package/model/switch-indicator-light/switch-type.d.ts +0 -4
  949. package/model/switch-indicator-light/switch-type.js +0 -5
  950. package/model/switch-indicator-light/switch-type.metadata.json +0 -1
  951. package/model/switch-indicator-light/word-indicator-light-settings.js +0 -0
  952. package/model/switch-indicator-light/word-indicator-light-settings.metadata.json +0 -1
  953. package/model/switch-indicator-light/word-switch-operation.d.ts +0 -5
  954. package/model/switch-indicator-light/word-switch-operation.js +0 -6
  955. package/model/switch-indicator-light/word-switch-operation.metadata.json +0 -1
  956. package/model/switch-indicator-light/word-switch-settings.d.ts +0 -13
  957. package/model/switch-indicator-light/word-switch-settings.js +0 -0
  958. package/model/switch-indicator-light/word-switch-settings.metadata.json +0 -1
  959. package/model/table/table-model.d.ts +0 -9
  960. package/model/table/table-model.js +0 -0
  961. package/model/table/table-model.metadata.json +0 -1
  962. package/model/text/text.model.d.ts +0 -7
  963. package/model/text/text.model.js +0 -0
  964. package/model/text/text.model.metadata.json +0 -1
  965. package/model/video/video.model.d.ts +0 -8
  966. package/model/video/video.model.js +0 -0
  967. package/model/video/video.model.metadata.json +0 -1
  968. package/model/view-operation/index.js +0 -1
  969. package/model/view-operation/index.metadata.json +0 -1
  970. package/model/view-operation/view-operation-element.model.d.ts +0 -19
  971. package/model/view-operation/view-operation-element.model.js +0 -0
  972. package/model/view-operation/view-operation-element.model.metadata.json +0 -1
  973. package/model/view-operation/view-operation-type.d.ts +0 -18
  974. package/model/view-operation/view-operation-type.js +0 -19
  975. package/model/view-operation/view-operation-type.metadata.json +0 -1
  976. package/model/weather/weather-info.d.ts +0 -11
  977. package/model/weather/weather-info.js +0 -2
  978. package/model/weather/weather-info.metadata.json +0 -1
  979. package/model/weather/weather.model.d.ts +0 -7
  980. package/model/weather/weather.model.js +0 -0
  981. package/model/weather/weather.model.metadata.json +0 -1
  982. package/public_api.d.ts +0 -14
  983. package/public_api.js +0 -11
  984. package/public_api.metadata.json +0 -1
  985. package/remote/communication/variable/remote-variable-communicator.d.ts +0 -30
  986. package/remote/communication/variable/remote-variable-communicator.js +0 -215
  987. package/remote/communication/variable/remote-variable-communicator.metadata.json +0 -1
  988. package/remote/communication/variable/remote-variable-protocol.d.ts +0 -13
  989. package/remote/communication/variable/remote-variable-protocol.js +0 -0
  990. package/remote/communication/variable/remote-variable-protocol.metadata.json +0 -1
  991. package/remote/config/graph/get-released-graph-state-result.d.ts +0 -6
  992. package/remote/config/graph/get-released-graph-state-result.js +0 -0
  993. package/remote/config/graph/get-released-graph-state-result.metadata.json +0 -1
  994. package/remote/config/graph/get-released-graph-states.d.ts +0 -4
  995. package/remote/config/graph/get-released-graph-states.js +0 -0
  996. package/remote/config/graph/get-released-graph-states.metadata.json +0 -1
  997. package/remote/config/graph/graph-state-key.d.ts +0 -6
  998. package/remote/config/graph/graph-state-key.js +0 -0
  999. package/remote/config/graph/graph-state-key.metadata.json +0 -1
  1000. package/remote/config/graph/graph-state-result.d.ts +0 -5
  1001. package/remote/config/graph/graph-state-result.js +0 -0
  1002. package/remote/config/graph/graph-state-result.metadata.json +0 -1
  1003. package/remote/config/graph/graph-state.js +0 -0
  1004. package/remote/config/graph/graph-state.metadata.json +0 -1
  1005. package/remote/config/graph/remote-graph-protocol.d.ts +0 -11
  1006. package/remote/config/graph/remote-graph-protocol.js +0 -0
  1007. package/remote/config/graph/remote-graph-protocol.metadata.json +0 -1
  1008. package/remote/config/graph/remote-graph-store.d.ts +0 -16
  1009. package/remote/config/graph/remote-graph-store.js +0 -101
  1010. package/remote/config/graph/remote-graph-store.metadata.json +0 -1
  1011. package/remote/config/image/remote-image-protocol.d.ts +0 -4
  1012. package/remote/config/image/remote-image-protocol.js +0 -0
  1013. package/remote/config/image/remote-image-protocol.metadata.json +0 -1
  1014. package/remote/config/image/remote-image-store.d.ts +0 -8
  1015. package/remote/config/image/remote-image-store.js +0 -19
  1016. package/remote/config/image/remote-image-store.metadata.json +0 -1
  1017. package/remote/config/view/remote-view-protocol.d.ts +0 -8
  1018. package/remote/config/view/remote-view-protocol.js +0 -0
  1019. package/remote/config/view/remote-view-protocol.metadata.json +0 -1
  1020. package/remote/config/view/remote-view-store.d.ts +0 -13
  1021. package/remote/config/view/remote-view-store.js +0 -39
  1022. package/remote/config/view/remote-view-store.metadata.json +0 -1
  1023. package/remote/config/view/view-result.js +0 -0
  1024. package/remote/config/view/view-result.metadata.json +0 -1
  1025. package/remote/index.d.ts +0 -14
  1026. package/remote/index.js +0 -4
  1027. package/remote/index.metadata.json +0 -1
  1028. package/security/index.js +0 -0
  1029. package/security/index.metadata.json +0 -1
  1030. package/security/security-checker.js +0 -0
  1031. package/security/security-checker.metadata.json +0 -1
  1032. package/service/index.d.ts +0 -4
  1033. package/service/index.js +0 -0
  1034. package/service/index.metadata.json +0 -1
  1035. package/service/operation-record/create-operation-record-args.d.ts +0 -5
  1036. package/service/operation-record/create-operation-record-args.js +0 -0
  1037. package/service/operation-record/create-operation-record-args.metadata.json +0 -1
  1038. package/service/operation-record/index.d.ts +0 -3
  1039. package/service/operation-record/index.js +0 -0
  1040. package/service/operation-record/index.metadata.json +0 -1
  1041. package/service/operation-record/operation-record.service.d.ts +0 -4
  1042. package/service/operation-record/operation-record.service.js +0 -0
  1043. package/service/operation-record/operation-record.service.metadata.json +0 -1
  1044. package/service/operation-record/variable-option.model.d.ts +0 -5
  1045. package/service/operation-record/variable-option.model.js +0 -0
  1046. package/service/operation-record/variable-option.model.metadata.json +0 -1
  1047. package/service/permission-checker.js +0 -0
  1048. package/service/permission-checker.metadata.json +0 -1
  1049. package/service/video/index.js +0 -0
  1050. package/service/video/index.metadata.json +0 -1
  1051. package/service/video/video-url.js +0 -0
  1052. package/service/video/video-url.metadata.json +0 -1
  1053. package/service/video/video.service.d.ts +0 -4
  1054. package/service/video/video.service.js +0 -0
  1055. package/service/video/video.service.metadata.json +0 -1
  1056. package/service/weather.service.d.ts +0 -3
  1057. package/service/weather.service.js +0 -0
  1058. package/service/weather.service.metadata.json +0 -1
  1059. package/settings/display-mode.d.ts +0 -10
  1060. package/settings/display-mode.js +0 -11
  1061. package/settings/display-mode.metadata.json +0 -1
  1062. package/settings/global-settings.d.ts +0 -7
  1063. package/settings/global-settings.js +0 -13
  1064. package/settings/global-settings.metadata.json +0 -1
  1065. package/settings/index.js +0 -3
  1066. package/settings/index.metadata.json +0 -1
  1067. package/settings/view-resize-mode.d.ts +0 -10
  1068. package/settings/view-resize-mode.js +0 -11
  1069. package/settings/view-resize-mode.metadata.json +0 -1
  1070. package/shared/config-is-empty-error.d.ts +0 -3
  1071. package/shared/config-is-empty-error.metadata.json +0 -1
  1072. package/shared/disposable.d.ts +0 -3
  1073. package/shared/disposable.js +0 -0
  1074. package/shared/disposable.metadata.json +0 -1
  1075. package/shared/graph-extended-style.js +0 -0
  1076. package/shared/graph-extended-style.metadata.json +0 -1
  1077. package/shared/gui-consts.d.ts +0 -30
  1078. package/shared/gui-consts.js +0 -30
  1079. package/shared/gui-consts.metadata.json +0 -1
  1080. package/shared/index.js +0 -3
  1081. package/shared/index.metadata.json +0 -1
  1082. package/shared/operation-helper.d.ts +0 -6
  1083. package/shared/operation-helper.js +0 -38
  1084. package/shared/operation-helper.metadata.json +0 -1
  1085. package/utils/access-permission.d.ts +0 -5
  1086. package/utils/access-permission.js +0 -6
  1087. package/utils/access-permission.metadata.json +0 -1
  1088. package/utils/access-permission.service.d.ts +0 -11
  1089. package/utils/access-permission.service.js +0 -30
  1090. package/utils/access-permission.service.metadata.json +0 -1
  1091. package/utils/auto-focus.directive.d.ts +0 -6
  1092. package/utils/auto-focus.directive.js +0 -27
  1093. package/utils/auto-focus.directive.metadata.json +0 -1
  1094. package/utils/bs-modal-drag.directive.d.ts +0 -7
  1095. package/utils/bs-modal-drag.directive.js +0 -38
  1096. package/utils/bs-modal-drag.directive.metadata.json +0 -1
  1097. package/utils/data-type/data-type.service.d.ts +0 -60
  1098. package/utils/data-type/data-type.service.js +0 -143
  1099. package/utils/data-type/data-type.service.metadata.json +0 -1
  1100. package/utils/data-type/fbox-data-type.service.d.ts +0 -54
  1101. package/utils/data-type/fbox-data-type.service.js +0 -260
  1102. package/utils/data-type/fbox-data-type.service.metadata.json +0 -1
  1103. package/utils/data-type/fcloud-data-type.service.d.ts +0 -55
  1104. package/utils/data-type/fcloud-data-type.service.js +0 -203
  1105. package/utils/data-type/fcloud-data-type.service.metadata.json +0 -1
  1106. package/utils/fraction-digit.service.d.ts +0 -41
  1107. package/utils/fraction-digit.service.js +0 -133
  1108. package/utils/fraction-digit.service.metadata.json +0 -1
  1109. package/utils/graph-util.d.ts +0 -5
  1110. package/utils/graph-util.js +0 -19
  1111. package/utils/graph-util.metadata.json +0 -1
  1112. package/utils/guid.d.ts +0 -6
  1113. package/utils/guid.js +0 -27
  1114. package/utils/guid.metadata.json +0 -1
  1115. package/utils/index.d.ts +0 -7
  1116. package/utils/index.js +0 -7
  1117. package/utils/index.metadata.json +0 -1
  1118. package/utils/numerical-operation-type.d.ts +0 -4
  1119. package/utils/numerical-operation-type.js +0 -5
  1120. package/utils/numerical-operation-type.metadata.json +0 -1
  1121. package/utils/numerical-operation.service.d.ts +0 -17
  1122. package/utils/numerical-operation.service.js +0 -177
  1123. package/utils/numerical-operation.service.metadata.json +0 -1
  1124. package/utils/variable-util.d.ts +0 -5
  1125. package/utils/variable-util.js +0 -11
  1126. package/utils/variable-util.metadata.json +0 -1
  1127. package/view/popup-view.service.d.ts +0 -7
  1128. package/view/popup-view.service.js +0 -0
  1129. package/view/popup-view.service.metadata.json +0 -1
  1130. package/view/view.service.d.ts +0 -6
  1131. package/view/view.service.js +0 -20
  1132. package/view/view.service.metadata.json +0 -1
  1133. /package/{assets → src/assets}/img/abnormal.svg +0 -0
  1134. /package/{assets → src/assets}/img/alert.svg +0 -0
  1135. /package/{assets → src/assets}/img/disabled.svg +0 -0
  1136. /package/{assets → src/assets}/img/first_page.svg +0 -0
  1137. /package/{assets → src/assets}/img/last_page.svg +0 -0
  1138. /package/{assets → src/assets}/img/loading.svg +0 -0
  1139. /package/{assets → src/assets}/img/next_page.svg +0 -0
  1140. /package/{assets → src/assets}/img/offline.svg +0 -0
  1141. /package/{assets → src/assets}/img/previous_page.svg +0 -0
  1142. /package/{assets → src/assets}/img/unbind.svg +0 -0
  1143. /package/{assets → src/assets}/img/video.jpg +0 -0
  1144. /package/{assets → src/assets}/img/weather/blizzard.png +0 -0
  1145. /package/{assets → src/assets}/img/weather/cloudy.png +0 -0
  1146. /package/{assets → src/assets}/img/weather/extraordinary-heavy-rain.png +0 -0
  1147. /package/{assets → src/assets}/img/weather/fog.png +0 -0
  1148. /package/{assets → src/assets}/img/weather/haze.png +0 -0
  1149. /package/{assets → src/assets}/img/weather/heavy-rain.png +0 -0
  1150. /package/{assets → src/assets}/img/weather/heavy-rainstorm.png +0 -0
  1151. /package/{assets → src/assets}/img/weather/heavy-snow.png +0 -0
  1152. /package/{assets → src/assets}/img/weather/light-rain.png +0 -0
  1153. /package/{assets → src/assets}/img/weather/light-snow.png +0 -0
  1154. /package/{assets → src/assets}/img/weather/location.png +0 -0
  1155. /package/{assets → src/assets}/img/weather/medium-snow.png +0 -0
  1156. /package/{assets → src/assets}/img/weather/moderate-rain.png +0 -0
  1157. /package/{assets → src/assets}/img/weather/overcast.png +0 -0
  1158. /package/{assets → src/assets}/img/weather/rain-icon.png +0 -0
  1159. /package/{assets → src/assets}/img/weather/rainstorm.png +0 -0
  1160. /package/{assets → src/assets}/img/weather/sandstorm.png +0 -0
  1161. /package/{assets → src/assets}/img/weather/severe-haze.png +0 -0
  1162. /package/{assets → src/assets}/img/weather/shower.png +0 -0
  1163. /package/{assets → src/assets}/img/weather/sink-float.png +0 -0
  1164. /package/{assets → src/assets}/img/weather/sleet.png +0 -0
  1165. /package/{assets → src/assets}/img/weather/snow-shower.png +0 -0
  1166. /package/{assets → src/assets}/img/weather/strong-sandstorm.png +0 -0
  1167. /package/{assets → src/assets}/img/weather/sunny.png +0 -0
  1168. /package/{assets → src/assets}/img/weather/thick-fog.png +0 -0
  1169. /package/{assets → src/assets}/img/weather/thunder-shower.png +0 -0
  1170. /package/{assets → src/assets}/img/weather/windy.png +0 -0
  1171. /package/{communication/index.d.ts → src/communication/index.ts} +0 -0
  1172. /package/{communication/variable/index.d.ts → src/communication/variable/index.ts} +0 -0
  1173. /package/{config/history-data/index.d.ts → src/config/history-data/index.ts} +0 -0
  1174. /package/{config/variable/index.d.ts → src/config/variable/index.ts} +0 -0
  1175. /package/{core/index.d.ts → src/core/index.ts} +0 -0
  1176. /package/{elements/base/index.d.ts → src/elements/base/index.ts} +0 -0
  1177. /package/{elements/historical-curve/historical-curve.element.option.d.ts → src/elements/historical-curve/historical-curve.element.option.ts} +0 -0
  1178. /package/{elements/historical-curve/historical-curve.time-period.d.ts → src/elements/historical-curve/historical-curve.time-period.ts} +0 -0
  1179. /package/{gui → src/gui}/gui.component.html +0 -0
  1180. /package/{localization/index.d.ts → src/localization/index.ts} +0 -0
  1181. /package/{logger/index.d.ts → src/logger/index.ts} +0 -0
  1182. /package/{modal → src/modal}/alert/alert-modal.component.html +0 -0
  1183. /package/{modal → src/modal}/alert/alert-modal.component.less +0 -0
  1184. /package/{modal → src/modal}/confirm-operation/confirm-operation-modal.component.html +0 -0
  1185. /package/{modal → src/modal}/confirm-operation/confirm-operation-modal.component.less +0 -0
  1186. /package/{modal → src/modal}/verify-password/verify-password-modal.component.html +0 -0
  1187. /package/{modal → src/modal}/verify-password/verify-password-modal.component.less +0 -0
  1188. /package/{modal → src/modal}/write-character/write-character-modal.component.html +0 -0
  1189. /package/{modal → src/modal}/write-character/write-character-modal.component.less +0 -0
  1190. /package/{modal → src/modal}/write-value/write-value-modal.component.less +0 -0
  1191. /package/{model/bar-graph/FontStyleData.d.ts → src/model/bar-graph/FontStyleData.ts} +0 -0
  1192. /package/{model/base/index.d.ts → src/model/base/index.ts} +0 -0
  1193. /package/{model/base/security-model.d.ts → src/model/base/security-model.ts} +0 -0
  1194. /package/{model/historical-curve/index.d.ts → src/model/historical-curve/index.ts} +0 -0
  1195. /package/{model/index.d.ts → src/model/index.ts} +0 -0
  1196. /package/{model/numerical-display/proportional-conversion.d.ts → src/model/numerical-display/proportional-conversion.ts} +0 -0
  1197. /package/{model/numerical-display/type-settings.d.ts → src/model/numerical-display/type-settings.ts} +0 -0
  1198. /package/{model/numerical-display/zoom.d.ts → src/model/numerical-display/zoom.ts} +0 -0
  1199. /package/{model/pipe/index.d.ts → src/model/pipe/index.ts} +0 -0
  1200. /package/{model/settings/index.d.ts → src/model/settings/index.ts} +0 -0
  1201. /package/{model/shared/alarm/alarm-range.model.d.ts → src/model/shared/alarm/alarm-range.model.ts} +0 -0
  1202. /package/{model/shared/arc.model.d.ts → src/model/shared/arc.model.ts} +0 -0
  1203. /package/{model/shared/condition/condition-model.d.ts → src/model/shared/condition/condition-model.ts} +0 -0
  1204. /package/{model/shared/dynamic-display/dynamic-display-model.d.ts → src/model/shared/dynamic-display/dynamic-display-model.ts} +0 -0
  1205. /package/{model/shared/index.d.ts → src/model/shared/index.ts} +0 -0
  1206. /package/{model/shared/point.model.d.ts → src/model/shared/point.model.ts} +0 -0
  1207. /package/{model/shared/state/index.d.ts → src/model/shared/state/index.ts} +0 -0
  1208. /package/{model/shared/text/font.d.ts → src/model/shared/text/font.ts} +0 -0
  1209. /package/{model/shared/text/index.d.ts → src/model/shared/text/index.ts} +0 -0
  1210. /package/{model/shared/translation/translation-model.d.ts → src/model/shared/translation/translation-model.ts} +0 -0
  1211. /package/{model/shared/variable/variable-name.model.d.ts → src/model/shared/variable/variable-name.model.ts} +0 -0
  1212. /package/{model/switch-indicator-light/bit-indicator-light-settings.d.ts → src/model/switch-indicator-light/bit-indicator-light-settings.ts} +0 -0
  1213. /package/{model/switch-indicator-light/word-indicator-light-settings.d.ts → src/model/switch-indicator-light/word-indicator-light-settings.ts} +0 -0
  1214. /package/{model/view-operation/index.d.ts → src/model/view-operation/index.ts} +0 -0
  1215. /package/{remote/config/graph/graph-state.d.ts → src/remote/config/graph/graph-state.ts} +0 -0
  1216. /package/{remote/config/view/view-result.d.ts → src/remote/config/view/view-result.ts} +0 -0
  1217. /package/{security/index.d.ts → src/security/index.ts} +0 -0
  1218. /package/{security/security-checker.d.ts → src/security/security-checker.ts} +0 -0
  1219. /package/{service/permission-checker.d.ts → src/service/permission-checker.ts} +0 -0
  1220. /package/{service/video/index.d.ts → src/service/video/index.ts} +0 -0
  1221. /package/{service/video/video-url.d.ts → src/service/video/video-url.ts} +0 -0
  1222. /package/{settings/index.d.ts → src/settings/index.ts} +0 -0
  1223. /package/{shared/config-is-empty-error.js → src/shared/config-is-empty-error.ts} +0 -0
  1224. /package/{shared/graph-extended-style.d.ts → src/shared/graph-extended-style.ts} +0 -0
  1225. /package/{shared/index.d.ts → src/shared/index.ts} +0 -0
@@ -1,47 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("rxjs/operators"),require("@angular/common"),require("@angular/forms"),require("rxjs/internal/Subject")):"function"==typeof define&&define.amd?define(["@angular/core","rxjs/operators","@angular/common","@angular/forms","rxjs/internal/Subject"],e):"object"==typeof exports?exports["@flexem/fc-gui.umd.min"]=e(require("@angular/core"),require("rxjs/operators"),require("@angular/common"),require("@angular/forms"),require("rxjs/internal/Subject")):t["@flexem/fc-gui.umd.min"]=e(t["@angular/core"],t["rxjs/operators"],t["@angular/common"],t["@angular/forms"],t["rxjs/internal/Subject"])}(window,function(t,e,n,r,i){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=271)}([function(e,n){e.exports=t},function(t,e,n){(function(t){t.exports=function(){"use strict";var e,r;function i(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function l(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function c(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t,e){for(var n in e)d(e,n)&&(t[n]=e[n]);return d(e,"toString")&&(t.toString=e.toString),d(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,r){return Ce(t,e,n,r,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=m(t),n=r.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function g(t){var e=f(NaN);return null!=t?h(m(e),t):m(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var v=i.momentProperties=[];function _(t,e){var n,r,i;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=m(e)),s(e._locale)||(t._locale=e._locale),v.length>0)for(n=0;n<v.length;n++)r=v[n],s(i=e[r])||(t[r]=i);return t}var y=!1;function b(t){_(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function M(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function x(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=w(e)),n}function k(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&x(t[r])!==x(e[r]))&&o++;return o+a}function L(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,e){var n=!0;return h(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var r,a=[],o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(var s in r+="\n["+o+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[o];a.push(r)}L(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var Y,T={};function D(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),T[t]||(L(e),T[t]=!0)}function C(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function E(t,e){var n,r=h({},t);for(n in e)d(e,n)&&(o(t[n])&&o(e[n])?(r[n]={},h(r[n],t[n]),h(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)d(t,n)&&!d(e,n)&&o(t[n])&&(r[n]=h({},r[n]));return r}function O(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,Y=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)d(t,e)&&n.push(e);return n};var A={};function j(t,e){var n=t.toLowerCase();A[n]=A[n+"s"]=A[e]=t}function H(t){return"string"==typeof t?A[t]||A[t.toLowerCase()]:void 0}function N(t){var e,n,r={};for(n in t)d(t,n)&&(e=H(n))&&(r[e]=t[n]);return r}var P={};function F(t,e){P[t]=e}function V(t,e,n){var r=""+Math.abs(t),i=e-r.length,a=t>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},z={};function B(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(z[t]=i),e&&(z[e[0]]=function(){return V(i.apply(this,arguments),e[1],e[2])}),n&&(z[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function G(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t,e){return t.isValid()?(e=$(e,t.localeData()),R[e]=R[e]||function(t){var e,n,r=t.match(I);for(e=0,n=r.length;e<n;e++)z[r[e]]?r[e]=z[r[e]]:r[e]=G(r[e]);return function(e){var i,a="";for(i=0;i<n;i++)a+=C(r[i])?r[i].call(e,t):r[i];return a}}(e),R[e](t)):t.localeData().invalidDate()}function $(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(W.lastIndex=0;n>=0&&W.test(t);)t=t.replace(W,r),W.lastIndex=0,n-=1;return t}var q=/\d/,J=/\d\d/,Z=/\d{3}/,X=/\d{4}/,K=/[+-]?\d{6}/,Q=/\d\d?/,tt=/\d\d\d\d?/,et=/\d\d\d\d\d\d?/,nt=/\d{1,3}/,rt=/\d{1,4}/,it=/[+-]?\d{1,6}/,at=/\d+/,ot=/[+-]?\d+/,st=/Z|[+-]\d\d:?\d\d/gi,ut=/Z|[+-]\d\d(?::?\d\d)?/gi,lt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ct={};function dt(t,e,n){ct[t]=C(e)?e:function(t,r){return t&&n?n:e}}function ht(t,e){return d(ct,t)?ct[t](e._strict,e._locale):new RegExp(function(t){return ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}(t))}function ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var mt={};function pt(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),u(e)&&(r=function(t,n){n[e]=x(t)}),n=0;n<t.length;n++)mt[t[n]]=r}function gt(t,e){pt(t,function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)})}function vt(t,e,n){null!=e&&d(mt,t)&&mt[t](e,n._a,n,t)}var _t=0,yt=1,bt=2,Mt=3,wt=4,xt=5,kt=6,Lt=7,St=8;function Yt(t){return Tt(t)?366:365}function Tt(t){return t%4==0&&t%100!=0||t%400==0}B("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),j("year","y"),F("year",1),dt("Y",ot),dt("YY",Q,J),dt("YYYY",rt,X),dt("YYYYY",it,K),dt("YYYYYY",it,K),pt(["YYYYY","YYYYYY"],_t),pt("YYYY",function(t,e){e[_t]=2===t.length?i.parseTwoDigitYear(t):x(t)}),pt("YY",function(t,e){e[_t]=i.parseTwoDigitYear(t)}),pt("Y",function(t,e){e[_t]=parseInt(t,10)}),i.parseTwoDigitYear=function(t){return x(t)+(x(t)>68?1900:2e3)};var Dt,Ct=Et("FullYear",!0);function Et(t,e){return function(n){return null!=n?(At(this,t,n),i.updateOffset(this,e),this):Ot(this,t)}}function Ot(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function At(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),jt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function jt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-n)/12,1===n?Tt(t)?29:28:31-n%7%2}Dt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),B("MMMM",0,0,function(t){return this.localeData().months(this,t)}),j("month","M"),F("month",8),dt("M",Q),dt("MM",Q,J),dt("MMM",function(t,e){return e.monthsShortRegex(t)}),dt("MMMM",function(t,e){return e.monthsRegex(t)}),pt(["M","MM"],function(t,e){e[yt]=x(t)-1}),pt(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[yt]=i:m(n).invalidMonth=t});var Ht=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ft(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=x(e);else if(!u(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),jt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Vt(t){return null!=t?(Ft(this,t),i.updateOffset(this,!0),this):Ot(this,"Month")}var It=lt,Wt=lt;function Rt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=f([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),a.sort(t),e=0;e<12;e++)r[e]=ft(r[e]),i[e]=ft(i[e]);for(e=0;e<24;e++)a[e]=ft(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function zt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Bt(t,e,n){var r=7+e-n,i=(7+zt(t,0,r).getUTCDay()-e)%7;return-i+r-1}function Gt(t,e,n,r,i){var a,o,s=(7+n-r)%7,u=Bt(t,r,i),l=1+7*(e-1)+s+u;return l<=0?o=Yt(a=t-1)+l:l>Yt(t)?(a=t+1,o=l-Yt(t)):(a=t,o=l),{year:a,dayOfYear:o}}function Ut(t,e,n){var r,i,a=Bt(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?(i=t.year()-1,r=o+$t(i,e,n)):o>$t(t.year(),e,n)?(r=o-$t(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function $t(t,e,n){var r=Bt(t,e,n),i=Bt(t+1,e,n);return(Yt(t)-r+i)/7}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),F("week",5),F("isoWeek",5),dt("w",Q),dt("ww",Q,J),dt("W",Q),dt("WW",Q,J),gt(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=x(t)}),B("d",0,"do","day"),B("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),B("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),B("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),dt("d",Q),dt("e",Q),dt("E",Q),dt("dd",function(t,e){return e.weekdaysMinRegex(t)}),dt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),dt("dddd",function(t,e){return e.weekdaysRegex(t)}),gt(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:m(n).invalidWeekday=t}),gt(["d","e","E"],function(t,e,n,r){e[r]=x(t)});var qt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xt=lt,Kt=lt,Qt=lt;function te(){function t(t,e){return e.length-t.length}var e,n,r,i,a,o=[],s=[],u=[],l=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),u.push(a),l.push(r),l.push(i),l.push(a);for(o.sort(t),s.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)s[e]=ft(s[e]),u[e]=ft(u[e]),l[e]=ft(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function ee(){return this.hours()%12||12}function ne(t,e){B(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function re(t,e){return e._meridiemParse}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,ee),B("k",["kk",2],0,function(){return this.hours()||24}),B("hmm",0,0,function(){return""+ee.apply(this)+V(this.minutes(),2)}),B("hmmss",0,0,function(){return""+ee.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+V(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)}),ne("a",!0),ne("A",!1),j("hour","h"),F("hour",13),dt("a",re),dt("A",re),dt("H",Q),dt("h",Q),dt("k",Q),dt("HH",Q,J),dt("hh",Q,J),dt("kk",Q,J),dt("hmm",tt),dt("hmmss",et),dt("Hmm",tt),dt("Hmmss",et),pt(["H","HH"],Mt),pt(["k","kk"],function(t,e,n){var r=x(t);e[Mt]=24===r?0:r}),pt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),pt(["h","hh"],function(t,e,n){e[Mt]=x(t),m(n).bigHour=!0}),pt("hmm",function(t,e,n){var r=t.length-2;e[Mt]=x(t.substr(0,r)),e[wt]=x(t.substr(r)),m(n).bigHour=!0}),pt("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[Mt]=x(t.substr(0,r)),e[wt]=x(t.substr(r,2)),e[xt]=x(t.substr(i)),m(n).bigHour=!0}),pt("Hmm",function(t,e,n){var r=t.length-2;e[Mt]=x(t.substr(0,r)),e[wt]=x(t.substr(r))}),pt("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[Mt]=x(t.substr(0,r)),e[wt]=x(t.substr(r,2)),e[xt]=x(t.substr(i))});var ie,ae=Et("Hours",!0),oe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Nt,monthsShort:Pt,week:{dow:0,doy:6},weekdays:qt,weekdaysMin:Zt,weekdaysShort:Jt,meridiemParse:/[ap]\.?m?\.?/i},se={},ue={};function le(t){return t?t.toLowerCase().replace("_","-"):t}function ce(e){var r=null;if(!se[e]&&void 0!==t&&t&&t.exports)try{r=ie._abbr,n(269)("./"+e),de(r)}catch(t){}return se[e]}function de(t,e){var n;return t&&((n=s(e)?fe(t):he(t,e))?ie=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ie._abbr}function he(t,e){if(null!==e){var n,r=oe;if(e.abbr=t,null!=se[t])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=se[t]._config;else if(null!=e.parentLocale)if(null!=se[e.parentLocale])r=se[e.parentLocale]._config;else{if(null==(n=ce(e.parentLocale)))return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;r=n._config}return se[t]=new O(E(r,e)),ue[t]&&ue[t].forEach(function(t){he(t.name,t.config)}),de(t),se[t]}return delete se[t],null}function fe(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ie;if(!a(t)){if(e=ce(t))return e;t=[t]}return function(t){for(var e,n,r,i,a=0;a<t.length;){for(i=le(t[a]).split("-"),e=i.length,n=(n=le(t[a+1]))?n.split("-"):null;e>0;){if(r=ce(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&k(i,n,!0)>=e-1)break;e--}a++}return ie}(t)}function me(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[yt]<0||n[yt]>11?yt:n[bt]<1||n[bt]>jt(n[_t],n[yt])?bt:n[Mt]<0||n[Mt]>24||24===n[Mt]&&(0!==n[wt]||0!==n[xt]||0!==n[kt])?Mt:n[wt]<0||n[wt]>59?wt:n[xt]<0||n[xt]>59?xt:n[kt]<0||n[kt]>999?kt:-1,m(t)._overflowDayOfYear&&(e<_t||e>bt)&&(e=bt),m(t)._overflowWeeks&&-1===e&&(e=Lt),m(t)._overflowWeekday&&-1===e&&(e=St),m(t).overflow=e),t}function pe(t,e,n){return null!=t?t:null!=e?e:n}function ge(t){var e,n,r,a,o,s=[];if(!t._d){for(r=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[bt]&&null==t._a[yt]&&function(t){var e,n,r,i,a,o,s,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)a=1,o=4,n=pe(e.GG,t._a[_t],Ut(Ee(),1,4).year),r=pe(e.W,1),((i=pe(e.E,1))<1||i>7)&&(u=!0);else{a=t._locale._week.dow,o=t._locale._week.doy;var l=Ut(Ee(),a,o);n=pe(e.gg,t._a[_t],l.year),r=pe(e.w,l.week),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+a,(e.e<0||e.e>6)&&(u=!0)):i=a}r<1||r>$t(n,a,o)?m(t)._overflowWeeks=!0:null!=u?m(t)._overflowWeekday=!0:(s=Gt(n,r,i,a,o),t._a[_t]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(o=pe(t._a[_t],r[_t]),(t._dayOfYear>Yt(o)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=zt(o,0,t._dayOfYear),t._a[yt]=n.getUTCMonth(),t._a[bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Mt]&&0===t._a[wt]&&0===t._a[xt]&&0===t._a[kt]&&(t._nextDay=!0,t._a[Mt]=0),t._d=(t._useUTC?zt:function(t,e,n,r,i,a,o){var s=new Date(t,e,n,r,i,a,o);return t<100&&t>=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}).apply(null,s),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Mt]=24),t._w&&void 0!==t._w.d&&t._w.d!==a&&(m(t).weekdayMismatch=!0)}}var ve=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_e=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ye=/Z|[+-]\d\d(?::?\d\d)?/,be=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Me=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],we=/^\/?Date\((\-?\d+)/i;function xe(t){var e,n,r,i,a,o,s=t._i,u=ve.exec(s)||_e.exec(s);if(u){for(m(t).iso=!0,e=0,n=be.length;e<n;e++)if(be[e][1].exec(u[1])){i=be[e][0],r=!1!==be[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=Me.length;e<n;e++)if(Me[e][1].exec(u[3])){a=(u[2]||" ")+Me[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(u[4]){if(!ye.exec(u[4]))return void(t._isValid=!1);o="Z"}t._f=i+(a||"")+(o||""),Te(t)}else t._isValid=!1}var ke=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Le(t,e,n,r,i,a){var o=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(t),Pt.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}var Se={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ye(t){var e=ke.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t._i));if(e){var n=Le(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,n){if(t){var r=Jt.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return m(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(e[1],n,t))return;t._a=n,t._tzm=function(t,e,n){if(t)return Se[t];if(e)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return 60*a+i}(e[8],e[9],e[10]),t._d=zt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Te(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],m(t).empty=!0;var e,n,r,a,o,s=""+t._i,u=s.length,l=0;for(r=$(t._f,t._locale).match(I)||[],e=0;e<r.length;e++)a=r[e],(n=(s.match(ht(a,t))||[])[0])&&((o=s.substr(0,s.indexOf(n))).length>0&&m(t).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),l+=n.length),z[a]?(n?m(t).empty=!1:m(t).unusedTokens.push(a),vt(a,n,t)):t._strict&&!n&&m(t).unusedTokens.push(a);m(t).charsLeftOver=u-l,s.length>0&&m(t).unusedInput.push(s),t._a[Mt]<=12&&!0===m(t).bigHour&&t._a[Mt]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[Mt]=function(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}(t._locale,t._a[Mt],t._meridiem),ge(t),me(t)}else Ye(t);else xe(t)}function De(t){var e=t._i,n=t._f;return t._locale=t._locale||fe(t._l),null===e||void 0===n&&""===e?g({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),M(e)?new b(me(e)):(l(e)?t._d=e:a(n)?function(t){var e,n,r,i,a;if(0===t._f.length)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)a=0,e=_({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Te(e),p(e)&&(a+=m(e).charsLeftOver,a+=10*m(e).unusedTokens.length,m(e).score=a,(null==r||a<r)&&(r=a,n=e));h(t,n||e)}(t):n?Te(t):function(t){var e=t._i;s(e)?t._d=new Date(i.now()):l(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=we.exec(t._i);null===e?(xe(t),!1===t._isValid&&(delete t._isValid,Ye(t),!1===t._isValid&&(delete t._isValid,i.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):a(e)?(t._a=c(e.slice(0),function(t){return parseInt(t,10)}),ge(t)):o(e)?function(t){if(!t._d){var e=N(t._i);t._a=c([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ge(t)}}(t):u(e)?t._d=new Date(e):i.createFromInputFallback(t)}(t),p(t)||(t._d=null),t))}function Ce(t,e,n,r,i){var s={};return!0!==n&&!1!==n||(r=n,n=void 0),(o(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||a(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=t,s._f=e,s._strict=r,function(t){var e=new b(me(De(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}(s)}function Ee(t,e,n,r){return Ce(t,e,n,r,!1)}i.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Oe=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ee.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()}),Ae=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ee.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:g()});function je(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Ee();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var He=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ne(t){var e=N(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||0,o=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Dt.call(He,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<He.length;++r)if(t[He[r]]){if(n)return!1;parseFloat(t[He[r]])!==x(t[He[r]])&&(n=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=fe(),this._bubble()}function Pe(t){return t instanceof Ne}function Fe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ve(t,e){B(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+V(~~(t/60),2)+e+V(~~t%60,2)})}Ve("Z",":"),Ve("ZZ",""),dt("Z",ut),dt("ZZ",ut),pt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=We(ut,t)});var Ie=/([\+\-]|\d\d)/gi;function We(t,e){var n=(e||"").match(t);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Ie)||["-",0,0],a=60*i[1]+x(i[2]);return 0===a?0:"+"===i[0]?a:-a}function Re(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(M(t)||l(t)?t.valueOf():Ee(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Ee(t).local()}function ze(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ge=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ue=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $e(t,e){var n,r,i,a=t,o=null;return Pe(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:u(t)?(a={},e?a[e]=t:a.milliseconds=t):(o=Ge.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:x(o[bt])*n,h:x(o[Mt])*n,m:x(o[wt])*n,s:x(o[xt])*n,ms:x(Fe(1e3*o[kt]))*n}):(o=Ue.exec(t))?(n="-"===o[1]?-1:(o[1],1),a={y:qe(o[2],n),M:qe(o[3],n),w:qe(o[4],n),d:qe(o[5],n),h:qe(o[6],n),m:qe(o[7],n),s:qe(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=function(t,e){var n;return t.isValid()&&e.isValid()?(e=Re(e,t),t.isBefore(e)?n=Je(t,e):((n=Je(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Ee(a.from),Ee(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new Ne(a),Pe(t)&&d(t,"_locale")&&(r._locale=t._locale),r}function qe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Je(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ze(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(D(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Xe(this,$e(n="string"==typeof n?+n:n,r),t),this}}function Xe(t,e,n,r){var a=e._milliseconds,o=Fe(e._days),s=Fe(e._months);t.isValid()&&(r=null==r||r,s&&Ft(t,Ot(t,"Month")+s*n),o&&At(t,"Date",Ot(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),r&&i.updateOffset(t,o||s))}$e.fn=Ne.prototype,$e.invalid=function(){return $e(NaN)};var Ke=Ze(1,"add"),Qe=Ze(-1,"subtract");function tn(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),a=t.clone().add(i,"months");return e-a<0?(n=t.clone().add(i-1,"months"),r=(e-a)/(a-n)):(n=t.clone().add(i+1,"months"),r=(e-a)/(n-a)),-(i+r)||0}function en(t){var e;return void 0===t?this._locale._abbr:(null!=(e=fe(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var nn=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function rn(){return this._locale}function an(t,e){B(0,[t,t.length],0,e)}function on(t,e,n,r,i){var a;return null==t?Ut(this,r,i).year:(a=$t(t,r,i),e>a&&(e=a),function(t,e,n,r,i){var a=Gt(t,e,n,r,i),o=zt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,t,e,n,r,i))}B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),dt("G",ot),dt("g",ot),dt("GG",Q,J),dt("gg",Q,J),dt("GGGG",rt,X),dt("gggg",rt,X),dt("GGGGG",it,K),dt("ggggg",it,K),gt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=x(t)}),gt(["gg","GG"],function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)}),B("Q",0,"Qo","quarter"),j("quarter","Q"),F("quarter",7),dt("Q",q),pt("Q",function(t,e){e[yt]=3*(x(t)-1)}),B("D",["DD",2],"Do","date"),j("date","D"),F("date",9),dt("D",Q),dt("DD",Q,J),dt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),pt(["D","DD"],bt),pt("Do",function(t,e){e[bt]=x(t.match(Q)[0])});var sn=Et("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),F("dayOfYear",4),dt("DDD",nt),dt("DDDD",Z),pt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=x(t)}),B("m",["mm",2],0,"minute"),j("minute","m"),F("minute",14),dt("m",Q),dt("mm",Q,J),pt(["m","mm"],wt);var un=Et("Minutes",!1);B("s",["ss",2],0,"second"),j("second","s"),F("second",15),dt("s",Q),dt("ss",Q,J),pt(["s","ss"],xt);var ln,cn=Et("Seconds",!1);for(B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),F("millisecond",16),dt("S",nt,q),dt("SS",nt,J),dt("SSS",nt,Z),ln="SSSS";ln.length<=9;ln+="S")dt(ln,at);function dn(t,e){e[kt]=x(1e3*("0."+t))}for(ln="S";ln.length<=9;ln+="S")pt(ln,dn);var hn=Et("Milliseconds",!1);B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var fn=b.prototype;function mn(t){return t}fn.add=Ke,fn.calendar=function(t,e){var n=t||Ee(),r=Re(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=e&&(C(e[a])?e[a].call(this,n):e[a]);return this.format(o||this.localeData().calendar(a,this,Ee(n)))},fn.clone=function(){return new b(this)},fn.diff=function(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=Re(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=H(e)){case"year":a=tn(this,r)/12;break;case"month":a=tn(this,r);break;case"quarter":a=tn(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:w(a)},fn.endOf=function(t){return void 0===(t=H(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},fn.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},fn.from=function(t,e){return this.isValid()&&(M(t)&&t.isValid()||Ee(t).isValid())?$e({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},fn.fromNow=function(t){return this.from(Ee(),t)},fn.to=function(t,e){return this.isValid()&&(M(t)&&t.isValid()||Ee(t).isValid())?$e({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},fn.toNow=function(t){return this.to(Ee(),t)},fn.get=function(t){return C(this[t=H(t)])?this[t]():this},fn.invalidAt=function(){return m(this).overflow},fn.isAfter=function(t,e){var n=M(t)?t:Ee(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=H(s(e)?"millisecond":e))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},fn.isBefore=function(t,e){var n=M(t)?t:Ee(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=H(s(e)?"millisecond":e))?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},fn.isBetween=function(t,e,n,r){return("("===(r=r||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===r[1]?this.isBefore(e,n):!this.isAfter(e,n))},fn.isSame=function(t,e){var n,r=M(t)?t:Ee(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=H(e||"millisecond"))?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},fn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},fn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},fn.isValid=function(){return p(this)},fn.lang=nn,fn.locale=en,fn.localeData=rn,fn.max=Ae,fn.min=Oe,fn.parsingFlags=function(){return h({},m(this))},fn.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:P[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=N(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(C(this[t=H(t)]))return this[t](e);return this},fn.startOf=function(t){switch(t=H(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},fn.subtract=Qe,fn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},fn.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},fn.toDate=function(){return new Date(this.valueOf())},fn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.year=Ct,fn.isLeapYear=function(){return Tt(this.year())},fn.weekYear=function(t){return on.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(t){return on.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},fn.month=Vt,fn.daysInMonth=function(){return jt(this.year(),this.month())},fn.week=fn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},fn.isoWeek=fn.isoWeeks=function(t){var e=Ut(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},fn.weeksInYear=function(){var t=this.localeData()._week;return $t(this.year(),t.dow,t.doy)},fn.isoWeeksInYear=function(){return $t(this.year(),1,4)},fn.date=sn,fn.day=fn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},fn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},fn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},fn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},fn.hour=fn.hours=ae,fn.minute=fn.minutes=un,fn.second=fn.seconds=cn,fn.millisecond=fn.milliseconds=hn,fn.utcOffset=function(t,e,n){var r,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=We(ut,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=ze(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==t&&(!e||this._changeInProgress?Xe(this,$e(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:ze(this)},fn.utc=function(t){return this.utcOffset(0,t)},fn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ze(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=We(st,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ee(t).utcOffset():0,(this.utcOffset()-t)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Be,fn.isUTC=Be,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=S("dates accessor is deprecated. Use date instead.",sn),fn.months=S("months accessor is deprecated. Use month instead",Vt),fn.years=S("years accessor is deprecated. Use year instead",Ct),fn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),fn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(_(t,this),(t=De(t))._a){var e=t._isUTC?f(t._a):Ee(t._a);this._isDSTShifted=this.isValid()&&k(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var pn=O.prototype;function gn(t,e,n,r){var i=fe(),a=f().set(r,e);return i[n](a,t)}function vn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return gn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=gn(t,r,n,"month");return i}function _n(t,e,n,r){"boolean"==typeof t?(u(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,u(e)&&(n=e,e=void 0),e=e||"");var i,a=fe(),o=t?a._week.dow:0;if(null!=n)return gn(e,(n+o)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=gn(e,(i+o)%7,r,"day");return s}pn.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return C(r)?r.call(e,n):r},pn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},pn.invalidDate=function(){return this._invalidDate},pn.ordinal=function(t){return this._ordinal.replace("%d",t)},pn.preparse=mn,pn.postformat=mn,pn.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return C(i)?i(t,e,n,r):i.replace(/%d/i,t)},pn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return C(n)?n(e):n.replace(/%s/i,e)},pn.set=function(t){var e,n;for(n in t)C(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},pn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ht).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},pn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ht.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},pn.monthsParse=function(t,e,n){var r,i,a;if(this._monthsParseExact)return function(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Dt.call(this._shortMonthsParse,o))?i:null:-1!==(i=Dt.call(this._longMonthsParse,o))?i:null:"MMM"===e?-1!==(i=Dt.call(this._shortMonthsParse,o))?i:-1!==(i=Dt.call(this._longMonthsParse,o))?i:null:-1!==(i=Dt.call(this._longMonthsParse,o))?i:-1!==(i=Dt.call(this._shortMonthsParse,o))?i:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},pn.monthsRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||Rt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Wt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},pn.monthsShortRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||Rt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=It),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},pn.week=function(t){return Ut(t,this._week.dow,this._week.doy).week},pn.firstDayOfYear=function(){return this._week.doy},pn.firstDayOfWeek=function(){return this._week.dow},pn.weekdays=function(t,e){return t?a(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone},pn.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},pn.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},pn.weekdaysParse=function(t,e,n){var r,i,a;if(this._weekdaysParseExact)return function(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Dt.call(this._weekdaysParse,o))?i:null:"ddd"===e?-1!==(i=Dt.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=Dt.call(this._minWeekdaysParse,o))?i:null:"dddd"===e?-1!==(i=Dt.call(this._weekdaysParse,o))?i:-1!==(i=Dt.call(this._shortWeekdaysParse,o))?i:-1!==(i=Dt.call(this._minWeekdaysParse,o))?i:null:"ddd"===e?-1!==(i=Dt.call(this._shortWeekdaysParse,o))?i:-1!==(i=Dt.call(this._weekdaysParse,o))?i:-1!==(i=Dt.call(this._minWeekdaysParse,o))?i:null:-1!==(i=Dt.call(this._minWeekdaysParse,o))?i:-1!==(i=Dt.call(this._weekdaysParse,o))?i:-1!==(i=Dt.call(this._shortWeekdaysParse,o))?i:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},pn.weekdaysRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||te.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Xt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},pn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||te.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},pn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||te.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},pn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},pn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},de("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),i.lang=S("moment.lang is deprecated. Use moment.locale instead.",de),i.langData=S("moment.langData is deprecated. Use moment.localeData instead.",fe);var yn=Math.abs;function bn(t,e,n,r){var i=$e(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Mn(t){return t<0?Math.floor(t):Math.ceil(t)}function wn(t){return 4800*t/146097}function xn(t){return 146097*t/4800}function kn(t){return function(){return this.as(t)}}var Ln=kn("ms"),Sn=kn("s"),Yn=kn("m"),Tn=kn("h"),Dn=kn("d"),Cn=kn("w"),En=kn("M"),On=kn("y");function An(t){return function(){return this.isValid()?this._data[t]:NaN}}var jn=An("milliseconds"),Hn=An("seconds"),Nn=An("minutes"),Pn=An("hours"),Fn=An("days"),Vn=An("months"),In=An("years"),Wn=Math.round,Rn={ss:44,s:45,m:45,h:22,d:26,M:11},zn=Math.abs;function Bn(t){return(t>0)-(t<0)||+t}function Gn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=zn(this._milliseconds)/1e3,r=zn(this._days),i=zn(this._months);t=w(n/60),e=w(t/60),n%=60,t%=60;var a=w(i/12),o=i%=12,s=r,u=e,l=t,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=Bn(this._months)!==Bn(d)?"-":"",m=Bn(this._days)!==Bn(d)?"-":"",p=Bn(this._milliseconds)!==Bn(d)?"-":"";return h+"P"+(a?f+a+"Y":"")+(o?f+o+"M":"")+(s?m+s+"D":"")+(u||l||c?"T":"")+(u?p+u+"H":"")+(l?p+l+"M":"")+(c?p+c+"S":"")}var Un=Ne.prototype;return Un.isValid=function(){return this._isValid},Un.abs=function(){var t=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),t.milliseconds=yn(t.milliseconds),t.seconds=yn(t.seconds),t.minutes=yn(t.minutes),t.hours=yn(t.hours),t.months=yn(t.months),t.years=yn(t.years),this},Un.add=function(t,e){return bn(this,t,e,1)},Un.subtract=function(t,e){return bn(this,t,e,-1)},Un.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=H(t))||"year"===t)return e=this._days+r/864e5,n=this._months+wn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(xn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},Un.asMilliseconds=Ln,Un.asSeconds=Sn,Un.asMinutes=Yn,Un.asHours=Tn,Un.asDays=Dn,Un.asWeeks=Cn,Un.asMonths=En,Un.asYears=On,Un.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},Un._bubble=function(){var t,e,n,r,i,a=this._milliseconds,o=this._days,s=this._months,u=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Mn(xn(s)+o),o=0,s=0),u.milliseconds=a%1e3,t=w(a/1e3),u.seconds=t%60,e=w(t/60),u.minutes=e%60,n=w(e/60),u.hours=n%24,o+=w(n/24),i=w(wn(o)),s+=i,o-=Mn(xn(i)),r=w(s/12),s%=12,u.days=o,u.months=s,u.years=r,this},Un.clone=function(){return $e(this)},Un.get=function(t){return t=H(t),this.isValid()?this[t+"s"]():NaN},Un.milliseconds=jn,Un.seconds=Hn,Un.minutes=Nn,Un.hours=Pn,Un.days=Fn,Un.weeks=function(){return w(this.days()/7)},Un.months=Vn,Un.years=In,Un.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var r=$e(t).abs(),i=Wn(r.as("s")),a=Wn(r.as("m")),o=Wn(r.as("h")),s=Wn(r.as("d")),u=Wn(r.as("M")),l=Wn(r.as("y")),c=i<=Rn.ss&&["s",i]||i<Rn.s&&["ss",i]||a<=1&&["m"]||a<Rn.m&&["mm",a]||o<=1&&["h"]||o<Rn.h&&["hh",o]||s<=1&&["d"]||s<Rn.d&&["dd",s]||u<=1&&["M"]||u<Rn.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=e,c[3]=+t>0,c[4]=n,function(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}.apply(null,c)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Un.toISOString=Gn,Un.toString=Gn,Un.toJSON=Gn,Un.locale=en,Un.localeData=rn,Un.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gn),Un.lang=nn,B("X",0,0,"unix"),B("x",0,0,"valueOf"),dt("x",ot),dt("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),pt("x",function(t,e,n){n._d=new Date(x(t))}),i.version="2.21.0",function(t){e=t}(Ee),i.fn=fn,i.min=function(){return je("isBefore",[].slice.call(arguments,0))},i.max=function(){return je("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(t){return Ee(1e3*t)},i.months=function(t,e){return vn(t,e,"months")},i.isDate=l,i.locale=de,i.invalid=g,i.duration=$e,i.isMoment=M,i.weekdays=function(t,e,n){return _n(t,e,n,"weekdays")},i.parseZone=function(){return Ee.apply(null,arguments).parseZone()},i.localeData=fe,i.isDuration=Pe,i.monthsShort=function(t,e){return vn(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return _n(t,e,n,"weekdaysMin")},i.defineLocale=he,i.updateLocale=function(t,e){if(null!=e){var n,r,i=oe;null!=(r=ce(t))&&(i=r._config),e=E(i,e),(n=new O(e)).parentLocale=se[t],se[t]=n,de(t)}else null!=se[t]&&(null!=se[t].parentLocale?se[t]=se[t].parentLocale:null!=se[t]&&delete se[t]);return se[t]},i.locales=function(){return Y(se)},i.weekdaysShort=function(t,e,n){return _n(t,e,n,"weekdaysShort")},i.normalizeUnits=H,i.relativeTimeRounding=function(t){return void 0===t?Wn:"function"==typeof t&&(Wn=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==Rn[t]&&(void 0===e?Rn[t]:(Rn[t]=e,"s"===t&&(Rn.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=fn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(262)(t))},function(t,e,n){"use strict";n.r(e);var r=n(57);n.d(e,"BaseElementModel",function(){return r.a}),n.d(e,"ReadableModel",function(){return r.f}),n.d(e,"ConditionalDisplayModel",function(){return r.c}),n.d(e,"ConditionalEnableModel",function(){return r.e}),n.d(e,"ConditionalControlModel",function(){return r.b}),n.d(e,"ConditionalDynamicDisplayModel",function(){return r.d}),n.d(e,"SecurityModel",function(){return r.g});var i=n(252);for(var a in i)["BaseElementModel","ReadableModel","ConditionalDisplayModel","ConditionalEnableModel","ConditionalControlModel","ConditionalDynamicDisplayModel","SecurityModel","default"].indexOf(a)<0&&function(t){n.d(e,t,function(){return i[t]})}(a);var o=n(63);n.d(e,"Size",function(){return o.m}),n.d(e,"Point",function(){return o.k}),n.d(e,"GraphSetting",function(){return o.j}),n.d(e,"CustomStyle",function(){return o.h}),n.d(e,"ArcModel",function(){return o.a}),n.d(e,"RelationalOperator",function(){return o.l}),n.d(e,"BitCondition",function(){return o.b}),n.d(e,"BitConditonLogic",function(){return o.c}),n.d(e,"WordCondition",function(){return o.p}),n.d(e,"ConditionHelper",function(){return o.e}),n.d(e,"ConditionItemsResultObserver",function(){return o.g}),n.d(e,"ConditionItemModel",function(){return o.f}),n.d(e,"ConditionControlResultValue",function(){return o.d}),n.d(e,"Font",function(){return o.i}),n.d(e,"Text",function(){return o.o}),n.d(e,"State",function(){return o.n});var s=n(62);n.d(e,"SwtichSettings",function(){return s.k}),n.d(e,"SwitchType",function(){return s.j}),n.d(e,"BitSwitchSettings",function(){return s.c}),n.d(e,"BitSwitchOperation",function(){return s.b}),n.d(e,"WordSwitchOperation",function(){return s.m}),n.d(e,"WordSwitchSettings",function(){return s.n}),n.d(e,"IndicatorLightSettings",function(){return s.f}),n.d(e,"IndicatorLightType",function(){return s.g}),n.d(e,"BitIndicatorLightSettings",function(){return s.a}),n.d(e,"WordIndicatorLightSettings",function(){return s.l}),n.d(e,"SwitchIndicatorState",function(){return s.i}),n.d(e,"SwitchIndicatorLight",function(){return s.h}),n.d(e,"Flicker",function(){return s.e}),n.d(e,"FaultFlicker",function(){return s.d});var u=n(226);for(var a in u)["BaseElementModel","ReadableModel","ConditionalDisplayModel","ConditionalEnableModel","ConditionalControlModel","ConditionalDynamicDisplayModel","SecurityModel","Size","Point","GraphSetting","CustomStyle","ArcModel","RelationalOperator","BitCondition","BitConditonLogic","WordCondition","ConditionHelper","ConditionItemsResultObserver","ConditionItemModel","ConditionControlResultValue","Font","Text","State","SwtichSettings","SwitchType","BitSwitchSettings","BitSwitchOperation","WordSwitchOperation","WordSwitchSettings","IndicatorLightSettings","IndicatorLightType","BitIndicatorLightSettings","WordIndicatorLightSettings","SwitchIndicatorState","SwitchIndicatorLight","Flicker","FaultFlicker","default"].indexOf(a)<0&&function(t){n.d(e,t,function(){return u[t]})}(a);var l=n(225);n.d(e,"BarGraphDirection",function(){return l.a});var c=n(224);for(var a in c)["BaseElementModel","ReadableModel","ConditionalDisplayModel","ConditionalEnableModel","ConditionalControlModel","ConditionalDynamicDisplayModel","SecurityModel","Size","Point","GraphSetting","CustomStyle","ArcModel","RelationalOperator","BitCondition","BitConditonLogic","WordCondition","ConditionHelper","ConditionItemsResultObserver","ConditionItemModel","ConditionControlResultValue","Font","Text","State","SwtichSettings","SwitchType","BitSwitchSettings","BitSwitchOperation","WordSwitchOperation","WordSwitchSettings","IndicatorLightSettings","IndicatorLightType","BitIndicatorLightSettings","WordIndicatorLightSettings","SwitchIndicatorState","SwitchIndicatorLight","Flicker","FaultFlicker","BarGraphDirection","default"].indexOf(a)<0&&function(t){n.d(e,t,function(){return c[t]})}(a);var d=n(56);n.d(e,"FlowDirectionType",function(){return d.a}),n.d(e,"Pipe",function(){return d.b});var h=n(55);n.d(e,"ViewOperationType",function(){return h.b}),n.d(e,"ViewOperationElementModel",function(){return h.a});var f=n(221);for(var a in f)["BaseElementModel","ReadableModel","ConditionalDisplayModel","ConditionalEnableModel","ConditionalControlModel","ConditionalDynamicDisplayModel","SecurityModel","Size","Point","GraphSetting","CustomStyle","ArcModel","RelationalOperator","BitCondition","BitConditonLogic","WordCondition","ConditionHelper","ConditionItemsResultObserver","ConditionItemModel","ConditionControlResultValue","Font","Text","State","SwtichSettings","SwitchType","BitSwitchSettings","BitSwitchOperation","WordSwitchOperation","WordSwitchSettings","IndicatorLightSettings","IndicatorLightType","BitIndicatorLightSettings","WordIndicatorLightSettings","SwitchIndicatorState","SwitchIndicatorLight","Flicker","FaultFlicker","BarGraphDirection","FlowDirectionType","Pipe","ViewOperationType","ViewOperationElementModel","default"].indexOf(a)<0&&function(t){n.d(e,t,function(){return f[t]})}(a);var m=n(59);n.d(e,"NumericalDisplay",function(){return m.b}),n.d(e,"NumericalOperationSettings",function(){return m.d}),n.d(e,"NumericalOperationType",function(){return m.e}),n.d(e,"NumericalOperation",function(){return m.c}),n.d(e,"ProportionalConversion",function(){return m.f}),n.d(e,"TypeSettings",function(){return m.g}),n.d(e,"Zoom",function(){return m.h}),n.d(e,"DisplayDataType",function(){return m.a});var p=n(214);n.d(e,"HistoricalCurveModel",function(){return p.c}),n.d(e,"HistoricalCurveDisplaySettings",function(){return p.b}),n.d(e,"HistoricalCurveDataSettings",function(){return p.a}),n.d(e,"HistroicalCurveChannelModel",function(){return p.d});var g=n(209);for(var a in g)["BaseElementModel","ReadableModel","ConditionalDisplayModel","ConditionalEnableModel","ConditionalControlModel","ConditionalDynamicDisplayModel","SecurityModel","Size","Point","GraphSetting","CustomStyle","ArcModel","RelationalOperator","BitCondition","BitConditonLogic","WordCondition","ConditionHelper","ConditionItemsResultObserver","ConditionItemModel","ConditionControlResultValue","Font","Text","State","SwtichSettings","SwitchType","BitSwitchSettings","BitSwitchOperation","WordSwitchOperation","WordSwitchSettings","IndicatorLightSettings","IndicatorLightType","BitIndicatorLightSettings","WordIndicatorLightSettings","SwitchIndicatorState","SwitchIndicatorLight","Flicker","FaultFlicker","BarGraphDirection","FlowDirectionType","Pipe","ViewOperationType","ViewOperationElementModel","NumericalDisplay","NumericalOperationSettings","NumericalOperationType","NumericalOperation","ProportionalConversion","TypeSettings","Zoom","DisplayDataType","HistoricalCurveModel","HistoricalCurveDisplaySettings","HistoricalCurveDataSettings","HistroicalCurveChannelModel","default"].indexOf(a)<0&&function(t){n.d(e,t,function(){return g[t]})}(a);var v=n(208);for(var a in v)["BaseElementModel","ReadableModel","ConditionalDisplayModel","ConditionalEnableModel","ConditionalControlModel","ConditionalDynamicDisplayModel","SecurityModel","Size","Point","GraphSetting","CustomStyle","ArcModel","RelationalOperator","BitCondition","BitConditonLogic","WordCondition","ConditionHelper","ConditionItemsResultObserver","ConditionItemModel","ConditionControlResultValue","Font","Text","State","SwtichSettings","SwitchType","BitSwitchSettings","BitSwitchOperation","WordSwitchOperation","WordSwitchSettings","IndicatorLightSettings","IndicatorLightType","BitIndicatorLightSettings","WordIndicatorLightSettings","SwitchIndicatorState","SwitchIndicatorLight","Flicker","FaultFlicker","BarGraphDirection","FlowDirectionType","Pipe","ViewOperationType","ViewOperationElementModel","NumericalDisplay","NumericalOperationSettings","NumericalOperationType","NumericalOperation","ProportionalConversion","TypeSettings","Zoom","DisplayDataType","HistoricalCurveModel","HistoricalCurveDisplaySettings","HistoricalCurveDataSettings","HistroicalCurveChannelModel","default"].indexOf(a)<0&&function(t){n.d(e,t,function(){return v[t]})}(a);var _=n(58);n.d(e,"ViewSettingsModel",function(){return _.c}),n.d(e,"ViewPopupLocationType",function(){return _.b}),n.d(e,"ViewPopupBackdropType",function(){return _.a})},function(t,e,n){(function(t,r){var i;
2
- /**
3
- * @license
4
- * Lodash <https://lodash.com/>
5
- * Copyright JS Foundation and other contributors <https://js.foundation/>
6
- * Released under MIT license <https://lodash.com/license>
7
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
8
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
9
- */(function(){var a,o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",h=1,f=2,m=4,p=1,g=2,v=1,_=2,y=4,b=8,M=16,w=32,x=64,k=128,L=256,S=512,Y=30,T="...",D=800,C=16,E=1,O=2,A=1/0,j=9007199254740991,H=1.7976931348623157e308,N=NaN,P=4294967295,F=P-1,V=P>>>1,I=[["ary",k],["bind",v],["bindKey",_],["curry",b],["curryRight",M],["flip",S],["partial",w],["partialRight",x],["rearg",L]],W="[object Arguments]",R="[object Array]",z="[object AsyncFunction]",B="[object Boolean]",G="[object Date]",U="[object DOMException]",$="[object Error]",q="[object Function]",J="[object GeneratorFunction]",Z="[object Map]",X="[object Number]",K="[object Null]",Q="[object Object]",tt="[object Proxy]",et="[object RegExp]",nt="[object Set]",rt="[object String]",it="[object Symbol]",at="[object Undefined]",ot="[object WeakMap]",st="[object WeakSet]",ut="[object ArrayBuffer]",lt="[object DataView]",ct="[object Float32Array]",dt="[object Float64Array]",ht="[object Int8Array]",ft="[object Int16Array]",mt="[object Int32Array]",pt="[object Uint8Array]",gt="[object Uint8ClampedArray]",vt="[object Uint16Array]",_t="[object Uint32Array]",yt=/\b__p \+= '';/g,bt=/\b(__p \+=) '' \+/g,Mt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,xt=/[&<>"']/g,kt=RegExp(wt.source),Lt=RegExp(xt.source),St=/<%-([\s\S]+?)%>/g,Yt=/<%([\s\S]+?)%>/g,Tt=/<%=([\s\S]+?)%>/g,Dt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ct=/^\w*$/,Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/[\\^$.*+?()[\]{}|]/g,At=RegExp(Ot.source),jt=/^\s+|\s+$/g,Ht=/^\s+/,Nt=/\s+$/,Pt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ft=/\{\n\/\* \[wrapped with (.+)\] \*/,Vt=/,? & /,It=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wt=/\\(\\)?/g,Rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zt=/\w*$/,Bt=/^[-+]0x[0-9a-f]+$/i,Gt=/^0b[01]+$/i,Ut=/^\[object .+?Constructor\]$/,$t=/^0o[0-7]+$/i,qt=/^(?:0|[1-9]\d*)$/,Jt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zt=/($^)/,Xt=/['\n\r\u2028\u2029\\]/g,Kt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",te="[\\ud800-\\udfff]",ee="["+Qt+"]",ne="["+Kt+"]",re="\\d+",ie="[\\u2700-\\u27bf]",ae="[a-z\\xdf-\\xf6\\xf8-\\xff]",oe="[^\\ud800-\\udfff"+Qt+re+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",se="\\ud83c[\\udffb-\\udfff]",ue="[^\\ud800-\\udfff]",le="(?:\\ud83c[\\udde6-\\uddff]){2}",ce="[\\ud800-\\udbff][\\udc00-\\udfff]",de="[A-Z\\xc0-\\xd6\\xd8-\\xde]",he="(?:"+ae+"|"+oe+")",fe="(?:"+de+"|"+oe+")",me="(?:"+ne+"|"+se+")"+"?",pe="[\\ufe0e\\ufe0f]?"+me+("(?:\\u200d(?:"+[ue,le,ce].join("|")+")[\\ufe0e\\ufe0f]?"+me+")*"),ge="(?:"+[ie,le,ce].join("|")+")"+pe,ve="(?:"+[ue+ne+"?",ne,le,ce,te].join("|")+")",_e=RegExp("['’]","g"),ye=RegExp(ne,"g"),be=RegExp(se+"(?="+se+")|"+ve+pe,"g"),Me=RegExp([de+"?"+ae+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ee,de,"$"].join("|")+")",fe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ee,de+he,"$"].join("|")+")",de+"?"+he+"+(?:['’](?:d|ll|m|re|s|t|ve))?",de+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",re,ge].join("|"),"g"),we=RegExp("[\\u200d\\ud800-\\udfff"+Kt+"\\ufe0e\\ufe0f]"),xe=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ke=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Le=-1,Se={};Se[ct]=Se[dt]=Se[ht]=Se[ft]=Se[mt]=Se[pt]=Se[gt]=Se[vt]=Se[_t]=!0,Se[W]=Se[R]=Se[ut]=Se[B]=Se[lt]=Se[G]=Se[$]=Se[q]=Se[Z]=Se[X]=Se[Q]=Se[et]=Se[nt]=Se[rt]=Se[ot]=!1;var Ye={};Ye[W]=Ye[R]=Ye[ut]=Ye[lt]=Ye[B]=Ye[G]=Ye[ct]=Ye[dt]=Ye[ht]=Ye[ft]=Ye[mt]=Ye[Z]=Ye[X]=Ye[Q]=Ye[et]=Ye[nt]=Ye[rt]=Ye[it]=Ye[pt]=Ye[gt]=Ye[vt]=Ye[_t]=!0,Ye[$]=Ye[q]=Ye[ot]=!1;var Te={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},De=parseFloat,Ce=parseInt,Ee="object"==typeof t&&t&&t.Object===Object&&t,Oe="object"==typeof self&&self&&self.Object===Object&&self,Ae=Ee||Oe||Function("return this")(),je="object"==typeof e&&e&&!e.nodeType&&e,He=je&&"object"==typeof r&&r&&!r.nodeType&&r,Ne=He&&He.exports===je,Pe=Ne&&Ee.process,Fe=function(){try{return Pe&&Pe.binding&&Pe.binding("util")}catch(t){}}(),Ve=Fe&&Fe.isArrayBuffer,Ie=Fe&&Fe.isDate,We=Fe&&Fe.isMap,Re=Fe&&Fe.isRegExp,ze=Fe&&Fe.isSet,Be=Fe&&Fe.isTypedArray;function Ge(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ue(t,e,n,r){for(var i=-1,a=null==t?0:t.length;++i<a;){var o=t[i];e(r,o,n(o),t)}return r}function $e(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function qe(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Je(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ze(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}function Xe(t,e){return!!(null==t?0:t.length)&&un(t,e,0)>-1}function Ke(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Qe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function tn(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function en(t,e,n,r){var i=-1,a=null==t?0:t.length;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}function nn(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function rn(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var an=hn("length");function on(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function sn(t,e,n,r){for(var i=t.length,a=n+(r?1:-1);r?a--:++a<i;)if(e(t[a],a,t))return a;return-1}function un(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):sn(t,cn,n)}function ln(t,e,n,r){for(var i=n-1,a=t.length;++i<a;)if(r(t[i],e))return i;return-1}function cn(t){return t!=t}function dn(t,e){var n=null==t?0:t.length;return n?pn(t,e)/n:N}function hn(t){return function(e){return null==e?a:e[t]}}function fn(t){return function(e){return null==t?a:t[e]}}function mn(t,e,n,r,i){return i(t,function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)}),n}function pn(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);o!==a&&(n=n===a?o:n+o)}return n}function gn(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function vn(t){return function(e){return t(e)}}function _n(t,e){return Qe(e,function(e){return t[e]})}function yn(t,e){return t.has(e)}function bn(t,e){for(var n=-1,r=t.length;++n<r&&un(e,t[n],0)>-1;);return n}function Mn(t,e){for(var n=t.length;n--&&un(e,t[n],0)>-1;);return n}var wn=fn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),xn=fn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function kn(t){return"\\"+Te[t]}function Ln(t){return we.test(t)}function Sn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function Yn(t,e){return function(n){return t(e(n))}}function Tn(t,e){for(var n=-1,r=t.length,i=0,a=[];++n<r;){var o=t[n];o!==e&&o!==d||(t[n]=d,a[i++]=n)}return a}function Dn(t,e){return"__proto__"==e?a:t[e]}function Cn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function En(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function On(t){return Ln(t)?function(t){var e=be.lastIndex=0;for(;be.test(t);)++e;return e}(t):an(t)}function An(t){return Ln(t)?function(t){return t.match(be)||[]}(t):function(t){return t.split("")}(t)}var jn=fn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Hn=function t(e){var n=(e=null==e?Ae:Hn.defaults(Ae.Object(),e,Hn.pick(Ae,ke))).Array,r=e.Date,i=e.Error,Kt=e.Function,Qt=e.Math,te=e.Object,ee=e.RegExp,ne=e.String,re=e.TypeError,ie=n.prototype,ae=Kt.prototype,oe=te.prototype,se=e["__core-js_shared__"],ue=ae.toString,le=oe.hasOwnProperty,ce=0,de=function(){var t=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),he=oe.toString,fe=ue.call(te),me=Ae._,pe=ee("^"+ue.call(le).replace(Ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ge=Ne?e.Buffer:a,ve=e.Symbol,be=e.Uint8Array,we=ge?ge.allocUnsafe:a,Te=Yn(te.getPrototypeOf,te),Ee=te.create,Oe=oe.propertyIsEnumerable,je=ie.splice,He=ve?ve.isConcatSpreadable:a,Pe=ve?ve.iterator:a,Fe=ve?ve.toStringTag:a,an=function(){try{var t=Fa(te,"defineProperty");return t({},"",{}),t}catch(t){}}(),fn=e.clearTimeout!==Ae.clearTimeout&&e.clearTimeout,Nn=r&&r.now!==Ae.Date.now&&r.now,Pn=e.setTimeout!==Ae.setTimeout&&e.setTimeout,Fn=Qt.ceil,Vn=Qt.floor,In=te.getOwnPropertySymbols,Wn=ge?ge.isBuffer:a,Rn=e.isFinite,zn=ie.join,Bn=Yn(te.keys,te),Gn=Qt.max,Un=Qt.min,$n=r.now,qn=e.parseInt,Jn=Qt.random,Zn=ie.reverse,Xn=Fa(e,"DataView"),Kn=Fa(e,"Map"),Qn=Fa(e,"Promise"),tr=Fa(e,"Set"),er=Fa(e,"WeakMap"),nr=Fa(te,"create"),rr=er&&new er,ir={},ar=lo(Xn),or=lo(Kn),sr=lo(Qn),ur=lo(tr),lr=lo(er),cr=ve?ve.prototype:a,dr=cr?cr.valueOf:a,hr=cr?cr.toString:a;function fr(t){if(Ys(t)&&!gs(t)&&!(t instanceof vr)){if(t instanceof gr)return t;if(le.call(t,"__wrapped__"))return co(t)}return new gr(t)}var mr=function(){function t(){}return function(e){if(!Ss(e))return{};if(Ee)return Ee(e);t.prototype=e;var n=new t;return t.prototype=a,n}}();function pr(){}function gr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=a}function vr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=P,this.__views__=[]}function _r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function yr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function br(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Mr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new br;++e<n;)this.add(t[e])}function wr(t){var e=this.__data__=new yr(t);this.size=e.size}function xr(t,e){var n=gs(t),r=!n&&ps(t),i=!n&&!r&&bs(t),a=!n&&!r&&!i&&Hs(t),o=n||r||i||a,s=o?gn(t.length,ne):[],u=s.length;for(var l in t)!e&&!le.call(t,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ga(l,u))||s.push(l);return s}function kr(t){var e=t.length;return e?t[Mi(0,e-1)]:a}function Lr(t,e){return oo(na(t),jr(e,0,t.length))}function Sr(t){return oo(na(t))}function Yr(t,e,n){(n===a||hs(t[e],n))&&(n!==a||e in t)||Or(t,e,n)}function Tr(t,e,n){var r=t[e];le.call(t,e)&&hs(r,n)&&(n!==a||e in t)||Or(t,e,n)}function Dr(t,e){for(var n=t.length;n--;)if(hs(t[n][0],e))return n;return-1}function Cr(t,e,n,r){return Vr(t,function(t,i,a){e(r,t,n(t),a)}),r}function Er(t,e){return t&&ra(e,ru(e),t)}function Or(t,e,n){"__proto__"==e&&an?an(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ar(t,e){for(var r=-1,i=e.length,o=n(i),s=null==t;++r<i;)o[r]=s?a:Ks(t,e[r]);return o}function jr(t,e,n){return t==t&&(n!==a&&(t=t<=n?t:n),e!==a&&(t=t>=e?t:e)),t}function Hr(t,e,n,r,i,o){var s,u=e&h,l=e&f,c=e&m;if(n&&(s=i?n(t,r,i,o):n(t)),s!==a)return s;if(!Ss(t))return t;var d=gs(t);if(d){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&le.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return na(t,s)}else{var p=Wa(t),g=p==q||p==J;if(bs(t))return Zi(t,u);if(p==Q||p==W||g&&!i){if(s=l||g?{}:za(t),!u)return l?function(t,e){return ra(t,Ia(t),e)}(t,function(t,e){return t&&ra(e,iu(e),t)}(s,t)):function(t,e){return ra(t,Va(t),e)}(t,Er(s,t))}else{if(!Ye[p])return i?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case ut:return Xi(t);case B:case G:return new r(+t);case lt:return function(t,e){var n=e?Xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case ct:case dt:case ht:case ft:case mt:case pt:case gt:case vt:case _t:return Ki(t,n);case Z:return new r;case X:case rt:return new r(t);case et:return function(t){var e=new t.constructor(t.source,zt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case nt:return new r;case it:return function(t){return dr?te(dr.call(t)):{}}(t)}}(t,p,u)}}o||(o=new wr);var v=o.get(t);if(v)return v;if(o.set(t,s),Os(t))return t.forEach(function(r){s.add(Hr(r,e,n,r,t,o))}),s;if(Ts(t))return t.forEach(function(r,i){s.set(i,Hr(r,e,n,i,t,o))}),s;var _=d?a:(c?l?Ea:Ca:l?iu:ru)(t);return $e(_||t,function(r,i){_&&(r=t[i=r]),Tr(s,i,Hr(r,e,n,i,t,o))}),s}function Nr(t,e,n){var r=n.length;if(null==t)return!r;for(t=te(t);r--;){var i=n[r],o=e[i],s=t[i];if(s===a&&!(i in t)||!o(s))return!1}return!0}function Pr(t,e,n){if("function"!=typeof t)throw new re(u);return no(function(){t.apply(a,n)},e)}function Fr(t,e,n,r){var i=-1,a=Xe,s=!0,u=t.length,l=[],c=e.length;if(!u)return l;n&&(e=Qe(e,vn(n))),r?(a=Ke,s=!1):e.length>=o&&(a=yn,s=!1,e=new Mr(e));t:for(;++i<u;){var d=t[i],h=null==n?d:n(d);if(d=r||0!==d?d:0,s&&h==h){for(var f=c;f--;)if(e[f]===h)continue t;l.push(d)}else a(e,h,r)||l.push(d)}return l}fr.templateSettings={escape:St,evaluate:Yt,interpolate:Tt,variable:"",imports:{_:fr}},fr.prototype=pr.prototype,fr.prototype.constructor=fr,gr.prototype=mr(pr.prototype),gr.prototype.constructor=gr,vr.prototype=mr(pr.prototype),vr.prototype.constructor=vr,_r.prototype.clear=function(){this.__data__=nr?nr(null):{},this.size=0},_r.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},_r.prototype.get=function(t){var e=this.__data__;if(nr){var n=e[t];return n===l?a:n}return le.call(e,t)?e[t]:a},_r.prototype.has=function(t){var e=this.__data__;return nr?e[t]!==a:le.call(e,t)},_r.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nr&&e===a?l:e,this},yr.prototype.clear=function(){this.__data__=[],this.size=0},yr.prototype.delete=function(t){var e=this.__data__,n=Dr(e,t);return!(n<0||(n==e.length-1?e.pop():je.call(e,n,1),--this.size,0))},yr.prototype.get=function(t){var e=this.__data__,n=Dr(e,t);return n<0?a:e[n][1]},yr.prototype.has=function(t){return Dr(this.__data__,t)>-1},yr.prototype.set=function(t,e){var n=this.__data__,r=Dr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},br.prototype.clear=function(){this.size=0,this.__data__={hash:new _r,map:new(Kn||yr),string:new _r}},br.prototype.delete=function(t){var e=Na(this,t).delete(t);return this.size-=e?1:0,e},br.prototype.get=function(t){return Na(this,t).get(t)},br.prototype.has=function(t){return Na(this,t).has(t)},br.prototype.set=function(t,e){var n=Na(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Mr.prototype.add=Mr.prototype.push=function(t){return this.__data__.set(t,l),this},Mr.prototype.has=function(t){return this.__data__.has(t)},wr.prototype.clear=function(){this.__data__=new yr,this.size=0},wr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},wr.prototype.get=function(t){return this.__data__.get(t)},wr.prototype.has=function(t){return this.__data__.has(t)},wr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof yr){var r=n.__data__;if(!Kn||r.length<o-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new br(r)}return n.set(t,e),this.size=n.size,this};var Vr=oa($r),Ir=oa(qr,!0);function Wr(t,e){var n=!0;return Vr(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Rr(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],s=e(o);if(null!=s&&(u===a?s==s&&!js(s):n(s,u)))var u=s,l=o}return l}function zr(t,e){var n=[];return Vr(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Br(t,e,n,r,i){var a=-1,o=t.length;for(n||(n=Ba),i||(i=[]);++a<o;){var s=t[a];e>0&&n(s)?e>1?Br(s,e-1,n,r,i):tn(i,s):r||(i[i.length]=s)}return i}var Gr=sa(),Ur=sa(!0);function $r(t,e){return t&&Gr(t,e,ru)}function qr(t,e){return t&&Ur(t,e,ru)}function Jr(t,e){return Ze(e,function(e){return xs(t[e])})}function Zr(t,e){for(var n=0,r=(e=Ui(e,t)).length;null!=t&&n<r;)t=t[uo(e[n++])];return n&&n==r?t:a}function Xr(t,e,n){var r=e(t);return gs(t)?r:tn(r,n(t))}function Kr(t){return null==t?t===a?at:K:Fe&&Fe in te(t)?function(t){var e=le.call(t,Fe),n=t[Fe];try{t[Fe]=a;var r=!0}catch(t){}var i=he.call(t);return r&&(e?t[Fe]=n:delete t[Fe]),i}(t):function(t){return he.call(t)}(t)}function Qr(t,e){return t>e}function ti(t,e){return null!=t&&le.call(t,e)}function ei(t,e){return null!=t&&e in te(t)}function ni(t,e,r){for(var i=r?Ke:Xe,o=t[0].length,s=t.length,u=s,l=n(s),c=1/0,d=[];u--;){var h=t[u];u&&e&&(h=Qe(h,vn(e))),c=Un(h.length,c),l[u]=!r&&(e||o>=120&&h.length>=120)?new Mr(u&&h):a}h=t[0];var f=-1,m=l[0];t:for(;++f<o&&d.length<c;){var p=h[f],g=e?e(p):p;if(p=r||0!==p?p:0,!(m?yn(m,g):i(d,g,r))){for(u=s;--u;){var v=l[u];if(!(v?yn(v,g):i(t[u],g,r)))continue t}m&&m.push(g),d.push(p)}}return d}function ri(t,e,n){var r=null==(t=to(t,e=Ui(e,t)))?t:t[uo(wo(e))];return null==r?a:Ge(r,t,n)}function ii(t){return Ys(t)&&Kr(t)==W}function ai(t,e,n,r,i){return t===e||(null==t||null==e||!Ys(t)&&!Ys(e)?t!=t&&e!=e:function(t,e,n,r,i,o){var s=gs(t),u=gs(e),l=s?R:Wa(t),c=u?R:Wa(e),d=(l=l==W?Q:l)==Q,h=(c=c==W?Q:c)==Q,f=l==c;if(f&&bs(t)){if(!bs(e))return!1;s=!0,d=!1}if(f&&!d)return o||(o=new wr),s||Hs(t)?Ta(t,e,n,r,i,o):function(t,e,n,r,i,a,o){switch(n){case lt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ut:return!(t.byteLength!=e.byteLength||!a(new be(t),new be(e)));case B:case G:case X:return hs(+t,+e);case $:return t.name==e.name&&t.message==e.message;case et:case rt:return t==e+"";case Z:var s=Sn;case nt:var u=r&p;if(s||(s=Cn),t.size!=e.size&&!u)return!1;var l=o.get(t);if(l)return l==e;r|=g,o.set(t,e);var c=Ta(s(t),s(e),r,i,a,o);return o.delete(t),c;case it:if(dr)return dr.call(t)==dr.call(e)}return!1}(t,e,l,n,r,i,o);if(!(n&p)){var m=d&&le.call(t,"__wrapped__"),v=h&&le.call(e,"__wrapped__");if(m||v){var _=m?t.value():t,y=v?e.value():e;return o||(o=new wr),i(_,y,n,r,o)}}return!!f&&(o||(o=new wr),function(t,e,n,r,i,o){var s=n&p,u=Ca(t),l=u.length,c=Ca(e).length;if(l!=c&&!s)return!1;for(var d=l;d--;){var h=u[d];if(!(s?h in e:le.call(e,h)))return!1}var f=o.get(t);if(f&&o.get(e))return f==e;var m=!0;o.set(t,e),o.set(e,t);for(var g=s;++d<l;){h=u[d];var v=t[h],_=e[h];if(r)var y=s?r(_,v,h,e,t,o):r(v,_,h,t,e,o);if(!(y===a?v===_||i(v,_,n,r,o):y)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var b=t.constructor,M=e.constructor;b!=M&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof M&&M instanceof M)&&(m=!1)}return o.delete(t),o.delete(e),m}(t,e,n,r,i,o))}(t,e,n,r,ai,i))}function oi(t,e,n,r){var i=n.length,o=i,s=!r;if(null==t)return!o;for(t=te(t);i--;){var u=n[i];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){var l=(u=n[i])[0],c=t[l],d=u[1];if(s&&u[2]){if(c===a&&!(l in t))return!1}else{var h=new wr;if(r)var f=r(c,d,l,t,e,h);if(!(f===a?ai(d,c,p|g,r,h):f))return!1}}return!0}function si(t){return!(!Ss(t)||function(t){return!!de&&de in t}(t))&&(xs(t)?pe:Ut).test(lo(t))}function ui(t){return"function"==typeof t?t:null==t?Du:"object"==typeof t?gs(t)?mi(t[0],t[1]):fi(t):Fu(t)}function li(t){if(!Za(t))return Bn(t);var e=[];for(var n in te(t))le.call(t,n)&&"constructor"!=n&&e.push(n);return e}function ci(t){if(!Ss(t))return function(t){var e=[];if(null!=t)for(var n in te(t))e.push(n);return e}(t);var e=Za(t),n=[];for(var r in t)("constructor"!=r||!e&&le.call(t,r))&&n.push(r);return n}function di(t,e){return t<e}function hi(t,e){var r=-1,i=_s(t)?n(t.length):[];return Vr(t,function(t,n,a){i[++r]=e(t,n,a)}),i}function fi(t){var e=Pa(t);return 1==e.length&&e[0][2]?Ka(e[0][0],e[0][1]):function(n){return n===t||oi(n,t,e)}}function mi(t,e){return $a(t)&&Xa(e)?Ka(uo(t),e):function(n){var r=Ks(n,t);return r===a&&r===e?Qs(n,t):ai(e,r,p|g)}}function pi(t,e,n,r,i){t!==e&&Gr(e,function(o,s){if(Ss(o))i||(i=new wr),function(t,e,n,r,i,o,s){var u=Dn(t,n),l=Dn(e,n),c=s.get(l);if(c)Yr(t,n,c);else{var d=o?o(u,l,n+"",t,e,s):a,h=d===a;if(h){var f=gs(l),m=!f&&bs(l),p=!f&&!m&&Hs(l);d=l,f||m||p?gs(u)?d=u:ys(u)?d=na(u):m?(h=!1,d=Zi(l,!0)):p?(h=!1,d=Ki(l,!0)):d=[]:Cs(l)||ps(l)?(d=u,ps(u)?d=zs(u):(!Ss(u)||r&&xs(u))&&(d=za(l))):h=!1}h&&(s.set(l,d),i(d,l,r,o,s),s.delete(l)),Yr(t,n,d)}}(t,e,s,n,pi,r,i);else{var u=r?r(Dn(t,s),o,s+"",t,e,i):a;u===a&&(u=o),Yr(t,s,u)}},iu)}function gi(t,e){var n=t.length;if(n)return Ga(e+=e<0?n:0,n)?t[e]:a}function vi(t,e,n){var r=-1;return e=Qe(e.length?e:[Du],vn(Ha())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(hi(t,function(t,n,i){return{criteria:Qe(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,a=e.criteria,o=i.length,s=n.length;++r<o;){var u=Qi(i[r],a[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}(t,e,n)})}function _i(t,e,n){for(var r=-1,i=e.length,a={};++r<i;){var o=e[r],s=Zr(t,o);n(s,o)&&Si(a,Ui(o,t),s)}return a}function yi(t,e,n,r){var i=r?ln:un,a=-1,o=e.length,s=t;for(t===e&&(e=na(e)),n&&(s=Qe(t,vn(n)));++a<o;)for(var u=0,l=e[a],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==t&&je.call(s,u,1),je.call(t,u,1);return t}function bi(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==a){var a=i;Ga(i)?je.call(t,i,1):Fi(t,i)}}return t}function Mi(t,e){return t+Vn(Jn()*(e-t+1))}function wi(t,e){var n="";if(!t||e<1||e>j)return n;do{e%2&&(n+=t),(e=Vn(e/2))&&(t+=t)}while(e);return n}function xi(t,e){return ro(Qa(t,e,Du),t+"")}function ki(t){return kr(hu(t))}function Li(t,e){var n=hu(t);return oo(n,jr(e,0,n.length))}function Si(t,e,n,r){if(!Ss(t))return t;for(var i=-1,o=(e=Ui(e,t)).length,s=o-1,u=t;null!=u&&++i<o;){var l=uo(e[i]),c=n;if(i!=s){var d=u[l];(c=r?r(d,l,u):a)===a&&(c=Ss(d)?d:Ga(e[i+1])?[]:{})}Tr(u,l,c),u=u[l]}return t}var Yi=rr?function(t,e){return rr.set(t,e),t}:Du,Ti=an?function(t,e){return an(t,"toString",{configurable:!0,enumerable:!1,value:Su(e),writable:!0})}:Du;function Di(t){return oo(hu(t))}function Ci(t,e,r){var i=-1,a=t.length;e<0&&(e=-e>a?0:a+e),(r=r>a?a:r)<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var o=n(a);++i<a;)o[i]=t[i+e];return o}function Ei(t,e){var n;return Vr(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function Oi(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=V){for(;r<i;){var a=r+i>>>1,o=t[a];null!==o&&!js(o)&&(n?o<=e:o<e)?r=a+1:i=a}return i}return Ai(t,e,Du,n)}function Ai(t,e,n,r){e=n(e);for(var i=0,o=null==t?0:t.length,s=e!=e,u=null===e,l=js(e),c=e===a;i<o;){var d=Vn((i+o)/2),h=n(t[d]),f=h!==a,m=null===h,p=h==h,g=js(h);if(s)var v=r||p;else v=c?p&&(r||f):u?p&&f&&(r||!m):l?p&&f&&!m&&(r||!g):!m&&!g&&(r?h<=e:h<e);v?i=d+1:o=d}return Un(o,F)}function ji(t,e){for(var n=-1,r=t.length,i=0,a=[];++n<r;){var o=t[n],s=e?e(o):o;if(!n||!hs(s,u)){var u=s;a[i++]=0===o?0:o}}return a}function Hi(t){return"number"==typeof t?t:js(t)?N:+t}function Ni(t){if("string"==typeof t)return t;if(gs(t))return Qe(t,Ni)+"";if(js(t))return hr?hr.call(t):"";var e=t+"";return"0"==e&&1/t==-A?"-0":e}function Pi(t,e,n){var r=-1,i=Xe,a=t.length,s=!0,u=[],l=u;if(n)s=!1,i=Ke;else if(a>=o){var c=e?null:wa(t);if(c)return Cn(c);s=!1,i=yn,l=new Mr}else l=e?[]:u;t:for(;++r<a;){var d=t[r],h=e?e(d):d;if(d=n||0!==d?d:0,s&&h==h){for(var f=l.length;f--;)if(l[f]===h)continue t;e&&l.push(h),u.push(d)}else i(l,h,n)||(l!==u&&l.push(h),u.push(d))}return u}function Fi(t,e){return null==(t=to(t,e=Ui(e,t)))||delete t[uo(wo(e))]}function Vi(t,e,n,r){return Si(t,e,n(Zr(t,e)),r)}function Ii(t,e,n,r){for(var i=t.length,a=r?i:-1;(r?a--:++a<i)&&e(t[a],a,t););return n?Ci(t,r?0:a,r?a+1:i):Ci(t,r?a+1:0,r?i:a)}function Wi(t,e){var n=t;return n instanceof vr&&(n=n.value()),en(e,function(t,e){return e.func.apply(e.thisArg,tn([t],e.args))},n)}function Ri(t,e,r){var i=t.length;if(i<2)return i?Pi(t[0]):[];for(var a=-1,o=n(i);++a<i;)for(var s=t[a],u=-1;++u<i;)u!=a&&(o[a]=Fr(o[a]||s,t[u],e,r));return Pi(Br(o,1),e,r)}function zi(t,e,n){for(var r=-1,i=t.length,o=e.length,s={};++r<i;){var u=r<o?e[r]:a;n(s,t[r],u)}return s}function Bi(t){return ys(t)?t:[]}function Gi(t){return"function"==typeof t?t:Du}function Ui(t,e){return gs(t)?t:$a(t,e)?[t]:so(Bs(t))}var $i=xi;function qi(t,e,n){var r=t.length;return n=n===a?r:n,!e&&n>=r?t:Ci(t,e,n)}var Ji=fn||function(t){return Ae.clearTimeout(t)};function Zi(t,e){if(e)return t.slice();var n=t.length,r=we?we(n):new t.constructor(n);return t.copy(r),r}function Xi(t){var e=new t.constructor(t.byteLength);return new be(e).set(new be(t)),e}function Ki(t,e){var n=e?Xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Qi(t,e){if(t!==e){var n=t!==a,r=null===t,i=t==t,o=js(t),s=e!==a,u=null===e,l=e==e,c=js(e);if(!u&&!c&&!o&&t>e||o&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&t<e||c&&n&&i&&!r&&!o||u&&n&&i||!s&&i||!l)return-1}return 0}function ta(t,e,r,i){for(var a=-1,o=t.length,s=r.length,u=-1,l=e.length,c=Gn(o-s,0),d=n(l+c),h=!i;++u<l;)d[u]=e[u];for(;++a<s;)(h||a<o)&&(d[r[a]]=t[a]);for(;c--;)d[u++]=t[a++];return d}function ea(t,e,r,i){for(var a=-1,o=t.length,s=-1,u=r.length,l=-1,c=e.length,d=Gn(o-u,0),h=n(d+c),f=!i;++a<d;)h[a]=t[a];for(var m=a;++l<c;)h[m+l]=e[l];for(;++s<u;)(f||a<o)&&(h[m+r[s]]=t[a++]);return h}function na(t,e){var r=-1,i=t.length;for(e||(e=n(i));++r<i;)e[r]=t[r];return e}function ra(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var u=e[o],l=r?r(n[u],t[u],u,n,t):a;l===a&&(l=t[u]),i?Or(n,u,l):Tr(n,u,l)}return n}function ia(t,e){return function(n,r){var i=gs(n)?Ue:Cr,a=e?e():{};return i(n,t,Ha(r,2),a)}}function aa(t){return xi(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:a,s=i>2?n[2]:a;for(o=t.length>3&&"function"==typeof o?(i--,o):a,s&&Ua(n[0],n[1],s)&&(o=i<3?a:o,i=1),e=te(e);++r<i;){var u=n[r];u&&t(e,u,r,o)}return e})}function oa(t,e){return function(n,r){if(null==n)return n;if(!_s(n))return t(n,r);for(var i=n.length,a=e?i:-1,o=te(n);(e?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function sa(t){return function(e,n,r){for(var i=-1,a=te(e),o=r(e),s=o.length;s--;){var u=o[t?s:++i];if(!1===n(a[u],u,a))break}return e}}function ua(t){return function(e){var n=Ln(e=Bs(e))?An(e):a,r=n?n[0]:e.charAt(0),i=n?qi(n,1).join(""):e.slice(1);return r[t]()+i}}function la(t){return function(e){return en(xu(pu(e).replace(_e,"")),t,"")}}function ca(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=mr(t.prototype),r=t.apply(n,e);return Ss(r)?r:n}}function da(t){return function(e,n,r){var i=te(e);if(!_s(e)){var o=Ha(n,3);e=ru(e),n=function(t){return o(i[t],t,i)}}var s=t(e,n,r);return s>-1?i[o?e[s]:s]:a}}function ha(t){return Da(function(e){var n=e.length,r=n,i=gr.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new re(u);if(i&&!s&&"wrapper"==Aa(o))var s=new gr([],!0)}for(r=s?r:n;++r<n;){var l=Aa(o=e[r]),c="wrapper"==l?Oa(o):a;s=c&&qa(c[0])&&c[1]==(k|b|w|L)&&!c[4].length&&1==c[9]?s[Aa(c[0])].apply(s,c[3]):1==o.length&&qa(o)?s[l]():s.thru(o)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&gs(r))return s.plant(r).value();for(var i=0,a=n?e[i].apply(this,t):r;++i<n;)a=e[i].call(this,a);return a}})}function fa(t,e,r,i,o,s,u,l,c,d){var h=e&k,f=e&v,m=e&_,p=e&(b|M),g=e&S,y=m?a:ca(t);return function v(){for(var _=arguments.length,b=n(_),M=_;M--;)b[M]=arguments[M];if(p)var w=ja(v),x=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,w);if(i&&(b=ta(b,i,o,p)),s&&(b=ea(b,s,u,p)),_-=x,p&&_<d){var k=Tn(b,w);return ba(t,e,fa,v.placeholder,r,b,k,l,c,d-_)}var L=f?r:this,S=m?L[t]:t;return _=b.length,l?b=function(t,e){for(var n=t.length,r=Un(e.length,n),i=na(t);r--;){var o=e[r];t[r]=Ga(o,n)?i[o]:a}return t}(b,l):g&&_>1&&b.reverse(),h&&c<_&&(b.length=c),this&&this!==Ae&&this instanceof v&&(S=y||ca(S)),S.apply(L,b)}}function ma(t,e){return function(n,r){return function(t,e,n,r){return $r(t,function(t,i,a){e(r,n(t),i,a)}),r}(n,t,e(r),{})}}function pa(t,e){return function(n,r){var i;if(n===a&&r===a)return e;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=Ni(n),r=Ni(r)):(n=Hi(n),r=Hi(r)),i=t(n,r)}return i}}function ga(t){return Da(function(e){return e=Qe(e,vn(Ha())),xi(function(n){var r=this;return t(e,function(t){return Ge(t,r,n)})})})}function va(t,e){var n=(e=e===a?" ":Ni(e)).length;if(n<2)return n?wi(e,t):e;var r=wi(e,Fn(t/On(e)));return Ln(e)?qi(An(r),0,t).join(""):r.slice(0,t)}function _a(t){return function(e,r,i){return i&&"number"!=typeof i&&Ua(e,r,i)&&(r=i=a),e=Vs(e),r===a?(r=e,e=0):r=Vs(r),function(t,e,r,i){for(var a=-1,o=Gn(Fn((e-t)/(r||1)),0),s=n(o);o--;)s[i?o:++a]=t,t+=r;return s}(e,r,i=i===a?e<r?1:-1:Vs(i),t)}}function ya(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Rs(e),n=Rs(n)),t(e,n)}}function ba(t,e,n,r,i,o,s,u,l,c){var d=e&b;e|=d?w:x,(e&=~(d?x:w))&y||(e&=~(v|_));var h=[t,e,i,d?o:a,d?s:a,d?a:o,d?a:s,u,l,c],f=n.apply(a,h);return qa(t)&&eo(f,h),f.placeholder=r,io(f,t,e)}function Ma(t){var e=Qt[t];return function(t,n){if(t=Rs(t),n=null==n?0:Un(Is(n),292)){var r=(Bs(t)+"e").split("e");return+((r=(Bs(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var wa=tr&&1/Cn(new tr([,-0]))[1]==A?function(t){return new tr(t)}:ju;function xa(t){return function(e){var n=Wa(e);return n==Z?Sn(e):n==nt?En(e):function(t,e){return Qe(e,function(e){return[e,t[e]]})}(e,t(e))}}function ka(t,e,r,i,o,s,l,c){var h=e&_;if(!h&&"function"!=typeof t)throw new re(u);var f=i?i.length:0;if(f||(e&=~(w|x),i=o=a),l=l===a?l:Gn(Is(l),0),c=c===a?c:Is(c),f-=o?o.length:0,e&x){var m=i,p=o;i=o=a}var g=h?a:Oa(t),S=[t,e,r,i,o,m,p,s,l,c];if(g&&function(t,e){var n=t[1],r=e[1],i=n|r,a=i<(v|_|k),o=r==k&&n==b||r==k&&n==L&&t[7].length<=e[8]||r==(k|L)&&e[7].length<=e[8]&&n==b;if(!a&&!o)return t;r&v&&(t[2]=e[2],i|=n&v?0:y);var s=e[3];if(s){var u=t[3];t[3]=u?ta(u,s,e[4]):s,t[4]=u?Tn(t[3],d):e[4]}(s=e[5])&&(u=t[5],t[5]=u?ea(u,s,e[6]):s,t[6]=u?Tn(t[5],d):e[6]),(s=e[7])&&(t[7]=s),r&k&&(t[8]=null==t[8]?e[8]:Un(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(S,g),t=S[0],e=S[1],r=S[2],i=S[3],o=S[4],!(c=S[9]=S[9]===a?h?0:t.length:Gn(S[9]-f,0))&&e&(b|M)&&(e&=~(b|M)),e&&e!=v)Y=e==b||e==M?function(t,e,r){var i=ca(t);return function o(){for(var s=arguments.length,u=n(s),l=s,c=ja(o);l--;)u[l]=arguments[l];var d=s<3&&u[0]!==c&&u[s-1]!==c?[]:Tn(u,c);return(s-=d.length)<r?ba(t,e,fa,o.placeholder,a,u,d,a,a,r-s):Ge(this&&this!==Ae&&this instanceof o?i:t,this,u)}}(t,e,c):e!=w&&e!=(v|w)||o.length?fa.apply(a,S):function(t,e,r,i){var a=e&v,o=ca(t);return function e(){for(var s=-1,u=arguments.length,l=-1,c=i.length,d=n(c+u),h=this&&this!==Ae&&this instanceof e?o:t;++l<c;)d[l]=i[l];for(;u--;)d[l++]=arguments[++s];return Ge(h,a?r:this,d)}}(t,e,r,i);else var Y=function(t,e,n){var r=e&v,i=ca(t);return function e(){return(this&&this!==Ae&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,r);return io((g?Yi:eo)(Y,S),t,e)}function La(t,e,n,r){return t===a||hs(t,oe[n])&&!le.call(r,n)?e:t}function Sa(t,e,n,r,i,o){return Ss(t)&&Ss(e)&&(o.set(e,t),pi(t,e,a,Sa,o),o.delete(e)),t}function Ya(t){return Cs(t)?a:t}function Ta(t,e,n,r,i,o){var s=n&p,u=t.length,l=e.length;if(u!=l&&!(s&&l>u))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var d=-1,h=!0,f=n&g?new Mr:a;for(o.set(t,e),o.set(e,t);++d<u;){var m=t[d],v=e[d];if(r)var _=s?r(v,m,d,e,t,o):r(m,v,d,t,e,o);if(_!==a){if(_)continue;h=!1;break}if(f){if(!rn(e,function(t,e){if(!yn(f,e)&&(m===t||i(m,t,n,r,o)))return f.push(e)})){h=!1;break}}else if(m!==v&&!i(m,v,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function Da(t){return ro(Qa(t,a,vo),t+"")}function Ca(t){return Xr(t,ru,Va)}function Ea(t){return Xr(t,iu,Ia)}var Oa=rr?function(t){return rr.get(t)}:ju;function Aa(t){for(var e=t.name+"",n=ir[e],r=le.call(ir,e)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==t)return i.name}return e}function ja(t){return(le.call(fr,"placeholder")?fr:t).placeholder}function Ha(){var t=fr.iteratee||Cu;return t=t===Cu?ui:t,arguments.length?t(arguments[0],arguments[1]):t}function Na(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function Pa(t){for(var e=ru(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Xa(i)]}return e}function Fa(t,e){var n=function(t,e){return null==t?a:t[e]}(t,e);return si(n)?n:a}var Va=In?function(t){return null==t?[]:(t=te(t),Ze(In(t),function(e){return Oe.call(t,e)}))}:Wu,Ia=In?function(t){for(var e=[];t;)tn(e,Va(t)),t=Te(t);return e}:Wu,Wa=Kr;function Ra(t,e,n){for(var r=-1,i=(e=Ui(e,t)).length,a=!1;++r<i;){var o=uo(e[r]);if(!(a=null!=t&&n(t,o)))break;t=t[o]}return a||++r!=i?a:!!(i=null==t?0:t.length)&&Ls(i)&&Ga(o,i)&&(gs(t)||ps(t))}function za(t){return"function"!=typeof t.constructor||Za(t)?{}:mr(Te(t))}function Ba(t){return gs(t)||ps(t)||!!(He&&t&&t[He])}function Ga(t,e){var n=typeof t;return!!(e=null==e?j:e)&&("number"==n||"symbol"!=n&&qt.test(t))&&t>-1&&t%1==0&&t<e}function Ua(t,e,n){if(!Ss(n))return!1;var r=typeof e;return!!("number"==r?_s(n)&&Ga(e,n.length):"string"==r&&e in n)&&hs(n[e],t)}function $a(t,e){if(gs(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!js(t))||Ct.test(t)||!Dt.test(t)||null!=e&&t in te(e)}function qa(t){var e=Aa(t),n=fr[e];if("function"!=typeof n||!(e in vr.prototype))return!1;if(t===n)return!0;var r=Oa(n);return!!r&&t===r[0]}(Xn&&Wa(new Xn(new ArrayBuffer(1)))!=lt||Kn&&Wa(new Kn)!=Z||Qn&&"[object Promise]"!=Wa(Qn.resolve())||tr&&Wa(new tr)!=nt||er&&Wa(new er)!=ot)&&(Wa=function(t){var e=Kr(t),n=e==Q?t.constructor:a,r=n?lo(n):"";if(r)switch(r){case ar:return lt;case or:return Z;case sr:return"[object Promise]";case ur:return nt;case lr:return ot}return e});var Ja=se?xs:Ru;function Za(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||oe)}function Xa(t){return t==t&&!Ss(t)}function Ka(t,e){return function(n){return null!=n&&n[t]===e&&(e!==a||t in te(n))}}function Qa(t,e,r){return e=Gn(e===a?t.length-1:e,0),function(){for(var i=arguments,a=-1,o=Gn(i.length-e,0),s=n(o);++a<o;)s[a]=i[e+a];a=-1;for(var u=n(e+1);++a<e;)u[a]=i[a];return u[e]=r(s),Ge(t,this,u)}}function to(t,e){return e.length<2?t:Zr(t,Ci(e,0,-1))}var eo=ao(Yi),no=Pn||function(t,e){return Ae.setTimeout(t,e)},ro=ao(Ti);function io(t,e,n){var r=e+"";return ro(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Pt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return $e(I,function(n){var r="_."+n[0];e&n[1]&&!Xe(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(Ft);return e?e[1].split(Vt):[]}(r),n)))}function ao(t){var e=0,n=0;return function(){var r=$n(),i=C-(r-n);if(n=r,i>0){if(++e>=D)return arguments[0]}else e=0;return t.apply(a,arguments)}}function oo(t,e){var n=-1,r=t.length,i=r-1;for(e=e===a?r:e;++n<e;){var o=Mi(n,i),s=t[o];t[o]=t[n],t[n]=s}return t.length=e,t}var so=function(t){var e=os(t,function(t){return n.size===c&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Et,function(t,n,r,i){e.push(r?i.replace(Wt,"$1"):n||t)}),e});function uo(t){if("string"==typeof t||js(t))return t;var e=t+"";return"0"==e&&1/t==-A?"-0":e}function lo(t){if(null!=t){try{return ue.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function co(t){if(t instanceof vr)return t.clone();var e=new gr(t.__wrapped__,t.__chain__);return e.__actions__=na(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var ho=xi(function(t,e){return ys(t)?Fr(t,Br(e,1,ys,!0)):[]}),fo=xi(function(t,e){var n=wo(e);return ys(n)&&(n=a),ys(t)?Fr(t,Br(e,1,ys,!0),Ha(n,2)):[]}),mo=xi(function(t,e){var n=wo(e);return ys(n)&&(n=a),ys(t)?Fr(t,Br(e,1,ys,!0),a,n):[]});function po(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Is(n);return i<0&&(i=Gn(r+i,0)),sn(t,Ha(e,3),i)}function go(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==a&&(i=Is(n),i=n<0?Gn(r+i,0):Un(i,r-1)),sn(t,Ha(e,3),i,!0)}function vo(t){return null!=t&&t.length?Br(t,1):[]}function _o(t){return t&&t.length?t[0]:a}var yo=xi(function(t){var e=Qe(t,Bi);return e.length&&e[0]===t[0]?ni(e):[]}),bo=xi(function(t){var e=wo(t),n=Qe(t,Bi);return e===wo(n)?e=a:n.pop(),n.length&&n[0]===t[0]?ni(n,Ha(e,2)):[]}),Mo=xi(function(t){var e=wo(t),n=Qe(t,Bi);return(e="function"==typeof e?e:a)&&n.pop(),n.length&&n[0]===t[0]?ni(n,a,e):[]});function wo(t){var e=null==t?0:t.length;return e?t[e-1]:a}var xo=xi(ko);function ko(t,e){return t&&t.length&&e&&e.length?yi(t,e):t}var Lo=Da(function(t,e){var n=null==t?0:t.length,r=Ar(t,e);return bi(t,Qe(e,function(t){return Ga(t,n)?+t:t}).sort(Qi)),r});function So(t){return null==t?t:Zn.call(t)}var Yo=xi(function(t){return Pi(Br(t,1,ys,!0))}),To=xi(function(t){var e=wo(t);return ys(e)&&(e=a),Pi(Br(t,1,ys,!0),Ha(e,2))}),Do=xi(function(t){var e=wo(t);return e="function"==typeof e?e:a,Pi(Br(t,1,ys,!0),a,e)});function Co(t){if(!t||!t.length)return[];var e=0;return t=Ze(t,function(t){if(ys(t))return e=Gn(t.length,e),!0}),gn(e,function(e){return Qe(t,hn(e))})}function Eo(t,e){if(!t||!t.length)return[];var n=Co(t);return null==e?n:Qe(n,function(t){return Ge(e,a,t)})}var Oo=xi(function(t,e){return ys(t)?Fr(t,e):[]}),Ao=xi(function(t){return Ri(Ze(t,ys))}),jo=xi(function(t){var e=wo(t);return ys(e)&&(e=a),Ri(Ze(t,ys),Ha(e,2))}),Ho=xi(function(t){var e=wo(t);return e="function"==typeof e?e:a,Ri(Ze(t,ys),a,e)}),No=xi(Co);var Po=xi(function(t){var e=t.length,n=e>1?t[e-1]:a;return Eo(t,n="function"==typeof n?(t.pop(),n):a)});function Fo(t){var e=fr(t);return e.__chain__=!0,e}function Vo(t,e){return e(t)}var Io=Da(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Ar(e,t)};return!(e>1||this.__actions__.length)&&r instanceof vr&&Ga(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Vo,args:[i],thisArg:a}),new gr(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(a),t})):this.thru(i)});var Wo=ia(function(t,e,n){le.call(t,n)?++t[n]:Or(t,n,1)});var Ro=da(po),zo=da(go);function Bo(t,e){return(gs(t)?$e:Vr)(t,Ha(e,3))}function Go(t,e){return(gs(t)?qe:Ir)(t,Ha(e,3))}var Uo=ia(function(t,e,n){le.call(t,n)?t[n].push(e):Or(t,n,[e])});var $o=xi(function(t,e,r){var i=-1,a="function"==typeof e,o=_s(t)?n(t.length):[];return Vr(t,function(t){o[++i]=a?Ge(e,t,r):ri(t,e,r)}),o}),qo=ia(function(t,e,n){Or(t,n,e)});function Jo(t,e){return(gs(t)?Qe:hi)(t,Ha(e,3))}var Zo=ia(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var Xo=xi(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Ua(t,e[0],e[1])?e=[]:n>2&&Ua(e[0],e[1],e[2])&&(e=[e[0]]),vi(t,Br(e,1),[])}),Ko=Nn||function(){return Ae.Date.now()};function Qo(t,e,n){return e=n?a:e,e=t&&null==e?t.length:e,ka(t,k,a,a,a,a,e)}function ts(t,e){var n;if("function"!=typeof e)throw new re(u);return t=Is(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=a),n}}var es=xi(function(t,e,n){var r=v;if(n.length){var i=Tn(n,ja(es));r|=w}return ka(t,r,e,n,i)}),ns=xi(function(t,e,n){var r=v|_;if(n.length){var i=Tn(n,ja(ns));r|=w}return ka(e,r,t,n,i)});function rs(t,e,n){var r,i,o,s,l,c,d=0,h=!1,f=!1,m=!0;if("function"!=typeof t)throw new re(u);function p(e){var n=r,o=i;return r=i=a,d=e,s=t.apply(o,n)}function g(t){var n=t-c;return c===a||n>=e||n<0||f&&t-d>=o}function v(){var t=Ko();if(g(t))return _(t);l=no(v,function(t){var n=e-(t-c);return f?Un(n,o-(t-d)):n}(t))}function _(t){return l=a,m&&r?p(t):(r=i=a,s)}function y(){var t=Ko(),n=g(t);if(r=arguments,i=this,c=t,n){if(l===a)return function(t){return d=t,l=no(v,e),h?p(t):s}(c);if(f)return l=no(v,e),p(c)}return l===a&&(l=no(v,e)),s}return e=Rs(e)||0,Ss(n)&&(h=!!n.leading,o=(f="maxWait"in n)?Gn(Rs(n.maxWait)||0,e):o,m="trailing"in n?!!n.trailing:m),y.cancel=function(){l!==a&&Ji(l),d=0,r=c=i=l=a},y.flush=function(){return l===a?s:_(Ko())},y}var is=xi(function(t,e){return Pr(t,1,e)}),as=xi(function(t,e,n){return Pr(t,Rs(e)||0,n)});function os(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new re(u);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(os.Cache||br),n}function ss(t){if("function"!=typeof t)throw new re(u);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}os.Cache=br;var us=$i(function(t,e){var n=(e=1==e.length&&gs(e[0])?Qe(e[0],vn(Ha())):Qe(Br(e,1),vn(Ha()))).length;return xi(function(r){for(var i=-1,a=Un(r.length,n);++i<a;)r[i]=e[i].call(this,r[i]);return Ge(t,this,r)})}),ls=xi(function(t,e){var n=Tn(e,ja(ls));return ka(t,w,a,e,n)}),cs=xi(function(t,e){var n=Tn(e,ja(cs));return ka(t,x,a,e,n)}),ds=Da(function(t,e){return ka(t,L,a,a,a,e)});function hs(t,e){return t===e||t!=t&&e!=e}var fs=ya(Qr),ms=ya(function(t,e){return t>=e}),ps=ii(function(){return arguments}())?ii:function(t){return Ys(t)&&le.call(t,"callee")&&!Oe.call(t,"callee")},gs=n.isArray,vs=Ve?vn(Ve):function(t){return Ys(t)&&Kr(t)==ut};function _s(t){return null!=t&&Ls(t.length)&&!xs(t)}function ys(t){return Ys(t)&&_s(t)}var bs=Wn||Ru,Ms=Ie?vn(Ie):function(t){return Ys(t)&&Kr(t)==G};function ws(t){if(!Ys(t))return!1;var e=Kr(t);return e==$||e==U||"string"==typeof t.message&&"string"==typeof t.name&&!Cs(t)}function xs(t){if(!Ss(t))return!1;var e=Kr(t);return e==q||e==J||e==z||e==tt}function ks(t){return"number"==typeof t&&t==Is(t)}function Ls(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=j}function Ss(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ys(t){return null!=t&&"object"==typeof t}var Ts=We?vn(We):function(t){return Ys(t)&&Wa(t)==Z};function Ds(t){return"number"==typeof t||Ys(t)&&Kr(t)==X}function Cs(t){if(!Ys(t)||Kr(t)!=Q)return!1;var e=Te(t);if(null===e)return!0;var n=le.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ue.call(n)==fe}var Es=Re?vn(Re):function(t){return Ys(t)&&Kr(t)==et};var Os=ze?vn(ze):function(t){return Ys(t)&&Wa(t)==nt};function As(t){return"string"==typeof t||!gs(t)&&Ys(t)&&Kr(t)==rt}function js(t){return"symbol"==typeof t||Ys(t)&&Kr(t)==it}var Hs=Be?vn(Be):function(t){return Ys(t)&&Ls(t.length)&&!!Se[Kr(t)]};var Ns=ya(di),Ps=ya(function(t,e){return t<=e});function Fs(t){if(!t)return[];if(_s(t))return As(t)?An(t):na(t);if(Pe&&t[Pe])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Pe]());var e=Wa(t);return(e==Z?Sn:e==nt?Cn:hu)(t)}function Vs(t){return t?(t=Rs(t))===A||t===-A?(t<0?-1:1)*H:t==t?t:0:0===t?t:0}function Is(t){var e=Vs(t),n=e%1;return e==e?n?e-n:e:0}function Ws(t){return t?jr(Is(t),0,P):0}function Rs(t){if("number"==typeof t)return t;if(js(t))return N;if(Ss(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ss(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(jt,"");var n=Gt.test(t);return n||$t.test(t)?Ce(t.slice(2),n?2:8):Bt.test(t)?N:+t}function zs(t){return ra(t,iu(t))}function Bs(t){return null==t?"":Ni(t)}var Gs=aa(function(t,e){if(Za(e)||_s(e))ra(e,ru(e),t);else for(var n in e)le.call(e,n)&&Tr(t,n,e[n])}),Us=aa(function(t,e){ra(e,iu(e),t)}),$s=aa(function(t,e,n,r){ra(e,iu(e),t,r)}),qs=aa(function(t,e,n,r){ra(e,ru(e),t,r)}),Js=Da(Ar);var Zs=xi(function(t,e){t=te(t);var n=-1,r=e.length,i=r>2?e[2]:a;for(i&&Ua(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],s=iu(o),u=-1,l=s.length;++u<l;){var c=s[u],d=t[c];(d===a||hs(d,oe[c])&&!le.call(t,c))&&(t[c]=o[c])}return t}),Xs=xi(function(t){return t.push(a,Sa),Ge(ou,a,t)});function Ks(t,e,n){var r=null==t?a:Zr(t,e);return r===a?n:r}function Qs(t,e){return null!=t&&Ra(t,e,ei)}var tu=ma(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=he.call(e)),t[e]=n},Su(Du)),eu=ma(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=he.call(e)),le.call(t,e)?t[e].push(n):t[e]=[n]},Ha),nu=xi(ri);function ru(t){return _s(t)?xr(t):li(t)}function iu(t){return _s(t)?xr(t,!0):ci(t)}var au=aa(function(t,e,n){pi(t,e,n)}),ou=aa(function(t,e,n,r){pi(t,e,n,r)}),su=Da(function(t,e){var n={};if(null==t)return n;var r=!1;e=Qe(e,function(e){return e=Ui(e,t),r||(r=e.length>1),e}),ra(t,Ea(t),n),r&&(n=Hr(n,h|f|m,Ya));for(var i=e.length;i--;)Fi(n,e[i]);return n});var uu=Da(function(t,e){return null==t?{}:function(t,e){return _i(t,e,function(e,n){return Qs(t,n)})}(t,e)});function lu(t,e){if(null==t)return{};var n=Qe(Ea(t),function(t){return[t]});return e=Ha(e),_i(t,n,function(t,n){return e(t,n[0])})}var cu=xa(ru),du=xa(iu);function hu(t){return null==t?[]:_n(t,ru(t))}var fu=la(function(t,e,n){return e=e.toLowerCase(),t+(n?mu(e):e)});function mu(t){return wu(Bs(t).toLowerCase())}function pu(t){return(t=Bs(t))&&t.replace(Jt,wn).replace(ye,"")}var gu=la(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),vu=la(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),_u=ua("toLowerCase");var yu=la(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var bu=la(function(t,e,n){return t+(n?" ":"")+wu(e)});var Mu=la(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),wu=ua("toUpperCase");function xu(t,e,n){return t=Bs(t),(e=n?a:e)===a?function(t){return xe.test(t)}(t)?function(t){return t.match(Me)||[]}(t):function(t){return t.match(It)||[]}(t):t.match(e)||[]}var ku=xi(function(t,e){try{return Ge(t,a,e)}catch(t){return ws(t)?t:new i(t)}}),Lu=Da(function(t,e){return $e(e,function(e){e=uo(e),Or(t,e,es(t[e],t))}),t});function Su(t){return function(){return t}}var Yu=ha(),Tu=ha(!0);function Du(t){return t}function Cu(t){return ui("function"==typeof t?t:Hr(t,h))}var Eu=xi(function(t,e){return function(n){return ri(n,t,e)}}),Ou=xi(function(t,e){return function(n){return ri(t,n,e)}});function Au(t,e,n){var r=ru(e),i=Jr(e,r);null!=n||Ss(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Jr(e,ru(e)));var a=!(Ss(n)&&"chain"in n&&!n.chain),o=xs(t);return $e(i,function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__);return(n.__actions__=na(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,tn([this.value()],arguments))})}),t}function ju(){}var Hu=ga(Qe),Nu=ga(Je),Pu=ga(rn);function Fu(t){return $a(t)?hn(uo(t)):function(t){return function(e){return Zr(e,t)}}(t)}var Vu=_a(),Iu=_a(!0);function Wu(){return[]}function Ru(){return!1}var zu=pa(function(t,e){return t+e},0),Bu=Ma("ceil"),Gu=pa(function(t,e){return t/e},1),Uu=Ma("floor");var $u=pa(function(t,e){return t*e},1),qu=Ma("round"),Ju=pa(function(t,e){return t-e},0);return fr.after=function(t,e){if("function"!=typeof e)throw new re(u);return t=Is(t),function(){if(--t<1)return e.apply(this,arguments)}},fr.ary=Qo,fr.assign=Gs,fr.assignIn=Us,fr.assignInWith=$s,fr.assignWith=qs,fr.at=Js,fr.before=ts,fr.bind=es,fr.bindAll=Lu,fr.bindKey=ns,fr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return gs(t)?t:[t]},fr.chain=Fo,fr.chunk=function(t,e,r){e=(r?Ua(t,e,r):e===a)?1:Gn(Is(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,s=0,u=n(Fn(i/e));o<i;)u[s++]=Ci(t,o,o+=e);return u},fr.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var a=t[e];a&&(i[r++]=a)}return i},fr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return tn(gs(r)?na(r):[r],Br(e,1))},fr.cond=function(t){var e=null==t?0:t.length,n=Ha();return t=e?Qe(t,function(t){if("function"!=typeof t[1])throw new re(u);return[n(t[0]),t[1]]}):[],xi(function(n){for(var r=-1;++r<e;){var i=t[r];if(Ge(i[0],this,n))return Ge(i[1],this,n)}})},fr.conforms=function(t){return function(t){var e=ru(t);return function(n){return Nr(n,t,e)}}(Hr(t,h))},fr.constant=Su,fr.countBy=Wo,fr.create=function(t,e){var n=mr(t);return null==e?n:Er(n,e)},fr.curry=function t(e,n,r){var i=ka(e,b,a,a,a,a,a,n=r?a:n);return i.placeholder=t.placeholder,i},fr.curryRight=function t(e,n,r){var i=ka(e,M,a,a,a,a,a,n=r?a:n);return i.placeholder=t.placeholder,i},fr.debounce=rs,fr.defaults=Zs,fr.defaultsDeep=Xs,fr.defer=is,fr.delay=as,fr.difference=ho,fr.differenceBy=fo,fr.differenceWith=mo,fr.drop=function(t,e,n){var r=null==t?0:t.length;return r?Ci(t,(e=n||e===a?1:Is(e))<0?0:e,r):[]},fr.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Ci(t,0,(e=r-(e=n||e===a?1:Is(e)))<0?0:e):[]},fr.dropRightWhile=function(t,e){return t&&t.length?Ii(t,Ha(e,3),!0,!0):[]},fr.dropWhile=function(t,e){return t&&t.length?Ii(t,Ha(e,3),!0):[]},fr.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Ua(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=Is(n))<0&&(n=-n>i?0:i+n),(r=r===a||r>i?i:Is(r))<0&&(r+=i),r=n>r?0:Ws(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},fr.filter=function(t,e){return(gs(t)?Ze:zr)(t,Ha(e,3))},fr.flatMap=function(t,e){return Br(Jo(t,e),1)},fr.flatMapDeep=function(t,e){return Br(Jo(t,e),A)},fr.flatMapDepth=function(t,e,n){return n=n===a?1:Is(n),Br(Jo(t,e),n)},fr.flatten=vo,fr.flattenDeep=function(t){return null!=t&&t.length?Br(t,A):[]},fr.flattenDepth=function(t,e){return null!=t&&t.length?Br(t,e=e===a?1:Is(e)):[]},fr.flip=function(t){return ka(t,S)},fr.flow=Yu,fr.flowRight=Tu,fr.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},fr.functions=function(t){return null==t?[]:Jr(t,ru(t))},fr.functionsIn=function(t){return null==t?[]:Jr(t,iu(t))},fr.groupBy=Uo,fr.initial=function(t){return null!=t&&t.length?Ci(t,0,-1):[]},fr.intersection=yo,fr.intersectionBy=bo,fr.intersectionWith=Mo,fr.invert=tu,fr.invertBy=eu,fr.invokeMap=$o,fr.iteratee=Cu,fr.keyBy=qo,fr.keys=ru,fr.keysIn=iu,fr.map=Jo,fr.mapKeys=function(t,e){var n={};return e=Ha(e,3),$r(t,function(t,r,i){Or(n,e(t,r,i),t)}),n},fr.mapValues=function(t,e){var n={};return e=Ha(e,3),$r(t,function(t,r,i){Or(n,r,e(t,r,i))}),n},fr.matches=function(t){return fi(Hr(t,h))},fr.matchesProperty=function(t,e){return mi(t,Hr(e,h))},fr.memoize=os,fr.merge=au,fr.mergeWith=ou,fr.method=Eu,fr.methodOf=Ou,fr.mixin=Au,fr.negate=ss,fr.nthArg=function(t){return t=Is(t),xi(function(e){return gi(e,t)})},fr.omit=su,fr.omitBy=function(t,e){return lu(t,ss(Ha(e)))},fr.once=function(t){return ts(2,t)},fr.orderBy=function(t,e,n,r){return null==t?[]:(gs(e)||(e=null==e?[]:[e]),gs(n=r?a:n)||(n=null==n?[]:[n]),vi(t,e,n))},fr.over=Hu,fr.overArgs=us,fr.overEvery=Nu,fr.overSome=Pu,fr.partial=ls,fr.partialRight=cs,fr.partition=Zo,fr.pick=uu,fr.pickBy=lu,fr.property=Fu,fr.propertyOf=function(t){return function(e){return null==t?a:Zr(t,e)}},fr.pull=xo,fr.pullAll=ko,fr.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?yi(t,e,Ha(n,2)):t},fr.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?yi(t,e,a,n):t},fr.pullAt=Lo,fr.range=Vu,fr.rangeRight=Iu,fr.rearg=ds,fr.reject=function(t,e){return(gs(t)?Ze:zr)(t,ss(Ha(e,3)))},fr.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],a=t.length;for(e=Ha(e,3);++r<a;){var o=t[r];e(o,r,t)&&(n.push(o),i.push(r))}return bi(t,i),n},fr.rest=function(t,e){if("function"!=typeof t)throw new re(u);return xi(t,e=e===a?e:Is(e))},fr.reverse=So,fr.sampleSize=function(t,e,n){return e=(n?Ua(t,e,n):e===a)?1:Is(e),(gs(t)?Lr:Li)(t,e)},fr.set=function(t,e,n){return null==t?t:Si(t,e,n)},fr.setWith=function(t,e,n,r){return r="function"==typeof r?r:a,null==t?t:Si(t,e,n,r)},fr.shuffle=function(t){return(gs(t)?Sr:Di)(t)},fr.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Ua(t,e,n)?(e=0,n=r):(e=null==e?0:Is(e),n=n===a?r:Is(n)),Ci(t,e,n)):[]},fr.sortBy=Xo,fr.sortedUniq=function(t){return t&&t.length?ji(t):[]},fr.sortedUniqBy=function(t,e){return t&&t.length?ji(t,Ha(e,2)):[]},fr.split=function(t,e,n){return n&&"number"!=typeof n&&Ua(t,e,n)&&(e=n=a),(n=n===a?P:n>>>0)?(t=Bs(t))&&("string"==typeof e||null!=e&&!Es(e))&&!(e=Ni(e))&&Ln(t)?qi(An(t),0,n):t.split(e,n):[]},fr.spread=function(t,e){if("function"!=typeof t)throw new re(u);return e=null==e?0:Gn(Is(e),0),xi(function(n){var r=n[e],i=qi(n,0,e);return r&&tn(i,r),Ge(t,this,i)})},fr.tail=function(t){var e=null==t?0:t.length;return e?Ci(t,1,e):[]},fr.take=function(t,e,n){return t&&t.length?Ci(t,0,(e=n||e===a?1:Is(e))<0?0:e):[]},fr.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Ci(t,(e=r-(e=n||e===a?1:Is(e)))<0?0:e,r):[]},fr.takeRightWhile=function(t,e){return t&&t.length?Ii(t,Ha(e,3),!1,!0):[]},fr.takeWhile=function(t,e){return t&&t.length?Ii(t,Ha(e,3)):[]},fr.tap=function(t,e){return e(t),t},fr.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new re(u);return Ss(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),rs(t,e,{leading:r,maxWait:e,trailing:i})},fr.thru=Vo,fr.toArray=Fs,fr.toPairs=cu,fr.toPairsIn=du,fr.toPath=function(t){return gs(t)?Qe(t,uo):js(t)?[t]:na(so(Bs(t)))},fr.toPlainObject=zs,fr.transform=function(t,e,n){var r=gs(t),i=r||bs(t)||Hs(t);if(e=Ha(e,4),null==n){var a=t&&t.constructor;n=i?r?new a:[]:Ss(t)&&xs(a)?mr(Te(t)):{}}return(i?$e:$r)(t,function(t,r,i){return e(n,t,r,i)}),n},fr.unary=function(t){return Qo(t,1)},fr.union=Yo,fr.unionBy=To,fr.unionWith=Do,fr.uniq=function(t){return t&&t.length?Pi(t):[]},fr.uniqBy=function(t,e){return t&&t.length?Pi(t,Ha(e,2)):[]},fr.uniqWith=function(t,e){return e="function"==typeof e?e:a,t&&t.length?Pi(t,a,e):[]},fr.unset=function(t,e){return null==t||Fi(t,e)},fr.unzip=Co,fr.unzipWith=Eo,fr.update=function(t,e,n){return null==t?t:Vi(t,e,Gi(n))},fr.updateWith=function(t,e,n,r){return r="function"==typeof r?r:a,null==t?t:Vi(t,e,Gi(n),r)},fr.values=hu,fr.valuesIn=function(t){return null==t?[]:_n(t,iu(t))},fr.without=Oo,fr.words=xu,fr.wrap=function(t,e){return ls(Gi(e),t)},fr.xor=Ao,fr.xorBy=jo,fr.xorWith=Ho,fr.zip=No,fr.zipObject=function(t,e){return zi(t||[],e||[],Tr)},fr.zipObjectDeep=function(t,e){return zi(t||[],e||[],Si)},fr.zipWith=Po,fr.entries=cu,fr.entriesIn=du,fr.extend=Us,fr.extendWith=$s,Au(fr,fr),fr.add=zu,fr.attempt=ku,fr.camelCase=fu,fr.capitalize=mu,fr.ceil=Bu,fr.clamp=function(t,e,n){return n===a&&(n=e,e=a),n!==a&&(n=(n=Rs(n))==n?n:0),e!==a&&(e=(e=Rs(e))==e?e:0),jr(Rs(t),e,n)},fr.clone=function(t){return Hr(t,m)},fr.cloneDeep=function(t){return Hr(t,h|m)},fr.cloneDeepWith=function(t,e){return Hr(t,h|m,e="function"==typeof e?e:a)},fr.cloneWith=function(t,e){return Hr(t,m,e="function"==typeof e?e:a)},fr.conformsTo=function(t,e){return null==e||Nr(t,e,ru(e))},fr.deburr=pu,fr.defaultTo=function(t,e){return null==t||t!=t?e:t},fr.divide=Gu,fr.endsWith=function(t,e,n){t=Bs(t),e=Ni(e);var r=t.length,i=n=n===a?r:jr(Is(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},fr.eq=hs,fr.escape=function(t){return(t=Bs(t))&&Lt.test(t)?t.replace(xt,xn):t},fr.escapeRegExp=function(t){return(t=Bs(t))&&At.test(t)?t.replace(Ot,"\\$&"):t},fr.every=function(t,e,n){var r=gs(t)?Je:Wr;return n&&Ua(t,e,n)&&(e=a),r(t,Ha(e,3))},fr.find=Ro,fr.findIndex=po,fr.findKey=function(t,e){return on(t,Ha(e,3),$r)},fr.findLast=zo,fr.findLastIndex=go,fr.findLastKey=function(t,e){return on(t,Ha(e,3),qr)},fr.floor=Uu,fr.forEach=Bo,fr.forEachRight=Go,fr.forIn=function(t,e){return null==t?t:Gr(t,Ha(e,3),iu)},fr.forInRight=function(t,e){return null==t?t:Ur(t,Ha(e,3),iu)},fr.forOwn=function(t,e){return t&&$r(t,Ha(e,3))},fr.forOwnRight=function(t,e){return t&&qr(t,Ha(e,3))},fr.get=Ks,fr.gt=fs,fr.gte=ms,fr.has=function(t,e){return null!=t&&Ra(t,e,ti)},fr.hasIn=Qs,fr.head=_o,fr.identity=Du,fr.includes=function(t,e,n,r){t=_s(t)?t:hu(t),n=n&&!r?Is(n):0;var i=t.length;return n<0&&(n=Gn(i+n,0)),As(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&un(t,e,n)>-1},fr.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Is(n);return i<0&&(i=Gn(r+i,0)),un(t,e,i)},fr.inRange=function(t,e,n){return e=Vs(e),n===a?(n=e,e=0):n=Vs(n),function(t,e,n){return t>=Un(e,n)&&t<Gn(e,n)}(t=Rs(t),e,n)},fr.invoke=nu,fr.isArguments=ps,fr.isArray=gs,fr.isArrayBuffer=vs,fr.isArrayLike=_s,fr.isArrayLikeObject=ys,fr.isBoolean=function(t){return!0===t||!1===t||Ys(t)&&Kr(t)==B},fr.isBuffer=bs,fr.isDate=Ms,fr.isElement=function(t){return Ys(t)&&1===t.nodeType&&!Cs(t)},fr.isEmpty=function(t){if(null==t)return!0;if(_s(t)&&(gs(t)||"string"==typeof t||"function"==typeof t.splice||bs(t)||Hs(t)||ps(t)))return!t.length;var e=Wa(t);if(e==Z||e==nt)return!t.size;if(Za(t))return!li(t).length;for(var n in t)if(le.call(t,n))return!1;return!0},fr.isEqual=function(t,e){return ai(t,e)},fr.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:a)?n(t,e):a;return r===a?ai(t,e,a,n):!!r},fr.isError=ws,fr.isFinite=function(t){return"number"==typeof t&&Rn(t)},fr.isFunction=xs,fr.isInteger=ks,fr.isLength=Ls,fr.isMap=Ts,fr.isMatch=function(t,e){return t===e||oi(t,e,Pa(e))},fr.isMatchWith=function(t,e,n){return n="function"==typeof n?n:a,oi(t,e,Pa(e),n)},fr.isNaN=function(t){return Ds(t)&&t!=+t},fr.isNative=function(t){if(Ja(t))throw new i(s);return si(t)},fr.isNil=function(t){return null==t},fr.isNull=function(t){return null===t},fr.isNumber=Ds,fr.isObject=Ss,fr.isObjectLike=Ys,fr.isPlainObject=Cs,fr.isRegExp=Es,fr.isSafeInteger=function(t){return ks(t)&&t>=-j&&t<=j},fr.isSet=Os,fr.isString=As,fr.isSymbol=js,fr.isTypedArray=Hs,fr.isUndefined=function(t){return t===a},fr.isWeakMap=function(t){return Ys(t)&&Wa(t)==ot},fr.isWeakSet=function(t){return Ys(t)&&Kr(t)==st},fr.join=function(t,e){return null==t?"":zn.call(t,e)},fr.kebabCase=gu,fr.last=wo,fr.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=Is(n))<0?Gn(r+i,0):Un(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):sn(t,cn,i,!0)},fr.lowerCase=vu,fr.lowerFirst=_u,fr.lt=Ns,fr.lte=Ps,fr.max=function(t){return t&&t.length?Rr(t,Du,Qr):a},fr.maxBy=function(t,e){return t&&t.length?Rr(t,Ha(e,2),Qr):a},fr.mean=function(t){return dn(t,Du)},fr.meanBy=function(t,e){return dn(t,Ha(e,2))},fr.min=function(t){return t&&t.length?Rr(t,Du,di):a},fr.minBy=function(t,e){return t&&t.length?Rr(t,Ha(e,2),di):a},fr.stubArray=Wu,fr.stubFalse=Ru,fr.stubObject=function(){return{}},fr.stubString=function(){return""},fr.stubTrue=function(){return!0},fr.multiply=$u,fr.nth=function(t,e){return t&&t.length?gi(t,Is(e)):a},fr.noConflict=function(){return Ae._===this&&(Ae._=me),this},fr.noop=ju,fr.now=Ko,fr.pad=function(t,e,n){t=Bs(t);var r=(e=Is(e))?On(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return va(Vn(i),n)+t+va(Fn(i),n)},fr.padEnd=function(t,e,n){t=Bs(t);var r=(e=Is(e))?On(t):0;return e&&r<e?t+va(e-r,n):t},fr.padStart=function(t,e,n){t=Bs(t);var r=(e=Is(e))?On(t):0;return e&&r<e?va(e-r,n)+t:t},fr.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),qn(Bs(t).replace(Ht,""),e||0)},fr.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Ua(t,e,n)&&(e=n=a),n===a&&("boolean"==typeof e?(n=e,e=a):"boolean"==typeof t&&(n=t,t=a)),t===a&&e===a?(t=0,e=1):(t=Vs(t),e===a?(e=t,t=0):e=Vs(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Jn();return Un(t+i*(e-t+De("1e-"+((i+"").length-1))),e)}return Mi(t,e)},fr.reduce=function(t,e,n){var r=gs(t)?en:mn,i=arguments.length<3;return r(t,Ha(e,4),n,i,Vr)},fr.reduceRight=function(t,e,n){var r=gs(t)?nn:mn,i=arguments.length<3;return r(t,Ha(e,4),n,i,Ir)},fr.repeat=function(t,e,n){return e=(n?Ua(t,e,n):e===a)?1:Is(e),wi(Bs(t),e)},fr.replace=function(){var t=arguments,e=Bs(t[0]);return t.length<3?e:e.replace(t[1],t[2])},fr.result=function(t,e,n){var r=-1,i=(e=Ui(e,t)).length;for(i||(i=1,t=a);++r<i;){var o=null==t?a:t[uo(e[r])];o===a&&(r=i,o=n),t=xs(o)?o.call(t):o}return t},fr.round=qu,fr.runInContext=t,fr.sample=function(t){return(gs(t)?kr:ki)(t)},fr.size=function(t){if(null==t)return 0;if(_s(t))return As(t)?On(t):t.length;var e=Wa(t);return e==Z||e==nt?t.size:li(t).length},fr.snakeCase=yu,fr.some=function(t,e,n){var r=gs(t)?rn:Ei;return n&&Ua(t,e,n)&&(e=a),r(t,Ha(e,3))},fr.sortedIndex=function(t,e){return Oi(t,e)},fr.sortedIndexBy=function(t,e,n){return Ai(t,e,Ha(n,2))},fr.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Oi(t,e);if(r<n&&hs(t[r],e))return r}return-1},fr.sortedLastIndex=function(t,e){return Oi(t,e,!0)},fr.sortedLastIndexBy=function(t,e,n){return Ai(t,e,Ha(n,2),!0)},fr.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Oi(t,e,!0)-1;if(hs(t[n],e))return n}return-1},fr.startCase=bu,fr.startsWith=function(t,e,n){return t=Bs(t),n=null==n?0:jr(Is(n),0,t.length),e=Ni(e),t.slice(n,n+e.length)==e},fr.subtract=Ju,fr.sum=function(t){return t&&t.length?pn(t,Du):0},fr.sumBy=function(t,e){return t&&t.length?pn(t,Ha(e,2)):0},fr.template=function(t,e,n){var r=fr.templateSettings;n&&Ua(t,e,n)&&(e=a),t=Bs(t),e=$s({},e,r,La);var i,o,s=$s({},e.imports,r.imports,La),u=ru(s),l=_n(s,u),c=0,d=e.interpolate||Zt,h="__p += '",f=ee((e.escape||Zt).source+"|"+d.source+"|"+(d===Tt?Rt:Zt).source+"|"+(e.evaluate||Zt).source+"|$","g"),m="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Le+"]")+"\n";t.replace(f,function(e,n,r,a,s,u){return r||(r=a),h+=t.slice(c,u).replace(Xt,kn),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+e.length,e}),h+="';\n";var p=e.variable;p||(h="with (obj) {\n"+h+"\n}\n"),h=(o?h.replace(yt,""):h).replace(bt,"$1").replace(Mt,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=ku(function(){return Kt(u,m+"return "+h).apply(a,l)});if(g.source=h,ws(g))throw g;return g},fr.times=function(t,e){if((t=Is(t))<1||t>j)return[];var n=P,r=Un(t,P);e=Ha(e),t-=P;for(var i=gn(r,e);++n<t;)e(n);return i},fr.toFinite=Vs,fr.toInteger=Is,fr.toLength=Ws,fr.toLower=function(t){return Bs(t).toLowerCase()},fr.toNumber=Rs,fr.toSafeInteger=function(t){return t?jr(Is(t),-j,j):0===t?t:0},fr.toString=Bs,fr.toUpper=function(t){return Bs(t).toUpperCase()},fr.trim=function(t,e,n){if((t=Bs(t))&&(n||e===a))return t.replace(jt,"");if(!t||!(e=Ni(e)))return t;var r=An(t),i=An(e);return qi(r,bn(r,i),Mn(r,i)+1).join("")},fr.trimEnd=function(t,e,n){if((t=Bs(t))&&(n||e===a))return t.replace(Nt,"");if(!t||!(e=Ni(e)))return t;var r=An(t);return qi(r,0,Mn(r,An(e))+1).join("")},fr.trimStart=function(t,e,n){if((t=Bs(t))&&(n||e===a))return t.replace(Ht,"");if(!t||!(e=Ni(e)))return t;var r=An(t);return qi(r,bn(r,An(e))).join("")},fr.truncate=function(t,e){var n=Y,r=T;if(Ss(e)){var i="separator"in e?e.separator:i;n="length"in e?Is(e.length):n,r="omission"in e?Ni(e.omission):r}var o=(t=Bs(t)).length;if(Ln(t)){var s=An(t);o=s.length}if(n>=o)return t;var u=n-On(r);if(u<1)return r;var l=s?qi(s,0,u).join(""):t.slice(0,u);if(i===a)return l+r;if(s&&(u+=l.length-u),Es(i)){if(t.slice(u).search(i)){var c,d=l;for(i.global||(i=ee(i.source,Bs(zt.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var h=c.index;l=l.slice(0,h===a?u:h)}}else if(t.indexOf(Ni(i),u)!=u){var f=l.lastIndexOf(i);f>-1&&(l=l.slice(0,f))}return l+r},fr.unescape=function(t){return(t=Bs(t))&&kt.test(t)?t.replace(wt,jn):t},fr.uniqueId=function(t){var e=++ce;return Bs(t)+e},fr.upperCase=Mu,fr.upperFirst=wu,fr.each=Bo,fr.eachRight=Go,fr.first=_o,Au(fr,function(){var t={};return $r(fr,function(e,n){le.call(fr.prototype,n)||(t[n]=e)}),t}(),{chain:!1}),fr.VERSION="4.17.5",$e(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){fr[t].placeholder=fr}),$e(["drop","take"],function(t,e){vr.prototype[t]=function(n){n=n===a?1:Gn(Is(n),0);var r=this.__filtered__&&!e?new vr(this):this.clone();return r.__filtered__?r.__takeCount__=Un(n,r.__takeCount__):r.__views__.push({size:Un(n,P),type:t+(r.__dir__<0?"Right":"")}),r},vr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),$e(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==E||3==n;vr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ha(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),$e(["head","last"],function(t,e){var n="take"+(e?"Right":"");vr.prototype[t]=function(){return this[n](1).value()[0]}}),$e(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");vr.prototype[t]=function(){return this.__filtered__?new vr(this):this[n](1)}}),vr.prototype.compact=function(){return this.filter(Du)},vr.prototype.find=function(t){return this.filter(t).head()},vr.prototype.findLast=function(t){return this.reverse().find(t)},vr.prototype.invokeMap=xi(function(t,e){return"function"==typeof t?new vr(this):this.map(function(n){return ri(n,t,e)})}),vr.prototype.reject=function(t){return this.filter(ss(Ha(t)))},vr.prototype.slice=function(t,e){t=Is(t);var n=this;return n.__filtered__&&(t>0||e<0)?new vr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==a&&(n=(e=Is(e))<0?n.dropRight(-e):n.take(e-t)),n)},vr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},vr.prototype.toArray=function(){return this.take(P)},$r(vr.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=fr[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(fr.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,u=e instanceof vr,l=s[0],c=u||gs(e),d=function(t){var e=i.apply(fr,tn([t],s));return r&&h?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var h=this.__chain__,f=!!this.__actions__.length,m=o&&!h,p=u&&!f;if(!o&&c){e=p?e:new vr(this);var g=t.apply(e,s);return g.__actions__.push({func:Vo,args:[d],thisArg:a}),new gr(g,h)}return m&&p?t.apply(this,s):(g=this.thru(d),m?r?g.value()[0]:g.value():g)})}),$e(["pop","push","shift","sort","splice","unshift"],function(t){var e=ie[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);fr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(gs(i)?i:[],t)}return this[n](function(n){return e.apply(gs(n)?n:[],t)})}}),$r(vr.prototype,function(t,e){var n=fr[e];if(n){var r=n.name+"";(ir[r]||(ir[r]=[])).push({name:e,func:n})}}),ir[fa(a,_).name]=[{name:"wrapper",func:a}],vr.prototype.clone=function(){var t=new vr(this.__wrapped__);return t.__actions__=na(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=na(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=na(this.__views__),t},vr.prototype.reverse=function(){if(this.__filtered__){var t=new vr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},vr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=gs(t),r=e<0,i=n?t.length:0,a=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=Un(e,t+o);break;case"takeRight":t=Gn(t,e-o)}}return{start:t,end:e}}(0,i,this.__views__),o=a.start,s=a.end,u=s-o,l=r?s:o-1,c=this.__iteratees__,d=c.length,h=0,f=Un(u,this.__takeCount__);if(!n||!r&&i==u&&f==u)return Wi(t,this.__actions__);var m=[];t:for(;u--&&h<f;){for(var p=-1,g=t[l+=e];++p<d;){var v=c[p],_=v.iteratee,y=v.type,b=_(g);if(y==O)g=b;else if(!b){if(y==E)continue t;break t}}m[h++]=g}return m},fr.prototype.at=Io,fr.prototype.chain=function(){return Fo(this)},fr.prototype.commit=function(){return new gr(this.value(),this.__chain__)},fr.prototype.next=function(){this.__values__===a&&(this.__values__=Fs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?a:this.__values__[this.__index__++]}},fr.prototype.plant=function(t){for(var e,n=this;n instanceof pr;){var r=co(n);r.__index__=0,r.__values__=a,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},fr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof vr){var e=t;return this.__actions__.length&&(e=new vr(this)),(e=e.reverse()).__actions__.push({func:Vo,args:[So],thisArg:a}),new gr(e,this.__chain__)}return this.thru(So)},fr.prototype.toJSON=fr.prototype.valueOf=fr.prototype.value=function(){return Wi(this.__wrapped__,this.__actions__)},fr.prototype.first=fr.prototype.head,Pe&&(fr.prototype[Pe]=function(){return this}),fr}();Ae._=Hn,(i=function(){return Hn}.call(e,n,e,r))===a||(r.exports=i)}).call(this)}).call(this,n(270),n(262)(t))},function(t,e,n){"use strict";var r=n(259);class i{constructor(t,e,n,r){this.variableName=t,this.state=e,this.value=n,this.timeStamp=r}}class a{constructor(t,e){this.variableName=t,this.state=e}}var o,s=n(10);!function(t){t[t.Normal=0]="Normal",t[t.Offline=1]="Offline",t[t.Unbind=3]="Unbind",t[t.DataNormal=9]="DataNormal",t[t.Abnormal=99]="Abnormal"}(o||(o={})),n.d(e,"a",function(){return r.VariableCommunicator}),n.d(e,"e",function(){return i}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return s.a}),n.d(e,"d",function(){return o})},function(t,e,n){"use strict";var r;n.d(e,"a",function(){return r}),function(t){t[t.Int32=1]="Int32",t[t.Float=2]="Float",t[t.Bool=4]="Bool",t[t.String=8]="String",t[t.Binary=90]="Binary",t[t.Hex=99]="Hex"}(r||(r={}))},function(t,e,n){"use strict";var r=n(261);class i extends Error{constructor(){super("The config is empty."),Object.setPrototypeOf(this,i.prototype)}}var a=n(5),o=n(3);class s{static add(t,e,n,r){return n?Object(o.isNil)(r)?Math.min(t+e,s.getMax(n)):Math.min(t+e,r):t+e}static subtract(t,e,n,r){return n?Object(o.isNil)(r)?Math.max(t-e,s.getMin(n)):Math.max(t-e,r):t-e}static getMax(t){switch(t){case a.a.Int32:return 2147483647;case a.a.Float:return 3.402823e38}}static getMin(t){switch(t){case a.a.Int32:return-2147483648;case a.a.Float:return-3.402823e38}}}class u{}u.components={imageKey:"Image",numericalDisplayKey:"NumericalDisplay",textKey:"Text",hyperlinkKey:"Hyperlink",meterKey:"Meter",pipeKey:"Pipe",switchIndicatorLightKey:"SwitchIndicatorLight",barGraphKey:"BarGraph",toggleViewKey:"ToggleView",characterKey:"Character",straightLineKey:"StraightLine",polyLineKey:"PolyLine",rectangleKey:"Rectangle",sectorkey:"Sector",ellipseKey:"Ellipse",datetimeDisplayKey:"DatetimeDisplay",historicalCurveKey:"HistoricalCurve",ringGraphKey:"RingGraph",viewOperationElement:"ViewOperation",polygonKey:"Polygon",videokey:"Video",tableKey:"Table",weatherKey:"Weather"};var l=n(260);n.d(e,"b",function(){return r.Disposable}),n.d(e,"a",function(){return i}),n.d(e,"e",function(){return s}),n.d(e,"d",function(){return u}),n.d(e,"c",function(){return l.GraphExtendedStyle})},function(t,e,n){"use strict";const r=new(n(0).InjectionToken)("fc.gui.log");class i{constructor(){this.isErrorEnabled=(()=>!0),this.isWarnEnabled=(()=>!0),this.isInfoEnabled=(()=>!0),this.isDebugEnabled=(()=>!0),this.isLogEnabled=(()=>!0)}error(t,e){this.isErrorEnabled()&&console.error.apply(console,e?[t,e]:[t])}warn(t,e){this.isWarnEnabled()&&console.warn.apply(console,e?[t,e]:[t])}info(t,e){this.isInfoEnabled()&&console.info.apply(console,e?[t,e]:[t])}debug(t,e){this.isDebugEnabled()&&console[console.debug?"debug":"log"].apply(console,e?[t,e]:[t])}log(t,e){this.isLogEnabled()&&console.log.apply(console,e?[t,e]:[t])}}n.d(e,"c",function(){}),n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i})},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(12);class i{static getConvertedVariableName(t,e){return e.variableVersion?e.name:t.getVariableName(new r.c(e.name,e.groupName,e.dataSourceCode))}}},function(t,e,n){"use strict";var r=n(16);const i={loadFailed:"加载失败.",setting:"设置",submit:"提交",numericalValueRequired:"数值不能为空",invalidNumericalValue:"数值格式不正确",binaryType:"二进制",decimalType:"十进制",hexadecimalType:"十六进制",stringType:"字符串",numericalValueTooLong:"数值超长",fractionDigitsMustLessThan:"小数位不能超过",canNotBeNegative:"不能为负数",valueOutOfRange:"数值超出范围",timeout:"超时",confirmOperationPrompt:"是否确认要执行此操作?",confirm:"确定",cancel:"取消",characterInputRequired:"请输入至少一个字符",character:"(字符串)",characterOutofRange:"字符长度超限",writeValueRange:"写值范围",loading:"加载中",unbind:"未绑定",offline:"离线",abnormal:"数据异常",disable:"禁用",permissiontip:"您无权限执行此操作",conditionIsNotMetTip:"操作条件不满足或逻辑控制变量异常",chartNoData:"无数据",lastOneHour:"最近1小时",lastTwentyFourHours:"最近24小时",lastSevenDays:"最近7天",lastThirtyDays:"最近30天",lastOneYear:"最近1年",grouped:"分组",stacked:"叠加",passwordVerify:"密码校验",passwordError:"密码错误",password:"密码",passwordToolTip:"密码错误,请重新输入",passwordRequired:"密码不能为空",invalidVideoAddress:"无效的视频地址",unconfiguredVideoAddress:"未配置视频地址",weatherNotSupport:"当前位置暂不支持",weatherNotAddress:"当前设备未设置地址",weatherNotAvailable:"暂未获取设备地址"};n.d(e,"c",function(){return r.Localization}),n.d(e,"b",function(){return r.b}),n.d(e,"a",function(){return r.a}),n.d(e,"d",function(){return i})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});class r{constructor(t,e,n,r){this.name=t,this.groupName=e,this.dataSourceCode=n,this.variableVersion=r,this.groupName=e||void 0,this.dataSourceCode=n||0,this.variableVersion=r||void 0}}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});
10
- /*! *****************************************************************************
11
- Copyright (c) Microsoft Corporation. All rights reserved.
12
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
13
- this file except in compliance with the License. You may obtain a copy of the
14
- License at http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
18
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
19
- MERCHANTABLITY OR NON-INFRINGEMENT.
20
-
21
- See the Apache Version 2.0 License for specific language governing permissions
22
- and limitations under the License.
23
- ***************************************************************************** */
24
- var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},function(t,e,n){"use strict";var r,i=n(249);class a{constructor(t,e){this.graphType=t,this.source=e}}class o{constructor(t,e){this.graph=t,this.failed=e}static failed(){return o.failedResult}static success(t){return new o(t)}}o.failedResult=new o(null,!0),function(t){t[t.SVG=0]="SVG",t[t.Image=1]="Image"}(r||(r={}));var s=n(248),u=n(247),l=n(27),c=n(246),d=n(245);class h{constructor(t,e,n){this.error=t,this.isUnbind=e,this.values=n}}class f{constructor(t,e){this.time=t,this.values=e}}class m{constructor(t,e,n,r,i,a,o){this.dataSourceCode=t,this.dataItemName=e,this.channelNames=n,this.startTime=r,this.endTime=i,this.limit=a,this.rangeType=o}}var p=n(244);class g{constructor(t,e,n){this.name=t,this.groupName=e,this.code=n}}n.d(e,"a",function(){return i.ConfigStore}),n.d(e,"d",function(){return a}),n.d(e,"e",function(){return o}),n.d(e,"g",function(){return r}),n.d(e,"f",function(){return s.GraphStore}),n.d(e,"n",function(){return u.ViewStore}),n.d(e,"m",function(){return l.a}),n.d(e,"k",function(){return c.ImageStore}),n.d(e,"i",function(){return d.HistoryDataStore}),n.d(e,"h",function(){return h}),n.d(e,"j",function(){return f}),n.d(e,"b",function(){return m}),n.d(e,"l",function(){return p.VariableStore}),n.d(e,"c",function(){return g})},function(t,e,n){"use strict";var r,i;!function(t){t[t.Uniform=0]="Uniform",t[t.HorizontalUniform=1]="HorizontalUniform"}(r||(r={})),function(t){t[t.Web=0]="Web",t[t.Mobile=1]="Mobile"}(i||(i={}));var a=n(47);n.d(e,"c",function(){return r}),n.d(e,"a",function(){return i}),n.d(e,"b",function(){return a.a})},function(t,e,n){"use strict";var r=n(25);var i=n(51),a=n(52);var o=n(39),s=n(267);function u(t){return 0===t.length?s.a:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}var l=n(21);n.d(e,"a",function(){return c});var c=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var o=this.operator,s=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(a.a)}(t,e,n);if(o?s.add(o.call(s,this.source)):s.add(this.source||l.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,i=e.destination,a=e.isStopped;if(n||a)return!1;t=i&&i instanceof r.a?i:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=d(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[o.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:u(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=d(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function d(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},function(t,n){t.exports=e},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return a});var r=n(0);const i=new r.InjectionToken("fc.gui.loc"),a={loadFailed:"Load failed.",setting:"Setting",submit:"Submit",numericalValueRequired:"Numerical value can't be emtpy",invalidNumericalValue:"Numerical value is not valid",binaryType:"Binary",decimalType:"Decimal",hexadecimalType:"Hexadecimal",stringType:"String",numericalValueTooLong:"Numerical value too long",fractionDigitsMustLessThan:"Fraction digits must be less than ",canNotBeNegative:"Can not be negative",valueOutOfRange:"Numerical value is out of range",timeout:"timeout",confirmOperationPrompt:"Sure to do this operation?",confirm:"Yes",cancel:"Cancel",characterInputRequired:"Character input can't be empty",character:"(Character)",characterOutofRange:"Character length is out of range",writeValueRange:"Write value range",loading:"Loading",unbind:"Unbind",offline:"Offline",abnormal:"Data abnormal",disable:"Disable",permissiontip:"You have no permission to operate.",conditionIsNotMetTip:"Unsatisfied operating conditions or variable abnorma.",chartNoData:"No Data Available",lastOneHour:"Last one hour",lastTwentyFourHours:"Last 24 hours",lastSevenDays:"Last 7 days",lastThirtyDays:"Last 30 days",lastOneYear:"Last 1 year",grouped:"Grouped",stacked:"Stacked",passwordVerify:"Password verifiers",passwordError:"Password error",password:"Password",passwordToolTip:"Password error, please re-enter",passwordRequired:"Password can't be empty",invalidVideoAddress:"Invalid video address",unconfiguredVideoAddress:"Unconfigured Video Address",weatherNotSupport:"Location not supported",weatherNotAddress:"Address not configured",weatherNotAvailable:"Address not yet available"}},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),i=n(33),a=n(3),o=n(9),s=function(t,e){return function(n,r){e(n,r,t)}};let u=class{constructor(t){this.localization=t,this._onClosed=new i.a,this.passwordError=!1}get onClosed(){return this._onClosed}ngOnInit(){this.validate()}validate(){Object(a.isNil)(this.password)||""===this.password.trim()?(this.passwordError=!0,this.validationErrorText=this.localization.passwordRequired):(this.passwordError=!1,this.validationErrorText="")}checkSecurity(){this.securityChecker.isValid(this.password).then(t=>{t?this.close(!0):(this.passwordError=!0,this.validationErrorText=this.localization.passwordToolTip)}).catch(()=>{throw new Error("Failure of the checkSecurity")})}close(t){this._onClosed.next(t),this._onClosed.complete()}};u=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(r.Component)({selector:"verify-password",template:'<form #verifyPasswordForm="ngForm" novalidate (ngSubmit)="checkSecurity()" bs-modal-drag> <div class="modal-header"> <h4 class="modal-title"> <span>{{localization.passwordVerify}}</span> </h4> <button type="button" class="close pull-right" aria-label="Close" (click)="close()"> <span aria-hidden="true">&times;</span> </button> </div> <div class="modal-body"> <span class="password-span">{{localization.password}}: </span> <input type="password" name="password" autoFocus class="form-control element-password" [(ngModel)]="password" (keyup)="validate()" autocomplete="off"> <span class="help-block text-danger" [hidden]="!passwordError">{{validationErrorText}}</span> </div> <div class="modal-footer"> <button type="button" class="btn md-skip btn-cancel" (click)="close()">{{localization.cancel}} </button> <button type="submit" class="btn md-skip btn-primary" [disabled]="passwordError">{{localization.submit}}</button> </div> </form> ',styles:[".modal-header { padding: 10px; border-color: transparent; } .modal-body { position: relative; padding: 0px 5px !important; padding-top: 10px !important; } .modal-title { display: unset; margin-left: -6px; font-size: 16px !important; } .form-control { margin: 0 5%; float: none; width: 90%; } .modal-footer { padding: 10px 4px 20px 5px !important; text-align: right; border-color: transparent; color: #fff; } .text-danger { display: block; color: #ed6b75; font-size: 14px; margin: 5px 0px 0px 15px; } .btn-primary { color: #fff; height: 32px; margin-right: 10px; line-height: 0px } .password-span { color: #7f939e; font-size: 14px; margin-left: 15px; } .btn-cancel { color: #fff; height: 32px; min-width: 71px; margin-right: 6px; background-color: #dddddd; line-height: 0px } .element-password { padding-left: 8px; height: 32px; min-width: 71px; margin-left: 16px; } "]}),s(0,Object(r.Inject)(o.b))],u)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),i=n(33),a=n(16),o=function(t,e){return function(n,r){e(n,r,t)}};let s=class{constructor(t){this.localization=t,this._onClosed=new i.a}get onClosed(){return this._onClosed}close(t){this._onClosed.next(t),this._onClosed.complete()}confirm(){this.close(!0)}};s=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(r.Component)({selector:"confirmOperationModal",template:'<form novalidate (ngSubmit)="confirm()" bs-modal-drag> <div class="modal-body"> <div style="text-align:center;margin-top:20px;"> <div class="alertIcon"></div> <h3 class="confirm-h3">{{localization.confirmOperationPrompt}}</h3> </div> </div> <div class="modal-footer form-group confirm-btn-group"> <button type="button" class="sweet-alert-btn" (click)="close()"> {{localization.cancel}} </button> <button type="submit" class="sweet-alert-btn"> {{localization.confirm}} </button> </div> </form> ',styles:[".modal-body { padding: 17px; position: relative; text-align: center; } .modal-footer { padding: 10px 5px; text-align: center; border-color: transparent; } .confirm-modal { max-width: 478px; } .confirm-modal>.modal-content { padding: 17px; } h3.confirm-h3 { font-size: 20px; font-weight: bold; } .confirm-btn-group { padding: 0; margin-bottom: 28px; margin-right: 50px; } .confirm-btn-group button { display: inline-block; } .confirm-btn-group button:last-child { background-color: rgb(221, 107, 85); box-shadow: rgba(221, 107, 85, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px; } .alertIcon { background: url(assets/img/alert.svg); width: 88px; height: 88px; display: inline-block; } .sweet-alert-btn { color: #fff; border: none; background: #ddd; font-size: 17px; font-weight: 500; border-radius: 5px; padding: 10px 32px; margin: 26px 5px 0; cursor: pointer } "]}),o(0,Object(r.Inject)(a.b))],s)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),i=n(16),a=n(264),o=function(t,e){return function(n,r){e(n,r,t)}};let s=class{constructor(t){this.localization=t,this._onClosed=new a.Subject}get onClosed(){return this._onClosed}close(){this._onClosed.next(),this._onClosed.complete()}};s=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(r.Component)({selector:"alertModal",template:'<div class="modal-body"> <div style="text-align:center"> <div class="alertIcon"></div> <h3 class="alert-h3">{{alermMessage}}</h3> </div> </div> <div class="modal-footer form-group confirm-btn"> <button type="button" class="sweet-alert-btn" (click)="close()"> {{localization.confirm}} </button> </div> ',styles:[".modal-header { padding: 17px; border-color: transparent; } .modal-body { padding: 17px; position: relative; text-align: center; } .modal-footer { padding: 10px 5px; text-align: center; border-color: transparent; } .alert-modal { max-width: 478px; } .alert-modal>.modal-content { padding: 17px; } h3.alert-h3 { font-size: 20px; font-weight: bold; } .alert-btn { padding: 0; margin-bottom: 0; } .alert-btn button { display: inline-block; } .alertIcon { background: url(assets/img/alert.svg); width: 88px; height: 88px; display: inline-block; } .sweet-alert-btn { color: #fff; border: none; background: #ddd; font-size: 17px; font-weight: 500; border-radius: 5px; padding: 10px 32px; margin: 26px 5px 0; cursor: point; background-color: rgb(221, 107, 85); box-shadow: rgba(221, 107, 85, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px; } "]}),o(0,Object(r.Inject)(i.b))],s)},function(t,e,n){"use strict";var r;n.d(e,"a",function(){return r}),function(t){t[t.None=0]="None",t[t.And=1]="And",t[t.Or=2]="Or"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},function(t,e,n){"use strict";var r=n(54),i=n(268),a=n(50),o=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}();n.d(e,"a",function(){return s});var s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var c=0;c<n.length;++c){n[c].remove(this)}if(Object(a.a)(s))try{s.call(this)}catch(t){e=t instanceof o?u(t.errors):[t]}if(Object(r.a)(l)){c=-1;for(var d=l.length;++c<d;){var h=l[c];if(Object(i.a)(h))try{h.unsubscribe()}catch(t){e=e||[],t instanceof o?e=e.concat(u(t.errors)):e.push(t)}}}if(e)throw new o(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var a=this._subscriptions;return null===a?this._subscriptions=[n]:a.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function u(t){return t.reduce(function(t,e){return t.concat(e instanceof o?e.errors:e)},[])}},function(t,e){t.exports=n},function(t,e,n){"use strict";n.d(e,"a",function(){return r});class r{constructor(t){this.guid=t}static newGuid(){let t,e,n;for(t="",n=0;n<32;n++)8!==n&&12!==n&&16!==n&&20!==n||(t+="-"),t+=e=Math.floor(16*Math.random()).toString(16).toUpperCase();return new r(t)}toString(t){return t&&"n"===t.toLowerCase()?this.guid.replace(/-/g,""):this.guid}}},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(11),i=n(50),a=n(52),o=n(22),s=n(51),u=n(21),l=n(34),c=function(t){function e(n,r,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=a.a;break;case 1:if(!n){o.destination=a.a;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new d(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new d(o,n,r,i)}return o}return r.a(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(o.a),d=function(t){function e(e,n,r,o){var s,u=t.call(this)||this;u._parentSubscriber=e;var l=u;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,o=n.complete,n!==a.a&&(l=Object.create(n),Object(i.a)(l.unsubscribe)&&u.add(l.unsubscribe.bind(l)),l.unsubscribe=u.unsubscribe.bind(u))),u._context=l,u._next=s,u._error=r,u._complete=o,u}return r.a(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(l.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(l.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw t;Object(l.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(l.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});class r{constructor(t){this.catToString=t,this.internalMap=new Map}set(t,e){return this.internalMap.set(this.catToString(t),e)}get(t){return this.internalMap.get(this.catToString(t))}has(t){return this.internalMap.has(this.catToString(t))}delete(t){return this.internalMap.delete(this.catToString(t))}get size(){return this.internalMap.size}forEach(t,e){this.internalMap.forEach(t,e)}}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});class r{constructor(t){this.config=t}}},function(t,e,n){"use strict";var r=n(7),i="http://www.w3.org/1999/xhtml",a={svg:"http://www.w3.org/2000/svg",xhtml:i,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},o=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),a.hasOwnProperty(e)?{space:a[e],local:t}:t};var s=function(t){var e=o(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i&&e.documentElement.namespaceURI===i?e.createElement(t):e.createElementNS(n,t)}})(e)};function u(){}var l=function(t){return null==t?u:function(){return this.querySelector(t)}};function c(){return[]}var d=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var h=document.documentElement;if(!h.matches){var f=h.webkitMatchesSelector||h.msMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector;d=function(t){return function(){return f.call(this,t)}}}}var m=d,p=function(t){return new Array(t.length)};function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var v="$";function _(t,e,n,r,i,a){for(var o,s=0,u=e.length,l=a.length;s<l;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new g(t,a[s]);for(;s<u;++s)(o=e[s])&&(i[s]=o)}function y(t,e,n,r,i,a,o){var s,u,l,c={},d=e.length,h=a.length,f=new Array(d);for(s=0;s<d;++s)(u=e[s])&&(f[s]=l=v+o.call(u,u.__data__,s,e),l in c?i[s]=u:c[l]=u);for(s=0;s<h;++s)(u=c[l=v+o.call(t,a[s],s,a)])?(r[s]=u,u.__data__=a[s],c[l]=null):n[s]=new g(t,a[s]);for(s=0;s<d;++s)(u=e[s])&&c[f[s]]===u&&(i[s]=u)}function b(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var M=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function w(t){return t.trim().split(/^|\s+/)}function x(t){return t.classList||new k(t)}function k(t){this._node=t,this._names=w(t.getAttribute("class")||"")}function L(t,e){for(var n=x(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function S(t,e){for(var n=x(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}k.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Y(){this.textContent=""}function T(){this.innerHTML=""}function D(){this.nextSibling&&this.parentNode.appendChild(this)}function C(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function E(){return null}function O(){var t=this.parentNode;t&&t.removeChild(this)}function A(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function j(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var H={},N=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(H={mouseenter:"mouseover",mouseleave:"mouseout"}));function P(t,e,n){return t=F(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function F(t,e,n){return function(r){var i=N;N=r;try{t.call(this,this.__data__,e,n)}finally{N=i}}}function V(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function I(t,e,n){var r=H.hasOwnProperty(t.type)?P:F;return function(i,a,o){var s,u=this.__on,l=r(e,a,o);if(u)for(var c=0,d=u.length;c<d;++c)if((s=u[c]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=l,s.capture=n),void(s.value=e);this.addEventListener(t.type,l,n),s={type:t.type,name:t.name,value:e,listener:l,capture:n},u?u.push(s):this.__on=[s]}}function W(t,e,n,r){var i=N;t.sourceEvent=N,N=t;try{return e.apply(n,r)}finally{N=i}}function R(t,e,n){var r=M(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}var z=[null];function B(t,e){this._groups=t,this._parents=e}function G(){return new B([[document.documentElement]],z)}B.prototype=G.prototype={constructor:B,select:function(t){"function"!=typeof t&&(t=l(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],u=s.length,c=r[i]=new Array(u),d=0;d<u;++d)(a=s[d])&&(o=t.call(a,a.__data__,d,s))&&("__data__"in a&&(o.__data__=a.__data__),c[d]=o);return new B(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?c:function(){return this.querySelectorAll(t)}}(t));for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],u=s.length,l=0;l<u;++l)(o=s[l])&&(r.push(t.call(o,o.__data__,l,s)),i.push(o));return new B(r,i)},filter:function(t){"function"!=typeof t&&(t=m(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&u.push(a);return new B(r,this._parents)},data:function(t,e){if(!t)return f=new Array(this.size()),l=-1,this.each(function(t){f[++l]=t}),f;var n=e?y:_,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),l=0;l<a;++l){var c=r[l],d=i[l],h=d.length,f=t.call(c,c&&c.__data__,l,r),m=f.length,p=s[l]=new Array(m),g=o[l]=new Array(m);n(c,d,p,g,u[l]=new Array(h),f,e);for(var v,b,M=0,w=0;M<m;++M)if(v=p[M]){for(M>=w&&(w=M+1);!(b=g[w])&&++w<m;);v._next=b||null}}return(o=new B(o,r))._enter=s,o._exit=u,o},enter:function(){return new B(this._enter||this._groups.map(p),this._parents)},exit:function(){return new B(this._exit||this._groups.map(p),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var u,l=e[s],c=n[s],d=l.length,h=o[s]=new Array(d),f=0;f<d;++f)(u=l[f]||c[f])&&(h[f]=u);for(;s<r;++s)o[s]=e[s];return new B(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=b);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],u=s.length,l=i[a]=new Array(u),c=0;c<u;++c)(o=s[c])&&(l[c]=o);l.sort(e)}return new B(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=o(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):function(t,e){return t.style.getPropertyValue(e)||M(t).getComputedStyle(t,null).getPropertyValue(e)}(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=w(t+"");if(arguments.length<2){for(var r=x(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?L:S)(this,t)}}:e?function(t){return function(){L(this,t)}}:function(t){return function(){S(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?Y:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?T:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(D)},lower:function(){return this.each(C)},append:function(t){var e="function"==typeof t?t:s(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:s(t),r=null==e?E:"function"==typeof e?e:l(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(O)},clone:function(t){return this.select(t?j:A)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?I:V,null==n&&(n=!1),r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<o;++r)if((i=a[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return R(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return R(this,t,e)}})(t,e))}};var U=function(t){return"string"==typeof t?new B([[document.querySelector(t)]],[document.documentElement]):new B([[t]],z)},q=function(t){return U(s(t).call(document.documentElement))},J=0;function Z(){this._="@"+(++J).toString(36)}Z.prototype=function(){return new Z}.prototype={constructor:Z,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var X,K=function(){for(var t,e=N;t=e.sourceEvent;)e=t;return e},Q=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},tt=function(t){var e=K();return e.changedTouches&&(e=e.changedTouches[0]),Q(t,e)},et=function(t,e,n){arguments.length<3&&(n=e,e=K().changedTouches);for(var r,i=0,a=e?e.length:0;i<a;++i)if((r=e[i]).identifier===n)return Q(t,r);return null},nt=n(3),rt=n(15),it=n(4),at=n(9),ot=n(2);!function(t){t[t.SolidColor=0]="SolidColor",t[t.Image=1]="Image",t[t.Graph=2]="Graph"}(X||(X={}));var st,ut=n(6);!function(t){t[t.HorizontalTranslation=0]="HorizontalTranslation",t[t.VerticalTranslation=1]="VerticalTranslation",t[t.Rotation=2]="Rotation"}(st||(st={}));var lt,ct=n(0);!function(t){t[t.ClockWise=0]="ClockWise",t[t.ReverseClockWise=1]="ReverseClockWise"}(lt||(lt={}));var dt,ht=n(8),ft=n(10);class mt{constructor(t,e,n,r){if(this.signalRAppId=r,this.rotationValueChanged=new ct.EventEmitter,!t.variableName)return;const i=new ft.a(t.variableName,t.variableGroupName,t.dataSourceCode,t.variableVersion),a=ht.a.getConvertedVariableName(n,i);a&&e.subscribeVariableState(a).subscribe(t=>{t.state===it.d.Normal&&e.openVariable(a,this.signalRAppId).subscribe(t=>{t.state===it.d.DataNormal&&(this.currentValue=t,this.rotationValueChanged.emit(this.currentValue.value))})})}}class pt{constructor(t,e,n,r){this.doRotation=new ct.EventEmitter,new mt(t,e,n,r).rotationValueChanged.subscribe(e=>{if(+t.rotationDirection===lt.ClockWise){let n;if(!0===t.isProportion){const r=(t.maxAngle-t.minAngle)/(t.maxProportionScale-t.minProportionScale);n=!0===t.isReverseProportion?e>t.maxProportionScale?t.minAngle:e<t.minProportionScale?t.maxAngle:t.maxAngle-(e-t.minProportionScale)*r:e>t.maxProportionScale?t.maxAngle:e<t.minProportionScale?t.minAngle:t.minAngle+(e-t.minProportionScale)*r,this.doRotation.emit(n)}else e<t.minAngle?this.doRotation.emit(t.minAngle):e>t.maxAngle?this.doRotation.emit(t.maxAngle):this.doRotation.emit(e)}else if(+t.rotationDirection===lt.ReverseClockWise){let n;const r=360-t.maxAngle,i=360-t.minAngle;if(!0===t.isProportion){const a=(i-r)/(t.maxProportionScale-t.minProportionScale);!0===t.isReverseProportion?n=e>t.maxProportionScale?i:e<t.minProportionScale?r:r+(e-t.minProportionScale)*a:(n=e>t.maxProportionScale?r:e<t.minProportionScale?i:i-(e-t.minProportionScale)*a)>i?n=i:n<r&&(n=r),this.doRotation.emit(n)}else(n=360-e)<r?this.doRotation.emit(r):n>i?this.doRotation.emit(i):this.doRotation.emit(n)}})}}!function(t){t[t.Horizontal=0]="Horizontal",t[t.Vertical=1]="Vertical"}(dt||(dt={}));class gt{constructor(t,e,n,r){if(this.translationValueChanged=new ct.EventEmitter,!t.variableName)return;const i=new ft.a(t.variableName,t.variableGroupName,t.dataSourceCode,t.variableVersion),a=ht.a.getConvertedVariableName(n,i);a&&e.subscribeVariableState(a).subscribe(t=>{t.state===it.d.Normal&&e.openVariable(a,r).subscribe(t=>{t.state===it.d.DataNormal&&(this.currentValue=t,this.translationValueChanged.emit(this.currentValue.value))})})}}class vt{constructor(t,e,n,r,i,a){if(this.doTranslation=new ct.EventEmitter,r===dt.Horizontal){new gt(t,e,n,a).translationValueChanged.subscribe(e=>{const n=this.getTranslationValue(t,+e,i.x);this.doTranslation.emit(n)})}if(r===dt.Vertical){new gt(t,e,n,a).translationValueChanged.subscribe(e=>{const n=this.getTranslationValue(t,+e,i.y);this.doTranslation.emit(n)})}}getTranslationValue(t,e,n){let r;if(!0===t.isProportion){const i=(t.maxCoordinate-t.minCoordinate)/(t.maxProportionScale-t.minProportionScale);if(!0===t.isReverseProportion){const a=n+t.maxCoordinate;r=+e>t.maxProportionScale?n+t.minCoordinate:+e<t.minProportionScale?a:a-(+e-t.minProportionScale)*i}else r=+e>t.maxProportionScale?t.maxCoordinate+n:+e<t.minProportionScale?t.minCoordinate+n:n+t.minCoordinate+(e-t.minProportionScale)*i}else r=e+n;return r>t.maxCoordinate+n&&(r=t.maxCoordinate+n),r<t.minCoordinate+n&&(r=t.minCoordinate+n),r}}class _t{constructor(t,e,n){this.translation=t,this.angel=e,this.behaviorType=n}}class yt{constructor(t,e,n,r,i){if(this.doBehavior=new ct.EventEmitter,t.isHorizontalTranslation&&null!=t.horizontalTranslation){new vt(t.horizontalTranslation,e,n,dt.Horizontal,r,i).doTranslation.subscribe(t=>{const e=new _t(t,void 0,st.HorizontalTranslation);this.doBehavior.emit(e)})}if(t.isVerticalTranslation&&null!=t.verticalTranslation){new vt(t.verticalTranslation,e,n,dt.Vertical,r,i).doTranslation.subscribe(t=>{const e=new _t(t,void 0,st.VerticalTranslation);this.doBehavior.emit(e)})}if(t.isRotation&&null!=t.rotation){new pt(t.rotation,e,n,i).doRotation.subscribe(t=>{const e=new _t(void 0,t,st.Rotation);this.doBehavior.emit(e)})}}}class bt{constructor(t,e=""){this.signalRAppId=e,this.$element=$(t),this.rootElement=U(t),this.model=JSON.parse(this.rootElement.attr("data-model"))}}class Mt extends bt{constructor(t,e,n,r,i){super(t,i),this.permissionChecker=e,this.variableCommunicator=n,this.variableStore=r,this.initDisplay()}initDisplay(){if(!1===this.model.isAwaysDisplay)if(this.hide(),null==this.model.version||this.model.version<3)this.updateVisibilityByCondition();else{const t=this.model.isDisplayControl||this.model.conditionItems.length>0;this.model.isDisplayPermission&&!t&&this.updateVisibilityByPermission(),!this.model.isDisplayPermission&&t&&this.updateVisibilityByCondition(),this.model.isDisplayPermission&&t&&this.checkDisplayConditionAndPermission()}}checkDisplayConditionAndPermission(){if(null==this.model.conditionItems||!this.model.conditionItems.length)return;const t=new ot.ConditionItemsResultObserver(this.model.conditionItems,this.variableCommunicator,this.variableStore);t.conditionResultChanged.subscribe(t=>{t.value?this.updateVisibilityByPermission():this.hide()}),t.requestData(this.signalRAppId)}updateVisibilityByCondition(){if(null==this.model.conditionItems||!this.model.conditionItems.length)return;const t=new ot.ConditionItemsResultObserver(this.model.conditionItems,this.variableCommunicator,this.variableStore);t.conditionResultChanged.subscribe(t=>{t.value?this.show():this.hide()}),t.requestData(this.signalRAppId)}updateVisibilityByPermission(){this.model.displayPermissionCodes&&this.model.displayPermissionCodes.length&&(this.permissionChecker.isGranted(this.model.displayPermissionCodes)?this.show():this.hide())}hide(){this.rootElement.style("display","none")}show(){this.rootElement.style("display","block")}}class wt extends Mt{constructor(t,e,n,r,i){super(t,e,n,r,i),this.variableCommunicator=n,this.variableStore=r,this.initDynamicBehavior()}initDynamicBehavior(){if(this.ang=0,this.model.version>=1&&null!=this.model.dynamicSetting){const t=this.getActualLocation(),e=this.model.strokeWidth?this.model.strokeWidth:0;this.hor=t.x-Number(e)/2,this.ver=t.y-Number(e)/2,new yt(this.model.dynamicSetting,this.variableCommunicator,this.variableStore,t,this.signalRAppId).doBehavior.subscribe(t=>{this.model.angle&&(this.ang=Number(this.model.angle)),t.behaviorType===st.HorizontalTranslation?this.hor=Number(t.translation)-Number(e)/2:t.behaviorType===st.VerticalTranslation?this.ver=Number(t.translation)-Number(e)/2:t.behaviorType===st.Rotation&&(this.model.angle?this.ang+=Number(t.angel):this.ang=Number(t.angel));const n=Math.cos(this.ang*Math.PI/180),r=Math.sin(this.ang*Math.PI/180);if(this.model.version>=2){const t=this.getActualSize();if(void 0===t)this.x=this.hor,this.y=this.ver;else switch(this.model.fixedPositionType){case 0:this.x=this.hor,this.y=this.ver;break;case 1:this.x=this.hor+t.width/2,this.y=this.ver;break;case 2:this.x=this.hor+t.width,this.y=this.ver;break;case 3:this.x=this.hor,this.y=this.ver+t.height/2;break;case 4:this.x=this.hor+t.width/2,this.y=this.ver+t.height/2;break;case 5:this.x=this.hor+t.width,this.y=this.ver+t.height/2;break;case 6:this.x=this.hor,this.y=this.ver+t.height;break;case 7:this.x=this.hor+t.width/2,this.y=this.ver+t.height;break;case 8:this.x=this.hor+t.width,this.y=this.ver+t.height}let e=!0;(e=(this.model.category!==ut.d.components.meterKey&&this.model.category!==ut.d.components.switchIndicatorLightKey&&this.model.category!==ut.d.components.imageKey||!(this.model.version>4))&&(!(this.model.category===ut.d.components.toggleViewKey&&this.model.version>5)&&!(this.model.category!==ut.d.components.meterKey&&this.model.category!==ut.d.components.switchIndicatorLightKey&&this.model.category!==ut.d.components.imageKey&&this.model.category!==ut.d.components.toggleViewKey&&this.model.version>3)))?(this.rotatedHor=(this.hor-this.x)*n-(this.ver-this.y)*r+this.x,this.rotatedVer=(this.hor-this.x)*r+(this.ver-this.y)*n+this.y):(this.rotatedHor=(this.hor-this.x)*n-(this.ver-this.y)*r+this.hor,this.rotatedVer=(this.hor-this.x)*r+(this.ver-this.y)*n+this.ver),this.transform="matrix("+n.toFixed(6)+","+r.toFixed(6)+","+(-1*r).toFixed(6)+","+n.toFixed(6)+","+this.rotatedHor+","+this.rotatedVer+")",this.rootElement.style("-webkit-transform",this.transform)}else this.transform="matrix("+n.toFixed(6)+","+r.toFixed(6)+","+(-1*r).toFixed(6)+","+n.toFixed(6)+","+this.hor+","+this.ver+")",this.rootElement.style("-webkit-transform",this.transform)})}}getActualSize(){return this.model.size}getActualLocation(){return this.model.location}isBold(t){return t&&-1!==t.indexOf("bold")}isItalic(t){return t&&-1!==t.indexOf("Italic")}fontFamily(t){if(!t)return null;const e=this.isBold(t)?1:0,n=this.isItalic(t)?1:0,r=t.split(" "),i=e+n+1;return r.length>i?r[i]:null}}class xt extends wt{constructor(t,e,n,r,i,a){super(t,e,n,r,a),this.localization=i,this.isEnable=!0,this.elementStates=[]}initState(){this.elementStates.length&&(this.state=ot.State.Loading,this.loadStateData(this.state))}updateElementStates(t){Object(nt.forEach)(this.elementStates,e=>{Object(nt.forEach)(t,t=>{e.variableName===t.variableName&&(e.state=t.state)})}),this.changeStates()}addElementState(t){let e=!1;Object(nt.forEach)(this.elementStates,n=>{n.variableName===t.variableName&&(e=!0)}),e||this.elementStates.push(t)}changeStates(){this.state=ot.State.Normal,Object(nt.forEach)(this.elementStates,t=>{const e=this.getState(t);this.changeState(e)}),this.state===ot.State.Normal&&(this.isEnable||(this.state=ot.State.Disable)),this.loadStateData(this.state)}getState(t){let e=ot.State.Loading;switch(t.state){case it.d.Offline:e=ot.State.Offline;break;case it.d.Unbind:e=ot.State.Unbind;break;case it.d.DataNormal:e=ot.State.Normal;break;case it.d.Abnormal:e=ot.State.Abnormal}return e}changeState(t){switch(t){case ot.State.Unbind:this.state=ot.State.Unbind;break;case ot.State.Offline:this.state!==ot.State.Unbind&&(this.state=ot.State.Offline);break;case ot.State.Loading:this.state!==ot.State.Unbind&&this.state!==ot.State.Offline&&(this.state=ot.State.Loading);break;case ot.State.Abnormal:this.state!==ot.State.Unbind&&this.state!==ot.State.Offline&&this.state!==ot.State.Loading&&(this.state=ot.State.Abnormal)}}loadStateData(t){if(t===this.preState)return;if(this.preState=t,this.state===ot.State.Normal)return void this.clearTip();let e="",n="",r="";switch(t){case ot.State.Offline:e="assets/img/offline.svg",n=this.localization.offline,r="#999999";break;case ot.State.Unbind:e="assets/img/unbind.svg",n=this.localization.unbind,r="#586e7c";break;case ot.State.Abnormal:e="assets/img/abnormal.svg",n=this.localization.abnormal,r="#f6a520";break;case ot.State.Disable:e="assets/img/disabled.svg",n=this.localization.disable,r="#ff4444";break;default:e="assets/img/loading.svg",n=this.localization.loading,r="#226abc"}this.setState(e,n,r)}setState(t,e,n){if(this.clearTip(),this.currentRect||(this.currentRect=this.$element.find("rect#StateFrame").first()),!this.currentRect.length)return;const r=this.$element[0].ownerDocument,i=r.createElementNS("http://www.w3.org/2000/svg","image");if(i){const a=this.currentRect[0];let o=Number(a.getAttribute("width"))-20;const s=a.getAttribute("x");null!==s&&(o+=Number(s)),a.setAttribute("stroke",n),a.setAttribute("stroke-opacity","0.5"),i.href.baseVal=t,i.setAttributeNS(null,"id","StateImage"),i.setAttributeNS(null,"x",o.toString()),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"height","20px"),i.setAttributeNS(null,"width","20px");const u=r.createElementNS("http://www.w3.org/2000/svg","title"),l=r.createTextNode(e);u.appendChild(l),i.appendChild(u),this.$element.append(i)}}clearTip(){if(this.currentRect||(this.currentRect=this.$element.find("rect#StateFrame").first()),!this.currentRect.length)return;const t=this.currentRect[0];t.getAttribute("stroke")&&t.removeAttribute("stroke"),this.$element.find("image#StateImage").remove()}}class kt extends xt{constructor(t,e,n,r,i,a){super(t,e,n,r,i,a),this.permissionChecker=e,this.variableCommunicator=n,this.variableStore=r,this.localization=i,this.isGrantedPermission=!1,this.isInitialized=!1,setTimeout(()=>{this.initialize()})}initialize(){!1===this.model.isAwaysEnable?(null==this.model.version||this.model.version<3?this.updateEnableStateByCondition():((this.model.isEnablePermission||void 0===this.model.isEnablePermission)&&this.model.enablePermissionCodes?this.isGrantedPermission=this.permissionChecker.isGranted(this.model.enablePermissionCodes):this.isGrantedPermission=!0,this.model.isEnablePermission&&!this.model.isEnableControl&&this.updateEnableStateByPermission(),!this.model.isEnablePermission&&this.model.isEnableControl&&this.updateEnableStateByCondition(),this.model.isEnablePermission&&this.model.isEnableControl&&this.updateEnableStateByConditionAndPermission(),this.model.isEnablePermission||this.model.isEnableControl||this.updateEnableStateByConditionAndPermission()),this.isGrantedPermission||(this.isInitialized=!0,this.isEnable=!1,this.changeStates())):this.isInitialized=!0}updateEnableStateByConditionAndPermission(){if(null==this.model.enableItems||!this.model.enableItems.length)return void(this.isInitialized=!0);const t=new ot.ConditionItemsResultObserver(this.model.enableItems,this.variableCommunicator,this.variableStore);t.conditionResultChanged.subscribe(t=>{t.value?this.updateEnableStateByPermission():this.setEnableByConditionOrPermission(!1),this.isInitialized=!0,this.changeStates()}),t.requestData(this.signalRAppId)}updateEnableStateByCondition(){if(null==this.model.enableItems||!this.model.enableItems.length)return void(this.isInitialized=!0);const t=new ot.ConditionItemsResultObserver(this.model.enableItems,this.variableCommunicator,this.variableStore);t.conditionResultChanged.subscribe(t=>{this.setEnableByConditionOrPermission(t.value),this.isInitialized=!0,this.changeStates()}),t.requestData(this.signalRAppId)}updateEnableStateByPermission(){let t=!1;t=!this.model.enablePermissionCodes||this.permissionChecker.isGranted(this.model.enablePermissionCodes),this.setEnableByConditionOrPermission(t),this.isInitialized=!0}setEnableByConditionOrPermission(t){this.isEnable=t}}class Lt extends kt{constructor(t,e,n,r,i,a){super(t,e,n,r,i,a)}init(t){if(t){let e=!1;Object(nt.forEach)(this.elementStates,n=>{n.variableName===t&&(e=!0)}),e||this.elementStates.push(new it.c(t,void 0))}this.initState()}get readVariableName(){if(!this.model)throw new Error("Model cannot be null");if(null==this.model.version||this.model.version<2)return this.model.variableName;{const t=this.model.readVariable;if(!t)return;return ht.a.getConvertedVariableName(this.variableStore,t)}}reportStateChanged(t){Object(nt.forEach)(this.elementStates,e=>{e.variableName===t.variableName&&(e.state=t.state,this.changeStates())})}reportValueChanged(t){Object(nt.forEach)(this.elementStates,e=>{e.variableName===t.variableName&&(e.state=t.state,this.changeStates())}),this.state!==ot.State.Normal&&this.state!==ot.State.Disable||this.updateVariableValue(t.value)}}function St(t,e,n){return n>e?1:n<t?0:(n-t)/(e-t)}function Yt(t){return t*(Math.PI/180)}class Tt extends Lt{constructor(t,e,n,r,i,a){if(super(t,e,n,r,i,a),this.defaultBarColor="#6fd149",this.defaultUpperLimitColor="#ff4448",this.defaultLowerLimitColor="#0f60e8",this.barText="",this.$barRect=this.$element.find("rect"),this.$barText=this.$element.find('text[id="text"]').last(),this.model.version&&this.model.version>=1){const t=this.model.backgroundColor?this.model.backgroundColor:"transparent";this.barElement=this.$element.children(`path[fill='${t}']`),this.defaultTransform=this.barElement.attr("transform"),this.$barRect.attr("transform",this.defaultTransform)}setTimeout(()=>{this.initFrameNode()},0)}get readVariableName(){if(!this.model)throw new Error("Model cannot be null");if(null==this.model.version||this.model.version<2)return this.model.variableName;{const t=this.model.readVariable;if(!t)return;return ht.a.getConvertedVariableName(this.variableStore,t)}}initFrameNode(){const t=Snap(this.$element[0]).getBBox(!0);this.rootElement.append("rect").attr("id","StateFrame").attr("width",t.width).attr("height",t.height).attr("fill","transparent")}updateVariableValue(t){const e=Number(t).valueOf(),n=Number(this.model.max).valueOf(),r=Number(this.model.min).valueOf(),i=this.model.useAlarmLimit,a=null!=this.model.upperLimit,o=null!=this.model.lowerLimit;let s=this.model.barColor;const u=this.model.upperLimitColor,l=this.model.lowerLimitColor,c=this.model.percentageFont;let d;d=this.model.version&&this.model.version>=1?this.barElement[0].getBBox():this.$barRect.parent()[0].getBBox();const h=St(r,n,e);let f=0;this.model.direction!==ot.BarGraphDirection.DownToUp&&this.model.direction!==ot.BarGraphDirection.LeftToRight||(f=d.height*(1-h)),s||(s=this.defaultBarColor),i&&(a&&e>+this.model.upperLimit?s=u||this.defaultUpperLimitColor:o&&e<+this.model.lowerLimit&&(s=l||this.defaultLowerLimitColor)),this.$barRect.attr("height",d.height*h),this.$barRect.attr("width",d.width),this.$barRect.attr("fill",s),this.model.version&&this.model.version>=1?this.$barRect.attr("transform",this.defaultTransform+` translate(0,${f})`):this.$barRect.attr("transform",`translate(0,${f})`),this.barText=(100*h).toFixed(0)+"%",this.$barText.text(this.barText),c&&(this.$barText.attr("font-family","Microsoft YaHei"),this.$barText.attr("font-size",c.fontSize+""),this.$barText.attr("fill",c.color),c.isBold&&this.$barText.attr("font-weight","bold"),c.isItalic&&this.$barText.attr("font-style","italic"),c.isUnderline&&this.$barText.attr("text-decoration","underline"))}}var Dt=n(12),Ct=n(19),Et=n(18);class Ot{constructor(t,e,n,r){this.variableName=t,this.isPassword=e,this.charCount=n,this.originValue=r}}var At=n(37),jt=n(41);class Ht{static getExtendedStyle(t,e){if(e<0)throw new Error("stateIndex can not less than zero.");let n;return null!=t.styles&&(n=t.styles.find(t=>null==t.version?null!=t.state&&+t.state===e:t.stateIndex===e)),n}}n(46),n(45);var Nt=n(44),Pt=n(43),Ft=n(40),Vt=n(17);class It{constructor(t,e,n,r,i){/iPhone|iPod/i.test(navigator.userAgent)&&(n+=10),this._element=this.getforeignObjectElement(n,r),this._element.innerHTML="";const a=this.createNewForeignObjectText(t,e,n,r,i);this._element.appendChild(a)}get Element(){return this._element}getforeignObjectElement(t,e){const n=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");return n.setAttribute("width",t.toString()),n.setAttribute("height",e.toString()),n}createNewForeignObjectText(t,e,n,r,i){e&&(e.fontFamily+=",msyh");const a=document.createElement("div"),o=e.textAlign?e.textAlign:"center";a.style.cssText=`user-select: none;text-align: ${o};display: table-cell;vertical-align: middle;`,Object(nt.isNil)(t)&&(t="");let s=t.toString().split("\n");s=s.map(t=>t.toString().replace(/\s/g,"&nbsp;"));const u=document.createDocumentFragment();for(let t=0;t<s.length;t++){const n=document.createElement("div");n.className="text-list",n.innerHTML=s[t]?s[t]:"&nbsp;";let r="";e.isItalic&&(r+="italic "),e.isBold&&(r+="bold ");let i=0;i=parseInt(e.fontSize,10)+5,r+=e.fontSize+"/"+i.toString()+"px "+e.fontFamily,n.style.cssText=`color: ${e.color};word-break: break-all;font: ${r};`,e.isUnderline&&(n.style.textDecoration="underline"),u.appendChild(n)}a.appendChild(u);const l=document.createElement("div");l.style.cssText="display: table;width: 100%;height: 100%;",l.appendChild(a);const c=document.createElement("div");return c.style.cssText=`overflow: hidden;width: ${n.toString()+"px"};height: ${r.toString()+"px"};`,i&&(c.style.paddingRight="8px"),c.appendChild(l),c}}class Wt extends Lt{constructor(t,e,n,i,a,o,s,u,l,c,d){super(t,o,i,l,c,d),this.modalService=n,this.graphStore=a,this.operationRecordService=s,this.securityChecker=u,this.displayValue="",this.graphs=new Map,this.logger=e.get(r.b),this.accessPermissionService=e.get(jt.a),this.initElement(),this.initClickEvent()}get readVariableName(){if(!this.model)throw new Error("Model cannot be null");if(null==this.model.version||this.model.version<1)return this.model.readVariableName;{const t=this.model.readVariable;if(!t)return;return ht.a.getConvertedVariableName(this.variableStore,t)}}get writeVariableName(){if(!this.model)throw new Error("Model cannot be null");if(null==this.model.version)return this.model.isSameVariable?this.model.readVariableName:this.model.writeVariableName;{const t=this.model.writeVariable;if(!t)return;return ht.a.getConvertedVariableName(this.variableStore,t)}}updateVariableValue(t){const e=this.getVariableValueText(t);this.displayValue=e.replace(/[\u0000-\u001F]|[\u007F-\u00A0]/g,""),this.updateDisplayValue(this.displayValue)}changeStates(){super.changeStates(),this.state===ot.State.Normal||this.state===ot.State.Disable?this.updateDisplayValue(this.displayValue):this.updateDisplayValue("")}updateDisplayValue(t){const e=this.$element.find("foreignObject").find("i");e&&e.text(t)}getVariableValueText(t){return this.characterDisplayText(this.model.isPassword,t)}characterDisplayText(t,e){let n="";return null==e||e.toString().trim().length<=0?n:(n=e.toString(),t&&(n="*".repeat(n.length)),n)}initElement(){const{rootElement:t}=this;t.selectAll("*").remove();const e=this.model.label;let n=null,r=null;this.model.size&&(n=this.model.size.width,r=this.model.size.height),n&&r||(n=60,r=38),t.append("rect").attr("id","StateFrame").attr("width",n).attr("height",r).attr("fill","transparent"),this.initVariableText(n,r);let i="";this.model.showVariableText?(i=`translate(${7*n/11},0)`,n=4*n/11):i="translate(0,0)",this.model.useGraph&&t.append("image").attr("width",n).attr("height",r).attr("preserveAspectRatio","none").attr("fill","none").attr("crossorigin","anonymous").attr("transform",i);const a=e.font;if(!a)throw new Error("font missing.");const o=t.append("foreignObject").attr("width",n).attr("height",r).attr("fill","none").attr("transform",i).append("xhtml:div").attr("class","svgBody").html("<div></div>").select("div").style("height",r+"px").style("overflow","hidden").style("display","flex").style("align-items","center").append("i");if(o.style("word-break","break-all").style("text-align",a.textAlign).style("alignment-baseline","central").style("transform",`translate(${n/2},${r/2})`).text(e.content).style("color",a.color).style("font-size",a.fontSize).style("font-style","normal").style("width","100%"),a.fontStyle){const t=a.fontStyle.split(" "),e=$.inArray("bold",t),n=$.inArray("Italic",t),r=t.pop();e>=0&&o.style("font-weight","bold"),n>=0&&o.style("font-style","italic"),o.style("font-family",r?r+",msyh":"msyh")}if(a.isUnderline&&o.style("text-decoration","underline"),this.model.useGraph)if(this.graphs.has(0)){const t=this.graphs.get(0);if(null==t)return;this.changeGraph(t)}else this.graphs.set(0,null),this.graphStore.getGraph(this.model.graphSetting.id,0,Ht.getExtendedStyle(this.model.graphSetting,0)).subscribe(t=>{this.graphs.set(0,t),this.changeGraph(t)})}initVariableText(t,e){if(!this.model.showVariableText)return;const n={isUnderline:this.model.variableText.font.isUnderline,isBold:this.model.variableText.font.isBold,isItalic:this.model.variableText.font.isItalic,fontSize:this.model.variableText.font.fontSize,fontFamily:this.model.variableText.font.fontFamily,color:this.model.variableText.font.color,textAlign:this.model.variableText.font.textAlign},r=new It(this.model.variableText.content+":",n,7*t/11,e,!0);this.$element.append(r.Element)}initClickEvent(){this.writeVariableName&&this.accessPermissionService.canWrite(this.model.accessPermission)&&(this.rootElement.style("cursor","hand"),setTimeout(()=>{const t=this.$element[0].getBBox();this.$element.find("rect").attr("width",t.width),this.$element.find("rect").attr("height",t.height)},0),this.$element.click(t=>{if(this.isInitialized)if(this.isEnable)if(this.model.useSecurity){const t=this.modalService.show(Et.a,{backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),e=t.content.onClosed.subscribe(n=>{t.hide(),e.unsubscribe(),n&&this.checkElementPassword()})}else this.checkElementPassword();else{const t=this.isGrantedPermission?this.localization.conditionIsNotMetTip:this.localization.permissiontip,e=this.modalService.show(Ct.a,{initialState:{alermMessage:t},backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),n=e.content.onClosed.subscribe(()=>{e.hide(),n.unsubscribe()})}}))}checkElementPassword(){if(this.model.enablePassword){const t=this.modalService.show(Vt.a,{initialState:{securityChecker:this.securityChecker},backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),e=t.content.onClosed.subscribe(n=>{t.hide(),e.unsubscribe(),n&&this.doWriteCharacterValue()})}else this.doWriteCharacterValue()}doWriteCharacterValue(){if(null==this.writeVariableName)return;const t=new Ot(this.writeVariableName,this.model.isPassword,this.model.charCount,this.displayValue),e=this.modalService.show(At.a,{initialState:{args:t},backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),n=e.content.onClosed.subscribe(t=>{e.hide(),n.unsubscribe(),t&&(this.variableCommunicator.write(this.writeVariableName,t.value).subscribe(),this.recordOperation(t.value))})}recordOperation(t){(this.model.isRecordOperation||void 0===this.model.isRecordOperation)&&this.operationRecordService.record({variableOptionModel:{variableName:this.writeVariableName,originValue:this.displayValue,newValue:t},operationDescription:this.model.operationDescription})}changeGraph(t){if(t.failed)this.rootElement.select("image").attr("xlink:href",null);else{const e=t.graph;switch(e.graphType){case Dt.g.Image:case Dt.g.SVG:this.rootElement.select("image").attr("xlink:href",e.source);break;default:this.logger.error(new Error(`Unknown graph ${e.graphType}.`)),this.rootElement.select("image").attr("xlink:href",null)}}}}var Rt,zt,Bt,Gt=n(1);!function(t){t[t.YYMMDD=0]="YYMMDD",t[t.MMDDYY=1]="MMDDYY",t[t.DDMMYY=2]="DDMMYY"}(Rt||(Rt={})),function(t){t[t.Dot=0]="Dot",t[t.Line=1]="Line",t[t.Slash=2]="Slash",t[t.CHS=3]="CHS"}(zt||(zt={})),function(t){t[t.HHMM=0]="HHMM",t[t.HHMMSS=1]="HHMMSS"}(Bt||(Bt={}));class Ut{constructor(t,e,n,r,i,a,o){this.graphSetting=t,this.width=e,this.height=n,this.graphStore=r,this.logger=i,this.version=a,this.faultFlickers=o,this.graphs=new Map,this.activeState=0,this.faultFlickerStatus=!1,this.faultFlickerInterval=void 0,this._element=document.createElementNS("http://www.w3.org/2000/svg","g")}get Element(){return this._element}switchToState(t){if(this.activeState=t,this.graphs.has(t)){const e=this.graphs.get(t);if(null==e)return;this.changeGraph(t,e)}else this.graphs.set(t,null),this.graphStore.getGraph(this.graphSetting.id,t,Ht.getExtendedStyle(this.graphSetting,t)).subscribe(e=>{this.graphs.set(t,e),this.activeState===t&&this.changeGraph(t,e)})}changeGraph(t,e){if(e.failed)this.removeImageElement();else{const n=e.graph;switch(n.graphType){case Dt.g.Image:case Dt.g.SVG:const e=this.getImageElement();e.setAttributeNS("http://www.w3.org/1999/xlink","href",n.source),this.doFaultFlicker(e,t);break;default:this.logger.error(new Error(`Unknown graph ${n.graphType}.`)),this.removeImageElement()}}}getImageElement(){return this.imageElement&&/iPhone|iPod/i.test(navigator.userAgent)&&this.removeImageElement(),this.imageElement||(this.imageElement=document.createElementNS("http://www.w3.org/2000/svg","image"),this.imageElement.setAttribute("width",this.width+""),this.imageElement.setAttribute("height",this.height+""),this.imageElement.setAttribute("fill","none"),this.imageElement.setAttribute("preserveAspectRatio","none"),this.imageElement.setAttribute("crossorigin","anonymous"),this._element.appendChild(this.imageElement)),this.imageElement}removeImageElement(){this.imageElement&&(this._element.removeChild(this.imageElement),delete this.imageElement)}doFaultFlicker(t,e){if(this.version>3&&this.faultFlickers){this.clearFlickerInterval(t);const n=this.faultFlickers.find(t=>t.id===e);n&&n.faultFlicker&&n.faultFlicker.flicker===ot.Flicker.Image&&(this.faultFlickerInterval=setInterval(()=>{this.faultFlickerStatus?(t.setAttributeNS(null,"display","block"),this.faultFlickerStatus=!1):(t.setAttributeNS(null,"display","none"),this.faultFlickerStatus=!0)},500*n.faultFlicker.frequency))}}clearFlickerInterval(t){this.faultFlickerInterval&&(clearInterval(this.faultFlickerInterval),this.faultFlickerStatus&&t.setAttributeNS(null,"display","block"))}}class $t extends Mt{constructor(t,e,n,i,a,o,s){if(super(t,n,i,a,s),this.permissionChecker=n,this.variableCommunicator=i,this.variableStore=a,this.graphStore=o,this.logger=e.get(r.b),this.model.size&&this.model.useGraph&&this.initGraph(this.model.size.width,this.model.size.height),this.model.showDate||this.model.showWeek||this.model.showTime){this.$dateTimeText=this.$element.find("text").last();const t=this.getDatetimeFormat(this.model);this.getAndSetCurrentTime(t),setInterval(()=>{this.getAndSetCurrentTime(t)},1e3)}}getAndSetCurrentTime(t){const e=Gt().local().format(t);this.$dateTimeText.text(e);let n=this.$dateTimeText.css("font-family");n&&-1===n.lastIndexOf("msyh")&&this.$dateTimeText.css("font-family",n+=", msyh")}getDatetimeFormat(t){let e="";const n=t.showFullYear?"YYYY":"YY";let r="";const i=t.showMonthDayWithoutZero?"M":"MM",a=t.showMonthDayWithoutZero?"D":"DD";if(t.showDate){switch(t.datetimeSeparator){case zt.Slash:r="/";break;case zt.Line:r="-";break;case zt.Dot:r=".";break;case zt.CHS:}e=this.getFormat(t.dateFormat,n,i,a,r)}if(t.showWeek&&(e+=" ddd"),t.showTime)if(e+=" ",t.isTwelveHourHex)switch(e+="A ",t.timeFormat){case Bt.HHMMSS:e+="h:mm:ss";break;case Bt.HHMM:e+="h:mm"}else switch(t.timeFormat){case Bt.HHMMSS:e+="HH:mm:ss";break;case Bt.HHMM:e+="HH:mm"}return e}initGraph(t,e){if(!0===this.model.useGraph){const n=new Ut(this.model.graphSetting,t,e,this.graphStore,this.logger);n.switchToState(0),this.$element.prepend(n.Element)}}getFormat(t,e,n,r,i){let a="";if(""===i)switch(t){case Rt.YYMMDD:a=e+"年"+n+"月"+r+"日";break;case Rt.MMDDYY:a=n+"月"+r+"日"+e+"年";break;case Rt.DDMMYY:a=r+"日"+n+"月"+e+"年"}else switch(t){case Rt.YYMMDD:a=e+i+n+i+r;break;case Rt.MMDDYY:a=n+i+r+i+e;break;case Rt.DDMMYY:a=r+i+n+i+e}return a}}var qt,Jt,Zt=n(31),Xt=n(38);!function(t){t[t.BeginOpenEndOpen=0]="BeginOpenEndOpen",t[t.BeginOpenEndClose=1]="BeginOpenEndClose",t[t.BeginCloseEndOpen=2]="BeginCloseEndOpen",t[t.BeginCloseEndClose=3]="BeginCloseEndClose"}(qt||(qt={})),function(t){t[t.Normal=0]="Normal",t[t.Loading=1]="Loading",t[t.Unbound=2]="Unbound",t[t.LoadFailed=3]="LoadFailed"}(Jt||(Jt={}));var Kt,Qt=n(13);!function(t){t[t.Line=0]="Line",t[t.BarGroup=1]="BarGroup",t[t.BarStack=2]="BarStack"}(Kt||(Kt={}));class te extends Mt{constructor(t,e,n,i,a,o,s){super(t,n,i,a,s),this.historyDataStore=o,this.displayOption={dataLimit:500,dataZoomHeight:32,marginLeft:40,marginRight:20,mobileMinWidth:450,operationAreaHeight:32,operationAreaMarginTop:10,operationSelectFontSize:"16px",operationButtonWidth:24,operationButtonHeight:24,operationButtonMargin:4},this.elementStatus=Jt.Loading,this.logger=e.get(r.b),this.localization=e.get(at.b),this.timePeriods=this.getValidTimePeriods(),this.updateTimeRange(this.model.displaySetting.displayTimePeriod),this.refreshIntervalId=setInterval(()=>{this.loadFirstPage(),this.logger.debug(`[GUI]Refresh Histoical Curve:${Zt.time.format("%x %X")(new Date)}`)},1e3*this.model.displaySetting.refreshInterval),this.isMobileMode=Qt.a.Mobile===e.get(Qt.b).displayMode,this.isMobileMode&&(this.displayOption.operationAreaMarginTop=20,this.model.displaySetting.size.width>=this.displayOption.mobileMinWidth&&(this.displayOption.operationAreaHeight=68,this.displayOption.operationSelectFontSize="24px",this.displayOption.operationButtonWidth=60,this.displayOption.operationButtonHeight=60,this.displayOption.operationButtonMargin=6)),this.loadFirstPage()}dispose(){clearInterval(this.refreshIntervalId),this.chartElement&&this.chartElement.tooltip.hidden(!0),this.logger.debug(`[GUI]Dispose Histoical Curve Refresh Interval:${Zt.time.format("%x %X")(new Date)}`)}getValidTimePeriods(){const t=new Array;return t.push({key:1,name:this.localization.lastOneHour}),t.push({key:2,name:this.localization.lastTwentyFourHours}),t.push({key:3,name:this.localization.lastSevenDays}),t.push({key:4,name:this.localization.lastThirtyDays}),t.push({key:5,name:this.localization.lastOneYear}),t}updateTimeRange(t){this.currentTimePeriod=+t,this.updateQueryTimeRange()}updateQueryTimeRange(){switch(this.endTime=Gt(),this.currentTimePeriod){case 1:this.startTime=Gt().subtract(1,"hours");break;case 3:this.startTime=Gt().subtract(7,"days");break;case 4:this.startTime=Gt().subtract(30,"days");break;case 5:this.startTime=Gt().subtract(1,"years");break;default:this.startTime=Gt().subtract(1,"days")}}reRenderElement(t,e,n,r){this.rootElement.selectAll("*").remove(),this.chartElement=null,this.renderElement(t,e,n,r)}renderElement(t,e,n,r){if(!this.model.dataSetting)return;const i=this.model.dataSetting.dataName,a=this.model.dataSetting.dataSourceCode,o=this.model.dataSetting.channels.map(t=>t.name);this.updateElementStatus(Jt.Loading);const s=new Dt.b(a,i,o,t,e,n,r);this.historyDataStore.getHistoryData(s).subscribe(t=>{t.error?this.updateElementStatus(Jt.LoadFailed,t.error):(this.clearStatus(),t.isUnbind?this.updateElementStatus(Jt.Unbound):this.updateElementStatus(Jt.Normal),t.values.length&&(this.currentStartTime=Gt(Object(nt.first)(t.values).time),this.currentEndTime=Gt(Object(nt.last)(t.values).time)),this.chartElement=this.renderChart(t.values))})}renderChart(t){const e=this.model.displaySetting.size.width,n=this.model.displaySetting.size.height-this.displayOption.operationAreaHeight-this.displayOption.operationAreaMarginTop,r=new Array;Object(nt.each)(this.model.dataSetting.channels,(e,n)=>{const i=new Array;Object(nt.each)(t,t=>i.push({x:Gt(t.time).local().toDate().valueOf(),y:t.values[n]})),r.push({key:e.name,area:e.projectEnabled,values:i})}),Xt.addGraph(()=>this.model.displaySetting.curveType===Kt.BarGroup||this.model.displaySetting.curveType===Kt.BarStack?this.getMultiBarWithFocusChart(e,n,r):this.getLineChart(e,n,r))}getLineChart(t,e,n){const r=Xt.models.lineChart().showLegend(!0).margin({top:0,bottom:0,left:this.displayOption.marginLeft,right:this.displayOption.marginRight}).noData(this.localization.chartNoData);return this.isMobileMode||(r.focusEnable(!0),r.focus.margin({top:10,right:0,bottom:0,left:0}),r.focus.height(40),r.focus.showXAxis(!1)),this.renderCommonProperty(r,t,e,n),this.isMobileMode&&this.model.displaySetting.size.width<this.displayOption.mobileMinWidth?r:(this.renderOperationArea(t,e),r)}getMultiBarWithFocusChart(t,e,n){const r=Xt.models.multiBarWithFocusChart().margin({top:0,bottom:0,left:this.displayOption.marginLeft,right:this.displayOption.marginRight}).controlLabels({grouped:this.localization.grouped,stacked:this.localization.stacked}).noData(this.localization.chartNoData);if(this.model.displaySetting.curveType===Kt.BarStack&&(r.stacked(!0),r.multibar.stacked(!0),r.multibar2.stacked(!0)),this.isMobileMode||(r.focusEnable(!0),r.focusShowAxisX(!1)),r.xAxis.tickFormat(t=>this.timeFormat(t,"%x %X")),this.renderCommonProperty(r,t,e,n),this.isMobileMode&&this.model.displaySetting.size.width<this.displayOption.mobileMinWidth)return r;this.renderOperationArea(t,e);const i=this.rootElement.select(".nv-context");return i.select(".nv-barsWrap.nvd3-svg").attr("transform","translate(0,30)"),i.select(".nv-brushBackground").attr("transform","translate(0,30)"),i.select(".nv-x.nv-brush").attr("transform","translate(0,30)"),this.model.displaySetting.showAxis||(this.rootElement.select(".tick.zero").style("display","none"),this.rootElement.select(".nv-x.nv-axis.nvd3-svg").style("display","none"),this.rootElement.select(".nv-y.nv-axis.nvd3-svg").style("display","none")),r.update(),r}renderCommonProperty(t,e,n,r){if(t.tooltip.headerFormatter(t=>this.timeFormat(t,"%x %X")),this.model.displaySetting.showAxis?(t.xAxis.showMaxMin(!0).tickFormat(t=>this.timeFormat(t,"%X")),this.model.displaySetting.axisSetting&&(this.model.displaySetting.axisSetting.showAxisLabel&&this.model.displaySetting.axisSetting.axisLabelFont?(t.xAxis.fontSize(this.model.displaySetting.axisSetting.axisLabelFont.fontSize),t.yAxis.fontSize(this.model.displaySetting.axisSetting.axisLabelFont.fontSize).tickFormat(t=>+Zt.format(".9g")(t))):(t.xAxis.tickFormat(()=>""),t.yAxis.tickFormat(()=>"")))):(t.showXAxis(!1),t.showYAxis(!1)),t.width(e),t.height(n),t.color(this.model.dataSetting.channels.map(t=>t.connectorColor)),this.rootElement.append("g").datum(r).call(t),this.rootElement.selectAll(".nv-noData").attr("x",e/2).attr("y",n/2+this.displayOption.operationAreaHeight),Xt.utils.windowResize(()=>{t.update(),this.rootElement.selectAll(".nv-noData").attr("x",e/2).attr("y",n/2+this.displayOption.operationAreaHeight)}),this.rootElement.selectAll(".domain").style("stroke-opacity",1),this.model.displaySetting.showAxis&&this.model.displaySetting.axisSetting){const t=this.model.displaySetting.axisSetting.axisColor;if(this.rootElement.selectAll(".domain").style("stroke",t),this.model.displaySetting.axisSetting.showAxisLabel){const t=this.model.displaySetting.axisSetting.axisLabelFont.fontSize;this.rootElement.selectAll(".nv-axisMaxMin").select("text").style("font-size",t)}}}renderOperationArea(t,e){const n=this.rootElement.append("g").attr("transform",`translate(0,${e+this.displayOption.operationAreaMarginTop})`).append("foreignObject").attr("width",t).attr("height",this.displayOption.operationAreaHeight).attr("fill","none").append("xhtml:div").style("height",this.displayOption.operationAreaHeight-4+"px").style("overflow","hidden").style("margin-top","4px");n.append("select").style("margin-left",this.displayOption.marginLeft+"px").style("font-size",this.displayOption.operationSelectFontSize).on("change",()=>{const t=this.rootElement.select("select").property("value");this.updateTimeRange(t),this.reRenderElement(this.startTime,this.endTime,this.displayOption.dataLimit,qt.BeginOpenEndOpen)}).selectAll("option").data(this.timePeriods).enter().append("option").text(t=>t.name).attr("value",t=>t.key).property("selected",t=>t.key===Number(this.currentTimePeriod));const r=this.displayOption.operationButtonWidth+"px",i=this.displayOption.operationButtonHeight+"px";n.append("button").style("width",r).style("height",i).style("border","none").style("float","right").style("background","white").style("background-image","url(assets/img/last_page.svg)").on("click",()=>{this.loadLastPage()}),n.append("button").style("width",r).style("height",i).style("border","none").style("float","right").style("background","white").style("background-image","url(assets/img/next_page.svg)").style("margin",`0 ${this.displayOption.operationButtonMargin}px 0 0`).on("click",()=>{this.loadNextPage()}),n.append("button").style("width",r).style("height",i).style("border","none").style("float","right").style("background","white").style("background-image","url(assets/img/previous_page.svg)").style("margin",`0 ${this.displayOption.operationButtonMargin}px 0 0`).on("click",()=>{this.loadPreviousPage()}),n.append("button").style("width",r).style("height",i).style("border","none").style("float","right").style("background","white").style("background-image","url(assets/img/first_page.svg)").style("margin",`0 ${this.displayOption.operationButtonMargin}px 0 0`).on("click",()=>{this.loadFirstPage()})}timeFormat(t,e){return Zt.time.format(e)(new Date(t))}loadFirstPage(){this.updateQueryTimeRange(),this.reRenderElement(this.startTime,this.endTime,this.displayOption.dataLimit,qt.BeginOpenEndOpen)}loadNextPage(){this.reRenderElement(this.currentEndTime,this.endTime,this.displayOption.dataLimit,qt.BeginOpenEndClose)}loadPreviousPage(){this.reRenderElement(this.startTime,this.currentStartTime,-this.displayOption.dataLimit,qt.BeginCloseEndOpen)}loadLastPage(){this.updateQueryTimeRange(),this.reRenderElement(this.startTime,this.endTime,-this.displayOption.dataLimit,qt.BeginOpenEndOpen)}initElementStatus(){this.model.dataSetting&&null!=this.model.dataSetting.dataSourceCode&&this.updateElementStatus(Jt.Loading)}updateElementStatus(t,e){switch(t){case Jt.Normal:this.elementStatus!==Jt.Normal&&(this.elementStatus=Jt.Normal);break;case Jt.Unbound:this.elementStatus=Jt.Unbound,this.setStatusAsUnbound();break;case Jt.Loading:this.elementStatus!==Jt.Unbound&&(this.elementStatus=Jt.Loading,this.setStatusAsLoading());break;case Jt.LoadFailed:this.elementStatus!==Jt.Unbound&&(this.elementStatus=Jt.LoadFailed,this.setStatusAsLoadFailed(e||this.localization.abnormal));break;default:this.logger.error(`Invalid HistoricalCurveElementStatus:${t}`)}}setStatusAsUnbound(){this.renderStatus("assets/img/unbind.svg",this.localization.unbind,"#586e7c")}setStatusAsLoading(){this.renderStatus("assets/img/loading.svg",this.localization.loading,"#226abc")}setStatusAsLoadFailed(t){this.logger.error(`[GUI]Failed to load historical curve:${t}`),this.renderStatus("assets/img/abnormal.svg",t,"#f6a520")}renderStatus(t,e,n){if(this.elementStatus===Jt.Normal)return void this.clearStatus();this.rootElement.append("rect").attr("id","StateFrame").attr("fill","transparent").attr("width",this.model.displaySetting.size.width).attr("height",this.model.displaySetting.size.height);const r=this.$element[0].ownerDocument,i=this.$element.find("rect#StateFrame").first();if(!i.length)return;this.$element.find("image#StateImage").remove();const a=r.createElementNS("http://www.w3.org/2000/svg","image");if(a){let o=Number(i[0].getAttribute("width"))-20;const s=i[0].getAttribute("x");null!==s&&(o+=Number(s)),i[0].setAttribute("stroke",n),i[0].setAttribute("stroke-opacity","0.5"),a.href.baseVal=t,a.setAttributeNS(null,"id","StateImage"),a.setAttributeNS(null,"x",o.toString()),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"height","20px"),a.setAttributeNS(null,"width","20px");const u=r.createElementNS("http://www.w3.org/2000/svg","title"),l=r.createTextNode(e);u.appendChild(l),a.appendChild(u),this.$element.append(a)}}clearStatus(){const t=this.$element.find("rect#StateFrame").first();t.length&&(t[0].getAttribute("stroke")&&t[0].removeAttribute("stroke"),this.$element.find("image#StateImage").remove())}}class ee extends Lt{constructor(t,e,n,r,i,a){let o;if(super(t,e,n,r,i,a),this.cx=0,this.cy=0,this.offsetY=0,this.model.version&&this.model.version>3?(o=this.$element.find('[data-id="main"]'),this.$handEl=this.$element.find('[data-id="hand"]'),this.arcPath$=this.$element.find('[data-id="arc"]')):(o=this.$element.children().eq(0),this.$handEl=this.$element.find("path[fill='red']"),this.arcPath$=this.$element.find("g:first > g:first > path:eq(0)")),1!==this.$handEl.length)throw new Error("missing meter hand.");this.mainElementTransform=o.attr("transform");const s=Snap(this.$handEl[0]).getBBox(!0),u=(s.x+s.width)/2;this.cx=u,this.cy=u-s.x,this.offsetY=u-s.height/2,setTimeout(()=>{this.initFrameNode(),this.changeStates()})}updateVariableValue(t){const e=this.getAngle(t);this.$handEl.attr("transform",this.mainElementTransform+` translate(0,${this.offsetY}) rotate(${e}, ${this.cx}, ${this.cy})`)}initFrameNode(){const t=Snap(this.$element[0]).getBBox();this.rootElement.append("rect").attr("id","StateFrame").attr("width",t.width).attr("height",t.height).attr("fill","transparent")}getAngle(t){const e=this.model.min,n=this.model.max,r=((t=Math.min(Math.max(t,e),n))-e)/(n-e),i=Snap(this.arcPath$[0]),a=i.getBBox(!0),o=i.getPointAtLength(r*i.getTotalLength());return this.directionPoint({x:a.width/2,y:a.height/2},o)}directionPoint(t,e){const n=e.x-t.x,r=e.y-t.y;if(0===n)return 0<r?90:0>r?270:0;if(0===r)return 0<n?0:180;if(isNaN(n)||isNaN(r))return 0;let i=180*Math.atan(Math.abs(r/n))/Math.PI;return 0>n?i=0>r?i+180:180-i:0>r&&(i=360-i),i}}class ne{constructor(t,e,n,r,i,a,o){this.variableName=t,this.dataType=e,this.integerDigits=n,this.fractionDigits=r,this.numericalOperation=i,this.version=a,this.enableDataParsed=o}}var re=n(36),ie=n(5);class ae extends Lt{constructor(t,e,n,i,a,o,s,u,l,c,d){super(t,i,a,l,c,d),this.modalService=n,this.graphStore=o,this.operationRecordService=s,this.securityChecker=u,this.displayText="",this.enableDataParsed=!1,this.logger=e.get(r.b),this.dataTypeService=e.get(Nt.a),this.fractionDigitService=e.get(Pt.a),this.accessPermissionService=e.get(jt.a),this.numericalOperationService=e.get(Ft.a),Object(nt.isNil)(this.model.displayDataType)||(this.model.displayDataType===ot.DisplayDataType.Binary&&(this.model.dataType=ie.a.Binary),this.model.displayDataType===ot.DisplayDataType.Hex&&(this.model.dataType=ie.a.Hex)),(this.model.version<6||this.model.enableDataParsed)&&(this.enableDataParsed=!0),this.initElement()}get writeVariableName(){return this.readVariableName}dispose(){this.displayForeignObject&&this.displayForeignObject.remove(),this.$element&&this.$element.remove()}initElement(){const{rootElement:t}=this;t.selectAll("*").remove();let e=null,n=null;this.model.size&&(e=this.model.size.width,n=this.model.size.height),e&&n||(e=60,n=38),t.append("rect").attr("id","StateFrame").attr("width",e).attr("height",n).attr("fill","transparent"),this.initVariableText(e,n),this.initGraphAndText(e,n),this.accessPermissionService.canWrite(this.model.accessPermission)&&null!=this.model.dataType&&(this.rootElement.style("cursor","hand"),this.$element.click(t=>{if(this.isInitialized)if(this.isEnable)if(this.model.useSecurity){const t=this.modalService.show(Et.a,{backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),e=t.content.onClosed.subscribe(n=>{t.hide(),e.unsubscribe(),n&&this.checkElementPassword()})}else this.checkElementPassword();else{const t=this.isGrantedPermission?this.localization.conditionIsNotMetTip:this.localization.permissiontip,e=this.modalService.show(Ct.a,{initialState:{alermMessage:t},backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),n=e.content.onClosed.subscribe(()=>{e.hide(),n.unsubscribe()})}}))}checkElementPassword(){if(this.model.enablePassword){const t=this.modalService.show(Vt.a,{initialState:{securityChecker:this.securityChecker},backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),e=t.content.onClosed.subscribe(n=>{t.hide(),e.unsubscribe(),n&&this.doWriteValue()})}else this.doWriteValue()}initVariableText(t,e){if(!this.model.showVariableText)return;const n={isUnderline:this.model.variableText.font.isUnderline,isBold:this.model.variableText.font.isBold,isItalic:this.model.variableText.font.isItalic,fontSize:this.model.variableText.font.fontSize,fontFamily:this.model.variableText.font.fontFamily,color:this.model.variableText.font.color,textAlign:this.model.variableText.font.textAlign},r=new It(this.model.variableText.content+":",n,7*t/11,e,!0);this.$element.append(r.Element)}initGraphAndText(t,e){let n="";if(this.model.showVariableText?(n=`translate(${7*t/11},0)`,t=4*t/11):n="translate(0,0)",!0===this.model.useGraph){const r=new Ut(this.model.graphSetting,t,e,this.graphStore,this.logger);r.Element.setAttribute("transform",n),this.$element.append(r.Element),r.switchToState(0)}let r=!1,i=!1,a=!1,o="Microsoft YaHei";if(this.model.font){const t=this.model.font.split(" ");r=this.model.isUnderline,i=$.inArray("bold",t)>=0,a=$.inArray("Italic",t)>=0,o=this.model.font.split(" ").pop()}const s={isUnderline:r,isBold:i,isItalic:a,fontSize:this.model.fontSize,fontFamily:o,color:this.model.stroke,textAlign:this.model.textAlign},u=new It("",s,t,e);u.Element.setAttribute("transform",n),this.$element.append(u.Element)}doWriteValue(){if(null==this.writeVariableName)return;const t=new ne(this.writeVariableName,this.model.dataType,this.model.integerDigits,this.model.fractionDigits,this.numericalOperationService.getNumericalOperations(this.model),this.model.version,this.enableDataParsed),e=this.modalService.show(re.a,{initialState:{args:t},backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),n=e.content.onClosed.subscribe(t=>{if(e.hide(),n.unsubscribe(),t){const e=this.dataTypeService.formatToDecimal(this.model.version,t.value,this.model.dataType);this.variableCommunicator.write(this.writeVariableName,e).subscribe(),this.recordOperation(t.value)}})}recordOperation(t){(this.model.isRecordOperation||void 0===this.model.isRecordOperation)&&this.operationRecordService.record({variableOptionModel:{variableName:this.writeVariableName,originValue:this.formatDisplayTextUnit(this.displayText),newValue:this.formatDisplayTextUnit(this.formatNumericalDisplayText(this.model.dataType,this.model.fractionDigits,t))},operationDescription:this.model.operationDescription})}changeStates(){super.changeStates(),this.state===ot.State.Normal||this.state===ot.State.Disable?this.updateDisplayText(this.formatDisplayTextUnit(this.displayText)):this.preState!==this.state&&this.updateDisplayText("")}updateVariableValue(t){this.displayText=this.formatNumericalDisplayText(this.model.dataType,this.model.fractionDigits,t),this.updateDisplayText(this.formatDisplayTextUnit(this.displayText))}updateDisplayText(t){if(this.displayForeignObject||(this.model.showVariableText?this.displayForeignObject=this.$element.find("foreignObject").eq(1):this.displayForeignObject=this.$element.find("foreignObject").eq(0)),Object(nt.isNil)(t))this.displayForeignObject.remove();else{const e=this.displayForeignObject.find(".text-list"),n=t.toString().split("\n");if(e.length===n.length)for(let t=0;t<e.length;t++)e[t].innerText=n[t];else{this.displayForeignObject.remove();const e=this.displayForeignObject.attr("width"),n=this.displayForeignObject.attr("height"),r=this.displayForeignObject.attr("transform");this.displayForeignObject=$(this.rebuildTextElement(e,n,r,t))}}}rebuildTextElement(t,e,n,r){let i=!1,a=!1,o=!1,s="Microsoft YaHei";if(this.model.font){const t=this.model.font.split(" ");i=this.model.isUnderline,a=$.inArray("bold",t)>=0,o=$.inArray("Italic",t)>=0,s=this.model.font.split(" ").pop()}const u={isUnderline:i,isBold:a,isItalic:o,fontSize:this.model.fontSize,fontFamily:s,color:this.model.stroke,textAlign:this.model.textAlign},l=new It(r,u,Number(t),Number(e));return l.Element.setAttribute("transform",n),this.$element.append(l.Element),l.Element}formatNumericalDisplayText(t,e,n){if(null==n||n.toString().trim().length<=0)return"";if(n=+n,this.dataTypeService.isHexType(this.model.version,t))return(n>>>0).toString(16).toUpperCase();if(this.dataTypeService.isBinaryType(this.model.version,t)){const t=(n>>>0).toString(2);if(t.length<17)return t;const e="1111111111111111";if(0===t.indexOf(e))return t.replace(e,"");const r="0000000000000000";return 0===t.indexOf(r)?t.replace(r,""):t}if(!this.isNumeric(n)||null==e||e<0)return n;if(!this.enableDataParsed)return n;if(!this.dataTypeService.isSupportFractionDigit(this.model.version,t))return n;if(this.dataTypeService.isSupportNumericalOperation(this.model.version,t)&&this.model.enableNumericalOperation&&this.isNumeric(n))return this.numericalOperationService.getNumericalOperationedValue(this.model,n,e);if(this.dataTypeService.isFloat(this.model.version,t))return this.formatFloatDisplayText(e,n);if(0===e)return n;let r=Number(n).toFixed(0).toString();const i=+r<0;if(i&&(r=r.slice(1,r.length)),r.length>e){const t=r.length-e;r=r.substr(0,t)+"."+r.substr(t)}else{const t=e-r.length;for(let e=0;e<t;e++)r=`0${r}`;r=`0.${r}`}return i?`-${r}`:r}formatFloatDisplayText(t,e){let n=Number(e);return Object(nt.isNil)(t)?n.toFixed(0):(n=+n.toFixed(t+2),this.fractionDigitService.roundingToFixedFractionDigits(n,t))}isNumeric(t){return!isNaN(t)}formatDisplayTextUnit(t){return!1!==this.model.showUnit&&this.model.unit?`${t} ${this.model.unit}`:t}}var oe=n(32),se=n(20);class ue extends xt{constructor(t,e,n,r,i,a){super(t,e,n,r,i,a),this.variableCommunicator=n,this.variableStore=r,this.recoverData(),setTimeout(()=>{this.initConditionalControl()})}initConditionalControl(){if(!1===this.model.isControl)return;if(null==this.model.controlItems||!this.model.controlItems.length)return;const t=new ot.ConditionItemsResultObserver(this.model.controlItems,this.variableCommunicator,this.variableStore);t.conditionResultChanged.subscribe(t=>{this.updateElement(t)}),t.requestData(this.signalRAppId)}recoverData(){if(!this.model)throw new Error("Model cannot be null");if(null==this.model.version||this.model.version<1){if(this.model.variableName){this.model.controlItems=new Array;const t={variableName:this.model.variableName,bitConditionLogic:ot.BitConditonLogic.On},e={index:0,conditionType:oe.a.Bit,condition:t,relationType:se.a.None};this.model.controlItems.push(e);const n=new ft.a(e.condition.variableName,e.condition.variableGroupName,e.condition.dataSourceCode,e.condition.variableVersion);this.addElementState(new it.c(ht.a.getConvertedVariableName(this.variableStore,n),void 0)),this.initState()}}else if(this.model.version<2){if(this.model.readVariable&&this.model.readVariable.name&&this.model.readVariable.groupName){this.model.controlItems=new Array;const t={variableName:this.model.readVariable.name,variableGroupName:this.model.readVariable.groupName,bitConditionLogic:ot.BitConditonLogic.On},e={index:0,conditionType:oe.a.Bit,condition:t,relationType:se.a.None};this.model.controlItems.push(e);const n=new ft.a(e.condition.variableName,e.condition.variableGroupName,e.condition.dataSourceCode,e.condition.variableVersion);this.addElementState(new it.c(ht.a.getConvertedVariableName(this.variableStore,n),void 0)),this.initState()}}else Object(nt.forEach)(this.model.controlItems,t=>{if(t.condition.variableName){const e=new ft.a(t.condition.variableName,t.condition.variableGroupName,t.condition.dataSourceCode,t.condition.variableVersion);this.addElementState(new it.c(ht.a.getConvertedVariableName(this.variableStore,e),void 0)),this.initState()}})}}class le extends ue{constructor(t,e,n,r,i,a){super(t,e,n,r,i,a),this.initDefaultData(this.model);const o=this.$element.children();if(o&&o.length){if(this.model.isPipeWall){const t=o.eq(0);t&&(t.attr("stroke",this.model.pipeWallColor),t.attr("stroke-width",this.model.pipeDiameter))}if(this.elePipeInnerwall=o.eq(this.model.isPipeWall?1:0),this.elePipeInnerwall.attr("stroke",this.model.backGroundColor),this.model.pipeDiameter-2*this.model.pipeWallSize<=0?this.elePipeInnerwall.attr("stroke-width",1):this.elePipeInnerwall.attr("stroke-width",this.model.pipeDiameter-2*this.model.pipeWallSize),this.elePipeInnerwall.attr("stroke-opacity",1),this.model.isFlowBlock){const t=this.model.blockLength+","+this.model.blockMargin;this.elePipeFlowBlock=o.eq(this.model.isPipeWall?2:1),this.elePipeFlowBlock.attr("d",o.first().attr("d")),this.elePipeFlowBlock.attr("stroke",this.model.blockColor),this.elePipeFlowBlock.attr("stroke-width",this.model.blockWidth),this.elePipeFlowBlock.attr("stroke-dasharray",t),this.elePipeFlowBlock.attr("stroke-opacity",1),this.elePipeFlowBlock.css("display","block")}this.pathLength=this.model.blockLength+this.model.blockMargin,this.model.isFlowBlock&&!this.model.isFlow&&this.elePipeFlowBlock.append(this.getAnimate()),setTimeout(()=>{this.initFrameNode()},0)}}initDefaultData(t){void 0===t.isPipeWall&&(t.isPipeWall=!0),void 0===t.isFlowBlock&&(t.isFlowBlock=!0),void 0===t.pipeWallColor&&(this.model.pipeWallColor="#333"),void 0===t.pipeDiameter&&(t.pipeDiameter=14),void 0===t.backGroundColor&&(t.backGroundColor="#ffffff"),void 0===t.pipeWallSize&&(t.pipeWallSize=1),void 0===t.blockLength&&(t.blockLength=12),void 0===t.blockMargin&&(t.blockMargin=6),void 0===t.blockColor&&(t.blockColor="#0081ff"),void 0===t.blockWidth&&(t.blockWidth=6)}updateElement(t){this.updateElementStates(t.states),this.model.isFlow&&this.startOrStopPipeFlow(t.value)}initFrameNode(){const t=Snap(this.$element.find("path:last")[0]).getBBox(!0);let e=this.model.pipeDiameter,n=t.width+1,r=(e=(e=e<t.height?t.height:e)<20?20:e)/2;t.height>0?(r=6,e+=15,n+=2):(r-=1,20===e&&(r-=3)),this.rootElement.append("rect").attr("id","StateFrame").attr("width",n).attr("height",e).attr("x",r).attr("fill","none")}startOrStopPipeFlow(t){this.elePipeFlowBlock&&(this.elePipeFlowBlock.children().remove(),t&&this.elePipeFlowBlock.append(this.getAnimate()))}getAnimate(){switch(this.model.flowDirection){case ot.FlowDirectionType.Positive:return this.getAnimateElement(this.pathLength,0);case ot.FlowDirectionType.Negative:return this.getAnimateElement(0,this.pathLength);default:throw new Error("Unknown flowDirection:"+this.model.flowDirection)}}getAnimateElement(t,e){const n=this.$element[0].ownerDocument.createElementNS("http://www.w3.org/2000/svg","animate");return n.setAttribute("attributeType","XML"),n.setAttribute("attributeName","stroke-dashoffset"),n.setAttribute("from",t.toString()),n.setAttribute("to",e.toString()),n.setAttribute("by","3"),n.setAttribute("dur","1s"),n.setAttribute("repeatCount","indefinite"),n}}var ce=Math.PI,de=2*ce,he=de-1e-6;function fe(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function me(){return new fe}fe.prototype=me.prototype={constructor:fe,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,u=r-e,l=a-t,c=o-e,d=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(d>1e-6)if(Math.abs(c*s-u*l)>1e-6&&i){var h=n-a,f=r-o,m=s*s+u*u,p=h*h+f*f,g=Math.sqrt(m),v=Math.sqrt(d),_=i*Math.tan((ce-Math.acos((m+d-p)/(2*g*v)))/2),y=_/v,b=_/g;Math.abs(y-1)>1e-6&&(this._+="L"+(t+y*l)+","+(e+y*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*f)+","+(this._x1=t+b*s)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+o,l=e+s,c=1^a,d=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+u+","+l),n&&(d<0&&(d=d%de+de),d>he?this._+="A"+n+","+n+",0,1,"+c+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=ce)+","+c+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var pe,ge=me;class ve extends Lt{constructor(t,e,n,r,i,a){super(t,e,n,r,i,a);const o=$(t);this._barElement$=o.find('path[data-id="barArc"]'),this._textElement$=o.find('text[data-id="pText"]'),setTimeout(()=>{this.initFrameNode(),this.changeStates()},0)}get readVariableName(){if(!this.model.variableId)return"";const t=new ft.a(this.model.variableId.variableName.name,this.model.variableId.variableName.groupName,this.model.variableId.dataSourceCode,this.model.variableId.variableName.variableVersion);return ht.a.getConvertedVariableName(this.variableStore,t)}initFrameNode(){const t=Snap(this.$element[0]).getBBox(!0);this.rootElement.append("rect").attr("id","StateFrame").attr("width",t.width).attr("height",t.height).attr("fill","transparent")}updateVariableValue(t){const e=St(this.model.min,this.model.max,t);this.updateBar(e),this._barElement$.attr("fill",this.getBarColor(t)),this.model.showPercentage&&this._textElement$.text((100*e).toFixed(0)+"%")}updateBar(t){const e=this.model,n=e.size.width/2,r=e.arc.startAngle,i=e.arc.endAngle,a=r===i?360:r<i?i-r:i+360-r,o=n*(e.scale/100),s=ge();switch(Number(e.direction)){case lt.ClockWise:this.drawClockWiseArc(r,a,t,s,n,o);break;case lt.ReverseClockWise:this.drawAntiClockWiseArc(i,a,t,s,n,o)}s.closePath(),this._barElement$.attr("d",s.toString())}getBarColor(t){const e=this.model;if(!e.enableAlarmRange)return e.barFill;const n=e.alarmRange;return t>n.upper?n.upperFill:t<n.lower?n.lowerFill:e.barFill}drawClockWiseArc(t,e,n,r,i,a){const o=Yt(t),s=Yt(e*n+t);r.arc(i,i,i,o,s),r.arc(i,i,a,s,o,!0)}drawAntiClockWiseArc(t,e,n,r,i,a){const o=Yt(t),s=Yt(t-e*n);r.arc(i,i,i,o,s,!0),r.arc(i,i,a,s,o)}}!function(t){t[t.Image=0]="Image",t[t.Graph=1]="Graph"}(pe||(pe={}));class _e extends wt{constructor(t,e,n,i,a,o,s,u){if(super(t,i,a,o,u),this.graphStore=s,this.logger=e.get(r.b),!this.model.version||this.model.version<4||this.model.fillType!==pe.Graph){let t="";this.model.imageId&&(t=n.getImageUrl(this.model.imageId));const e=this.rootElement.select("image");if(e.empty()){const e=this.model.size;e&&this.rootElement.append("image").attr("width",e.width).attr("height",e.height).attr("xlink:href",t).attr("preserveAspectRatio","none").attr("crossorigin","anonymous")}else e.attr("xlink:href",t).attr("crossorigin","anonymous")}else this.initGraph(this.model.size.width,this.model.size.height)}initGraph(t,e){const n=new Ut(this.model.graphSetting,t,e,this.graphStore,this.logger);n.switchToState(0),this.$element.prepend(n.Element)}}class ye extends wt{constructor(t,e,n,i,a,o,s){if(super(t,n,i,a,s),this.graphStore=o,this.logger=e.get(r.b),this.model.text&&this.model.size){const t=this.model.size.width,e=this.model.size.height;if(this.rootElement.selectAll("*").remove(),this.rootElement.append("rect").attr("width",t).attr("height",e).attr("fill","transparent"),!0===this.model.useGraph){const n=new Ut(this.model.graphSetting,t,e,this.graphStore,this.logger);n.switchToState(0),this.$element.prepend(n.Element)}const n={isUnderline:this.model.isUnderline,isBold:this.isBold(this.model.font),isItalic:this.isItalic(this.model.font),fontSize:this.model.fontSize,fontFamily:this.fontFamily(this.model.font),color:this.model.stroke,textAlign:this.model.textAlign},r=new It(this.model.text,n,t,e);this.$element.append(r.Element)}else this.handleTextValue(),this.model.size&&this.model.useGraph&&this.initGraph(this.model.size.width,this.model.size.height)}dispose(){this.$element&&this.$element.remove()}handleTextValue(){const t=this.$element.find("text");for(let e=0;e<t.length;e++)t[e].style.whiteSpace="pre"}initGraph(t,e){const n=new Ut(this.model.graphSetting,t,e,this.graphStore,this.logger);n.switchToState(0),this.$element.prepend(n.Element)}}class be{constructor(t,e,n,r,i,a){this.textStates=t,this.width=e,this.height=n,this.logger=r,this.version=i,this.faultFlickers=a,this.faultFlickerStatus=!1,this.faultFlickerInterval=void 0,this._element=document.createElementNS("http://www.w3.org/2000/svg","g")}get Element(){return this._element}switchToState(t){const e=this.textStates.find(e=>e.id===t);if(void 0===e)return this.removeForeignObjectlement(),void this.logger.debug(`Can not find text state:${t}.`);const n=e.text.content;if(""===n)return void this.removeForeignObjectlement();const r=e.text.font;if(!r)return this.removeForeignObjectlement(),void this.logger.debug("The font is undefined.");const i=this.getforeignObjectElement();i.innerHTML="";const a=this.createNewForeignObjectText(n,r);i.appendChild(a),this.doFaultFlicker(i,t)}getforeignObjectElement(){return this.textElement||(this.textElement=document.createElementNS("http://www.w3.org/2000/svg","foreignObject"),this.textElement.setAttribute("width",this.width.toString()),this.textElement.setAttribute("height",this.height.toString()),this._element.appendChild(this.textElement)),this.textElement}createNewForeignObjectText(t,e){e&&(e.fontFamily+=",msyh");const n=document.createElement("div");n.style.textAlign=e.textAlign?e.textAlign:"center",n.style.userSelect="none",n.style.display="table-cell",n.style.verticalAlign="middle",Object(nt.isNil)(t)&&(t="");let r=t.toString().split("\n");r=r.map(t=>t.toString().replace(/\s/g,"&nbsp;"));const i=document.createDocumentFragment();for(let t=0;t<r.length;t++){const n=document.createElement("div");n.innerHTML=r[t]?r[t]:"&nbsp;";let a="";e.isItalic&&(a+="italic "),e.isBold&&(a+="bold "),n.style.wordBreak="break-word",n.style.color=e.color;let o=0;o=parseInt(e.fontSize,10)+5,a+=e.fontSize+"px/"+o+"px "+e.fontFamily,n.style.font=a,e.isUnderline&&(n.style.textDecoration="underline"),i.appendChild(n)}n.appendChild(i);const a=document.createElement("div");a.style.display="table",a.style.width="100%",a.style.height="100%",a.appendChild(n);const o=document.createElement("div");return o.style.overflow="hidden",o.style.width=this.width.toString()+"px",o.style.height=this.height.toString()+"px",o.appendChild(a),o}removeForeignObjectlement(){this.textElement&&(this._element.removeChild(this.textElement),delete this.textElement)}doFaultFlicker(t,e){if(this.version>3&&this.faultFlickers){this.clearFlickerInterval(t);const n=this.faultFlickers.find(t=>t.id===e);n&&n.faultFlicker&&n.faultFlicker.flicker===ot.Flicker.Label&&(this.faultFlickerInterval=setInterval(()=>{this.faultFlickerStatus?(t.setAttributeNS(null,"display","block"),this.faultFlickerStatus=!1):(t.setAttributeNS(null,"display","none"),this.faultFlickerStatus=!0)},500*n.faultFlicker.frequency))}}clearFlickerInterval(t){this.faultFlickerInterval&&(clearInterval(this.faultFlickerInterval),this.faultFlickerStatus&&t.setAttributeNS(null,"display","block"))}}class Me{constructor(t,e){this.state=t,this.value=e,this.state=t,this.value=e}}var we=n(29);class xe{constructor(t,e,n,r){if(this.settings=t,this.variableCommunicator=n,this.variableStore=r,this.currentStateIdChanged=new ct.EventEmitter,!this.settings)throw new Error("settings cannot be null");Object(nt.each)(e,t=>{const e=t.condition;if(!e)throw new Error("Invalid bit condition.");switch(+e.logic){case ot.BitConditonLogic.Off:if(this.offStateId)throw new Error("Dumplicate off state.");this.offStateId=t.id;break;case ot.BitConditonLogic.On:if(this.onStateId)throw new Error("Dumplicate on state.");this.onStateId=t.id;break;default:throw new Error(`Unknown BitConditonLogic:${e.logic}`)}})}get variableName(){const t=new ft.a(this.settings.variableName,this.settings.variableGroupName,this.settings.dataSourceCode,this.settings.variableVersion);return ht.a.getConvertedVariableName(this.variableStore,t)}requestData(t){this.variableName&&this.variableCommunicator.subscribeVariableState(this.variableName).subscribe(e=>{e.state===it.d.Normal?this.requestCurrentSateIdValue(this.variableCommunicator,t):this.currentStateIdChanged.emit(new Me(new it.c(this.variableName,e.state)))})}requestCurrentSateIdValue(t,e=""){t.openVariable(this.variableName,e).subscribe(t=>{if(t.state===it.d.DataNormal)if(this.settings.isBitwiseIndex){const e=31;this.binary=new we.a(t.value,e+1);const n=new it.e(t.variableName,t.state,Number(this.binary.convertToBinary().substr(e-this.settings.bitIndex,1)));this.currentStateId=n.value?this.onStateId:this.offStateId,this.currentStateIdChanged.emit(new Me(new it.c(this.variableName,t.state),this.currentStateId))}else this.currentStateId=t.value?this.onStateId:this.offStateId,this.currentStateIdChanged.emit(new Me(new it.c(this.variableName,t.state),this.currentStateId));else delete this.currentStateId,this.currentStateIdChanged.emit(new Me(new it.c(this.variableName,t.state)))})}}class ke{constructor(t,e,n,r){if(this.settings=t,this.variableCommunicator=e,this.variableStore=n,this.signalRAppId=r,!this.settings)throw new Error("settings cannot be null");this.settings.isWriteOnly?this.canExecuteInternal=!0:e.openVariable(this.variableName,this.signalRAppId).subscribe(t=>{this.currentValue=t,this.canExecuteInternal=this.currentValue&&this.currentValue.state===it.d.DataNormal})}get variableName(){const t=new ft.a(this.settings.variableName,this.settings.variableGroupName,this.settings.dataSourceCode,this.settings.variableVersion);return ht.a.getConvertedVariableName(this.variableStore,t)}canExecute(){return this.canExecuteInternal}execute(){if(!this.canExecute())throw new Error("Can not execute.");const t=this.settings;let e,n,r;switch(t.isBitwiseIndex&&(n=31,this.binary=new we.a(this.currentValue.value,n+1)),+t.operation){case ot.BitSwitchOperation.On:e=1,t.isBitwiseIndex?this.variableCommunicator.writeWordByBit(this.variableName,t.bitIndex,e).subscribe():this.variableCommunicator.write(this.variableName,e).subscribe();break;case ot.BitSwitchOperation.Off:e=0,t.isBitwiseIndex?this.variableCommunicator.writeWordByBit(this.variableName,t.bitIndex,e).subscribe():this.variableCommunicator.write(this.variableName,e).subscribe();break;case ot.BitSwitchOperation.Inverse:if(!this.settings.isWriteOnly)if(e=0===this.currentValue.value?1:0,t.isBitwiseIndex){let e=Number(this.binary.convertToBinary().substr(n-this.settings.bitIndex,1));e=0===e?1:0,this.variableCommunicator.writeWordByBit(this.variableName,t.bitIndex,e).subscribe()}else this.variableCommunicator.write(this.variableName,e).subscribe();break;default:throw new Error(`Unknown BitSwitchOperation:${t.operation}`)}return this.currentValue&&void 0!==this.currentValue.value&&(r=this.currentValue.value),Promise.resolve({variableName:this.variableName,originValue:r,newValue:e})}}class Le{constructor(t,e,n,r){if(this.settings=t,this.variableCommunicator=n,this.variableStore=r,this.currentStateIdChanged=new ct.EventEmitter,!this.settings)throw new Error("settings cannot be null");this.sortedStates=Object(nt.sortBy)(e,["id"])}get variableName(){const t=new ft.a(this.settings.variableName,this.settings.variableGroupName,this.settings.dataSourceCode,this.settings.variableVersion);return ht.a.getConvertedVariableName(this.variableStore,t)}requestData(t){this.variableName?this.variableCommunicator.subscribeVariableState(this.variableName).subscribe(e=>{e.state===it.d.Normal?this.requestCurrentSateIdValue(this.variableCommunicator,t):this.currentStateIdChanged.emit(new Me(new it.c(this.variableName,e.state)))}):this.requestCurrentSateIdValue(this.variableCommunicator,t)}requestCurrentSateIdValue(t,e=""){t.openVariable(this.variableName,e).subscribe(t=>{if(t.state===it.d.DataNormal){let e=0;for(let n=0;n<this.sortedStates.length-1;n++){const r=this.sortedStates[n],i=r.condition;if(!i)throw new Error(`condition is not WordCondition.stateId:${r.id}`);if(e=r.id,ot.ConditionHelper.isSatisfied(i.operator,i.operand,+t.value))return this.currentStateId=e,void this.currentStateIdChanged.emit(new Me(new it.c(this.variableName,t.state),this.currentStateId))}this.currentStateId=Object(nt.last)(this.sortedStates).id,this.currentStateIdChanged.emit(new Me(new it.c(this.variableName,t.state),this.currentStateId))}else delete this.currentStateId,this.currentStateIdChanged.emit(new Me(new it.c(this.variableName,t.state)))})}}class Se{constructor(t,e,n,r){if(this.settings=t,this.variableCommunicator=e,this.variableStore=n,this.signalRAppId=r,!this.settings)throw new Error("settings cannot be null");this.settings.isWriteOnly?this.canExecuteInternal=!0:e.openVariable(this.variableName,this.signalRAppId).subscribe(t=>{this.currentValue=t,this.canExecuteInternal=this.currentValue&&this.currentValue.state===it.d.DataNormal})}get variableName(){const t=new ft.a(this.settings.variableName,this.settings.variableGroupName,this.settings.dataSourceCode,this.settings.variableVersion);return ht.a.getConvertedVariableName(this.variableStore,t)}canExecute(){return this.canExecuteInternal}execute(){if(!this.canExecute())throw new Error("Can not execute.");const t=this.settings;let e,n;switch(+t.operation){case ot.WordSwitchOperation.Add:this.settings.isWriteOnly||(e=ut.e.add(+this.currentValue.value,t.operand,t.dataType,t.maxValue),this.variableCommunicator.write(this.variableName,e).subscribe());break;case ot.WordSwitchOperation.Subtract:this.settings.isWriteOnly||(e=ut.e.subtract(+this.currentValue.value,t.operand,t.dataType,t.minValue),this.variableCommunicator.write(this.variableName,e).subscribe());break;case ot.WordSwitchOperation.SetConstant:e=t.operand,this.variableCommunicator.write(this.variableName,e).subscribe();break;default:throw new Error(`Unknown WordSwitchOperator:${t.operation}`)}return this.currentValue&&void 0!==this.currentValue.value&&(n=this.currentValue.value),Promise.resolve({variableName:this.variableName,originValue:n,newValue:e})}}class Ye extends kt{constructor(t,e,n,i,a,o,s,u,l,c,d){super(t,o,i,l,c,d),this.modalService=n,this.graphStore=a,this.operationRecordService=s,this.securityChecker=u,this.logger=e.get(r.b),this.isMobileMode=Qt.a.Mobile===e.get(Qt.b).displayMode,this.checkState(),this.model.useSwitch&&(this.initSwitchOperator(),this.rootElement.style("cursor","hand"),this.rootElement.on("mousedown",()=>{if(this.isInitialized)if(this.isEnable){if(this.switchOperator.canExecute()){if(this.model.useSecurity){const t=this.modalService.show(Et.a,{backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),e=t.content.onClosed.subscribe(n=>{t.hide(),e.unsubscribe(),n&&this.checkElementPassword()})}else this.checkElementPassword(),this.model.useIndicatorLight||this.isMobileMode||this.switchToState(1);N.preventDefault()}}else{const t=this.isGrantedPermission?this.localization.conditionIsNotMetTip:this.localization.permissiontip,e=this.modalService.show(Ct.a,{initialState:{alermMessage:t},backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),n=e.content.onClosed.subscribe(()=>{e.hide(),n.unsubscribe()})}}),this.model.useIndicatorLight||this.isMobileMode||this.rootElement.on("mouseup",()=>{this.switchToState(0),N.preventDefault()})),this.initGraphAndText(),this.model.useIndicatorLight?this.initIndictorLightOperator():this.switchToState(0)}checkElementPassword(){if(this.model.enablePassword){const t=this.modalService.show(Vt.a,{initialState:{securityChecker:this.securityChecker},backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),e=t.content.onClosed.subscribe(n=>{t.hide(),e.unsubscribe(),n&&this.doSwitchOperator()})}else this.doSwitchOperator()}doSwitchOperator(){this.switchOperator.execute().then(t=>{(this.model.isRecordOperation||void 0===this.model.isRecordOperation)&&(void 0===t.newValue&&void 0===t.originValue||this.operationRecordService.record({variableOptionModel:t,operationDescription:this.model.operationDescription}))}).catch(()=>{throw new Error("Failure of the operation record:switchOperator")})}initSwitchOperator(){const t=this.model.switchSettings;switch(t.type){case ot.SwitchType.Bit:this.switchOperator=new ke(t.settings,this.variableCommunicator,this.variableStore,this.signalRAppId);break;case ot.SwitchType.Word:this.switchOperator=new Se(t.settings,this.variableCommunicator,this.variableStore,this.signalRAppId);break;default:throw new Error(`Unknown switchType:${t.type}`)}}initIndictorLightOperator(){const t=this.model.indicatorLightSettings;if(t.settings.variableName){const e=new ft.a(t.settings.variableName,t.settings.variableGroupName,t.settings.dataSourceCode,t.settings.variableVersion);this.addElementState(new it.c(ht.a.getConvertedVariableName(this.variableStore,e),void 0)),this.initState()}switch(t.type){case ot.IndicatorLightType.Bit:this.indicatorLightOperator=new xe(t.settings,this.model.states,this.variableCommunicator,this.variableStore);break;case ot.IndicatorLightType.Word:this.indicatorLightOperator=new Le(t.settings,this.model.states,this.variableCommunicator,this.variableStore);break;default:throw new Error(`Unknown switchType:${t.type}`)}this.indicatorLightOperator.currentStateIdChanged.subscribe(t=>{this.currentStateIdChange(t)}),this.indicatorLightOperator.requestData(this.signalRAppId)}currentStateIdChange(t){Object(nt.isUndefined)(t.value)||this.switchToState(t.value),this.updateElementStates([t.state]),this.state!==ot.State.Unbind&&this.state!==ot.State.Offline||this.switchToState(0)}switchToState(t){this.textStateElement.switchToState(t),this.graphStateElement&&this.graphStateElement.switchToState(t)}initGraphAndText(){this.rootElement.selectAll("*").remove();const t=this.model.size,e=t.width,n=t.height;this.rootElement.append("rect").attr("id","StateFrame").attr("width",e).attr("height",n).attr("fill","transparent"),!0===this.model.useGraph&&(this.graphStateElement=new Ut(this.model.graphSetting,e,n,this.graphStore,this.logger,this.model.version,this.model.states),this.$element.append(this.graphStateElement.Element)),this.textStateElement=new be(this.model.states,e,n,this.logger,this.model.version,this.model.states),this.$element.append(this.textStateElement.Element)}checkState(){if(!this.model.states)throw new Error("The switch indicator light's states is undefined.");if(this.model.states.length<2)throw new Error("The switch indicator light's states must greater than 2.")}}class Te extends wt{constructor(t,e,n,r,i){super(t,e,n,r,i)}}class De extends wt{constructor(t,e,n,r,i){super(t,e,n,r,i)}}class Ce extends wt{constructor(t,e,n,r,i){super(t,e,n,r,i)}}var Ee={value:function(){}};function Oe(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new Ae(r)}function Ae(t){this._=t}function je(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function He(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Ee,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Ae.prototype=Oe.prototype={constructor:Ae,on:function(t,e){var n,r=this._,i=function(t,e){return t.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=He(r[n],t.name,e);else if(null==e)for(n in r)r[n]=He(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=je(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Ae(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};var Ne=Oe;function Pe(){N.stopImmediatePropagation()}var Fe=function(){N.preventDefault(),N.stopImmediatePropagation()},Ve=function(t){var e=t.document.documentElement,n=U(t).on("dragstart.drag",Fe,!0);"onselectstart"in e?n.on("selectstart.drag",Fe,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};var Ie=function(t){return function(){return t}};function We(t,e,n,r,i,a,o,s,u,l){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=a,this.y=o,this.dx=s,this.dy=u,this._=l}function Re(){return!N.button}function ze(){return this.parentNode}function Be(t){return null==t?{x:N.x,y:N.y}:t}function Ge(){return"ontouchstart"in this}We.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Ue=function(){var t,e,n,r,i=Re,a=ze,o=Be,s=Ge,u={},l=Ne("start","drag","end"),c=0,d=0;function h(t){t.on("mousedown.drag",f).filter(s).on("touchstart.drag",g).on("touchmove.drag",v).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){if(!r&&i.apply(this,arguments)){var o=y("mouse",a.apply(this,arguments),tt,this,arguments);o&&(U(N.view).on("mousemove.drag",m,!0).on("mouseup.drag",p,!0),Ve(N.view),Pe(),n=!1,t=N.clientX,e=N.clientY,o("start"))}}function m(){if(Fe(),!n){var r=N.clientX-t,i=N.clientY-e;n=r*r+i*i>d}u.mouse("drag")}function p(){U(N.view).on("mousemove.drag mouseup.drag",null),function(t,e){var n=t.document.documentElement,r=U(t).on("dragstart.drag",null);e&&(r.on("click.drag",Fe,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(N.view,n),Fe(),u.mouse("end")}function g(){if(i.apply(this,arguments)){var t,e,n=N.changedTouches,r=a.apply(this,arguments),o=n.length;for(t=0;t<o;++t)(e=y(n[t].identifier,r,et,this,arguments))&&(Pe(),e("start"))}}function v(){var t,e,n=N.changedTouches,r=n.length;for(t=0;t<r;++t)(e=u[n[t].identifier])&&(Fe(),e("drag"))}function _(){var t,e,n=N.changedTouches,i=n.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),t=0;t<i;++t)(e=u[n[t].identifier])&&(Pe(),e("end"))}function y(t,e,n,r,i){var a,s,d,f=n(e,t),m=l.copy();if(W(new We(h,"beforestart",a,t,c,f[0],f[1],0,0,m),function(){return null!=(N.subject=a=o.apply(r,i))&&(s=a.x-f[0]||0,d=a.y-f[1]||0,!0)}))return function o(l){var p,g=f;switch(l){case"start":u[t]=o,p=c++;break;case"end":delete u[t],--c;case"drag":f=n(e,t),p=c}W(new We(h,l,a,t,p,f[0]+s,f[1]+d,f[0]-g[0],f[1]-g[1],m),m.apply,m,[l,r,i])}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:Ie(!!t),h):i},h.container=function(t){return arguments.length?(a="function"==typeof t?t:Ie(t),h):a},h.subject=function(t){return arguments.length?(o="function"==typeof t?t:Ie(t),h):o},h.touchable=function(t){return arguments.length?(s="function"==typeof t?t:Ie(!!t),h):s},h.on=function(){var t=l.on.apply(l,arguments);return t===l?h:t},h.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,h):Math.sqrt(d)},h},$e=n(30);class qe extends kt{constructor(t,e,n,i,a,o,s,u,l,c,d,h,f,m){super(t,s,i,a,c,m),this.modalService=n,this.graphStore=o,this.operationRecordService=u,this.securityChecker=l,this.popupViewService=d,this.hostContainerId=h,this.el=f,this.touchedScreenX=0,this.touchedScreenY=0,this.logger=e.get(r.b),this.viewService=e.get($e.a),this.initElement()}initElement(){const t=this.model.size.width,e=this.model.size.height;this.initGraph(t,e),this.rootElement.append("rect").attr("id","StateFrame").attr("width",t).attr("height",e).attr("fill","transparent");const n=this.$element.find("text").last(),r=this.model.label.font.fontStyle;n.css("font",r+",msyh"),this.switchToState(0),this.rootElement.on("mousedown",()=>{if(this.isInitialized)if(this.switchToState(1),N.preventDefault(),this.isEnable);else{const t=this.isGrantedPermission?this.localization.conditionIsNotMetTip:this.localization.permissiontip,e=this.modalService.show(Ct.a,{initialState:{alermMessage:t},backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),n=e.content.onClosed.subscribe(()=>{e.hide(),n.unsubscribe()})}}),this.rootElement.on("mouseup",()=>{if(this.switchToState(0),N.preventDefault(),this.isInitialized&&this.isEnable)if(this.model.useSecurity){const t=this.modalService.show(Et.a,{backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),e=t.content.onClosed.subscribe(n=>{t.hide(),e.unsubscribe(),n&&this.checkElementPassword()})}else this.checkElementPassword()}),this.model.operationType===ot.ViewOperationType.ControlView?(this.rootElement.style("cursor","move"),this.rootElement.call(Ue().on("start",()=>{this.isEnable?N&&N.sourceEvent?"touchstart"===N.sourceEvent.type&&N.sourceEvent.touches.length&&(this.touchedScreenX=N.sourceEvent.touches[0].screenX,this.touchedScreenY=N.sourceEvent.touches[0].screenY):this.logger.error("[GUI]Failed to get DragEvent",N):this.rootElement.style("cursor","hand")}).on("drag",()=>{if(this.isEnable)if(N&&N.sourceEvent){if("mousemove"===N.sourceEvent.type)this.moveView(N.sourceEvent.movementX,N.sourceEvent.movementY);else if("touchmove"===N.sourceEvent.type&&N.sourceEvent.touches.length){const t=N.sourceEvent.touches[0].screenX-this.touchedScreenX,e=N.sourceEvent.touches[0].screenY-this.touchedScreenY;this.touchedScreenX=N.sourceEvent.touches[0].screenX,this.touchedScreenY=N.sourceEvent.touches[0].screenY,this.moveView(t,e)}}else this.logger.error("[GUI]Failed to get DragEvent",N);else this.rootElement.style("cursor","hand")}).on("end",()=>this.switchToState(0)))):this.rootElement.style("cursor","hand")}switchToState(t){this.graphStateElement&&this.graphStateElement.switchToState(t)}initGraph(t,e){!0===this.model.useGraph&&(this.graphStateElement=new Ut(this.model.graphSetting,t,e,this.graphStore,this.logger),this.$element.prepend(this.graphStateElement.Element),this.graphStateElement.switchToState(0))}checkElementPassword(){if(this.model.enablePassword){const t=this.modalService.show(Vt.a,{initialState:{securityChecker:this.securityChecker},backdrop:"static",class:"gui-modal-dialog-position",animated:!1}),e=t.content.onClosed.subscribe(n=>{t.hide(),e.unsubscribe(),n&&this.executeViewOperation()})}else this.executeViewOperation()}executeViewOperation(){let t=this.model.version>=5?this.model.operationType:ot.ViewOperationType.ToggleView;switch(t=void 0===t?ot.ViewOperationType.ToggleView:t){case ot.ViewOperationType.ToggleView:this.toggleView();break;case ot.ViewOperationType.PopupView:this.popView();break;case ot.ViewOperationType.CloseView:this.closeView()}}toggleView(){const t=this.model.viewIndex;if(null!=t){const e=this.viewService.toggleViews.get(this.el);if(!e)return;e(t,this.hostContainerId,this.el).subscribe(()=>this.recordViewOperation(),e=>this.logger.error(`ToggleView(${t}) failed. `,e))}else this.logger.error("[GUI]Toggle View:invalid view index")}popView(){const t=this.model.viewIndex;null!=t?this.popupViewService.popView(t,this.hostContainerId,this.el).subscribe(()=>this.recordViewOperation(),e=>this.logger.error(`ToggleView(${t}) failed. ${e}`)):this.logger.error("[GUI]Toggle View:invalid view index")}closeView(){this.popupViewService.closeView(),this.recordViewOperation()}moveView(t,e){isNaN(t)||isNaN(e)||(this.popupViewService.moveView(t,e),this.recordViewOperation())}recordViewOperation(){this.model.isRecordOperation&&this.operationRecordService.record({operationDescription:this.model.operationDescription})}}class Je extends wt{constructor(t,e,n,r,i){super(t,e,n,r,i)}getActualSize(){const t=Snap(this.$element.find("path")[0]).getBBox(!0);return new ot.Size(t.width,t.height)}getActualLocation(){return{x:this.model.location.x,y:this.model.location.y}}}class Ze extends wt{constructor(t,e,n,r,i){super(t,e,n,r,i)}getActualSize(){const t=Snap(this.$element.find("path")[0]).getBBox(!0);return new ot.Size(t.width,t.height)}getActualLocation(){return{x:this.model.location.x,y:this.model.location.y}}}class Xe extends wt{constructor(t,e,n,r,i){super(t,e,n,r,i)}getActualSize(){const t=Snap(this.$element.find("path")[0]).getBBox(!0);return new ot.Size(t.width,t.height)}getActualLocation(){return{x:this.model.location.x,y:this.model.location.y}}}class Ke extends wt{constructor(t,e,n,i,a,o,s){super(t,n,i,a,s),this.graphStore=o,this.logger=e.get(r.b),this.model.size&&this.initGraphAndText(),this.model&&this.model.linkAddress&&(this.rootElement.style("cursor","hand"),this.rootElement.on("mousedown",()=>{let t=this.model.linkAddress;/^http(s)?:\/\/.+$/.test(t)||(t="http://"+t),window.open(t,"_system")}))}initGraphAndText(){this.rootElement.selectAll("*").remove();const t=this.model.size,e=t.width,n=t.height;if(this.rootElement.append("rect").attr("id","StateFrame").attr("width",e).attr("height",n).attr("fill","transparent"),!0===this.model.useGraph){const t=new Ut(this.model.graphSetting,e,n,this.graphStore,this.logger);t.switchToState(0),this.$element.prepend(t.Element)}const r={isUnderline:this.model.isUnderline,isBold:this.isBold(this.model.font),isItalic:this.isItalic(this.model.font),fontSize:this.model.fontSize,fontFamily:this.fontFamily(this.model.font),color:this.model.stroke,textAlign:this.model.textAlign},i=new It(this.model.text,r,e,n);this.$element.append(i.Element)}}var Qe=n(24);class tn extends Mt{constructor(t,e,n,r,i,a,o,s,u){super(t,n,r,i,u),this.videoService=a,this.guiSize=o,this.svgRootClass=s,this.videoId="",this.isMobileMode=Qt.a.Mobile===e.get(Qt.b).displayMode,this.localization=e.get(at.b),this.init()}dispose(){this.videoPlayer&&"function"==typeof this.videoPlayer.stop&&this.videoPlayer.stop(),$("div."+this.svgRootClass+" video").each(function(){$(this).remove()})}hide(){super.hide(),this.isShow=!1,Object(nt.isNil)(this.videoId)||""===this.videoId||setTimeout(()=>{$("#"+this.videoId).hide()},0)}show(){super.show(),this.isShow=!0,setTimeout(()=>{$("#"+this.videoId).show()},0)}init(){this.rootElement.selectAll("*").remove(),this.model.videoTag?(this.videoId=Qe.a.newGuid().toString("n"),this.rootElement.append("rect").attr("id","rect"+this.videoId).attr("fill","transparent").attr("width",this.model.size.width).attr("height",this.model.size.height),this.videoService.getVideoUrl(this.model.videoTag).then(t=>{this.initVideo(t.url,t.isMobileType,this.videoId)}).catch(()=>{throw new Error("Failure of the videoService")})):this.addVideoAddressToolTip(this.localization.unconfiguredVideoAddress)}initVideo(t,e,n){if(-1!==t.indexOf("http:")&&(t=t.replace("http:","https:")),!/https:.+.m3u8/.test(t)){let e=this.localization.invalidVideoAddress;return(Object(nt.isNil)(t)||""===t)&&(e=this.localization.unconfiguredVideoAddress),void this.addVideoAddressToolTip(e)}const r=this.$element.find("rect#rect"+n).first();if(!r.length)return;const i=r[0].getBoundingClientRect(),a=i.width,o=i.height,s=this.model.location.x/this.guiSize.width*$("."+this.svgRootClass).find(".svg-content").width(),u=this.model.location.y/this.guiSize.height*$("."+this.svgRootClass).find(".svg-content").height();let l=`<video scareX="${this.model.location.x/this.guiSize.width}"\n scareY="${this.model.location.y/this.guiSize.height}" id="${n}" src="${t}" style="\n position: absolute;top:${u}px;left:${s}px;width:${a}px;height:${o}px;object-fit:fill;z-index:0"\n playsInline webkit-playsinline `;const c=!!navigator.userAgent.match(/(Android)/i);this.isMobileMode?c?(e&&(l+=" controls "),l+=" autoplay muted></video>"):l+=" controls muted></video>":l+=" controls autoplay muted></video>",$("."+this.svgRootClass).find(".svg-content").append(l),!1===this.isShow&&$("#"+this.videoId).hide(),this.videoPlayer=new EZUIPlayer(n),c&&!e&&this.setAndroidVideo(n)}addVideoAddressToolTip(t){const e=this.model.size;this.rootElement.append("image").attr("width",e.width).attr("height",e.height).attr("xlink:href","assets/img/video.jpg").attr("preserveAspectRatio","none").attr("crossorigin","anonymous");const n=new It(t,{isUnderline:!1,isBold:!1,isItalic:!1,fontSize:"16px",fontFamily:"Microsoft YaHei",color:"#fff",textAlign:"center"},e.width,e.height);this.$element.append(n.Element)}setAndroidVideo(t){let e=!1;const n=$("#"+t);let r=n.height(),i=n.width(),a=n.css("top"),o=n.css("left");n.on("click",()=>{if(e)n.css("width",i+"px"),n.css("height",r+"px"),n.css("left",o),n.css("top",a),n.css("z-index","0"),e=!1;else{r=n.height(),i=n.width(),a=n.css("top"),o=n.css("left");const t=document.body.clientWidth,s=9*t/16;n.css("width",t+"px"),n.css("height",s+"px"),n.css("left","0px"),n.css("top","0px"),n.css("z-index","99"),e=!0}})}}class en extends Mt{constructor(t,e,n,i,a,o,s){super(t,n,i,a,s),this.weatherService=o,this.localization=e.get(at.b),this.logger=e.get(r.b),this.initWeatherInfo(),this.id=Math.abs(+this.model.id),this.timer=setInterval(()=>this.initWeatherInfo(),36e5)}dispose(){clearInterval(this.timer)}initWeatherInfo(){this.clear(),this.weatherService.getWeatherInfo().then(t=>{const e=t;if(!e.supported)return void this.handleNotSupported();if(e.gettingAddress)return void this.handleGettingAddress();if(!e.hasAddress)return void this.handleNoAddress();const n=e.location.length>4?`${e.location.substr(0,3)}...`:e.location;this.handleNormal(e.temperature,e.humidity,n,e.wind,e.weatherIcon,e.weatherPhenomenon)}).catch(()=>{this.handleNotSupported()})}clear(){this.rootElement.selectAll("*").remove()}handleNotSupported(){this.handleUnusualCommon(this.localization.weatherNotSupport)}handleGettingAddress(){this.handleUnusualCommon(this.localization.weatherNotAvailable),setTimeout(()=>this.initWeatherInfo(),6e4)}handleNoAddress(){this.handleUnusualCommon(this.localization.weatherNotAddress)}handleUnusualCommon(t){const e=q("svg");this.buildBackgroudRect(e,"#081625","0.5"),this.buildUnusualTipIcon(e,t.length),this.buildUnusualTipText(e,t),this.appendWeatherSvg(e)}handleNormal(t,e,n,r,i,a){const o=this.model.stroke?this.model.stroke:"#FFFFFF",s=this.model.fill&&this.model.fill||"#86A7C5",u=q("svg");this.buildBackgroudRect(u,s),this.buildTemperatureGroup(u,t,e,o),this.buildWeather(u,i),this.buildLocGroup(u,n,o),this.buildWindGroup(u,r,o,n.length),this.buildWeatherText(u,a,o),this.appendWeatherSvg(u)}getRainPath(){return"M78,200c-43,0-78-33.3-78-74.3C0,74.9,55.5,20.4,72.5,4.9L77.8,0l5.4,4.8c0.7,0.6,72.5,64.6,72.8,120.9\nC156,166.7,121,200,78,200z M77.9,21.7C60.2,38.8,16,85.4,16,125.7c0,32.2,27.8,58.3,62,58.3s62-26.2,62-58.3\nC139.7,88.4,99.2,41.9,77.9,21.7z M87.7,163.9c-4.2,0-7.6-3.3-7.7-7.5c0-4.2,3.3-7.7,7.6-7.7c14.3-0.2,25.7-11.3,25.5-24.7\nc0-4.2,3.3-7.7,7.6-7.7c0,0,0.1,0,0.1,0c4.2,0,7.6,3.3,7.7,7.5C128.7,145.6,110.5,163.6,87.7,163.9\nC87.7,163.9,87.7,163.9,87.7,163.9z"}getLocPath(){return"M78,0C35,0,0,33.3,0,74.3c0,50.8,55.5,105.4,72.6,120.9l5.3,4.8l5.3-4.7c0.7-0.6,72.5-64.6,72.8-121v0\nC156,33.3,121,0,78,0z M78,178.6c-17.8-17.1-62.1-63.9-62.1-104.4C15.8,42,43.7,15.7,78,15.7c34.3,0,62.2,26.3,62.2,58.5\nC140,111.8,99.2,158.4,78,178.6z M78,40.4c-17.8,0-32.4,14.4-32.4,32.2s14.5,32.2,32.4,32.2s32.4-14.4,32.4-32.2S95.8,\n40.4,78,40.4z M78,89.1c-9.1,0-16.5-7.4-16.5-16.5S68.9,56.2,78,56.2s16.5,7.4,16.5,16.5S87.1,89.1,78,89.1z"}getWindPath(){return"M7.1,56.7h85.7c15.8,0,28.6-12.7,28.6-28.4S108.6,0,92.9,0C77.1,0,64.3,12.7,64.3,28.4h14.3\nc0-7.8,6.4-14.2,14.3-14.2c7.9,0,14.3,6.3,14.3,14.2c0,7.8-6.4,14.2-14.3,14.2H7.1c-3.9,0-7.1,3.2-7.1,7.1\nC0,53.6,3.2,56.7,7.1,56.7L7.1,56.7z\nM164.3,99.3H7.1c-3.9,0-7.1,3.2-7.1,7.1c0,3.9,3.2,7.1,7.1,7.1h157.1c7.9,0,14.3,6.4,14.3,14.2\nc0,7.8-6.4,14.2-14.3,14.2c-7.9,0-14.3-6.3-14.3-14.2h-14.3c0,15.7,12.8,28.4,28.6,28.4c15.8,0,28.6-12.7,28.6-28.4\nS180.1,99.3,164.3,99.3L164.3,99.3z\nM7.1,85.1h157.1c19.7,0,35.7-15.9,35.7-35.5c0-19.6-16-35.5-35.7-35.5c-19.7,0-35.7,15.9-35.7,35.5\nc0,2.4,0.3,4.8,0.8,7.1h14.8c-0.8-2.2-1.3-4.6-1.3-7.1c0-11.7,9.6-21.3,21.4-21.3c11.8,0,21.4,9.5,21.4,21.3\nc0,11.1-8.6,20.2-19.6,21.1c-0.3,0-0.6,0.2-0.9,0.2H7.1C3.2,70.9,0,74.1,0,78C0,81.9,3.2,85.1,7.1,85.1L7.1,85.1z"}getUnusualIconPath(){return'<g>\n<ellipse class="st2" cx="74.6" cy="72.3" rx="36.4" ry="36.3" fill="#EFCA30"/>\n<path class="st2" fill="#EFCA30" d="M74.5,24.5C74.6,24.5,74.6,24.5,74.5,24.5c3.7,0,5.7-2,5.7-5.5V5.5C80.2,2,78,0,74.6,0C71,0,69,2.1,69,5.5V19\nC69,22.3,71,24.4,74.5,24.5L74.5,24.5z"/>\n<path class="st2" fill="#EFCA30" d="M37.2,28.5l-6.9-6.7c-1.3-1.3-2.7-1.9-4.1-1.9s-2.8,0.6-4.1,1.9c-1.3,1.3-1.9,2.6-1.9,4s0.6,2.7,1.9,4\nl6.4,6.1c0.5,0.5,1.2,1.1,1.9,1.4c1.2,0.5,2,0.7,2.8,0.7c0.6,0,1.3-0.2,2-0.4c1.4-0.5,2.7-1.5,3.3-2.8c0.3-0.7,0.5-1.5,0.5-2.2\nC39.1,31.2,38.5,29.8,37.2,28.5L37.2,28.5z"/>\n<path class="st2" fill="#EFCA30" d="M112.5,36.9c1.6,0.7,2.7,1.2,3.7,1.2s2-0.4,3.6-1.2c0.2-0.1,0.4-0.2,0.5-0.4l6.9-6.7c1.3-1.3,1.9-2.6,1.9-4\ns-0.6-2.7-1.9-4c-1.3-1.3-2.7-1.9-4.1-1.9s-2.8,0.6-4.1,1.9l-6.9,6.7c-1.3,1.3-1.9,2.6-1.9,4c0,1.4,0.6,2.7,1.9,4\nC112.1,36.6,112.3,36.8,112.5,36.9L112.5,36.9z"/>\n<path class="st2" fill="#EFCA30" d="M25.1,73.2C25.1,73.1,25.1,73.1,25.1,73.2c0-3.6-2-5.6-5.6-5.6H5.6C2,67.6,0,69.7,0,73.1\nc0,3.4,2.2,5.5,5.6,5.5h13.8C22.7,78.6,24.9,76.6,25.1,73.2L25.1,73.2z"/>\n<path class="st2" fill="#EFCA30" d="M33.2,107.6c-1.4,0-2.8,0.6-4.1,1.9l-6.9,6.7c-1.3,1.3-1.9,2.6-1.9,4s0.6,2.7,1.9,4c0.2,0.2,0.3,0.3,0.5,0.4\nc1.6,0.7,2.7,1.2,3.7,1.2c0.5,0,1.5-0.1,3.6-1.2c0.2-0.1,0.4-0.2,0.5-0.4l6.9-6.7c2.6-2.5,2.6-5.6,0-8.1\nC36,108.3,34.6,107.6,33.2,107.6L33.2,107.6z"/>\n</g>\n<path class="st3" fill="#FFFFFF" d="M68.8,160h99.3c17.9-2,31.9-17.1,31.9-35.5c0-18.3-13.8-33.3-31.5-35.4c-8-17-25.2-28.9-45.3-28.9\nc-22.4,0-41.4,14.7-47.7,35c-1.1-0.1-2.2-0.2-3.4-0.2c-18,0-32.6,14.6-32.6,32.6C39.5,144.5,52.3,158.3,68.8,160z"/>'}buildBackgroudRect(t,e,n="1"){t.append("rect").attr("x","0").attr("y","0").attr("rx","2").attr("width","268").attr("height","92").attr("fill",e).attr("fill-opacity",n)}buildTemperatureGroup(t,e,n,r){const i=t.append("text").attr("x","14").attr("y","57").attr("font-family","sans-serif").attr("font-weight","lighter").attr("font-size","50").attr("fill",r).text(e);i.append("tspan").attr("dy","-27").attr("font-size","20").attr("fill",r).text("°C"),i.append("tspan").attr("dx","-8").attr("dy","25").attr("font-size","22").attr("fill",r).text("/"),t.append("svg").attr("x",`${16+50*e.length*.75}`).attr("y","46").attr("width","11").attr("height","11").attr("viewBox","0 0 156 200").append("path").attr("fill",r).attr("d",this.getRainPath()),t.append("text").attr("x",`${30+50*e.length*.75}`).attr("y","57").attr("font-size","12").attr("fill",r).text(n)}buildWeather(t,e){t.append("image").attr("x","151").attr("y","2").attr("width","110").attr("height","66").attr("xlink:href",`assets/img/weather/${e}.png`).attr("preserveAspectRatio","none").attr("crossorigin","anonymous")}buildLocGroup(t,e,n){t.append("svg").attr("x","14").attr("y","70").attr("width","11").attr("height","11").attr("viewBox","0 0 156 200").append("path").attr("fill",n).attr("d",this.getLocPath),t.append("text").attr("x","28").attr("y","80").attr("font-size","12").attr("fill",n).text(e)}buildWindGroup(t,e,n,r){t.append("svg").attr("x",`${28+12*r+10}`).attr("y","69").attr("width","13").attr("height","13").attr("viewBox","0 0 200 156").append("path").attr("fill",n).attr("d",this.getWindPath),t.append("text").attr("x",`${28+12*r+10+14+2}`).attr("y","80").attr("font-size","12").attr("fill",n).text(e)}buildWeatherText(t,e,n){t.append("text").attr("x","201").attr("y","80").attr("font-size",12).attr("font-anchor","middle").attr("fill",n).text(e)}buildUnusualTipIcon(t,e){t.append("svg").attr("x",e>9?(268-7*e-8-42)/2:"44").attr("y","23").attr("width","42").attr("height","34").attr("viewBox","0 0 200 160").html(this.getUnusualIconPath)}buildUnusualTipText(t,e){const n=e.length;t.append("text").attr("x",n>9?(268-7*n-8-42)/2+42+8:"94").attr("y","46").attr("font-size",14).attr("font-anchor","middle").attr("fill","#FFFFFF").attr("dominant-baseline","central").text(e)}appendWeatherSvg(t){this.rootElement.append(()=>t.node())}}class nn{constructor(t,e,n,i,a,o){this.injector=t,this.bsModalService=e,this.context=n,this.variableCommunicator=i,this.popupViewService=a,this.signalRAppId=o,this.elements=new Array,this.logger=t.get(r.b)}get rootElement(){return this.root[0]}load(t,e=!1,n){if(this.hostContainerId=n.hostContainerId,this.isLoaded)throw new Error("The Main Element already loaded.");this.root=$(t),this.root.attr("style",`margin: 0 auto;display: block;${e?"overflow: visible;":""}`),this.rawWidth=Number.parseInt(this.root.attr("width")),this.rawHeight=Number.parseInt(this.root.attr("height"));const r=this.root.find("[data-model]");Object(nt.each)(r,t=>{switch($(t).data("model").category){case ut.d.components.numericalDisplayKey:const e=new ae(t,this.injector,this.bsModalService,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.graphStore,this.context.operationRecordService,this.context.securityChecker,this.context.configStore.variableStore,this.injector.get(at.b),this.signalRAppId);this.elements.push(e);break;case ut.d.components.imageKey:this.elements.push(new _e(t,this.injector,this.context.configStore.imageStore,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.context.configStore.graphStore,this.signalRAppId));break;case ut.d.components.meterKey:this.elements.push(new ee(t,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.injector.get(at.b),this.signalRAppId));break;case ut.d.components.pipeKey:this.elements.push(new le(t,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.injector.get(at.b),this.signalRAppId));break;case ut.d.components.switchIndicatorLightKey:this.elements.push(new Ye(t,this.injector,this.bsModalService,this.variableCommunicator,this.context.configStore.graphStore,this.context.permissionChecker,this.context.operationRecordService,this.context.securityChecker,this.context.configStore.variableStore,this.injector.get(at.b),this.signalRAppId));break;case ut.d.components.barGraphKey:this.elements.push(new Tt(t,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.injector.get(at.b),this.signalRAppId));break;case ut.d.components.toggleViewKey:case ut.d.components.viewOperationElement:this.elements.push(new qe(t,this.injector,this.bsModalService,this.variableCommunicator,this.context.configStore.variableStore,this.context.configStore.graphStore,this.context.permissionChecker,this.context.operationRecordService,this.context.securityChecker,this.injector.get(at.b),this.popupViewService,n.hostContainerId,n.el,this.signalRAppId));break;case ut.d.components.characterKey:this.elements.push(new Wt(t,this.injector,this.bsModalService,this.variableCommunicator,this.context.configStore.graphStore,this.context.permissionChecker,this.context.operationRecordService,this.context.securityChecker,this.context.configStore.variableStore,this.injector.get(at.b),this.signalRAppId));break;case ut.d.components.textKey:this.elements.push(new ye(t,this.injector,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.context.configStore.graphStore,this.signalRAppId));break;case ut.d.components.hyperlinkKey:this.elements.push(new Ke(t,this.injector,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.context.configStore.graphStore,this.signalRAppId));break;case ut.d.components.straightLineKey:this.elements.push(new Je(t,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.signalRAppId));break;case ut.d.components.polyLineKey:this.elements.push(new Ze(t,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.signalRAppId));break;case ut.d.components.ellipseKey:this.elements.push(new Te(t,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.signalRAppId));break;case ut.d.components.rectangleKey:this.elements.push(new De(t,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.signalRAppId));break;case ut.d.components.sectorkey:this.elements.push(new Ce(t,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.signalRAppId));break;case ut.d.components.datetimeDisplayKey:this.elements.push(new $t(t,this.injector,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.context.configStore.graphStore,this.signalRAppId));break;case ut.d.components.historicalCurveKey:this.elements.push(new te(t,this.injector,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.context.configStore.historyDataStore,this.signalRAppId));break;case ut.d.components.ringGraphKey:this.elements.push(new ve(t,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.injector.get(at.b),this.signalRAppId));break;case ut.d.components.polygonKey:this.elements.push(new Xe(t,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.signalRAppId));break;case ut.d.components.videokey:this.elements.push(new tn(t,this.injector,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.context.videoService,new ot.Size(this.rawWidth,this.rawHeight),n.svgRootClass,this.signalRAppId));break;case ut.d.components.tableKey:this.elements.push(new Xe(t,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.signalRAppId));break;case ut.d.components.weatherKey:this.elements.push(new en(t,this.injector,this.context.permissionChecker,this.variableCommunicator,this.context.configStore.variableStore,this.context.weatherService,this.signalRAppId))}}),this.initBackground(),this.isLoaded=!0,this.logger.debug("[GUI] Main element loaded.")}uniformStretch(t,e){if(!t.isReal())throw new Error("size is not real.");this.checkIsLoaded();const n=this.rawHeight/this.rawWidth;t.height/t.width>n?t.height=t.width*n:t.width=t.height/n;const r=this.oldSize?this.oldSize:t;if(setTimeout(()=>{this.changeVideoStyle(t,r,e)},200),this.root.attr("width",t.width),this.root.attr("height",t.height),!this.root.attr("viewBox")){const e=t.width/this.rawWidth;this.root.find("g:first").attr("transform",`scale(${e})`)}this.oldSize=t}changeVideoStyle(t,e,n){const r=this;$("div."+n+" video").each(function(){const n=t.width/e.width*$(this).width();if(n>$("body").width()||n.toFixed(0)===$("body").width().toFixed(0))return;$(this).css("width",n+"px"),$(this).css("height",t.height/e.height*$(this).height()+"px");let i=t.width*Number($(this).attr("scareX")),a=t.height*Number($(this).attr("scareY"));if(r.hostContainerId){const e=$("#"+r.hostContainerId);if(e.length){const n=e[0].clientWidth,r=e[0].clientHeight;i+=(n-t.width)/2,a+=(r-t.height)/2}}$(this).css("left",i+"px"),$(this).css("top",a+"px")})}horizontalStretch(t){if(!t.isReal())throw new Error("size is not real.");if(this.checkIsLoaded(),t.height=t.width/this.rawWidth*this.rawHeight,this.root.attr("width",t.width),this.root.attr("height",t.height),!this.root.attr("viewBox")){const e=t.width/this.rawWidth;this.root.find("g:first").attr("transform",`scale(${e})`)}}initElementState(){Object(nt.forEach)(this.elements,t=>{t instanceof Lt?t.init(t.readVariableName):t instanceof te&&t.initElementStatus()}),this.logger.debug("[GUI] Main element enabled.")}getVariableNames(){const t=new Array;return Object(nt.forEach)(this.elements,e=>{if(e instanceof Lt){const n=e.readVariableName;n&&!t.find(t=>Object(nt.isEqual)(n,t))&&t.push(e.readVariableName)}}),t}reportVariableStates(t){this.checkIsLoaded(),Object(nt.each)(t,t=>{Object(nt.each)(this.elements,e=>{if(e instanceof Lt){const n=e.readVariableName;n&&n===t.variableName&&e.reportStateChanged(t)}})})}reportVariableValues(t){this.checkIsLoaded(),Object(nt.each)(t,t=>{Object(nt.each)(this.elements,e=>{e instanceof Lt&&e.readVariableName===t.variableName&&e.reportValueChanged(t)})})}dispose(){Object(nt.each)(this.elements,t=>{(t instanceof te||t instanceof tn||t instanceof en||t instanceof ae||t instanceof ye)&&t.dispose()})}checkIsLoaded(){if(!this.isLoaded)throw new Error("The Main Element is not loaded.please call load method first.")}initBackground(){const t=this.root.data("model");if(t){const e=t.background;switch(e.fillType){case X.SolidColor:if(e.solidColor){const t=$(document.createElementNS("http://www.w3.org/2000/svg","rect")).attr({width:String(this.rawWidth),height:String(this.rawHeight),fill:e.solidColor});this.root.prepend(t)}break;case X.Image:e.imageId&&this.root.prepend(this.getImageEl(e.imageId));break;case X.Graph:if(e.graphSetting&&e.graphSetting.id>0){const t=new Ut(e.graphSetting,this.rawWidth,this.rawHeight,this.context.configStore.graphStore,this.logger);t.switchToState(0),this.root.prepend(t.Element);const n=$(document.createElementNS("http://www.w3.org/2000/svg","rect")).attr({width:String(this.rawWidth),height:String(this.rawHeight),fill:"#fff"});this.root.prepend(n)}}}}getImageEl(t){const e=document.createElementNS("http://www.w3.org/2000/svg","image");return e.setAttribute("width",this.rawWidth+""),e.setAttribute("height",this.rawHeight+""),e.setAttribute("fill","none"),e.setAttribute("preserveAspectRatio","none"),e.setAttribute("crossorigin","anonymous"),e.setAttributeNS("http://www.w3.org/1999/xlink","href",this.context.configStore.imageStore.getImageUrl(t)),e}}var rn=n(14);class an{constructor(t){this.observers=new Map,this.variableValuesChangedSubscriptions=new Array,this.variableStatesChangedSubscription=new Array,this._rawVariableCommunicator=t}openVariable(t,e){return this.openVariables([t],e).pipe(Object(rt.map)(t=>t[0]))}openVariables(t,e=""){return new rn.a(n=>{Object(nt.each)(t,t=>{this.observers.has(t)||this.observers.set(t,[]),this.observers.get(t).push(n)});const r=this._rawVariableCommunicator.openVariables(t,e).subscribe(t=>n.next(t),t=>n.error(t),()=>n.complete());this.variableValuesChangedSubscriptions.push(r)})}write(t,e){return this._rawVariableCommunicator.write(t,e)}writeWordByBit(t,e,n){return this._rawVariableCommunicator.writeWordByBit(t,e,n)}subscribeVariableState(t){return this.subscribeVariableStates([t]).pipe(Object(rt.map)(t=>t[0]))}subscribeVariableStates(t){return new rn.a(e=>{const n=this._rawVariableCommunicator.subscribeVariableStates(t).subscribe(t=>e.next(t),t=>e.error(t),()=>e.complete());this.variableStatesChangedSubscription.push(n)})}dispose(){Object(nt.forEach)(this.variableValuesChangedSubscriptions,t=>t.unsubscribe()),Object(nt.forEach)(this.variableStatesChangedSubscription,t=>t.unsubscribe())}}n.d(e,"a",function(){return on});class on{constructor(t,e,n,i){this.injector=t,this.bsModalService=e,this.context=n,this.parentView=i,this.viewId=Qe.a.newGuid().toString("n"),this.logger=t.get(r.b),this.childViews=new Array,i&&i.childViews.push(this),this.isMobileMode=Qt.a.Mobile===t.get(Qt.b).displayMode,this.signalRAppId=Qe.a.newGuid().toString("n")}get element(){return this.mainElement.rootElement}get rawWidth(){return this.mainElement.rawWidth}get rawHeight(){return this.mainElement.rawHeight}resize(t,e,n){if(t){if(!t.isReal())throw new Error("invalid size.");switch(e){case Qt.c.HorizontalUniform:this.mainElement.horizontalStretch(t);break;default:this.mainElement.uniformStretch(t,n)}}}load(t,e){const{context:n}=this;this.svgRootClass=e.svgRootClass,this.perViewVariableCommunicator=new an(n.variableCommunicator),this.mainElement=new nn(this.injector,this.bsModalService,n,this.perViewVariableCommunicator,this,this.signalRAppId),this.mainElement.load(t.config,!!this.parentView,e),setTimeout(()=>{this.loadElementState()},0),this.logger.debug("[GUI] View loaded.")}loadElementState(){this.mainElement&&(this.mainElement.initElementState(),this.openVariableStatesSubscription&&this.openVariableStatesSubscription.unsubscribe(),this.openVariableStatesSubscription&&this.openVariableStatesSubscription.unsubscribe(),this.openedVariableNames=this.mainElement.getVariableNames(),0!==this.openedVariableNames.length&&(this.openVariableStatesSubscription=this.perViewVariableCommunicator.subscribeVariableStates(this.openedVariableNames).subscribe(t=>{this.mainElement.reportVariableStates(t);const e=[];Object(nt.each)(t,t=>{t.state===it.d.Normal&&-1===e.indexOf(t.variableName)&&e.push(t.variableName)}),e.length>0&&this.normalOpenedVariableNames(e)})))}popView(t,e,n){return this.context.configStore.viewStore.getViewConfig(t).pipe(Object(rt.map)(t=>{if(!t.config||!t.config.length)throw new ut.a;const r=new on(this.injector,this.bsModalService,this.context,this),i={svgRootClass:this.svgRootClass,hostContainerId:e,el:n};r.load(t,i);const a=$(r.element).data("model");if(!a.popup)return;let o,s;switch(a.popup.locationType===ot.ViewPopupLocationType.Custom&&a.popup.location?(o=a.popup.location.x,s=a.popup.location.y):(o=(this.rawWidth-r.rawWidth)/2,s=(this.rawHeight-r.rawHeight)/2),a.popup.backdropType){case ot.ViewPopupBackdropType.Shadow:this.isMobileMode||r.showShadow();break;case ot.ViewPopupBackdropType.Musk:this.showMusk()}r.element.setAttribute("x",String(o)),r.element.setAttribute("y",String(s)),this.element.appendChild(r.element)}))}closeView(){this.parentView&&(this.parentView.hideMusk(),this.dispose(),this.element.parentElement.removeChild(this.element))}moveView(t,e){const n=Number(this.element.getAttribute("x"))+t,r=Number(this.element.getAttribute("y"))+e;this.element.setAttributeNS(null,"x",String(n)),this.element.setAttributeNS(null,"y",String(r))}showMusk(){this.muskElement||(this.muskElement=document.createElementNS("http://www.w3.org/2000/svg","rect"),this.muskElement.setAttribute("width",String(this.rawWidth)),this.muskElement.setAttribute("height",String(this.rawHeight)),this.muskElement.setAttribute("fill","#081625"),this.muskElement.setAttribute("fill-opacity","0.4")),this.element.appendChild(this.muskElement)}showShadow(){const t=`dropshadow-${this.viewId}`,e=U(this.element).append("defs").append("filter").attr("id",t).attr("x",0).attr("y",0).attr("color-interpolation-filters","sRGB").attr("filterUnits","userSpaceOnUse");e.append("feDropShadow").attr("stdDeviation","6").attr("flood-color","rgba(69,65,78,.3)"),e.append("feOffset").attr("dx",0).attr("dy",0).attr("result","shadow"),e.append("feComposite").attr("in","SourceGraphic").attr("in2","shadow").attr("operator","over");const n=this.element.children[0];n&&(n.setAttribute("filter",`url(#${t})`),n.setAttribute("x","6"),n.setAttribute("y","6"),$(this.element).children("g").attr("transform","matrix(1, 0, 0, 1, 6, 6)"))}hideMusk(){this.muskElement&&(this.element.removeChild(this.muskElement),this.muskElement=null)}dispose(){this.openVariableStatesSubscription&&this.openVariableStatesSubscription.unsubscribe(),this.openVariablesSubscription&&this.openVariablesSubscription.unsubscribe(),this.perViewVariableCommunicator&&this.perViewVariableCommunicator.dispose(),this.childViews&&this.childViews.length&&Object(nt.forEach)(this.childViews,t=>t.dispose()),this.mainElement&&this.mainElement.dispose(),this.logger.debug("[GUI] View disposed.")}normalOpenedVariableNames(t){t.length>0&&(this.openVariablesSubscription=this.perViewVariableCommunicator.openVariables(t,this.signalRAppId).subscribe(t=>this.mainElement.reportVariableValues(t)))}}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});class r{constructor(t,e){this.num=t||0,this.bits=e||0}decimalToBinary(t,e){const n=[],r=[];let i=0;for(;t>0;)n.push(t%2),t=parseInt((t/2).toString()),i++;for(let t=i-1;t>=0;t--)r.push(n[t]);if(e<r.length&&console.log("控制位小于转换位数"),e)for(let t=r.length;t<e;t++)r.unshift("0");return r.join().replace(/,/g,"")}convertToBinary(){const t=Number(this.num);return this.decimalToBinary(Math.abs(t),this.bits)}}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0);let i=class{constructor(){this.toggleViews=new Map}};i=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(r.Injectable)()],i)},function(t,e,n){var r,i;!function(){var a={version:"3.5.12"},o=[].slice,s=function(t){return o.call(t)},u=this.document;function l(t){return t&&(t.ownerDocument||t.document||t).documentElement}function c(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(u)try{s(u.documentElement.childNodes)[0].nodeType}catch(t){s=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),u)try{u.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var d=this.Element.prototype,h=d.setAttribute,f=d.setAttributeNS,m=this.CSSStyleDeclaration.prototype,p=m.setProperty;d.setAttribute=function(t,e){h.call(this,t,e+"")},d.setAttributeNS=function(t,e,n){f.call(this,t,e,n+"")},m.setProperty=function(t,e,n){p.call(this,t,e+"",n)}}function g(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function v(t){return null===t?NaN:+t}function _(t){return!isNaN(t)}function y(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}a.ascending=g,a.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},a.min=function(t,e){var n,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<a;)null!=(r=t[i])&&n>r&&(n=r)}else{for(;++i<a;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=r;break}for(;++i<a;)null!=(r=e.call(t,t[i],i))&&n>r&&(n=r)}return n},a.max=function(t,e){var n,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<a;)null!=(r=t[i])&&r>n&&(n=r)}else{for(;++i<a;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=r;break}for(;++i<a;)null!=(r=e.call(t,t[i],i))&&r>n&&(n=r)}return n},a.extent=function(t,e){var n,r,i,a=-1,o=t.length;if(1===arguments.length){for(;++a<o;)if(null!=(r=t[a])&&r>=r){n=i=r;break}for(;++a<o;)null!=(r=t[a])&&(n>r&&(n=r),i<r&&(i=r))}else{for(;++a<o;)if(null!=(r=e.call(t,t[a],a))&&r>=r){n=i=r;break}for(;++a<o;)null!=(r=e.call(t,t[a],a))&&(n>r&&(n=r),i<r&&(i=r))}return[n,i]},a.sum=function(t,e){var n,r=0,i=t.length,a=-1;if(1===arguments.length)for(;++a<i;)_(n=+t[a])&&(r+=n);else for(;++a<i;)_(n=+e.call(t,t[a],a))&&(r+=n);return r},a.mean=function(t,e){var n,r=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a<i;)_(n=v(t[a]))?r+=n:--o;else for(;++a<i;)_(n=v(e.call(t,t[a],a)))?r+=n:--o;if(o)return r/o},a.quantile=function(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],a=n-r;return a?i+a*(t[r]-i):i},a.median=function(t,e){var n,r=[],i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)_(n=v(t[o]))&&r.push(n);else for(;++o<i;)_(n=v(e.call(t,t[o],o)))&&r.push(n);if(r.length)return a.quantile(r.sort(g),.5)},a.variance=function(t,e){var n,r,i=t.length,a=0,o=0,s=-1,u=0;if(1===arguments.length)for(;++s<i;)_(n=v(t[s]))&&(o+=(r=n-a)*(n-(a+=r/++u)));else for(;++s<i;)_(n=v(e.call(t,t[s],s)))&&(o+=(r=n-a)*(n-(a+=r/++u)));if(u>1)return o/(u-1)},a.deviation=function(){var t=a.variance.apply(this,arguments);return t?Math.sqrt(t):t};var b=y(g);function M(t){return t.length}a.bisectLeft=b.left,a.bisect=a.bisectRight=b.right,a.bisector=function(t){return y(1===t.length?function(e,n){return g(t(e),n)}:t)},a.shuffle=function(t,e,n){(a=arguments.length)<3&&(n=t.length,a<2&&(e=0));for(var r,i,a=n-e;a;)i=Math.random()*a--|0,r=t[a+e],t[a+e]=t[i+e],t[i+e]=r;return t},a.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},a.pairs=function(t){for(var e=0,n=t.length-1,r=t[0],i=new Array(n<0?0:n);e<n;)i[e]=[r,r=t[++e]];return i},a.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,e=a.min(arguments,M),n=new Array(e);++t<e;)for(var r,i=-1,o=n[t]=new Array(r);++i<r;)o[i]=arguments[i][t];return n},a.transpose=function(t){return a.zip.apply(a,t)},a.keys=function(t){var e=[];for(var n in t)e.push(n);return e},a.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},a.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},a.merge=function(t){for(var e,n,r,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(n=new Array(o);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n};var w=Math.abs;function x(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function k(){this._=Object.create(null)}a.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n==1/0)throw new Error("infinite range");var r,i=[],a=function(t){var e=1;for(;t*e%1;)e*=10;return e}(w(n)),o=-1;if(t*=a,e*=a,(n*=a)<0)for(;(r=t+n*++o)>e;)i.push(r/a);else for(;(r=t+n*++o)<e;)i.push(r/a);return i},a.map=function(t,e){var n=new k;if(t instanceof k)t.forEach(function(t,e){n.set(t,e)});else if(Array.isArray(t)){var r,i=-1,a=t.length;if(1===arguments.length)for(;++i<a;)n.set(i,t[i]);else for(;++i<a;)n.set(e.call(t,r=t[i],i),r)}else for(var o in t)n.set(o,t[o]);return n};var L="__proto__",S="\0";function Y(t){return(t+="")===L||t[0]===S?S+t:t}function T(t){return(t+="")[0]===S?t.slice(1):t}function D(t){return Y(t)in this._}function C(t){return(t=Y(t))in this._&&delete this._[t]}function E(){var t=[];for(var e in this._)t.push(T(e));return t}function O(){var t=0;for(var e in this._)++t;return t}function A(){for(var t in this._)return!1;return!0}function j(){this._=Object.create(null)}function H(t){return t}function N(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function P(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=F.length;n<r;++n){var i=F[n]+e;if(i in t)return i}}x(k,{has:D,get:function(t){return this._[Y(t)]},set:function(t,e){return this._[Y(t)]=e},remove:C,keys:E,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:T(e),value:this._[e]});return t},size:O,empty:A,forEach:function(t){for(var e in this._)t.call(this,T(e),this._[e])}}),a.nest=function(){var t,e,n={},r=[],i=[];function o(i,a,s){if(s>=r.length)return e?e.call(n,a):t?a.sort(t):a;for(var u,l,c,d,h=-1,f=a.length,m=r[s++],p=new k;++h<f;)(d=p.get(u=m(l=a[h])))?d.push(l):p.set(u,[l]);return i?(l=i(),c=function(t,e){l.set(t,o(i,e,s))}):(l={},c=function(t,e){l[t]=o(i,e,s)}),p.forEach(c),l}return n.map=function(t,e){return o(e,t,0)},n.entries=function(t){return function t(e,n){if(n>=r.length)return e;var a=[],o=i[n++];return e.forEach(function(e,r){a.push({key:e,values:t(r,n)})}),o?a.sort(function(t,e){return o(t.key,e.key)}):a}(o(a.map,t,0),0)},n.key=function(t){return r.push(t),n},n.sortKeys=function(t){return i[r.length-1]=t,n},n.sortValues=function(e){return t=e,n},n.rollup=function(t){return e=t,n},n},a.set=function(t){var e=new j;if(t)for(var n=0,r=t.length;n<r;++n)e.add(t[n]);return e},x(j,{has:D,add:function(t){return this._[Y(t+="")]=!0,t},remove:C,values:E,size:O,empty:A,forEach:function(t){for(var e in this._)t.call(this,T(e))}}),a.behavior={},a.rebind=function(t,e){for(var n,r=1,i=arguments.length;++r<i;)t[n=arguments[r]]=N(t,e,e[n]);return t};var F=["webkit","ms","moz","Moz","o","O"];function V(){}function I(){}function W(t){var e=[],n=new k;function r(){for(var n,r=e,i=-1,a=r.length;++i<a;)(n=r[i].on)&&n.apply(this,arguments);return t}return r.on=function(r,i){var a,o=n.get(r);return arguments.length<2?o&&o.on:(o&&(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),n.remove(r)),i&&e.push(n.set(r,{on:i})),t)},r}function R(){a.event.preventDefault()}function z(){for(var t,e=a.event;t=e.sourceEvent;)e=t;return e}function B(t){for(var e=new I,n=0,r=arguments.length;++n<r;)e[arguments[n]]=W(e);return e.of=function(n,r){return function(i){try{var o=i.sourceEvent=a.event;i.target=t,a.event=i,e[i.type].apply(n,r)}finally{a.event=o}}},e}a.dispatch=function(){for(var t=new I,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=W(t);return t},I.prototype.on=function(t,e){var n=t.indexOf("."),r="";if(n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},a.event=null,a.requote=function(t){return t.replace(G,"\\$&")};var G=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]};function $(t){return U(t,X),t}var q=function(t,e){return e.querySelector(t)},J=function(t,e){return e.querySelectorAll(t)},Z=function(t,e){var n=t.matches||t[P(t,"matchesSelector")];return(Z=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(q=function(t,e){return Sizzle(t,e)[0]||null},J=Sizzle,Z=Sizzle.matchesSelector),a.selection=function(){return a.select(u.documentElement)};var X=a.selection.prototype=[];function K(t){return"function"==typeof t?t:function(){return q(t,this)}}function Q(t){return"function"==typeof t?t:function(){return J(t,this)}}X.select=function(t){var e,n,r,i,a=[];t=K(t);for(var o=-1,s=this.length;++o<s;){a.push(e=[]),e.parentNode=(r=this[o]).parentNode;for(var u=-1,l=r.length;++u<l;)(i=r[u])?(e.push(n=t.call(i,i.__data__,u,o)),n&&"__data__"in i&&(n.__data__=i.__data__)):e.push(null)}return $(a)},X.selectAll=function(t){var e,n,r=[];t=Q(t);for(var i=-1,a=this.length;++i<a;)for(var o=this[i],u=-1,l=o.length;++u<l;)(n=o[u])&&(r.push(e=s(t.call(n,n.__data__,u,i))),e.parentNode=n);return $(r)};var tt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function et(t,e){return t=a.ns.qualify(t),null==e?t.local?function(){this.removeAttributeNS(t.space,t.local)}:function(){this.removeAttribute(t)}:"function"==typeof e?t.local?function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}:function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}:t.local?function(){this.setAttributeNS(t.space,t.local,e)}:function(){this.setAttribute(t,e)}}function nt(t){return t.trim().replace(/\s+/g," ")}function rt(t){return new RegExp("(?:^|\\s+)"+a.requote(t)+"(?:\\s+|$)","g")}function it(t){return(t+"").trim().split(/^|\s+/)}function at(t,e){var n=(t=it(t).map(ot)).length;return"function"==typeof e?function(){for(var r=-1,i=e.apply(this,arguments);++r<n;)t[r](this,i)}:function(){for(var r=-1;++r<n;)t[r](this,e)}}function ot(t){var e=rt(t);return function(n,r){if(i=n.classList)return r?i.add(t):i.remove(t);var i=n.getAttribute("class")||"";r?(e.lastIndex=0,e.test(i)||n.setAttribute("class",nt(i+" "+t))):n.setAttribute("class",nt(i.replace(e," ")))}}function st(t,e,n){return null==e?function(){this.style.removeProperty(t)}:"function"==typeof e?function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}:function(){this.style.setProperty(t,e,n)}}function ut(t,e){return null==e?function(){delete this[t]}:"function"==typeof e?function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}:function(){this[t]=e}}function lt(t){return"function"==typeof t?t:(t=a.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){var e=this.ownerDocument,n=this.namespaceURI;return n?e.createElementNS(n,t):e.createElement(t)}}function ct(){var t=this.parentNode;t&&t.removeChild(this)}function dt(t){return{__data__:t}}function ht(t){return function(){return Z(this,t)}}function ft(t,e){for(var n=0,r=t.length;n<r;n++)for(var i,a=t[n],o=0,s=a.length;o<s;o++)(i=a[o])&&e(i,o,n);return t}function mt(t){return U(t,pt),t}a.ns={prefix:tt,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),tt.hasOwnProperty(n)?{space:tt[n],local:t}:t}},X.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return(t=a.ns.qualify(t)).local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(et(e,t[e]));return this}return this.each(et(t,e))},X.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=it(t)).length,i=-1;if(e=n.classList){for(;++i<r;)if(!e.contains(t[i]))return!1}else for(e=n.getAttribute("class");++i<r;)if(!rt(t[i]).test(e))return!1;return!0}for(e in t)this.each(at(e,t[e]));return this}return this.each(at(t,e))},X.style=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){for(n in r<2&&(e=""),t)this.each(st(n,t[n],e));return this}if(r<2){var i=this.node();return c(i).getComputedStyle(i,null).getPropertyValue(t)}n=""}return this.each(st(t,e,n))},X.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(ut(e,t[e]));return this}return this.each(ut(t,e))},X.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},X.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},X.append=function(t){return t=lt(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},X.insert=function(t,e){return t=lt(t),e=K(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},X.remove=function(){return this.each(ct)},X.data=function(t,e){var n,r,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(n=this[0]).length);++i<a;)(r=n[i])&&(t[i]=r.__data__);return t}function o(t,n){var r,i,a,o=t.length,c=n.length,d=Math.min(o,c),h=new Array(c),f=new Array(c),m=new Array(o);if(e){var p,g=new k,v=new Array(o);for(r=-1;++r<o;)(i=t[r])&&(g.has(p=e.call(i,i.__data__,r))?m[r]=i:g.set(p,i),v[r]=p);for(r=-1;++r<c;)(i=g.get(p=e.call(n,a=n[r],r)))?!0!==i&&(h[r]=i,i.__data__=a):f[r]=dt(a),g.set(p,!0);for(r=-1;++r<o;)r in v&&!0!==g.get(v[r])&&(m[r]=t[r])}else{for(r=-1;++r<d;)i=t[r],a=n[r],i?(i.__data__=a,h[r]=i):f[r]=dt(a);for(;r<c;++r)f[r]=dt(n[r]);for(;r<o;++r)m[r]=t[r]}f.update=h,f.parentNode=h.parentNode=m.parentNode=t.parentNode,s.push(f),u.push(h),l.push(m)}var s=mt([]),u=$([]),l=$([]);if("function"==typeof t)for(;++i<a;)o(n=this[i],t.call(n,n.parentNode.__data__,i));else for(;++i<a;)o(n=this[i],t);return u.enter=function(){return s},u.exit=function(){return l},u},X.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},X.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=ht(t));for(var a=0,o=this.length;a<o;a++){i.push(e=[]),e.parentNode=(n=this[a]).parentNode;for(var s=0,u=n.length;s<u;s++)(r=n[s])&&t.call(r,r.__data__,s,a)&&e.push(r)}return $(i)},X.order=function(){for(var t=-1,e=this.length;++t<e;)for(var n,r=this[t],i=r.length-1,a=r[i];--i>=0;)(n=r[i])&&(a&&a!==n.nextSibling&&a.parentNode.insertBefore(n,a),a=n);return this},X.sort=function(t){t=function(t){arguments.length||(t=g);return function(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}}.apply(this,arguments);for(var e=-1,n=this.length;++e<n;)this[e].sort(t);return this.order()},X.each=function(t){return ft(this,function(e,n,r){t.call(e,e.__data__,n,r)})},X.call=function(t){var e=s(arguments);return t.apply(e[0]=this,e),this},X.empty=function(){return!this.node()},X.node=function(){for(var t=0,e=this.length;t<e;t++)for(var n=this[t],r=0,i=n.length;r<i;r++){var a=n[r];if(a)return a}return null},X.size=function(){var t=0;return ft(this,function(){++t}),t};var pt=[];function gt(t,e,n){var r="__on"+t,i=t.indexOf("."),o=_t;i>0&&(t=t.slice(0,i));var u=vt.get(t);function l(){var e=this[r];e&&(this.removeEventListener(t,e,e.$),delete this[r])}return u&&(t=u,o=yt),i?e?function(){var i=o(e,s(arguments));l.call(this),this.addEventListener(t,this[r]=i,i.$=n),i._=e}:l:e?V:function(){var e,n=new RegExp("^__on([^.]+)"+a.requote(t)+"$");for(var r in this)if(e=r.match(n)){var i=this[r];this.removeEventListener(e[1],i,i.$),delete this[r]}}}a.selection.enter=mt,a.selection.enter.prototype=pt,pt.append=X.append,pt.empty=X.empty,pt.node=X.node,pt.call=X.call,pt.size=X.size,pt.select=function(t){for(var e,n,r,i,a,o=[],s=-1,u=this.length;++s<u;){r=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var l=-1,c=i.length;++l<c;)(a=i[l])?(e.push(r[l]=n=t.call(i.parentNode,a.__data__,l,s)),n.__data__=a.__data__):e.push(null)}return $(o)},pt.insert=function(t,e){return arguments.length<2&&(e=function(t){var e,n;return function(r,i,a){var o,s=t[a].update,u=s.length;for(a!=n&&(n=a,e=0),i>=e&&(e=i+1);!(o=s[e])&&++e<u;);return o}}(this)),X.insert.call(this,t,e)},a.select=function(t){var e;return"string"==typeof t?(e=[q(t,u)]).parentNode=u.documentElement:(e=[t]).parentNode=l(t),$([e])},a.selectAll=function(t){var e;return"string"==typeof t?(e=s(J(t,u))).parentNode=u.documentElement:(e=s(t)).parentNode=null,$([e])},X.on=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){for(n in r<2&&(e=!1),t)this.each(gt(n,t[n],e));return this}if(r<2)return(r=this.node()["__on"+t])&&r._;n=!1}return this.each(gt(t,e,n))};var vt=a.map({mouseenter:"mouseover",mouseleave:"mouseout"});function _t(t,e){return function(n){var r=a.event;a.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{a.event=r}}}function yt(t,e){var n=_t(t,e);return function(t){var e=t.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||n.call(this,t)}}u&&vt.forEach(function(t){"on"+t in u&&vt.remove(t)});var bt,Mt=0;function wt(t){var e=".dragsuppress-"+ ++Mt,n="click"+e,r=a.select(c(t)).on("touchmove"+e,R).on("dragstart"+e,R).on("selectstart"+e,R);if(null==bt&&(bt=!("onselectstart"in t)&&P(t.style,"userSelect")),bt){var i=l(t).style,o=i[bt];i[bt]="none"}return function(t){if(r.on(e,null),bt&&(i[bt]=o),t){var a=function(){r.on(n,null)};r.on(n,function(){R(),a()},!0),setTimeout(a,0)}}}a.mouse=function(t){return kt(t,z())};var xt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function kt(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(xt<0){var i=c(t);if(i.scrollX||i.scrollY){var o=(n=a.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();xt=!(o.f||o.e),n.remove()}}return xt?(r.x=e.pageX,r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}function Lt(){return a.event.changedTouches[0].identifier}a.touch=function(t,e,n){if(arguments.length<3&&(n=e,e=z().changedTouches),e)for(var r,i=0,a=e.length;i<a;++i)if((r=e[i]).identifier===n)return kt(t,r)},a.behavior.drag=function(){var t=B(i,"drag","dragstart","dragend"),e=null,n=o(V,a.mouse,c,"mousemove","mouseup"),r=o(Lt,a.touch,H,"touchmove","touchend");function i(){this.on("mousedown.drag",n).on("touchstart.drag",r)}function o(n,r,i,o,s){return function(){var u,l=a.event.target,c=this.parentNode,d=t.of(this,arguments),h=0,f=n(),m=".drag"+(null==f?"":"-"+f),p=a.select(i(l)).on(o+m,function(){var t,e,n=r(c,f);if(!n)return;t=n[0]-v[0],e=n[1]-v[1],h|=t|e,v=n,d({type:"drag",x:n[0]+u[0],y:n[1]+u[1],dx:t,dy:e})}).on(s+m,function(){if(!r(c,f))return;p.on(o+m,null).on(s+m,null),g(h),d({type:"dragend"})}),g=wt(l),v=r(c,f);u=e?[(u=e.apply(this,arguments)).x-v[0],u.y-v[1]]:[0,0],d({type:"dragstart"})}}return i.origin=function(t){return arguments.length?(e=t,i):e},a.rebind(i,t,"on")},a.touches=function(t,e){return arguments.length<2&&(e=z().touches),e?s(e).map(function(e){var n=kt(t,e);return n.identifier=e.identifier,n}):[]};var St=1e-6,Yt=St*St,Tt=Math.PI,Dt=2*Tt,Ct=Dt-St,Et=Tt/2,Ot=Tt/180,At=180/Tt;function jt(t){return t>0?1:t<0?-1:0}function Ht(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function Nt(t){return t>1?0:t<-1?Tt:Math.acos(t)}function Pt(t){return t>1?Et:t<-1?-Et:Math.asin(t)}function Ft(t){return((t=Math.exp(t))+1/t)/2}function Vt(t){return(t=Math.sin(t/2))*t}var It=Math.SQRT2;a.interpolateZoom=function(t,e){var n,r,i=t[0],a=t[1],o=t[2],s=e[0],u=e[1],l=e[2],c=s-i,d=u-a,h=c*c+d*d;if(h<Yt)r=Math.log(l/o)/It,n=function(t){return[i+t*c,a+t*d,o*Math.exp(It*t*r)]};else{var f=Math.sqrt(h),m=(l*l-o*o+4*h)/(2*o*2*f),p=(l*l-o*o-4*h)/(2*l*2*f),g=Math.log(Math.sqrt(m*m+1)-m),v=Math.log(Math.sqrt(p*p+1)-p);r=(v-g)/It,n=function(t){var e=t*r,n=Ft(g),s=o/(2*f)*(n*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(It*e+g)-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+s*c,a+s*d,o*n/Ft(It*e+g)]}}return n.duration=1e3*r,n},a.behavior.zoom=function(){var t,e,n,r,i,o,s,l,d,h={x:0,y:0,k:1},f=[960,500],m=zt,p=250,g=0,v="mousedown.zoom",_="mousemove.zoom",y="mouseup.zoom",b="touchstart.zoom",M=B(w,"zoomstart","zoom","zoomend");function w(t){t.on(v,E).on(Rt+".zoom",A).on("dblclick.zoom",j).on(b,O)}function x(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function k(t){h.k=Math.max(m[0],Math.min(m[1],t))}function L(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function S(t,n,r,i){t.__chart__={x:h.x,y:h.y,k:h.k},k(Math.pow(2,i)),L(e=n,r),t=a.select(t),p>0&&(t=t.transition().duration(p)),t.call(w.event)}function Y(){s&&s.domain(o.range().map(function(t){return(t-h.x)/h.k}).map(o.invert)),d&&d.domain(l.range().map(function(t){return(t-h.y)/h.k}).map(l.invert))}function T(t){g++||t({type:"zoomstart"})}function D(t){Y(),t({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function C(t){--g||(t({type:"zoomend"}),e=null)}function E(){var t=this,e=M.of(t,arguments),n=0,r=a.select(c(t)).on(_,function(){n=1,L(a.mouse(t),i),D(e)}).on(y,function(){r.on(_,null).on(y,null),o(n),C(e)}),i=x(a.mouse(t)),o=wt(t);hs.call(t),T(e)}function O(){var t,e=this,n=M.of(e,arguments),r={},o=0,s=".zoom-"+a.event.changedTouches[0].identifier,u="touchmove"+s,l="touchend"+s,c=[],d=a.select(e),f=wt(e);function m(){var n=a.touches(e);return t=h.k,n.forEach(function(t){t.identifier in r&&(r[t.identifier]=x(t))}),n}function p(){var t=a.event.target;a.select(t).on(u,g).on(l,_),c.push(t);for(var n=a.event.changedTouches,s=0,d=n.length;s<d;++s)r[n[s].identifier]=null;var f=m(),p=Date.now();if(1===f.length){if(p-i<500){var v=f[0];S(e,v,r[v.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),R()}i=p}else if(f.length>1){v=f[0];var y=f[1],b=v[0]-y[0],M=v[1]-y[1];o=b*b+M*M}}function g(){var s,u,l,c,d=a.touches(e);hs.call(e);for(var h=0,f=d.length;h<f;++h,c=null)if(l=d[h],c=r[l.identifier]){if(u)break;s=l,u=c}if(c){var m=(m=l[0]-s[0])*m+(m=l[1]-s[1])*m,p=o&&Math.sqrt(m/o);s=[(s[0]+l[0])/2,(s[1]+l[1])/2],u=[(u[0]+c[0])/2,(u[1]+c[1])/2],k(p*t)}i=null,L(s,u),D(n)}function _(){if(a.event.touches.length){for(var t=a.event.changedTouches,e=0,i=t.length;e<i;++e)delete r[t[e].identifier];for(var o in r)return void m()}a.selectAll(c).on(s,null),d.on(v,E).on(b,O),f(),C(n)}p(),T(n),d.on(v,null).on(b,p)}function A(){var i=M.of(this,arguments);r?clearTimeout(r):(hs.call(this),t=x(e=n||a.mouse(this)),T(i)),r=setTimeout(function(){r=null,C(i)},50),R(),k(Math.pow(2,.002*Wt())*h.k),L(e,t),D(i)}function j(){var t=a.mouse(this),e=Math.log(h.k)/Math.LN2;S(this,t,x(t),a.event.shiftKey?Math.ceil(e)-1:Math.floor(e)+1)}return Rt||(Rt="onwheel"in u?(Wt=function(){return-a.event.deltaY*(a.event.deltaMode?120:1)},"wheel"):"onmousewheel"in u?(Wt=function(){return a.event.wheelDelta},"mousewheel"):(Wt=function(){return-a.event.detail},"MozMousePixelScroll")),w.event=function(t){t.each(function(){var t=M.of(this,arguments),n=h;ps?a.select(this).transition().each("start.zoom",function(){h=this.__chart__||{x:0,y:0,k:1},T(t)}).tween("zoom:zoom",function(){var r=f[0],i=f[1],o=e?e[0]:r/2,s=e?e[1]:i/2,u=a.interpolateZoom([(o-h.x)/h.k,(s-h.y)/h.k,r/h.k],[(o-n.x)/n.k,(s-n.y)/n.k,r/n.k]);return function(e){var n=u(e),i=r/n[2];this.__chart__=h={x:o-n[0]*i,y:s-n[1]*i,k:i},D(t)}}).each("interrupt.zoom",function(){C(t)}).each("end.zoom",function(){C(t)}):(this.__chart__=h,T(t),D(t),C(t))})},w.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},Y(),w):[h.x,h.y]},w.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},k(+t),Y(),w):h.k},w.scaleExtent=function(t){return arguments.length?(m=null==t?zt:[+t[0],+t[1]],w):m},w.center=function(t){return arguments.length?(n=t&&[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(f=t&&[+t[0],+t[1]],w):f},w.duration=function(t){return arguments.length?(p=+t,w):p},w.x=function(t){return arguments.length?(s=t,o=t.copy(),h={x:0,y:0,k:1},w):s},w.y=function(t){return arguments.length?(d=t,l=t.copy(),h={x:0,y:0,k:1},w):d},a.rebind(w,M,"on")};var Wt,Rt,zt=[0,1/0];function Bt(){}function Gt(t,e,n){return this instanceof Gt?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof Gt?new Gt(t.h,t.s,t.l):fe(""+t,me,Gt):new Gt(t,e,n)}a.color=Bt,Bt.prototype.toString=function(){return this.rgb()+""},a.hsl=Gt;var Ut=Gt.prototype=new Bt;function $t(t,e,n){var r,i;function a(t){return Math.round(255*function(t){return t>360?t-=360:t<0&&(t+=360),t<60?r+(i-r)*t/60:t<180?i:t<240?r+(i-r)*(240-t)/60:r}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+e):n+e-n*e),new ue(a(t+120),a(t),a(t-120))}function qt(t,e,n){return this instanceof qt?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof qt?new qt(t.h,t.c,t.l):ie(t instanceof Xt?t.l:(t=pe((t=a.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new qt(t,e,n)}Ut.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Gt(this.h,this.s,this.l/t)},Ut.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Gt(this.h,this.s,t*this.l)},Ut.rgb=function(){return $t(this.h,this.s,this.l)},a.hcl=qt;var Jt=qt.prototype=new Bt;function Zt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new Xt(n,Math.cos(t*=Ot)*e,Math.sin(t)*e)}function Xt(t,e,n){return this instanceof Xt?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof Xt?new Xt(t.l,t.a,t.b):t instanceof qt?Zt(t.h,t.c,t.l):pe((t=ue(t)).r,t.g,t.b):new Xt(t,e,n)}Jt.brighter=function(t){return new qt(this.h,this.c,Math.min(100,this.l+Kt*(arguments.length?t:1)))},Jt.darker=function(t){return new qt(this.h,this.c,Math.max(0,this.l-Kt*(arguments.length?t:1)))},Jt.rgb=function(){return Zt(this.h,this.c,this.l).rgb()},a.lab=Xt;var Kt=18,Qt=.95047,te=1,ee=1.08883,ne=Xt.prototype=new Bt;function re(t,e,n){var r=(t+16)/116,i=r+e/500,a=r-n/200;return new ue(se(3.2404542*(i=ae(i)*Qt)-1.5371385*(r=ae(r)*te)-.4985314*(a=ae(a)*ee)),se(-.969266*i+1.8760108*r+.041556*a),se(.0556434*i-.2040259*r+1.0572252*a))}function ie(t,e,n){return t>0?new qt(Math.atan2(n,e)*At,Math.sqrt(e*e+n*n),t):new qt(NaN,NaN,t)}function ae(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function oe(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function se(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ue(t,e,n){return this instanceof ue?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof ue?new ue(t.r,t.g,t.b):fe(""+t,ue,$t):new ue(t,e,n)}function le(t){return new ue(t>>16,t>>8&255,255&t)}function ce(t){return le(t)+""}ne.brighter=function(t){return new Xt(Math.min(100,this.l+Kt*(arguments.length?t:1)),this.a,this.b)},ne.darker=function(t){return new Xt(Math.max(0,this.l-Kt*(arguments.length?t:1)),this.a,this.b)},ne.rgb=function(){return re(this.l,this.a,this.b)},a.rgb=ue;var de=ue.prototype=new Bt;function he(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function fe(t,e,n){var r,i,a,o=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(ve(i[0]),ve(i[1]),ve(i[2]))}return(a=_e.get(t))?e(a.r,a.g,a.b):(null==t||"#"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,u=15&a,u|=u<<4):7===t.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,u=255&a)),e(o,s,u))}function me(t,e,n){var r,i,a=Math.min(t/=255,e/=255,n/=255),o=Math.max(t,e,n),s=o-a,u=(o+a)/2;return s?(i=u<.5?s/(o+a):s/(2-o-a),r=t==o?(e-n)/s+(e<n?6:0):e==o?(n-t)/s+2:(t-e)/s+4,r*=60):(r=NaN,i=u>0&&u<1?0:r),new Gt(r,i,u)}function pe(t,e,n){var r=oe((.4124564*(t=ge(t))+.3575761*(e=ge(e))+.1804375*(n=ge(n)))/Qt),i=oe((.2126729*t+.7151522*e+.072175*n)/te);return Xt(116*i-16,500*(r-i),200*(i-oe((.0193339*t+.119192*e+.9503041*n)/ee)))}function ge(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ve(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}de.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,i=30;return e||n||r?(e&&e<i&&(e=i),n&&n<i&&(n=i),r&&r<i&&(r=i),new ue(Math.min(255,e/t),Math.min(255,n/t),Math.min(255,r/t))):new ue(i,i,i)},de.darker=function(t){return new ue((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},de.hsl=function(){return me(this.r,this.g,this.b)},de.toString=function(){return"#"+he(this.r)+he(this.g)+he(this.b)};var _e=a.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function ye(t){return"function"==typeof t?t:function(){return t}}function be(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Me(e,n,t,r)}}function Me(t,e,n,r){var i={},o=a.dispatch("beforesend","progress","load","error"),u={},l=new XMLHttpRequest,c=null;function d(){var t,e=l.status;if(!e&&function(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}(l)||e>=200&&e<300||304===e){try{t=n.call(i,l)}catch(t){return void o.error.call(i,t)}o.load.call(i,t)}else o.error.call(i,l)}return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(t)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=d:l.onreadystatechange=function(){l.readyState>3&&d()},l.onprogress=function(t){var e=a.event;a.event=t;try{o.progress.call(i,l)}finally{a.event=e}},i.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==e?delete u[t]:u[t]=e+"",i)},i.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",i):e},i.responseType=function(t){return arguments.length?(c=t,i):c},i.response=function(t){return n=t,i},["get","post"].forEach(function(t){i[t]=function(){return i.send.apply(i,[t].concat(s(arguments)))}}),i.send=function(n,r,a){if(2===arguments.length&&"function"==typeof r&&(a=r,r=null),l.open(n,t,!0),null==e||"accept"in u||(u.accept=e+",*/*"),l.setRequestHeader)for(var s in u)l.setRequestHeader(s,u[s]);return null!=e&&l.overrideMimeType&&l.overrideMimeType(e),null!=c&&(l.responseType=c),null!=a&&i.on("error",a).on("load",function(t){a(null,t)}),o.beforesend.call(i,l),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},a.rebind(i,o,"on"),null==r?i:i.get(function(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}(r))}_e.forEach(function(t,e){_e.set(t,le(e))}),a.functor=ye,a.xhr=be(H),a.dsv=function(t,e){var n=new RegExp('["'+t+"\n]"),r=t.charCodeAt(0);function i(t,n,r){arguments.length<3&&(r=n,n=null);var i=Me(t,e,null==n?a:o(n),r);return i.row=function(t){return arguments.length?i.response(null==(n=t)?a:o(t)):n},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(u).join(t)}function u(t){return n.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return i.parse=function(t,e){var n;return i.parseRows(t,function(t,r){if(n)return n(t,r-1);var i=new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}");n=e?function(t,n){return e(i(t),n)}:i})},i.parseRows=function(t,e){var n,i,a={},o={},s=[],u=t.length,l=0,c=0;function d(){if(l>=u)return o;if(i)return i=!1,a;var e=l;if(34===t.charCodeAt(e)){for(var n=e;n++<u;)if(34===t.charCodeAt(n)){if(34!==t.charCodeAt(n+1))break;++n}return l=n+2,13===(s=t.charCodeAt(n+1))?(i=!0,10===t.charCodeAt(n+2)&&++l):10===s&&(i=!0),t.slice(e+1,n).replace(/""/g,'"')}for(;l<u;){var s,c=1;if(10===(s=t.charCodeAt(l++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(l)&&(++l,++c);else if(s!==r)continue;return t.slice(e,l-c)}return t.slice(e)}for(;(n=d())!==o;){for(var h=[];n!==a&&n!==o;)h.push(n),n=d();e&&null==(h=e(h,c++))||s.push(h)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var n=new j,r=[];return e.forEach(function(t){for(var e in t)n.has(e)||r.push(n.add(e))}),[r.map(u).join(t)].concat(e.map(function(e){return r.map(function(t){return u(e[t])}).join(t)})).join("\n")},i.formatRows=function(t){return t.map(s).join("\n")},i},a.csv=a.dsv(",","text/csv"),a.tsv=a.dsv("\t","text/tab-separated-values");var we,xe,ke,Le,Se=this[P(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};function Ye(t,e,n){var r=arguments.length;r<2&&(e=0),r<3&&(n=Date.now());var i={c:t,t:n+e,n:null};return xe?xe.n=i:we=i,xe=i,ke||(Le=clearTimeout(Le),ke=1,Se(Te)),i}function Te(){var t=De(),e=Ce()-t;e>24?(isFinite(e)&&(clearTimeout(Le),Le=setTimeout(Te,e)),ke=0):(ke=1,Se(Te))}function De(){for(var t=Date.now(),e=we;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Ce(){for(var t,e=we,n=1/0;e;)e.c?(e.t<n&&(n=e.t),e=(t=e).n):e=t?t.n=e.n:we=e.n;return xe=t,n}function Ee(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}a.timer=function(){Ye.apply(this,arguments)},a.timer.flush=function(){De(),Ce()},a.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var Oe=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(function(t,e){var n=Math.pow(10,3*w(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}});a.formatPrefix=function(t,e){var n=0;return(t=+t)&&(t<0&&(t*=-1),e&&(t=a.round(t,Ee(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Oe[8+n/3]};var Ae=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,je=a.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=a.round(t,Ee(t,e))).toFixed(Math.max(0,Math.min(20,Ee(t*(1+1e-15),e))))}});function He(t){return t+""}var Ne=a.time={},Pe=Date;function Fe(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Fe.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Ve.setUTCDate.apply(this._,arguments)},setDay:function(){Ve.setUTCDay.apply(this._,arguments)},setFullYear:function(){Ve.setUTCFullYear.apply(this._,arguments)},setHours:function(){Ve.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Ve.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Ve.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Ve.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Ve.setUTCSeconds.apply(this._,arguments)},setTime:function(){Ve.setTime.apply(this._,arguments)}};var Ve=Date.prototype;function Ie(t,e,n){function r(e){var n=t(e),r=a(n,1);return e-n<r-e?n:r}function i(n){return e(n=t(new Pe(n-1)),1),n}function a(t,n){return e(t=new Pe(+t),n),t}function o(t,r,a){var o=i(t),s=[];if(a>1)for(;o<r;)n(o)%a||s.push(new Date(+o)),e(o,1);else for(;o<r;)s.push(new Date(+o)),e(o,1);return s}t.floor=t,t.round=r,t.ceil=i,t.offset=a,t.range=o;var s=t.utc=We(t);return s.floor=s,s.round=We(r),s.ceil=We(i),s.offset=We(a),s.range=function(t,e,n){try{Pe=Fe;var r=new Fe;return r._=t,o(r,e,n)}finally{Pe=Date}},t}function We(t){return function(e,n){try{Pe=Fe;var r=new Fe;return r._=e,t(r,n)._}finally{Pe=Date}}}Ne.year=Ie(function(t){return(t=Ne.day(t)).setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),Ne.years=Ne.year.range,Ne.years.utc=Ne.year.utc.range,Ne.day=Ie(function(t){var e=new Pe(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),Ne.days=Ne.day.range,Ne.days.utc=Ne.day.utc.range,Ne.dayOfYear=function(t){var e=Ne.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=Ne[t]=Ie(function(t){return(t=Ne.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=Ne.year(t).getDay();return Math.floor((Ne.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});Ne[t+"s"]=n.range,Ne[t+"s"].utc=n.utc.range,Ne[t+"OfYear"]=function(t){var n=Ne.year(t).getDay();return Math.floor((Ne.dayOfYear(t)+(n+e)%7)/7)}}),Ne.week=Ne.sunday,Ne.weeks=Ne.sunday.range,Ne.weeks.utc=Ne.sunday.utc.range,Ne.weekOfYear=Ne.sundayOfYear;var Re={"-":"",_:" ",0:"0"},ze=/^\s*\d+/,Be=/^%/;function Ge(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function Ue(t){return new RegExp("^(?:"+t.map(a.requote).join("|")+")","i")}function $e(t){for(var e=new k,n=-1,r=t.length;++n<r;)e.set(t[n].toLowerCase(),n);return e}function qe(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Je(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function Ze(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function Xe(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ke(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+2));return r?(t.y=function(t){return t+(t>68?1900:2e3)}(+r[0]),n+r[0].length):-1}function Qe(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function tn(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function en(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function nn(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function rn(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function an(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function on(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function sn(t,e,n){ze.lastIndex=0;var r=ze.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function un(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=w(e)/60|0,i=w(e)%60;return n+Ge(r,"0",2)+Ge(i,"0",2)}function ln(t,e,n){Be.lastIndex=0;var r=Be.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function cn(t){for(var e=t.length,n=-1;++n<e;)t[n][0]=this(t[n][0]);return function(e){for(var n=0,r=t[n];!r[1](e);)r=t[++n];return r[0](e)}}a.locale=function(t){return{numberFormat:function(t){var e=t.decimal,n=t.thousands,r=t.grouping,i=t.currency,o=r&&n?function(t,e){for(var i=t.length,a=[],o=0,s=r[0],u=0;i>0&&s>0&&(u+s+1>e&&(s=Math.max(1,e-u)),a.push(t.substring(i-=s,i+s)),!((u+=s+1)>e));)s=r[o=(o+1)%r.length];return a.reverse().join(n)}:H;return function(t){var n=Ae.exec(t),r=n[1]||" ",s=n[2]||">",u=n[3]||"-",l=n[4]||"",c=n[5],d=+n[6],h=n[7],f=n[8],m=n[9],p=1,g="",v="",_=!1,y=!0;switch(f&&(f=+f.substring(1)),(c||"0"===r&&"="===s)&&(c=r="0",s="="),m){case"n":h=!0,m="g";break;case"%":p=100,v="%",m="f";break;case"p":p=100,v="%",m="r";break;case"b":case"o":case"x":case"X":"#"===l&&(g="0"+m.toLowerCase());case"c":y=!1;case"d":_=!0,f=0;break;case"s":p=-1,m="r"}"$"===l&&(g=i[0],v=i[1]),"r"!=m||f||(m="g"),null!=f&&("g"==m?f=Math.max(1,Math.min(21,f)):"e"!=m&&"f"!=m||(f=Math.max(0,Math.min(20,f)))),m=je.get(m)||He;var b=c&&h;return function(t){var n=v;if(_&&t%1)return"";var i=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===u?"":u;if(p<0){var l=a.formatPrefix(t,f);t=l.scale(t),n=l.symbol+v}else t*=p;var M,w,x=(t=m(t,f)).lastIndexOf(".");if(x<0){var k=y?t.lastIndexOf("e"):-1;k<0?(M=t,w=""):(M=t.substring(0,k),w=t.substring(k))}else M=t.substring(0,x),w=e+t.substring(x+1);!c&&h&&(M=o(M,1/0));var L=g.length+M.length+w.length+(b?0:i.length),S=L<d?new Array(L=d-L+1).join(r):"";return b&&(M=o(S+M,S.length?d-w.length:1/0)),i+=g,t=M+w,("<"===s?i+t+S:">"===s?S+i+t:"^"===s?S.substring(0,L>>=1)+i+t+S.substring(L):i+(b?t:S+t))+n}}}(t),timeFormat:function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,s=t.shortDays,u=t.months,l=t.shortMonths;function c(t){var e=t.length;function n(n){for(var r,i,a,o=[],s=-1,u=0;++s<e;)37===t.charCodeAt(s)&&(o.push(t.slice(u,s)),null!=(i=Re[r=t.charAt(++s)])&&(r=t.charAt(++s)),(a=M[r])&&(r=a(n,null==i?"e"===r?" ":"0":i)),o.push(r),u=s+1);return o.push(t.slice(u,s)),o.join("")}return n.parse=function(e){var n={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(d(n,t,e,0)!=e.length)return null;"p"in n&&(n.H=n.H%12+12*n.p);var r=null!=n.Z&&Pe!==Fe,i=new(r?Fe:Pe);return"j"in n?i.setFullYear(n.y,0,n.j):"W"in n||"U"in n?("w"in n||(n.w="W"in n?1:0),i.setFullYear(n.y,0,1),i.setFullYear(n.y,0,"W"in n?(n.w+6)%7+7*n.W-(i.getDay()+5)%7:n.w+7*n.U-(i.getDay()+6)%7)):i.setFullYear(n.y,n.m,n.d),i.setHours(n.H+(n.Z/100|0),n.M+n.Z%100,n.S,n.L),r?i._:i},n.toString=function(){return t},n}function d(t,e,n,r){for(var i,a,o,s=0,u=e.length,l=n.length;s<u;){if(r>=l)return-1;if(37===(i=e.charCodeAt(s++))){if(o=e.charAt(s++),!(a=w[o in Re?e.charAt(s++):o])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}c.utc=function(t){var e=c(t);function n(t){try{var n=new(Pe=Fe);return n._=t,e(n)}finally{Pe=Date}}return n.parse=function(t){try{Pe=Fe;var n=e.parse(t);return n&&n._}finally{Pe=Date}},n.toString=e.toString,n},c.multi=c.utc.multi=cn;var h=a.map(),f=Ue(o),m=$e(o),p=Ue(s),g=$e(s),v=Ue(u),_=$e(u),y=Ue(l),b=$e(l);i.forEach(function(t,e){h.set(t.toLowerCase(),e)});var M={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:c(e),d:function(t,e){return Ge(t.getDate(),e,2)},e:function(t,e){return Ge(t.getDate(),e,2)},H:function(t,e){return Ge(t.getHours(),e,2)},I:function(t,e){return Ge(t.getHours()%12||12,e,2)},j:function(t,e){return Ge(1+Ne.dayOfYear(t),e,3)},L:function(t,e){return Ge(t.getMilliseconds(),e,3)},m:function(t,e){return Ge(t.getMonth()+1,e,2)},M:function(t,e){return Ge(t.getMinutes(),e,2)},p:function(t){return i[+(t.getHours()>=12)]},S:function(t,e){return Ge(t.getSeconds(),e,2)},U:function(t,e){return Ge(Ne.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Ge(Ne.mondayOfYear(t),e,2)},x:c(n),X:c(r),y:function(t,e){return Ge(t.getFullYear()%100,e,2)},Y:function(t,e){return Ge(t.getFullYear()%1e4,e,4)},Z:un,"%":function(){return"%"}},w={a:function(t,e,n){p.lastIndex=0;var r=p.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){f.lastIndex=0;var r=f.exec(e.slice(n));return r?(t.w=m.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){y.lastIndex=0;var r=y.exec(e.slice(n));return r?(t.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){v.lastIndex=0;var r=v.exec(e.slice(n));return r?(t.m=_.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,e,n){return d(t,M.c.toString(),e,n)},d:en,e:en,H:rn,I:rn,j:nn,L:sn,m:tn,M:an,p:function(t,e,n){var r=h.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)},S:on,U:Je,w:qe,W:Ze,x:function(t,e,n){return d(t,M.x.toString(),e,n)},X:function(t,e,n){return d(t,M.X.toString(),e,n)},y:Ke,Y:Xe,Z:Qe,"%":ln};return c}(t)}};var dn=a.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function hn(){}a.format=dn.numberFormat,a.geo={},hn.prototype={s:0,t:0,add:function(t){mn(t,this.t,fn),mn(fn.s,this.s,this),this.s?this.t+=fn.t:this.s=fn.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var fn=new hn;function mn(t,e,n){var r=n.s=t+e,i=r-t,a=r-i;n.t=t-a+(e-i)}function pn(t,e){t&&vn.hasOwnProperty(t.type)&&vn[t.type](t,e)}a.geo.stream=function(t,e){t&&gn.hasOwnProperty(t.type)?gn[t.type](t,e):pn(t,e)};var gn={Feature:function(t,e){pn(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)pn(n[r].geometry,e)}},vn={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){_n(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)_n(n[r],e,0)},Polygon:function(t,e){yn(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)yn(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)pn(n[r],e)}};function _n(t,e,n){var r,i=-1,a=t.length-n;for(e.lineStart();++i<a;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function yn(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)_n(t[n],e,1);e.polygonEnd()}a.geo.area=function(t){return bn=0,a.geo.stream(t,An),bn};var bn,Mn,wn,xn,kn,Ln,Sn,Yn,Tn,Dn,Cn,En,On=new hn,An={sphere:function(){bn+=4*Tt},point:V,lineStart:V,lineEnd:V,polygonStart:function(){On.reset(),An.lineStart=jn},polygonEnd:function(){var t=2*On;bn+=t<0?4*Tt+t:t,An.lineStart=An.lineEnd=An.point=V}};function jn(){var t,e,n,r,i;function a(t,e){e=e*Ot/2+Tt/4;var a=(t*=Ot)-n,o=a>=0?1:-1,s=o*a,u=Math.cos(e),l=Math.sin(e),c=i*l,d=r*u+c*Math.cos(s),h=c*o*Math.sin(s);On.add(Math.atan2(h,d)),n=t,r=u,i=l}An.point=function(o,s){An.point=a,n=(t=o)*Ot,r=Math.cos(s=(e=s)*Ot/2+Tt/4),i=Math.sin(s)},An.lineEnd=function(){a(t,e)}}function Hn(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function Nn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Pn(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Fn(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Vn(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function In(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Wn(t){return[Math.atan2(t[1],t[0]),Pt(t[2])]}function Rn(t,e){return w(t[0]-e[0])<St&&w(t[1]-e[1])<St}a.geo.bounds=function(){var t,e,n,r,i,o,s,u,l,c,d,h={point:f,lineStart:p,lineEnd:g,polygonStart:function(){h.point=v,h.lineStart=_,h.lineEnd=y,l=0,An.polygonStart()},polygonEnd:function(){An.polygonEnd(),h.point=f,h.lineStart=p,h.lineEnd=g,On<0?(t=-(n=180),e=-(r=90)):l>St?r=90:l<-St&&(e=-90),d[0]=t,d[1]=n}};function f(i,a){c.push(d=[t=i,n=i]),a<e&&(e=a),a>r&&(r=a)}function m(a,o){var s=Hn([a*Ot,o*Ot]);if(u){var l=Pn(u,s),c=Pn([l[1],-l[0],0],l);In(c),c=Wn(c);var d=a-i,h=d>0?1:-1,m=c[0]*At*h,p=w(d)>180;if(p^(h*i<m&&m<h*a))(g=c[1]*At)>r&&(r=g);else if(p^(h*i<(m=(m+360)%360-180)&&m<h*a)){var g;(g=-c[1]*At)<e&&(e=g)}else o<e&&(e=o),o>r&&(r=o);p?a<i?b(t,a)>b(t,n)&&(n=a):b(a,n)>b(t,n)&&(t=a):n>=t?(a<t&&(t=a),a>n&&(n=a)):a>i?b(t,a)>b(t,n)&&(n=a):b(a,n)>b(t,n)&&(t=a)}else f(a,o);u=s,i=a}function p(){h.point=m}function g(){d[0]=t,d[1]=n,h.point=f,u=null}function v(t,e){if(u){var n=t-i;l+=w(n)>180?n+(n>0?360:-360):n}else o=t,s=e;An.point(t,e),m(t,e)}function _(){An.lineStart()}function y(){v(o,s),An.lineEnd(),w(l)>St&&(t=-(n=180)),d[0]=t,d[1]=n,u=null}function b(t,e){return(e-=t)<0?e+360:e}function M(t,e){return t[0]-e[0]}function x(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}return function(i){if(r=n=-(t=e=1/0),c=[],a.geo.stream(i,h),l=c.length){c.sort(M);for(var o=1,s=[p=c[0]];o<l;++o)x((f=c[o])[0],p)||x(f[1],p)?(b(p[0],f[1])>b(p[0],p[1])&&(p[1]=f[1]),b(f[0],p[1])>b(p[0],p[1])&&(p[0]=f[0])):s.push(p=f);for(var u,l,f,m=-1/0,p=(o=0,s[l=s.length-1]);o<=l;p=f,++o)f=s[o],(u=b(p[1],f[0]))>m&&(m=u,t=f[0],n=p[1])}return c=d=null,t===1/0||e===1/0?[[NaN,NaN],[NaN,NaN]]:[[t,e],[n,r]]}}(),a.geo.centroid=function(t){Mn=wn=xn=kn=Ln=Sn=Yn=Tn=Dn=Cn=En=0,a.geo.stream(t,zn);var e=Dn,n=Cn,r=En,i=e*e+n*n+r*r;return i<Yt&&(e=Sn,n=Yn,r=Tn,wn<St&&(e=xn,n=kn,r=Ln),(i=e*e+n*n+r*r)<Yt)?[NaN,NaN]:[Math.atan2(n,e)*At,Pt(r/Math.sqrt(i))*At]};var zn={sphere:V,point:Bn,lineStart:Un,lineEnd:$n,polygonStart:function(){zn.lineStart=qn},polygonEnd:function(){zn.lineStart=Un}};function Bn(t,e){t*=Ot;var n=Math.cos(e*=Ot);Gn(n*Math.cos(t),n*Math.sin(t),Math.sin(e))}function Gn(t,e,n){xn+=(t-xn)/++Mn,kn+=(e-kn)/Mn,Ln+=(n-Ln)/Mn}function Un(){var t,e,n;function r(r,i){r*=Ot;var a=Math.cos(i*=Ot),o=a*Math.cos(r),s=a*Math.sin(r),u=Math.sin(i),l=Math.atan2(Math.sqrt((l=e*u-n*s)*l+(l=n*o-t*u)*l+(l=t*s-e*o)*l),t*o+e*s+n*u);wn+=l,Sn+=l*(t+(t=o)),Yn+=l*(e+(e=s)),Tn+=l*(n+(n=u)),Gn(t,e,n)}zn.point=function(i,a){i*=Ot;var o=Math.cos(a*=Ot);t=o*Math.cos(i),e=o*Math.sin(i),n=Math.sin(a),zn.point=r,Gn(t,e,n)}}function $n(){zn.point=Bn}function qn(){var t,e,n,r,i;function a(t,e){t*=Ot;var a=Math.cos(e*=Ot),o=a*Math.cos(t),s=a*Math.sin(t),u=Math.sin(e),l=r*u-i*s,c=i*o-n*u,d=n*s-r*o,h=Math.sqrt(l*l+c*c+d*d),f=n*o+r*s+i*u,m=h&&-Nt(f)/h,p=Math.atan2(h,f);Dn+=m*l,Cn+=m*c,En+=m*d,wn+=p,Sn+=p*(n+(n=o)),Yn+=p*(r+(r=s)),Tn+=p*(i+(i=u)),Gn(n,r,i)}zn.point=function(o,s){t=o,e=s,zn.point=a,o*=Ot;var u=Math.cos(s*=Ot);n=u*Math.cos(o),r=u*Math.sin(o),i=Math.sin(s),Gn(n,r,i)},zn.lineEnd=function(){a(t,e),zn.lineEnd=$n,zn.point=Bn}}function Jn(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function Zn(){return!0}function Xn(t,e,n,r,i){var a=[],o=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e];if(Rn(n,r)){i.lineStart();for(var s=0;s<e;++s)i.point((n=t[s])[0],n[1]);i.lineEnd()}else{var u=new Qn(n,t,null,!0),l=new Qn(n,null,u,!1);u.o=l,a.push(u),o.push(l),l=new Qn(r,null,u=new Qn(r,t,null,!1),!0),u.o=l,a.push(u),o.push(l)}}}),o.sort(e),Kn(a),Kn(o),a.length){for(var s=0,u=n,l=o.length;s<l;++s)o[s].e=u=!u;for(var c,d,h=a[0];;){for(var f=h,m=!0;f.v;)if((f=f.n)===h)return;c=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(m)for(s=0,l=c.length;s<l;++s)i.point((d=c[s])[0],d[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(m)for(s=(c=f.p.z).length-1;s>=0;--s)i.point((d=c[s])[0],d[1]);else r(f.x,f.p.x,-1,i);f=f.p}c=(f=f.o).z,m=!m}while(!f.v);i.lineEnd()}}}function Kn(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function Qn(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function tr(t,e,n,r){return function(i,o){var s,u=e(o),l=i.invert(r[0],r[1]),c={point:d,lineStart:f,lineEnd:m,polygonStart:function(){c.point=b,c.lineStart=M,c.lineEnd=w,s=[],p=[]},polygonEnd:function(){c.point=d,c.lineStart=f,c.lineEnd=m,s=a.merge(s);var t=function(t,e){var n=t[0],r=t[1],i=[Math.sin(n),-Math.cos(n),0],a=0,o=0;On.reset();for(var s=0,u=e.length;s<u;++s){var l=e[s],c=l.length;if(c)for(var d=l[0],h=d[0],f=d[1]/2+Tt/4,m=Math.sin(f),p=Math.cos(f),g=1;;){g===c&&(g=0);var v=(t=l[g])[0],_=t[1]/2+Tt/4,y=Math.sin(_),b=Math.cos(_),M=v-h,w=M>=0?1:-1,x=w*M,k=x>Tt,L=m*y;if(On.add(Math.atan2(L*w*Math.sin(x),p*b+L*Math.cos(x))),a+=k?M+w*Dt:M,k^h>=n^v>=n){var S=Pn(Hn(d),Hn(t));In(S);var Y=Pn(i,S);In(Y);var T=(k^M>=0?-1:1)*Pt(Y[2]);(r>T||r===T&&(S[0]||S[1]))&&(o+=k^M>=0?1:-1)}if(!g++)break;h=v,m=y,p=b,d=t}}return(a<-St||a<St&&On<0)^1&o}(l,p);s.length?(y||(o.polygonStart(),y=!0),Xn(s,rr,t,n,o)):t&&(y||(o.polygonStart(),y=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),y&&(o.polygonEnd(),y=!1),s=p=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function d(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&o.point(e,n)}function h(t,e){var n=i(t,e);u.point(n[0],n[1])}function f(){c.point=h,u.lineStart()}function m(){c.point=d,u.lineEnd()}var p,g,v=nr(),_=e(v),y=!1;function b(t,e){g.push([t,e]);var n=i(t,e);_.point(n[0],n[1])}function M(){_.lineStart(),g=[]}function w(){b(g[0][0],g[0][1]),_.lineEnd();var t,e=_.clean(),n=v.buffer(),r=n.length;if(g.pop(),p.push(g),g=null,r)if(1&e){var i,a=-1;if((r=(t=n[0]).length-1)>0){for(y||(o.polygonStart(),y=!0),o.lineStart();++a<r;)o.point((i=t[a])[0],i[1]);o.lineEnd()}}else r>1&&2&e&&n.push(n.pop().concat(n.shift())),s.push(n.filter(er))}return c}}function er(t){return t.length>1}function nr(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:V,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function rr(t,e){return((t=t.x)[0]<0?t[1]-Et-St:Et-t[1])-((e=e.x)[0]<0?e[1]-Et-St:Et-e[1])}var ir=tr(Zn,function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?Tt:-Tt,u=w(a-n);w(u-Tt)<St?(t.point(n,r=(r+o)/2>0?Et:-Et),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(a,r),e=0):i!==s&&u>=Tt&&(w(n-i)<St&&(n-=i*St),w(a-s)<St&&(a-=s*St),r=function(t,e,n,r){var i,a,o=Math.sin(t-n);return w(o)>St?Math.atan((Math.sin(e)*(a=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=a,r=o),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*Et,r.point(-Tt,i),r.point(0,i),r.point(Tt,i),r.point(Tt,0),r.point(Tt,-i),r.point(0,-i),r.point(-Tt,-i),r.point(-Tt,0),r.point(-Tt,i);else if(w(t[0]-e[0])>St){var a=t[0]<e[0]?Tt:-Tt;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(e[0],e[1])},[-Tt,-Tt/2]);function ar(t,e,n,r){return function(i){var a,o=i.a,s=i.b,u=o.x,l=o.y,c=0,d=1,h=s.x-u,f=s.y-l;if(a=t-u,h||!(a>0)){if(a/=h,h<0){if(a<c)return;a<d&&(d=a)}else if(h>0){if(a>d)return;a>c&&(c=a)}if(a=n-u,h||!(a<0)){if(a/=h,h<0){if(a>d)return;a>c&&(c=a)}else if(h>0){if(a<c)return;a<d&&(d=a)}if(a=e-l,f||!(a>0)){if(a/=f,f<0){if(a<c)return;a<d&&(d=a)}else if(f>0){if(a>d)return;a>c&&(c=a)}if(a=r-l,f||!(a<0)){if(a/=f,f<0){if(a>d)return;a>c&&(c=a)}else if(f>0){if(a<c)return;a<d&&(d=a)}return c>0&&(i.a={x:u+c*h,y:l+c*f}),d<1&&(i.b={x:u+d*h,y:l+d*f}),i}}}}}}var or=1e9;function sr(t,e,n,r){return function(u){var l,c,d,h,f,m,p,g,v,_,y,b=u,M=nr(),w=ar(t,e,n,r),x={point:S,lineStart:function(){x.point=Y,c&&c.push(d=[]);_=!0,v=!1,p=g=NaN},lineEnd:function(){l&&(Y(h,f),m&&v&&M.rejoin(),l.push(M.buffer()));x.point=S,v&&u.lineEnd()},polygonStart:function(){u=M,l=[],c=[],y=!0},polygonEnd:function(){u=b,l=a.merge(l);var e=function(t){for(var e=0,n=c.length,r=t[1],i=0;i<n;++i)for(var a,o=1,s=c[i],u=s.length,l=s[0];o<u;++o)a=s[o],l[1]<=r?a[1]>r&&Ht(l,a,t)>0&&++e:a[1]<=r&&Ht(l,a,t)<0&&--e,l=a;return 0!==e}([t,r]),n=y&&e,i=l.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),k(null,null,1,u),u.lineEnd()),i&&Xn(l,o,e,k,u),u.polygonEnd()),l=c=d=null}};function k(a,o,u,l){var c=0,d=0;if(null==a||(c=i(a,u))!==(d=i(o,u))||s(a,o)<0^u>0)do{l.point(0===c||3===c?t:n,c>1?r:e)}while((c=(c+u+4)%4)!==d);else l.point(o[0],o[1])}function L(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function S(t,e){L(t,e)&&u.point(t,e)}function Y(t,e){var n=L(t=Math.max(-or,Math.min(or,t)),e=Math.max(-or,Math.min(or,e)));if(c&&d.push([t,e]),_)h=t,f=e,m=n,_=!1,n&&(u.lineStart(),u.point(t,e));else if(n&&v)u.point(t,e);else{var r={a:{x:p,y:g},b:{x:t,y:e}};w(r)?(v||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),y=!1):n&&(u.lineStart(),u.point(t,e),y=!1)}p=t,g=e,v=n}return x};function i(r,i){return w(r[0]-t)<St?i>0?0:3:w(r[0]-n)<St?i>0?2:1:w(r[1]-e)<St?i>0?1:0:i>0?3:2}function o(t,e){return s(t.x,e.x)}function s(t,e){var n=i(t,1),r=i(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}}function ur(t){var e=0,n=Tt/3,r=Cr(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Tt/180,n=t[1]*Tt/180):[e/Tt*180,n/Tt*180]},i}function lr(t,e){var n=Math.sin(t),r=(n+Math.sin(e))/2,i=1+n*(2*r-n),a=Math.sqrt(i)/r;function o(t,e){var n=Math.sqrt(i-2*r*Math.sin(e))/r;return[n*Math.sin(t*=r),a-n*Math.cos(t)]}return o.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/r,Pt((i-(t*t+n*n)*r*r)/(2*r))]},o}a.geo.clipExtent=function(){var t,e,n,r,i,a,o={stream:function(t){return i&&(i.valid=!1),(i=a(t)).valid=!0,i},extent:function(s){return arguments.length?(a=sr(t=+s[0][0],e=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),o):[[t,e],[n,r]]}};return o.extent([[0,0],[960,500]])},(a.geo.conicEqualArea=function(){return ur(lr)}).raw=lr,a.geo.albers=function(){return a.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},a.geo.albersUsa=function(){var t,e,n,r,i=a.geo.albers(),o=a.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=a.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,n){t=[e,n]}};function l(i){var a=i[0],o=i[1];return t=null,e(a,o),t||(n(a,o),t)||r(a,o),t}return l.invert=function(t){var e=i.scale(),n=i.translate(),r=(t[0]-n[0])/e,a=(t[1]-n[1])/e;return(a>=.12&&a<.234&&r>=-.425&&r<-.214?o:a>=.166&&a<.234&&r>=-.214&&r<-.115?s:i).invert(t)},l.stream=function(t){var e=i.stream(t),n=o.stream(t),r=s.stream(t);return{point:function(t,i){e.point(t,i),n.point(t,i),r.point(t,i)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},l.precision=function(t){return arguments.length?(i.precision(t),o.precision(t),s.precision(t),l):i.precision()},l.scale=function(t){return arguments.length?(i.scale(t),o.scale(.35*t),s.scale(t),l.translate(i.translate())):i.scale()},l.translate=function(t){if(!arguments.length)return i.translate();var a=i.scale(),c=+t[0],d=+t[1];return e=i.translate(t).clipExtent([[c-.455*a,d-.238*a],[c+.455*a,d+.238*a]]).stream(u).point,n=o.translate([c-.307*a,d+.201*a]).clipExtent([[c-.425*a+St,d+.12*a+St],[c-.214*a-St,d+.234*a-St]]).stream(u).point,r=s.translate([c-.205*a,d+.212*a]).clipExtent([[c-.214*a+St,d+.166*a+St],[c-.115*a-St,d+.234*a-St]]).stream(u).point,l},l.scale(1070)};var cr,dr,hr,fr,mr,pr,gr={point:V,lineStart:V,lineEnd:V,polygonStart:function(){dr=0,gr.lineStart=vr},polygonEnd:function(){gr.lineStart=gr.lineEnd=gr.point=V,cr+=w(dr/2)}};function vr(){var t,e,n,r;function i(t,e){dr+=r*t-n*e,n=t,r=e}gr.point=function(a,o){gr.point=i,t=n=a,e=r=o},gr.lineEnd=function(){i(t,e)}}var _r={point:function(t,e){t<hr&&(hr=t);t>mr&&(mr=t);e<fr&&(fr=e);e>pr&&(pr=e)},lineStart:V,lineEnd:V,polygonStart:V,polygonEnd:V};function yr(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}var br,Mr={point:wr,lineStart:xr,lineEnd:kr,polygonStart:function(){Mr.lineStart=Lr},polygonEnd:function(){Mr.point=wr,Mr.lineStart=xr,Mr.lineEnd=kr}};function wr(t,e){xn+=t,kn+=e,++Ln}function xr(){var t,e;function n(n,r){var i=n-t,a=r-e,o=Math.sqrt(i*i+a*a);Sn+=o*(t+n)/2,Yn+=o*(e+r)/2,Tn+=o,wr(t=n,e=r)}Mr.point=function(r,i){Mr.point=n,wr(t=r,e=i)}}function kr(){Mr.point=wr}function Lr(){var t,e,n,r;function i(t,e){var i=t-n,a=e-r,o=Math.sqrt(i*i+a*a);Sn+=o*(n+t)/2,Yn+=o*(r+e)/2,Tn+=o,Dn+=(o=r*t-n*e)*(n+t),Cn+=o*(r+e),En+=3*o,wr(n=t,r=e)}Mr.point=function(a,o){Mr.point=i,wr(t=n=a,e=r=o)},Mr.lineEnd=function(){i(t,e)}}function Sr(t){var e=.5,n=Math.cos(30*Ot),r=16;function i(e){return(r?function(e){var n,i,o,s,u,l,c,d,h,f,m,p,g={point:v,lineStart:_,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=M},polygonEnd:function(){e.polygonEnd(),g.lineStart=_}};function v(n,r){n=t(n,r),e.point(n[0],n[1])}function _(){d=NaN,g.point=y,e.lineStart()}function y(n,i){var o=Hn([n,i]),s=t(n,i);a(d,h,c,f,m,p,d=s[0],h=s[1],c=n,f=o[0],m=o[1],p=o[2],r,e),e.point(d,h)}function b(){g.point=v,e.lineEnd()}function M(){_(),g.point=w,g.lineEnd=x}function w(t,e){y(n=t,e),i=d,o=h,s=f,u=m,l=p,g.point=y}function x(){a(d,h,c,f,m,p,i,o,n,s,u,l,r,e),g.lineEnd=b,b()}return g}:function(e){return Tr(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})})(e)}function a(r,i,o,s,u,l,c,d,h,f,m,p,g,v){var _=c-r,y=d-i,b=_*_+y*y;if(b>4*e&&g--){var M=s+f,x=u+m,k=l+p,L=Math.sqrt(M*M+x*x+k*k),S=Math.asin(k/=L),Y=w(w(k)-1)<St||w(o-h)<St?(o+h)/2:Math.atan2(x,M),T=t(Y,S),D=T[0],C=T[1],E=D-r,O=C-i,A=y*E-_*O;(A*A/b>e||w((_*E+y*O)/b-.5)>.3||s*f+u*m+l*p<n)&&(a(r,i,o,s,u,l,D,C,Y,M/=L,x/=L,k,g,v),v.point(D,C),a(D,C,Y,M,x,k,c,d,h,f,m,p,g,v))}}return i.precision=function(t){return arguments.length?(r=(e=t*t)>0&&16,i):Math.sqrt(e)},i}function Yr(t){this.stream=t}function Tr(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function Dr(t){return Cr(function(){return t})()}function Cr(t){var e,n,r,i,o,s,u=Sr(function(t,n){return[(t=e(t,n))[0]*l+i,o-t[1]*l]}),l=150,c=480,d=250,h=0,f=0,m=0,p=0,g=0,v=ir,_=H,y=null,b=null;function M(t){return[(t=r(t[0]*Ot,t[1]*Ot))[0]*l+i,o-t[1]*l]}function x(t){return(t=r.invert((t[0]-i)/l,(o-t[1])/l))&&[t[0]*At,t[1]*At]}function k(){r=Jn(n=jr(m,p,g),e);var t=e(h,f);return i=c-t[0]*l,o=d+t[1]*l,L()}function L(){return s&&(s.valid=!1,s=null),M}return M.stream=function(t){return s&&(s.valid=!1),(s=Er(v(n,u(_(t))))).valid=!0,s},M.clipAngle=function(t){return arguments.length?(v=null==t?(y=t,ir):function(t){var e=Math.cos(t),n=e>0,r=w(e)>St;return tr(i,function(t){var e,s,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(d,h){var f,m=[d,h],p=i(d,h),g=n?p?0:o(d,h):p?o(d+(d<0?Tt:-Tt),h):0;if(!e&&(l=u=p)&&t.lineStart(),p!==u&&(f=a(e,m),(Rn(e,f)||Rn(m,f))&&(m[0]+=St,m[1]+=St,p=i(m[0],m[1]))),p!==u)c=0,p?(t.lineStart(),f=a(m,e),t.point(f[0],f[1])):(f=a(e,m),t.point(f[0],f[1]),t.lineEnd()),e=f;else if(r&&e&&n^p){var v;g&s||!(v=a(m,e,!0))||(c=0,n?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!p||e&&Rn(e,m)||t.point(m[0],m[1]),e=m,u=p,s=g},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return c|(l&&u)<<1}}},Fr(t,6*Ot),n?[0,-t]:[-Tt,t-Tt]);function i(t,n){return Math.cos(t)*Math.cos(n)>e}function a(t,n,r){var i=[1,0,0],a=Pn(Hn(t),Hn(n)),o=Nn(a,a),s=a[0],u=o-s*s;if(!u)return!r&&t;var l=e*o/u,c=-e*s/u,d=Pn(i,a),h=Vn(i,l);Fn(h,Vn(a,c));var f=d,m=Nn(h,f),p=Nn(f,f),g=m*m-p*(Nn(h,h)-1);if(!(g<0)){var v=Math.sqrt(g),_=Vn(f,(-m-v)/p);if(Fn(_,h),_=Wn(_),!r)return _;var y,b=t[0],M=n[0],x=t[1],k=n[1];M<b&&(y=b,b=M,M=y);var L=M-b,S=w(L-Tt)<St;if(!S&&k<x&&(y=x,x=k,k=y),S||L<St?S?x+k>0^_[1]<(w(_[0]-b)<St?x:k):x<=_[1]&&_[1]<=k:L>Tt^(b<=_[0]&&_[0]<=M)){var Y=Vn(f,(-m+v)/p);return Fn(Y,h),[_,Wn(Y)]}}}function o(e,r){var i=n?t:Tt-t,a=0;return e<-i?a|=1:e>i&&(a|=2),r<-i?a|=4:r>i&&(a|=8),a}}((y=+t)*Ot),L()):y},M.clipExtent=function(t){return arguments.length?(b=t,_=t?sr(t[0][0],t[0][1],t[1][0],t[1][1]):H,L()):b},M.scale=function(t){return arguments.length?(l=+t,k()):l},M.translate=function(t){return arguments.length?(c=+t[0],d=+t[1],k()):[c,d]},M.center=function(t){return arguments.length?(h=t[0]%360*Ot,f=t[1]%360*Ot,k()):[h*At,f*At]},M.rotate=function(t){return arguments.length?(m=t[0]%360*Ot,p=t[1]%360*Ot,g=t.length>2?t[2]%360*Ot:0,k()):[m*At,p*At,g*At]},a.rebind(M,u,"precision"),function(){return e=t.apply(this,arguments),M.invert=e.invert&&x,k()}}function Er(t){return Tr(t,function(e,n){t.point(e*Ot,n*Ot)})}function Or(t,e){return[t,e]}function Ar(t,e){return[t>Tt?t-Dt:t<-Tt?t+Dt:t,e]}function jr(t,e,n){return t?e||n?Jn(Nr(t),Pr(e,n)):Nr(t):e||n?Pr(e,n):Ar}function Hr(t){return function(e,n){return[(e+=t)>Tt?e-Dt:e<-Tt?e+Dt:e,n]}}function Nr(t){var e=Hr(t);return e.invert=Hr(-t),e}function Pr(t,e){var n=Math.cos(t),r=Math.sin(t),i=Math.cos(e),a=Math.sin(e);function o(t,e){var o=Math.cos(e),s=Math.cos(t)*o,u=Math.sin(t)*o,l=Math.sin(e),c=l*n+s*r;return[Math.atan2(u*i-c*a,s*n-l*r),Pt(c*i+u*a)]}return o.invert=function(t,e){var o=Math.cos(e),s=Math.cos(t)*o,u=Math.sin(t)*o,l=Math.sin(e),c=l*i-u*a;return[Math.atan2(u*i+l*a,s*n+c*r),Pt(c*n-s*r)]},o}function Fr(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,a,o,s){var u=o*e;null!=i?(i=Vr(n,i),a=Vr(n,a),(o>0?i<a:i>a)&&(i+=o*Dt)):(i=t+o*Dt,a=t-.5*u);for(var l,c=i;o>0?c>a:c<a;c-=u)s.point((l=Wn([n,-r*Math.cos(c),-r*Math.sin(c)]))[0],l[1])}}function Vr(t,e){var n=Hn(e);n[0]-=t,In(n);var r=Nt(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-St)%(2*Math.PI)}function Ir(t,e,n){var r=a.range(t,e-St,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function Wr(t,e,n){var r=a.range(t,e-St,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function Rr(t){return t.source}function zr(t){return t.target}a.geo.path=function(){var t,e,n,r,i,o=4.5;function s(t){return t&&("function"==typeof o&&r.pointRadius(+o.apply(this,arguments)),i&&i.valid||(i=n(r)),a.geo.stream(t,i)),r.result()}function u(){return i=null,s}return s.area=function(t){return cr=0,a.geo.stream(t,n(gr)),cr},s.centroid=function(t){return xn=kn=Ln=Sn=Yn=Tn=Dn=Cn=En=0,a.geo.stream(t,n(Mr)),En?[Dn/En,Cn/En]:Tn?[Sn/Tn,Yn/Tn]:Ln?[xn/Ln,kn/Ln]:[NaN,NaN]},s.bounds=function(t){return mr=pr=-(hr=fr=1/0),a.geo.stream(t,n(_r)),[[hr,fr],[mr,pr]]},s.projection=function(e){return arguments.length?(n=(t=e)?e.stream||function(t){var e=Sr(function(e,n){return t([e*At,n*At])});return function(t){return Er(e(t))}}(e):H,u()):t},s.context=function(t){return arguments.length?(r=null==(e=t)?new function(){var t=yr(4.5),e=[],n={point:r,lineStart:function(){n.point=i},lineEnd:o,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=o,n.point=r},pointRadius:function(e){return t=yr(e),n},result:function(){if(e.length){var t=e.join("");return e=[],t}}};function r(n,r){e.push("M",n,",",r,t)}function i(t,r){e.push("M",t,",",r),n.point=a}function a(t,n){e.push("L",t,",",n)}function o(){n.point=r}function s(){e.push("Z")}return n}:new function(t){var e=4.5,n={point:r,lineStart:function(){n.point=i},lineEnd:o,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=o,n.point=r},pointRadius:function(t){return e=t,n},result:V};function r(n,r){t.moveTo(n+e,r),t.arc(n,r,e,0,Dt)}function i(e,r){t.moveTo(e,r),n.point=a}function a(e,n){t.lineTo(e,n)}function o(){n.point=r}function s(){t.closePath()}return n}(t),"function"!=typeof o&&r.pointRadius(o),u()):e},s.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(r.pointRadius(+t),+t),s):o},s.projection(a.geo.albersUsa()).context(null)},a.geo.transform=function(t){return{stream:function(e){var n=new Yr(e);for(var r in t)n[r]=t[r];return n}}},Yr.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},a.geo.projection=Dr,a.geo.projectionMutator=Cr,(a.geo.equirectangular=function(){return Dr(Or)}).raw=Or.invert=Or,a.geo.rotation=function(t){function e(e){return(e=t(e[0]*Ot,e[1]*Ot))[0]*=At,e[1]*=At,e}return t=jr(t[0]%360*Ot,t[1]*Ot,t.length>2?t[2]*Ot:0),e.invert=function(e){return(e=t.invert(e[0]*Ot,e[1]*Ot))[0]*=At,e[1]*=At,e},e},Ar.invert=Or,a.geo.circle=function(){var t,e,n=[0,0],r=6;function i(){var t="function"==typeof n?n.apply(this,arguments):n,r=jr(-t[0]*Ot,-t[1]*Ot,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=r(t,e)),t[0]*=At,t[1]*=At}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(t){return arguments.length?(n=t,i):n},i.angle=function(n){return arguments.length?(e=Fr((t=+n)*Ot,r*Ot),i):t},i.precision=function(n){return arguments.length?(e=Fr(t*Ot,(r=+n)*Ot),i):r},i.angle(90)},a.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Ot,i=t[1]*Ot,a=e[1]*Ot,o=Math.sin(r),s=Math.cos(r),u=Math.sin(i),l=Math.cos(i),c=Math.sin(a),d=Math.cos(a);return Math.atan2(Math.sqrt((n=d*o)*n+(n=l*c-u*d*s)*n),u*c+l*d*s)},a.geo.graticule=function(){var t,e,n,r,i,o,s,u,l,c,d,h,f=10,m=f,p=90,g=360,v=2.5;function _(){return{type:"MultiLineString",coordinates:y()}}function y(){return a.range(Math.ceil(r/p)*p,n,p).map(d).concat(a.range(Math.ceil(u/g)*g,s,g).map(h)).concat(a.range(Math.ceil(e/f)*f,t,f).filter(function(t){return w(t%p)>St}).map(l)).concat(a.range(Math.ceil(o/m)*m,i,m).filter(function(t){return w(t%g)>St}).map(c))}return _.lines=function(){return y().map(function(t){return{type:"LineString",coordinates:t}})},_.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(h(s).slice(1),d(n).reverse().slice(1),h(u).reverse().slice(1))]}},_.extent=function(t){return arguments.length?_.majorExtent(t).minorExtent(t):_.minorExtent()},_.majorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],s=+t[1][1],r>n&&(t=r,r=n,n=t),u>s&&(t=u,u=s,s=t),_.precision(v)):[[r,u],[n,s]]},_.minorExtent=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),o>i&&(n=o,o=i,i=n),_.precision(v)):[[e,o],[t,i]]},_.step=function(t){return arguments.length?_.majorStep(t).minorStep(t):_.minorStep()},_.majorStep=function(t){return arguments.length?(p=+t[0],g=+t[1],_):[p,g]},_.minorStep=function(t){return arguments.length?(f=+t[0],m=+t[1],_):[f,m]},_.precision=function(a){return arguments.length?(v=+a,l=Ir(o,i,90),c=Wr(e,t,v),d=Ir(u,s,90),h=Wr(r,n,v),_):v},_.majorExtent([[-180,-90+St],[180,90-St]]).minorExtent([[-180,-80-St],[180,80+St]])},a.geo.greatArc=function(){var t,e,n=Rr,r=zr;function i(){return{type:"LineString",coordinates:[t||n.apply(this,arguments),e||r.apply(this,arguments)]}}return i.distance=function(){return a.geo.distance(t||n.apply(this,arguments),e||r.apply(this,arguments))},i.source=function(e){return arguments.length?(n=e,t="function"==typeof e?null:e,i):n},i.target=function(t){return arguments.length?(r=t,e="function"==typeof t?null:t,i):r},i.precision=function(){return arguments.length?i:0},i},a.geo.interpolate=function(t,e){return function(t,e,n,r){var i=Math.cos(e),a=Math.sin(e),o=Math.cos(r),s=Math.sin(r),u=i*Math.cos(t),l=i*Math.sin(t),c=o*Math.cos(n),d=o*Math.sin(n),h=2*Math.asin(Math.sqrt(Vt(r-e)+i*o*Vt(n-t))),f=1/Math.sin(h),m=h?function(t){var e=Math.sin(t*=h)*f,n=Math.sin(h-t)*f,r=n*u+e*c,i=n*l+e*d,o=n*a+e*s;return[Math.atan2(i,r)*At,Math.atan2(o,Math.sqrt(r*r+i*i))*At]}:function(){return[t*At,e*At]};return m.distance=h,m}(t[0]*Ot,t[1]*Ot,e[0]*Ot,e[1]*Ot)},a.geo.length=function(t){return br=0,a.geo.stream(t,Br),br};var Br={sphere:V,point:V,lineStart:function(){var t,e,n;function r(r,i){var a=Math.sin(i*=Ot),o=Math.cos(i),s=w((r*=Ot)-t),u=Math.cos(s);br+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=n*a-e*o*u)*s),e*a+n*o*u),t=r,e=a,n=o}Br.point=function(i,a){t=i*Ot,e=Math.sin(a*=Ot),n=Math.cos(a),Br.point=r},Br.lineEnd=function(){Br.point=Br.lineEnd=V}},lineEnd:V,polygonStart:V,polygonEnd:V};function Gr(t,e){function n(e,n){var r=Math.cos(e),i=Math.cos(n),a=t(r*i);return[a*i*Math.sin(e),a*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),i=e(r),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,r*o),Math.asin(r&&n*a/r)]},n}var Ur=Gr(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(a.geo.azimuthalEqualArea=function(){return Dr(Ur)}).raw=Ur;var $r=Gr(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},H);function qr(t,e){var n=Math.cos(t),r=function(t){return Math.tan(Tt/4+t/2)},i=t===e?Math.sin(t):Math.log(n/Math.cos(e))/Math.log(r(e)/r(t)),a=n*Math.pow(r(t),i)/i;if(!i)return Xr;function o(t,e){a>0?e<-Et+St&&(e=-Et+St):e>Et-St&&(e=Et-St);var n=a/Math.pow(r(e),i);return[n*Math.sin(i*t),a-n*Math.cos(i*t)]}return o.invert=function(t,e){var n=a-e,r=jt(i)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/i,2*Math.atan(Math.pow(a/r,1/i))-Et]},o}function Jr(t,e){var n=Math.cos(t),r=t===e?Math.sin(t):(n-Math.cos(e))/(e-t),i=n/r+t;if(w(r)<St)return Or;function a(t,e){var n=i-e;return[n*Math.sin(r*t),i-n*Math.cos(r*t)]}return a.invert=function(t,e){var n=i-e;return[Math.atan2(t,n)/r,i-jt(r)*Math.sqrt(t*t+n*n)]},a}(a.geo.azimuthalEquidistant=function(){return Dr($r)}).raw=$r,(a.geo.conicConformal=function(){return ur(qr)}).raw=qr,(a.geo.conicEquidistant=function(){return ur(Jr)}).raw=Jr;var Zr=Gr(function(t){return 1/t},Math.atan);function Xr(t,e){return[t,Math.log(Math.tan(Tt/4+e/2))]}function Kr(t){var e,n=Dr(t),r=n.scale,i=n.translate,a=n.clipExtent;return n.scale=function(){var t=r.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.translate=function(){var t=i.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.clipExtent=function(t){var o=a.apply(n,arguments);if(o===n){if(e=null==t){var s=Tt*r(),u=i();a([[u[0]-s,u[1]-s],[u[0]+s,u[1]+s]])}}else e&&(o=null);return o},n.clipExtent(null)}(a.geo.gnomonic=function(){return Dr(Zr)}).raw=Zr,Xr.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Et]},(a.geo.mercator=function(){return Kr(Xr)}).raw=Xr;var Qr=Gr(function(){return 1},Math.asin);(a.geo.orthographic=function(){return Dr(Qr)}).raw=Qr;var ti=Gr(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});function ei(t,e){return[Math.log(Math.tan(Tt/4+e/2)),-t]}function ni(t){return t[0]}function ri(t){return t[1]}function ii(t){for(var e=t.length,n=[0,1],r=2,i=2;i<e;i++){for(;r>1&&Ht(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function ai(t,e){return t[0]-e[0]||t[1]-e[1]}(a.geo.stereographic=function(){return Dr(ti)}).raw=ti,ei.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Et]},(a.geo.transverseMercator=function(){var t=Kr(ei),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90])}).raw=ei,a.geom={},a.geom.hull=function(t){var e=ni,n=ri;if(arguments.length)return r(t);function r(t){if(t.length<3)return[];var r,i=ye(e),a=ye(n),o=t.length,s=[],u=[];for(r=0;r<o;r++)s.push([+i.call(this,t[r],r),+a.call(this,t[r],r),r]);for(s.sort(ai),r=0;r<o;r++)u.push([s[r][0],-s[r][1]]);var l=ii(s),c=ii(u),d=c[0]===l[0],h=c[c.length-1]===l[l.length-1],f=[];for(r=l.length-1;r>=0;--r)f.push(t[s[l[r]][2]]);for(r=+d;r<c.length-h;++r)f.push(t[s[c[r]][2]]);return f}return r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r},a.geom.polygon=function(t){return U(t,oi),t};var oi=a.geom.polygon.prototype=[];function si(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function ui(t,e,n,r){var i=t[0],a=n[0],o=e[0]-i,s=r[0]-a,u=t[1],l=n[1],c=e[1]-u,d=r[1]-l,h=(s*(u-l)-d*(i-a))/(d*o-s*c);return[i+h*o,u+h*c]}function li(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}oi.area=function(){for(var t,e=-1,n=this.length,r=this[n-1],i=0;++e<n;)t=r,r=this[e],i+=t[1]*r[0]-t[0]*r[1];return.5*i},oi.centroid=function(t){var e,n,r=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)e=s,s=this[r],n=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*n,o+=(e[1]+s[1])*n;return[a*t,o*t]},oi.clip=function(t){for(var e,n,r,i,a,o,s=li(t),u=-1,l=this.length-li(this),c=this[l-1];++u<l;){for(e=t.slice(),t.length=0,i=this[u],a=e[(r=e.length-s)-1],n=-1;++n<r;)si(o=e[n],c,i)?(si(a,c,i)||t.push(ui(a,o,c,i)),t.push(o)):si(a,c,i)&&t.push(ui(a,o,c,i)),a=o;s&&t.push(t[0]),c=i}return t};var ci,di,hi,fi,mi,pi=[],gi=[];function vi(t){var e=pi.pop()||new function(){ji(this),this.edge=this.site=this.circle=null};return e.site=t,e}function _i(t){Si(t),hi.remove(t),pi.push(t),ji(t)}function yi(t){var e=t.circle,n=e.x,r=e.cy,i={x:n,y:r},a=t.P,o=t.N,s=[t];_i(t);for(var u=a;u.circle&&w(n-u.circle.x)<St&&w(r-u.circle.cy)<St;)a=u.P,s.unshift(u),_i(u),u=a;s.unshift(u),Si(u);for(var l=o;l.circle&&w(n-l.circle.x)<St&&w(r-l.circle.cy)<St;)o=l.N,s.push(l),_i(l),l=o;s.push(l),Si(l);var c,d=s.length;for(c=1;c<d;++c)l=s[c],u=s[c-1],Ei(l.edge,u.site,l.site,i);u=s[0],(l=s[d-1]).edge=Di(u.site,l.site,null,i),Li(u),Li(l)}function bi(t){for(var e,n,r,i,a=t.x,o=t.y,s=hi._;s;)if((r=Mi(s,o)-a)>St)s=s.L;else{if(!((i=a-wi(s,o))>St)){r>-St?(e=s.P,n=s):i>-St?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}var u=vi(t);if(hi.insert(e,u),e||n){if(e===n)return Si(e),n=vi(e.site),hi.insert(u,n),u.edge=n.edge=Di(e.site,u.site),Li(e),void Li(n);if(n){Si(e),Si(n);var l=e.site,c=l.x,d=l.y,h=t.x-c,f=t.y-d,m=n.site,p=m.x-c,g=m.y-d,v=2*(h*g-f*p),_=h*h+f*f,y=p*p+g*g,b={x:(g*_-f*y)/v+c,y:(h*y-p*_)/v+d};Ei(n.edge,l,m,b),u.edge=Di(l,t,null,b),n.edge=Di(t,m,null,b),Li(e),Li(n)}else u.edge=Di(e.site,u.site)}}function Mi(t,e){var n=t.site,r=n.x,i=n.y,a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var s=(n=o.site).x,u=n.y,l=u-e;if(!l)return s;var c=s-r,d=1/a-1/l,h=c/l;return d?(-h+Math.sqrt(h*h-2*d*(c*c/(-2*l)-u+l/2+i-a/2)))/d+r:(r+s)/2}function wi(t,e){var n=t.N;if(n)return Mi(n,e);var r=t.site;return r.y===e?r.x:1/0}function xi(t){this.site=t,this.edges=[]}function ki(t,e){return e.angle-t.angle}function Li(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,a=n.site;if(r!==a){var o=i.x,s=i.y,u=r.x-o,l=r.y-s,c=a.x-o,d=2*(u*(g=a.y-s)-l*c);if(!(d>=-Yt)){var h=u*u+l*l,f=c*c+g*g,m=(g*h-l*f)/d,p=(u*f-c*h)/d,g=p+s,v=gi.pop()||new function(){ji(this),this.x=this.y=this.arc=this.site=this.cy=null};v.arc=t,v.site=i,v.x=m+o,v.y=g+Math.sqrt(m*m+p*p),v.cy=g,t.circle=v;for(var _=null,y=mi._;y;)if(v.y<y.y||v.y===y.y&&v.x<=y.x){if(!y.L){_=y.P;break}y=y.L}else{if(!y.R){_=y;break}y=y.R}mi.insert(_,v),_||(fi=v)}}}}function Si(t){var e=t.circle;e&&(e.P||(fi=e.N),mi.remove(e),gi.push(e),ji(e),t.circle=null)}function Yi(t,e){var n=t.b;if(n)return!0;var r,i,a=t.a,o=e[0][0],s=e[1][0],u=e[0][1],l=e[1][1],c=t.l,d=t.r,h=c.x,f=c.y,m=d.x,p=d.y,g=(h+m)/2,v=(f+p)/2;if(p===f){if(g<o||g>=s)return;if(h>m){if(a){if(a.y>=l)return}else a={x:g,y:u};n={x:g,y:l}}else{if(a){if(a.y<u)return}else a={x:g,y:l};n={x:g,y:u}}}else if(i=v-(r=(h-m)/(p-f))*g,r<-1||r>1)if(h>m){if(a){if(a.y>=l)return}else a={x:(u-i)/r,y:u};n={x:(l-i)/r,y:l}}else{if(a){if(a.y<u)return}else a={x:(l-i)/r,y:l};n={x:(u-i)/r,y:u}}else if(f<p){if(a){if(a.x>=s)return}else a={x:o,y:r*o+i};n={x:s,y:r*s+i}}else{if(a){if(a.x<o)return}else a={x:s,y:r*s+i};n={x:o,y:r*o+i}}return t.a=a,t.b=n,!0}function Ti(t,e){this.l=t,this.r=e,this.a=this.b=null}function Di(t,e,n,r){var i=new Ti(t,e);return ci.push(i),n&&Ei(i,t,e,n),r&&Ei(i,e,t,r),di[t.i].edges.push(new Oi(i,t,e)),di[e.i].edges.push(new Oi(i,e,t)),i}function Ci(t,e,n){var r=new Ti(t,null);return r.a=e,r.b=n,ci.push(r),r}function Ei(t,e,n,r){t.a||t.b?t.l===n?t.b=r:t.a=r:(t.a=r,t.l=e,t.r=n)}function Oi(t,e,n){var r=t.a,i=t.b;this.edge=t,this.site=e,this.angle=n?Math.atan2(n.y-e.y,n.x-e.x):t.l===e?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function Ai(){this._=null}function ji(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Hi(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Ni(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Pi(t){for(;t.L;)t=t.L;return t}function Fi(t,e){var n,r,i,a=t.sort(Vi).pop();for(ci=[],di=new Array(t.length),hi=new Ai,mi=new Ai;;)if(i=fi,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))a.x===n&&a.y===r||(di[a.i]=new xi(a),bi(a),n=a.x,r=a.y),a=t.pop();else{if(!i)break;yi(i.arc)}e&&(function(t){for(var e,n=ci,r=ar(t[0][0],t[0][1],t[1][0],t[1][1]),i=n.length;i--;)(!Yi(e=n[i],t)||!r(e)||w(e.a.x-e.b.x)<St&&w(e.a.y-e.b.y)<St)&&(e.a=e.b=null,n.splice(i,1))}(e),function(t){for(var e,n,r,i,a,o,s,u,l,c,d=t[0][0],h=t[1][0],f=t[0][1],m=t[1][1],p=di,g=p.length;g--;)if((a=p[g])&&a.prepare())for(u=(s=a.edges).length,o=0;o<u;)r=(c=s[o].end()).x,i=c.y,e=(l=s[++o%u].start()).x,n=l.y,(w(r-e)>St||w(i-n)>St)&&(s.splice(o,0,new Oi(Ci(a.site,c,w(r-d)<St&&m-i>St?{x:d,y:w(e-d)<St?n:m}:w(i-m)<St&&h-r>St?{x:w(n-m)<St?e:h,y:m}:w(r-h)<St&&i-f>St?{x:h,y:w(e-h)<St?n:f}:w(i-f)<St&&r-d>St?{x:w(n-f)<St?e:d,y:f}:null),a.site,null)),++u)}(e));var o={cells:di,edges:ci};return hi=mi=ci=di=null,o}function Vi(t,e){return e.y-t.y||e.x-t.x}xi.prototype.prepare=function(){for(var t,e=this.edges,n=e.length;n--;)(t=e[n].edge).b&&t.a||e.splice(n,1);return e.sort(ki),e.length},Oi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Ai.prototype={insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=Pi(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(Hi(this,n),n=(t=n).U),n.C=!1,r.C=!0,Ni(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(Ni(this,n),n=(t=n).U),n.C=!1,r.C=!0,Hi(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,a=t.L,o=t.R;if(n=a?o?Pi(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,Hi(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Ni(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Hi(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,Ni(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Hi(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Ni(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},a.geom.voronoi=function(t){var e=ni,n=ri,r=e,i=n,a=Ii;if(t)return o(t);function o(t){var e=new Array(t.length),n=a[0][0],r=a[0][1],i=a[1][0],o=a[1][1];return Fi(s(t),a).cells.forEach(function(a,s){var u=a.edges,l=a.site;(e[s]=u.length?u.map(function(t){var e=t.start();return[e.x,e.y]}):l.x>=n&&l.x<=i&&l.y>=r&&l.y<=o?[[n,o],[i,o],[i,r],[n,r]]:[]).point=t[s]}),e}function s(t){return t.map(function(t,e){return{x:Math.round(r(t,e)/St)*St,y:Math.round(i(t,e)/St)*St,i:e}})}return o.links=function(t){return Fi(s(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},o.triangles=function(t){var e=[];return Fi(s(t)).cells.forEach(function(n,r){for(var i,a=n.site,o=n.edges.sort(ki),s=-1,u=o.length,l=o[u-1].edge,c=l.l===a?l.r:l.l;++s<u;)l,i=c,c=(l=o[s].edge).l===a?l.r:l.l,r<i.i&&r<c.i&&Wi(a,i,c)<0&&e.push([t[r],t[i.i],t[c.i]])}),e},o.x=function(t){return arguments.length?(r=ye(e=t),o):e},o.y=function(t){return arguments.length?(i=ye(n=t),o):n},o.clipExtent=function(t){return arguments.length?(a=null==t?Ii:t,o):a===Ii?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&&[[0,0],t]):a===Ii?null:a&&a[1]},o};var Ii=[[-1e6,-1e6],[1e6,1e6]];function Wi(t,e,n){return(t.x-n.x)*(e.y-t.y)-(t.x-e.x)*(n.y-t.y)}function Ri(t){return t.x}function zi(t){return t.y}function Bi(t,e){t=a.rgb(t),e=a.rgb(e);var n=t.r,r=t.g,i=t.b,o=e.r-n,s=e.g-r,u=e.b-i;return function(t){return"#"+he(Math.round(n+o*t))+he(Math.round(r+s*t))+he(Math.round(i+u*t))}}function Gi(t,e){var n,r={},i={};for(n in t)n in e?r[n]=Zi(t[n],e[n]):i[n]=t[n];for(n in e)n in t||(i[n]=e[n]);return function(t){for(n in r)i[n]=r[n](t);return i}}function Ui(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function $i(t,e){var n,r,i,a=qi.lastIndex=Ji.lastIndex=0,o=-1,s=[],u=[];for(t+="",e+="";(n=qi.exec(t))&&(r=Ji.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:Ui(n,r)})),a=Ji.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?(e=u[0].x,function(t){return e(t)+""}):function(){return e}:(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}a.geom.delaunay=function(t){return a.geom.voronoi().triangles(t)},a.geom.quadtree=function(t,e,n,r,i){var a,o=ni,s=ri;if(a=arguments.length)return o=Ri,s=zi,3===a&&(i=n,r=e,n=e=0),u(t);function u(t){var u,l,c,d,h,f,m,p,g,v=ye(o),_=ye(s);if(null!=e)f=e,m=n,p=r,g=i;else if(p=g=-(f=m=1/0),l=[],c=[],h=t.length,a)for(d=0;d<h;++d)(u=t[d]).x<f&&(f=u.x),u.y<m&&(m=u.y),u.x>p&&(p=u.x),u.y>g&&(g=u.y),l.push(u.x),c.push(u.y);else for(d=0;d<h;++d){var y=+v(u=t[d],d),b=+_(u,d);y<f&&(f=y),b<m&&(m=b),y>p&&(p=y),b>g&&(g=b),l.push(y),c.push(b)}var M=p-f,x=g-m;function k(t,e,n,r,i,a,o,s){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var u=t.x,l=t.y;if(null!=u)if(w(u-n)+w(l-r)<.01)L(t,e,n,r,i,a,o,s);else{var c=t.point;t.x=t.y=t.point=null,L(t,c,u,l,i,a,o,s),L(t,e,n,r,i,a,o,s)}else t.x=n,t.y=r,t.point=e}else L(t,e,n,r,i,a,o,s)}function L(t,e,n,r,i,a,o,s){var u=.5*(i+o),l=.5*(a+s),c=n>=u,d=r>=l,h=d<<1|c;t.leaf=!1,t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(S,t,+v(t,++d),+_(t,d),f,m,p,g)}}),c?i=u:o=u,d?a=l:s=l,k(t,e,n,r,i,a,o,s)}M>x?g=m+M:p=f+x;var S={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(S,t,+v(t,++d),+_(t,d),f,m,p,g)}};if(S.visit=function(t){!function t(e,n,r,i,a,o){if(!e(n,r,i,a,o)){var s=.5*(r+a),u=.5*(i+o),l=n.nodes;l[0]&&t(e,l[0],r,i,s,u),l[1]&&t(e,l[1],s,i,a,u),l[2]&&t(e,l[2],r,u,s,o),l[3]&&t(e,l[3],s,u,a,o)}}(t,S,f,m,p,g)},S.find=function(t){return function(t,e,n,r,i,a,o){var s,u=1/0;return function t(l,c,d,h,f){if(!(c>a||d>o||h<r||f<i)){if(m=l.point){var m,p=e-l.x,g=n-l.y,v=p*p+g*g;if(v<u){var _=Math.sqrt(u=v);r=e-_,i=n-_,a=e+_,o=n+_,s=m}}for(var y=l.nodes,b=.5*(c+h),M=.5*(d+f),w=(n>=M)<<1|e>=b,x=w+4;w<x;++w)if(l=y[3&w])switch(3&w){case 0:t(l,c,d,b,M);break;case 1:t(l,b,d,h,M);break;case 2:t(l,c,M,b,f);break;case 3:t(l,b,M,h,f)}}}(t,r,i,a,o),s}(S,t[0],t[1],f,m,p,g)},d=-1,null==e){for(;++d<h;)k(S,t[d],l[d],c[d],f,m,p,g);--d}else t.forEach(S.add);return l=c=t=u=null,S}return u.x=function(t){return arguments.length?(o=t,u):o},u.y=function(t){return arguments.length?(s=t,u):s},u.extent=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),u):null==e?null:[[e,n],[r,i]]},u.size=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=n=0,r=+t[0],i=+t[1]),u):null==e?null:[r-e,i-n]},u},a.interpolateRgb=Bi,a.interpolateObject=Gi,a.interpolateNumber=Ui,a.interpolateString=$i;var qi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ji=new RegExp(qi.source,"g");function Zi(t,e){for(var n,r=a.interpolators.length;--r>=0&&!(n=a.interpolators[r](t,e)););return n}function Xi(t,e){var n,r=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(n=0;n<s;++n)r.push(Zi(t[n],e[n]));for(;n<a;++n)i[n]=t[n];for(;n<o;++n)i[n]=e[n];return function(t){for(n=0;n<s;++n)i[n]=r[n](t);return i}}a.interpolate=Zi,a.interpolators=[function(t,e){var n=typeof e;return("string"===n?_e.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?Bi:$i:e instanceof Bt?Bi:Array.isArray(e)?Xi:"object"===n&&isNaN(e)?Gi:Ui)(t,e)}],a.interpolateArray=Xi;var Ki=function(){return H},Qi=a.map({linear:Ki,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return ra},cubic:function(){return ia},sin:function(){return oa},exp:function(){return sa},circle:function(){return ua},elastic:function(t,e){var n;arguments.length<2&&(e=.45);arguments.length?n=e/Dt*Math.asin(1/t):(t=1,n=e/4);return function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*Dt/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return la}}),ta=a.map({in:H,out:ea,"in-out":na,"out-in":function(t){return na(ea(t))}});function ea(t){return function(e){return 1-t(1-e)}}function na(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function ra(t){return t*t}function ia(t){return t*t*t}function aa(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function oa(t){return 1-Math.cos(t*Et)}function sa(t){return Math.pow(2,10*(t-1))}function ua(t){return 1-Math.sqrt(1-t*t)}function la(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function ca(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function da(t){var e=[t.a,t.b],n=[t.c,t.d],r=fa(e),i=ha(e,n),a=fa(function(t,e,n){return t[0]+=n*e[0],t[1]+=n*e[1],t}(n,e,-i))||0;e[0]*n[1]<n[0]*e[1]&&(e[0]*=-1,e[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(e[1],e[0]):Math.atan2(-n[0],n[1]))*At,this.translate=[t.e,t.f],this.scale=[r,a],this.skew=a?Math.atan2(i,a)*At:0}function ha(t,e){return t[0]*e[0]+t[1]*e[1]}function fa(t){var e=Math.sqrt(ha(t,t));return e&&(t[0]/=e,t[1]/=e),e}a.ease=function(t){var e=t.indexOf("-"),n=e>=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=Qi.get(n)||Ki,function(t){return function(e){return e<=0?0:e>=1?1:t(e)}}((r=ta.get(r)||H)(n.apply(null,o.call(arguments,1))))},a.interpolateHcl=function(t,e){t=a.hcl(t),e=a.hcl(e);var n=t.h,r=t.c,i=t.l,o=e.h-n,s=e.c-r,u=e.l-i;isNaN(s)&&(s=0,r=isNaN(r)?e.c:r);isNaN(o)?(o=0,n=isNaN(n)?e.h:n):o>180?o-=360:o<-180&&(o+=360);return function(t){return Zt(n+o*t,r+s*t,i+u*t)+""}},a.interpolateHsl=function(t,e){t=a.hsl(t),e=a.hsl(e);var n=t.h,r=t.s,i=t.l,o=e.h-n,s=e.s-r,u=e.l-i;isNaN(s)&&(s=0,r=isNaN(r)?e.s:r);isNaN(o)?(o=0,n=isNaN(n)?e.h:n):o>180?o-=360:o<-180&&(o+=360);return function(t){return $t(n+o*t,r+s*t,i+u*t)+""}},a.interpolateLab=function(t,e){t=a.lab(t),e=a.lab(e);var n=t.l,r=t.a,i=t.b,o=e.l-n,s=e.a-r,u=e.b-i;return function(t){return re(n+o*t,r+s*t,i+u*t)+""}},a.interpolateRound=ca,a.transform=function(t){var e=u.createElementNS(a.ns.prefix.svg,"g");return(a.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new da(n?n.matrix:ma)})(t)},da.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ma={a:1,b:0,c:0,d:1,e:0,f:0};function pa(t){return t.length?t.pop()+",":""}function ga(t,e){var n=[],r=[];return t=a.transform(t),e=a.transform(e),function(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:Ui(t[0],e[0])},{i:i-2,x:Ui(t[1],e[1])})}else(e[0]||e[1])&&n.push("translate("+e+")")}(t.translate,e.translate,n,r),function(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(pa(n)+"rotate(",null,")")-2,x:Ui(t,e)})):e&&n.push(pa(n)+"rotate("+e+")")}(t.rotate,e.rotate,n,r),function(t,e,n,r){t!==e?r.push({i:n.push(pa(n)+"skewX(",null,")")-2,x:Ui(t,e)}):e&&n.push(pa(n)+"skewX("+e+")")}(t.skew,e.skew,n,r),function(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push(pa(n)+"scale(",null,",",null,")");r.push({i:i-4,x:Ui(t[0],e[0])},{i:i-2,x:Ui(t[1],e[1])})}else 1===e[0]&&1===e[1]||n.push(pa(n)+"scale("+e+")")}(t.scale,e.scale,n,r),t=e=null,function(t){for(var e,i=-1,a=r.length;++i<a;)n[(e=r[i]).i]=e.x(t);return n.join("")}}function va(t,e){return e=(e-=t=+t)||1/e,function(n){return(n-t)/e}}function _a(t,e){return e=(e-=t=+t)||1/e,function(n){return Math.max(0,Math.min(1,(n-t)/e))}}function ya(t){for(var e=t.source,n=t.target,r=function(t,e){if(t===e)return t;var n=ba(t),r=ba(e),i=n.pop(),a=r.pop(),o=null;for(;i===a;)o=i,i=n.pop(),a=r.pop();return o}(e,n),i=[e];e!==r;)e=e.parent,i.push(e);for(var a=i.length;n!==r;)i.splice(a,0,n),n=n.parent;return i}function ba(t){for(var e=[],n=t.parent;null!=n;)e.push(t),t=n,n=n.parent;return e.push(t),e}function Ma(t){t.fixed|=2}function wa(t){t.fixed&=-7}function xa(t){t.fixed|=4,t.px=t.x,t.py=t.y}function ka(t){t.fixed&=-5}a.interpolateTransform=ga,a.layout={},a.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n<r;)e.push(ya(t[n]));return e}},a.layout.chord=function(){var t,e,n,r,i,o,s,u={},l=0;function c(){var u,c,h,f,m,p={},g=[],v=a.range(r),_=[];for(t=[],e=[],u=0,f=-1;++f<r;){for(c=0,m=-1;++m<r;)c+=n[f][m];g.push(c),_.push(a.range(r)),u+=c}for(i&&v.sort(function(t,e){return i(g[t],g[e])}),o&&_.forEach(function(t,e){t.sort(function(t,r){return o(n[e][t],n[e][r])})}),u=(Dt-l*r)/u,c=0,f=-1;++f<r;){for(h=c,m=-1;++m<r;){var y=v[f],b=_[y][m],M=n[y][b],w=c,x=c+=M*u;p[y+"-"+b]={index:y,subindex:b,startAngle:w,endAngle:x,value:M}}e[y]={index:y,startAngle:h,endAngle:c,value:g[y]},c+=l}for(f=-1;++f<r;)for(m=f-1;++m<r;){var k=p[f+"-"+m],L=p[m+"-"+f];(k.value||L.value)&&t.push(k.value<L.value?{source:L,target:k}:{source:k,target:L})}s&&d()}function d(){t.sort(function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}return u.matrix=function(i){return arguments.length?(r=(n=i)&&n.length,t=e=null,u):n},u.padding=function(n){return arguments.length?(l=n,t=e=null,u):l},u.sortGroups=function(n){return arguments.length?(i=n,t=e=null,u):i},u.sortSubgroups=function(e){return arguments.length?(o=e,t=null,u):o},u.sortChords=function(e){return arguments.length?(s=e,t&&d(),u):s},u.chords=function(){return t||c(),t},u.groups=function(){return e||c(),e},u},a.layout.force=function(){var t,e,n,r,i,o,s={},u=a.dispatch("start","tick","end"),l=[1,1],c=.9,d=La,h=Sa,f=-30,m=Ya,p=.1,g=.64,v=[],_=[];function y(t){return function(e,n,r,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-n,u=a*a+o*o;if(s*s/g<u){if(u<m){var l=e.charge/u;t.px-=a*l,t.py-=o*l}return!0}if(e.point&&u&&u<m){l=e.pointCharge/u;t.px-=a*l,t.py-=o*l}}return!e.charge}}function b(t){t.px=a.event.x,t.py=a.event.y,s.resume()}return s.tick=function(){if((n*=.99)<.005)return t=null,u.end({type:"end",alpha:n=0}),!0;var e,s,d,h,m,g,b,M,w,x=v.length,k=_.length;for(s=0;s<k;++s)h=(d=_[s]).source,(g=(M=(m=d.target).x-h.x)*M+(w=m.y-h.y)*w)&&(M*=g=n*i[s]*((g=Math.sqrt(g))-r[s])/g,w*=g,m.x-=M*(b=h.weight+m.weight?h.weight/(h.weight+m.weight):.5),m.y-=w*b,h.x+=M*(b=1-b),h.y+=w*b);if((b=n*p)&&(M=l[0]/2,w=l[1]/2,s=-1,b))for(;++s<x;)(d=v[s]).x+=(M-d.x)*b,d.y+=(w-d.y)*b;if(f)for(!function t(e,n,r){var i=0,a=0;e.charge=0;if(!e.leaf)for(var o,s=e.nodes,u=s.length,l=-1;++l<u;)null!=(o=s[l])&&(t(o,n,r),e.charge+=o.charge,i+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var c=n*r[e.point.index];e.charge+=e.pointCharge=c,i+=c*e.point.x,a+=c*e.point.y}e.cx=i/e.charge;e.cy=a/e.charge}(e=a.geom.quadtree(v),n,o),s=-1;++s<x;)(d=v[s]).fixed||e.visit(y(d));for(s=-1;++s<x;)(d=v[s]).fixed?(d.x=d.px,d.y=d.py):(d.x-=(d.px-(d.px=d.x))*c,d.y-=(d.py-(d.py=d.y))*c);u.tick({type:"tick",alpha:n})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(_=t,s):_},s.size=function(t){return arguments.length?(l=t,s):l},s.linkDistance=function(t){return arguments.length?(d="function"==typeof t?t:+t,s):d},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h="function"==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(c=+t,s):c},s.charge=function(t){return arguments.length?(f="function"==typeof t?t:+t,s):f},s.chargeDistance=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.gravity=function(t){return arguments.length?(p=+t,s):p},s.theta=function(t){return arguments.length?(g=t*t,s):Math.sqrt(g)},s.alpha=function(e){return arguments.length?(e=+e,n?e>0?n=e:(t.c=null,t.t=NaN,t=null,u.end({type:"end",alpha:n=0})):e>0&&(u.start({type:"start",alpha:n=e}),t=Ye(s.tick)),s):n},s.start=function(){var t,e,n,a=v.length,u=_.length,c=l[0],m=l[1];for(t=0;t<a;++t)(n=v[t]).index=t,n.weight=0;for(t=0;t<u;++t)"number"==typeof(n=_[t]).source&&(n.source=v[n.source]),"number"==typeof n.target&&(n.target=v[n.target]),++n.source.weight,++n.target.weight;for(t=0;t<a;++t)n=v[t],isNaN(n.x)&&(n.x=p("x",c)),isNaN(n.y)&&(n.y=p("y",m)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(r=[],"function"==typeof d)for(t=0;t<u;++t)r[t]=+d.call(this,_[t],t);else for(t=0;t<u;++t)r[t]=d;if(i=[],"function"==typeof h)for(t=0;t<u;++t)i[t]=+h.call(this,_[t],t);else for(t=0;t<u;++t)i[t]=h;if(o=[],"function"==typeof f)for(t=0;t<a;++t)o[t]=+f.call(this,v[t],t);else for(t=0;t<a;++t)o[t]=f;function p(n,r){if(!e){for(e=new Array(a),l=0;l<a;++l)e[l]=[];for(l=0;l<u;++l){var i=_[l];e[i.source.index].push(i.target),e[i.target.index].push(i.source)}}for(var o,s=e[t],l=-1,c=s.length;++l<c;)if(!isNaN(o=s[l][n]))return o;return Math.random()*r}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(e||(e=a.behavior.drag().origin(H).on("dragstart.force",Ma).on("drag.force",b).on("dragend.force",wa)),!arguments.length)return e;this.on("mouseover.force",xa).on("mouseout.force",ka).call(e)},a.rebind(s,u,"on")};var La=20,Sa=1,Ya=1/0;function Ta(t,e){return a.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=ja,t}function Da(t,e){for(var n=[t];null!=(t=n.pop());)if(e(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)n.push(i[r])}function Ca(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o<i;)n.push(a[o]);for(;null!=(t=r.pop());)e(t)}function Ea(t){return t.children}function Oa(t){return t.value}function Aa(t,e){return e.value-t.value}function ja(t){return a.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}a.layout.hierarchy=function(){var t=Aa,e=Ea,n=Oa;function r(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(l=e.call(r,a,a.depth))&&(u=l.length)){for(var u,l,c;--u>=0;)o.push(c=l[u]),c.parent=a,c.depth=a.depth+1;n&&(a.value=0),a.children=l}else n&&(a.value=+n.call(r,a,a.depth)||0),delete a.children;return Ca(i,function(e){var r,i;t&&(r=e.children)&&r.sort(t),n&&(i=e.parent)&&(i.value+=e.value)}),s}return r.sort=function(e){return arguments.length?(t=e,r):t},r.children=function(t){return arguments.length?(e=t,r):e},r.value=function(t){return arguments.length?(n=t,r):n},r.revalue=function(t){return n&&(Da(t,function(t){t.children&&(t.value=0)}),Ca(t,function(t){var e;t.children||(t.value=+n.call(r,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},r},a.layout.partition=function(){var t=a.layout.hierarchy(),e=[1,1];function n(n,r){var i=t.call(this,n,r);return function t(e,n,r,i){var a=e.children;if(e.x=n,e.y=e.depth*i,e.dx=r,e.dy=i,a&&(o=a.length)){var o,s,u,l=-1;for(r=e.value?r/e.value:0;++l<o;)t(s=a[l],n,u=s.value*r,i),n+=u}}(i[0],0,e[0],e[1]/function t(e){var n=e.children,r=0;if(n&&(i=n.length))for(var i,a=-1;++a<i;)r=Math.max(r,t(n[a]));return 1+r}(i[0])),i}return n.size=function(t){return arguments.length?(e=t,n):e},Ta(n,t)},a.layout.pie=function(){var t=Number,e=Ha,n=0,r=Dt,i=0;function o(s){var u,l=s.length,c=s.map(function(e,n){return+t.call(o,e,n)}),d=+("function"==typeof n?n.apply(this,arguments):n),h=("function"==typeof r?r.apply(this,arguments):r)-d,f=Math.min(Math.abs(h)/l,+("function"==typeof i?i.apply(this,arguments):i)),m=f*(h<0?-1:1),p=a.sum(c),g=p?(h-l*m)/p:0,v=a.range(l),_=[];return null!=e&&v.sort(e===Ha?function(t,e){return c[e]-c[t]}:function(t,n){return e(s[t],s[n])}),v.forEach(function(t){_[t]={data:s[t],value:u=c[t],startAngle:d,endAngle:d+=u*g+m,padAngle:f}}),_}return o.value=function(e){return arguments.length?(t=e,o):t},o.sort=function(t){return arguments.length?(e=t,o):e},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(r=t,o):r},o.padAngle=function(t){return arguments.length?(i=t,o):i},o};var Ha={};function Na(t){return t.x}function Pa(t){return t.y}function Fa(t,e,n){t.y0=e,t.y=n}a.layout.stack=function(){var t=H,e=Wa,n=Ra,r=Fa,i=Na,o=Pa;function s(u,l){if(!(f=u.length))return u;var c=u.map(function(e,n){return t.call(s,e,n)}),d=c.map(function(t){return t.map(function(t,e){return[i.call(s,t,e),o.call(s,t,e)]})}),h=e.call(s,d,l);c=a.permute(c,h),d=a.permute(d,h);var f,m,p,g,v=n.call(s,d,l),_=c[0].length;for(p=0;p<_;++p)for(r.call(s,c[0][p],g=v[p],d[0][p][1]),m=1;m<f;++m)r.call(s,c[m][p],g+=d[m-1][p][1],d[m][p][1]);return u}return s.values=function(e){return arguments.length?(t=e,s):t},s.order=function(t){return arguments.length?(e="function"==typeof t?t:Va.get(t)||Wa,s):e},s.offset=function(t){return arguments.length?(n="function"==typeof t?t:Ia.get(t)||Ra,s):n},s.x=function(t){return arguments.length?(i=t,s):i},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(r=t,s):r},s};var Va=a.map({"inside-out":function(t){var e,n,r=t.length,i=t.map(za),o=t.map(Ba),s=a.range(r).sort(function(t,e){return i[t]-i[e]}),u=0,l=0,c=[],d=[];for(e=0;e<r;++e)n=s[e],u<l?(u+=o[n],c.push(n)):(l+=o[n],d.push(n));return d.reverse().concat(c)},reverse:function(t){return a.range(t.length).reverse()},default:Wa}),Ia=a.map({silhouette:function(t){var e,n,r,i=t.length,a=t[0].length,o=[],s=0,u=[];for(n=0;n<a;++n){for(e=0,r=0;e<i;e++)r+=t[e][n][1];r>s&&(s=r),o.push(r)}for(n=0;n<a;++n)u[n]=(s-o[n])/2;return u},wiggle:function(t){var e,n,r,i,a,o,s,u,l,c=t.length,d=t[0],h=d.length,f=[];for(f[0]=u=l=0,n=1;n<h;++n){for(e=0,i=0;e<c;++e)i+=t[e][n][1];for(e=0,a=0,s=d[n][0]-d[n-1][0];e<c;++e){for(r=0,o=(t[e][n][1]-t[e][n-1][1])/(2*s);r<e;++r)o+=(t[r][n][1]-t[r][n-1][1])/s;a+=o*t[e][n][1]}f[n]=u-=i?a/i*s:0,u<l&&(l=u)}for(n=0;n<h;++n)f[n]-=l;return f},expand:function(t){var e,n,r,i=t.length,a=t[0].length,o=1/i,s=[];for(n=0;n<a;++n){for(e=0,r=0;e<i;e++)r+=t[e][n][1];if(r)for(e=0;e<i;e++)t[e][n][1]/=r;else for(e=0;e<i;e++)t[e][n][1]=o}for(n=0;n<a;++n)s[n]=0;return s},zero:Ra});function Wa(t){return a.range(t.length)}function Ra(t){for(var e=-1,n=t[0].length,r=[];++e<n;)r[e]=0;return r}function za(t){for(var e,n=1,r=0,i=t[0][1],a=t.length;n<a;++n)(e=t[n][1])>i&&(r=n,i=e);return r}function Ba(t){return t.reduce(Ga,0)}function Ga(t,e){return t+e[1]}function Ua(t,e){return $a(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function $a(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,a=[];++n<=e;)a[n]=i*n+r;return a}function qa(t){return[a.min(t),a.max(t)]}function Ja(t,e){return t.value-e.value}function Za(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function Xa(t,e){t._pack_next=e,e._pack_prev=t}function Ka(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return.999*i*i>n*n+r*r}function Qa(t){if((e=t.children)&&(u=e.length)){var e,n,r,i,a,o,s,u,l=1/0,c=-1/0,d=1/0,h=-1/0;if(e.forEach(to),(n=e[0]).x=-n.r,n.y=0,y(n),u>1&&((r=e[1]).x=r.r,r.y=0,y(r),u>2))for(no(n,r,i=e[2]),y(i),Za(n,i),n._pack_prev=i,Za(i,r),r=n._pack_next,a=3;a<u;a++){no(n,r,i=e[a]);var f=0,m=1,p=1;for(o=r._pack_next;o!==r;o=o._pack_next,m++)if(Ka(o,i)){f=1;break}if(1==f)for(s=n._pack_prev;s!==o._pack_prev&&!Ka(s,i);s=s._pack_prev,p++);f?(m<p||m==p&&r.r<n.r?Xa(n,r=o):Xa(n=s,r),a--):(Za(n,i),r=i,y(i))}var g=(l+c)/2,v=(d+h)/2,_=0;for(a=0;a<u;a++)(i=e[a]).x-=g,i.y-=v,_=Math.max(_,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=_,e.forEach(eo)}function y(t){l=Math.min(t.x-t.r,l),c=Math.max(t.x+t.r,c),d=Math.min(t.y-t.r,d),h=Math.max(t.y+t.r,h)}}function to(t){t._pack_next=t._pack_prev=t}function eo(t){delete t._pack_next,delete t._pack_prev}function no(t,e,n){var r=t.r+n.r,i=e.x-t.x,a=e.y-t.y;if(r&&(i||a)){var o=e.r+n.r,s=i*i+a*a,u=.5+((r*=r)-(o*=o))/(2*s),l=Math.sqrt(Math.max(0,2*o*(r+s)-(r-=s)*r-o*o))/(2*s);n.x=t.x+u*i+l*a,n.y=t.y+u*a-l*i}else n.x=t.x+r,n.y=t.y}function ro(t,e){return t.parent==e.parent?1:2}function io(t){var e=t.children;return e.length?e[0]:t.t}function ao(t){var e,n=t.children;return(e=n.length)?n[e-1]:t.t}function oo(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function so(t,e,n){return t.a.parent===e.parent?t.a:n}function uo(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function lo(t,e){var n=t.x+e[3],r=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i<0&&(n+=i/2,i=0),a<0&&(r+=a/2,a=0),{x:n,y:r,dx:i,dy:a}}function co(t){var e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]}function ho(t){return t.rangeExtent?t.rangeExtent():co(t.range())}function fo(t,e,n,r){var i=n(t[0],t[1]),a=r(e[0],e[1]);return function(t){return a(i(t))}}function mo(t,e){var n,r=0,i=t.length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function po(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:go}a.layout.histogram=function(){var t=!0,e=Number,n=qa,r=Ua;function i(i,o){for(var s,u,l=[],c=i.map(e,this),d=n.call(this,c,o),h=r.call(this,d,c,o),f=(o=-1,c.length),m=h.length-1,p=t?1:1/f;++o<m;)(s=l[o]=[]).dx=h[o+1]-(s.x=h[o]),s.y=0;if(m>0)for(o=-1;++o<f;)(u=c[o])>=d[0]&&u<=d[1]&&((s=l[a.bisect(h,u,1,m)-1]).y+=p,s.push(i[o]));return l}return i.value=function(t){return arguments.length?(e=t,i):e},i.range=function(t){return arguments.length?(n=ye(t),i):n},i.bins=function(t){return arguments.length?(r="number"==typeof t?function(e){return $a(e,t)}:ye(t),i):r},i.frequency=function(e){return arguments.length?(t=!!e,i):t},i},a.layout.pack=function(){var t,e=a.layout.hierarchy().sort(Ja),n=0,r=[1,1];function i(i,a){var o=e.call(this,i,a),s=o[0],u=r[0],l=r[1],c=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,Ca(s,function(t){t.r=+c(t.value)}),Ca(s,Qa),n){var d=n*(t?1:Math.max(2*s.r/u,2*s.r/l))/2;Ca(s,function(t){t.r+=d}),Ca(s,Qa),Ca(s,function(t){t.r-=d})}return function t(e,n,r,i){var a=e.children;e.x=n+=i*e.x;e.y=r+=i*e.y;e.r*=i;if(a)for(var o=-1,s=a.length;++o<s;)t(a[o],n,r,i)}(s,u/2,l/2,t?1:1/Math.max(2*s.r/u,2*s.r/l)),o}return i.size=function(t){return arguments.length?(r=t,i):r},i.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,i):t},i.padding=function(t){return arguments.length?(n=+t,i):n},Ta(i,e)},a.layout.tree=function(){var t=a.layout.hierarchy().sort(null).value(null),e=ro,n=[1,1],r=null;function i(i,a){var l=t.call(this,i,a),c=l[0],d=function(t){var e,n={A:null,children:[t]},r=[n];for(;null!=(e=r.pop());)for(var i,a=e.children,o=0,s=a.length;o<s;++o)r.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return n.children[0]}(c);if(Ca(d,o),d.parent.m=-d.z,Da(d,s),r)Da(c,u);else{var h=c,f=c,m=c;Da(c,function(t){t.x<h.x&&(h=t),t.x>f.x&&(f=t),t.depth>m.depth&&(m=t)});var p=e(h,f)/2-h.x,g=n[0]/(f.x+e(f,h)/2+p),v=n[1]/(m.depth||1);Da(c,function(t){t.x=(t.x+p)*g,t.y=t.depth*v})}return l}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n.length){!function(t){var e,n=0,r=0,i=t.children,a=i.length;for(;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,a=t,o=t,s=n,u=a.parent.children[0],l=a.m,c=o.m,d=s.m,h=u.m;s=ao(s),a=io(a),s&&a;)u=io(u),(o=ao(o)).a=t,(i=s.z+d-a.z-l+e(s._,a._))>0&&(oo(so(s,t,r),t,i),l+=i,c+=i),d+=s.m,l+=a.m,h+=u.m,c+=o.m;s&&!ao(o)&&(o.t=s,o.m+=d-c),a&&!io(u)&&(u.t=a,u.m+=l-h,r=t)}return r}(t,i,t.parent.A||r[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n[0],t.y=t.depth*n[1]}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(t){return arguments.length?(r=null==(n=t)?u:null,i):r?null:n},i.nodeSize=function(t){return arguments.length?(r=null==(n=t)?null:u,i):r?n:null},Ta(i,t)},a.layout.cluster=function(){var t=a.layout.hierarchy().sort(null).value(null),e=ro,n=[1,1],r=!1;function i(i,o){var s,u=t.call(this,i,o),l=u[0],c=0;Ca(l,function(t){var n=t.children;n&&n.length?(t.x=function(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}(n),t.y=function(t){return 1+a.max(t,function(t){return t.y})}(n)):(t.x=s?c+=e(t,s):0,t.y=0,s=t)});var d=function t(e){var n=e.children;return n&&n.length?t(n[0]):e}(l),h=function t(e){var n,r=e.children;return r&&(n=r.length)?t(r[n-1]):e}(l),f=d.x-e(d,h)/2,m=h.x+e(h,d)/2;return Ca(l,r?function(t){t.x=(t.x-l.x)*n[0],t.y=(l.y-t.y)*n[1]}:function(t){t.x=(t.x-f)/(m-f)*n[0],t.y=(1-(l.y?t.y/l.y:1))*n[1]}),u}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(t){return arguments.length?(r=null==(n=t),i):r?null:n},i.nodeSize=function(t){return arguments.length?(r=null!=(n=t),i):r?n:null},Ta(i,t)},a.layout.treemap=function(){var t,e=a.layout.hierarchy(),n=Math.round,r=[1,1],i=null,o=uo,s=!1,u="squarify",l=.5*(1+Math.sqrt(5));function c(t,e){for(var n,r,i=-1,a=t.length;++i<a;)r=(n=t[i]).value*(e<0?0:e),n.area=isNaN(r)||r<=0?0:r}function d(t){var e=t.children;if(e&&e.length){var n,r,i,a=o(t),s=[],l=e.slice(),h=1/0,p="slice"===u?a.dx:"dice"===u?a.dy:"slice-dice"===u?1&t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(c(l,a.dx*a.dy/t.value),s.area=0;(i=l.length)>0;)s.push(n=l[i-1]),s.area+=n.area,"squarify"!==u||(r=f(s,p))<=h?(l.pop(),h=r):(s.area-=s.pop().area,m(s,p,a,!1),p=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&&(m(s,p,a,!0),s.length=s.area=0),e.forEach(d)}}function h(t){var e=t.children;if(e&&e.length){var n,r=o(t),i=e.slice(),a=[];for(c(i,r.dx*r.dy/t.value),a.area=0;n=i.pop();)a.push(n),a.area+=n.area,null!=n.z&&(m(a,n.z?r.dx:r.dy,r,!i.length),a.length=a.area=0);e.forEach(h)}}function f(t,e){for(var n,r=t.area,i=0,a=1/0,o=-1,s=t.length;++o<s;)(n=t[o].area)&&(n<a&&(a=n),n>i&&(i=n));return e*=e,(r*=r)?Math.max(e*i*l/r,r/(e*a*l)):1/0}function m(t,e,r,i){var a,o=-1,s=t.length,u=r.x,l=r.y,c=e?n(t.area/e):0;if(e==r.dx){for((i||c>r.dy)&&(c=r.dy);++o<s;)(a=t[o]).x=u,a.y=l,a.dy=c,u+=a.dx=Math.min(r.x+r.dx-u,c?n(a.area/c):0);a.z=!0,a.dx+=r.x+r.dx-u,r.y+=c,r.dy-=c}else{for((i||c>r.dx)&&(c=r.dx);++o<s;)(a=t[o]).x=u,a.y=l,a.dx=c,l+=a.dy=Math.min(r.y+r.dy-l,c?n(a.area/c):0);a.z=!1,a.dy+=r.y+r.dy-l,r.x+=c,r.dx-=c}}function p(n){var i=t||e(n),a=i[0];return a.x=a.y=0,a.value?(a.dx=r[0],a.dy=r[1]):a.dx=a.dy=0,t&&e.revalue(a),c([a],a.dx*a.dy/a.value),(t?h:d)(a),s&&(t=i),i}return p.size=function(t){return arguments.length?(r=t,p):r},p.padding=function(t){if(!arguments.length)return i;function e(e){return lo(e,t)}var n;return o=null==(i=t)?uo:"function"==(n=typeof t)?function(e){var n=t.call(p,e,e.depth);return null==n?uo(e):lo(e,"number"==typeof n?[n,n,n,n]:n)}:"number"===n?(t=[t,t,t,t],e):e,p},p.round=function(t){return arguments.length?(n=t?Math.round:Number,p):n!=Number},p.sticky=function(e){return arguments.length?(s=e,t=null,p):s},p.ratio=function(t){return arguments.length?(l=t,p):l},p.mode=function(t){return arguments.length?(u=t+"",p):u},Ta(p,e)},a.random={normal:function(t,e){var n=arguments.length;return n<2&&(e=1),n<1&&(t=0),function(){var n,r,i;do{i=(n=2*Math.random()-1)*n+(r=2*Math.random()-1)*r}while(!i||i>1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=a.random.normal.apply(a,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=a.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;n<t;n++)e+=Math.random();return e}}},a.scale={};var go={floor:H,ceil:H};function vo(t,e,n,r){var i=[],o=[],s=0,u=Math.min(t.length,e.length)-1;for(t[u]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<=u;)i.push(n(t[s-1],t[s])),o.push(r(e[s-1],e[s]));return function(e){var n=a.bisect(t,e,1,u)-1;return o[n](i[n](e))}}function _o(t,e){return a.rebind(t,e,"range","rangeRound","interpolate","clamp")}function yo(t,e){return mo(t,po(bo(t,e)[2])),mo(t,po(bo(t,e)[2])),t}function bo(t,e){null==e&&(e=10);var n=co(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),a=e/r*i;return a<=.15?i*=10:a<=.35?i*=5:a<=.75&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function Mo(t,e){return a.range.apply(a,bo(t,e))}function wo(t,e,n){var r=bo(t,e);if(n){var i=Ae.exec(n);if(i.shift(),"s"===i[8]){var o=a.formatPrefix(Math.max(w(r[0]),w(r[1])));return i[7]||(i[7]="."+ko(o.scale(r[2]))),i[8]="f",n=a.format(i.join("")),function(t){return n(o.scale(t))+o.symbol}}i[7]||(i[7]="."+function(t,e){var n=ko(e[2]);return t in xo?Math.abs(n-ko(Math.max(w(e[0]),w(e[1]))))+ +("e"!==t):n-2*("%"===t)}(i[8],r)),n=i.join("")}else n=",."+ko(r[2])+"f";return a.format(n)}a.scale.linear=function(){return function t(e,n,r,i){var a,o;function s(){var t=Math.min(e.length,n.length)>2?vo:fo,s=i?_a:va;return a=t(e,n,s,r),o=t(n,e,s,Zi),u}function u(t){return a(t)}u.invert=function(t){return o(t)};u.domain=function(t){return arguments.length?(e=t.map(Number),s()):e};u.range=function(t){return arguments.length?(n=t,s()):n};u.rangeRound=function(t){return u.range(t).interpolate(ca)};u.clamp=function(t){return arguments.length?(i=t,s()):i};u.interpolate=function(t){return arguments.length?(r=t,s()):r};u.ticks=function(t){return Mo(e,t)};u.tickFormat=function(t,n){return wo(e,t,n)};u.nice=function(t){return yo(e,t),s()};u.copy=function(){return t(e,n,r,i)};return s()}([0,1],[0,1],Zi,!1)};var xo={s:1,g:1,p:1,r:1,e:1};function ko(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}a.scale.log=function(){return function t(e,n,r,i){function o(t){return(r?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function s(t){return r?Math.pow(n,t):-Math.pow(n,-t)}function u(t){return e(o(t))}u.invert=function(t){return s(e.invert(t))};u.domain=function(t){return arguments.length?(r=t[0]>=0,e.domain((i=t.map(Number)).map(o)),u):i};u.base=function(t){return arguments.length?(n=+t,e.domain(i.map(o)),u):n};u.nice=function(){var t=mo(i.map(o),r?Math:So);return e.domain(t),i=t.map(s),u};u.ticks=function(){var t=co(i),e=[],a=t[0],u=t[1],l=Math.floor(o(a)),c=Math.ceil(o(u)),d=n%1?2:n;if(isFinite(c-l)){if(r){for(;l<c;l++)for(var h=1;h<d;h++)e.push(s(l)*h);e.push(s(l))}else for(e.push(s(l));l++<c;)for(var h=d-1;h>0;h--)e.push(s(l)*h);for(l=0;e[l]<a;l++);for(c=e.length;e[c-1]>u;c--);e=e.slice(l,c)}return e};u.tickFormat=function(t,e){if(!arguments.length)return Lo;arguments.length<2?e=Lo:"function"!=typeof e&&(e=a.format(e));var r=Math.max(1,n*t/u.ticks().length);return function(t){var i=t/s(Math.round(o(t)));return i*n<n-.5&&(i*=n),i<=r?e(t):""}};u.copy=function(){return t(e.copy(),n,r,i)};return _o(u,e)}(a.scale.linear().domain([0,1]),10,!0,[1,10])};var Lo=a.format(".0e"),So={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Yo(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}a.scale.pow=function(){return function t(e,n,r){var i=Yo(n),a=Yo(1/n);function o(t){return e(i(t))}o.invert=function(t){return a(e.invert(t))};o.domain=function(t){return arguments.length?(e.domain((r=t.map(Number)).map(i)),o):r};o.ticks=function(t){return Mo(r,t)};o.tickFormat=function(t,e){return wo(r,t,e)};o.nice=function(t){return o.domain(yo(r,t))};o.exponent=function(t){return arguments.length?(i=Yo(n=t),a=Yo(1/n),e.domain(r.map(i)),o):n};o.copy=function(){return t(e.copy(),n,r)};return _o(o,e)}(a.scale.linear(),1,[0,1])},a.scale.sqrt=function(){return a.scale.pow().exponent(.5)},a.scale.ordinal=function(){return function t(e,n){var r,i,o;function s(t){return i[((r.get(t)||("range"===n.t?r.set(t,e.push(t)):NaN))-1)%i.length]}function u(t,n){return a.range(e.length).map(function(e){return t+n*e})}s.domain=function(t){if(!arguments.length)return e;e=[],r=new k;for(var i,a=-1,o=t.length;++a<o;)r.has(i=t[a])||r.set(i,e.push(i));return s[n.t].apply(s,n.a)};s.range=function(t){return arguments.length?(i=t,o=0,n={t:"range",a:arguments},s):i};s.rangePoints=function(t,r){arguments.length<2&&(r=0);var a=t[0],l=t[1],c=e.length<2?(a=(a+l)/2,0):(l-a)/(e.length-1+r);return i=u(a+c*r/2,c),o=0,n={t:"rangePoints",a:arguments},s};s.rangeRoundPoints=function(t,r){arguments.length<2&&(r=0);var a=t[0],l=t[1],c=e.length<2?(a=l=Math.round((a+l)/2),0):(l-a)/(e.length-1+r)|0;return i=u(a+Math.round(c*r/2+(l-a-(e.length-1+r)*c)/2),c),o=0,n={t:"rangeRoundPoints",a:arguments},s};s.rangeBands=function(t,r,a){arguments.length<2&&(r=0),arguments.length<3&&(a=r);var l=t[1]<t[0],c=t[l-0],d=t[1-l],h=(d-c)/(e.length-r+2*a);return i=u(c+h*a,h),l&&i.reverse(),o=h*(1-r),n={t:"rangeBands",a:arguments},s};s.rangeRoundBands=function(t,r,a){arguments.length<2&&(r=0),arguments.length<3&&(a=r);var l=t[1]<t[0],c=t[l-0],d=t[1-l],h=Math.floor((d-c)/(e.length-r+2*a));return i=u(c+Math.round((d-c-(e.length-r)*h)/2),h),l&&i.reverse(),o=Math.round(h*(1-r)),n={t:"rangeRoundBands",a:arguments},s};s.rangeBand=function(){return o};s.rangeExtent=function(){return co(n.a[0])};s.copy=function(){return t(e,n)};return s.domain(e)}([],{t:"range",a:[[]]})},a.scale.category10=function(){return a.scale.ordinal().range(To)},a.scale.category20=function(){return a.scale.ordinal().range(Do)},a.scale.category20b=function(){return a.scale.ordinal().range(Co)},a.scale.category20c=function(){return a.scale.ordinal().range(Eo)};var To=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ce),Do=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ce),Co=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ce),Eo=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ce);function Oo(){return 0}a.scale.quantile=function(){return function t(e,n){var r;function i(){var t=0,i=n.length;for(r=[];++t<i;)r[t-1]=a.quantile(e,t/i);return o}function o(t){if(!isNaN(t=+t))return n[a.bisect(r,t)]}o.domain=function(t){return arguments.length?(e=t.map(v).filter(_).sort(g),i()):e};o.range=function(t){return arguments.length?(n=t,i()):n};o.quantiles=function(){return r};o.invertExtent=function(t){return(t=n.indexOf(t))<0?[NaN,NaN]:[t>0?r[t-1]:e[0],t<r.length?r[t]:e[e.length-1]]};o.copy=function(){return t(e,n)};return i()}([],[])},a.scale.quantize=function(){return function t(e,n,r){var i,a;function o(t){return r[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function s(){return i=r.length/(n-e),a=r.length-1,o}o.domain=function(t){return arguments.length?(e=+t[0],n=+t[t.length-1],s()):[e,n]};o.range=function(t){return arguments.length?(r=t,s()):r};o.invertExtent=function(t){return[t=(t=r.indexOf(t))<0?NaN:t/i+e,t+1/i]};o.copy=function(){return t(e,n,r)};return s()}(0,1,[0,1])},a.scale.threshold=function(){return function t(e,n){function r(t){if(t<=t)return n[a.bisect(e,t)]}r.domain=function(t){return arguments.length?(e=t,r):e};r.range=function(t){return arguments.length?(n=t,r):n};r.invertExtent=function(t){return t=n.indexOf(t),[e[t-1],e[t]]};r.copy=function(){return t(e,n)};return r}([.5],[0,1])},a.scale.identity=function(){return function t(e){function n(t){return+t}n.invert=n;n.domain=n.range=function(t){return arguments.length?(e=t.map(n),n):e};n.ticks=function(t){return Mo(e,t)};n.tickFormat=function(t,n){return wo(e,t,n)};n.copy=function(){return t(e)};return n}([0,1])},a.svg={},a.svg.arc=function(){var t=jo,e=Ho,n=Oo,r=Ao,i=No,a=Po,o=Fo;function s(){var s=Math.max(0,+t.apply(this,arguments)),l=Math.max(0,+e.apply(this,arguments)),c=i.apply(this,arguments)-Et,d=a.apply(this,arguments)-Et,h=Math.abs(d-c),f=c>d?0:1;if(l<s&&(m=l,l=s,s=m),h>=Ct)return u(l,f)+(s?u(s,1-f):"")+"Z";var m,p,g,v,_,y,b,M,w,x,k,L,S=0,Y=0,T=[];if((v=(+o.apply(this,arguments)||0)/2)&&(g=r===Ao?Math.sqrt(s*s+l*l):+r.apply(this,arguments),f||(Y*=-1),l&&(Y=Pt(g/l*Math.sin(v))),s&&(S=Pt(g/s*Math.sin(v)))),l){_=l*Math.cos(c+Y),y=l*Math.sin(c+Y),b=l*Math.cos(d-Y),M=l*Math.sin(d-Y);var D=Math.abs(d-c-2*Y)<=Tt?0:1;if(Y&&Vo(_,y,b,M)===f^D){var C=(c+d)/2;_=l*Math.cos(C),y=l*Math.sin(C),b=M=null}}else _=y=0;if(s){w=s*Math.cos(d-S),x=s*Math.sin(d-S),k=s*Math.cos(c+S),L=s*Math.sin(c+S);var E=Math.abs(c-d+2*S)<=Tt?0:1;if(S&&Vo(w,x,k,L)===1-f^E){var O=(c+d)/2;w=s*Math.cos(O),x=s*Math.sin(O),k=L=null}}else w=x=0;if(h>St&&(m=Math.min(Math.abs(l-s)/2,+n.apply(this,arguments)))>.001){p=s<l^f?0:1;var A=m,j=m;if(h<Tt){var H=null==k?[w,x]:null==b?[_,y]:ui([_,y],[k,L],[b,M],[w,x]),N=_-H[0],P=y-H[1],F=b-H[0],V=M-H[1],I=1/Math.sin(Math.acos((N*F+P*V)/(Math.sqrt(N*N+P*P)*Math.sqrt(F*F+V*V)))/2),W=Math.sqrt(H[0]*H[0]+H[1]*H[1]);j=Math.min(m,(s-W)/(I-1)),A=Math.min(m,(l-W)/(I+1))}if(null!=b){var R=Io(null==k?[w,x]:[k,L],[_,y],l,A,f),z=Io([b,M],[w,x],l,A,f);m===A?T.push("M",R[0],"A",A,",",A," 0 0,",p," ",R[1],"A",l,",",l," 0 ",1-f^Vo(R[1][0],R[1][1],z[1][0],z[1][1]),",",f," ",z[1],"A",A,",",A," 0 0,",p," ",z[0]):T.push("M",R[0],"A",A,",",A," 0 1,",p," ",z[0])}else T.push("M",_,",",y);if(null!=k){var B=Io([_,y],[k,L],s,-j,f),G=Io([w,x],null==b?[_,y]:[b,M],s,-j,f);m===j?T.push("L",G[0],"A",j,",",j," 0 0,",p," ",G[1],"A",s,",",s," 0 ",f^Vo(G[1][0],G[1][1],B[1][0],B[1][1]),",",1-f," ",B[1],"A",j,",",j," 0 0,",p," ",B[0]):T.push("L",G[0],"A",j,",",j," 0 0,",p," ",B[0])}else T.push("L",w,",",x)}else T.push("M",_,",",y),null!=b&&T.push("A",l,",",l," 0 ",D,",",f," ",b,",",M),T.push("L",w,",",x),null!=k&&T.push("A",s,",",s," 0 ",E,",",1-f," ",k,",",L);return T.push("Z"),T.join("")}function u(t,e){return"M0,"+t+"A"+t+","+t+" 0 1,"+e+" 0,"+-t+"A"+t+","+t+" 0 1,"+e+" 0,"+t}return s.innerRadius=function(e){return arguments.length?(t=ye(e),s):t},s.outerRadius=function(t){return arguments.length?(e=ye(t),s):e},s.cornerRadius=function(t){return arguments.length?(n=ye(t),s):n},s.padRadius=function(t){return arguments.length?(r=t==Ao?Ao:ye(t),s):r},s.startAngle=function(t){return arguments.length?(i=ye(t),s):i},s.endAngle=function(t){return arguments.length?(a=ye(t),s):a},s.padAngle=function(t){return arguments.length?(o=ye(t),s):o},s.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Et;return[Math.cos(r)*n,Math.sin(r)*n]},s};var Ao="auto";function jo(t){return t.innerRadius}function Ho(t){return t.outerRadius}function No(t){return t.startAngle}function Po(t){return t.endAngle}function Fo(t){return t&&t.padAngle}function Vo(t,e,n,r){return(t-n)*e-(e-r)*t>0?0:1}function Io(t,e,n,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?r:-r)/Math.sqrt(a*a+o*o),u=s*o,l=-s*a,c=t[0]+u,d=t[1]+l,h=e[0]+u,f=e[1]+l,m=(c+h)/2,p=(d+f)/2,g=h-c,v=f-d,_=g*g+v*v,y=n-r,b=c*f-h*d,M=(v<0?-1:1)*Math.sqrt(Math.max(0,y*y*_-b*b)),w=(b*v-g*M)/_,x=(-b*g-v*M)/_,k=(b*v+g*M)/_,L=(-b*g+v*M)/_,S=w-m,Y=x-p,T=k-m,D=L-p;return S*S+Y*Y>T*T+D*D&&(w=k,x=L),[[w-u,x-l],[w*n/y,x*n/y]]}function Wo(t){var e=ni,n=ri,r=Zn,i=zo,a=i.key,o=.7;function s(a){var s,u=[],l=[],c=-1,d=a.length,h=ye(e),f=ye(n);function m(){u.push("M",i(t(l),o))}for(;++c<d;)r.call(this,s=a[c],c)?l.push([+h.call(this,s,c),+f.call(this,s,c)]):l.length&&(m(),l=[]);return l.length&&m(),u.length?u.join(""):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(n=t,s):n},s.defined=function(t){return arguments.length?(r=t,s):r},s.interpolate=function(t){return arguments.length?(a="function"==typeof t?i=t:(i=Ro.get(t)||zo).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}a.svg.line=function(){return Wo(H)};var Ro=a.map({linear:zo,"linear-closed":Bo,step:function(t){var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];for(;++e<n;)i.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);n>1&&i.push("H",r[0]);return i.join("")},"step-before":Go,"step-after":Uo,basis:Jo,"basis-open":function(t){if(t.length<4)return zo(t);var e,n=[],r=-1,i=t.length,a=[0],o=[0];for(;++r<3;)e=t[r],a.push(e[0]),o.push(e[1]);n.push(Zo(Qo,a)+","+Zo(Qo,o)),--r;for(;++r<i;)e=t[r],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),ts(n,a,o);return n.join("")},"basis-closed":function(t){var e,n,r=-1,i=t.length,a=i+4,o=[],s=[];for(;++r<4;)n=t[r%i],o.push(n[0]),s.push(n[1]);e=[Zo(Qo,o),",",Zo(Qo,s)],--r;for(;++r<a;)n=t[r%i],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),ts(e,o,s);return e.join("")},bundle:function(t,e){var n=t.length-1;if(n)for(var r,i,a=t[0][0],o=t[0][1],s=t[n][0]-a,u=t[n][1]-o,l=-1;++l<=n;)r=t[l],i=l/n,r[0]=e*r[0]+(1-e)*(a+i*s),r[1]=e*r[1]+(1-e)*(o+i*u);return Jo(t)},cardinal:function(t,e){return t.length<3?zo(t):t[0]+$o(t,qo(t,e))},"cardinal-open":function(t,e){return t.length<4?zo(t):t[1]+$o(t.slice(1,-1),qo(t,e))},"cardinal-closed":function(t,e){return t.length<3?Bo(t):t[0]+$o((t.push(t[0]),t),qo([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length<3?zo(t):t[0]+$o(t,function(t){var e,n,r,i,a=[],o=function(t){var e=0,n=t.length-1,r=[],i=t[0],a=t[1],o=r[0]=es(i,a);for(;++e<n;)r[e]=(o+(o=es(i=a,a=t[e+1])))/2;return r[e]=o,r}(t),s=-1,u=t.length-1;for(;++s<u;)e=es(t[s],t[s+1]),w(e)<St?o[s]=o[s+1]=0:(n=o[s]/e,r=o[s+1]/e,(i=n*n+r*r)>9&&(i=3*e/Math.sqrt(i),o[s]=i*n,o[s+1]=i*r));s=-1;for(;++s<=u;)i=(t[Math.min(u,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function zo(t){return t.length>1?t.join("L"):t+"Z"}function Bo(t){return t.join("L")+"Z"}function Go(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("V",(r=t[e])[1],"H",r[0]);return i.join("")}function Uo(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r=t[e])[0],"V",r[1]);return i.join("")}function $o(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return zo(t);var n=t.length!=e.length,r="",i=t[0],a=t[1],o=e[0],s=o,u=1;if(n&&(r+="Q"+(a[0]-2*o[0]/3)+","+(a[1]-2*o[1]/3)+","+a[0]+","+a[1],i=t[1],u=2),e.length>1){s=e[1],a=t[u],u++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1];for(var l=2;l<e.length;l++,u++)a=t[u],s=e[l],r+="S"+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1]}if(n){var c=t[u];r+="Q"+(a[0]+2*s[0]/3)+","+(a[1]+2*s[1]/3)+","+c[0]+","+c[1]}return r}function qo(t,e){for(var n,r=[],i=(1-e)/2,a=t[0],o=t[1],s=1,u=t.length;++s<u;)n=a,a=o,o=t[s],r.push([i*(o[0]-n[0]),i*(o[1]-n[1])]);return r}function Jo(t){if(t.length<3)return zo(t);var e=1,n=t.length,r=t[0],i=r[0],a=r[1],o=[i,i,i,(r=t[1])[0]],s=[a,a,a,r[1]],u=[i,",",a,"L",Zo(Qo,o),",",Zo(Qo,s)];for(t.push(t[n-1]);++e<=n;)r=t[e],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),ts(u,o,s);return t.pop(),u.push("L",r),u.join("")}function Zo(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}Ro.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var Xo=[0,2/3,1/3,0],Ko=[0,1/3,2/3,0],Qo=[0,1/6,2/3,1/6];function ts(t,e,n){t.push("C",Zo(Xo,e),",",Zo(Xo,n),",",Zo(Ko,e),",",Zo(Ko,n),",",Zo(Qo,e),",",Zo(Qo,n))}function es(t,e){return(e[1]-t[1])/(e[0]-t[0])}function ns(t){for(var e,n,r,i=-1,a=t.length;++i<a;)n=(e=t[i])[0],r=e[1]-Et,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function rs(t){var e=ni,n=ni,r=0,i=ri,a=Zn,o=zo,s=o.key,u=o,l="L",c=.7;function d(s){var d,h,f,m=[],p=[],g=[],v=-1,_=s.length,y=ye(e),b=ye(r),M=e===n?function(){return h}:ye(n),w=r===i?function(){return f}:ye(i);function x(){m.push("M",o(t(g),c),l,u(t(p.reverse()),c),"Z")}for(;++v<_;)a.call(this,d=s[v],v)?(p.push([h=+y.call(this,d,v),f=+b.call(this,d,v)]),g.push([+M.call(this,d,v),+w.call(this,d,v)])):p.length&&(x(),p=[],g=[]);return p.length&&x(),m.length?m.join(""):null}return d.x=function(t){return arguments.length?(e=n=t,d):n},d.x0=function(t){return arguments.length?(e=t,d):e},d.x1=function(t){return arguments.length?(n=t,d):n},d.y=function(t){return arguments.length?(r=i=t,d):i},d.y0=function(t){return arguments.length?(r=t,d):r},d.y1=function(t){return arguments.length?(i=t,d):i},d.defined=function(t){return arguments.length?(a=t,d):a},d.interpolate=function(t){return arguments.length?(s="function"==typeof t?o=t:(o=Ro.get(t)||zo).key,u=o.reverse||o,l=o.closed?"M":"L",d):s},d.tension=function(t){return arguments.length?(c=t,d):c},d}function is(t){return t.radius}function as(t){return[t.x,t.y]}function os(){return 64}function ss(){return"circle"}function us(t){var e=Math.sqrt(t/Tt);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}a.svg.line.radial=function(){var t=Wo(ns);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Go.reverse=Uo,Uo.reverse=Go,a.svg.area=function(){return rs(H)},a.svg.area.radial=function(){var t=rs(ns);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},a.svg.chord=function(){var t=Rr,e=zr,n=is,r=No,i=Po;function a(n,r){var i=o(this,t,n,r),a=o(this,e,n,r);return"M"+i.p0+s(i.r,i.p1,i.a1-i.a0)+(function(t,e){return t.a0==e.a0&&t.a1==e.a1}(i,a)?u(i.r,i.p1,i.r,i.p0):u(i.r,i.p1,a.r,a.p0)+s(a.r,a.p1,a.a1-a.a0)+u(a.r,a.p1,i.r,i.p0))+"Z"}function o(t,e,a,o){var s=e.call(t,a,o),u=n.call(t,s,o),l=r.call(t,s,o)-Et,c=i.call(t,s,o)-Et;return{r:u,a0:l,a1:c,p0:[u*Math.cos(l),u*Math.sin(l)],p1:[u*Math.cos(c),u*Math.sin(c)]}}function s(t,e,n){return"A"+t+","+t+" 0 "+ +(n>Tt)+",1 "+e}function u(t,e,n,r){return"Q 0,0 "+r}return a.radius=function(t){return arguments.length?(n=ye(t),a):n},a.source=function(e){return arguments.length?(t=ye(e),a):t},a.target=function(t){return arguments.length?(e=ye(t),a):e},a.startAngle=function(t){return arguments.length?(r=ye(t),a):r},a.endAngle=function(t){return arguments.length?(i=ye(t),a):i},a},a.svg.diagonal=function(){var t=Rr,e=zr,n=as;function r(r,i){var a=t.call(this,r,i),o=e.call(this,r,i),s=(a.y+o.y)/2,u=[a,{x:a.x,y:s},{x:o.x,y:s},o];return"M"+(u=u.map(n))[0]+"C"+u[1]+" "+u[2]+" "+u[3]}return r.source=function(e){return arguments.length?(t=ye(e),r):t},r.target=function(t){return arguments.length?(e=ye(t),r):e},r.projection=function(t){return arguments.length?(n=t,r):n},r},a.svg.diagonal.radial=function(){var t=a.svg.diagonal(),e=as,n=t.projection;return t.projection=function(t){return arguments.length?n(function(t){return function(){var e=t.apply(this,arguments),n=e[0],r=e[1]-Et;return[n*Math.cos(r),n*Math.sin(r)]}}(e=t)):e},t},a.svg.symbol=function(){var t=ss,e=os;function n(n,r){return(ls.get(t.call(this,n,r))||us)(e.call(this,n,r))}return n.type=function(e){return arguments.length?(t=ye(e),n):t},n.size=function(t){return arguments.length?(e=ye(t),n):e},n};var ls=a.map({circle:us,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*ds)),n=e*ds;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/cs),n=e*cs/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/cs),n=e*cs/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});a.svg.symbolTypes=ls.keys();var cs=Math.sqrt(3),ds=Math.tan(30*Ot);X.transition=function(t){for(var e,n,r=ps||++_s,i=Ms(t),a=[],o=gs||{time:Date.now(),ease:aa,delay:0,duration:250},s=-1,u=this.length;++s<u;){a.push(e=[]);for(var l=this[s],c=-1,d=l.length;++c<d;)(n=l[c])&&ws(n,c,i,r,o),e.push(n)}return ms(a,i,r)},X.interrupt=function(t){return this.each(null==t?hs:fs(Ms(t)))};var hs=fs(Ms());function fs(t){return function(){var e,n,r;(e=this[t])&&(r=e[n=e.active])&&(r.timer.c=null,r.timer.t=NaN,--e.count?delete e[n]:delete this[t],e.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function ms(t,e,n){return U(t,vs),t.namespace=e,t.id=n,t}var ps,gs,vs=[],_s=0;function ys(t,e,n,r){var i=t.id,a=t.namespace;return ft(t,"function"==typeof n?function(t,o,s){t[a][i].tween.set(e,r(n.call(t,t.__data__,o,s)))}:(n=r(n),function(t){t[a][i].tween.set(e,n)}))}function bs(t){return null==t&&(t=""),function(){this.textContent=t}}function Ms(t){return null==t?"__transition__":"__transition_"+t+"__"}function ws(t,e,n,r,i){var a,o,s,u,l,c=t[n]||(t[n]={active:0,count:0}),d=c[r];function h(n){var i=c.active,h=c[i];for(var m in h&&(h.timer.c=null,h.timer.t=NaN,--c.count,delete c[i],h.event&&h.event.interrupt.call(t,t.__data__,h.index)),c)if(+m<r){var p=c[m];p.timer.c=null,p.timer.t=NaN,--c.count,delete c[m]}o.c=f,Ye(function(){return o.c&&f(n||1)&&(o.c=null,o.t=NaN),1},0,a),c.active=r,d.event&&d.event.start.call(t,t.__data__,e),l=[],d.tween.forEach(function(n,r){(r=r.call(t,t.__data__,e))&&l.push(r)}),u=d.ease,s=d.duration}function f(i){for(var a=i/s,o=u(a),h=l.length;h>0;)l[--h].call(t,o);if(a>=1)return d.event&&d.event.end.call(t,t.__data__,e),--c.count?delete c[r]:delete t[n],1}d||(a=i.time,o=Ye(function(t){var e=d.delay;if(o.t=e+a,e<=t)return h(t-e);o.c=h},0,a),d=c[r]={tween:new k,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++c.count)}vs.call=X.call,vs.empty=X.empty,vs.node=X.node,vs.size=X.size,a.transition=function(t,e){return t&&t.transition?ps?t.transition(e):t:a.selection().transition(t)},a.transition.prototype=vs,vs.select=function(t){var e,n,r,i=this.id,a=this.namespace,o=[];t=K(t);for(var s=-1,u=this.length;++s<u;){o.push(e=[]);for(var l=this[s],c=-1,d=l.length;++c<d;)(r=l[c])&&(n=t.call(r,r.__data__,c,s))?("__data__"in r&&(n.__data__=r.__data__),ws(n,c,a,i,r[a][i]),e.push(n)):e.push(null)}return ms(o,a,i)},vs.selectAll=function(t){var e,n,r,i,a,o=this.id,s=this.namespace,u=[];t=Q(t);for(var l=-1,c=this.length;++l<c;)for(var d=this[l],h=-1,f=d.length;++h<f;)if(r=d[h]){a=r[s][o],n=t.call(r,r.__data__,h,l),u.push(e=[]);for(var m=-1,p=n.length;++m<p;)(i=n[m])&&ws(i,m,s,o,a),e.push(i)}return ms(u,s,o)},vs.filter=function(t){var e,n,r=[];"function"!=typeof t&&(t=ht(t));for(var i=0,a=this.length;i<a;i++){r.push(e=[]);for(var o,s=0,u=(o=this[i]).length;s<u;s++)(n=o[s])&&t.call(n,n.__data__,s,i)&&e.push(n)}return ms(r,this.namespace,this.id)},vs.tween=function(t,e){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(t):ft(this,null==e?function(e){e[r][n].tween.remove(t)}:function(i){i[r][n].tween.set(t,e)})},vs.attr=function(t,e){if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var n="transform"==t?ga:Zi,r=a.ns.qualify(t);function i(){this.removeAttribute(r)}function o(){this.removeAttributeNS(r.space,r.local)}return ys(this,"attr."+t,e,r.local?function(t){return null==t?o:(t+="",function(){var e,i=this.getAttributeNS(r.space,r.local);return i!==t&&(e=n(i,t),function(t){this.setAttributeNS(r.space,r.local,e(t))})})}:function(t){return null==t?i:(t+="",function(){var e,i=this.getAttribute(r);return i!==t&&(e=n(i,t),function(t){this.setAttribute(r,e(t))})})})},vs.attrTween=function(t,e){var n=a.ns.qualify(t);return this.tween("attr."+t,n.local?function(t,r){var i=e.call(this,t,r,this.getAttributeNS(n.space,n.local));return i&&function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,r){var i=e.call(this,t,r,this.getAttribute(n));return i&&function(t){this.setAttribute(n,i(t))}})},vs.style=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){for(n in r<2&&(e=""),t)this.style(n,t[n],e);return this}n=""}function i(){this.style.removeProperty(t)}return ys(this,"style."+t,e,function(e){return null==e?i:(e+="",function(){var r,i=c(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&&(r=Zi(i,e),function(e){this.style.setProperty(t,r(e),n)})})})},vs.styleTween=function(t,e,n){return arguments.length<3&&(n=""),this.tween("style."+t,function(r,i){var a=e.call(this,r,i,c(this).getComputedStyle(this,null).getPropertyValue(t));return a&&function(e){this.style.setProperty(t,a(e),n)}})},vs.text=function(t){return ys(this,"text",t,bs)},vs.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},vs.ease=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].ease:("function"!=typeof t&&(t=a.ease.apply(a,arguments)),ft(this,function(r){r[n][e].ease=t}))},vs.delay=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].delay:ft(this,"function"==typeof t?function(r,i,a){r[n][e].delay=+t.call(r,r.__data__,i,a)}:(t=+t,function(r){r[n][e].delay=t}))},vs.duration=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].duration:ft(this,"function"==typeof t?function(r,i,a){r[n][e].duration=Math.max(1,t.call(r,r.__data__,i,a))}:(t=Math.max(1,t),function(r){r[n][e].duration=t}))},vs.each=function(t,e){var n=this.id,r=this.namespace;if(arguments.length<2){var i=gs,o=ps;try{ps=n,ft(this,function(e,i,a){gs=e[r][n],t.call(e,e.__data__,i,a)})}finally{gs=i,ps=o}}else ft(this,function(i){var o=i[r][n];(o.event||(o.event=a.dispatch("start","end","interrupt"))).on(t,e)});return this},vs.transition=function(){for(var t,e,n,r=this.id,i=++_s,a=this.namespace,o=[],s=0,u=this.length;s<u;s++){o.push(t=[]);for(var l,c=0,d=(l=this[s]).length;c<d;c++)(e=l[c])&&ws(e,c,a,i,{time:(n=e[a][r]).time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration}),t.push(e)}return ms(o,a,i)},a.svg.axis=function(){var t,e=a.scale.linear(),n=xs,r=6,i=6,o=3,u=[10],l=null;function c(s){s.each(function(){var s,c=a.select(this),d=this.__chart__||e,h=this.__chart__=e.copy(),f=null==l?h.ticks?h.ticks.apply(h,u):h.domain():l,m=null==t?h.tickFormat?h.tickFormat.apply(h,u):H:t,p=c.selectAll(".tick").data(f,h),g=p.enter().insert("g",".domain").attr("class","tick").style("opacity",St),v=a.transition(p.exit()).style("opacity",St).remove(),_=a.transition(p.order()).style("opacity",1),y=Math.max(r,0)+o,b=ho(h),M=c.selectAll(".domain").data([0]),w=(M.enter().append("path").attr("class","domain"),a.transition(M));g.append("line"),g.append("text");var x,k,L,S,Y=g.select("line"),T=_.select("line"),D=p.select("text").text(m),C=g.select("text"),E=_.select("text"),O="top"===n||"left"===n?-1:1;if("bottom"===n||"top"===n?(s=Ls,x="x",L="y",k="x2",S="y2",D.attr("dy",O<0?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+b[0]+","+O*i+"V0H"+b[1]+"V"+O*i)):(s=Ss,x="y",L="x",k="y2",S="x2",D.attr("dy",".32em").style("text-anchor",O<0?"end":"start"),w.attr("d","M"+O*i+","+b[0]+"H0V"+b[1]+"H"+O*i)),Y.attr(S,O*r),C.attr(L,O*y),T.attr(k,0).attr(S,O*r),E.attr(x,0).attr(L,O*y),h.rangeBand){var A=h,j=A.rangeBand()/2;d=h=function(t){return A(t)+j}}else d.rangeBand?d=h:v.call(s,h,d);g.call(s,d,h),_.call(s,h,h)})}return c.scale=function(t){return arguments.length?(e=t,c):e},c.orient=function(t){return arguments.length?(n=t in ks?t+"":xs,c):n},c.ticks=function(){return arguments.length?(u=s(arguments),c):u},c.tickValues=function(t){return arguments.length?(l=t,c):l},c.tickFormat=function(e){return arguments.length?(t=e,c):t},c.tickSize=function(t){var e=arguments.length;return e?(r=+t,i=+arguments[e-1],c):r},c.innerTickSize=function(t){return arguments.length?(r=+t,c):r},c.outerTickSize=function(t){return arguments.length?(i=+t,c):i},c.tickPadding=function(t){return arguments.length?(o=+t,c):o},c.tickSubdivide=function(){return arguments.length&&c},c};var xs="bottom",ks={top:1,right:1,bottom:1,left:1};function Ls(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"})}function Ss(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"})}a.svg.brush=function(){var t,e,n=B(h,"brushstart","brush","brushend"),r=null,i=null,o=[0,0],s=[0,0],u=!0,l=!0,d=Ts[0];function h(t){t.each(function(){var t=a.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",g).on("touchstart.brush",g),e=t.selectAll(".background").data([0]);e.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var n=t.selectAll(".resize").data(d,H);n.exit().remove(),n.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Ys[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),n.style("display",h.empty()?"none":null);var o,s=a.transition(t),u=a.transition(e);r&&(o=ho(r),u.attr("x",o[0]).attr("width",o[1]-o[0]),m(s)),i&&(o=ho(i),u.attr("y",o[0]).attr("height",o[1]-o[0]),p(s)),f(s)})}function f(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+o[+/e$/.test(t)]+","+s[+/^s/.test(t)]+")"})}function m(t){t.select(".extent").attr("x",o[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",o[1]-o[0])}function p(t){t.select(".extent").attr("y",s[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function g(){var d,g,v=this,_=a.select(a.event.target),y=n.of(v,arguments),b=a.select(v),M=_.datum(),w=!/^(n|s)$/.test(M)&&r,x=!/^(e|w)$/.test(M)&&i,k=_.classed("extent"),L=wt(v),S=a.mouse(v),Y=a.select(c(v)).on("keydown.brush",function(){32==a.event.keyCode&&(k||(d=null,S[0]-=o[1],S[1]-=s[1],k=2),R())}).on("keyup.brush",function(){32==a.event.keyCode&&2==k&&(S[0]+=o[1],S[1]+=s[1],k=0,R())});if(a.event.changedTouches?Y.on("touchmove.brush",C).on("touchend.brush",O):Y.on("mousemove.brush",C).on("mouseup.brush",O),b.interrupt().selectAll("*").interrupt(),k)S[0]=o[0]-S[0],S[1]=s[0]-S[1];else if(M){var T=+/w$/.test(M),D=+/^n/.test(M);g=[o[1-T]-S[0],s[1-D]-S[1]],S[0]=o[T],S[1]=s[D]}else a.event.altKey&&(d=S.slice());function C(){var t=a.mouse(v),e=!1;g&&(t[0]+=g[0],t[1]+=g[1]),k||(a.event.altKey?(d||(d=[(o[0]+o[1])/2,(s[0]+s[1])/2]),S[0]=o[+(t[0]<d[0])],S[1]=s[+(t[1]<d[1])]):d=null),w&&E(t,r,0)&&(m(b),e=!0),x&&E(t,i,1)&&(p(b),e=!0),e&&(f(b),y({type:"brush",mode:k?"move":"resize"}))}function E(n,r,i){var a,c,h=ho(r),f=h[0],m=h[1],p=S[i],g=i?s:o,v=g[1]-g[0];if(k&&(f-=p,m-=v+p),a=(i?l:u)?Math.max(f,Math.min(m,n[i])):n[i],k?c=(a+=p)+v:(d&&(p=Math.max(f,Math.min(m,2*d[i]-a))),p<a?(c=a,a=p):c=p),g[0]!=a||g[1]!=c)return i?e=null:t=null,g[0]=a,g[1]=c,!0}function O(){C(),b.style("pointer-events","all").selectAll(".resize").style("display",h.empty()?"none":null),a.select("body").style("cursor",null),Y.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),L(),y({type:"brushend"})}b.style("pointer-events","none").selectAll(".resize").style("display",null),a.select("body").style("cursor",_.style("cursor")),y({type:"brushstart"}),C()}return h.event=function(r){r.each(function(){var r=n.of(this,arguments),i={x:o,y:s,i:t,j:e},u=this.__chart__||i;this.__chart__=i,ps?a.select(this).transition().each("start.brush",function(){t=u.i,e=u.j,o=u.x,s=u.y,r({type:"brushstart"})}).tween("brush:brush",function(){var n=Xi(o,i.x),a=Xi(s,i.y);return t=e=null,function(t){o=i.x=n(t),s=i.y=a(t),r({type:"brush",mode:"resize"})}}).each("end.brush",function(){t=i.i,e=i.j,r({type:"brush",mode:"resize"}),r({type:"brushend"})}):(r({type:"brushstart"}),r({type:"brush",mode:"resize"}),r({type:"brushend"}))})},h.x=function(t){return arguments.length?(d=Ts[!(r=t)<<1|!i],h):r},h.y=function(t){return arguments.length?(d=Ts[!r<<1|!(i=t)],h):i},h.clamp=function(t){return arguments.length?(r&&i?(u=!!t[0],l=!!t[1]):r?u=!!t:i&&(l=!!t),h):r&&i?[u,l]:r?u:i?l:null},h.extent=function(n){var a,u,l,c,d;return arguments.length?(r&&(a=n[0],u=n[1],i&&(a=a[0],u=u[0]),t=[a,u],r.invert&&(a=r(a),u=r(u)),u<a&&(d=a,a=u,u=d),a==o[0]&&u==o[1]||(o=[a,u])),i&&(l=n[0],c=n[1],r&&(l=l[1],c=c[1]),e=[l,c],i.invert&&(l=i(l),c=i(c)),c<l&&(d=l,l=c,c=d),l==s[0]&&c==s[1]||(s=[l,c])),h):(r&&(t?(a=t[0],u=t[1]):(a=o[0],u=o[1],r.invert&&(a=r.invert(a),u=r.invert(u)),u<a&&(d=a,a=u,u=d))),i&&(e?(l=e[0],c=e[1]):(l=s[0],c=s[1],i.invert&&(l=i.invert(l),c=i.invert(c)),c<l&&(d=l,l=c,c=d))),r&&i?[[a,l],[u,c]]:r?[a,u]:i&&[l,c])},h.clear=function(){return h.empty()||(o=[0,0],s=[0,0],t=e=null),h},h.empty=function(){return!!r&&o[0]==o[1]||!!i&&s[0]==s[1]},a.rebind(h,n,"on")};var Ys={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ts=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Ds=Ne.format=dn.timeFormat,Cs=Ds.utc,Es=Cs("%Y-%m-%dT%H:%M:%S.%LZ");function Os(t){return t.toISOString()}function As(t,e,n){function r(e){return t(e)}function i(t,n){var r=(t[1]-t[0])/n,i=a.bisect(Hs,r);return i==Hs.length?[e.year,bo(t.map(function(t){return t/31536e6}),n)[2]]:i?e[r/Hs[i-1]<Hs[i]/r?i-1:i]:[Fs,bo(t,n)[2]]}return r.invert=function(e){return js(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain().map(js)},r.nice=function(t,e){var n=r.domain(),a=co(n),o=null==t?i(a,10):"number"==typeof t&&i(a,t);function s(n){return!isNaN(n)&&!t.range(n,js(+n+1),e).length}return o&&(t=o[0],e=o[1]),r.domain(mo(n,e>1?{floor:function(e){for(;s(e=t.floor(e));)e=js(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=js(+e+1);return e}}:t))},r.ticks=function(t,e){var n=co(r.domain()),a=null==t?i(n,10):"number"==typeof t?i(n,t):!t.range&&[{range:t},e];return a&&(t=a[0],e=a[1]),t.range(n[0],js(+n[1]+1),e<1?1:e)},r.tickFormat=function(){return n},r.copy=function(){return As(t.copy(),e,n)},_o(r,t)}function js(t){return new Date(t)}Ds.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Os:Es,Os.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Os.toString=Es.toString,Ne.second=Ie(function(t){return new Pe(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),Ne.seconds=Ne.second.range,Ne.seconds.utc=Ne.second.utc.range,Ne.minute=Ie(function(t){return new Pe(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),Ne.minutes=Ne.minute.range,Ne.minutes.utc=Ne.minute.utc.range,Ne.hour=Ie(function(t){var e=t.getTimezoneOffset()/60;return new Pe(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),Ne.hours=Ne.hour.range,Ne.hours.utc=Ne.hour.utc.range,Ne.month=Ie(function(t){return(t=Ne.day(t)).setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),Ne.months=Ne.month.range,Ne.months.utc=Ne.month.utc.range;var Hs=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ns=[[Ne.second,1],[Ne.second,5],[Ne.second,15],[Ne.second,30],[Ne.minute,1],[Ne.minute,5],[Ne.minute,15],[Ne.minute,30],[Ne.hour,1],[Ne.hour,3],[Ne.hour,6],[Ne.hour,12],[Ne.day,1],[Ne.day,2],[Ne.week,1],[Ne.month,1],[Ne.month,3],[Ne.year,1]],Ps=Ds.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Zn]]),Fs={range:function(t,e,n){return a.range(Math.ceil(t/n)*n,+e,n).map(js)},floor:H,ceil:H};Ns.year=Ne.year,Ne.scale=function(){return As(a.scale.linear(),Ns,Ps)};var Vs=Ns.map(function(t){return[t[0].utc,t[1]]}),Is=Cs.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Zn]]);function Ws(t){return JSON.parse(t.responseText)}function Rs(t){var e=u.createRange();return e.selectNode(u.body),e.createContextualFragment(t.responseText)}Vs.year=Ne.year.utc,Ne.scale.utc=function(){return As(a.scale.linear(),Vs,Is)},a.text=be(function(t){return t.responseText}),a.json=function(t,e){return Me(t,"application/json",Ws,e)},a.html=function(t,e){return Me(t,"text/html",Rs,e)},a.xml=be(function(t){return t.responseXML}),this.d3=a,void 0===(i="function"==typeof(r=a)?r.call(e,n,e,t):r)||(t.exports=i)}()},function(t,e,n){"use strict";var r;n.d(e,"a",function(){return r}),function(t){t[t.Bit=0]="Bit",t[t.Word=1]="Word"}(r||(r={}))},function(t,e,n){"use strict";var r=n(11),i=n(14),a=n(25),o=n(22),s=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),u=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.a(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(o.a),l=n(51);n.d(e,"a",function(){return d});var c=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.a(e,t),e}(a.a),d=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.a(e,t),e.prototype[l.a]=function(){return new c(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s;return this.hasError?(t.error(this.thrownError),o.a.EMPTY):this.isStopped?(t.complete(),o.a.EMPTY):(this.observers.push(t),new u(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.a),h=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.a(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):o.a.EMPTY},e}(d)},function(t,e,n){"use strict";function r(t){setTimeout(function(){throw t},0)}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";var r=n(0),i=n(3),a=n(9),o=n(13),s=n(7),u=n(6),l=n(30),c=n(28),d=n(15);var h=n(24);n.d(e,"a",function(){return p});var f=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},m=function(t,e){return function(n,r){e(n,r,t)}};let p=class{constructor(t,e,n,i){this.el=t,this.localization=e,this.injector=n,this.bsModalService=i,this.loadFailed=new r.EventEmitter,this.loaded=new r.EventEmitter,this.lastScale=1,this.isMobileMode=!1,this.globalSettings=this.injector.get(o.b)}get viewResizeMode(){switch(this.resizeMode){case"HorizontalUniform":return o.c.HorizontalUniform;default:return o.c.Uniform}}ngOnChanges(t){t.displayMode&&this.onDisplayModeChanged(t.displayMode.previousValue,t.displayMode.currentValue),t.context&&this.onProviderChanged(t.context.previousValue,t.context.currentValue),t.size&&this.onSizeChanged(t.size.previousValue,t.size.currentValue),t.resizeMode&&this.onResizeModeChanged(t.resizeMode.previousValue,t.resizeMode.currentValue)}doubleFingerZooming(){const t=this.$svg.find("div.svg-content").first()[0],e=this;e.initWidth=t.offsetWidth,e.initHeight=t.offsetHeight,e.lastScale=1,t.addEventListener("touchstart",function(n){e.pageX=n.targetTouches[0].pageX,e.pageY=n.targetTouches[0].pageY,e.initX=Object(i.isNaN)(parseInt(t.style.left,10))?0:parseInt(t.style.left,10),e.initY=Object(i.isNaN)(parseInt(t.style.top,10))?0:parseInt(t.style.top,10),n.touches.length>=2&&(e.startTouch=n.touches),e.isTouch=!0},!1),t.addEventListener("touchmove",function(n){if(1===n.touches.length&&e.isTouch&&e.lastScale>1){n.preventDefault();const r=n.targetTouches[0].pageX,i=n.targetTouches[0].pageY,a=Number(r)-Number(e.pageX)+Number(e.initX),o=Number(i)-Number(e.pageY)+Number(e.initY);a>-(e.lastScale-1)*e.initWidth/2&&a<(e.lastScale-1)*e.initWidth/2&&(t.style.left=a+"px"),o>-(e.lastScale-1)*e.initHeight/2&&o<(e.lastScale-1)*e.initHeight/2&&(t.style.top=o+"px")}if(n.touches.length>=2&&e.isTouch){n.preventDefault();const r=n.touches,i=e.getDistance(r[0],r[1])/e.getDistance(e.startTouch[0],e.startTouch[1]);let a=e.lastScale;i>=1&&(a*=1.008),a<1&&(a=1),a>5&&(a=5),i<1&&(a*=.992,t.style.left=-(a-1)*e.initWidth/8+"px",t.style.top=-(a-1)*e.initHeight/8+"px"),t.style.transform="scale("+a+")",e.lastScale=a}},!1),t.addEventListener("touchend",function(){e.isTouch&&(e.isTouch=!1)},!1)}getDistance(t,e){const n=e.pageX-t.pageX,r=e.pageY-t.pageY;return Math.sqrt(n*n+r*r)}ngOnDestroy(){this.host&&this.host.dispose()}onProviderChanged(t,e){if(!Object(i.isEqual)(t,e))if(this.host&&(this.host.dispose(),this.host=null),e){this.$svg=$(this.el.nativeElement).find("div.svgView").first(),this.$svg.empty();const t="S"+h.a.newGuid().toString("n"),n="H"+h.a.newGuid().toString("n");this.$svg.addClass(t);const r={svgRootClass:t,hostContainerId:n,el:this.el},a=new class{constructor(t,e,n,r,i){this.injector=t,this.bsModalService=e,this.context=n,this.guiOptions=r,this.el=i,this.logger=t.get(s.b),t.get(l.a).toggleViews.set(i,(t,e,n)=>(this.currentViewIndex=t,this.context.configStore.viewStore.getViewConfig(t).pipe(Object(d.map)(r=>{if(this.currentViewIndex!==t)return;if(!r||!r.config||!r.config.length)throw new u.a;this.currentView&&this.currentView.dispose(),this.currentView=new c.a(this.injector,this.bsModalService,this.context);const i={svgRootClass:this.guiOptions.svgRootClass,hostContainerId:e,el:n};this.currentView.load(r,i),this.currentView.resize(this.currentViewSize,this.currentViewReiszeMode,this.guiOptions.svgRootClass),this.containerEl=$(n.nativeElement).find(`div#${e}`).first(),this.containerEl.empty(),this.containerEl.append(this.currentView.element),this.logger.debug(`[GUI] Toggle View(${t}) successed.`)}))))}get element(){if(this.containerEl)return this.containerEl[0];throw new Error("Gui Host not loaded yet.")}load(t){if(this.isLoaded)throw new Error("The GuiHost already loaded.");return this.isLoaded=!0,this.containerEl=$(`<div class="svg-content" id= "${this.guiOptions.hostContainerId}" style="display:flex;position:relative;"></div>`),new Promise((e,n)=>{t&&0!==t?this.loadViewConfigByConfigureViewId(e,n,t):this.loadMainViewConfig(e,n)})}loadByConfigureViewCode(t){if(this.isLoaded)throw new Error("The GuiHost already loaded.");return this.isLoaded=!0,this.containerEl=$(`<div class="svg-content" id= "${this.guiOptions.hostContainerId}" style="display: inline-block;position: relative;"></div>`),new Promise((e,n)=>{t?this.loadViewConfigByConfigureViewCode(e,n,t):this.loadMainViewConfig(e,n)})}loadMainViewConfig(t,e){this.context.configStore.viewStore.getMainViewConfig().subscribe(n=>{n.config&&n.config.length?(this.currentView=new c.a(this.injector,this.bsModalService,this.context),this.currentView.load(n,this.guiOptions),this.containerEl.empty(),this.containerEl.append(this.currentView.element),t(this),this.logger.debug("[GUI] Host loaded.")):e(new u.a)},t=>{this.logger.error("[GUI] Load failed: "+t.stack),e(t)})}loadViewConfigByConfigureViewId(t,e,n){this.context.configStore.viewStore.getViewConfigByConfigureViewId(n).subscribe(n=>{this.handleViewConfigCallback(t,e,n)},t=>{this.logger.error("[GUI] Load failed: "+t.stack),e(t)})}loadViewConfigByConfigureViewCode(t,e,n){this.context.configStore.viewStore.getViewConfigByConfigureViewCode(n).subscribe(n=>{this.handleViewConfigCallback(t,e,n)},t=>{this.logger.error("[GUI] Load failed: "+t.stack),e(t)})}handleViewConfigCallback(t,e,n){n.config&&n.config.length||e(new u.a),this.currentView=new c.a(this.injector,this.bsModalService,this.context),this.currentView.load(n,this.guiOptions),this.containerEl.empty(),this.containerEl.append(this.currentView.element),t(this),this.logger.debug("[GUI] Host loaded.")}resizeView(t,e){this.currentView&&(this.currentView.resize(t,e,this.guiOptions.svgRootClass),this.currentViewSize=t,this.currentViewReiszeMode=e)}updateViewSize(t){this.currentView&&(this.currentView.resize(t,this.currentViewReiszeMode,this.guiOptions.svgRootClass),this.currentViewSize=t)}updateViewResizeMode(t){this.currentView&&(this.currentView.resize(this.currentViewSize,t,this.guiOptions.svgRootClass),this.currentViewReiszeMode=t)}dispose(){this.currentView&&this.currentView.dispose(),this.context&&this.context.dispose(),this.logger.debug("[GUI] GuiHost disposed.")}}(this.injector,this.bsModalService,e,r,this.el);(this.context.configureViewCode?a.loadByConfigureViewCode(this.context.configureViewCode):a.load(this.context.configureViewId)).then(t=>{Object(i.isEqual)(this.context,t.context)?(this.host=a,this.host.resizeView(this.size,this.viewResizeMode),this.$svg.append(t.element),this.isMobileMode&&this.doubleFingerZooming(),this.loaded.emit()):t.dispose()}).catch(t=>{this.$svg.append(`<p>${this.localization.loadFailed}</p>`),this.loadFailed.emit(t)})}else this.$svg&&this.$svg.empty(),this.host=null}onSizeChanged(t,e){this.host&&!Object(i.isEqual)(t,e)&&(this.host.updateViewSize(e),this.isMobileMode&&this.doubleFingerZooming())}onResizeModeChanged(t,e){this.host&&!Object(i.isEqual)(t,e)&&this.host.updateViewResizeMode(this.viewResizeMode)}onDisplayModeChanged(t,e){Object(i.isEqual)(t,e)||(this.isMobileMode="Mobile"===this.displayMode,this.globalSettings.displayMode=this.isMobileMode?o.a.Mobile:o.a.Web)}};f([Object(r.Input)()],p.prototype,"context",void 0),f([Object(r.Input)()],p.prototype,"size",void 0),f([Object(r.Input)()],p.prototype,"resizeMode",void 0),f([Object(r.Input)()],p.prototype,"displayMode",void 0),f([Object(r.Output)()],p.prototype,"loadFailed",void 0),f([Object(r.Output)()],p.prototype,"loaded",void 0),p=f([Object(r.Component)({selector:"fc-gui",template:"<div> <div class='svgView' style=\"position: relative;display: flex;justify-content: center;align-items: center;\"></div> </div> "}),m(1,Object(r.Inject)(a.b))],p)},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),i=n(33),a=n(9),o=n(3),s=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},u=function(t,e){return function(n,r){e(n,r,t)}};let l=class{constructor(t,e,n,r){this.localization=t,this.dataTypeService=e,this.fractionDigitService=n,this.numericalOperationService=r,this._onClosed=new i.a,this.writeValueRangeText=""}get onClosed(){return this._onClosed}get invalidErrorText(){return this.localization.loadFailed}ngOnInit(){this.initData(this.args),this.validate()}initData(t){this.variableName=t.variableName,this.dataType=t.dataType,this.integerDigits=t.integerDigits?t.integerDigits:0,this.fractionDigits=t.fractionDigits?t.fractionDigits:0,this.valueType=this.dataTypeService.getValueType(t.version,t.dataType),this.pattern=this.dataTypeService.getValuePattern(t.version,t.dataType),this.numericalOperation=t.numericalOperation,this.enableNumericalOperation=!!this.numericalOperation.enableNumericalOperation&&this.numericalOperation.enableNumericalOperation,this.value="",this.args.enableDataParsed?this.setValueRangeAccordToDataParsed(t):(this.writeMaxValue=this.dataTypeService.getMaxValue(t.version,this.dataType),this.writeMinValue=this.dataTypeService.getMinValue(t.version,this.dataType)),this.writeValueRangeText=this.getWriteValueRangeText()}setValueRangeAccordToDataParsed(t){this.dataTypeService.isFloat(t.version,this.dataType)||this.enableNumericalOperation?(this.maxValueLimit=this.dataTypeService.getMaxValue(t.version,this.dataType),this.minValueLimit=this.dataTypeService.getMinValue(t.version,this.dataType),this.numericalLowerLimit=this.numericalOperation.numericalLowerLimit,this.numericalUpperLimit=this.numericalOperation.numericalUpperLimit):(this.maxValueLimit=+this.fractionDigitService.movePoint(this.dataTypeService.getMaxValue(t.version,this.dataType),-this.fractionDigits),this.minValueLimit=+this.fractionDigitService.movePoint(this.dataTypeService.getMinValue(t.version,this.dataType),-this.fractionDigits),this.numericalLowerLimit=+this.fractionDigitService.movePoint(this.numericalOperation.numericalLowerLimit,-this.fractionDigits),this.numericalUpperLimit=+this.fractionDigitService.movePoint(this.numericalOperation.numericalUpperLimit,-this.fractionDigits));const e=this.numericalOperationService.getWriteMinValue(this.minValueLimit,this.numericalOperation),n=this.numericalOperationService.getWriteMaxValue(this.maxValueLimit,this.numericalOperation),r=this.numericalOperationService.getWriteMinValue(this.numericalLowerLimit,this.numericalOperation),i=this.numericalOperationService.getWriteMaxValue(this.numericalUpperLimit,this.numericalOperation),a=e<n?e:n,o=e<n?n:e,s=r<i?r:i,u=r<i?i:r;this.writeMinValue=a>s?a:s,this.writeMaxValue=o<u?o:u}getWriteValueRangeText(){let t="",e="";return this.dataTypeService.isHexOrBinaryType(this.args.version,this.dataType)?(t=this.writeMinValue.toString(16),e=this.writeMaxValue.toString(16)):this.args.enableDataParsed&&this.fractionDigits>0?(t=this.writeMinValue.toFixed(this.fractionDigits).toString(),e=this.writeMaxValue.toFixed(this.fractionDigits).toString()):(t=this.writeMinValue.toString(),e=this.writeMaxValue.toString()),t+"~"+e}save(){this.args.enableDataParsed&&(this.enableNumericalOperation?this.value=this.numericalOperationService.getWriteValue(this.args.version,this.value,this.numericalOperation,this.dataType,this.fractionDigits):this.value=this.formatWriteValue()),this.close({value:this.value})}close(t){this._onClosed.next(t),this._onClosed.complete()}validate(){if(null==this.value||""===this.value.trim())return this.showValidationErrorInfo(this.localization.numericalValueRequired);if(!new RegExp(this.pattern).test(this.value))return this.showValidationErrorInfo(this.localization.invalidNumericalValue);if(!this.enableNumericalOperation&&this.dataTypeService.isSupportFractionDigit(this.args.version,this.dataType)&&this.getFractionDigits(this.value)>this.fractionDigits)return this.showValidationErrorInfo(`${this.localization.fractionDigitsMustLessThan}${this.fractionDigits}`);if((Object(o.isNil)(this.args.version)||!Object(o.isNil)(this.args.version)&&this.args.version<5)&&!this.enableNumericalOperation&&!this.dataTypeService.isSignedType(this.args.version,this.dataType)&&this.value.startsWith("-"))return this.showValidationErrorInfo(this.localization.canNotBeNegative);if(this.dataTypeService.isBinaryType(this.args.version,this.dataType)||this.dataTypeService.isHexType(this.args.version,this.dataType)){const t=this.dataTypeService.getValueMaxLength(this.args.version,this.dataType),e=this.integerDigits?Math.min(this.integerDigits,t):t;if(this.value.length>e)return this.showValidationErrorInfo(this.localization.numericalValueTooLong)}let t;if(t=this.dataTypeService.isHexOrBinaryType(this.args.version,this.dataType)?this.dataTypeService.formatToDecimal(this.args.version,this.value,this.dataType):Number(this.value),Number(t)>this.writeMaxValue||Number(t)<this.writeMinValue)return this.showValidationErrorInfo(this.localization.valueOutOfRange);this.hideValidationErrorInfo()}showValidationErrorInfo(t){this.validationError=!0,this.validationErrorText=t}hideValidationErrorInfo(){this.validationError=!1,this.validationErrorText=""}getFractionDigits(t){return t&&t.indexOf(".")>0?t.split(".")[1].length:0}formatWriteValue(){return this.dataTypeService.isSupportFractionDigit(this.args.version,this.dataType)&&!this.dataTypeService.isFloat(this.args.version,this.dataType)&&this.fractionDigits?this.fractionDigitService.movePoint(this.value,this.fractionDigits):(this.dataTypeService.isSupportNumericalOperation(this.args.version,this.dataType)&&(this.value=Number(this.value).toString()),this.value)}};s([Object(r.Output)()],l.prototype,"invalidErrorText",null),l=s([Object(r.Component)({selector:"writeValueModal",template:'<form #writeValueForm="ngForm" novalidate (ngSubmit)="save()" bs-modal-drag> <div class="modal-header"> <h4 class="modal-title"> <span>{{localization.setting}}</span> <span>{{variableName}}</span> </h4> <button type="button" class="close pull-right" aria-label="Close" (click)="close()"> <span aria-hidden="true">&times;</span> </button> </div> <div class="modal-body"> <span class="write-value-range">{{localization.writeValueRange}}:&nbsp;{{writeValueRangeText}} <span *ngIf="valueType">({{valueType}})</span> </span> <input type="text" name="valueInput" autoFocus class="form-control write-value" [(ngModel)]="value" (keyup)="validate()" autocomplete="off"> <span class="help-block text-danger" [hidden]="!validationError">{{validationErrorText}}</span> </div> <div class="modal-footer"> <button type="submit" class="btn md-skip btn-primary btn-block" [disabled]="validationError">{{localization.submit}}</button> </div> </form> ',styles:[".modal-header { padding: 10px; border-color: transparent; } .modal-body { position: relative; padding: 0px 5px !important; padding-top: 10px !important; } .modal-title { display: unset; margin-left: -6px; font-size: 16px !important; } .form-control { margin: 0 5%; float: none; width: 90%; } .modal-footer { padding: 10px 4px 20px 5px !important; text-align: right; border-color: transparent; } .text-danger { display: block; color: #ed6b75; font-size: 14px; margin: 5px 0px 0px 15px; } .btn-primary { background-color: #3B97FC; border-color: #3B97FC; padding: 5px 30px; width: 90%; margin: 0 5%; height: 32px; } .write-value-range { color: #7f939e; font-size: 14px; margin-left: 15px; } .write-value { padding-left: 8px; margin-left: 16px; height: 32px; } "]}),u(0,Object(r.Inject)(a.b))],l)},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),i=n(33),a=n(9),o=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},s=function(t,e){return function(n,r){e(n,r,t)}};let u=class{constructor(t){this.localization=t,this._onClosed=new i.a}get onClosed(){return this._onClosed}get invalidErrorText(){return this.localization.loadFailed}ngOnInit(){this.variableName=this.args.variableName,this.isPassword=!!this.args.isPassword&&this.args.isPassword,this.charCount=this.args.charCount,this.value="",this.validate()}validate(){return null==this.value||""===this.value.trim()?this.showValidationErrorInfo(this.localization.characterInputRequired):this.value.length>this.charCount?this.showValidationErrorInfo(this.localization.characterOutofRange):void this.hideValidationErrorInfo()}showValidationErrorInfo(t){this.validationError=!0,this.validationErrorText=t}hideValidationErrorInfo(){this.validationError=!1,this.validationErrorText=""}save(){this.close({value:this.value})}close(t){this._onClosed.next(t),this._onClosed.complete()}};o([Object(r.Output)()],u.prototype,"invalidErrorText",null),u=o([Object(r.Component)({selector:"writeCharacterModal",template:'<form #writeValueForm="ngForm" novalidate (ngSubmit)="save()" bs-modal-drag> <div class="modal-header"> <h4 class="modal-title"> <span>{{localization.setting}}</span> <span>{{variableName}}</span> </h4> <button type="button" class="close pull-right" aria-label="Close" (click)="close()"> <span aria-hidden="true">&times;</span> </button> </div> <div class="modal-body"> <input type="text" name="characterInput" autoFocus class="form-control write-character-value" [(ngModel)]="value" (keyup)="validate()" *ngIf="!isPassword" autocomplete="off"> <input type="password" name="passwordInput" autoFocus class="form-control write-character-value" [(ngModel)]="value" (keyup)="validate()" *ngIf="isPassword" autocomplete="off"> <span class="help-block text-danger" [hidden]="!validationError">{{validationErrorText}}</span> </div> <div class="modal-footer"> <button type="submit" class="btn md-skip btn-primary btn-block" [disabled]="validationError">{{localization.submit}}</button> </div> </form> ',styles:[".modal-header { padding: 10px; border-color: transparent; } .modal-body { position: relative; padding: 0px 5px !important; } .modal-title { display: unset; margin-left: -6px; font-size: 16px !important; } .form-control { margin: 0 5%; float: none; width: 90%; } .modal-footer { padding: 10px 4px 20px 5px !important; text-align: right; border-color: transparent; } .text-danger { display: block; color: #ed6b75; font-size: 14px; margin: 10px 0px 0px 15px; } .btn-primary { background-color: #3B97FC; border-color: #3B97FC; padding: 5px 30px; width: 90%; margin: 0 5%; height: 32px; } .write-character-value { padding-left: 8px; height: 32px; margin-left: 16px; } "]}),s(0,Object(r.Inject)(a.b))],u)},function(t,e,n){!function(){var r={dev:!1};r.tooltip=r.tooltip||{},r.utils=r.utils||{},r.models=r.models||{},r.charts={},r.logs={},r.dom={},void 0!==t&&void 0!==e&&"undefined"==typeof d3&&(d3=n(31)),r.dispatch=d3.dispatch("render_start","render_end"),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),r.dev&&(r.dispatch.on("render_start",function(t){r.logs.startTime=+new Date}),r.dispatch.on("render_end",function(t){r.logs.endTime=+new Date,r.logs.totalTime=r.logs.endTime-r.logs.startTime,r.log("total",r.logs.totalTime)})),r.log=function(){if(r.dev&&window.console&&console.log&&console.log.apply)console.log.apply(console,arguments);else if(r.dev&&window.console&&"function"==typeof console.log&&Function.prototype.bind){Function.prototype.bind.call(console.log,console).apply(console,arguments)}return arguments[arguments.length-1]},r.deprecated=function(t,e){console&&console.warn&&console.warn("nvd3 warning: `"+t+"` has been deprecated. ",e||"")},r.render=function(t){t=t||1,r.render.active=!0,r.dispatch.render_start();var e=function(){for(var n,i,a=0;a<t&&(i=r.render.queue[a]);a++)n=i.generate(),typeof i.callback==typeof Function&&i.callback(n);r.render.queue.splice(0,a),r.render.queue.length?setTimeout(e):(r.dispatch.render_end(),r.render.active=!1)};setTimeout(e)},r.render.active=!1,r.render.queue=[],r.addGraph=function(t){typeof arguments[0]==typeof Function&&(t={generate:arguments[0],callback:arguments[1]}),r.render.queue.push(t),r.render.active||r.render()},t.exports=r,"undefined"!=typeof window&&(window.nv=r),r.dom.write=function(t){return void 0!==window.fastdom?fastdom.mutate(t):t()},r.dom.read=function(t){return void 0!==window.fastdom?fastdom.measure(t):t()},r.interactiveGuideline=function(){"use strict";var t={left:0,top:0},e=null,n=null,i=d3.scale.linear(),a=d3.dispatch("elementMousemove","elementMouseout","elementClick","elementDblclick","elementMouseDown","elementMouseUp"),o=!0,s=null,u=r.models.tooltip(),l=window.ActiveXObject;function c(d){d.each(function(d){var h=d3.select(this),f=e||960,m=n||400,p=h.selectAll("g.nv-wrap.nv-interactiveLineLayer").data([d]);function g(){var e=d3.event.clientX-this.getBoundingClientRect().left,n=d3.event.clientY-this.getBoundingClientRect().top,r=!0,o=!1;if(l&&(e=d3.event.offsetX,n=d3.event.offsetY,"svg"!==d3.event.target.tagName&&(r=!1),d3.event.target.className.baseVal.match("nv-legend")&&(o=!0)),r&&(e-=t.left,n-=t.top),"mouseout"===d3.event.type||e<0||n<0||e>f||n>m||d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement||o){if(l&&d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement&&(void 0===d3.event.relatedTarget.className||d3.event.relatedTarget.className.match(u.nvPointerEventsClass)))return;return a.elementMouseout({mouseX:e,mouseY:n}),c.renderGuideLine(null),void u.hidden(!0)}u.hidden(!1);var s=void 0;if("function"==typeof i.rangeBands){var d=d3.bisect(i.range(),e)-1;if(!(i.range()[d]+i.rangeBand()>=e))return a.elementMouseout({mouseX:e,mouseY:n}),c.renderGuideLine(null),void u.hidden(!0);s=i.domain()[d3.bisect(i.range(),e)-1]}else s=i.invert(e);a.elementMousemove({mouseX:e,mouseY:n,pointXValue:s}),"dblclick"===d3.event.type&&a.elementDblclick({mouseX:e,mouseY:n,pointXValue:s}),"click"===d3.event.type&&a.elementClick({mouseX:e,mouseY:n,pointXValue:s}),"mousedown"===d3.event.type&&a.elementMouseDown({mouseX:e,mouseY:n,pointXValue:s}),"mouseup"===d3.event.type&&a.elementMouseUp({mouseX:e,mouseY:n,pointXValue:s})}p.enter().append("g").attr("class"," nv-wrap nv-interactiveLineLayer").append("g").attr("class","nv-interactiveGuideLine"),s&&(s.on("touchmove",g).on("mousemove",g,!0).on("mouseout",g,!0).on("mousedown",g,!0).on("mouseup",g,!0).on("dblclick",g).on("click",g),c.guideLine=null,c.renderGuideLine=function(t){o&&(c.guideLine&&c.guideLine.attr("x1")===t||r.dom.write(function(){var e=p.select(".nv-interactiveGuideLine").selectAll("line").data(null!=t?[r.utils.NaNtoZero(t)]:[],String);e.enter().append("line").attr("class","nv-guideline").attr("x1",function(t){return t}).attr("x2",function(t){return t}).attr("y1",m).attr("y2",0),e.exit().remove()}))})})}return u.duration(0).hideDelay(0).hidden(!1),c.dispatch=a,c.tooltip=u,c.margin=function(e){return arguments.length?(t.top=void 0!==e.top?e.top:t.top,t.left=void 0!==e.left?e.left:t.left,c):t},c.width=function(t){return arguments.length?(e=t,c):e},c.height=function(t){return arguments.length?(n=t,c):n},c.xScale=function(t){return arguments.length?(i=t,c):i},c.showGuideLine=function(t){return arguments.length?(o=t,c):o},c.svgContainer=function(t){return arguments.length?(s=t,c):s},c},r.interactiveBisect=function(t,e,n){"use strict";if(!(t instanceof Array))return null;var r;r="function"!=typeof n?function(t){return t.x}:n;var i=d3.bisector(function(t,e){return r(t)-e}).left,a=d3.max([0,i(t,e)-1]),o=r(t[a]);if(void 0===o&&(o=a),o===e)return a;var s=d3.min([a+1,t.length-1]),u=r(t[s]);return void 0===u&&(u=s),Math.abs(u-e)>=Math.abs(o-e)?a:s},r.nearestValueIndex=function(t,e,n){"use strict";var r=1/0,i=null;return t.forEach(function(t,a){var o=Math.abs(e-t);null!=t&&o<=r&&o<n&&(r=o,i=a)}),i},r.models.tooltip=function(){"use strict";var t="nvtooltip-"+Math.floor(1e5*Math.random()),e=null,n="w",i=25,a=0,o=null,s=!0,u=200,l=null,c={left:null,top:null},d=!0,h=100,f=!0,m="nv-pointer-events-none",p=function(t,e,n){return t},g=function(t){return t},v=function(t,e){return t},_=function(t,e){if(null===t)return"";var n=d3.select(document.createElement("table"));f&&n.selectAll("thead").data([t]).enter().append("thead").append("tr").append("td").attr("colspan",3).append("strong").classed("x-value",!0).html(g(t.value));var r=n.selectAll("tbody").data([t]).enter().append("tbody").selectAll("tr").data(function(t){return t.series}).enter().append("tr").classed("highlight",function(t){return t.highlight});r.append("td").classed("legend-color-guide",!0).append("div").style("background-color",function(t){return t.color}),r.append("td").classed("key",!0).classed("total",function(t){return!!t.total}).html(function(t,e){return v(t.key,e)}),r.append("td").classed("value",!0).html(function(t,e){return p(t.value,e,t)}),r.filter(function(t,e){return void 0!==t.percent}).append("td").classed("percent",!0).html(function(t,e){return"("+d3.format("%")(t.percent)+")"}),r.selectAll("td").each(function(t){if(t.highlight){var e=d3.scale.linear().domain([0,1]).range(["#fff",t.color]);d3.select(this).style("border-bottom-color",e(.6)).style("border-top-color",e(.6))}});var i=n.node().outerHTML;return void 0!==t.footer&&(i+="<div class='footer'>"+t.footer+"</div>"),i},y=function(){var t={left:null!==d3.event?d3.event.clientX:0,top:null!==d3.event?d3.event.clientY:0};if("none"!=getComputedStyle(document.body).transform){var e=document.body.getBoundingClientRect();t.left-=e.left,t.top-=e.top}return t},b=function(t){if(t&&t.series){if(r.utils.isArray(t.series))return!0;if(r.utils.isObject(t.series))return t.series=[t.series],!0}return!1},M=function(){r.dom.read(function(){var t=y(),e=function(t){var e,r,a,o=l.node().offsetHeight,s=l.node().offsetWidth,u=document.documentElement.clientWidth,c=document.documentElement.clientHeight;switch(n){case"e":e=-s-i,r=-o/2,t.left+e<0&&(e=i),(a=t.top+r)<0&&(r-=a),(a=t.top+r+o)>c&&(r-=a-c);break;case"w":e=i,r=-o/2,t.left+e+s>u&&(e=-s-i),(a=t.top+r)<0&&(r-=a),(a=t.top+r+o)>c&&(r-=a-c);break;case"n":e=-s/2-5,r=i,t.top+r+o>c&&(r=-o-i),(a=t.left+e)<0&&(e-=a),(a=t.left+e+s)>u&&(e-=a-u);break;case"s":e=-s/2,r=-o-i,t.top+r<0&&(r=i),(a=t.left+e)<0&&(e-=a),(a=t.left+e+s)>u&&(e-=a-u);break;case"center":e=-s/2,r=-o/2;break;default:e=0,r=0}return{left:e,top:r}}(t),r=t.left+e.left,a=t.top+e.top;if(s)l.interrupt().transition().delay(u).duration(0).style("opacity",0);else{var o="translate("+c.left+"px, "+c.top+"px)",d="translate("+Math.round(r)+"px, "+Math.round(a)+"px)",f=d3.interpolateString(o,d),m=l.style("opacity")<.1;l.interrupt().transition().duration(m?0:h).styleTween("transform",function(t){return f},"important").styleTween("-webkit-transform",function(t){return f}).style("-ms-transform",d).style("opacity",1)}c.left=r,c.top=a})};function w(){if(d&&b(e))return r.dom.write(function(){l&&l.node()||((l=d3.select(document.body).selectAll("#"+t).data([1])).enter().append("div").attr("class","nvtooltip "+(o||"xy-tooltip")).attr("id",t).style("top",0).style("left",0).style("opacity",0).style("position","absolute").selectAll("div, table, td, tr").classed(m,!0).classed(m,!0),l.exit().remove());var n=_(e,l.node());n&&(l.node().innerHTML=n),M()}),w}return w.nvPointerEventsClass=m,w.options=r.utils.optionsFunc.bind(w),w._options=Object.create({},{duration:{get:function(){return h},set:function(t){h=t}},gravity:{get:function(){return n},set:function(t){n=t}},distance:{get:function(){return i},set:function(t){i=t}},snapDistance:{get:function(){return a},set:function(t){a=t}},classes:{get:function(){return o},set:function(t){o=t}},enabled:{get:function(){return d},set:function(t){d=t}},hideDelay:{get:function(){return u},set:function(t){u=t}},contentGenerator:{get:function(){return _},set:function(t){_=t}},valueFormatter:{get:function(){return p},set:function(t){p=t}},headerFormatter:{get:function(){return g},set:function(t){g=t}},keyFormatter:{get:function(){return v},set:function(t){v=t}},headerEnabled:{get:function(){return f},set:function(t){f=t}},position:{get:function(){return y},set:function(t){y=t}},chartContainer:{get:function(){return document.body},set:function(t){r.deprecated("chartContainer","feature removed after 1.8.3")}},fixedTop:{get:function(){return null},set:function(t){r.deprecated("fixedTop","feature removed after 1.8.1")}},offset:{get:function(){return{left:0,top:0}},set:function(t){r.deprecated("offset","use chart.tooltip.distance() instead")}},hidden:{get:function(){return s},set:function(t){s!=t&&(s=!!t,w())}},data:{get:function(){return e},set:function(t){t.point&&(t.value=t.point.x,t.series=t.series||{},t.series.value=t.point.y,t.series.color=t.point.color||t.series.color),e=t}},node:{get:function(){return l.node()},set:function(t){}},id:{get:function(){return t},set:function(t){}}}),r.utils.initOptions(w),w},r.utils.windowSize=function(){var t={width:640,height:480};return window.innerWidth&&window.innerHeight?(t.width=window.innerWidth,t.height=window.innerHeight,t):"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetWidth?(t.width=document.documentElement.offsetWidth,t.height=document.documentElement.offsetHeight,t):document.body&&document.body.offsetWidth?(t.width=document.body.offsetWidth,t.height=document.body.offsetHeight,t):t},r.utils.isArray=Array.isArray,r.utils.isObject=function(t){return null!==t&&"object"==typeof t},r.utils.isFunction=function(t){return"function"==typeof t},r.utils.isDate=function(t){return"[object Date]"===toString.call(t)},r.utils.isNumber=function(t){return!isNaN(t)&&"number"==typeof t},r.utils.windowResize=function(t){return window.addEventListener?window.addEventListener("resize",t):r.log("ERROR: Failed to bind to window.resize with: ",t),{callback:t,clear:function(){window.removeEventListener("resize",t)}}},r.utils.getColor=function(t){if(void 0===t)return r.utils.defaultColor();if(r.utils.isArray(t)){var e=d3.scale.ordinal().range(t);return function(t,n){var r=void 0===n?t:n;return t.color||e(r)}}return t},r.utils.defaultColor=function(){return r.utils.getColor(d3.scale.category20().range())},r.utils.customTheme=function(t,e,n){e=e||function(t){return t.key};var i=(n=n||d3.scale.category20().range()).length;return function(a,o){var s=e(a);return r.utils.isFunction(t[s])?t[s]():void 0!==t[s]?t[s]:(i||(i=n.length),n[i-=1])}},r.utils.pjax=function(t,e){var n=function(n){d3.html(n,function(n){var i=d3.select(e).node();i.parentNode.replaceChild(d3.select(n).select(e).node(),i),r.utils.pjax(t,e)})};d3.selectAll(t).on("click",function(){history.pushState(this.href,this.textContent,this.href),n(this.href),d3.event.preventDefault()}),d3.select(window).on("popstate",function(){d3.event.state&&n(d3.event.state)})},r.utils.calcApproxTextWidth=function(t){if(r.utils.isFunction(t.style)&&r.utils.isFunction(t.text)){var e=parseInt(t.style("font-size").replace("px",""),10),n=t.text().length;return r.utils.NaNtoZero(n*e*.5)}return 0},r.utils.NaNtoZero=function(t){return!r.utils.isNumber(t)||isNaN(t)||null===t||t===1/0||t===-1/0?0:t},d3.selection.prototype.watchTransition=function(t){var e=[this].concat([].slice.call(arguments,1));return t.transition.apply(t,e)},r.utils.renderWatch=function(t,e){if(!(this instanceof r.utils.renderWatch))return new r.utils.renderWatch(t,e);var n=void 0!==e?e:250,i=[],a=this;this.models=function(t){return[].slice.call(arguments,0).forEach(function(t){t.__rendered=!1,function(t){t.dispatch.on("renderEnd",function(e){t.__rendered=!0,a.renderEnd("model")})}(t),i.indexOf(t)<0&&i.push(t)}),this},this.reset=function(t){void 0!==t&&(n=t),i=[]},this.transition=function(t,e,r){if(r=(e=arguments.length>1?[].slice.call(arguments,1):[]).length>1?e.pop():void 0!==n?n:250,t.__rendered=!1,i.indexOf(t)<0&&i.push(t),0===r)return t.__rendered=!0,t.delay=function(){return this},t.duration=function(){return this},t;0===t.length?t.__rendered=!0:t.every(function(t){return!t.length})?t.__rendered=!0:t.__rendered=!1;var o=0;return t.transition().duration(r).each(function(){++o}).each("end",function(n,r){0==--o&&(t.__rendered=!0,a.renderEnd.apply(this,e))})},this.renderEnd=function(){i.every(function(t){return t.__rendered})&&(i.forEach(function(t){t.__rendered=!1}),t.renderEnd.apply(this,arguments))}},r.utils.deepExtend=function(t){(arguments.length>1?[].slice.call(arguments,1):[]).forEach(function(e){for(var n in e){var i=r.utils.isArray(t[n]),a=r.utils.isObject(t[n]),o=r.utils.isObject(e[n]);a&&!i&&o?r.utils.deepExtend(t[n],e[n]):t[n]=e[n]}})},r.utils.state=function(){if(!(this instanceof r.utils.state))return new r.utils.state;var t={},e=function(){},n=function(){return{}},i=null;this.dispatch=d3.dispatch("change","set"),this.dispatch.on("set",function(t){e(t,!0)}),this.getter=function(t){return n=t,this},this.setter=function(t,n){return n||(n=function(){}),e=function(e,r){t(e),r&&n()},this},this.init=function(t){i=i||{},r.utils.deepExtend(i,t)};this.update=function(){i&&(e(i,!1),i=null),function(){var e=n();if(JSON.stringify(e)===JSON.stringify(t))return!1;for(var r in e)void 0===t[r]&&(t[r]={}),t[r]=e[r],!0;return!0}.call(this)&&this.dispatch.change(t)}},r.utils.optionsFunc=function(t){return t&&d3.map(t).forEach(function(t,e){r.utils.isFunction(this[t])&&this[t](e)}.bind(this)),this},r.utils.calcTicksX=function(t,e){for(var n=1,i=0;i<e.length;i+=1){var a=e[i]&&e[i].values?e[i].values.length:0;n=a>n?a:n}return r.log("Requested number of ticks: ",t),r.log("Calculated max values to be: ",n),t=(t=t>n?t=n-1:t)<1?1:t,t=Math.floor(t),r.log("Calculating tick count as: ",t),t},r.utils.calcTicksY=function(t,e,n){if(n){for(var i=1,a=0;a<e.length;a+=1)for(var o,s=e[a]&&e[a].values?e[a].values:[],u=0;u<s.length;u+=1)i=(o=s[u]&&n(s[u])?n(s[u]):0)>i?o:i;return r.log("Requested number of ticks: ",t),r.log("Calculated max values to be: ",i),t=(t=t>i?i-1:t)<1?1:t,t=Math.floor(t),r.log("Calculating tick count as: ",t),t}return r.utils.calcTicksX(t,e)},r.utils.initOption=function(t,e){t._calls&&t._calls[e]?t[e]=t._calls[e]:(t[e]=function(n){return arguments.length?(t._overrides[e]=!0,t._options[e]=n,t):t._options[e]},t["_"+e]=function(n){return arguments.length?(t._overrides[e]||(t._options[e]=n),t):t._options[e]})},r.utils.initOptions=function(t){t._overrides=t._overrides||{};var e=Object.getOwnPropertyNames(t._options||{}),n=Object.getOwnPropertyNames(t._calls||{});for(var i in e=e.concat(n))r.utils.initOption(t,e[i])},r.utils.inheritOptionsD3=function(t,e,n){t._d3options=n.concat(t._d3options||[]),t._d3options=(t._d3options||[]).filter(function(t,e,n){return n.indexOf(t)===e}),n.unshift(e),n.unshift(t),d3.rebind.apply(this,n)},r.utils.arrayUnique=function(t){return t.sort().filter(function(e,n){return!n||e!=t[n-1]})},r.utils.symbolMap=d3.map(),r.utils.symbol=function(){var t,e=64;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i);return-1!==d3.svg.symbolTypes.indexOf(a)?d3.svg.symbol().type(a).size(o)():r.utils.symbolMap.get(a)(o)}return n.type=function(e){return arguments.length?(t=d3.functor(e),n):t},n.size=function(t){return arguments.length?(e=d3.functor(t),n):e},n},r.utils.inheritOptions=function(t,e){var n=Object.getOwnPropertyNames(e._options||{}),i=Object.getOwnPropertyNames(e._calls||{}),a=e._inherited||[],o=e._d3options||[],s=n.concat(i).concat(a).concat(o);s.unshift(e),s.unshift(t),d3.rebind.apply(this,s),t._inherited=r.utils.arrayUnique(n.concat(i).concat(a).concat(n).concat(t._inherited||[])),t._d3options=r.utils.arrayUnique(o.concat(t._d3options||[]))},r.utils.initSVG=function(t){t.classed({"nvd3-svg":!0})},r.utils.sanitizeHeight=function(t,e){return t||parseInt(e.style("height"),10)||400},r.utils.sanitizeWidth=function(t,e){return t||parseInt(e.style("width"),10)||960},r.utils.availableHeight=function(t,e,n){return Math.max(0,r.utils.sanitizeHeight(t,e)-n.top-n.bottom)},r.utils.availableWidth=function(t,e,n){return Math.max(0,r.utils.sanitizeWidth(t,e)-n.left-n.right)},r.utils.noData=function(t,e){var n=t.options(),i=n.margin(),a=n.noData(),o=null==a?["No Data Available."]:[a],s=r.utils.availableHeight(null,e,i),u=r.utils.availableWidth(null,e,i),l=i.left+u/2,c=i.top+s/2;e.selectAll("g").remove();var d=e.selectAll(".nv-noData").data(o);d.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),d.attr("x",l).attr("y",c).text(function(t){return t})},r.utils.wrapTicks=function(t,e){t.each(function(){for(var t,n=d3.select(this),r=n.text().split(/\s+/).reverse(),i=[],a=0,o=n.attr("y"),s=parseFloat(n.attr("dy")),u=n.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",s+"em");t=r.pop();)i.push(t),u.text(i.join(" ")),u.node().getComputedTextLength()>e&&(i.pop(),u.text(i.join(" ")),i=[t],u=n.append("tspan").attr("x",0).attr("y",o).attr("dy",1.1*++a+s+"em").text(t))})},r.utils.arrayEquals=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(t.length!=e.length)return!1;for(var n=0,i=t.length;n<i;n++)if(t[n]instanceof Array&&e[n]instanceof Array){if(!r.arrayEquals(t[n],e[n]))return!1}else if(t[n]!=e[n])return!1;return!0},r.utils.pointIsInArc=function(t,e,n){var r=n.innerRadius()(e),i=n.outerRadius()(e),a=n.startAngle()(e),o=n.endAngle()(e),s=t.x*t.x+t.y*t.y,u=Math.atan2(t.x,-t.y);return u=u<0?u+2*Math.PI:u,r*r<=s&&s<=i*i&&a<=u&&u<=o},r.models.axis=function(){"use strict";var t,e,n=d3.svg.axis(),i=d3.scale.linear(),a={top:0,right:0,bottom:0,left:0},o=75,s=60,u=null,l=!0,c=0,d=!0,h=!1,f=!1,m=null,p=0,g=void 0,v=250,_=d3.dispatch("renderEnd");n.scale(i).orient("bottom").tickFormat(function(t){return t});var y=r.utils.renderWatch(_,v);function b(s){return y.reset(),s.each(function(s){var v=d3.select(this);r.utils.initSVG(v);var _=v.selectAll("g.nv-wrap.nv-axis").data([s]),b=(_.enter().append("g").attr("class","nvd3 nv-wrap nv-axis").append("g"),_.select("g"));null!==m?n.ticks(m):"top"!=n.orient()&&"bottom"!=n.orient()||n.ticks(Math.abs(i.range()[1]-i.range()[0])/100),b.watchTransition(y,"axis").call(n),e=e||n.scale();var M=n.tickFormat();null==M&&(M=e.tickFormat());var w,x,k,L=b.selectAll("text.nv-axislabel").data([u||null]);switch(L.exit().remove(),void 0!==g&&b.selectAll("g").select("text").style("font-size",g),n.orient()){case"top":w=p+36,L.enter().append("text").attr("class","nv-axislabel"),k=0,1===i.range().length?k=f?2*i.range()[0]+i.rangeBand():0:2===i.range().length?k=f?i.range()[0]+i.range()[1]+i.rangeBand():i.range()[1]:i.range().length>2&&(k=i.range()[i.range().length-1]+(i.range()[1]-i.range()[0])),L.attr("text-anchor","middle").attr("y",-w).attr("x",k/2),l&&((x=_.selectAll("g.nv-axisMaxMin").data(i.domain())).enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-x",0==e?"nv-axisMin-x":"nv-axisMax-x"].join(" ")}).append("text"),x.exit().remove(),x.attr("transform",function(t,e){return"translate("+r.utils.NaNtoZero(i(t))+",0)"}).select("text").attr("dy","-0.5em").attr("y",-n.tickPadding()).attr("text-anchor","middle").text(function(e,n){var r=(t||M)(e);return(""+r).match("NaN")?"":r}),x.watchTransition(y,"min-max top").attr("transform",function(t,e){return"translate("+r.utils.NaNtoZero(i.range()[e])+",0)"}));break;case"bottom":w=p+36;var S=30,Y=0,T=b.selectAll("g").select("text"),D="";if(c%360){T.attr("transform",""),T.each(function(t,e){var n=this.getBoundingClientRect(),r=n.width;Y=n.height,r>S&&(S=r)}),D="rotate("+c+" 0,"+(Y/2+n.tickPadding())+")";var C=Math.abs(Math.sin(c*Math.PI/180));w=(C?C*S:S)+30,T.attr("transform",D).style("text-anchor",c%360>0?"start":"end")}else h?T.attr("transform",function(t,e){return"translate(0,"+(e%2==0?"0":"12")+")"}):T.attr("transform","translate(0,0)");L.enter().append("text").attr("class","nv-axislabel"),k=0,1===i.range().length?k=f?2*i.range()[0]+i.rangeBand():0:2===i.range().length?k=f?i.range()[0]+i.range()[1]+i.rangeBand():i.range()[1]:i.range().length>2&&(k=i.range()[i.range().length-1]+(i.range()[1]-i.range()[0])),L.attr("text-anchor","middle").attr("y",w).attr("x",k/2),l&&((x=_.selectAll("g.nv-axisMaxMin").data([i.domain()[0],i.domain()[i.domain().length-1]])).enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-x",0==e?"nv-axisMin-x":"nv-axisMax-x"].join(" ")}).append("text"),x.exit().remove(),x.attr("transform",function(t,e){return"translate("+r.utils.NaNtoZero(i(t)+(f?i.rangeBand()/2:0))+",0)"}).select("text").attr("dy",".71em").attr("y",n.tickPadding()).attr("transform",D).style("text-anchor",c?c%360>0?"start":"end":"middle").text(function(e,n){var r=(t||M)(e);return(""+r).match("NaN")?"":r}),x.watchTransition(y,"min-max bottom").attr("transform",function(t,e){return"translate("+r.utils.NaNtoZero(i(t)+(f?i.rangeBand()/2:0))+",0)"}));break;case"right":L.enter().append("text").attr("class","nv-axislabel"),L.style("text-anchor",d?"middle":"begin").attr("transform",d?"rotate(90)":"").attr("y",d?12-Math.max(a.right,o)-(p||0):-10).attr("x",d?d3.max(i.range())/2:n.tickPadding()),l&&((x=_.selectAll("g.nv-axisMaxMin").data(i.domain())).enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-y",0==e?"nv-axisMin-y":"nv-axisMax-y"].join(" ")}).append("text").style("opacity",0),x.exit().remove(),x.attr("transform",function(t,e){return"translate(0,"+r.utils.NaNtoZero(i(t))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",n.tickPadding()).style("text-anchor","start").text(function(e,n){var r=(t||M)(e);return(""+r).match("NaN")?"":r}),x.watchTransition(y,"min-max right").attr("transform",function(t,e){return"translate(0,"+r.utils.NaNtoZero(i.range()[e])+")"}).select("text").style("opacity",1));break;case"left":L.enter().append("text").attr("class","nv-axislabel"),L.style("text-anchor",d?"middle":"end").attr("transform",d?"rotate(-90)":"").attr("y",d?25-Math.max(a.left,o)-(p||0):-10).attr("x",d?-d3.max(i.range())/2:-n.tickPadding()),l&&((x=_.selectAll("g.nv-axisMaxMin").data(i.domain())).enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-y",0==e?"nv-axisMin-y":"nv-axisMax-y"].join(" ")}).append("text").style("opacity",0),x.exit().remove(),x.attr("transform",function(t,n){return"translate(0,"+r.utils.NaNtoZero(e(t))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",-n.tickPadding()).attr("text-anchor","end").text(function(e,n){var r=(t||M)(e);return(""+r).match("NaN")?"":r}),x.watchTransition(y,"min-max right").attr("transform",function(t,e){return"translate(0,"+r.utils.NaNtoZero(i.range()[e])+")"}).select("text").style("opacity",1))}if(L.text(function(t){return t}),!l||"left"!==n.orient()&&"right"!==n.orient()||(b.selectAll("g").each(function(t,e){d3.select(this).select("text").attr("opacity",1),(i(t)<i.range()[1]+10||i(t)>i.range()[0]-10)&&((t>1e-10||t<-1e-10)&&d3.select(this).attr("opacity",0),d3.select(this).select("text").attr("opacity",0))}),i.domain()[0]==i.domain()[1]&&0==i.domain()[0]&&_.selectAll("g.nv-axisMaxMin").style("opacity",function(t,e){return e?0:1})),l&&("top"===n.orient()||"bottom"===n.orient())){var E=[];_.selectAll("g.nv-axisMaxMin").each(function(t,e){try{e?E.push(i(t)-this.getBoundingClientRect().width-4):E.push(i(t)+this.getBoundingClientRect().width+4)}catch(n){e?E.push(i(t)-4):E.push(i(t)+4)}}),b.selectAll("g").each(function(t,e){(i(t)<E[0]||i(t)>E[1])&&(t>1e-10||t<-1e-10?d3.select(this).remove():d3.select(this).select("text").remove())})}b.selectAll(".tick").filter(function(t){return!parseFloat(Math.round(1e5*t)/1e6)&&void 0!==t}).classed("zero",!0),e=i.copy()}),y.renderEnd("axis immediate"),b}return b.axis=n,b.dispatch=_,b.options=r.utils.optionsFunc.bind(b),b._options=Object.create({},{axisLabelDistance:{get:function(){return p},set:function(t){p=t}},staggerLabels:{get:function(){return h},set:function(t){h=t}},rotateLabels:{get:function(){return c},set:function(t){c=t}},rotateYLabel:{get:function(){return d},set:function(t){d=t}},showMaxMin:{get:function(){return l},set:function(t){l=t}},axisLabel:{get:function(){return u},set:function(t){u=t}},height:{get:function(){return s},set:function(t){s=t}},ticks:{get:function(){return m},set:function(t){m=t}},width:{get:function(){return o},set:function(t){o=t}},fontSize:{get:function(){return g},set:function(t){g=t}},tickFormatMaxMin:{get:function(){return t},set:function(e){t=e}},margin:{get:function(){return a},set:function(t){a.top=void 0!==t.top?t.top:a.top,a.right=void 0!==t.right?t.right:a.right,a.bottom=void 0!==t.bottom?t.bottom:a.bottom,a.left=void 0!==t.left?t.left:a.left}},duration:{get:function(){return v},set:function(t){v=t,y.reset(v)}},scale:{get:function(){return i},set:function(t){i=t,n.scale(i),f="function"==typeof i.rangeBands,r.utils.inheritOptionsD3(b,i,["domain","range","rangeBand","rangeBands"])}}}),r.utils.initOptions(b),r.utils.inheritOptionsD3(b,n,["orient","tickValues","tickSubdivide","tickSize","tickPadding","tickFormat"]),r.utils.inheritOptionsD3(b,i,["domain","range","rangeBand","rangeBands"]),b},r.models.boxPlot=function(){"use strict";var t,e,n,i,a,o,s={top:0,right:0,bottom:0,left:0},u=960,l=500,c=Math.floor(1e4*Math.random()),d=d3.scale.ordinal(),h=d3.scale.linear(),f=function(t){return t.label},m=function(t){return t.values.Q1},p=function(t){return t.values.Q2},g=function(t){return t.values.Q3},v=function(t){return t.values.whisker_low},_=function(t){return t.values.whisker_high},y=function(t){return t.color},b=function(t){return t.values.outliers},M=function(t,e,n){return t},w=function(t,e,n){return t},x=function(t,e,n){},k=r.utils.defaultColor(),L=null,S=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),Y=250,T=null,D=r.utils.renderWatch(S,Y);function C(c){return D.reset(),c.each(function(c){var C=u-s.left-s.right,E=l-s.top-s.bottom;L=d3.select(this),r.utils.initSVG(L),d.domain(t||c.map(function(t,e){return f(t,e)})).rangeBands(e||[0,C],.1);var O=[];if(!n){var A=[];c.forEach(function(t,e){var n=m(t),r=g(t),i=v(t),a=_(t),o=b(t);o&&o.forEach(function(t,e){A.push(M(t,e,void 0))}),i&&A.push(i),n&&A.push(n),r&&A.push(r),a&&A.push(a)}),O=[d3.min(A),d3.max(A)]}h.domain(n||O),h.range(i||[E,0]),a=a||d,o=o||h.copy().range([h(0),h(0)]);var j=L.selectAll("g.nv-wrap").data([c]);j.enter().append("g").attr("class","nvd3 nv-wrap");j.attr("transform","translate("+s.left+","+s.top+")");var H=j.selectAll(".nv-boxplot").data(function(t){return t}),N=H.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);H.attr("class","nv-boxplot").attr("transform",function(t,e,n){return"translate("+(d(f(t,e))+.05*d.rangeBand())+", 0)"}).classed("hover",function(t){return t.hover}),H.watchTransition(D,"nv-boxplot: boxplots").style("stroke-opacity",1).style("fill-opacity",.75).delay(function(t,e){return e*Y/c.length}).attr("transform",function(t,e){return"translate("+(d(f(t,e))+.05*d.rangeBand())+", 0)"}),H.exit().remove(),N.each(function(t,e){var n=d3.select(this);[v,_].forEach(function(r){if(void 0!==r(t)&&null!==r(t)){var i=r===v?"low":"high";n.append("line").style("stroke",y(t)||k(t,e)).attr("class","nv-boxplot-whisker nv-boxplot-"+i),n.append("line").style("stroke",y(t)||k(t,e)).attr("class","nv-boxplot-tick nv-boxplot-"+i)}})});var P=function(){return null===T?.9*d.rangeBand():Math.min(75,.9*d.rangeBand())},F=function(){return.45*d.rangeBand()-P()/2},V=function(){return.45*d.rangeBand()+P()/2};[v,_].forEach(function(t){var e=t===v?"low":"high",n=t===v?m:g;H.select("line.nv-boxplot-whisker.nv-boxplot-"+e).watchTransition(D,"nv-boxplot: boxplots").attr("x1",.45*d.rangeBand()).attr("y1",function(e,n){return h(t(e))}).attr("x2",.45*d.rangeBand()).attr("y2",function(t,e){return h(n(t))}),H.select("line.nv-boxplot-tick.nv-boxplot-"+e).watchTransition(D,"nv-boxplot: boxplots").attr("x1",F).attr("y1",function(e,n){return h(t(e))}).attr("x2",V).attr("y2",function(e,n){return h(t(e))})}),[v,_].forEach(function(t){var e=t===v?"low":"high";N.selectAll(".nv-boxplot-"+e).on("mouseover",function(e,n,r){d3.select(this).classed("hover",!0),S.elementMouseover({series:{key:t(e),color:y(e)||k(e,r)},e:d3.event})}).on("mouseout",function(e,n,r){d3.select(this).classed("hover",!1),S.elementMouseout({series:{key:t(e),color:y(e)||k(e,r)},e:d3.event})}).on("mousemove",function(t,e){S.elementMousemove({e:d3.event})})}),N.append("rect").attr("class","nv-boxplot-box").on("mouseover",function(t,e){d3.select(this).classed("hover",!0),S.elementMouseover({key:f(t),value:f(t),series:[{key:"Q3",value:g(t),color:y(t)||k(t,e)},{key:"Q2",value:p(t),color:y(t)||k(t,e)},{key:"Q1",value:m(t),color:y(t)||k(t,e)}],data:t,index:e,e:d3.event})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),S.elementMouseout({key:f(t),value:f(t),series:[{key:"Q3",value:g(t),color:y(t)||k(t,e)},{key:"Q2",value:p(t),color:y(t)||k(t,e)},{key:"Q1",value:m(t),color:y(t)||k(t,e)}],data:t,index:e,e:d3.event})}).on("mousemove",function(t,e){S.elementMousemove({e:d3.event})}),H.select("rect.nv-boxplot-box").watchTransition(D,"nv-boxplot: boxes").attr("y",function(t,e){return h(g(t))}).attr("width",P).attr("x",F).attr("height",function(t,e){return Math.abs(h(g(t))-h(m(t)))||1}).style("fill",function(t,e){return y(t)||k(t,e)}).style("stroke",function(t,e){return y(t)||k(t,e)}),N.append("line").attr("class","nv-boxplot-median"),H.select("line.nv-boxplot-median").watchTransition(D,"nv-boxplot: boxplots line").attr("x1",F).attr("y1",function(t,e){return h(p(t))}).attr("x2",V).attr("y2",function(t,e){return h(p(t))});var I=H.selectAll(".nv-boxplot-outlier").data(function(t){return b(t)||[]});I.enter().append("circle").style("fill",function(t,e,n){return x(t,e,n)||k(t,n)}).style("stroke",function(t,e,n){return x(t,e,n)||k(t,n)}).style("z-index",9e3).on("mouseover",function(t,e,n){d3.select(this).classed("hover",!0),S.elementMouseover({series:{key:w(t,e,n),color:x(t,e,n)||k(t,n)},e:d3.event})}).on("mouseout",function(t,e,n){d3.select(this).classed("hover",!1),S.elementMouseout({series:{key:w(t,e,n),color:x(t,e,n)||k(t,n)},e:d3.event})}).on("mousemove",function(t,e){S.elementMousemove({e:d3.event})}),I.attr("class","nv-boxplot-outlier"),I.watchTransition(D,"nv-boxplot: nv-boxplot-outlier").attr("cx",.45*d.rangeBand()).attr("cy",function(t,e,n){return h(M(t,e,n))}).attr("r","3"),I.exit().remove(),a=d.copy(),o=h.copy()}),D.renderEnd("nv-boxplot immediate"),C}return C.dispatch=S,C.options=r.utils.optionsFunc.bind(C),C._options=Object.create({},{width:{get:function(){return u},set:function(t){u=t}},height:{get:function(){return l},set:function(t){l=t}},maxBoxWidth:{get:function(){return T},set:function(t){T=t}},x:{get:function(){return f},set:function(t){f=t}},q1:{get:function(){return m},set:function(t){m=t}},q2:{get:function(){return p},set:function(t){p=t}},q3:{get:function(){return g},set:function(t){g=t}},wl:{get:function(){return v},set:function(t){v=t}},wh:{get:function(){return _},set:function(t){_=t}},itemColor:{get:function(){return y},set:function(t){y=t}},outliers:{get:function(){return b},set:function(t){b=t}},outlierValue:{get:function(){return M},set:function(t){M=t}},outlierLabel:{get:function(){return w},set:function(t){w=t}},outlierColor:{get:function(){return x},set:function(t){x=t}},xScale:{get:function(){return d},set:function(t){d=t}},yScale:{get:function(){return h},set:function(t){h=t}},xDomain:{get:function(){return t},set:function(e){t=e}},yDomain:{get:function(){return n},set:function(t){n=t}},xRange:{get:function(){return e},set:function(t){e=t}},yRange:{get:function(){return i},set:function(t){i=t}},id:{get:function(){return c},set:function(t){c=t}},y:{get:function(){return console.warn("BoxPlot 'y' chart option is deprecated. Please use model overrides instead."),{}},set:function(t){console.warn("BoxPlot 'y' chart option is deprecated. Please use model overrides instead.")}},margin:{get:function(){return s},set:function(t){s.top=void 0!==t.top?t.top:s.top,s.right=void 0!==t.right?t.right:s.right,s.bottom=void 0!==t.bottom?t.bottom:s.bottom,s.left=void 0!==t.left?t.left:s.left}},color:{get:function(){return k},set:function(t){k=r.utils.getColor(t)}},duration:{get:function(){return Y},set:function(t){Y=t,D.reset(Y)}}}),r.utils.initOptions(C),C},r.models.boxPlotChart=function(){"use strict";var t,e,n=r.models.boxPlot(),i=r.models.axis(),a=r.models.axis(),o={top:15,right:10,bottom:50,left:60},s=null,u=null,l=r.utils.getColor(),c=!0,d=!0,h=!1,f=!1,m=r.models.tooltip(),p="No Data Available.",g=d3.dispatch("beforeUpdate","renderEnd"),v=250;i.orient("bottom").showMaxMin(!1).tickFormat(function(t){return t}),a.orient(h?"right":"left").tickFormat(d3.format(",.1f")),m.duration(0);var _=r.utils.renderWatch(g,v);function y(l){return _.reset(),_.models(n),c&&_.models(i),d&&_.models(a),l.each(function(l){var m=d3.select(this);r.utils.initSVG(m);var _=(s||parseInt(m.style("width"))||960)-o.left-o.right,b=(u||parseInt(m.style("height"))||400)-o.top-o.bottom;if(y.update=function(){g.beforeUpdate(),m.transition().duration(v).call(y)},y.container=this,!l||!l.length){var M=m.selectAll(".nv-noData").data([p]);return M.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),M.attr("x",o.left+_/2).attr("y",o.top+b/2).text(function(t){return t}),y}m.selectAll(".nv-noData").remove(),t=n.xScale(),e=n.yScale().clamp(!0);var w=m.selectAll("g.nv-wrap.nv-boxPlotWithAxes").data([l]),x=w.enter().append("g").attr("class","nvd3 nv-wrap nv-boxPlotWithAxes").append("g"),k=x.append("defs"),L=w.select("g");if(x.append("g").attr("class","nv-x nv-axis"),x.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),x.append("g").attr("class","nv-barsWrap"),L.attr("transform","translate("+o.left+","+o.top+")"),h&&L.select(".nv-y.nv-axis").attr("transform","translate("+_+",0)"),n.width(_).height(b),L.select(".nv-barsWrap").datum(l.filter(function(t){return!t.disabled})).transition().call(n),k.append("clipPath").attr("id","nv-x-label-clip-"+n.id()).append("rect"),L.select("#nv-x-label-clip-"+n.id()+" rect").attr("width",t.rangeBand()*(f?2:1)).attr("height",16).attr("x",-t.rangeBand()/(f?1:2)),c){i.scale(t).ticks(r.utils.calcTicksX(_/100,l)).tickSize(-b,0),L.select(".nv-x.nv-axis").attr("transform","translate(0,"+e.range()[0]+")"),L.select(".nv-x.nv-axis").call(i);var S=L.select(".nv-x.nv-axis").selectAll("g");f&&S.selectAll("text").attr("transform",function(t,e,n){return"translate(0,"+(n%2==0?"5":"17")+")"})}d&&(a.scale(e).ticks(Math.floor(b/36)).tickSize(-_,0),L.select(".nv-y.nv-axis").call(a)),L.select(".nv-zeroLine line").attr("x1",0).attr("x2",_).attr("y1",e(0)).attr("y2",e(0))}),_.renderEnd("nv-boxplot chart immediate"),y}return n.dispatch.on("elementMouseover.tooltip",function(t){m.data(t).hidden(!1)}),n.dispatch.on("elementMouseout.tooltip",function(t){m.data(t).hidden(!0)}),n.dispatch.on("elementMousemove.tooltip",function(t){m()}),y.dispatch=g,y.boxplot=n,y.xAxis=i,y.yAxis=a,y.tooltip=m,y.options=r.utils.optionsFunc.bind(y),y._options=Object.create({},{width:{get:function(){return s},set:function(t){s=t}},height:{get:function(){return u},set:function(t){u=t}},staggerLabels:{get:function(){return f},set:function(t){f=t}},showXAxis:{get:function(){return c},set:function(t){c=t}},showYAxis:{get:function(){return d},set:function(t){d=t}},tooltipContent:{get:function(){return m},set:function(t){m=t}},noData:{get:function(){return p},set:function(t){p=t}},margin:{get:function(){return o},set:function(t){o.top=void 0!==t.top?t.top:o.top,o.right=void 0!==t.right?t.right:o.right,o.bottom=void 0!==t.bottom?t.bottom:o.bottom,o.left=void 0!==t.left?t.left:o.left}},duration:{get:function(){return v},set:function(t){v=t,_.reset(v),n.duration(v),i.duration(v),a.duration(v)}},color:{get:function(){return l},set:function(t){l=r.utils.getColor(t),n.color(l)}},rightAlignYAxis:{get:function(){return h},set:function(t){h=t,a.orient(t?"right":"left")}}}),r.utils.inheritOptions(y,n),r.utils.initOptions(y),y},r.models.bullet=function(){"use strict";var t={top:0,right:0,bottom:0,left:0},e="left",n=!1,i=function(t){return t.ranges},a=function(t){return t.markers?t.markers:[]},o=function(t){return t.markerLines?t.markerLines:[0]},s=function(t){return t.measures},u=function(t){return t.rangeLabels?t.rangeLabels:[]},l=function(t){return t.markerLabels?t.markerLabels:[]},c=function(t){return t.markerLineLabels?t.markerLineLabels:[]},d=function(t){return t.measureLabels?t.measureLabels:[]},h=[0],f=380,m=30,p=null,g=null,v=r.utils.getColor(["#1f77b4"]),_=d3.dispatch("elementMouseover","elementMouseout","elementMousemove"),y=["Maximum","Mean","Minimum"],b=["Max","Avg","Min"],M=1e3;function w(t,e){var n=t.slice();t.sort(function(t,r){var i=n.indexOf(t),a=n.indexOf(r);return d3.descending(e[i],e[a])})}function x(e){return e.each(function(e,g){var x=f-t.left-t.right,k=m-t.top-t.bottom;p=d3.select(this),r.utils.initSVG(p);var L=i.call(this,e,g).slice(),S=a.call(this,e,g).slice(),Y=o.call(this,e,g).slice(),T=s.call(this,e,g).slice(),D=u.call(this,e,g).slice(),C=l.call(this,e,g).slice(),E=c.call(this,e,g).slice(),O=d.call(this,e,g).slice();w(D,L),w(C,S),w(E,Y),w(O,T),L.sort(d3.descending),S.sort(d3.descending),Y.sort(d3.descending),T.sort(d3.descending);var A=d3.scale.linear().domain(d3.extent(d3.merge([h,L]))).range(n?[x,0]:[0,x]);this.__chart__||d3.scale.linear().domain([0,1/0]).range(A.range());this.__chart__=A;d3.min(L),d3.max(L),L[1];for(var j=p.selectAll("g.nv-wrap.nv-bullet").data([e]),H=j.enter().append("g").attr("class","nvd3 nv-wrap nv-bullet").append("g"),N=j.select("g"),P=(g=0,L.length);g<P;g++){var F="nv-range nv-range"+g;g<=2&&(F=F+" nv-range"+b[g]),H.append("rect").attr("class",F)}H.append("rect").attr("class","nv-measure"),j.attr("transform","translate("+t.left+","+t.top+")");var V=function(t){return Math.abs(A(t)-A(0))},I=function(t){return A(t<0?t:0)};for(g=0,P=L.length;g<P;g++){var W=L[g];N.select("rect.nv-range"+g).datum(W).attr("height",k).transition().duration(M).attr("width",V(W)).attr("x",I(W))}N.select("rect.nv-measure").style("fill",v).attr("height",k/3).attr("y",k/3).on("mouseover",function(){_.elementMouseover({value:T[0],label:O[0]||"Current",color:d3.select(this).style("fill")})}).on("mousemove",function(){_.elementMousemove({value:T[0],label:O[0]||"Current",color:d3.select(this).style("fill")})}).on("mouseout",function(){_.elementMouseout({value:T[0],label:O[0]||"Current",color:d3.select(this).style("fill")})}).transition().duration(M).attr("width",T<0?A(0)-A(T[0]):A(T[0])-A(0)).attr("x",I(T));var R=k/6,z=S.map(function(t,e){return{value:t,label:C[e]}});H.selectAll("path.nv-markerTriangle").data(z).enter().append("path").attr("class","nv-markerTriangle").attr("d","M0,"+R+"L"+R+","+-R+" "+-R+","+-R+"Z").on("mouseover",function(t){_.elementMouseover({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill"),pos:[A(t.value),k/2]})}).on("mousemove",function(t){_.elementMousemove({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){_.elementMouseout({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill")})}),N.selectAll("path.nv-markerTriangle").data(z).transition().duration(M).attr("transform",function(t){return"translate("+A(t.value)+","+k/2+")"});var B=Y.map(function(t,e){return{value:t,label:E[e]}});H.selectAll("line.nv-markerLine").data(B).enter().append("line").attr("cursor","").attr("class","nv-markerLine").attr("x1",function(t){return A(t.value)}).attr("y1","2").attr("x2",function(t){return A(t.value)}).attr("y2",k-2).on("mouseover",function(t){_.elementMouseover({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill"),pos:[A(t.value),k/2]})}).on("mousemove",function(t){_.elementMousemove({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){_.elementMouseout({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill")})}),N.selectAll("line.nv-markerLine").data(B).transition().duration(M).attr("x1",function(t){return A(t.value)}).attr("x2",function(t){return A(t.value)}),j.selectAll(".nv-range").on("mouseover",function(t,e){var n=D[e]||y[e];_.elementMouseover({value:t,label:n,color:d3.select(this).style("fill")})}).on("mousemove",function(){_.elementMousemove({value:T[0],label:O[0]||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){var n=D[e]||y[e];_.elementMouseout({value:t,label:n,color:d3.select(this).style("fill")})})}),x}return x.dispatch=_,x.options=r.utils.optionsFunc.bind(x),x._options=Object.create({},{ranges:{get:function(){return i},set:function(t){i=t}},markers:{get:function(){return a},set:function(t){a=t}},measures:{get:function(){return s},set:function(t){s=t}},forceX:{get:function(){return h},set:function(t){h=t}},width:{get:function(){return f},set:function(t){f=t}},height:{get:function(){return m},set:function(t){m=t}},tickFormat:{get:function(){return g},set:function(t){g=t}},duration:{get:function(){return M},set:function(t){M=t}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},orient:{get:function(){return e},set:function(t){n="right"==(e=t)||"bottom"==e}},color:{get:function(){return v},set:function(t){v=r.utils.getColor(t)}}}),r.utils.initOptions(x),x},r.models.bulletChart=function(){"use strict";var t=r.models.bullet(),e=r.models.tooltip(),n="left",i=!1,a={top:5,right:40,bottom:20,left:120},o=function(t){return t.ranges},s=function(t){return t.markers?t.markers:[]},u=function(t){return t.measures},l=null,c=55,d=null,h=null,f=null,m=d3.dispatch();function p(e){return e.each(function(n,f){var m=d3.select(this);r.utils.initSVG(m);var g=r.utils.availableWidth(l,m,a),v=c-a.top-a.bottom;if(p.update=function(){p(e)},p.container=this,!n||!o.call(this,n,f))return r.utils.noData(p,m),p;m.selectAll(".nv-noData").remove();var _=o.call(this,n,f).slice().sort(d3.descending),y=s.call(this,n,f).slice().sort(d3.descending),b=u.call(this,n,f).slice().sort(d3.descending),M=m.selectAll("g.nv-wrap.nv-bulletChart").data([n]),w=M.enter().append("g").attr("class","nvd3 nv-wrap nv-bulletChart").append("g"),x=M.select("g");w.append("g").attr("class","nv-bulletWrap"),w.append("g").attr("class","nv-titles"),M.attr("transform","translate("+a.left+","+a.top+")");var k=d3.scale.linear().domain([0,Math.max(_[0],y[0]||0,b[0])]).range(i?[g,0]:[0,g]),L=this.__chart__||d3.scale.linear().domain([0,1/0]).range(k.range());this.__chart__=k;var S=w.select(".nv-titles").append("g").attr("text-anchor","end").attr("transform","translate(-6,"+(c-a.top-a.bottom)/2+")");S.append("text").attr("class","nv-title").text(function(t){return t.title}),S.append("text").attr("class","nv-subtitle").attr("dy","1em").text(function(t){return t.subtitle}),t.width(g).height(v);var Y=x.select(".nv-bulletWrap");d3.transition(Y).call(t);var T=d||k.tickFormat(g/100),D=x.selectAll("g.nv-tick").data(k.ticks(h||g/50),function(t){return this.textContent||T(t)}),C=D.enter().append("g").attr("class","nv-tick").attr("transform",function(t){return"translate("+L(t)+",0)"}).style("opacity",1e-6);C.append("line").attr("y1",v).attr("y2",7*v/6),C.append("text").attr("text-anchor","middle").attr("dy","1em").attr("y",7*v/6).text(T);var E=d3.transition(D).transition().duration(t.duration()).attr("transform",function(t){return"translate("+k(t)+",0)"}).style("opacity",1);E.select("line").attr("y1",v).attr("y2",7*v/6),E.select("text").attr("y",7*v/6),d3.transition(D.exit()).transition().duration(t.duration()).attr("transform",function(t){return"translate("+k(t)+",0)"}).style("opacity",1e-6).remove()}),d3.timer.flush(),p}return e.duration(0).headerEnabled(!1),t.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:t.label,value:t.value,color:t.color},e.data(t).hidden(!1)}),t.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),t.dispatch.on("elementMousemove.tooltip",function(t){e()}),p.bullet=t,p.dispatch=m,p.tooltip=e,p.options=r.utils.optionsFunc.bind(p),p._options=Object.create({},{ranges:{get:function(){return o},set:function(t){o=t}},markers:{get:function(){return s},set:function(t){s=t}},measures:{get:function(){return u},set:function(t){u=t}},width:{get:function(){return l},set:function(t){l=t}},height:{get:function(){return c},set:function(t){c=t}},tickFormat:{get:function(){return d},set:function(t){d=t}},ticks:{get:function(){return h},set:function(t){h=t}},noData:{get:function(){return f},set:function(t){f=t}},margin:{get:function(){return a},set:function(t){a.top=void 0!==t.top?t.top:a.top,a.right=void 0!==t.right?t.right:a.right,a.bottom=void 0!==t.bottom?t.bottom:a.bottom,a.left=void 0!==t.left?t.left:a.left}},orient:{get:function(){return n},set:function(t){i="right"==(n=t)||"bottom"==n}}}),r.utils.inheritOptions(p,t),r.utils.initOptions(p),p},r.models.candlestickBar=function(){"use strict";var t,e,n,i,a,o={top:0,right:0,bottom:0,left:0},s=null,u=null,l=Math.floor(1e4*Math.random()),c=d3.scale.linear(),d=d3.scale.linear(),h=function(t){return t.x},f=function(t){return t.y},m=function(t){return t.open},p=function(t){return t.close},g=function(t){return t.high},v=function(t){return t.low},_=[],y=[],b=!1,M=!0,w=r.utils.defaultColor(),x=!1,k=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");function L(w){return w.each(function(w){t=d3.select(this);var x=r.utils.availableWidth(s,t,o),L=r.utils.availableHeight(u,t,o);r.utils.initSVG(t);var S=x/w[0].values.length*.45;c.domain(e||d3.extent(w[0].values.map(h).concat(_))),b?c.range(i||[.5*x/w[0].values.length,x*(w[0].values.length-.5)/w[0].values.length]):c.range(i||[5+S/2,x-S/2-5]),d.domain(n||[d3.min(w[0].values.map(v).concat(y)),d3.max(w[0].values.map(g).concat(y))]).range(a||[L,0]),c.domain()[0]===c.domain()[1]&&(c.domain()[0]?c.domain([c.domain()[0]-.01*c.domain()[0],c.domain()[1]+.01*c.domain()[1]]):c.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var Y=d3.select(this).selectAll("g.nv-wrap.nv-candlestickBar").data([w[0].values]),T=Y.enter().append("g").attr("class","nvd3 nv-wrap nv-candlestickBar"),D=T.append("defs"),C=T.append("g"),E=Y.select("g");C.append("g").attr("class","nv-ticks"),Y.attr("transform","translate("+o.left+","+o.top+")"),t.on("click",function(t,e){k.chartClick({data:t,index:e,pos:d3.event,id:l})}),D.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect"),Y.select("#nv-chart-clip-path-"+l+" rect").attr("width",x).attr("height",L),E.attr("clip-path",M?"url(#nv-chart-clip-path-"+l+")":"");var O=Y.select(".nv-ticks").selectAll(".nv-tick").data(function(t){return t});O.exit().remove();var A=O.enter().append("g");O.attr("class",function(t,e,n){return(m(t,e)>p(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e});A.append("line").attr("class","nv-candlestick-lines").attr("transform",function(t,e){return"translate("+c(h(t,e))+",0)"}).attr("x1",0).attr("y1",function(t,e){return d(g(t,e))}).attr("x2",0).attr("y2",function(t,e){return d(v(t,e))}),A.append("rect").attr("class","nv-candlestick-rects nv-bars").attr("transform",function(t,e){return"translate("+(c(h(t,e))-S/2)+","+(d(f(t,e))-(m(t,e)>p(t,e)?d(p(t,e))-d(m(t,e)):0))+")"}).attr("x",0).attr("y",0).attr("width",S).attr("height",function(t,e){var n=m(t,e),r=p(t,e);return n>r?d(r)-d(n):d(n)-d(r)});O.select(".nv-candlestick-lines").transition().attr("transform",function(t,e){return"translate("+c(h(t,e))+",0)"}).attr("x1",0).attr("y1",function(t,e){return d(g(t,e))}).attr("x2",0).attr("y2",function(t,e){return d(v(t,e))}),O.select(".nv-candlestick-rects").transition().attr("transform",function(t,e){return"translate("+(c(h(t,e))-S/2)+","+(d(f(t,e))-(m(t,e)>p(t,e)?d(p(t,e))-d(m(t,e)):0))+")"}).attr("x",0).attr("y",0).attr("width",S).attr("height",function(t,e){var n=m(t,e),r=p(t,e);return n>r?d(r)-d(n):d(n)-d(r)})}),L}return L.highlightPoint=function(e,n){L.clearHighlights(),t.select(".nv-candlestickBar .nv-tick-0-"+e).classed("hover",n)},L.clearHighlights=function(){t.select(".nv-candlestickBar .nv-tick.hover").classed("hover",!1)},L.dispatch=k,L.options=r.utils.optionsFunc.bind(L),L._options=Object.create({},{width:{get:function(){return s},set:function(t){s=t}},height:{get:function(){return u},set:function(t){u=t}},xScale:{get:function(){return c},set:function(t){c=t}},yScale:{get:function(){return d},set:function(t){d=t}},xDomain:{get:function(){return e},set:function(t){e=t}},yDomain:{get:function(){return n},set:function(t){n=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},forceX:{get:function(){return _},set:function(t){_=t}},forceY:{get:function(){return y},set:function(t){y=t}},padData:{get:function(){return b},set:function(t){b=t}},clipEdge:{get:function(){return M},set:function(t){M=t}},id:{get:function(){return l},set:function(t){l=t}},interactive:{get:function(){return x},set:function(t){x=t}},x:{get:function(){return h},set:function(t){h=t}},y:{get:function(){return f},set:function(t){f=t}},open:{get:function(){return m()},set:function(t){m=t}},close:{get:function(){return p()},set:function(t){p=t}},high:{get:function(){return g},set:function(t){g=t}},low:{get:function(){return v},set:function(t){v=t}},margin:{get:function(){return o},set:function(t){o.top=void 0!=t.top?t.top:o.top,o.right=void 0!=t.right?t.right:o.right,o.bottom=void 0!=t.bottom?t.bottom:o.bottom,o.left=void 0!=t.left?t.left:o.left}},color:{get:function(){return w},set:function(t){w=r.utils.getColor(t)}}}),r.utils.initOptions(L),L},r.models.cumulativeLineChart=function(){"use strict";var t,e,n=r.models.line(),i=r.models.axis(),a=r.models.axis(),o=r.models.legend(),s=r.models.legend(),u=r.interactiveGuideline(),l=r.models.tooltip(),c={top:30,right:30,bottom:50,left:60},d=null,h=r.utils.defaultColor(),f=null,m=null,p=!0,g=!0,v=!0,_=!1,y=!0,b=!1,M=!0,w=n.id(),x=r.utils.state(),k=null,L=null,S=function(t){return t.average},Y=d3.dispatch("stateChange","changeState","renderEnd"),T=250,D=!1;x.index=0,x.rescaleY=M,i.orient("bottom").tickPadding(7),a.orient(_?"right":"left"),l.valueFormatter(function(t,e){return a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),s.updateState(!1);var C,E=d3.scale.linear(),O={i:0,x:0},A=r.utils.renderWatch(Y,T),j=function(t){return function(){return{active:t.map(function(t){return!t.disabled}),index:O.i,rescaleY:M}}},H=function(t){return function(e){void 0!==e.index&&(O.i=e.index),void 0!==e.rescaleY&&(M=e.rescaleY),void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};function N(l){return A.reset(),A.models(n),g&&A.models(i),v&&A.models(a),l.each(function(l){var L=d3.select(this);r.utils.initSVG(L),L.classed("nv-chart-"+w,!0);var A,V=r.utils.availableWidth(f,L,c),I=r.utils.availableHeight(m,L,c);if(N.update=function(){0===T?L.call(N):L.transition().duration(T).call(N)},N.container=this,x.setter(H(l),N.update).getter(j(l)).update(),x.disabled=l.map(function(t){return!!t.disabled}),!k)for(A in k={},x)x[A]instanceof Array?k[A]=x[A].slice(0):k[A]=x[A];var W=d3.behavior.drag().on("dragstart",function(t,e){d3.select(N.container).style("cursor","ew-resize")}).on("drag",function(t,e){O.x=d3.event.x,O.i=Math.round(E.invert(O.x)),Q()}).on("dragend",function(t,e){d3.select(N.container).style("cursor","auto"),x.index=O.i,Y.stateChange(x)});if(!(l&&l.length&&l.filter(function(t){return t.values.length}).length))return r.utils.noData(N,L),N;L.selectAll(".nv-noData").remove(),t=n.xScale(),e=n.yScale(),E.domain([0,l[0].values.length-1]).range([0,V]).clamp(!0);l=function(t,e){P||(P=n.y());return e.map(function(e,n){if(!e.values)return e;var r=e.values[t];if(null==r)return e;var i=P(r,t);return Math.abs(i)<1e-5&&!D?(e.tempDisabled=!0,e):(e.tempDisabled=!1,e.values=e.values.map(function(t,e){return t.display={y:(P(t,e)-i)/i},t}),e)})}(O.i,l);void 0===C&&(C=F(l)),M?n.yDomain(null):(n.yDomain(C),n.clipEdge(!0));var R=b?"none":"all",z=L.selectAll("g.nv-wrap.nv-cumulativeLine").data([l]),B=z.enter().append("g").attr("class","nvd3 nv-wrap nv-cumulativeLine").append("g"),G=z.select("g");if(B.append("g").attr("class","nv-interactive"),B.append("g").attr("class","nv-x nv-axis").style("pointer-events","none"),B.append("g").attr("class","nv-y nv-axis"),B.append("g").attr("class","nv-background"),B.append("g").attr("class","nv-linesWrap").style("pointer-events",R),B.append("g").attr("class","nv-avgLinesWrap").style("pointer-events","none"),B.append("g").attr("class","nv-legendWrap"),B.append("g").attr("class","nv-controlsWrap"),p?(o.width(V),G.select(".nv-legendWrap").datum(l).call(o),d||o.height()===c.top||(c.top=o.height(),I=r.utils.availableHeight(m,L,c)),G.select(".nv-legendWrap").attr("transform","translate(0,"+-c.top+")")):G.select(".nv-legendWrap").selectAll("*").remove(),y){var U=[{key:"Re-scale y-axis",disabled:!M}];s.width(140).color(["#444","#444","#444"]).rightAlign(!1).margin({top:5,right:0,bottom:5,left:20}),G.select(".nv-controlsWrap").datum(U).attr("transform","translate(0,"+-c.top+")").call(s)}else G.select(".nv-controlsWrap").selectAll("*").remove();z.attr("transform","translate("+c.left+","+c.top+")"),_&&G.select(".nv-y.nv-axis").attr("transform","translate("+V+",0)");var $=l.filter(function(t){return t.tempDisabled});z.select(".tempDisabled").remove(),$.length&&z.append("text").attr("class","tempDisabled").attr("x",V/2).attr("y","-.71em").style("text-anchor","end").text($.map(function(t){return t.key}).join(", ")+" values cannot be calculated for this time period."),b&&(u.width(V).height(I).margin({left:c.left,top:c.top}).svgContainer(L).xScale(t),z.select(".nv-interactive").call(u)),B.select(".nv-background").append("rect"),G.select(".nv-background rect").attr("width",V).attr("height",I),n.y(function(t){return t.display.y}).width(V).height(I).color(l.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!l[e].disabled&&!l[e].tempDisabled}));var q=G.select(".nv-linesWrap").datum(l.filter(function(t){return!t.disabled&&!t.tempDisabled}));q.call(n),l.forEach(function(t,e){t.seriesIndex=e});var J=l.filter(function(t){return!t.disabled&&!!S(t)}),Z=G.select(".nv-avgLinesWrap").selectAll("line").data(J,function(t){return t.key}),X=function(t){var n=e(S(t));return n<0?0:n>I?I:n};Z.enter().append("line").style("stroke-width",2).style("stroke-dasharray","10,10").style("stroke",function(t,e){return n.color()(t,t.seriesIndex)}).attr("x1",0).attr("x2",V).attr("y1",X).attr("y2",X),Z.style("stroke-opacity",function(t){var n=e(S(t));return n<0||n>I?0:1}).attr("x1",0).attr("x2",V).attr("y1",X).attr("y2",X),Z.exit().remove();var K=q.selectAll(".nv-indexLine").data([O]);function Q(){K.data([O]);var t=N.duration();N.duration(0),N.update(),N.duration(t)}K.enter().append("rect").attr("class","nv-indexLine").attr("width",3).attr("x",-2).attr("fill","red").attr("fill-opacity",.5).style("pointer-events","all").call(W),K.attr("transform",function(t){return"translate("+E(t.i)+",0)"}).attr("height",I),g&&(i.scale(t)._ticks(r.utils.calcTicksX(V/70,l)).tickSize(-I,0),G.select(".nv-x.nv-axis").attr("transform","translate(0,"+e.range()[0]+")"),G.select(".nv-x.nv-axis").call(i)),v&&(a.scale(e)._ticks(r.utils.calcTicksY(I/36,l)).tickSize(-V,0),G.select(".nv-y.nv-axis").call(a)),G.select(".nv-background rect").on("click",function(){O.x=d3.mouse(this)[0],O.i=Math.round(E.invert(O.x)),x.index=O.i,Y.stateChange(x),Q()}),n.dispatch.on("elementClick",function(t){O.i=t.pointIndex,O.x=E(O.i),x.index=O.i,Y.stateChange(x),Q()}),s.dispatch.on("legendClick",function(t,e){t.disabled=!t.disabled,M=!t.disabled,x.rescaleY=M,M||(C=F(l)),Y.stateChange(x),N.update()}),o.dispatch.on("stateChange",function(t){for(var e in t)x[e]=t[e];Y.stateChange(x),N.update()}),u.dispatch.on("elementMousemove",function(t){n.clearHighlights();var e,o,s,c=[];if(l.filter(function(t,e){return t.seriesIndex=e,!(t.disabled||t.tempDisabled)}).forEach(function(i,a){o=r.interactiveBisect(i.values,t.pointXValue,N.x()),n.highlightPoint(a,o,!0);var u=i.values[o];void 0!==u&&(void 0===e&&(e=u),void 0===s&&(s=N.xScale()(N.x()(u,o))),c.push({key:i.key,value:N.y()(u,o),color:h(i,i.seriesIndex)}))}),c.length>2){var d=N.yScale().invert(t.mouseY),f=.03*Math.abs(N.yScale().domain()[0]-N.yScale().domain()[1]),m=r.nearestValueIndex(c.map(function(t){return t.value}),d,f);null!==m&&(c[m].highlight=!0)}var p=i.tickFormat()(N.x()(e,o),o);u.tooltip.valueFormatter(function(t,e){return a.tickFormat()(t)}).data({value:p,series:c})(),u.renderGuideLine(s)}),u.dispatch.on("elementMouseout",function(t){n.clearHighlights()}),Y.on("changeState",function(t){void 0!==t.disabled&&(l.forEach(function(e,n){e.disabled=t.disabled[n]}),x.disabled=t.disabled),void 0!==t.index&&(O.i=t.index,O.x=E(O.i),x.index=t.index,K.data([O])),void 0!==t.rescaleY&&(M=t.rescaleY),N.update()})}),A.renderEnd("cumulativeLineChart immediate"),N}n.dispatch.on("elementMouseover.tooltip",function(t){var e={x:N.x()(t.point),y:N.y()(t.point),color:t.point.color};t.point=e,l.data(t).hidden(!1)}),n.dispatch.on("elementMouseout.tooltip",function(t){l.hidden(!0)});var P=null;function F(t){var e=t.filter(function(t){return!(t.disabled||t.tempDisabled)}).map(function(t,e){return d3.extent(t.values,function(t){return t.display.y})});return[d3.min(e,function(t){return t[0]}),d3.max(e,function(t){return t[1]})]}return N.dispatch=Y,N.lines=n,N.legend=o,N.controls=s,N.xAxis=i,N.yAxis=a,N.interactiveLayer=u,N.state=x,N.tooltip=l,N.options=r.utils.optionsFunc.bind(N),N._options=Object.create({},{width:{get:function(){return f},set:function(t){f=t}},height:{get:function(){return m},set:function(t){m=t}},showControls:{get:function(){return y},set:function(t){y=t}},showLegend:{get:function(){return p},set:function(t){p=t}},average:{get:function(){return S},set:function(t){S=t}},defaultState:{get:function(){return k},set:function(t){k=t}},noData:{get:function(){return L},set:function(t){L=t}},showXAxis:{get:function(){return g},set:function(t){g=t}},showYAxis:{get:function(){return v},set:function(t){v=t}},noErrorCheck:{get:function(){return D},set:function(t){D=t}},rescaleY:{get:function(){return M},set:function(t){M=t,N.state.rescaleY=t}},margin:{get:function(){return c},set:function(t){void 0!==t.top&&(c.top=t.top,d=t.top),c.right=void 0!==t.right?t.right:c.right,c.bottom=void 0!==t.bottom?t.bottom:c.bottom,c.left=void 0!==t.left?t.left:c.left}},color:{get:function(){return h},set:function(t){h=r.utils.getColor(t),o.color(h)}},useInteractiveGuideline:{get:function(){return b},set:function(t){b=t,!0===t&&(N.interactive(!1),N.useVoronoi(!1))}},rightAlignYAxis:{get:function(){return _},set:function(t){_=t,a.orient(t?"right":"left")}},duration:{get:function(){return T},set:function(t){T=t,n.duration(T),i.duration(T),a.duration(T),A.reset(T)}}}),r.utils.inheritOptions(N,n),r.utils.initOptions(N),N},r.models.differenceChart=function(){"use strict";var t=void 0,e=r.models.multiChart(),n=r.models.focus(r.models.line()),i=function(t){return function(t){return void 0!==t}(t.y0)?t.y0:t.y},a=function(t){return t.x},o=function(t){return t.x},s="x",u=function(t){return t.y},l=300,c=null,d=null,h=null,f=null,m={top:30,right:50,bottom:20,left:70},p={top:0,right:0,bottom:0,left:0},g=!0,v="linear",_=1,y=d3.time.scale(),b=d3.time.format.multi([["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",function(){return!0}]]);function M(o){o.each(function(o){t=d3.select(this);var s=(o||[]).filter(function(t){return!t.disabled});if(!o||!s.length)return r.utils.noData(M,t),M;var u=w(o),g=r.utils.availableHeight(h,t,m)-n.height(),_=r.utils.availableWidth(f,t,m);t.attr("class","nv-differenceChart"),r.utils.initSVG(t),M.container=this,e.margin(m).color(d3.scale.category10().range()).y(i).width(f).height(g).interpolate(v).useInteractiveGuideline(!0),e.interactiveLayer.tooltip.valueFormatter(function(t,e,n){if(n.key===d||n.key===c){var r=Math.abs(n.data.y0-n.data.y1);return 0===r?"-":r}return t}),e.stack1.areaY1(function(t){return e.stack1.scatter.yScale()(t.display.y)}),e.stack1.transformData(function(t){t.display={y:t.y1,y0:t.y0}}),e.xAxis.scale(y),e.xAxis.tickFormat(b);var x=u.filter(function(t){return!t.disabled}).map(function(t){return t.values}),k=d3.extent(d3.merge(x),function(t){return a(t)});e.xAxis.domain(k).range([0,_]);var L=d3.extent(d3.merge(x),function(t){return i(t)});return e.yDomain1(L),e.yAxis1.tickFormat(d3.format(",.1f")),e.yAxis2.tickFormat(d3.format(",.1f")),n.width(_),n.margin(p),n.xScale(y.copy()),n.xAxis.tickFormat(b),n.xAxis.rotateLabels(0),t.append("g").attr("class","nv-focusWrap").style("display","initial").attr("transform","translate("+m.left+", "+(g+n.margin().top)+")").datum(u.filter(function(t){return"line"===t.type})).call(n),t.datum(u).call(e),n.dispatch.on("onBrush",function(n){var r=u.map(function(t){var e=-1,r=-1;t.values.some(function(t,i){return-1===e&&t.x>=n[0]&&(e=i),-1===r&&t.x>=n[1]&&(r=i,!0)});for(var i=t.values.slice(e,r),a=0;i.length<2&&a<5;)e-=1,r+=1,i=t.values.slice(e,r),a++;return Object.assign({},t,{values:i})});t.datum(r),e.xAxis.domain(n),e.update()}),M.update=function(){t.selectAll("*").remove(),0===l?t.call(M):t.transition().duration(l).call(M)},M})}function w(t){var e=t.slice(0),n=e.every(function(t){return t.processed}),r=e.filter(function(t){return"actual"===t.type}),i=e.filter(function(t){return"expected"===t.type});if(n)return e;if(!r.length||!i.length)return[];var a=i[0].key+" minus "+r[0].key+" (Predicted > Actual)",l=i[0].key+" minus "+r[0].key+" (Predicted < Actual)",h=[{key:c||a,type:"area",values:[],yAxis:1,color:"rgba(44,160,44,.9)",processed:!0,noHighlightSeries:!0},{key:d||l,type:"area",values:[],yAxis:1,color:"rgba(234,39,40,.9)",processed:!0,noHighlightSeries:!0},{key:r[0].key,type:"line",values:[],yAxis:1,color:"#666666",processed:!0,strokeWidth:_}];g&&(h[3]={key:i[0].key,type:"line",values:[],yAxis:1,color:"#aec7e8",processed:!0,strokeWidth:_});var f=r[0].values.reduce(function(t,e,n){return t[o(e)]=u(e),t},{}),m=i[0].values.reduce(function(t,e,n){return t[o(e)]=u(e),t},{});return Object.keys(f).forEach(function(t,e){var n=f[t],r=m[t],i={};i[s]=t;var a=o(i),u=r-n;isNaN(u)?(h[1].values[e]={x:a,y0:n,y1:n},h[0].values[e]={x:a,y0:n,y1:n}):u<0?(h[1].values[e]={x:a,y0:n,y1:r},h[0].values[e]={x:a,y0:n,y1:n}):(h[0].values[e]={x:a,y0:n,y1:r},h[1].values[e]={x:a,y0:n,y1:n}),h[2].values[e]={x:a,y:n},g&&(h[3].values[e]={x:a,y:r})}),h}return M.options=r.utils.optionsFunc.bind(M),M._options=Object.create({},{width:{get:function(){return f},set:function(t){f=t}},height:{get:function(){return h},set:function(t){h=t}},strokeWidth:{get:function(){return _},set:function(t){_=t}},x:{get:function(){return o},set:function(t){o=t}},keyForXValue:{get:function(){return s},set:function(t){s=t}},y:{get:function(){return u},set:function(t){u=t}},xScale:{get:function(){return y},set:function(t){y=t}},keyForActualLessThanPredicted:{get:function(){return c},set:function(t){c=t}},keyForActualGreaterThanPredicted:{get:function(){return d},set:function(t){d=t}},showPredictedLine:{get:function(){return g},set:function(t){g=t}},tickFormat:{get:function(){return b},set:function(t){b=t}},interpolate:{get:function(){return v},set:function(t){v=t}},focusMargin:{get:function(){return p},set:function(t){p.top=void 0!==t.top?t.top:p.top,p.right=void 0!==t.right?t.right:p.right,p.bottom=void 0!==t.bottom?t.bottom:p.bottom,p.left=void 0!==t.left?t.left:p.left}},margin:{get:function(){return m},set:function(t){m.top=void 0!==t.top?t.top:m.top,m.right=void 0!==t.right?t.right:m.right,m.bottom=void 0!==t.bottom?t.bottom:m.bottom,m.left=void 0!==t.left?t.left:m.left}}}),M.xAxis=e.xAxis,M.yAxis=e.yAxis1,M.multiChart=e,M.focus=n,M.processData=w,r.utils.inheritOptions(M,e),r.utils.initOptions(M),M},r.models.discreteBar=function(){"use strict";var t,e,n,i,a,o,s,u={top:0,right:0,bottom:0,left:0},l=960,c=500,d=Math.floor(1e4*Math.random()),h=d3.scale.ordinal(),f=d3.scale.linear(),m=function(t){return t.x},p=function(t){return t.y},g=[0],v=r.utils.defaultColor(),_=0,y=!1,b=d3.format(",.2f"),M=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),w="discreteBar",x=250,k=r.utils.renderWatch(M,x);function L(d){return k.reset(),d.each(function(d){var x=l-u.left-u.right,L=c-u.top-u.bottom;t=d3.select(this),r.utils.initSVG(t),d.forEach(function(t,e){t.values.forEach(function(t){t.series=e})});var S=e&&n?[]:d.map(function(t){return t.values.map(function(t,e){return{x:m(t,e),y:p(t,e),y0:t.y0}})});h.domain(e||d3.merge(S).map(function(t){return t.x})).rangeBands(i||[0,x],.1),f.domain(n||d3.extent(d3.merge(S).map(function(t){return t.y}).concat(g))),y?f.range(a||[L-(f.domain()[0]<0?12:0),f.domain()[1]>0?12:0]):f.range(a||[L,0]),o=o||h,s=s||f.copy().range([f(0),f(0)]);var Y=t.selectAll("g.nv-wrap.nv-discretebar").data([d]),T=Y.enter().append("g").attr("class","nvd3 nv-wrap nv-discretebar").append("g");Y.select("g");T.append("g").attr("class","nv-groups"),Y.attr("transform","translate("+u.left+","+u.top+")");var D=Y.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key});D.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),D.exit().watchTransition(k,"discreteBar: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),D.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}),D.watchTransition(k,"discreteBar: groups").style("stroke-opacity",1).style("fill-opacity",.75);var C=D.selectAll("g.nv-bar").data(function(t){return t.values});C.exit().remove();var E=C.enter().append("g").attr("transform",function(t,e,n){return"translate("+(h(m(t,e))+.05*h.rangeBand())+", "+f(0)+")"}).on("mouseover",function(t,e){d3.select(this).classed("hover",!0),M.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),M.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mousemove",function(t,e){M.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){M.elementClick({data:t,index:e,color:d3.select(this).style("fill"),event:d3.event,element:this}),d3.event.stopPropagation()}).on("dblclick",function(t,e){M.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()});E.append("rect").attr("height",0).attr("width",.9*h.rangeBand()/d.length),y?(E.append("text").attr("text-anchor","middle"),C.select("text").text(function(t,e){return b(p(t,e))}).watchTransition(k,"discreteBar: bars text").attr("x",.9*h.rangeBand()/2).attr("y",function(t,e){return p(t,e)<0?f(p(t,e))-f(0)+12:-4})):C.selectAll("text").remove(),C.attr("class",function(t,e){return p(t,e)<0?"nv-bar negative":"nv-bar positive"}).style("fill",function(t,e){return t.color||v(t,e)}).style("stroke",function(t,e){return t.color||v(t,e)}).select("rect").attr("rx",_).attr("class",w).watchTransition(k,"discreteBar: bars rect").attr("width",.9*h.rangeBand()/d.length),C.watchTransition(k,"discreteBar: bars").attr("transform",function(t,e){return"translate("+(h(m(t,e))+.05*h.rangeBand())+", "+(p(t,e)<0?f(0):f(0)-f(p(t,e))<1?f(0)-1:f(p(t,e)))+")"}).select("rect").attr("height",function(t,e){return Math.max(Math.abs(f(p(t,e))-f(0)),1)}),o=h.copy(),s=f.copy()}),k.renderEnd("discreteBar immediate"),L}return L.dispatch=M,L.options=r.utils.optionsFunc.bind(L),L._options=Object.create({},{width:{get:function(){return l},set:function(t){l=t}},height:{get:function(){return c},set:function(t){c=t}},forceY:{get:function(){return g},set:function(t){g=t}},showValues:{get:function(){return y},set:function(t){y=t}},cornerRadius:{get:function(){return _},set:function(t){_=t}},x:{get:function(){return m},set:function(t){m=t}},y:{get:function(){return p},set:function(t){p=t}},xScale:{get:function(){return h},set:function(t){h=t}},yScale:{get:function(){return f},set:function(t){f=t}},xDomain:{get:function(){return e},set:function(t){e=t}},yDomain:{get:function(){return n},set:function(t){n=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},valueFormat:{get:function(){return b},set:function(t){b=t}},id:{get:function(){return d},set:function(t){d=t}},rectClass:{get:function(){return w},set:function(t){w=t}},margin:{get:function(){return u},set:function(t){u.top=void 0!==t.top?t.top:u.top,u.right=void 0!==t.right?t.right:u.right,u.bottom=void 0!==t.bottom?t.bottom:u.bottom,u.left=void 0!==t.left?t.left:u.left}},color:{get:function(){return v},set:function(t){v=r.utils.getColor(t)}},duration:{get:function(){return x},set:function(t){x=t,k.reset(x)}}}),r.utils.initOptions(L),L},r.models.discreteBarChart=function(){"use strict";var t,e,n=r.models.discreteBar(),i=r.models.axis(),a=r.models.axis(),o=r.models.legend(),s=r.models.tooltip(),u={top:15,right:10,bottom:50,left:60},l=null,c=null,d=null,h=r.utils.getColor(),f=!1,m=!0,p=!0,g=!1,v=!1,_=!1,y=0,b=null,M=d3.dispatch("beforeUpdate","renderEnd"),w=250;i.orient("bottom").showMaxMin(!1).tickFormat(function(t){return t}),a.orient(g?"right":"left").tickFormat(d3.format(",.1f")),s.duration(0).headerEnabled(!1).valueFormatter(function(t,e){return a.tickFormat()(t,e)}).keyFormatter(function(t,e){return i.tickFormat()(t,e)});var x=r.utils.renderWatch(M,w);function k(s){return x.reset(),x.models(n),m&&x.models(i),p&&x.models(a),s.each(function(s){var h=d3.select(this);r.utils.initSVG(h);var b=r.utils.availableWidth(c,h,u),x=r.utils.availableHeight(d,h,u);if(k.update=function(){M.beforeUpdate(),h.transition().duration(w).call(k)},k.container=this,!(s&&s.length&&s.filter(function(t){return t.values.length}).length))return r.utils.noData(k,h),k;h.selectAll(".nv-noData").remove(),t=n.xScale(),e=n.yScale().clamp(!0);var L=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").data([s]),S=L.enter().append("g").attr("class","nvd3 nv-wrap nv-discreteBarWithAxes").append("g"),Y=S.append("defs"),T=L.select("g");if(S.append("g").attr("class","nv-x nv-axis"),S.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),S.append("g").attr("class","nv-barsWrap"),S.append("g").attr("class","nv-legendWrap"),T.attr("transform","translate("+u.left+","+u.top+")"),f?(o.width(b),T.select(".nv-legendWrap").datum(s).call(o),l||o.height()===u.top||(u.top=o.height(),x=r.utils.availableHeight(d,h,u)),L.select(".nv-legendWrap").attr("transform","translate(0,"+-u.top+")")):T.select(".nv-legendWrap").selectAll("*").remove(),g&&T.select(".nv-y.nv-axis").attr("transform","translate("+b+",0)"),n.width(b).height(x),T.select(".nv-barsWrap").datum(s.filter(function(t){return!t.disabled})).transition().call(n),Y.append("clipPath").attr("id","nv-x-label-clip-"+n.id()).append("rect"),T.select("#nv-x-label-clip-"+n.id()+" rect").attr("width",t.rangeBand()*(v?2:1)).attr("height",16).attr("x",-t.rangeBand()/(v?1:2)),m){i.scale(t)._ticks(r.utils.calcTicksX(b/100,s)).tickSize(-x,0),T.select(".nv-x.nv-axis").attr("transform","translate(0,"+(e.range()[0]+(n.showValues()&&e.domain()[0]<0?16:0))+")"),T.select(".nv-x.nv-axis").call(i);var D=T.select(".nv-x.nv-axis").selectAll("g");v&&D.selectAll("text").attr("transform",function(t,e,n){return"translate(0,"+(n%2==0?"5":"17")+")"}),y&&D.selectAll(".tick text").attr("transform","rotate("+y+" 0,0)").style("text-anchor",y>0?"start":"end"),_&&T.selectAll(".tick text").call(r.utils.wrapTicks,k.xAxis.rangeBand())}p&&(a.scale(e)._ticks(r.utils.calcTicksY(x/36,s,n.y())).tickSize(-b,0),T.select(".nv-y.nv-axis").call(a)),T.select(".nv-zeroLine line").attr("x1",0).attr("x2",g?-b:b).attr("y1",e(0)).attr("y2",e(0))}),x.renderEnd("discreteBar chart immediate"),k}return n.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:k.x()(t.data),value:k.y()(t.data),color:t.color},s.data(t).hidden(!1)}),n.dispatch.on("elementMouseout.tooltip",function(t){s.hidden(!0)}),n.dispatch.on("elementMousemove.tooltip",function(t){s()}),k.dispatch=M,k.discretebar=n,k.legend=o,k.xAxis=i,k.yAxis=a,k.tooltip=s,k.options=r.utils.optionsFunc.bind(k),k._options=Object.create({},{width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return d},set:function(t){d=t}},showLegend:{get:function(){return f},set:function(t){f=t}},staggerLabels:{get:function(){return v},set:function(t){v=t}},rotateLabels:{get:function(){return y},set:function(t){y=t}},wrapLabels:{get:function(){return _},set:function(t){_=!!t}},showXAxis:{get:function(){return m},set:function(t){m=t}},showYAxis:{get:function(){return p},set:function(t){p=t}},noData:{get:function(){return b},set:function(t){b=t}},margin:{get:function(){return u},set:function(t){void 0!==t.top&&(u.top=t.top,l=t.top),u.right=void 0!==t.right?t.right:u.right,u.bottom=void 0!==t.bottom?t.bottom:u.bottom,u.left=void 0!==t.left?t.left:u.left}},duration:{get:function(){return w},set:function(t){w=t,x.reset(w),n.duration(w),i.duration(w),a.duration(w)}},color:{get:function(){return h},set:function(t){h=r.utils.getColor(t),n.color(h),o.color(h)}},rightAlignYAxis:{get:function(){return g},set:function(t){g=t,a.orient(t?"right":"left")}}}),r.utils.inheritOptions(k,n),r.utils.initOptions(k),k},r.models.distribution=function(){"use strict";var t,e={top:0,right:0,bottom:0,left:0},n=400,i=8,a="x",o=function(t){return t[a]},s=r.utils.defaultColor(),u=d3.scale.linear(),l=250,c=d3.dispatch("renderEnd"),d=r.utils.renderWatch(c,l);function h(n){return d.reset(),n.each(function(n){"x"===a?(e.left,e.right):(e.top,e.bottom);var l="x"==a?"y":"x",c=d3.select(this);r.utils.initSVG(c),t=t||u;var h=c.selectAll("g.nv-distribution").data([n]),f=(h.enter().append("g").attr("class","nvd3 nv-distribution").append("g"),h.select("g"));h.attr("transform","translate("+e.left+","+e.top+")");var m=f.selectAll("g.nv-dist").data(function(t){return t},function(t){return t.key});m.enter().append("g"),m.attr("class",function(t,e){return"nv-dist nv-series-"+e}).style("stroke",function(t,e){return s(t,e)});var p=m.selectAll("line.nv-dist"+a).data(function(t){return t.values});p.enter().append("line").attr(a+"1",function(e,n){return t(o(e,n))}).attr(a+"2",function(e,n){return t(o(e,n))}),d.transition(m.exit().selectAll("line.nv-dist"+a),"dist exit").attr(a+"1",function(t,e){return u(o(t,e))}).attr(a+"2",function(t,e){return u(o(t,e))}).style("stroke-opacity",0).remove(),p.attr("class",function(t,e){return"nv-dist"+a+" nv-dist"+a+"-"+e}).attr(l+"1",0).attr(l+"2",i),d.transition(p,"dist").attr(a+"1",function(t,e){return u(o(t,e))}).attr(a+"2",function(t,e){return u(o(t,e))}),t=u.copy()}),d.renderEnd("distribution immediate"),h}return h.options=r.utils.optionsFunc.bind(h),h.dispatch=c,h.margin=function(t){return arguments.length?(e.top=void 0!==t.top?t.top:e.top,e.right=void 0!==t.right?t.right:e.right,e.bottom=void 0!==t.bottom?t.bottom:e.bottom,e.left=void 0!==t.left?t.left:e.left,h):e},h.width=function(t){return arguments.length?(n=t,h):n},h.axis=function(t){return arguments.length?(a=t,h):a},h.size=function(t){return arguments.length?(i=t,h):i},h.getData=function(t){return arguments.length?(o=d3.functor(t),h):o},h.scale=function(t){return arguments.length?(u=t,h):u},h.color=function(t){return arguments.length?(s=r.utils.getColor(t),h):s},h.duration=function(t){return arguments.length?(l=t,d.reset(l),h):l},h},r.models.distroPlot=function(){"use strict";var t,e,n,i,a,o={top:0,right:0,bottom:0,left:0},s=960,u=500,l=Math.floor(1e4*Math.random()),c=d3.scale.ordinal(),d=d3.scale.linear(),h=function(t){return t.label},f=function(t){return t.value},m=function(t){return t.color},p=function(t){return t.values.q1},g=function(t){return t.values.q2},v=function(t){return t.values.q3},_=function(t){return("mean"==O?b(t):g(t))-t.values.notch},y=function(t){return("mean"==O?b(t):g(t))+t.values.notch},b=function(t){return t.values.mean},M=function(t){return t.values.wl[T]},w=function(t){return t.values.wu[T]},x=function(t){return t.values.min},k=function(t){return t.values.max},L=function(t){return t.values.dev},S=function(t){return t.values.observations},Y=!1,T="iqr",D=!1,C=!1,E=!1,O=!1,A=!0,j=.7,H=!0,N="scott",P=!0,F=50,V=3,I=r.utils.defaultColor(),W=null,R=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),z=250,B=null;function G(t,e){void 0===e&&(e="scott");var n=function(t){var e=t.sort(d3.ascending),n=(d3.quantile(e,.75)-d3.quantile(e,.25))/1.349;return d3.min([d3.deviation(e),n])}(t),r=t.length;return"scott"===e?Math.pow(1.059*n*r,-.2):Math.pow(.9*n*r,-.2)}function U(t){function e(t,e){var n,r=t.map(function(t){return E&&X.add(E(t)),f(t)}).sort(d3.ascending),i=d3.quantile(r,.25),a=d3.quantile(r,.75),o=a-i,s=a+1.5*o,u=i-1.5*o,l={iqr:d3.max([d3.min(r),d3.min(r.filter(function(t){return t>u}))]),minmax:d3.min(r),stddev:d3.mean(r)-d3.deviation(r)},c={iqr:d3.min([d3.max(r),d3.max(r.filter(function(t){return t<s}))]),minmax:d3.max(r),stddev:d3.mean(r)+d3.deviation(r)},h=d3.median(r),m=d3.mean(r),p=[];(void 0!==d3.beeswarm?(p=d3.beeswarm().data(t.map(function(t){return f(t)})).radius(V+1).orientation("vertical").side("symmetric").distributeOn(function(t){return d(t)}).arrange()).map(function(n,r){n.key=e,n.object_constancy=t[r].object_constancy,n.isOutlier=n.datum<l.iqr||n.datum>c.iqr,n.isOutlierStdDev=n.datum<l.stddev||n.datum>c.stddev,n.randX=Math.random()*j*(1==Math.floor(2*Math.random())?1:-1)}):r.forEach(function(t,n){p.push({object_constancy:t.object_constancy,datum:t,key:e,isOutlier:t<l.iqr||t>c.iqr,isOutlierStdDev:t<l.stddev||t>c.stddev,randX:Math.random()*j*(1==Math.floor(2*Math.random())?1:-1)})}),isNaN(parseFloat(N)))&&(n=-1!=["scott","silverman"].indexOf(N)?G(r,N):G(r));var g=function(t,e){return function(n){return e.map(function(e){var r=d3.mean(n,function(n){return t(e-n)});return{x:e,y:r}})}}(function(t){return function(e){return Math.abs(e/=t)<=1?.75*(1-e*e)/t:0}}(n),d.ticks(F)),v=P?function(t,e){if(e[0]===e[1])return t;var n=t.reduce(function(t,n){return n.x>=e[0]&&n.x<=e[1]&&t.push(n),t},[]);e[0]<n[0].x&&n.unshift({x:e[0],y:n[0].y});e[1]>n[n.length-1].x&&n.push({x:e[1],y:n[n.length-1].y});return n}(g(r),d3.extent(r)):g(r),_=d3.scale.linear().domain([0,d3.max(v,function(t){return t.y})]).clamp(!0);K.push(_);var y={count:r.length,num_outlier:p.filter(function(t){return t.isOutlier}).length,sum:d3.sum(r),mean:m,q1:i,q2:h,q3:a,wl:l,wu:c,iqr:o,min:d3.min(r),max:d3.max(r),dev:d3.deviation(r),observations:p,key:e,kde:v,notch:1.57*o/Math.sqrt(r.length)};return E&&Q.push({key:e,values:y}),y}var n;if(t.forEach(function(t,e){t.object_constancy=e+"_"+f(t)+"_"+h(t)}),E){X=d3.set();var r=d3.nest().key(function(t){return h(t)}).key(function(t){return E(t)}).rollup(function(t){return e(t,h(t[0]))}).entries(t);X=X.values();for(var i=r.map(function(t){return t.key}),a=[],o=0;o<i.length;o++)for(var s=0;s<X.length;s++)a.push(i[o]+"_"+X[s]);X=a,n=[],r.forEach(function(t){t.values.forEach(function(e){e.key=t.key+"_"+e.key}),n.push.apply(n,t.values)})}else n=d3.nest().key(function(t){return h(t)}).rollup(function(t,n){return e(t)}).entries(t);return n}function $(t){return"iqr"==T&&t.isOutlier||"stddev"==T&&t.isOutlierStdDev}var q,J,Z,X=d3.set(),K=[],Q=[],tt=r.utils.renderWatch(R,z);function et(l){return tt.reset(),l.each(function(l){J=s-o.left-o.right,Z=u-o.top-o.bottom,W=d3.select(this),r.utils.initSVG(W),d.domain(i||d3.extent(l.map(function(t){return f(t)}))).nice().range(a||[Z,0]),void 0===q&&(q=U(l)),c.rangeBands(n||[0,J],.1).domain(e||E&&!H?X:q.map(function(t){return t.key}));var h=W.selectAll("g.nv-wrap").data([q]);h.enter().append("g").attr("class","nvd3 nv-wrap");h.watchTransition(tt,"nv-wrap: wrap").attr("transform","translate("+o.left+","+o.top+")");var T,j=h.selectAll(".nv-distroplot-x-group").data(function(t){return t});j.each(function(t,e){d3.select(this).selectAll("line.nv-distroplot-middle").datum(t)}),T=j.enter().append("g").attr("class","nv-distroplot-x-group").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).style("fill",function(t,e){return m(t)||I(t,e)}).style("stroke",function(t,e){return m(t)||I(t,e)}),j.exit().remove();var N=function(){return c.rangeBand()},P=function(){return d3.min([B,.9*N()])},F=function(){return P()/2},z=function(){return F()-P()/2},G=function(){return F()-P()/5},Q=function(){return F()+P()/5};T.attr("transform",function(t){return"translate("+(c(t.key)+.5*(N()-P()))+", 0)"}),j.watchTransition(tt,"nv-distroplot-x-group: distroplots").style("stroke-opacity",1).style("fill-opacity",.5).attr("transform",function(t){return"translate("+(c(t.key)+.5*(N()-P()))+", 0)"}),K.map(function(t){t.range([P()/2,0])}),t||(A=!1,Y||(Y="random")),T.each(function(t,e){var n=d3.select(this);[M,w].forEach(function(t){var e=t===M?"low":"high";n.append("line").style("opacity",function(){return D?"1":"0"}).attr("class","nv-distroplot-whisker nv-distroplot-"+e),n.append("line").style("opacity",function(){return D?"0":"1"}).attr("class","nv-distroplot-tick nv-distroplot-"+e)})}),[M,w].forEach(function(e){var n=e===M?"low":"high",r=e===M?p:v;j.select("line.nv-distroplot-whisker.nv-distroplot-"+n).watchTransition(tt,"nv-distroplot-x-group: distroplots").attr("x1",F()).attr("y1",function(n){return d("violin"!=t?e(n):g(n))}).attr("x2",F()).attr("y2",function(e){return d("box"==t?r(e):g(e))}).style("opacity",function(){return D?"0":"1"}),j.select("line.nv-distroplot-tick.nv-distroplot-"+n).watchTransition(tt,"nv-distroplot-x-group: distroplots").attr("x1",function(e){return"violin"!=t?G():F()}).attr("y1",function(n,r){return d("violin"!=t?e(n):g(n))}).attr("x2",function(e){return"violin"!=t?Q():F()}).attr("y2",function(n,r){return d("violin"!=t?e(n):g(n))}).style("opacity",function(){return D?"0":"1"})}),[M,w].forEach(function(t){var e=t===M?"low":"high";T.selectAll(".nv-distroplot-"+e).on("mouseover",function(n,r,i){d3.select(this.parentNode).selectAll("line.nv-distroplot-"+e).classed("hover",!0),R.elementMouseover({value:"low"==e?"Lower whisker":"Upper whisker",series:{key:t(n).toFixed(2),color:m(n)||I(n,i)},e:d3.event})}).on("mouseout",function(n,r,i){d3.select(this.parentNode).selectAll("line.nv-distroplot-"+e).classed("hover",!1),R.elementMouseout({value:"low"==e?"Lower whisker":"Upper whisker",series:{key:t(n).toFixed(2),color:m(n)||I(n,i)},e:d3.event})}).on("mousemove",function(t,e){R.elementMousemove({e:d3.event})})}),T.each(function(t,e){var n=d3.select(this);["left","right"].forEach(function(t){["line","area"].forEach(function(e){n.append("path").attr("class","nv-distribution-"+e+" nv-distribution-"+t).attr("transform","rotate(90,0,0) translate(0,"+("left"==t?-P():0)+")"+("left"==t?"":" scale(1,-1)"))})}),T.selectAll(".nv-distribution-line").style("fill","none"),T.selectAll(".nv-distribution-area").style("stroke","none").style("opacity",.7)}),j.each(function(e,n){var r=d3.select(this),i="box"==t?function(t,e,n,r){var i="mean"==O?b(r):g(r);return C?[{x:n,y:d(p(r))},{x:t,y:d(p(r))},{x:t,y:d(_(r))},{x:e,y:d(i)},{x:t,y:d(y(r))},{x:t,y:d(v(r))},{x:n,y:d(v(r))}]:[{x:n,y:d(p(r))},{x:t,y:d(p(r))},{x:t,y:d(i)},{x:t,y:d(i)},{x:t,y:d(i)},{x:t,y:d(v(r))},{x:n,y:d(v(r))}]}(z(),G(),F(),e):e.values.kde;r.selectAll("path").datum(i);var a=K[n],o="box"==t?"linear":"basis";"box"==t||"violin"==t?["left","right"].forEach(function(e){j.selectAll(".nv-distribution-line.nv-distribution-"+e).attr("d",d3.svg.line().x(function(e){return"box"==t?e.y:d(e.x)}).y(function(e){return"box"==t?e.x:a(e.y)}).interpolate(o)).attr("transform","rotate(90,0,0) translate(0,"+("left"==e?-P():0)+")"+("left"==e?"":" scale(1,-1)")).style("opacity",t?"1":"0"),j.selectAll(".nv-distribution-area.nv-distribution-"+e).attr("d",d3.svg.area().x(function(e){return"box"==t?e.y:d(e.x)}).y(function(e){return"box"==t?e.x:a(e.y)}).y0(P()/2).interpolate(o)).attr("transform","rotate(90,0,0) translate(0,"+("left"==e?-P():0)+")"+("left"==e?"":" scale(1,-1)")).style("opacity",t?"1":"0")}):(j.selectAll(".nv-distribution-area").watchTransition(tt,"nv-distribution-area: distroplots").style("opacity",t?"1":"0"),j.selectAll(".nv-distribution-line").watchTransition(tt,"nv-distribution-line: distroplots").style("opacity",t?"1":"0"))}),j.selectAll("path").on("mouseover",function(t,e,n){t=d3.select(this.parentNode).datum(),d3.select(this).classed("hover",!0),R.elementMouseover({key:t.key,value:"Group "+t.key+" stats",series:[{key:"max",value:k(t).toFixed(2),color:m(t)||I(t,n)},{key:"Q3",value:v(t).toFixed(2),color:m(t)||I(t,n)},{key:"Q2",value:g(t).toFixed(2),color:m(t)||I(t,n)},{key:"Q1",value:p(t).toFixed(2),color:m(t)||I(t,n)},{key:"min",value:x(t).toFixed(2),color:m(t)||I(t,n)},{key:"mean",value:b(t).toFixed(2),color:m(t)||I(t,n)},{key:"std. dev.",value:L(t).toFixed(2),color:m(t)||I(t,n)},{key:"count",value:t.values.count,color:m(t)||I(t,n)},{key:"num. outliers",value:t.values.num_outlier,color:m(t)||I(t,n)}],data:t,index:e,e:d3.event})}).on("mouseout",function(t,e,n){d3.select(this).classed("hover",!1),t=d3.select(this.parentNode).datum(),R.elementMouseout({key:t.key,value:"Group "+t.key+" stats",series:[{key:"max",value:k(t).toFixed(2),color:m(t)||I(t,n)},{key:"Q3",value:v(t).toFixed(2),color:m(t)||I(t,n)},{key:"Q2",value:g(t).toFixed(2),color:m(t)||I(t,n)},{key:"Q1",value:p(t).toFixed(2),color:m(t)||I(t,n)},{key:"min",value:x(t).toFixed(2),color:m(t)||I(t,n)},{key:"mean",value:b(t).toFixed(2),color:m(t)||I(t,n)},{key:"std. dev.",value:L(t).toFixed(2),color:m(t)||I(t,n)},{key:"count",value:t.values.count,color:m(t)||I(t,n)},{key:"num. outliers",value:t.values.num_outlier,color:m(t)||I(t,n)}],data:t,index:e,e:d3.event})}).on("mousemove",function(t,e){R.elementMousemove({e:d3.event})}),T.append("line").attr("class",function(t){return"nv-distroplot-middle"}),j.selectAll("line.nv-distroplot-middle").watchTransition(tt,"nv-distroplot-x-group: distroplots line").attr("x1",C?G:"violin"!=t?z:G()).attr("y1",function(t,e,n){return d("mean"==O?b(t):g(t))}).attr("x2",C?Q:"violin"!=t?function(){return F()+P()/2}:Q()).attr("y2",function(t,e){return d("mean"==O?b(t):g(t))}).style("opacity",O?"1":"0"),j.selectAll(".nv-distroplot-middle").on("mouseover",function(t,e,n){if(0!=d3.select(this).style("opacity")){var r=d3.select(this.parentNode).style("fill");d3.select(this).classed("hover",!0),R.elementMouseover({value:"mean"==O?"Mean":"Median",series:{key:"mean"==O?b(t).toFixed(2):g(t).toFixed(2),color:r},e:d3.event})}}).on("mouseout",function(t,e,n){if(0!=d3.select(this).style("opacity")){d3.select(this).classed("hover",!1);var r=d3.select(this.parentNode).style("fill");R.elementMouseout({value:"mean"==O?"Mean":"Median",series:{key:"mean"==O?b(t).toFixed(2):g(t).toFixed(2),color:r},e:d3.event})}}).on("mousemove",function(t,e){R.elementMousemove({e:d3.event})});var et=j.selectAll("g.nv-distroplot-observation").data(function(t){return S(t)},function(t){return t.object_constancy}),nt=et.enter().append("g").attr("class","nv-distroplot-observation");nt.append("circle").style({opacity:0}),nt.append("line").style("stroke-width",1).style({stroke:d3.rgb(85,85,85),opacity:0}),et.exit().remove(),et.attr("class",function(e){return"nv-distroplot-observation "+($(e)&&"box"==t?"nv-distroplot-outlier":"nv-distroplot-non-outlier")}),"line"==Y?j.selectAll("g.nv-distroplot-observation line").watchTransition(tt,"nv-distrolot-x-group: nv-distoplot-observation").attr("x1",G()+P()/4).attr("x2",Q()-P()/4).attr("y1",function(t){return d(t.datum)}).attr("y2",function(t){return d(t.datum)}):(j.selectAll("g.nv-distroplot-observation circle").watchTransition(tt,"nv-distroplot: nv-distroplot-observation").attr("cy",function(t){return d(t.datum)}).attr("r",V),j.selectAll("g.nv-distroplot-observation circle").watchTransition(tt,"nv-distroplot: nv-distroplot-observation").attr("cx",function(t){return"swarm"==Y?t.x+P()/2:"random"==Y?P()/2+t.randX*P()/2:P()/2})),!1!==Y&&(A?(j.selectAll(".nv-distroplot-outlier "+("line"==Y?"line":"circle")).watchTransition(tt,"nv-distroplot: nv-distroplot-observation").style("opacity",1),j.selectAll(".nv-distroplot-non-outlier "+("line"==Y?"line":"circle")).watchTransition(tt,"nv-distroplot: nv-distroplot-observation").style("opacity",0)):j.selectAll("line"==Y?"line":"circle").watchTransition(tt,"nv-distroplot: nv-distroplot-observation").style("opacity",1)),j.selectAll(".nv-distroplot-observation"+("line"==Y?" circle":" line")).watchTransition(tt,"nv-distroplot: nv-distoplot-observation").style("opacity",0),j.selectAll(".nv-distroplot-observation").on("mouseover",function(e,n,r){var i=d3.select(this);if(!A||"box"!=t||$(e)){var a=d3.select(this.parentNode).style("fill");i.classed("hover",!0),R.elementMouseover({value:"box"==t&&$(e)?"Outlier":"Observation",series:{key:e.datum.toFixed(2),color:a},e:d3.event})}}).on("mouseout",function(e,n,r){var i=d3.select(this),a=d3.select(this.parentNode).style("fill");i.classed("hover",!1),R.elementMouseout({value:"box"==t&&$(e)?"Outlier":"Observation",series:{key:e.datum.toFixed(2),color:a},e:d3.event})}).on("mousemove",function(t,e){R.elementMousemove({e:d3.event})})}),tt.renderEnd("nv-distroplot-x-group immediate"),et}return et.dispatch=R,et.options=r.utils.optionsFunc.bind(et),et._options=Object.create({},{width:{get:function(){return s},set:function(t){s=t}},height:{get:function(){return u},set:function(t){u=t}},maxBoxWidth:{get:function(){return B},set:function(t){B=t}},x:{get:function(){return h},set:function(t){h=t}},y:{get:function(){return f},set:function(t){f=t}},plotType:{get:function(){return t},set:function(e){t=e}},observationType:{get:function(){return Y},set:function(t){Y=t}},whiskerDef:{get:function(){return T},set:function(t){T=t}},notchBox:{get:function(){return C},set:function(t){C=t}},hideWhiskers:{get:function(){return D},set:function(t){D=t}},colorGroup:{get:function(){return E},set:function(t){E=t}},centralTendency:{get:function(){return O},set:function(t){O=t}},bandwidth:{get:function(){return N},set:function(t){N=t}},clampViolin:{get:function(){return P},set:function(t){P=t}},resolution:{get:function(){return F},set:function(t){F=t}},xScale:{get:function(){return c},set:function(t){c=t}},yScale:{get:function(){return d},set:function(t){d=t}},showOnlyOutliers:{get:function(){return A},set:function(t){A=t}},jitter:{get:function(){return j},set:function(t){j=t}},squash:{get:function(){return H},set:function(t){H=t}},pointSize:{get:function(){return V},set:function(t){V=t}},xDomain:{get:function(){return e},set:function(t){e=t}},yDomain:{get:function(){return i},set:function(t){i=t}},xRange:{get:function(){return n},set:function(t){n=t}},yRange:{get:function(){return a},set:function(t){a=t}},recalcData:{get:function(){q=U(W.datum())}},itemColor:{get:function(){return m},set:function(t){m=t}},id:{get:function(){return l},set:function(t){l=t}},margin:{get:function(){return o},set:function(t){o.top=void 0!==t.top?t.top:o.top,o.right=void 0!==t.right?t.right:o.right,o.bottom=void 0!==t.bottom?t.bottom:o.bottom,o.left=void 0!==t.left?t.left:o.left}},color:{get:function(){return I},set:function(t){I=r.utils.getColor(t)}},duration:{get:function(){return z},set:function(t){z=t,tt.reset(z)}}}),r.utils.initOptions(et),et},r.models.distroPlotChart=function(){"use strict";var t,e,n=r.models.distroPlot(),i=r.models.axis(),a=r.models.axis(),o={top:25,right:10,bottom:40,left:60},s=null,u=null,l=r.utils.getColor(),c=!0,d=!0,h=!1,f=!1,m=!1,p=!1,g=r.models.tooltip(),v="No Data Available.",_=d3.dispatch("stateChange","beforeUpdate","renderEnd"),y=500;i.orient("bottom").showMaxMin(!1).tickFormat(function(t){return t}),a.orient(h?"right":"left").tickFormat(d3.format(",.1f")),g.duration(0);var b,M,w,x,k,L,S,Y=r.utils.renderWatch(_,y);o.top;function T(t){return!function(t,e){if(t.length!==e.length)return!1;for(var n=t.length;n--;)if("object_constancy"in t[n]&&delete t[n].object_constancy,"object_constancy"in e[n]&&delete e[n].object_constancy,!D(t[n],e[n]))return!1;return!0}(t,S)&&(S=JSON.parse(JSON.stringify(t)),!0)}function D(t,e){var n=Object.getOwnPropertyNames(t),r=Object.getOwnPropertyNames(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var a=n[i];if(t[a]!==e[a])return!1}return!0}function C(l){return Y.reset(),Y.models(n),c&&Y.models(i),d&&Y.models(a),l.each(function(l){var m=d3.select(this);r.utils.initSVG(m);var p=(s||parseInt(m.style("width"))||960)-o.left-o.right,g=(u||parseInt(m.style("height"))||400)-o.top-o.bottom;if(void 0===S&&(S=JSON.parse(JSON.stringify(l))),C.update=function(){_.beforeUpdate();var t=n.options();(b!==t.colorGroup()||M!==t.x()||w!==t.y()||k!==t.bandwidth()||x!==t.resolution()||L!==t.clampViolin()||T(l))&&n.recalcData(),m.transition().duration(y).call(C)},C.container=this,"function"!=typeof d3.beeswarm&&"swarm"==C.options().observationType()){o.left;return v='Please include the library https://github.com/Kcnarf/d3-beeswarm to use "swarm".',r.utils.noData(C,m),C}if(!l||!l.length)return r.utils.noData(C,m),C;m.selectAll(".nv-noData").remove(),t=n.xScale(),e=n.yScale().clamp(!0);var D=m.selectAll("g.nv-wrap.nv-distroPlot").data([l]),E=D.enter().append("g").attr("class","nvd3 nv-wrap nv-distroPlot").append("g"),O=E.append("defs"),A=D.select("g");if(E.append("g").attr("class","nv-x nv-axis"),E.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),E.append("g").attr("class","nv-distroWrap"),E.attr("transform","translate("+o.left+","+o.top+")"),A.watchTransition(Y,"nv-wrap: wrap").attr("transform","translate("+o.left+","+o.top+")"),h&&A.select(".nv-y.nv-axis").attr("transform","translate("+p+",0)"),n.width(p).height(g),A.select(".nv-distroWrap").datum(l).transition().call(n),O.append("clipPath").attr("id","nv-x-label-clip-"+n.id()).append("rect"),A.select("#nv-x-label-clip-"+n.id()+" rect").attr("width",t.rangeBand()*(f?2:1)).attr("height",16).attr("x",-t.rangeBand()/(f?1:2)),c){i.scale(t).ticks(r.utils.calcTicksX(p/100,l)).tickSize(-g,0),A.select(".nv-x.nv-axis").attr("transform","translate(0,"+e.range()[0]+")"),A.select(".nv-x.nv-axis").call(i);var j=A.select(".nv-x.nv-axis").selectAll("g");f&&j.selectAll("text").attr("transform",function(t,e,n){return"translate(0,"+(n%2==0?"5":"17")+")"})}d&&(a.scale(e).ticks(Math.floor(g/36)).tickSize(-p,0),A.select(".nv-y.nv-axis").call(a)),A.select(".nv-zeroLine line").attr("x1",0).attr("x2",p).attr("y1",e(0)).attr("y2",e(0)),b=n.options().colorGroup(),M=n.options().x(),w=n.options().y(),k=n.options().bandwidth(),x=n.options().resolution(),L=n.options().clampViolin()}),Y.renderEnd("nv-distroplot chart immediate"),C}return n.dispatch.on("elementMouseover.tooltip",function(t){g.data(t).hidden(!1)}),n.dispatch.on("elementMouseout.tooltip",function(t){g.data(t).hidden(!0)}),n.dispatch.on("elementMousemove.tooltip",function(t){g()}),C.dispatch=_,C.distroplot=n,C.xAxis=i,C.yAxis=a,C.tooltip=g,C.options=r.utils.optionsFunc.bind(C),C._options=Object.create({},{width:{get:function(){return s},set:function(t){s=t}},height:{get:function(){return u},set:function(t){u=t}},staggerLabels:{get:function(){return f},set:function(t){f=t}},showXAxis:{get:function(){return c},set:function(t){c=t}},showYAxis:{get:function(){return d},set:function(t){d=t}},tooltipContent:{get:function(){return g},set:function(t){g=t}},noData:{get:function(){return v},set:function(t){v=t}},defaultState:{get:function(){return defaultState},set:function(t){defaultState=t}},margin:{get:function(){return o},set:function(t){o.top=void 0!==t.top?t.top:o.top,o.right=void 0!==t.right?t.right:o.right,o.bottom=void 0!==t.bottom?t.bottom:o.bottom,o.left=void 0!==t.left?t.left:o.left}},duration:{get:function(){return y},set:function(t){y=t,Y.reset(y),n.duration(y),i.duration(y),a.duration(y)}},color:{get:function(){return l},set:function(t){l=r.utils.getColor(t),n.color(l)}},rightAlignYAxis:{get:function(){return h},set:function(t){h=t,a.orient(t?"right":"left")}},xLabel:{get:function(){return m},set:function(t){m=t,i.axisLabel(m)}},yLabel:{get:function(){return p},set:function(t){p=t,a.axisLabel(p)}}}),r.utils.inheritOptions(C,n),r.utils.initOptions(C),C},r.models.focus=function(t){"use strict";t=t||r.models.line();var e,n,i=r.models.axis(),a=r.models.axis(),o=d3.svg.brush(),s={top:10,right:0,bottom:30,left:0},u=r.utils.defaultColor(),l=null,c=70,d=!0,h=!1,f=!1,m=null,p=250,g=d3.dispatch("brush","onBrush","renderEnd"),v=!0;t.interactive(!1),t.pointActive(function(t){return!1});var _=r.utils.renderWatch(g,p);function y(b){return _.reset(),_.models(t),d&&_.models(i),h&&_.models(a),b.each(function(_){var b=d3.select(this);r.utils.initSVG(b);var M=r.utils.availableWidth(l,b,s),w=c-s.top-s.bottom;y.update=function(){0===p?b.call(y):b.transition().duration(p).call(y)},y.container=this,e=t.xScale(),n=t.yScale();var x=b.selectAll("g.nv-focus").data([_]),k=x.enter().append("g").attr("class","nvd3 nv-focus").append("g"),L=x.select("g");x.attr("transform","translate("+s.left+","+s.top+")"),k.append("g").attr("class","nv-background").append("rect"),k.append("g").attr("class","nv-x nv-axis"),k.append("g").attr("class","nv-y nv-axis"),k.append("g").attr("class","nv-contentWrap"),k.append("g").attr("class","nv-brushBackground"),k.append("g").attr("class","nv-x nv-brush"),f&&L.select(".nv-y.nv-axis").attr("transform","translate("+M+",0)"),L.select(".nv-background rect").attr("width",M).attr("height",w),t.width(M).height(w).color(_.map(function(t,e){return t.color||u(t,e)}).filter(function(t,e){return!_[e].disabled}));var S=L.select(".nv-contentWrap").datum(_.filter(function(t){return!t.disabled}));d3.transition(S).call(t),o.x(e).on("brush",function(){C(v)}),o.on("brushend",function(){v||g.onBrush(o.empty()?e.domain():o.extent())}),m&&o.extent(m);var Y=L.select(".nv-brushBackground").selectAll("g").data([m||o.extent()]),T=Y.enter().append("g");T.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",w),T.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",w);var D=L.select(".nv-x.nv-brush").call(o);function C(t){m=o.empty()?null:o.extent();var n=o.empty()?e.domain():o.extent();g.brush({extent:n,brush:o}),o.empty()||o.extent(m),Y.data([o.empty()?e.domain():m]).each(function(t,n){var r=e(t[0])-e.range()[0],i=M-e(t[1]);d3.select(this).select(".left").attr("width",r<0?0:r),d3.select(this).select(".right").attr("x",e(t[1])).attr("width",i<0?0:i)}),t&&g.onBrush(n)}D.selectAll("rect").attr("height",w),D.selectAll(".resize").append("path").attr("d",function(t){var e=+("e"==t),n=e?1:-1,r=w/3;return"M"+.5*n+","+r+"A6,6 0 0 "+e+" "+6.5*n+","+(r+6)+"V"+(2*r-6)+"A6,6 0 0 "+e+" "+.5*n+","+2*r+"ZM"+2.5*n+","+(r+8)+"V"+(2*r-8)+"M"+4.5*n+","+(r+8)+"V"+(2*r-8)}),C(!0),L.select(".nv-background rect").attr("width",M).attr("height",w),d&&(i.scale(e)._ticks(r.utils.calcTicksX(M/100,_)).tickSize(-w,0),L.select(".nv-x.nv-axis").attr("transform","translate(0,"+n.range()[0]+")"),d3.transition(L.select(".nv-x.nv-axis")).call(i)),h&&(a.scale(n)._ticks(r.utils.calcTicksY(w/36,_)).tickSize(-M,0),d3.transition(L.select(".nv-y.nv-axis")).call(a)),L.select(".nv-x.nv-axis").attr("transform","translate(0,"+n.range()[0]+")")}),_.renderEnd("focus immediate"),y}return y.dispatch=g,y.content=t,y.brush=o,y.xAxis=i,y.yAxis=a,y.options=r.utils.optionsFunc.bind(y),y._options=Object.create({},{width:{get:function(){return l},set:function(t){l=t}},height:{get:function(){return c},set:function(t){c=t}},showXAxis:{get:function(){return d},set:function(t){d=t}},showYAxis:{get:function(){return h},set:function(t){h=t}},brushExtent:{get:function(){return m},set:function(t){m=t}},syncBrushing:{get:function(){return v},set:function(t){v=t}},margin:{get:function(){return s},set:function(t){s.top=void 0!==t.top?t.top:s.top,s.right=void 0!==t.right?t.right:s.right,s.bottom=void 0!==t.bottom?t.bottom:s.bottom,s.left=void 0!==t.left?t.left:s.left}},duration:{get:function(){return p},set:function(e){p=e,_.reset(p),t.duration(p),i.duration(p),a.duration(p)}},color:{get:function(){return u},set:function(e){u=r.utils.getColor(e),t.color(u)}},interpolate:{get:function(){return t.interpolate()},set:function(e){t.interpolate(e)}},xTickFormat:{get:function(){return i.tickFormat()},set:function(t){i.tickFormat(t)}},yTickFormat:{get:function(){return a.tickFormat()},set:function(t){a.tickFormat(t)}},x:{get:function(){return t.x()},set:function(e){t.x(e)}},y:{get:function(){return t.y()},set:function(e){t.y(e)}},rightAlignYAxis:{get:function(){return f},set:function(t){f=t,a.orient(f?"right":"left")}}}),r.utils.inheritOptions(y,t),r.utils.initOptions(y),y},r.models.forceDirectedGraph=function(){"use strict";var t={top:2,right:0,bottom:2,left:0},e=400,n=32,i=null,a=d3.dispatch("renderEnd"),o=r.utils.getColor(["#000"]),s=r.models.tooltip(),u=null,l=.1,c=.9,d=30,h=-120,f=.1,m=.8,p=.1,g=5,v=function(t){},_=function(t){},y=d3.functor(0),b=d3.functor(0),M=r.utils.renderWatch(a);function w(a){return M.reset(),a.each(function(a){i=d3.select(this),r.utils.initSVG(i);var u=r.utils.availableWidth(e,i,t),y=r.utils.availableHeight(n,i,t);if(i.attr("width",u).attr("height",y),!(a&&a.links&&a.nodes))return r.utils.noData(w,i),w;i.selectAll(".nv-noData").remove(),i.selectAll("*").remove();var b=new Set;a.nodes.forEach(function(t){Object.keys(t).forEach(function(t){b.add(t)})});var M=d3.layout.force().nodes(a.nodes).links(a.links).size([u,y]).linkStrength(l).friction(c).linkDistance(d).charge(h).gravity(f).theta(m).alpha(p).start(),x=i.selectAll(".link").data(a.links).enter().append("line").attr("class","nv-force-link").style("stroke-width",function(t){return Math.sqrt(t.value)}),k=i.selectAll(".node").data(a.nodes).enter().append("g").attr("class","nv-force-node").call(M.drag);k.append("circle").attr("r",g).style("fill",function(t){return o(t)}).on("mouseover",function(t){i.select(".nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",t.py),i.select(".nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",t.px);var e=o(t);t.series=[],b.forEach(function(n){t.series.push({color:e,key:n,value:t[n]})}),s.data(t).hidden(!1)}).on("mouseout",function(t){s.hidden(!0)}),s.headerFormatter(function(t){return"Node"}),_(x),v(k),M.on("tick",function(){x.attr("x1",function(t){return t.source.x}).attr("y1",function(t){return t.source.y}).attr("x2",function(t){return t.target.x}).attr("y2",function(t){return t.target.y}),k.attr("transform",function(t){return"translate("+t.x+", "+t.y+")"})})}),w}return w.options=r.utils.optionsFunc.bind(w),w._options=Object.create({},{width:{get:function(){return e},set:function(t){e=t}},height:{get:function(){return n},set:function(t){n=t}},linkStrength:{get:function(){return l},set:function(t){l=t}},friction:{get:function(){return c},set:function(t){c=t}},linkDist:{get:function(){return d},set:function(t){d=t}},charge:{get:function(){return h},set:function(t){h=t}},gravity:{get:function(){return f},set:function(t){f=t}},theta:{get:function(){return m},set:function(t){m=t}},alpha:{get:function(){return p},set:function(t){p=t}},radius:{get:function(){return g},set:function(t){g=t}},x:{get:function(){return y},set:function(t){y=d3.functor(t)}},y:{get:function(){return b},set:function(t){b=d3.functor(t)}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},color:{get:function(){return o},set:function(t){o=r.utils.getColor(t)}},noData:{get:function(){return u},set:function(t){u=t}},nodeExtras:{get:function(){return v},set:function(t){v=t}},linkExtras:{get:function(){return _},set:function(t){_=t}}}),w.dispatch=a,w.tooltip=s,r.utils.initOptions(w),w},r.models.furiousLegend=function(){"use strict";var t={top:5,right:0,bottom:5,left:0},e=400,n=20,i=function(t){return t.key},a=function(t){return t},o=r.utils.getColor(),s=20,u=!0,l=28,c=!0,d=!0,h=!1,f=!1,m=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),p="classic";function g(v){function _(t,e){return"furious"!=p?"#000":f?t.disengaged?o(t,e):"#fff":f?void 0:t.disabled?o(t,e):"#fff"}function y(t,e){return f&&"furious"==p?t.disengaged?"#fff":o(t,e):t.disabled?"#fff":o(t,e)}return v.each(function(g){var v=e-t.left-t.right,b=d3.select(this);r.utils.initSVG(b);var M=b.selectAll("g.nv-legend").data([g]),w=(M.enter().append("g").attr("class","nvd3 nv-legend").append("g"),M.select("g"));M.attr("transform","translate("+t.left+","+t.top+")");var x,k=w.selectAll(".nv-series").data(function(t){return"furious"!=p?t:t.filter(function(t){return!!f||!t.disengaged})}),L=k.enter().append("g").attr("class","nv-series");if("classic"==p)L.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),x=k.select("circle");else if("furious"==p){L.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),x=k.select("rect"),L.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"></path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"></path>').attr("transform","translate(-10,-8)scale(0.5)"),k.select(".nv-check-box").each(function(t,e){d3.select(this).selectAll("path").attr("stroke",_(t,e))})}L.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var S,Y=k.select("text.nv-legend-text");switch(k.on("mouseover",function(t,e){m.legendMouseover(t,e)}).on("mouseout",function(t,e){m.legendMouseout(t,e)}).on("click",function(t,e){m.legendClick(t,e);var n=k.data();if(d){if("classic"==p)h?(n.forEach(function(t){t.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,n.every(function(t){return t.disabled})&&n.forEach(function(t){t.disabled=!1}));else if("furious"==p)if(f)t.disengaged=!t.disengaged,t.userDisabled=void 0==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled;else if(!f){t.disabled=!t.disabled,t.userDisabled=t.disabled,n.filter(function(t){return!t.disengaged}).every(function(t){return t.userDisabled})&&n.forEach(function(t){t.disabled=t.userDisabled=!1})}m.stateChange({disabled:n.map(function(t){return!!t.disabled}),disengaged:n.map(function(t){return!!t.disengaged})})}}).on("dblclick",function(t,e){if(("furious"!=p||!f)&&(m.legendDblclick(t,e),d)){var n=k.data();n.forEach(function(t){t.disabled=!0,"furious"==p&&(t.userDisabled=t.disabled)}),t.disabled=!1,"furious"==p&&(t.userDisabled=t.disabled),m.stateChange({disabled:n.map(function(t){return!!t.disabled})})}}),k.classed("nv-disabled",function(t){return t.userDisabled}),k.exit().remove(),Y.attr("fill",_).text(function(t){return a(i(t))}),p){case"furious":S=23;break;case"classic":S=20}if(u){var T=[];k.each(function(t,e){var n,o;if(a(i(t))&&a(i(t)).length>s){var u=a(i(t)).substring(0,s);n=d3.select(this).select("text").text(u+"..."),d3.select(this).append("svg:title").text(a(i(t)))}else n=d3.select(this).select("text");try{if((o=n.node().getComputedTextLength())<=0)throw Error()}catch(t){o=r.utils.calcApproxTextWidth(n)}T.push(o+l)});for(var D=0,C=0,E=[];C<v&&D<T.length;)E[D]=T[D],C+=T[D++];for(0===D&&(D=1);C>v&&D>1;){E=[],D--;for(var O=0;O<T.length;O++)T[O]>(E[O%D]||0)&&(E[O%D]=T[O]);C=E.reduce(function(t,e,n,r){return t+e})}for(var A=[],j=0,H=0;j<D;j++)A[j]=H,H+=E[j];k.attr("transform",function(t,e){return"translate("+A[e%D]+","+(5+Math.floor(e/D)*S)+")"}),c?w.attr("transform","translate("+(e-t.right-C)+","+t.top+")"):w.attr("transform","translate(0,"+t.top+")"),n=t.top+t.bottom+Math.ceil(T.length/D)*S}else{var N,P=5,F=5,V=0;k.attr("transform",function(n,r){var i=d3.select(this).select("text").node().getComputedTextLength()+l;return N=F,e<t.left+t.right+N+i&&(F=N=5,P+=S),(F+=i)>V&&(V=F),"translate("+N+","+P+")"}),w.attr("transform","translate("+(e-t.right-V)+","+t.top+")"),n=t.top+t.bottom+P+15}"furious"==p&&x.attr("width",function(t,e){return Y[0][e].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),x.style("fill",y).style("stroke",function(t,e){return t.color||o(t,e)})}),g}return g.dispatch=m,g.options=r.utils.optionsFunc.bind(g),g._options=Object.create({},{width:{get:function(){return e},set:function(t){e=t}},height:{get:function(){return n},set:function(t){n=t}},key:{get:function(){return i},set:function(t){i=t}},keyFormatter:{get:function(){return a},set:function(t){a=t}},align:{get:function(){return u},set:function(t){u=t}},rightAlign:{get:function(){return c},set:function(t){c=t}},maxKeyLength:{get:function(){return s},set:function(t){s=t}},padding:{get:function(){return l},set:function(t){l=t}},updateState:{get:function(){return d},set:function(t){d=t}},radioButtonMode:{get:function(){return h},set:function(t){h=t}},expanded:{get:function(){return f},set:function(t){f=t}},vers:{get:function(){return p},set:function(t){p=t}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},color:{get:function(){return o},set:function(t){o=r.utils.getColor(t)}}}),r.utils.initOptions(g),g},r.models.heatMap=function(){"use strict";var t,e,n,i,a,o,s,u,l,c={top:0,right:0,bottom:0,left:0},d=960,h=500,f=Math.floor(1e4*Math.random()),m=d3.scale.ordinal(),p=d3.scale.ordinal(),g=!1,v=function(t){return t.x},_=function(t){return t.y},y=function(t){return t.value},b=!0,M=function(t){return"number"==typeof t?t.toFixed(0):t},w=!1,x=2,k=4,L=!1,S=!0,Y=r.utils.defaultColor(),T=r.utils.defaultColor(),D="#bcbcbc",C="",E=5,O=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),A=250,j=function(t){return B/3},H=function(t){return G/3},N=!1;function P(t){var e=d3.median(t),n=t.map(function(t){return Math.abs(t-e)});return d3.median(n)}function F(t){var e=L?ot(t):y(t);return V()&&!isNaN(e)||void 0!==e?g(e):D}function V(){return"number"==typeof X[0]}function I(t){if(-1!=["centerRow","robustCenterRow","centerScaleRow","robustCenterScaleRow","centerColumn","robustCenterColumn","centerScaleColumn","robustCenterScaleColumn","centerAll","robustCenterAll","centerScaleAll","robustCenterScaleAll"].indexOf(L)){Object.keys(J),Object.keys(Z);var e=!!L.includes("Scale"),n=L.includes("robust")?"median":"mean",r=L.includes("Row")?"row":L.includes("Column")?"col":null,i=function(t,e){var n={};return t.forEach(function(t,r){"row"==e?(at(t)in n||(n[at(t)]=[]),n[at(t)].push(y(t))):"col"==e?(it(t)in n||(n[it(t)]=[]),n[it(t)].push(y(t))):null==e&&(0 in n||(n[0]=[]),n[0].push(y(t)))}),n}(t,r),a={},o={};for(var s in i)a[s]="mean"==n?d3.mean(i[s]):d3.median(i[s]),e&&(o[s]="mean"==n?d3.deviation(i[s]):P(i[s]));t.forEach(function(t,n){if(V()){if("row"==r)var i=at(t);else if("col"==r)i=it(t);else if(null==r)i=0;var s=y(t)-a[i];t._cellPos.norm=e?s/o[i]:s}else t._cellPos.norm=y(t)})}else L=!1;return t}function W(t){J={},Z={},X=[],K=[],Q=[],tt=[];var e,n=[],r={},i=0,a=0,u=0;t.forEach(function(t){var l=v(t),c=_(t),d=y(t);l in J||(J[l]=i,i++,r[l]={},"function"==typeof o&&K.push(o(t))),c in Z||(Z[c]=a,a++,r[l][c]={},"function"==typeof s&&Q.push(s(t))),-1==X.indexOf(d)&&X.push(d),t._cellPos={idx:u,ix:J[l],iy:Z[c]},u++,!function(t,e){var n=JSON.stringify(e);return t.some(function(t){return JSON.stringify(t)===n})}(tt,e=[l,c])?(tt.push(e),r[l][c]=t):-1==n.indexOf(l+c)&&(n.push(l+c),console.warn("The row/column position "+l+"/"+c+" has multiple values; ensure each cell has only a single value."))}),X=X.sort();var l=[];return Object.keys(Z).forEach(function(t){Object.keys(J).forEach(function(e){var n=r[e][t];if(n)l.push(n);else{var i={idx:u,ix:J[e],iy:Z[t]};u++,l.push({_cellPos:i})}})}),L?I(l):l}function R(){d3.selectAll(".cell-hover").classed("cell-hover",!1),d3.selectAll(".no-hover").classed("no-hover",!1),d3.selectAll(".row-hover").classed("row-hover",!1),d3.selectAll(".column-hover").classed("column-hover",!1)}var z,B,G,U=function(t){var e=M(L?ot(t):y(t));return V()&&!isNaN(e)||void 0!==e?e:C};function $(t){return Object.keys(t).sort(function(e,n){return t[e]-t[n]})}function q(t,e){return Object.keys(t).filter(function(n){return t[n]===e})[0]}var J={},Z={},X=[],K=[],Q=[],tt=[],et=r.utils.renderWatch(O,A),nt=["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],rt=function(t){return t._cellPos},it=function(t){return rt(t).ix},at=function(t){return rt(t).iy},ot=function(t){return rt(t).norm},st=function(t){return rt(t).idx};function ut(f){return et.reset(),f.each(function(f){z=W(f);var v=d-c.left-c.right,_=h-c.top-c.bottom;G=v/Object.keys(J).length,B=w?G/w:_/Object.keys(Z).length,w&&(_=B*Object.keys(Z).length-c.top-c.bottom),t=d3.select(this),r.utils.initSVG(t),m.domain(e||$(J)).rangeBands(i||[0,v-k/2]),p.domain(n||$(Z)).rangeBands(a||[0,_-k/2]),(g=V()?d3.scale.quantize():d3.scale.ordinal()).domain(l||(V()?L?d3.extent(z,function(t){return ot(t)}):d3.extent(X):V()?void 0:X)).range(u||nt);var M=t.selectAll("g.nv-heatMapWrap").data([z]),D=M.enter().append("g").attr("class","nvd3 nv-heatMapWrap");D.append("g").attr("class","cellWrap"),M.watchTransition(et,"nv-wrap: heatMapWrap").attr("transform","translate("+c.left+","+c.top+")");D.append("g").attr("class","cellGrid").style("opacity",1e-6);var C=M.select(".cellGrid").selectAll(".gridLines.verticalGrid").data(Object.values(J).concat([Object.values(J).length]));C.enter().append("line").attr("class","gridLines verticalGrid"),C.exit().remove();var A=M.select(".cellGrid").selectAll(".gridLines.horizontalGrid").data(Object.values(Z).concat([Object.values(Z).length]));A.enter().append("line").attr("class","gridLines horizontalGrid"),A.exit().remove();var P=M.select(".cellWrap").selectAll(".nv-cell").data(function(t){return t},function(t){return st(t)}),I=(D.append("g").attr("class","xMetaWrap").attr("transform",function(){return"translate(0,"+(-j()-k-E)+")"}),M.select(".xMetaWrap").selectAll(".x-meta").data(K)),tt=(I.enter().append("rect").attr("class","x-meta meta").attr("width",G-k).attr("height",j()).attr("transform","translate(0,0)").attr("fill",function(t){return Y(t)}),D.append("g").attr("class","yMetaWrap").attr("transform",function(t,e){return"translate("+(-H()-k-E)+",0)"}),M.select(".yMetaWrap").selectAll(".y-meta").data(Q));tt.enter().append("rect").attr("class","y-meta meta").attr("width",H()).attr("height",B-k).attr("transform",function(t,e){return"translate(0,0)"}).attr("fill",function(t,e){return T(t)});I.exit().remove(),tt.exit().remove();var rt=P.enter().append("g").style("opacity",1e-6).attr("transform",function(t){return"translate(0,"+at(t)*B+")"}).attr("data-row",function(t){return at(t)}).attr("data-column",function(t){return it(t)});rt.append("rect"),rt.append("text").attr("text-anchor","middle").attr("dy",4).attr("class","cell-text"),P.selectAll("rect").watchTransition(et,"heatMap: rect").attr("width",G-k).attr("height",B-k).attr("rx",x).attr("ry",x).style("stroke",function(t){return F(t)}),P.attr("class",function(t){return isNaN(y(t))?"nv-cell cell-missing":"nv-cell"}).watchTransition(et,"heatMap: cells").style({opacity:1,fill:function(t){return F(t)}}).attr("transform",function(t){return"translate("+it(t)*G+","+at(t)*B+")"}).attr("class",function(t){return isNaN(y(t))?"nv-cell cell-missing":"nv-cell"}),P.exit().remove(),P.selectAll("text").watchTransition(et,"heatMap: cells text").text(function(t){return U(t)}).attr("x",function(t){return(G-k)/2}).attr("y",function(t){return(B-k)/2}).style("fill",function(t){return function(t){if(S){var e=d3.rgb(t);return(299*e.r+587*e.g+114*e.b)/1e3>=128?"#404040":"#EDEDED"}return"black"}(F(t))}).style("opacity",function(){return b?1:0}),M.selectAll(".verticalGrid").watchTransition(et,"heatMap: gridLines").attr("y1",0).attr("y2",_-k).attr("x1",function(t){return t*G-k/2}).attr("x2",function(t){return t*G-k/2});var ut=Object.keys(Z).length;M.selectAll(".horizontalGrid").watchTransition(et,"heatMap: gridLines").attr("x1",function(t){return 0==t||t==ut?-k:0}).attr("x2",function(t){return 0==t||t==ut?v:v-k}).attr("y1",function(t){return t*B-k/2}).attr("y2",function(t){return t*B-k/2}),M.select(".cellGrid").watchTransition(et,"heatMap: gridLines").style({"stroke-width":k,opacity:function(){return N?1:1e-6}});M.selectAll(".x-meta"),M.selectAll(".y-meta");var lt=M.selectAll(".meta");I.watchTransition(et,"heatMap: xMetaRect").attr("width",G-k).attr("height",j()).attr("transform",function(t,e){return"translate("+e*G+",0)"}),tt.watchTransition(et,"heatMap: yMetaRect").attr("width",H()).attr("height",B-k).attr("transform",function(t,e){return"translate(0,"+e*B+")"}),M.select(".xMetaWrap").watchTransition(et,"heatMap: xMetaWrap").attr("transform",function(t,e){return"translate(0,"+(-j()-k-E)+")"}).style("opacity",function(){return!1!==o?1:0}),M.select(".yMetaWrap").watchTransition(et,"heatMap: yMetaWrap").attr("transform",function(t,e){return"translate("+(-H()-k-E)+",0)"}).style("opacity",function(){return!1!==s?1:0}),P.on("mouseover",function(t,e){var n=st(t),r=it(t),i=at(t);d3.selectAll(".nv-cell").each(function(t){n==st(t)?(d3.select(this).classed("cell-hover",!0),d3.select(this).classed("no-hover",!1)):(d3.select(this).classed("no-hover",!0),d3.select(this).classed("cell-hover",!1)),r==it(t)&&(d3.select(this).classed("no-hover",!1),d3.select(this).classed("column-hover",!0)),i==at(t)&&(d3.select(this).classed("no-hover",!1),d3.select(this).classed("row-hover",!0))}),d3.selectAll(".x-meta").each(function(t,e){e==r?(d3.select(this).classed("cell-hover",!0),d3.select(this).classed("no-hover",!1)):(d3.select(this).classed("no-hover",!0),d3.select(this).classed("cell-hover",!1))}),d3.selectAll(".y-meta").each(function(t,e){e==i?(d3.select(this).classed("cell-hover",!0),d3.select(this).classed("no-hover",!1)):(d3.select(this).classed("no-hover",!0),d3.select(this).classed("cell-hover",!1))}),O.elementMouseover({value:q(J,r)+" & "+q(Z,i),series:{value:U(t),color:d3.select(this).select("rect").style("fill")},e:d3.event})}).on("mouseout",function(t,e){d3.select(this).select("rect").node().getBBox();var n=d3.mouse(d3.select(".nv-heatMap").node()),r=n[0],i=n[1];(r+k>=v||i+k>=_||r<0||i<0)&&(R(),O.elementMouseout({e:d3.event}))}).on("mousemove",function(t,e){O.elementMousemove({e:d3.event})}),lt.on("mouseover",function(t,e){var n=-1!=d3.select(this).attr("class").indexOf("x-meta");d3.selectAll(".nv-cell").each(function(t){n&&e==it(t)?(d3.select(this).classed("column-hover",!0),d3.select(this).classed("no-hover",!1)):n||e-K.length!=at(t)?(d3.select(this).classed("no-hover",!0),d3.select(this).classed("column-hover",!1),d3.select(this).classed("row-hover",!1)):(d3.select(this).classed("row-hover",!0),d3.select(this).classed("no-hover",!1)),d3.select(this).classed("cell-hover",!1)}),d3.selectAll(".meta").classed("no-hover",!0),d3.select(this).classed("cell-hover",!0),d3.select(this).classed("no-hover",!1),O.elementMouseover({value:n?"Column meta":"Row meta",series:{value:t,color:d3.select(this).style("fill")}})}).on("mouseout",function(t,e){var n=-1!=d3.select(this).attr("class").indexOf("x-meta"),r=(d3.select(this).node().getBBox(),d3.mouse(d3.select(n?".xMetaWrap":".yMetaWrap").node())),i=r[0],a=r[1];(a<0||i<0||n&&i+k>=v||!n&&a+k>=_)&&(R(),O.elementMouseout({e:d3.event}))}).on("mousemove",function(t,e){O.elementMousemove({e:d3.event})})}),et.renderEnd("heatMap immediate"),ut}return ut.dispatch=O,ut.options=r.utils.optionsFunc.bind(ut),ut._options=Object.create({},{width:{get:function(){return d},set:function(t){d=t}},height:{get:function(){return h},set:function(t){h=t}},showCellValues:{get:function(){return b},set:function(t){b=t}},x:{get:function(){return v},set:function(t){v=t}},y:{get:function(){return _},set:function(t){_=t}},cellValue:{get:function(){return y},set:function(t){y=t}},missingDataColor:{get:function(){return D},set:function(t){D=t}},missingDataLabel:{get:function(){return C},set:function(t){C=t}},xScale:{get:function(){return m},set:function(t){m=t}},yScale:{get:function(){return p},set:function(t){p=t}},colorScale:{get:function(){return g},set:function(t){g=t}},xDomain:{get:function(){return e},set:function(t){e=t}},yDomain:{get:function(){return n},set:function(t){n=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},colorRange:{get:function(){return u},set:function(t){u=t}},colorDomain:{get:function(){return l},set:function(t){l=t}},xMeta:{get:function(){return o},set:function(t){o=t}},yMeta:{get:function(){return s},set:function(t){s=t}},xMetaColorScale:{get:function(){return color},set:function(t){color=r.utils.getColor(t)}},yMetaColorScale:{get:function(){return color},set:function(t){color=r.utils.getColor(t)}},cellAspectRatio:{get:function(){return w},set:function(t){w=t}},cellRadius:{get:function(){return x},set:function(t){x=t}},cellHeight:{get:function(){return B}},cellWidth:{get:function(){return G}},normalize:{get:function(){return L},set:function(t){L=t}},cellBorderWidth:{get:function(){return k},set:function(t){k=t}},highContrastText:{get:function(){return S},set:function(t){S=t}},cellValueFormat:{get:function(){return M},set:function(t){M=t}},id:{get:function(){return f},set:function(t){f=t}},metaOffset:{get:function(){return E},set:function(t){E=t}},xMetaHeight:{get:function(){return j},set:function(t){j=t}},yMetaWidth:{get:function(){return H},set:function(t){H=t}},showGrid:{get:function(){return N},set:function(t){N=t}},margin:{get:function(){return c},set:function(t){c.top=void 0!==t.top?t.top:c.top,c.right=void 0!==t.right?t.right:c.right,c.bottom=void 0!==t.bottom?t.bottom:c.bottom,c.left=void 0!==t.left?t.left:c.left}},duration:{get:function(){return A},set:function(t){A=t,et.reset(A)}}}),r.utils.initOptions(ut),ut},r.models.heatMapChart=function(){"use strict";var t,e,n=r.models.heatMap(),i=r.models.legend(),a=(r.models.legend(),r.models.legend(),r.models.tooltip()),o=r.models.axis(),s=r.models.axis(),u={top:20,right:10,bottom:50,left:60},l=null,c=null,d=(r.utils.getColor(),!0),h=!1,f=!0,m=!0,p="left",g="top",v=0,_=null,y=d3.dispatch("beforeUpdate","renderEnd"),b=250;o.orient(g).showMaxMin(!1).tickFormat(function(t){return t}),s.orient(p).showMaxMin(!1).tickFormat(function(t){return t}),a.duration(0).headerEnabled(!0).keyFormatter(function(t,e){return o.tickFormat()(t,e)});var M=r.utils.renderWatch(y,b);function w(a){return M.reset(),M.models(n),M.models(o),M.models(s),a.each(function(a){var _=d3.select(this);r.utils.initSVG(_);var x=r.utils.availableWidth(l,_,u),k=r.utils.availableHeight(c,_,u);if(w.update=function(){y.beforeUpdate(),_.transition().duration(b).call(w)},w.container=this,!a||!a.length)return r.utils.noData(w,_),w;_.selectAll(".nv-noData").remove(),t=n.xScale(),e=n.yScale();var L=_.selectAll("g.nv-wrap").data([a]),S=L.enter().append("g").attr("class","nvd3 nv-wrap").append("g"),Y=L.select("g");S.append("g").attr("class","nv-heatMap"),S.append("g").attr("class","nv-legendWrap"),S.append("g").attr("class","nv-x nv-axis"),S.append("g").attr("class","nv-y nv-axis"),Y.attr("transform","translate("+u.left+","+u.top+")"),n.width(x).height(k),Y.select(".nv-heatMap").datum(a.filter(function(t){return!t.disabled})).transition().call(n),n.cellAspectRatio()&&(k=n.cellHeight()*e.domain().length,n.height(k)),o.scale(t)._ticks(r.utils.calcTicksX(x/100,a)).tickSize(-k,0);var T=Y.select(".nv-x.nv-axis");T.call(o).watchTransition(M,"heatMap: axisX").selectAll(".tick").style("opacity",function(){return f?1:0}),T.selectAll("g").selectAll(".tick text").attr("transform",function(t,e,n){return"translate(0, "+(h?n%2==0?"5":"17":"0")+") rotate("+(0!=v?v:"0")+" 0,0)"}).style("text-anchor",v>0?"start":v<0?"end":"middle");var D=-5;if("function"==typeof n.xMeta()&&(T.selectAll("text").style("text-anchor","middle"),D=-n.xMetaHeight()()/2-n.metaOffset()+3),"bottom"==g){if(T.watchTransition(M,"heatMap: axisX").attr("transform","translate(0,"+(k-D)+")"),!1!==n.xMeta()){var C=k+n.metaOffset()+n.cellBorderWidth();Y.select(".xMetaWrap").watchTransition(M,"heatMap: xMetaWrap").attr("transform",function(t,e){return"translate(0,"+C+")"})}}else T.watchTransition(M,"heatMap: axisX").attr("transform","translate(0,"+D+")");s.scale(e)._ticks(r.utils.calcTicksY(k/36,a)).tickSize(-x,0);var E=Y.select(".nv-y.nv-axis");E.call(s).watchTransition(M,"heatMap: axisY").selectAll(".tick").style("opacity",function(){return m?1:0});var O=-5;if("function"==typeof n.yMeta()&&(E.selectAll("text").style("text-anchor","middle"),O=-n.yMetaWidth()()/2-n.metaOffset()),"right"==p){if(E.attr("transform","translate("+(x-O)+",0)"),!1!==n.yMeta()){C=x+n.metaOffset()+n.cellBorderWidth();Y.select(".yMetaWrap").watchTransition(M,"heatMap: yMetaWrap").attr("transform",function(t,e){return"translate("+C+",0)"})}}else E.attr("transform","translate("+O+",0)");var A=Y.select(".nv-legendWrap");i.width(x).color(n.colorScale().range());var j=function(){var t=n.colorScale();return"string"==typeof t.domain()[0]?t.domain():t.range().map(function(e){var n=t.invertExtent(e);return null===n[0]&&(n[0]=t.domain()[0]),null===n[1]&&(n[1]=t.domain()[1]),n})}().map(function(t){return Array.isArray(t)?{key:t[0].toFixed(1)+" - "+t[1].toFixed(1)}:{key:t}});A.datum(j).call(i).attr("transform","translate(0,"+("top"==g?k:-30)+")"),A.watchTransition(M,"heatMap: nv-legendWrap").style("opacity",function(){return d?1:0})}),d3.selectAll(".nv-axis").selectAll("line").style("stroke-opacity",0),d3.select(".nv-y").select("path.domain").remove(),M.renderEnd("heatMap chart immediate"),w}return n.dispatch.on("elementMouseover.tooltip",function(t){a.data(t).hidden(!1)}),n.dispatch.on("elementMouseout.tooltip",function(t){a.hidden(!0)}),n.dispatch.on("elementMousemove.tooltip",function(t){a()}),w.dispatch=y,w.heatMap=n,w.legend=i,w.xAxis=o,w.yAxis=s,w.tooltip=a,w.options=r.utils.optionsFunc.bind(w),w._options=Object.create({},{width:{get:function(){return l},set:function(t){l=t}},height:{get:function(){return c},set:function(t){c=t}},showLegend:{get:function(){return d},set:function(t){d=t}},noData:{get:function(){return _},set:function(t){_=t}},showXAxis:{get:function(){return f},set:function(t){f=t}},showYAxis:{get:function(){return m},set:function(t){m=t}},staggerLabels:{get:function(){return h},set:function(t){h=t}},rotateLabels:{get:function(){return v},set:function(t){v=t}},margin:{get:function(){return u},set:function(t){void 0!==t.top&&(u.top=t.top,t.top),u.right=void 0!==t.right?t.right:u.right,u.bottom=void 0!==t.bottom?t.bottom:u.bottom,u.left=void 0!==t.left?t.left:u.left}},duration:{get:function(){return b},set:function(t){b=t,M.reset(b),n.duration(b),o.duration(b),s.duration(b)}},alignYAxis:{get:function(){return p},set:function(t){p=t,s.orient(t)}},alignXAxis:{get:function(){return g},set:function(t){g=t,o.orient(t)}}}),r.utils.inheritOptions(w,n),r.utils.initOptions(w),w},r.models.historicalBar=function(){"use strict";var t,e,n,i,a={top:0,right:0,bottom:0,left:0},o=null,s=null,u=Math.floor(1e4*Math.random()),l=null,c=d3.scale.linear(),d=d3.scale.linear(),h=function(t){return t.x},f=function(t){return t.y},m=[],p=[0],g=!1,v=!0,_=r.utils.defaultColor(),y=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),b=!0,M=r.utils.renderWatch(y,0);function w(x){return x.each(function(w){M.reset(),l=d3.select(this);var x=r.utils.availableWidth(o,l,a),k=r.utils.availableHeight(s,l,a);r.utils.initSVG(l),c.domain(t||d3.extent(w[0].values.map(h).concat(m))),g?c.range(n||[.5*x/w[0].values.length,x*(w[0].values.length-.5)/w[0].values.length]):c.range(n||[0,x]),d.domain(e||d3.extent(w[0].values.map(f).concat(p))).range(i||[k,0]),c.domain()[0]===c.domain()[1]&&(c.domain()[0]?c.domain([c.domain()[0]-.01*c.domain()[0],c.domain()[1]+.01*c.domain()[1]]):c.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var L=l.selectAll("g.nv-wrap.nv-historicalBar-"+u).data([w[0].values]),S=L.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBar-"+u),Y=S.append("defs"),T=S.append("g"),D=L.select("g");T.append("g").attr("class","nv-bars"),L.attr("transform","translate("+a.left+","+a.top+")"),l.on("click",function(t,e){y.chartClick({data:t,index:e,pos:d3.event,id:u})}),Y.append("clipPath").attr("id","nv-chart-clip-path-"+u).append("rect"),L.select("#nv-chart-clip-path-"+u+" rect").attr("width",x).attr("height",k),D.attr("clip-path",v?"url(#nv-chart-clip-path-"+u+")":"");var C=L.select(".nv-bars").selectAll(".nv-bar").data(function(t){return t},function(t,e){return h(t,e)});C.exit().remove(),C.enter().append("rect").attr("x",0).attr("y",function(t,e){return r.utils.NaNtoZero(d(Math.max(0,f(t,e))))}).attr("height",function(t,e){return r.utils.NaNtoZero(Math.abs(d(f(t,e))-d(0)))}).attr("transform",function(t,e){return"translate("+(c(h(t,e))-x/w[0].values.length*.45)+",0)"}).on("mouseover",function(t,e){b&&(d3.select(this).classed("hover",!0),y.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")}))}).on("mouseout",function(t,e){b&&(d3.select(this).classed("hover",!1),y.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")}))}).on("mousemove",function(t,e){b&&y.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){if(b){y.elementClick({data:t,index:e,color:d3.select(this).style("fill"),event:d3.event,element:this}),d3.event.stopPropagation()}}).on("dblclick",function(t,e){b&&(y.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation())}),C.attr("fill",function(t,e){return _(t,e)}).attr("class",function(t,e,n){return(f(t,e)<0?"nv-bar negative":"nv-bar positive")+" nv-bar-"+n+"-"+e}).watchTransition(M,"bars").attr("transform",function(t,e){return"translate("+(c(h(t,e))-x/w[0].values.length*.45)+",0)"}).attr("width",x/w[0].values.length*.9),C.watchTransition(M,"bars").attr("y",function(t,e){var n=f(t,e)<0?d(0):d(0)-d(f(t,e))<1?d(0)-1:d(f(t,e));return r.utils.NaNtoZero(n)}).attr("height",function(t,e){return r.utils.NaNtoZero(Math.max(Math.abs(d(f(t,e))-d(0)),1))})}),M.renderEnd("historicalBar immediate"),w}return w.highlightPoint=function(t,e){l.select(".nv-bars .nv-bar-0-"+t).classed("hover",e)},w.clearHighlights=function(){l.select(".nv-bars .nv-bar.hover").classed("hover",!1)},w.dispatch=y,w.options=r.utils.optionsFunc.bind(w),w._options=Object.create({},{width:{get:function(){return o},set:function(t){o=t}},height:{get:function(){return s},set:function(t){s=t}},forceX:{get:function(){return m},set:function(t){m=t}},forceY:{get:function(){return p},set:function(t){p=t}},padData:{get:function(){return g},set:function(t){g=t}},x:{get:function(){return h},set:function(t){h=t}},y:{get:function(){return f},set:function(t){f=t}},xScale:{get:function(){return c},set:function(t){c=t}},yScale:{get:function(){return d},set:function(t){d=t}},xDomain:{get:function(){return t},set:function(e){t=e}},yDomain:{get:function(){return e},set:function(t){e=t}},xRange:{get:function(){return n},set:function(t){n=t}},yRange:{get:function(){return i},set:function(t){i=t}},clipEdge:{get:function(){return v},set:function(t){v=t}},id:{get:function(){return u},set:function(t){u=t}},interactive:{get:function(){return b},set:function(t){b=t}},margin:{get:function(){return a},set:function(t){a.top=void 0!==t.top?t.top:a.top,a.right=void 0!==t.right?t.right:a.right,a.bottom=void 0!==t.bottom?t.bottom:a.bottom,a.left=void 0!==t.left?t.left:a.left}},color:{get:function(){return _},set:function(t){_=r.utils.getColor(t)}}}),r.utils.initOptions(w),w},r.models.historicalBarChart=function(t){"use strict";var e,n,i=t||r.models.historicalBar(),a=r.models.axis(),o=r.models.axis(),s=r.models.legend(),u=r.interactiveGuideline(),l=r.models.tooltip(),c={top:30,right:90,bottom:50,left:90},d=null,h=r.utils.defaultColor(),f=null,m=null,p=!1,g=!0,v=!0,_=!1,y=!1,b={},M=null,w=null,x=d3.dispatch("tooltipHide","stateChange","changeState","renderEnd"),k=250;a.orient("bottom").tickPadding(7),o.orient(_?"right":"left"),l.duration(0).headerEnabled(!1).valueFormatter(function(t,e){return o.tickFormat()(t,e)}).headerFormatter(function(t,e){return a.tickFormat()(t,e)});var L=r.utils.renderWatch(x,0);function S(t){return t.each(function(l){L.reset(),L.models(i),g&&L.models(a),v&&L.models(o);var w=d3.select(this);r.utils.initSVG(w);var Y,T=r.utils.availableWidth(f,w,c),D=r.utils.availableHeight(m,w,c);if(S.update=function(){w.transition().duration(k).call(S)},S.container=this,b.disabled=l.map(function(t){return!!t.disabled}),!M)for(Y in M={},b)b[Y]instanceof Array?M[Y]=b[Y].slice(0):M[Y]=b[Y];if(!(l&&l.length&&l.filter(function(t){return t.values.length}).length))return r.utils.noData(S,w),S;w.selectAll(".nv-noData").remove(),e=i.xScale(),n=i.yScale();var C=w.selectAll("g.nv-wrap.nv-historicalBarChart").data([l]),E=C.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBarChart").append("g"),O=C.select("g");E.append("g").attr("class","nv-x nv-axis"),E.append("g").attr("class","nv-y nv-axis"),E.append("g").attr("class","nv-barsWrap"),E.append("g").attr("class","nv-legendWrap"),E.append("g").attr("class","nv-interactive"),p?(s.width(T),O.select(".nv-legendWrap").datum(l).call(s),d||s.height()===c.top||(c.top=s.height(),D=r.utils.availableHeight(m,w,c)),C.select(".nv-legendWrap").attr("transform","translate(0,"+-c.top+")")):O.select(".nv-legendWrap").selectAll("*").remove(),C.attr("transform","translate("+c.left+","+c.top+")"),_&&O.select(".nv-y.nv-axis").attr("transform","translate("+T+",0)"),y&&(u.width(T).height(D).margin({left:c.left,top:c.top}).svgContainer(w).xScale(e),C.select(".nv-interactive").call(u)),i.width(T).height(D).color(l.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!l[e].disabled})),O.select(".nv-barsWrap").datum(l.filter(function(t){return!t.disabled})).transition().call(i),g&&(a.scale(e)._ticks(r.utils.calcTicksX(T/100,l)).tickSize(-D,0),O.select(".nv-x.nv-axis").attr("transform","translate(0,"+n.range()[0]+")"),O.select(".nv-x.nv-axis").transition().call(a)),v&&(o.scale(n)._ticks(r.utils.calcTicksY(D/36,l)).tickSize(-T,0),O.select(".nv-y.nv-axis").transition().call(o)),u.dispatch.on("elementMousemove",function(t){i.clearHighlights();var e,n,s,c=[];l.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(a,o){n=r.interactiveBisect(a.values,t.pointXValue,S.x()),i.highlightPoint(n,!0);var u=a.values[n];void 0!==u&&(void 0===e&&(e=u),void 0===s&&(s=S.xScale()(S.x()(u,n))),c.push({key:a.key,value:S.y()(u,n),color:h(a,a.seriesIndex),data:a.values[n]}))});var d=a.tickFormat()(S.x()(e,n));u.tooltip.valueFormatter(function(t,e){return o.tickFormat()(t)}).data({value:d,index:n,series:c})(),u.renderGuideLine(s)}),u.dispatch.on("elementMouseout",function(t){x.tooltipHide(),i.clearHighlights()}),s.dispatch.on("legendClick",function(e,n){e.disabled=!e.disabled,l.filter(function(t){return!t.disabled}).length||l.map(function(t){return t.disabled=!1,C.selectAll(".nv-series").classed("disabled",!1),t}),b.disabled=l.map(function(t){return!!t.disabled}),x.stateChange(b),t.transition().call(S)}),s.dispatch.on("legendDblclick",function(t){l.forEach(function(t){t.disabled=!0}),t.disabled=!1,b.disabled=l.map(function(t){return!!t.disabled}),x.stateChange(b),S.update()}),x.on("changeState",function(t){void 0!==t.disabled&&(l.forEach(function(e,n){e.disabled=t.disabled[n]}),b.disabled=t.disabled),S.update()})}),L.renderEnd("historicalBarChart immediate"),S}return i.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:S.x()(t.data),value:S.y()(t.data),color:t.color},l.data(t).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(t){l.hidden(!0)}),i.dispatch.on("elementMousemove.tooltip",function(t){l()}),S.dispatch=x,S.bars=i,S.legend=s,S.xAxis=a,S.yAxis=o,S.interactiveLayer=u,S.tooltip=l,S.options=r.utils.optionsFunc.bind(S),S._options=Object.create({},{width:{get:function(){return f},set:function(t){f=t}},height:{get:function(){return m},set:function(t){m=t}},showLegend:{get:function(){return p},set:function(t){p=t}},showXAxis:{get:function(){return g},set:function(t){g=t}},showYAxis:{get:function(){return v},set:function(t){v=t}},defaultState:{get:function(){return M},set:function(t){M=t}},noData:{get:function(){return w},set:function(t){w=t}},margin:{get:function(){return c},set:function(t){void 0!==t.top&&(c.top=t.top,d=t.top),c.right=void 0!==t.right?t.right:c.right,c.bottom=void 0!==t.bottom?t.bottom:c.bottom,c.left=void 0!==t.left?t.left:c.left}},color:{get:function(){return h},set:function(t){h=r.utils.getColor(t),s.color(h),i.color(h)}},duration:{get:function(){return k},set:function(t){k=t,L.reset(k),o.duration(k),a.duration(k)}},rightAlignYAxis:{get:function(){return _},set:function(t){_=t,o.orient(t?"right":"left")}},useInteractiveGuideline:{get:function(){return y},set:function(t){y=t,!0===t&&S.interactive(!1)}}}),r.utils.inheritOptions(S,i),r.utils.initOptions(S),S},r.models.ohlcBarChart=function(){var t=r.models.historicalBarChart(r.models.ohlcBar());return t.useInteractiveGuideline(!0),t.interactiveLayer.tooltip.contentGenerator(function(e){var n=e.series[0].data;return'<h3 style="color: #'+(n.open<n.close?"2ca02c":"d62728")+'">'+e.value+"</h3><table><tr><td>open:</td><td>"+t.yAxis.tickFormat()(n.open)+"</td></tr><tr><td>close:</td><td>"+t.yAxis.tickFormat()(n.close)+"</td></tr><tr><td>high</td><td>"+t.yAxis.tickFormat()(n.high)+"</td></tr><tr><td>low:</td><td>"+t.yAxis.tickFormat()(n.low)+"</td></tr></table>"}),t},r.models.candlestickBarChart=function(){var t=r.models.historicalBarChart(r.models.candlestickBar());return t.useInteractiveGuideline(!0),t.interactiveLayer.tooltip.contentGenerator(function(e){var n=e.series[0].data;return'<h3 style="color: #'+(n.open<n.close?"2ca02c":"d62728")+'">'+e.value+"</h3><table><tr><td>open:</td><td>"+t.yAxis.tickFormat()(n.open)+"</td></tr><tr><td>close:</td><td>"+t.yAxis.tickFormat()(n.close)+"</td></tr><tr><td>high</td><td>"+t.yAxis.tickFormat()(n.high)+"</td></tr><tr><td>low:</td><td>"+t.yAxis.tickFormat()(n.low)+"</td></tr></table>"}),t},r.models.legend=function(){"use strict";var t={top:5,right:0,bottom:5,left:0},e=400,n=20,i=function(t){return t.key},a=function(t){return t},o=r.utils.getColor(),s=20,u=!0,l=32,c=!0,d=!0,h=!0,f=!1,m=!1,p=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),g="classic";function v(_){function y(t,e){return"furious"!=g?"#000":m?t.disengaged?"#000":"#fff":m?void 0:(t.color||(t.color=o(t,e)),t.disabled?t.color:"#fff")}function b(t,e){return m&&"furious"==g&&t.disengaged?"#eee":t.color||o(t,e)}function M(t,e){return m&&"furious"==g?1:t.disabled?0:1}return _.each(function(o){var v=e-t.left-t.right,_=d3.select(this);r.utils.initSVG(_);var w=_.selectAll("g.nv-legend").data([o]),x=w.enter().append("g").attr("class","nvd3 nv-legend").append("g"),k=w.select("g");c?w.attr("transform","translate("+-t.right+","+t.top+")"):w.attr("transform","translate("+t.left+","+t.top+")");var L,S,Y=k.selectAll(".nv-series").data(function(t){return"furious"!=g?t:t.filter(function(t){return!!m||!t.disengaged})}),T=Y.enter().append("g").attr("class","nv-series");switch(g){case"furious":S=23;break;case"classic":S=20}if("classic"==g)T.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),L=Y.select(".nv-legend-symbol");else if("furious"==g){T.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),L=Y.select(".nv-legend-symbol"),T.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"></path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"></path>').attr("transform","translate(-10,-8)scale(0.5)"),Y.select(".nv-check-box").each(function(t,e){d3.select(this).selectAll("path").attr("stroke",y(t,e))})}T.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var D=Y.select("text.nv-legend-text");Y.on("mouseover",function(t,e){p.legendMouseover(t,e)}).on("mouseout",function(t,e){p.legendMouseout(t,e)}).on("click",function(t,e){p.legendClick(t,e);var n=Y.data();if(d){if("classic"==g)f?(n.forEach(function(t){t.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,n.every(function(t){return t.disabled})&&n.forEach(function(t){t.disabled=!1}));else if("furious"==g)if(m)t.disengaged=!t.disengaged,t.userDisabled=void 0==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled;else if(!m){t.disabled=!t.disabled,t.userDisabled=t.disabled,n.filter(function(t){return!t.disengaged}).every(function(t){return t.userDisabled})&&n.forEach(function(t){t.disabled=t.userDisabled=!1})}p.stateChange({disabled:n.map(function(t){return!!t.disabled}),disengaged:n.map(function(t){return!!t.disengaged})})}}).on("dblclick",function(t,e){if(h){if("furious"==g&&m)return;if(p.legendDblclick(t,e),d){var n=Y.data();n.forEach(function(t){t.disabled=!0,"furious"==g&&(t.userDisabled=t.disabled)}),t.disabled=!1,"furious"==g&&(t.userDisabled=t.disabled),p.stateChange({disabled:n.map(function(t){return!!t.disabled})})}}}),Y.classed("nv-disabled",function(t){return t.userDisabled}),Y.exit().remove(),D.attr("fill",y).text(function(t){return a(i(t))});var C=0;if(u){var E=[];Y.each(function(t,e){var n,o;if(a(i(t))&&a(i(t)).length>s){var u=a(i(t)).substring(0,s);n=d3.select(this).select("text").text(u+"..."),d3.select(this).append("svg:title").text(a(i(t)))}else n=d3.select(this).select("text");try{if((o=n.node().getComputedTextLength())<=0)throw Error()}catch(t){o=r.utils.calcApproxTextWidth(n)}E.push(o+l)});var O=0,A=[];for(C=0;C<v&&O<E.length;)A[O]=E[O],C+=E[O++];for(0===O&&(O=1);C>v&&O>1;){A=[],O--;for(var j=0;j<E.length;j++)E[j]>(A[j%O]||0)&&(A[j%O]=E[j]);C=A.reduce(function(t,e,n,r){return t+e})}for(var H=[],N=0,P=0;N<O;N++)H[N]=P,P+=A[N];Y.attr("transform",function(t,e){return"translate("+H[e%O]+","+(5+Math.floor(e/O)*S)+")"}),c?k.attr("transform","translate("+(e-t.right-C)+","+t.top+")"):k.attr("transform","translate(0,"+t.top+")"),n=t.top+t.bottom+Math.ceil(E.length/O)*S}else{var F,V=5,I=5,W=0;Y.attr("transform",function(n,r){var i=d3.select(this).select("text").node().getComputedTextLength()+l;return F=I,e<t.left+t.right+F+i&&(I=F=5,V+=S),(I+=i)>W&&(W=I),C<F+W&&(C=F+W),"translate("+F+","+V+")"}),k.attr("transform","translate("+(e-t.right-W)+","+t.top+")"),n=t.top+t.bottom+V+15}"furious"==g&&(L.attr("width",function(t,e){return D[0][e].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),x.insert("rect",":first-child").attr("class","nv-legend-bg").attr("fill","#eee").attr("opacity",0),k.select(".nv-legend-bg").transition().duration(300).attr("x",-S).attr("width",C+S-12).attr("height",n+10).attr("y",-t.top-10).attr("opacity",m?1:0));L.style("fill",b).style("fill-opacity",M).style("stroke",b)}),v}return v.dispatch=p,v.options=r.utils.optionsFunc.bind(v),v._options=Object.create({},{width:{get:function(){return e},set:function(t){e=t}},height:{get:function(){return n},set:function(t){n=t}},key:{get:function(){return i},set:function(t){i=t}},keyFormatter:{get:function(){return a},set:function(t){a=t}},align:{get:function(){return u},set:function(t){u=t}},maxKeyLength:{get:function(){return s},set:function(t){s=t}},rightAlign:{get:function(){return c},set:function(t){c=t}},padding:{get:function(){return l},set:function(t){l=t}},updateState:{get:function(){return d},set:function(t){d=t}},enableDoubleClick:{get:function(){return h},set:function(t){h=t}},radioButtonMode:{get:function(){return f},set:function(t){f=t}},expanded:{get:function(){return m},set:function(t){m=t}},vers:{get:function(){return g},set:function(t){g=t}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},color:{get:function(){return o},set:function(t){o=r.utils.getColor(t)}}}),r.utils.initOptions(v),v},r.models.line=function(){"use strict";var t,e,n=r.models.scatter(),i={top:0,right:0,bottom:0,left:0},a=960,o=500,s=null,u=1.5,l=r.utils.defaultColor(),c=function(t){return t.x},d=function(t){return t.y},h=function(t,e){return!isNaN(d(t,e))&&null!==d(t,e)},f=function(t){return t.area},m=!1,p="linear",g=250,v=d3.dispatch("elementClick","elementMouseover","elementMouseout","renderEnd");n.pointSize(16).pointDomain([16,256]);var _,y,b=r.utils.renderWatch(v,g);function M(g){return b.reset(),b.models(n),g.each(function(g){s=d3.select(this);var v=r.utils.availableWidth(a,s,i),M=r.utils.availableHeight(o,s,i);r.utils.initSVG(s),t=n.xScale(),e=n.yScale(),_=_||t,y=y||e;var w=s.selectAll("g.nv-wrap.nv-line").data([g]),x=w.enter().append("g").attr("class","nvd3 nv-wrap nv-line"),k=x.append("defs"),L=x.append("g"),S=w.select("g");L.append("g").attr("class","nv-groups"),L.append("g").attr("class","nv-scatterWrap"),w.attr("transform","translate("+i.left+","+i.top+")"),n.width(v).height(M);var Y=w.select(".nv-scatterWrap");Y.call(n),k.append("clipPath").attr("id","nv-edge-clip-"+n.id()).append("rect"),w.select("#nv-edge-clip-"+n.id()+" rect").attr("width",v).attr("height",M>0?M:0),S.attr("clip-path",m?"url(#nv-edge-clip-"+n.id()+")":""),Y.attr("clip-path",m?"url(#nv-edge-clip-"+n.id()+")":"");var T=w.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key});T.enter().append("g").style("stroke-opacity",1e-6).style("stroke-width",function(t){return t.strokeWidth||u}).style("fill-opacity",1e-6),T.exit().remove(),T.attr("class",function(t,e){return(t.classed||"")+" nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return l(t,e)}).style("stroke",function(t,e){return l(t,e)}),T.watchTransition(b,"line: groups").style("stroke-opacity",1).style("fill-opacity",function(t){return t.fillOpacity||.5});var D=T.selectAll("path.nv-area").data(function(t){return f(t)?[t]:[]});D.enter().append("path").attr("class","nv-area").attr("d",function(t){return d3.svg.area().interpolate(p).defined(h).x(function(t,e){return r.utils.NaNtoZero(_(c(t,e)))}).y0(function(t,e){return r.utils.NaNtoZero(y(d(t,e)))}).y1(function(t,n){return y(e.domain()[0]<=0?e.domain()[1]>=0?0:e.domain()[1]:e.domain()[0])}).apply(this,[t.values])}),T.exit().selectAll("path.nv-area").remove(),D.watchTransition(b,"line: areaPaths").attr("d",function(n){return d3.svg.area().interpolate(p).defined(h).x(function(e,n){return r.utils.NaNtoZero(t(c(e,n)))}).y0(function(t,n){return r.utils.NaNtoZero(e(d(t,n)))}).y1(function(t,n){return e(e.domain()[0]<=0?e.domain()[1]>=0?0:e.domain()[1]:e.domain()[0])}).apply(this,[n.values])});var C=T.selectAll("path.nv-line").data(function(t){return[t.values]});C.enter().append("path").attr("class","nv-line").attr("d",d3.svg.line().interpolate(p).defined(h).x(function(t,e){return r.utils.NaNtoZero(_(c(t,e)))}).y(function(t,e){return r.utils.NaNtoZero(y(d(t,e)))})),C.watchTransition(b,"line: linePaths").attr("d",d3.svg.line().interpolate(p).defined(h).x(function(e,n){return r.utils.NaNtoZero(t(c(e,n)))}).y(function(t,n){return r.utils.NaNtoZero(e(d(t,n)))})),_=t.copy(),y=e.copy()}),b.renderEnd("line immediate"),M}return M.dispatch=v,M.scatter=n,n.dispatch.on("elementClick",function(){v.elementClick.apply(this,arguments)}),n.dispatch.on("elementMouseover",function(){v.elementMouseover.apply(this,arguments)}),n.dispatch.on("elementMouseout",function(){v.elementMouseout.apply(this,arguments)}),M.options=r.utils.optionsFunc.bind(M),M._options=Object.create({},{width:{get:function(){return a},set:function(t){a=t}},height:{get:function(){return o},set:function(t){o=t}},defined:{get:function(){return h},set:function(t){h=t}},interpolate:{get:function(){return p},set:function(t){p=t}},clipEdge:{get:function(){return m},set:function(t){m=t}},margin:{get:function(){return i},set:function(t){i.top=void 0!==t.top?t.top:i.top,i.right=void 0!==t.right?t.right:i.right,i.bottom=void 0!==t.bottom?t.bottom:i.bottom,i.left=void 0!==t.left?t.left:i.left}},duration:{get:function(){return g},set:function(t){g=t,b.reset(g),n.duration(g)}},isArea:{get:function(){return f},set:function(t){f=d3.functor(t)}},x:{get:function(){return c},set:function(t){c=t,n.x(t)}},y:{get:function(){return d},set:function(t){d=t,n.y(t)}},color:{get:function(){return l},set:function(t){l=r.utils.getColor(t),n.color(l)}}}),r.utils.inheritOptions(M,n),r.utils.initOptions(M),M},r.models.lineChart=function(){"use strict";var t,e,n=r.models.line(),i=r.models.axis(),a=r.models.axis(),o=r.models.legend(),s=r.interactiveGuideline(),u=r.models.tooltip(),l=r.models.focus(r.models.line()),c={top:30,right:20,bottom:50,left:60},d=null,h=r.utils.defaultColor(),f=null,m=null,p=!0,g="top",v=!0,_=!0,y=!1,b=!1,M=!1,w=r.utils.state(),x=null,k=null,L=d3.dispatch("stateChange","changeState","renderEnd"),S=250;i.orient("bottom").tickPadding(7),a.orient(y?"right":"left"),n.clipEdge(!0).duration(0),u.valueFormatter(function(t,e){return a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),s.tooltip.valueFormatter(function(t,e){return a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)});var Y=r.utils.renderWatch(L,S),T=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},D=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};function C(u){return Y.reset(),Y.models(n),v&&Y.models(i),_&&Y.models(a),u.each(function(u){var k=d3.select(this);r.utils.initSVG(k);var Y,E=r.utils.availableWidth(f,k,c),O=r.utils.availableHeight(m,k,c)-(M?l.height():0);if(C.update=function(){0===S?k.call(C):k.transition().duration(S).call(C)},C.container=this,w.setter(D(u),C.update).getter(T(u)).update(),w.disabled=u.map(function(t){return!!t.disabled}),!x)for(Y in x={},w)w[Y]instanceof Array?x[Y]=w[Y].slice(0):x[Y]=w[Y];if(!(u&&u.length&&u.filter(function(t){return t.values.length}).length))return r.utils.noData(C,k),C;k.selectAll(".nv-noData").remove(),l.dispatch.on("onBrush",function(t){W(t)}),t=n.xScale(),e=n.yScale();var A=k.selectAll("g.nv-wrap.nv-lineChart").data([u]),j=A.enter().append("g").attr("class","nvd3 nv-wrap nv-lineChart").append("g"),H=A.select("g");j.append("g").attr("class","nv-legendWrap");var N=j.append("g").attr("class","nv-focus");N.append("g").attr("class","nv-background").append("rect"),N.append("g").attr("class","nv-x nv-axis"),N.append("g").attr("class","nv-y nv-axis"),N.append("g").attr("class","nv-linesWrap"),N.append("g").attr("class","nv-interactive");j.append("g").attr("class","nv-focusWrap");p?(o.width(E),H.select(".nv-legendWrap").datum(u).call(o),"bottom"===g?(c.bottom=i.height()+o.height(),O=r.utils.availableHeight(m,k,c),H.select(".nv-legendWrap").attr("transform","translate(0,"+(O+i.height())+")")):"top"===g&&(d||o.height()===c.top||(c.top=o.height(),O=r.utils.availableHeight(m,k,c)-(M?l.height():0)),A.select(".nv-legendWrap").attr("transform","translate(0,"+-c.top+")"))):H.select(".nv-legendWrap").selectAll("*").remove(),A.attr("transform","translate("+c.left+","+c.top+")"),y&&H.select(".nv-y.nv-axis").attr("transform","translate("+E+",0)"),b&&(s.width(E).height(O).margin({left:c.left,top:c.top}).svgContainer(k).xScale(t),A.select(".nv-interactive").call(s)),H.select(".nv-focus .nv-background rect").attr("width",E).attr("height",O),n.width(E).height(O).color(u.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!u[e].disabled}));var P=H.select(".nv-linesWrap").datum(u.filter(function(t){return!t.disabled}));function F(){v&&H.select(".nv-focus .nv-x.nv-axis").transition().duration(S).call(i)}function V(){_&&H.select(".nv-focus .nv-y.nv-axis").transition().duration(S).call(a)}if(v&&i.scale(t)._ticks(r.utils.calcTicksX(E/100,u)).tickSize(-O,0),_&&a.scale(e)._ticks(r.utils.calcTicksY(O/36,u)).tickSize(-E,0),H.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+O+")"),M||null!==l.brush.extent()){l.width(E),H.select(".nv-focusWrap").style("display",M?"initial":"none").attr("transform","translate(0,"+(O+c.bottom+l.margin().top)+")").call(l);var I=l.brush.empty()?l.xDomain():l.brush.extent();null!==I&&W(I)}else P.transition().call(n),F(),V();function W(t){H.select(".nv-focus .nv-linesWrap").datum(u.filter(function(t){return!t.disabled}).map(function(e,r){return{key:e.key,area:e.area,classed:e.classed,values:e.values.filter(function(e,r){return n.x()(e,r)>=t[0]&&n.x()(e,r)<=t[1]}),disableTooltip:e.disableTooltip}})).transition().duration(S).call(n),F(),V()}o.dispatch.on("stateChange",function(t){for(var e in t)w[e]=t[e];L.stateChange(w),C.update()}),s.dispatch.on("elementMousemove",function(e){n.clearHighlights();var i,o,c,d=[];if(u.filter(function(t,e){return t.seriesIndex=e,!t.disabled&&!t.disableTooltip}).forEach(function(a,s){var u=null!==l.brush.extent()?l.brush.empty()?l.xScale().domain():l.brush.extent():t.domain(),f=a.values.filter(function(t,e){return u[0]<=u[1]?n.x()(t,e)>=u[0]&&n.x()(t,e)<=u[1]:n.x()(t,e)>=u[1]&&n.x()(t,e)<=u[0]});if(f.length>0){var m=f[o=r.interactiveBisect(f,e.pointXValue,n.x())],p=C.y()(m,o);if(null!==p&&n.highlightPoint(s,a.values.indexOf(m),!0),void 0===m)return;void 0===i&&(i=m),void 0===c&&(c=C.xScale()(C.x()(m,o))),d.push({key:a.key,value:p,color:h(a,a.seriesIndex),data:m})}}),d.length>2){var f=C.yScale().invert(e.mouseY),m=.03*Math.abs(C.yScale().domain()[0]-C.yScale().domain()[1]),p=r.nearestValueIndex(d.map(function(t){return t.value}),f,m);null!==p&&(d[p].highlight=!0)}void 0!==o&&(s.tooltip.valueFormatter(s.tooltip.valueFormatter()||function(t,e){return null==t?"N/A":a.tickFormat()(t)}).data({value:C.x()(i,o),index:o,series:d})(),s.renderGuideLine(c))}),s.dispatch.on("elementClick",function(t){var e,i=[];u.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(n){var a=r.interactiveBisect(n.values,t.pointXValue,C.x()),o=n.values[a];if(void 0!==o){void 0===e&&(e=C.xScale()(C.x()(o,a)));var s=C.yScale()(C.y()(o,a));i.push({point:o,pointIndex:a,pos:[e,s],seriesIndex:n.seriesIndex,series:n})}}),n.dispatch.elementClick(i)}),s.dispatch.on("elementMouseout",function(t){n.clearHighlights()}),L.on("changeState",function(t){void 0!==t.disabled&&u.length===t.disabled.length&&(u.forEach(function(e,n){e.disabled=t.disabled[n]}),w.disabled=t.disabled),C.update()})}),Y.renderEnd("lineChart immediate"),C}return n.dispatch.on("elementMouseover.tooltip",function(t){t.series.disableTooltip||u.data(t).hidden(!1)}),n.dispatch.on("elementMouseout.tooltip",function(t){u.hidden(!0)}),C.dispatch=L,C.lines=n,C.legend=o,C.focus=l,C.xAxis=i,C.x2Axis=l.xAxis,C.yAxis=a,C.y2Axis=l.yAxis,C.interactiveLayer=s,C.tooltip=u,C.state=w,C.dispatch=L,C.options=r.utils.optionsFunc.bind(C),C._options=Object.create({},{width:{get:function(){return f},set:function(t){f=t}},height:{get:function(){return m},set:function(t){m=t}},showLegend:{get:function(){return p},set:function(t){p=t}},legendPosition:{get:function(){return g},set:function(t){g=t}},showXAxis:{get:function(){return v},set:function(t){v=t}},showYAxis:{get:function(){return _},set:function(t){_=t}},defaultState:{get:function(){return x},set:function(t){x=t}},noData:{get:function(){return k},set:function(t){k=t}},focusEnable:{get:function(){return M},set:function(t){M=t}},focusHeight:{get:function(){return l.height()},set:function(t){l.height(t)}},focusShowAxisX:{get:function(){return l.showXAxis()},set:function(t){l.showXAxis(t)}},focusShowAxisY:{get:function(){return l.showYAxis()},set:function(t){l.showYAxis(t)}},brushExtent:{get:function(){return l.brushExtent()},set:function(t){l.brushExtent(t)}},focusMargin:{get:function(){return l.margin},set:function(t){void 0!==t.top&&(c.top=t.top,d=t.top),l.margin.right=void 0!==t.right?t.right:l.margin.right,l.margin.bottom=void 0!==t.bottom?t.bottom:l.margin.bottom,l.margin.left=void 0!==t.left?t.left:l.margin.left}},margin:{get:function(){return c},set:function(t){c.top=void 0!==t.top?t.top:c.top,c.right=void 0!==t.right?t.right:c.right,c.bottom=void 0!==t.bottom?t.bottom:c.bottom,c.left=void 0!==t.left?t.left:c.left}},duration:{get:function(){return S},set:function(t){S=t,Y.reset(S),n.duration(S),l.duration(S),i.duration(S),a.duration(S)}},color:{get:function(){return h},set:function(t){h=r.utils.getColor(t),o.color(h),n.color(h),l.color(h)}},interpolate:{get:function(){return n.interpolate()},set:function(t){n.interpolate(t),l.interpolate(t)}},xTickFormat:{get:function(){return i.tickFormat()},set:function(t){i.tickFormat(t),l.xTickFormat(t)}},yTickFormat:{get:function(){return a.tickFormat()},set:function(t){a.tickFormat(t),l.yTickFormat(t)}},x:{get:function(){return n.x()},set:function(t){n.x(t),l.x(t)}},y:{get:function(){return n.y()},set:function(t){n.y(t),l.y(t)}},rightAlignYAxis:{get:function(){return y},set:function(t){y=t,a.orient(y?"right":"left")}},useInteractiveGuideline:{get:function(){return b},set:function(t){(b=t)&&(n.interactive(!1),n.useVoronoi(!1))}}}),r.utils.inheritOptions(C,n),r.utils.initOptions(C),C},r.models.lineWithFocusChart=function(){return r.models.lineChart().margin({bottom:30}).focusEnable(!0)},r.models.linePlusBarChart=function(){"use strict";var t,e,n,i,a,o,s,u=r.models.line(),l=r.models.line(),c=r.models.historicalBar(),d=r.models.historicalBar(),h=r.models.axis(),f=r.models.axis(),m=r.models.axis(),p=r.models.axis(),g=r.models.axis(),v=r.models.axis(),_=r.models.legend(),y=d3.svg.brush(),b=r.models.tooltip(),M={top:30,right:30,bottom:30,left:60},w=null,x={top:0,right:30,bottom:20,left:60},k=null,L=null,S=function(t){return t.x},Y=function(t){return t.y},T=r.utils.defaultColor(),D=!0,C=!0,E=!1,O=!0,A=50,j=null,H=null,N=d3.dispatch("brush","stateChange","changeState"),P=0,F=r.utils.state(),V=null,I=" (left axis)",W=" (right axis)",R=!1;u.clipEdge(!0),l.interactive(!1),l.pointActive(function(t){return!1}),h.orient("bottom").tickPadding(5),m.orient("left"),p.orient("right"),f.orient("bottom").tickPadding(5),g.orient("left"),v.orient("right"),b.headerEnabled(!0).headerFormatter(function(t,e){return h.tickFormat()(t,e)});var z=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},B=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}},G=function(t){return t.every(function(t){return t.disabled})};function U(b){return b.each(function(b){var H=d3.select(this);r.utils.initSVG(H);var $,q=r.utils.availableWidth(k,H,M),J=r.utils.availableHeight(L,H,M)-(C?A:0),Z=A-x.top-x.bottom;if(U.update=function(){H.transition().duration(P).call(U)},U.container=this,F.setter(B(b),U.update).getter(z(b)).update(),F.disabled=b.map(function(t){return!!t.disabled}),!V)for($ in V={},F)F[$]instanceof Array?V[$]=F[$].slice(0):V[$]=F[$];if(!(b&&b.length&&b.filter(function(t){return t.values.length}).length))return r.utils.noData(U,H),U;H.selectAll(".nv-noData").remove();var X=b.filter(function(t){return!t.disabled&&t.bar}),K=b.filter(function(t){return!t.bar});e=X.length&&!R?c.xScale():u.xScale(),n=f.scale(),i=R?u.yScale():c.yScale(),a=R?c.yScale():u.yScale(),o=R?l.yScale():d.yScale(),s=R?d.yScale():l.yScale();var Q=b.filter(function(t){return!t.disabled&&(R?!t.bar:t.bar)}).map(function(t){return t.values.map(function(t,e){return{x:S(t,e),y:Y(t,e)}})}),tt=b.filter(function(t){return!t.disabled&&(R?t.bar:!t.bar)}).map(function(t){return t.values.map(function(t,e){return{x:S(t,e),y:Y(t,e)}})});e.range([0,q]),n.domain(d3.extent(d3.merge(Q.concat(tt)),function(t){return t.x})).range([0,q]);var et=H.selectAll("g.nv-wrap.nv-linePlusBar").data([b]),nt=et.enter().append("g").attr("class","nvd3 nv-wrap nv-linePlusBar").append("g"),rt=et.select("g");nt.append("g").attr("class","nv-legendWrap");var it=nt.append("g").attr("class","nv-focus");it.append("g").attr("class","nv-x nv-axis"),it.append("g").attr("class","nv-y1 nv-axis"),it.append("g").attr("class","nv-y2 nv-axis"),it.append("g").attr("class","nv-barsWrap"),it.append("g").attr("class","nv-linesWrap");var at=nt.append("g").attr("class","nv-context");if(at.append("g").attr("class","nv-x nv-axis"),at.append("g").attr("class","nv-y1 nv-axis"),at.append("g").attr("class","nv-y2 nv-axis"),at.append("g").attr("class","nv-barsWrap"),at.append("g").attr("class","nv-linesWrap"),at.append("g").attr("class","nv-brushBackground"),at.append("g").attr("class","nv-x nv-brush"),D){var ot=_.align()?q/2:q,st=_.align()?ot:0;_.width(ot),rt.select(".nv-legendWrap").datum(b.map(function(t){return t.originalKey=void 0===t.originalKey?t.key:t.originalKey,t.key=R?t.originalKey+(t.bar?W:I):t.originalKey+(t.bar?I:W),t})).call(_),w||_.height()===M.top||(M.top=_.height(),J=r.utils.availableHeight(L,H,M)-A),rt.select(".nv-legendWrap").attr("transform","translate("+st+","+-M.top+")")}else rt.select(".nv-legendWrap").selectAll("*").remove();et.attr("transform","translate("+M.left+","+M.top+")"),rt.select(".nv-context").style("display",C?"initial":"none"),d.width(q).height(Z).color(b.map(function(t,e){return t.color||T(t,e)}).filter(function(t,e){return!b[e].disabled&&b[e].bar})),l.width(q).height(Z).color(b.map(function(t,e){return t.color||T(t,e)}).filter(function(t,e){return!b[e].disabled&&!b[e].bar}));var ut=rt.select(".nv-context .nv-barsWrap").datum(X.length?X:[{values:[]}]),lt=rt.select(".nv-context .nv-linesWrap").datum(G(K)?[{values:[]}]:K.filter(function(t){return!t.disabled}));rt.select(".nv-context").attr("transform","translate(0,"+(J+M.bottom+x.top)+")"),ut.transition().call(d),lt.transition().call(l),O&&(f._ticks(r.utils.calcTicksX(q/100,b)).tickSize(-Z,0),rt.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+o.range()[0]+")"),rt.select(".nv-context .nv-x.nv-axis").transition().call(f)),E&&(g.scale(o)._ticks(Z/36).tickSize(-q,0),v.scale(s)._ticks(Z/36).tickSize(X.length?0:-q,0),rt.select(".nv-context .nv-y3.nv-axis").style("opacity",X.length?1:0).attr("transform","translate(0,"+n.range()[0]+")"),rt.select(".nv-context .nv-y2.nv-axis").style("opacity",K.length?1:0).attr("transform","translate("+n.range()[1]+",0)"),rt.select(".nv-context .nv-y1.nv-axis").transition().call(g),rt.select(".nv-context .nv-y2.nv-axis").transition().call(v)),y.x(n).on("brush",ft),j&&y.extent(j);var ct=rt.select(".nv-brushBackground").selectAll("g").data([j||y.extent()]),dt=ct.enter().append("g");dt.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",Z),dt.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",Z);var ht=rt.select(".nv-x.nv-brush").call(y);function ft(){j=y.empty()?null:y.extent(),t=y.empty()?n.domain():y.extent(),N.brush({extent:t,brush:y}),y.empty()||y.extent(j),ct.data([y.empty()?n.domain():j]).each(function(t,e){var r=n(t[0])-n.range()[0],i=n.range()[1]-n(t[1]);d3.select(this).select(".left").attr("width",r<0?0:r),d3.select(this).select(".right").attr("x",n(t[1])).attr("width",i<0?0:i)}),c.width(q).height(J).color(b.map(function(t,e){return t.color||T(t,e)}).filter(function(t,e){return!b[e].disabled&&b[e].bar})),u.width(q).height(J).color(b.map(function(t,e){return t.color||T(t,e)}).filter(function(t,e){return!b[e].disabled&&!b[e].bar}));var o=rt.select(".nv-focus .nv-barsWrap").datum(X.length?X.map(function(e,n){return{key:e.key,values:e.values.filter(function(e,n){return c.x()(e,n)>=t[0]&&c.x()(e,n)<=t[1]})}}):[{values:[]}]),s=rt.select(".nv-focus .nv-linesWrap").datum(G(K)?[{values:[]}]:K.filter(function(t){return!t.disabled}).map(function(e,n){return{area:e.area,fillOpacity:e.fillOpacity,strokeWidth:e.strokeWidth,key:e.key,values:e.values.filter(function(e,n){return u.x()(e,n)>=t[0]&&u.x()(e,n)<=t[1]})}}));e=X.length&&!R?c.xScale():u.xScale(),h.scale(e)._ticks(r.utils.calcTicksX(q/100,b)).tickSize(-J,0),h.domain([Math.ceil(t[0]),Math.floor(t[1])]),rt.select(".nv-x.nv-axis").transition().duration(P).call(h),o.transition().duration(P).call(c),s.transition().duration(P).call(u),rt.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+i.range()[0]+")"),m.scale(i)._ticks(r.utils.calcTicksY(J/36,b)).tickSize(-q,0),p.scale(a)._ticks(r.utils.calcTicksY(J/36,b)),R?p.tickSize(K.length?0:-q,0):p.tickSize(X.length?0:-q,0);var l=X.length?1:0,d=K.length&&!G(K)?1:0,f=R?d:l,g=R?l:d;rt.select(".nv-focus .nv-y1.nv-axis").style("opacity",f),rt.select(".nv-focus .nv-y2.nv-axis").style("opacity",g).attr("transform","translate("+e.range()[1]+",0)"),rt.select(".nv-focus .nv-y1.nv-axis").transition().duration(P).call(m),rt.select(".nv-focus .nv-y2.nv-axis").transition().duration(P).call(p)}ht.selectAll("rect").attr("height",Z),ht.selectAll(".resize").append("path").attr("d",function(t){var e=+("e"==t),n=e?1:-1,r=Z/3;return"M"+.5*n+","+r+"A6,6 0 0 "+e+" "+6.5*n+","+(r+6)+"V"+(2*r-6)+"A6,6 0 0 "+e+" "+.5*n+","+2*r+"ZM"+2.5*n+","+(r+8)+"V"+(2*r-8)+"M"+4.5*n+","+(r+8)+"V"+(2*r-8)}),_.dispatch.on("stateChange",function(t){for(var e in t)F[e]=t[e];N.stateChange(F),U.update()}),N.on("changeState",function(t){void 0!==t.disabled&&(b.forEach(function(e,n){e.disabled=t.disabled[n]}),F.disabled=t.disabled),U.update()}),ft()}),U}return u.dispatch.on("elementMouseover.tooltip",function(t){b.duration(100).valueFormatter(function(t,e){return(R?{main:m,focus:g}:{main:p,focus:v}).main.tickFormat()(t,e)}).data(t).hidden(!1)}),u.dispatch.on("elementMouseout.tooltip",function(t){b.hidden(!0)}),c.dispatch.on("elementMouseover.tooltip",function(t){t.value=U.x()(t.data),t.series={value:U.y()(t.data),color:t.color},b.duration(0).valueFormatter(function(t,e){return(R?{main:p,focus:v}:{main:m,focus:g}).main.tickFormat()(t,e)}).data(t).hidden(!1)}),c.dispatch.on("elementMouseout.tooltip",function(t){b.hidden(!0)}),c.dispatch.on("elementMousemove.tooltip",function(t){b()}),U.dispatch=N,U.legend=_,U.lines=u,U.lines2=l,U.bars=c,U.bars2=d,U.xAxis=h,U.x2Axis=f,U.y1Axis=m,U.y2Axis=p,U.y3Axis=g,U.y4Axis=v,U.tooltip=b,U.options=r.utils.optionsFunc.bind(U),U._options=Object.create({},{width:{get:function(){return k},set:function(t){k=t}},height:{get:function(){return L},set:function(t){L=t}},showLegend:{get:function(){return D},set:function(t){D=t}},brushExtent:{get:function(){return j},set:function(t){j=t}},noData:{get:function(){return H},set:function(t){H=t}},focusEnable:{get:function(){return C},set:function(t){C=t}},focusHeight:{get:function(){return A},set:function(t){A=t}},focusShowAxisX:{get:function(){return O},set:function(t){O=t}},focusShowAxisY:{get:function(){return E},set:function(t){E=t}},legendLeftAxisHint:{get:function(){return I},set:function(t){I=t}},legendRightAxisHint:{get:function(){return W},set:function(t){W=t}},margin:{get:function(){return M},set:function(t){void 0!==t.top&&(M.top=t.top,w=t.top),M.right=void 0!==t.right?t.right:M.right,M.bottom=void 0!==t.bottom?t.bottom:M.bottom,M.left=void 0!==t.left?t.left:M.left}},focusMargin:{get:function(){return x},set:function(t){x.top=void 0!==t.top?t.top:x.top,x.right=void 0!==t.right?t.right:x.right,x.bottom=void 0!==t.bottom?t.bottom:x.bottom,x.left=void 0!==t.left?t.left:x.left}},duration:{get:function(){return P},set:function(t){P=t}},color:{get:function(){return T},set:function(t){T=r.utils.getColor(t),_.color(T)}},x:{get:function(){return S},set:function(t){S=t,u.x(t),l.x(t),c.x(t),d.x(t)}},y:{get:function(){return Y},set:function(t){Y=t,u.y(t),l.y(t),c.y(t),d.y(t)}},switchYAxisOrder:{get:function(){return R},set:function(t){if(R!==t){var e=m;m=p,p=e;var n=g;g=v,v=n}R=t,m.orient("left"),p.orient("right"),g.orient("left"),v.orient("right")}}}),r.utils.inheritOptions(U,u),r.utils.initOptions(U),U},r.models.multiBar=function(){"use strict";var t,e,n,i,a,o,s,u={top:0,right:0,bottom:0,left:0},l=960,c=500,d=d3.scale.ordinal(),h=d3.scale.linear(),f=Math.floor(1e4*Math.random()),m=null,p=function(t){return t.x},g=function(t){return t.y},v=[0],_=!0,y=!1,b="zero",M=r.utils.defaultColor(),w=!1,x=null,k=500,L=.1,S=.75,Y=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),T=r.utils.renderWatch(Y,k),D=0;function C(E){return T.reset(),E.each(function(C){var E=l-u.left-u.right,O=c-u.top-u.bottom;m=d3.select(this),r.utils.initSVG(m);var A=0;if(w&&C.length&&(w=[{values:C[0].values.map(function(t){return{x:t.x,y:0,series:t.series,size:.01}})}]),y){var j=d3.layout.stack().offset(b).values(function(t){return t.values}).y(g)(!C.length&&w?w:C);j.forEach(function(t,e){t.nonStackable?(C[e].nonStackableSeries=A++,j[e]=C[e]):e>0&&j[e-1].nonStackable&&j[e].values.map(function(t,n){t.y0-=j[e-1].values[n].y,t.y1=t.y0+t.y})}),C=j}C.forEach(function(t,e){t.values.forEach(function(n){n.series=e,n.key=t.key})}),y&&C.length>0&&C[0].values.map(function(t,e){var n=0,r=0;C.map(function(t,i){if(!C[i].nonStackable){var a=t.values[e];a.size=Math.abs(a.y),a.y<0?(a.y1=r,r-=a.size):(a.y1=a.size+n,n+=a.size)}})});var H=e&&n?[]:C.map(function(t,e){return t.values.map(function(t,n){return{x:p(t,n),y:g(t,n),y0:t.y0,y1:t.y1,idx:e}})});d.domain(e||d3.merge(H).map(function(t){return t.x})).rangeBands(i||[0,E],L),h.domain(n||d3.extent(d3.merge(H).map(function(t){var e=t.y;return y&&!C[t.idx].nonStackable&&(e=t.y>0?t.y1:t.y1+t.y),e}).concat(v))).range(a||[O,0]),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]-.01*d.domain()[0],d.domain()[1]+.01*d.domain()[1]]):d.domain([-1,1])),h.domain()[0]===h.domain()[1]&&(h.domain()[0]?h.domain([h.domain()[0]+.01*h.domain()[0],h.domain()[1]-.01*h.domain()[1]]):h.domain([-1,1])),o=o||d,s=s||h;var N=m.selectAll("g.nv-wrap.nv-multibar").data([C]),P=N.enter().append("g").attr("class","nvd3 nv-wrap nv-multibar"),F=P.append("defs"),V=P.append("g"),I=N.select("g");V.append("g").attr("class","nv-groups"),N.attr("transform","translate("+u.left+","+u.top+")"),F.append("clipPath").attr("id","nv-edge-clip-"+f).append("rect"),N.select("#nv-edge-clip-"+f+" rect").attr("width",E).attr("height",O),I.attr("clip-path",_?"url(#nv-edge-clip-"+f+")":"");var W=N.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t,e){return e});W.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);var R=T.transition(W.exit().selectAll("rect.nv-bar"),"multibarExit",Math.min(100,k)).attr("y",function(t,e,n){var r=s(0)||0;return y&&C[t.series]&&!C[t.series].nonStackable&&(r=s(t.y0)),r}).attr("height",0).remove();R.delay&&R.delay(function(t,e){return e*(k/(D+1))-e}),W.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return M(t,e)}).style("stroke",function(t,e){return M(t,e)}),W.style("stroke-opacity",1).style("fill-opacity",S);var z=W.selectAll("rect.nv-bar").data(function(t){return w&&!C.length?w.values:t.values});z.exit().remove();z.enter().append("rect").attr("class",function(t,e){return g(t,e)<0?"nv-bar negative":"nv-bar positive"}).attr("x",function(t,e,n){return y&&!C[n].nonStackable?0:n*d.rangeBand()/C.length}).attr("y",function(t,e,n){return s(y&&!C[n].nonStackable?t.y0:0)||0}).attr("height",0).attr("width",function(t,e,n){return d.rangeBand()/(y&&!C[n].nonStackable?1:C.length)}).attr("transform",function(t,e){return"translate("+d(p(t,e))+",0)"});z.style("fill",function(t,e,n){return M(t,n,e)}).style("stroke",function(t,e,n){return M(t,n,e)}).on("mouseover",function(t,e,n){d3.select(this).classed("hover",!0),Y.elementMouseover({data:t,index:e,series:C[n],color:d3.select(this).style("fill")})}).on("mouseout",function(t,e,n){d3.select(this).classed("hover",!1),Y.elementMouseout({data:t,index:e,series:C[n],color:d3.select(this).style("fill")})}).on("mousemove",function(t,e,n){Y.elementMousemove({data:t,index:e,series:C[n],color:d3.select(this).style("fill")})}).on("click",function(t,e,n){Y.elementClick({data:t,index:e,series:C[n],color:d3.select(this).style("fill"),event:d3.event,element:this}),d3.event.stopPropagation()}).on("dblclick",function(t,e,n){Y.elementDblClick({data:t,index:e,series:C[n],color:d3.select(this).style("fill")}),d3.event.stopPropagation()}),z.attr("class",function(t,e){return g(t,e)<0?"nv-bar negative":"nv-bar positive"}).attr("transform",function(t,e){return"translate("+d(p(t,e))+",0)"}),x&&(t||(t=C.map(function(){return!0})),z.style("fill",function(e,n,r){return d3.rgb(x(e,n)).darker(t.map(function(t,e){return e}).filter(function(e,n){return!t[n]})[r]).toString()}).style("stroke",function(e,n,r){return d3.rgb(x(e,n)).darker(t.map(function(t,e){return e}).filter(function(e,n){return!t[n]})[r]).toString()}));var B=z.watchTransition(T,"multibar",Math.min(250,k)).delay(function(t,e){return e*k/C[0].values.length});y?B.attr("y",function(t,e,n){return C[n].nonStackable?g(t,e)<0?h(0):h(0)-h(g(t,e))<-1?h(0)-1:h(g(t,e))||0:h(t.y1)}).attr("height",function(t,e,n){return C[n].nonStackable?Math.max(Math.abs(h(g(t,e))-h(0)),0)||0:Math.max(Math.abs(h(t.y+t.y0)-h(t.y0)),0)}).attr("x",function(t,e,n){var r=0;return C[n].nonStackable&&(r=t.series*d.rangeBand()/C.length,C.length!==A&&(r=C[n].nonStackableSeries*d.rangeBand()/(2*A))),r}).attr("width",function(t,e,n){if(C[n].nonStackable){var r=d.rangeBand()/A;return C.length!==A&&(r=d.rangeBand()/(2*A)),r}return d.rangeBand()}):B.attr("x",function(t,e){return t.series*d.rangeBand()/C.length}).attr("width",d.rangeBand()/C.length).attr("y",function(t,e){return g(t,e)<0?h(0):h(0)-h(g(t,e))<1?h(0)-1:h(g(t,e))||0}).attr("height",function(t,e){return Math.max(Math.abs(h(g(t,e))-h(0)),1)||0}),o=d.copy(),s=h.copy(),C[0]&&C[0].values&&(D=C[0].values.length)}),T.renderEnd("multibar immediate"),C}return C.dispatch=Y,C.options=r.utils.optionsFunc.bind(C),C._options=Object.create({},{width:{get:function(){return l},set:function(t){l=t}},height:{get:function(){return c},set:function(t){c=t}},x:{get:function(){return p},set:function(t){p=t}},y:{get:function(){return g},set:function(t){g=t}},xScale:{get:function(){return d},set:function(t){d=t}},yScale:{get:function(){return h},set:function(t){h=t}},xDomain:{get:function(){return e},set:function(t){e=t}},yDomain:{get:function(){return n},set:function(t){n=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},forceY:{get:function(){return v},set:function(t){v=t}},stacked:{get:function(){return y},set:function(t){y=t}},stackOffset:{get:function(){return b},set:function(t){b=t}},clipEdge:{get:function(){return _},set:function(t){_=t}},disabled:{get:function(){return t},set:function(e){t=e}},id:{get:function(){return f},set:function(t){f=t}},hideable:{get:function(){return w},set:function(t){w=t}},groupSpacing:{get:function(){return L},set:function(t){L=t}},fillOpacity:{get:function(){return S},set:function(t){S=t}},margin:{get:function(){return u},set:function(t){u.top=void 0!==t.top?t.top:u.top,u.right=void 0!==t.right?t.right:u.right,u.bottom=void 0!==t.bottom?t.bottom:u.bottom,u.left=void 0!==t.left?t.left:u.left}},duration:{get:function(){return k},set:function(t){k=t,T.reset(k)}},color:{get:function(){return M},set:function(t){M=r.utils.getColor(t)}},barColor:{get:function(){return x},set:function(t){x=t?r.utils.getColor(t):null}}}),r.utils.initOptions(C),C},r.models.multiBarChart=function(){"use strict";var t,e,n=r.models.multiBar(),i=r.models.axis(),a=r.models.axis(),o=r.interactiveGuideline(),s=r.models.legend(),u=r.models.legend(),l=r.models.tooltip(),c={top:30,right:20,bottom:50,left:60},d=null,h=null,f=null,m=r.utils.defaultColor(),p=!0,g={},v=!0,_=null,y=!0,b=!0,M=!1,w=!0,x=!1,k=!1,L=0,S=r.utils.state(),Y=null,T=null,D=d3.dispatch("stateChange","changeState","renderEnd"),C=function(){return p?180:0},E=250,O=!1;S.stacked=!1,n.stacked(!1),i.orient("bottom").tickPadding(7).showMaxMin(!1).tickFormat(function(t){return t}),a.orient(M?"right":"left").tickFormat(d3.format(",.1f")),l.duration(0).valueFormatter(function(t,e){return a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),o.tooltip.valueFormatter(function(t,e){return null==t?"N/A":a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),o.tooltip.valueFormatter(function(t,e){return null==t?"N/A":a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),o.tooltip.duration(0).valueFormatter(function(t,e){return a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),u.updateState(!1);var A=r.utils.renderWatch(D),j=!1,H=function(t){return function(){return{active:t.map(function(t){return!t.disabled}),stacked:j}}},N=function(t){return function(e){void 0!==e.stacked&&(j=e.stacked),void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};function P(T){return A.reset(),A.models(n),y&&A.models(i),b&&A.models(a),T.each(function(T){var A=d3.select(this);r.utils.initSVG(A);var F,V=r.utils.availableWidth(h,A,c),I=r.utils.availableHeight(f,A,c);if(P.update=function(){0===E?A.call(P):A.transition().duration(E).call(P)},P.container=this,S.setter(N(T),P.update).getter(H(T)).update(),S.disabled=T.map(function(t){return!!t.disabled}),!Y)for(F in Y={},S)S[F]instanceof Array?Y[F]=S[F].slice(0):Y[F]=S[F];if(!(T&&T.length&&T.filter(function(t){return t.values.length}).length))return r.utils.noData(P,A),P;A.selectAll(".nv-noData").remove(),t=n.xScale(),e=n.yScale();var W=A.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([T]),R=W.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend").append("g"),z=W.select("g");if(R.append("g").attr("class","nv-x nv-axis"),R.append("g").attr("class","nv-y nv-axis"),R.append("g").attr("class","nv-barsWrap"),R.append("g").attr("class","nv-legendWrap"),R.append("g").attr("class","nv-controlsWrap"),R.append("g").attr("class","nv-interactive"),v?"bottom"===_?(s.width(V-c.right),z.select(".nv-legendWrap").datum(T).call(s),c.bottom=i.height()+s.height(),I=r.utils.availableHeight(f,A,c),z.select(".nv-legendWrap").attr("transform","translate(0,"+(I+i.height())+")")):(s.width(V-C()),z.select(".nv-legendWrap").datum(T).call(s),d||s.height()===c.top||(c.top=s.height(),I=r.utils.availableHeight(f,A,c)),z.select(".nv-legendWrap").attr("transform","translate("+C()+","+-c.top+")")):z.select(".nv-legendWrap").selectAll("*").remove(),p){var B=[{key:g.grouped||"Grouped",disabled:n.stacked()},{key:g.stacked||"Stacked",disabled:!n.stacked()}];u.width(C()).color(["#444","#444","#444"]),z.select(".nv-controlsWrap").datum(B).attr("transform","translate(0,"+-c.top+")").call(u)}else z.select(".nv-controlsWrap").selectAll("*").remove();if(W.attr("transform","translate("+c.left+","+c.top+")"),M&&z.select(".nv-y.nv-axis").attr("transform","translate("+V+",0)"),n.disabled(T.map(function(t){return t.disabled})).width(V).height(I).color(T.map(function(t,e){return t.color||m(t,e)}).filter(function(t,e){return!T[e].disabled})),z.select(".nv-barsWrap").datum(T.filter(function(t){return!t.disabled})).call(n),y){i.scale(t)._ticks(r.utils.calcTicksX(V/100,T)).tickSize(-I,0),z.select(".nv-x.nv-axis").attr("transform","translate(0,"+e.range()[0]+")"),z.select(".nv-x.nv-axis").call(i);var G=z.select(".nv-x.nv-axis > g").selectAll("g");if(G.selectAll("line, text").style("opacity",1),x){var U=function(t,e){return"translate("+t+","+e+")"};G.selectAll("text").attr("transform",function(t,e,n){return U(0,n%2==0?5:17)});var $=d3.selectAll(".nv-x.nv-axis .nv-wrap g g text")[0].length;z.selectAll(".nv-x.nv-axis .nv-axisMaxMin text").attr("transform",function(t,e){return U(0,0===e||$%2!=0?17:5)})}k&&z.selectAll(".tick text").call(r.utils.wrapTicks,P.xAxis.rangeBand()),w&&G.filter(function(t,e){return e%Math.ceil(T[0].values.length/(V/100))!=0}).selectAll("text, line").style("opacity",0),L&&G.selectAll(".tick text").attr("transform","rotate("+L+" 0,0)").style("text-anchor",L>0?"start":"end"),z.select(".nv-x.nv-axis").selectAll("g.nv-axisMaxMin text").style("opacity",1)}b&&(a.scale(e)._ticks(r.utils.calcTicksY(I/36,T)).tickSize(-V,0),z.select(".nv-y.nv-axis").call(a)),O&&(o.width(V).height(I).margin({left:c.left,top:c.top}).svgContainer(A).xScale(t),W.select(".nv-interactive").call(o)),s.dispatch.on("stateChange",function(t){for(var e in t)S[e]=t[e];D.stateChange(S),P.update()}),u.dispatch.on("legendClick",function(t,e){if(t.disabled){switch(B=B.map(function(t){return t.disabled=!0,t}),t.disabled=!1,t.key){case"Grouped":case g.grouped:n.stacked(!1);break;case"Stacked":case g.stacked:n.stacked(!0)}S.stacked=n.stacked(),D.stateChange(S),P.update()}}),D.on("changeState",function(t){void 0!==t.disabled&&(T.forEach(function(e,n){e.disabled=t.disabled[n]}),S.disabled=t.disabled),void 0!==t.stacked&&(n.stacked(t.stacked),S.stacked=t.stacked,j=t.stacked),P.update()}),O?(o.dispatch.on("elementMousemove",function(e){if(void 0!=e.pointXValue){var n,r,i,a,s=[];T.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(o,u){r=t.domain().indexOf(e.pointXValue);var l=o.values[r];void 0!==l&&(a=l.x,void 0===n&&(n=l),void 0===i&&(i=e.mouseX),s.push({key:o.key,value:P.y()(l,r),color:m(o,o.seriesIndex),data:o.values[r]}))}),o.tooltip.data({value:a,index:r,series:s})(),o.renderGuideLine(i)}}),o.dispatch.on("elementMouseout",function(t){o.tooltip.hidden(!0)})):(n.dispatch.on("elementMouseover.tooltip",function(t){t.value=P.x()(t.data),t.series={key:t.data.key,value:P.y()(t.data),color:t.color},l.data(t).hidden(!1)}),n.dispatch.on("elementMouseout.tooltip",function(t){l.hidden(!0)}),n.dispatch.on("elementMousemove.tooltip",function(t){l()}))}),A.renderEnd("multibarchart immediate"),P}return P.dispatch=D,P.multibar=n,P.legend=s,P.controls=u,P.xAxis=i,P.yAxis=a,P.state=S,P.tooltip=l,P.interactiveLayer=o,P.options=r.utils.optionsFunc.bind(P),P._options=Object.create({},{width:{get:function(){return h},set:function(t){h=t}},height:{get:function(){return f},set:function(t){f=t}},showLegend:{get:function(){return v},set:function(t){v=t}},legendPosition:{get:function(){return _},set:function(t){_=t}},showControls:{get:function(){return p},set:function(t){p=t}},controlLabels:{get:function(){return g},set:function(t){g=t}},showXAxis:{get:function(){return y},set:function(t){y=t}},showYAxis:{get:function(){return b},set:function(t){b=t}},defaultState:{get:function(){return Y},set:function(t){Y=t}},noData:{get:function(){return T},set:function(t){T=t}},reduceXTicks:{get:function(){return w},set:function(t){w=t}},rotateLabels:{get:function(){return L},set:function(t){L=t}},staggerLabels:{get:function(){return x},set:function(t){x=t}},wrapLabels:{get:function(){return k},set:function(t){k=!!t}},margin:{get:function(){return c},set:function(t){void 0!==t.top&&(c.top=t.top,d=t.top),c.right=void 0!==t.right?t.right:c.right,c.bottom=void 0!==t.bottom?t.bottom:c.bottom,c.left=void 0!==t.left?t.left:c.left}},duration:{get:function(){return E},set:function(t){E=t,n.duration(E),i.duration(E),a.duration(E),A.reset(E)}},color:{get:function(){return m},set:function(t){m=r.utils.getColor(t),s.color(m)}},rightAlignYAxis:{get:function(){return M},set:function(t){M=t,a.orient(M?"right":"left")}},useInteractiveGuideline:{get:function(){return O},set:function(t){O=t}},barColor:{get:function(){return n.barColor},set:function(t){n.barColor(t),s.color(function(t,e){return d3.rgb("#ccc").darker(1.5*e).toString()})}}}),r.utils.inheritOptions(P,n),r.utils.initOptions(P),P},r.models.multiBarHorizontal=function(){"use strict";var t,e,n,i,a,o,s,u={top:0,right:0,bottom:0,left:0},l=960,c=500,d=Math.floor(1e4*Math.random()),h=null,f=d3.scale.ordinal(),m=d3.scale.linear(),p=function(t){return t.x},g=function(t){return t.y},v=function(t){return t.yErr},_=[0],y=r.utils.defaultColor(),b=null,M=!1,w=!1,x=!1,k=60,L=.1,S=.75,Y=d3.format(",.2f"),T=250,D=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),C=r.utils.renderWatch(D,T);function E(d){return C.reset(),d.each(function(d){var T=l-u.left-u.right,E=c-u.top-u.bottom;h=d3.select(this),r.utils.initSVG(h),M&&(d=d3.layout.stack().offset("zero").values(function(t){return t.values}).y(g)(d)),d.forEach(function(t,e){t.values.forEach(function(n){n.series=e,n.key=t.key})}),M&&d[0].values.map(function(t,e){var n=0,r=0;d.map(function(t){var i=t.values[e];i.size=Math.abs(i.y),i.y<0?(i.y1=r-i.size,r-=i.size):(i.y1=n,n+=i.size)})});var O=e&&n?[]:d.map(function(t){return t.values.map(function(t,e){return{x:p(t,e),y:g(t,e),y0:t.y0,y1:t.y1}})});f.domain(e||d3.merge(O).map(function(t){return t.x})).rangeBands(i||[0,E],L),m.domain(n||d3.extent(d3.merge(O).map(function(t){return M?t.y>0?t.y1+t.y:t.y1:t.y}).concat(_))),w&&!M?m.range(a||[m.domain()[0]<0?k:0,T-(m.domain()[1]>0?k:0)]):m.range(a||[0,T]),o=o||f,s=s||d3.scale.linear().domain(m.domain()).range([m(0),m(0)]);var A=d3.select(this).selectAll("g.nv-wrap.nv-multibarHorizontal").data([d]),j=A.enter().append("g").attr("class","nvd3 nv-wrap nv-multibarHorizontal"),H=(j.append("defs"),j.append("g"));A.select("g");H.append("g").attr("class","nv-groups"),A.attr("transform","translate("+u.left+","+u.top+")");var N=A.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t,e){return e});N.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),N.exit().watchTransition(C,"multibarhorizontal: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),N.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return y(t,e)}).style("stroke",function(t,e){return y(t,e)}),N.watchTransition(C,"multibarhorizontal: groups").style("stroke-opacity",1).style("fill-opacity",S);var P=N.selectAll("g.nv-bar").data(function(t){return t.values});P.exit().remove();var F=P.enter().append("g").attr("transform",function(t,e,n){return"translate("+s(M?t.y0:0)+","+(M?0:n*f.rangeBand()/d.length+f(p(t,e)))+")"});F.append("rect").attr("width",0).attr("height",f.rangeBand()/(M?1:d.length)),P.on("mouseover",function(t,e){d3.select(this).classed("hover",!0),D.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),D.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){D.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mousemove",function(t,e){D.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){D.elementClick({data:t,index:e,color:d3.select(this).style("fill"),event:d3.event,element:this}),d3.event.stopPropagation()}).on("dblclick",function(t,e){D.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}),v(d[0],0)&&(F.append("polyline"),P.select("polyline").attr("fill","none").attr("points",function(t,e){var n=v(t,e),r=.8*f.rangeBand()/(2*(M?1:d.length));return[[(n=(n=n.length?n:[-Math.abs(n),Math.abs(n)]).map(function(n){return m(n+(g(t,e)<0?0:g(t,e)))-m(0)}))[0],-r],[n[0],r],[n[0],0],[n[1],0],[n[1],-r],[n[1],r]].map(function(t){return t.join(",")}).join(" ")}).attr("transform",function(t,e){return"translate(0, "+f.rangeBand()/(2*(M?1:d.length))+")"})),F.append("text"),w&&!M?(P.select("text").attr("text-anchor",function(t,e){return g(t,e)<0?"end":"start"}).attr("y",f.rangeBand()/(2*d.length)).attr("dy",".32em").text(function(t,e){var n=Y(g(t,e)),r=v(t,e);return void 0===r?n:r.length?n+"+"+Y(Math.abs(r[1]))+"-"+Y(Math.abs(r[0])):n+"±"+Y(Math.abs(r))}),P.watchTransition(C,"multibarhorizontal: bars").select("text").attr("x",function(t,e){return g(t,e)<0?-4:m(g(t,e))-m(0)+4})):P.selectAll("text").text(""),x&&!M?(F.append("text").classed("nv-bar-label",!0),P.select("text.nv-bar-label").attr("text-anchor",function(t,e){return g(t,e)<0?"start":"end"}).attr("y",f.rangeBand()/(2*d.length)).attr("dy",".32em").text(function(t,e){return p(t,e)}),P.watchTransition(C,"multibarhorizontal: bars").select("text.nv-bar-label").attr("x",function(t,e){return g(t,e)<0?m(0)-m(g(t,e))+4:-4})):P.selectAll("text.nv-bar-label").text(""),P.attr("class",function(t,e){return g(t,e)<0?"nv-bar negative":"nv-bar positive"}),b&&(t||(t=d.map(function(){return!0})),P.style("fill",function(e,n,r){return d3.rgb(b(e,n)).darker(t.map(function(t,e){return e}).filter(function(e,n){return!t[n]})[r]).toString()}).style("stroke",function(e,n,r){return d3.rgb(b(e,n)).darker(t.map(function(t,e){return e}).filter(function(e,n){return!t[n]})[r]).toString()})),M?P.watchTransition(C,"multibarhorizontal: bars").attr("transform",function(t,e){return"translate("+m(t.y1)+","+f(p(t,e))+")"}).select("rect").attr("width",function(t,e){return Math.abs(m(g(t,e)+t.y0)-m(t.y0))||0}).attr("height",f.rangeBand()):P.watchTransition(C,"multibarhorizontal: bars").attr("transform",function(t,e){return"translate("+(g(t,e)<0?m(g(t,e)):m(0))+","+(t.series*f.rangeBand()/d.length+f(p(t,e)))+")"}).select("rect").attr("height",f.rangeBand()/d.length).attr("width",function(t,e){return Math.max(Math.abs(m(g(t,e))-m(0)),1)||0}),o=f.copy(),s=m.copy()}),C.renderEnd("multibarHorizontal immediate"),E}return E.dispatch=D,E.options=r.utils.optionsFunc.bind(E),E._options=Object.create({},{width:{get:function(){return l},set:function(t){l=t}},height:{get:function(){return c},set:function(t){c=t}},x:{get:function(){return p},set:function(t){p=t}},y:{get:function(){return g},set:function(t){g=t}},yErr:{get:function(){return v},set:function(t){v=t}},xScale:{get:function(){return f},set:function(t){f=t}},yScale:{get:function(){return m},set:function(t){m=t}},xDomain:{get:function(){return e},set:function(t){e=t}},yDomain:{get:function(){return n},set:function(t){n=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},forceY:{get:function(){return _},set:function(t){_=t}},stacked:{get:function(){return M},set:function(t){M=t}},showValues:{get:function(){return w},set:function(t){w=t}},disabled:{get:function(){return t},set:function(e){t=e}},id:{get:function(){return d},set:function(t){d=t}},valueFormat:{get:function(){return Y},set:function(t){Y=t}},valuePadding:{get:function(){return k},set:function(t){k=t}},groupSpacing:{get:function(){return L},set:function(t){L=t}},fillOpacity:{get:function(){return S},set:function(t){S=t}},margin:{get:function(){return u},set:function(t){u.top=void 0!==t.top?t.top:u.top,u.right=void 0!==t.right?t.right:u.right,u.bottom=void 0!==t.bottom?t.bottom:u.bottom,u.left=void 0!==t.left?t.left:u.left}},duration:{get:function(){return T},set:function(t){T=t,C.reset(T)}},color:{get:function(){return y},set:function(t){y=r.utils.getColor(t)}},barColor:{get:function(){return b},set:function(t){b=t?r.utils.getColor(t):null}}}),r.utils.initOptions(E),E},r.models.multiBarHorizontalChart=function(){"use strict";var t,e,n=r.models.multiBarHorizontal(),i=r.models.axis(),a=r.models.axis(),o=r.models.legend().height(30),s=r.models.legend().height(30),u=r.models.tooltip(),l={top:30,right:20,bottom:50,left:60},c=null,d=null,h=null,f=r.utils.defaultColor(),m=!0,p="top",g={},v=!0,_="top",y=!0,b=!0,M=!1,w=r.utils.state(),x=null,k=null,L=d3.dispatch("stateChange","changeState","renderEnd"),S=function(){return m?180:0},Y=250;w.stacked=!1,n.stacked(M),i.orient("left").tickPadding(5).showMaxMin(!1).tickFormat(function(t){return t}),a.orient("bottom").tickFormat(d3.format(",.1f")),u.duration(0).valueFormatter(function(t,e){return a.tickFormat()(t,e)}).headerFormatter(function(t,e){return i.tickFormat()(t,e)}),s.updateState(!1);var T=function(t){return function(){return{active:t.map(function(t){return!t.disabled}),stacked:M}}},D=function(t){return function(e){void 0!==e.stacked&&(M=e.stacked),void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}},C=r.utils.renderWatch(L,Y);function E(u){return C.reset(),C.models(n),y&&C.models(i),b&&C.models(a),u.each(function(u){var k=d3.select(this);r.utils.initSVG(k);var C,O=r.utils.availableWidth(d,k,l),A=r.utils.availableHeight(h,k,l);if(E.update=function(){k.transition().duration(Y).call(E)},E.container=this,M=n.stacked(),w.setter(D(u),E.update).getter(T(u)).update(),w.disabled=u.map(function(t){return!!t.disabled}),!x)for(C in x={},w)w[C]instanceof Array?x[C]=w[C].slice(0):x[C]=w[C];if(!(u&&u.length&&u.filter(function(t){return t.values.length}).length))return r.utils.noData(E,k),E;k.selectAll(".nv-noData").remove(),t=n.xScale(),e=n.yScale().clamp(!0);var j=k.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").data([u]),H=j.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarHorizontalChart").append("g"),N=j.select("g");if(H.append("g").attr("class","nv-x nv-axis"),H.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),H.append("g").attr("class","nv-barsWrap"),H.append("g").attr("class","nv-legendWrap"),H.append("g").attr("class","nv-controlsWrap"),v?(o.width(O-S()),N.select(".nv-legendWrap").datum(u).call(o),"bottom"===_?(l.bottom=i.height()+o.height(),A=r.utils.availableHeight(h,k,l),N.select(".nv-legendWrap").attr("transform","translate("+S()+","+(A+i.height())+")")):"top"===_&&(c||o.height()===l.top||(l.top=o.height(),A=r.utils.availableHeight(h,k,l)),N.select(".nv-legendWrap").attr("transform","translate("+S()+","+-l.top+")"))):N.select(".nv-legendWrap").selectAll("*").remove(),m){var P=[{key:g.grouped||"Grouped",disabled:n.stacked()},{key:g.stacked||"Stacked",disabled:!n.stacked()}];s.width(S()).color(["#444","#444","#444"]),"bottom"===p?(l.bottom=i.height()+o.height(),A=r.utils.availableHeight(h,k,l),N.select(".nv-controlsWrap").datum(P).attr("transform","translate(0,"+(A+i.height())+")").call(s)):"top"===p&&N.select(".nv-controlsWrap").datum(P).attr("transform","translate(0,"+-l.top+")").call(s)}else N.select(".nv-controlsWrap").selectAll("*").remove();(j.attr("transform","translate("+l.left+","+l.top+")"),n.disabled(u.map(function(t){return t.disabled})).width(O).height(A).color(u.map(function(t,e){return t.color||f(t,e)}).filter(function(t,e){return!u[e].disabled})),N.select(".nv-barsWrap").datum(u.filter(function(t){return!t.disabled})).transition().call(n),y)&&(i.scale(t)._ticks(r.utils.calcTicksY(A/24,u)).tickSize(-O,0),N.select(".nv-x.nv-axis").call(i),N.select(".nv-x.nv-axis").selectAll("g").selectAll("line, text"));b&&(a.scale(e)._ticks(r.utils.calcTicksX(O/100,u)).tickSize(-A,0),N.select(".nv-y.nv-axis").attr("transform","translate(0,"+A+")"),N.select(".nv-y.nv-axis").call(a)),N.select(".nv-zeroLine line").attr("x1",e(0)).attr("x2",e(0)).attr("y1",0).attr("y2",-A),o.dispatch.on("stateChange",function(t){for(var e in t)w[e]=t[e];L.stateChange(w),E.update()}),s.dispatch.on("legendClick",function(t,e){if(t.disabled){switch(P=P.map(function(t){return t.disabled=!0,t}),t.disabled=!1,t.key){case"Grouped":case g.grouped:n.stacked(!1);break;case"Stacked":case g.stacked:n.stacked(!0)}w.stacked=n.stacked(),L.stateChange(w),M=n.stacked(),E.update()}}),L.on("changeState",function(t){void 0!==t.disabled&&(u.forEach(function(e,n){e.disabled=t.disabled[n]}),w.disabled=t.disabled),void 0!==t.stacked&&(n.stacked(t.stacked),w.stacked=t.stacked,M=t.stacked),E.update()})}),C.renderEnd("multibar horizontal chart immediate"),E}return n.dispatch.on("elementMouseover.tooltip",function(t){t.value=E.x()(t.data),t.series={key:t.data.key,value:E.y()(t.data),color:t.color},u.data(t).hidden(!1)}),n.dispatch.on("elementMouseout.tooltip",function(t){u.hidden(!0)}),n.dispatch.on("elementMousemove.tooltip",function(t){u()}),E.dispatch=L,E.multibar=n,E.legend=o,E.controls=s,E.xAxis=i,E.yAxis=a,E.state=w,E.tooltip=u,E.options=r.utils.optionsFunc.bind(E),E._options=Object.create({},{width:{get:function(){return d},set:function(t){d=t}},height:{get:function(){return h},set:function(t){h=t}},showLegend:{get:function(){return v},set:function(t){v=t}},legendPosition:{get:function(){return _},set:function(t){_=t}},controlsPosition:{get:function(){return p},set:function(t){p=t}},showControls:{get:function(){return m},set:function(t){m=t}},controlLabels:{get:function(){return g},set:function(t){g=t}},showXAxis:{get:function(){return y},set:function(t){y=t}},showYAxis:{get:function(){return b},set:function(t){b=t}},defaultState:{get:function(){return x},set:function(t){x=t}},noData:{get:function(){return k},set:function(t){k=t}},margin:{get:function(){return l},set:function(t){void 0!==t.top&&(l.top=t.top,c=t.top),l.right=void 0!==t.right?t.right:l.right,l.bottom=void 0!==t.bottom?t.bottom:l.bottom,l.left=void 0!==t.left?t.left:l.left}},duration:{get:function(){return Y},set:function(t){Y=t,C.reset(Y),n.duration(Y),i.duration(Y),a.duration(Y)}},color:{get:function(){return f},set:function(t){f=r.utils.getColor(t),o.color(f)}},barColor:{get:function(){return n.barColor},set:function(t){n.barColor(t),o.color(function(t,e){return d3.rgb("#ccc").darker(1.5*e).toString()})}}}),r.utils.inheritOptions(E,n),r.utils.initOptions(E),E},r.models.multiBarWithFocusChart=function(){"use strict";var t,e,n,i,a=r.models.multiBar(),o=r.models.multiBar(),s=r.models.axis(),u=r.models.axis(),l=r.interactiveGuideline(),c=r.models.axis(),d=r.models.axis(),h=r.models.legend(),f=r.models.legend(),m=d3.svg.brush(),p=r.models.tooltip(),g={top:30,right:20,bottom:250,left:60},v={top:0,right:30,bottom:20,left:60},_=null,y=null,b=50,M=r.utils.defaultColor(),w=!0,x={},k=!0,L=!1,S=!1,Y=!1,T=40,D=!0,C=!0,E=!1,O=!0,A=!1,j=0,H=!0,N=r.utils.state(),P=null,F=null,V="No Data Available.",I=d3.dispatch("tooltipShow","tooltipHide","brush","stateChange","changeState","renderEnd"),W=function(){return w?180:0},R=250,z=!1;N.stacked=!1,a.stacked(!1),o.stacked(!1),s.orient("bottom").tickPadding(7).showMaxMin(!1).tickFormat(function(t){return t}),u.orient(E?"right":"left").tickFormat(d3.format(",.1f")),c.orient("bottom").tickPadding(5),d.orient("left"),p.duration(0).valueFormatter(function(t,e){return u.tickFormat()(t,e)}).headerFormatter(function(t,e){return s.tickFormat()(t,e)}),l.tooltip.valueFormatter(function(t,e){return null==t?"N/A":u.tickFormat()(t,e)}).headerFormatter(function(t,e){return s.tickFormat()(t,e)}),l.tooltip.valueFormatter(function(t,e){return null==t?"N/A":u.tickFormat()(t,e)}).headerFormatter(function(t,e){return s.tickFormat()(t,e)}),l.tooltip.duration(0).valueFormatter(function(t,e){return u.tickFormat()(t,e)}).headerFormatter(function(t,e){return s.tickFormat()(t,e)}),f.updateState(!1);var B=r.utils.renderWatch(I),G=!1,U=function(t){return function(){return{active:t.map(function(t){return!t.disabled}),stacked:G}}},$=function(t){return function(e){void 0!==e.stacked&&(G=e.stacked),void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};function q(b){return B.reset(),B.models(a),D&&B.models(s),C&&B.models(u),b.each(function(b){var H=d3.select(this);r.utils.initSVG(H);var B,J=(_||parseInt(H.style("width"))||960)-g.left-g.right,Z=(y||parseInt(H.style("height"))||400)-g.top-g.bottom-(L?T:0),X=T-v.top-v.bottom;if(q.update=function(){0===R?H.call(q):H.transition().duration(R).call(q)},q.container=this,N.setter($(b),q.update).getter(U(b)).update(),N.disabled=b.map(function(t){return!!t.disabled}),!F)for(B in F={},N)N[B]instanceof Array?F[B]=N[B].slice(0):F[B]=N[B];if(!(b&&b.length&&b.filter(function(t){return t.values.length}).length)){var K=H.selectAll(".nv-noData").data([V]);return K.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),K.attr("x",g.left+J/2).attr("y",g.top+Z/2).text(function(t){return t}),q}H.selectAll(".nv-noData").remove(),t=a.xScale(),e=a.yScale(),n=c.scale(),i=o.yScale(),t.range([0,J]),n.range([0,J]);var Q=d3.min(b[0].values,function(t){return t.x}),tt=d3.max(b[0].values,function(t){return t.x});isNaN(Q)&&(L=!1),L&&(t.domain([Q,tt]),n.domain(t.domain()));var et=H.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([b]),nt=et.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend").append("g"),rt=et.select("g"),it=nt.append("g").attr("class","nv-focus");it.append("g").attr("class","nv-x nv-axis"),it.append("g").attr("class","nv-y nv-axis"),it.append("g").attr("class","nv-barsWrap"),it.append("g").attr("class","nv-legendWrap"),it.append("g").attr("class","nv-controlsWrap");var at=nt.append("g").attr("class","nv-context");if(at.append("g").attr("class","nv-x nv-axis"),at.append("g").attr("class","nv-y nv-axis"),at.append("g").attr("class","nv-barsWrap"),at.append("g").attr("class","nv-brushBackground"),at.append("g").attr("class","nv-x nv-brush"),k&&(h.width(J-W()),a.barColor()&&b.forEach(function(t,e){t.color=d3.rgb("#ccc").darker(1.5*e).toString()}),rt.select(".nv-legendWrap").datum(b).call(h),g.top!=h.height()&&(g.top=h.height(),Z=(y||parseInt(H.style("height"))||400)-g.top-g.bottom),rt.select(".nv-legendWrap").attr("transform","translate("+W()+","+-g.top+")")),rt.select(".nv-context").style("display",L?"initial":"none"),w){var ot=[{key:x.grouped||"Grouped",disabled:a.stacked()},{key:x.stacked||"Stacked",disabled:!a.stacked()}];f.width(W()).color(["#444","#444","#444"]),rt.select(".nv-controlsWrap").datum(ot).attr("transform","translate(0,"+-g.top+")").call(f)}function st(){if(D){s.scale(t).ticks(r.utils.calcTicksX(J/100,b)).tickSize(-Z,0),rt.select(".nv-x.nv-axis").attr("transform","translate(0,"+e.range()[0]+")"),rt.select(".nv-x.nv-axis").call(s);var a=rt.select(".nv-x.nv-axis > g").selectAll("g");if(a.selectAll("line, text").style("opacity",1),A){var o=function(t,e){return"translate("+t+","+e+")"};a.selectAll("text").attr("transform",function(t,e,n){return o(0,n%2==0?5:17)});var l=d3.selectAll(".nv-x.nv-axis .nv-wrap g g text")[0].length;rt.selectAll(".nv-x.nv-axis .nv-axisMaxMin text").attr("transform",function(t,e){return o(0,0===e||l%2!=0?17:5)})}O&&a.filter(function(t,e){return e%Math.ceil(b[0].values.length/(J/100))!=0}).selectAll("text, line").style("opacity",0),j&&a.selectAll(".tick text").attr("transform","rotate("+j+" 0,0)").style("text-anchor",j>0?"start":"end"),rt.select(".nv-x.nv-axis").selectAll("g.nv-axisMaxMin text").style("opacity",1)}C&&(u.scale(e).ticks(r.utils.calcTicksY(Z/36,b)).tickSize(-J,0),rt.select(".nv-y.nv-axis").call(u)),Y&&(c.scale(n).ticks(r.utils.calcTicksX(J/100,b)).tickSize(-X,0),rt.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+i.range()[0]+")"),rt.select(".nv-context .nv-x.nv-axis").transition().call(c)),S&&(d.scale(i).ticks(X/36).tickSize(-J,0),d3.transition(rt.select(".nv-context .nv-y.nv-axis")).call(d),rt.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+n.range()[0]+")"),rt.select(".nv-context .nv-y1.nv-axis").transition().call(d))}et.attr("transform","translate("+g.left+","+g.top+")"),E&&rt.select(".nv-y.nv-axis").attr("transform","translate("+J+",0)"),a.disabled(b.map(function(t){return t.disabled})).width(J).height(Z).color(b.map(function(t,e){return t.color||M(t,e)}).filter(function(t,e){return!b[e].disabled})),o.disabled(b.map(function(t){return t.disabled})).width(J).height(X).color(b.map(function(t,e){return t.color||M(t,e)}).filter(function(t,e){return!b[e].disabled})),rt.select(".nv-barsWrap").datum(b.filter(function(t){return!t.disabled})).call(a),rt.select(".nv-context").attr("transform","translate(0,"+(Z+g.bottom+v.top)+")"),rt.select(".nv-context .nv-barsWrap").datum(b.filter(function(t){return!t.disabled})).transition().call(o),st(),m.x(n).on("brush",function(t){var e=q.duration();q.duration(0),dt(),q.duration(e)}),P&&m.extent(P);var ut=rt.select(".nv-brushBackground").selectAll("g").data([P||m.extent()]),lt=ut.enter().append("g");lt.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",X),lt.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",X);var ct=rt.select(".nv-x.nv-brush").call(m);function dt(){P=m.empty()?null:m.extent();var t=m.empty()?n.domain():m.extent();Math.abs(t[0]-t[1])<=1||(I.brush({extent:t,brush:m}),m.empty()||m.extent(P),ut.data([m.empty()?n.domain():P]).each(function(t,e){var r=n(t[0])-n.range()[0],i=n.range()[1]-n(t[1]);d3.select(this).select(".left").attr("width",r<0?0:r),d3.select(this).select(".right").attr("x",n(t[1])).attr("width",i<0?0:i)}),rt.select(".nv-focus .nv-barsWrap").datum(b.filter(function(t){return!t.disabled}).map(function(e,n){return{key:e.key,area:e.area,values:e.values.filter(function(e,n){return a.x()(e,n)>=t[0]&&a.x()(e,n)<=t[1]})}})).transition().duration(R).call(a),st(),rt.select(".nv-focus .nv-x.nv-axis").call(s),rt.select(".nv-focus .nv-y.nv-axis").transition().duration(R).call(u))}ct.selectAll("rect").attr("height",X),ct.selectAll(".resize").append("path").attr("d",function(t){var e=+("e"==t),n=e?1:-1,r=X/3;return"M"+.5*n+","+r+"A6,6 0 0 "+e+" "+6.5*n+","+(r+6)+"V"+(2*r-6)+"A6,6 0 0 "+e+" "+.5*n+","+2*r+"ZM"+2.5*n+","+(r+8)+"V"+(2*r-8)+"M"+4.5*n+","+(r+8)+"V"+(2*r-8)}),dt(),z&&(l.width(J).height(Z).margin({left:g.left,top:g.top}).svgContainer(H).xScale(t),et.select(".nv-interactive").call(l)),h.dispatch.on("stateChange",function(t){for(var e in t)N[e]=t[e];I.stateChange(N),q.update()}),f.dispatch.on("legendClick",function(t,e){if(t.disabled){switch(ot=ot.map(function(t){return t.disabled=!0,t}),t.disabled=!1,t.key){case"Grouped":case x.grouped:a.stacked(!1),o.stacked(!1);break;case"Stacked":case x.stacked:a.stacked(!0),o.stacked(!0)}N.stacked=a.stacked(),I.stateChange(N),q.update()}}),I.on("changeState",function(t){void 0!==t.disabled&&(b.forEach(function(e,n){e.disabled=t.disabled[n]}),N.disabled=t.disabled),void 0!==t.stacked&&(a.stacked(t.stacked),o.stacked(t.stacked),N.stacked=t.stacked,G=t.stacked),q.update()}),z?(l.dispatch.on("elementMousemove",function(e){if(void 0!=e.pointXValue){var n,r,i,a,o=[];b.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(s,u){r=t.domain().indexOf(e.pointXValue);var l=s.values[r];void 0!==l&&(a=l.x,void 0===n&&(n=l),void 0===i&&(i=e.mouseX),o.push({key:s.key,value:q.y()(l,r),color:M(s,s.seriesIndex),data:s.values[r]}))}),l.tooltip.data({value:a,index:r,series:o})(),l.renderGuideLine(i)}}),l.dispatch.on("elementMouseout",function(t){l.tooltip.hidden(!0)})):(a.dispatch.on("elementMouseover.tooltip",function(t){t.value=q.x()(t.data),t.series={key:t.data.key,value:q.y()(t.data),color:t.color},p.data(t).hidden(!1)}),a.dispatch.on("elementMouseout.tooltip",function(t){p.hidden(!0)}),a.dispatch.on("elementMousemove.tooltip",function(t){p()}))}),B.renderEnd("multibarwithfocuschart immediate"),q}return q.dispatch=I,q.multibar=a,q.multibar2=o,q.legend=h,q.xAxis=s,q.yAxis=u,q.state=N,q.x2Axis=c,q.y2Axis=d,q.options=r.utils.optionsFunc.bind(q),q.tooltip=p,q.interactiveLayer=l,q._options=Object.create({},{width:{get:function(){return _},set:function(t){_=t}},height:{get:function(){return y},set:function(t){y=t}},focusHeight:{get:function(){return b},set:function(t){b=t}},showLegend:{get:function(){return k},set:function(t){k=t}},brushExtent:{get:function(){return P},set:function(t){P=t}},showControls:{get:function(){return w},set:function(t){w=t}},controlLabels:{get:function(){return x},set:function(t){x=t}},showXAxis:{get:function(){return D},set:function(t){D=t}},showYAxis:{get:function(){return C},set:function(t){C=t}},tooltips:{get:function(){return H},set:function(t){H=t}},tooltipContent:{get:function(){return p},set:function(t){p=t}},defaultState:{get:function(){return F},set:function(t){F=t}},noData:{get:function(){return V},set:function(t){V=t}},reduceXTicks:{get:function(){return O},set:function(t){O=t}},rotateLabels:{get:function(){return j},set:function(t){j=t}},staggerLabels:{get:function(){return A},set:function(t){A=t}},focusEnable:{get:function(){return L},set:function(t){L=t}},focusShowAxisX:{get:function(){return Y},set:function(t){Y=t}},focusShowAxisY:{get:function(){return S},set:function(t){S=t}},margin:{get:function(){return g},set:function(t){g.top=void 0!==t.top?t.top:g.top,g.right=void 0!==t.right?t.right:g.right,g.bottom=void 0!==t.bottom?t.bottom:g.bottom,g.left=void 0!==t.left?t.left:g.left}},duration:{get:function(){return R},set:function(t){R=t,a.duration(R),s.duration(R),u.duration(R),B.reset(R)}},interpolate:{get:function(){return a.interpolate()},set:function(t){a.interpolate(t)}},color:{get:function(){return M},set:function(t){M=r.utils.getColor(t),h.color(M)}},rightAlignYAxis:{get:function(){return E},set:function(t){E=t,u.orient(E?"right":"left")}},xTickFormat:{get:function(){return s.xTickFormat()},set:function(t){s.xTickFormat(t),c.xTickFormat(t)}},yTickFormat:{get:function(){return u.yTickFormat()},set:function(t){u.yTickFormat(t),d.yTickFormat(t)}},x:{get:function(){return a.x()},set:function(t){a.x(t),o.x(t)}},y:{get:function(){return a.y()},set:function(t){a.y(t),o.y(t)}},useInteractiveGuideline:{get:function(){return z},set:function(t){z=t}},barColor:{get:function(){return a.barColor},set:function(t){a.barColor(t),o.barColor(t),h.color(function(t,e){return d3.rgb("#ccc").darker(1.5*e).toString()})}}}),r.utils.inheritOptions(q,a),r.utils.initOptions(q),q},r.models.multiChart=function(){"use strict";var t,e,n={top:30,right:20,bottom:50,left:60},i=null,a=r.utils.defaultColor(),o=null,s=null,u=!0,l=null,c=function(t){return t.x},d=function(t){return t.y},h="linear",f=!0,m=r.interactiveGuideline(),p=!1,g=" (right axis)",v=250,_=d3.scale.linear(),y=d3.scale.linear(),b=d3.scale.linear(),M=r.models.line().yScale(y).duration(v),w=r.models.line().yScale(b).duration(v),x=r.models.scatter().yScale(y).duration(v),k=r.models.scatter().yScale(b).duration(v),L=r.models.multiBar().stacked(!1).yScale(y).duration(v),S=r.models.multiBar().stacked(!1).yScale(b).duration(v),Y=r.models.stackedArea().yScale(y).duration(v),T=r.models.stackedArea().yScale(b).duration(v),D=r.models.axis().scale(_).orient("bottom").tickPadding(5).duration(v),C=r.models.axis().scale(y).orient("left").duration(v),E=r.models.axis().scale(b).orient("right").duration(v),O=r.models.legend().height(30),A=r.models.tooltip(),j=d3.dispatch(),H=[M,w,x,k,L,S,Y,T];function N(l){return l.each(function(l){var f=d3.select(this);r.utils.initSVG(f),N.update=function(){f.transition().call(N)},N.container=this;var v=r.utils.availableWidth(o,f,n),j=r.utils.availableHeight(s,f,n),P=l.filter(function(t){return"line"==t.type&&1==t.yAxis}),F=l.filter(function(t){return"line"==t.type&&2==t.yAxis}),V=l.filter(function(t){return"scatter"==t.type&&1==t.yAxis}),I=l.filter(function(t){return"scatter"==t.type&&2==t.yAxis}),W=l.filter(function(t){return"bar"==t.type&&1==t.yAxis}),R=l.filter(function(t){return"bar"==t.type&&2==t.yAxis}),z=l.filter(function(t){return"area"==t.type&&1==t.yAxis}),B=l.filter(function(t){return"area"==t.type&&2==t.yAxis});if(!(l&&l.length&&l.filter(function(t){return t.values.length}).length))return r.utils.noData(N,f),N;f.selectAll(".nv-noData").remove();var G=l.filter(function(t){return!t.disabled&&1==t.yAxis}).map(function(t){return t.values.map(function(t,e){return{x:c(t),y:d(t)}})}),U=l.filter(function(t){return!t.disabled&&2==t.yAxis}).map(function(t){return t.values.map(function(t,e){return{x:c(t),y:d(t)}})});_.domain(d3.extent(d3.merge(G.concat(U)),function(t){return t.x})).range([0,v]);var $=f.selectAll("g.wrap.multiChart").data([l]),q=$.enter().append("g").attr("class","wrap nvd3 multiChart").append("g");q.append("g").attr("class","nv-x nv-axis"),q.append("g").attr("class","nv-y1 nv-axis"),q.append("g").attr("class","nv-y2 nv-axis"),q.append("g").attr("class","stack1Wrap"),q.append("g").attr("class","stack2Wrap"),q.append("g").attr("class","bars1Wrap"),q.append("g").attr("class","bars2Wrap"),q.append("g").attr("class","scatters1Wrap"),q.append("g").attr("class","scatters2Wrap"),q.append("g").attr("class","lines1Wrap"),q.append("g").attr("class","lines2Wrap"),q.append("g").attr("class","legendWrap"),q.append("g").attr("class","nv-interactive");var J=$.select("g"),Z=l.map(function(t,e){return l[e].color||a(t,e)});if(u){var X=O.align()?v/2:v,K=O.align()?X:0;O.width(X),O.color(Z),J.select(".legendWrap").datum(l.map(function(t){return t.originalKey=void 0===t.originalKey?t.key:t.originalKey,t.key=t.originalKey+(1==t.yAxis?"":g),t})).call(O),i||O.height()===n.top||(n.top=O.height(),j=r.utils.availableHeight(s,f,n)),J.select(".legendWrap").attr("transform","translate("+K+","+-n.top+")")}else J.select(".legendWrap").selectAll("*").remove();M.width(v).height(j).interpolate(h).color(Z.filter(function(t,e){return!l[e].disabled&&1==l[e].yAxis&&"line"==l[e].type})),w.width(v).height(j).interpolate(h).color(Z.filter(function(t,e){return!l[e].disabled&&2==l[e].yAxis&&"line"==l[e].type})),x.width(v).height(j).color(Z.filter(function(t,e){return!l[e].disabled&&1==l[e].yAxis&&"scatter"==l[e].type})),k.width(v).height(j).color(Z.filter(function(t,e){return!l[e].disabled&&2==l[e].yAxis&&"scatter"==l[e].type})),L.width(v).height(j).color(Z.filter(function(t,e){return!l[e].disabled&&1==l[e].yAxis&&"bar"==l[e].type})),S.width(v).height(j).color(Z.filter(function(t,e){return!l[e].disabled&&2==l[e].yAxis&&"bar"==l[e].type})),Y.width(v).height(j).interpolate(h).color(Z.filter(function(t,e){return!l[e].disabled&&1==l[e].yAxis&&"area"==l[e].type})),T.width(v).height(j).interpolate(h).color(Z.filter(function(t,e){return!l[e].disabled&&2==l[e].yAxis&&"area"==l[e].type})),J.attr("transform","translate("+n.left+","+n.top+")");var Q=J.select(".lines1Wrap").datum(P.filter(function(t){return!t.disabled})),tt=J.select(".scatters1Wrap").datum(V.filter(function(t){return!t.disabled})),et=J.select(".bars1Wrap").datum(W.filter(function(t){return!t.disabled})),nt=J.select(".stack1Wrap").datum(z.filter(function(t){return!t.disabled})),rt=J.select(".lines2Wrap").datum(F.filter(function(t){return!t.disabled})),it=J.select(".scatters2Wrap").datum(I.filter(function(t){return!t.disabled})),at=J.select(".bars2Wrap").datum(R.filter(function(t){return!t.disabled})),ot=J.select(".stack2Wrap").datum(B.filter(function(t){return!t.disabled})),st=[];L.stacked()&&W.length&&((st=W.filter(function(t){return!t.disabled}).map(function(t){return t.values})).length>0&&(st=st.reduce(function(t,e){return t.map(function(t,n){return{x:t.x,y:t.y+e[n].y}})})));W.length&&st.push({x:0,y:0});var ut=[];S.stacked()&&R.length&&((ut=R.filter(function(t){return!t.disabled}).map(function(t){return t.values})).length>0&&(ut=ut.reduce(function(t,e){return t.map(function(t,n){return{x:t.x,y:t.y+e[n].y}})})));function lt(t){return d3.transpose(t).map(function(t){return t.map(function(t){return t.y})}).map(function(t){return d3.sum(t)})}if(R.length&&ut.push({x:0,y:0}),y.domain(t||d3.extent(d3.merge(G).concat(st),function(t){return t.y})).range([0,j]),b.domain(e||d3.extent(d3.merge(U).concat(ut),function(t){return t.y})).range([0,j]),M.yDomain(y.domain()),x.yDomain(y.domain()),L.stacked()){var ct=y.domain([0,d3.max(lt(G))]).range([0,j]);L.yDomain(ct.domain())}else L.yDomain(y.domain());if(Y.yDomain(y.domain()),w.yDomain(b.domain()),k.yDomain(b.domain()),S.stacked()){var dt=b.domain([0,d3.max(lt(U))]).range([0,j]);S.yDomain(dt.domain())}else S.yDomain(b.domain());function ht(t){var e=2===t.series.yAxis?E:C;t.value=t.point.x,t.series={value:t.point.y,color:t.point.color,key:t.series.key},A.duration(0).headerFormatter(function(t,e){return D.tickFormat()(t,e)}).valueFormatter(function(t,n){return e.tickFormat()(t,n)}).data(t).hidden(!1)}function ft(t){var e=2===t.series.yAxis?E:C;t.value=t.point.x,t.series={value:t.point.y,color:t.point.color,key:t.series.key},A.duration(100).headerFormatter(function(t,e){return D.tickFormat()(t,e)}).valueFormatter(function(t,n){return e.tickFormat()(t,n)}).data(t).hidden(!1)}function mt(t){var e=2===t.series.yAxis?E:C;t.point.x=Y.x()(t.point),t.point.y=Y.y()(t.point),A.duration(0).headerFormatter(function(t,e){return D.tickFormat()(t,e)}).valueFormatter(function(t,n){return e.tickFormat()(t,n)}).data(t).hidden(!1)}function pt(t){var e=2===t.series.yAxis?E:C;t.value=L.x()(t.data),t.series={value:L.y()(t.data),color:t.color,key:t.data.key},A.duration(0).headerFormatter(function(t,e){return D.tickFormat()(t,e)}).valueFormatter(function(t,n){return e.tickFormat()(t,n)}).data(t).hidden(!1)}function gt(){for(var t=0,e=H.length;t<e;t++){var n=H[t];try{n.clearHighlights()}catch(t){}}}T.yDomain(b.domain()),z.length&&d3.transition(nt).call(Y),B.length&&d3.transition(ot).call(T),W.length&&d3.transition(et).call(L),R.length&&d3.transition(at).call(S),P.length&&d3.transition(Q).call(M),F.length&&d3.transition(rt).call(w),V.length&&d3.transition(tt).call(x),I.length&&d3.transition(it).call(k),D._ticks(r.utils.calcTicksX(v/100,l)).tickSize(-j,0),J.select(".nv-x.nv-axis").attr("transform","translate(0,"+j+")"),d3.transition(J.select(".nv-x.nv-axis")).call(D),C._ticks(r.utils.calcTicksY(j/36,l)).tickSize(-v,0),d3.transition(J.select(".nv-y1.nv-axis")).call(C),E._ticks(r.utils.calcTicksY(j/36,l)).tickSize(-v,0),d3.transition(J.select(".nv-y2.nv-axis")).call(E),J.select(".nv-y1.nv-axis").classed("nv-disabled",!G.length).attr("transform","translate("+_.range()[0]+",0)"),J.select(".nv-y2.nv-axis").classed("nv-disabled",!U.length).attr("transform","translate("+_.range()[1]+",0)"),O.dispatch.on("stateChange",function(t){N.update()}),p&&(m.width(v).height(j).margin({left:n.left,top:n.top}).svgContainer(f).xScale(_),$.select(".nv-interactive").call(m)),p?(m.dispatch.on("elementMousemove",function(t){gt();var e,n,i,o=[];l.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(s,u){var l=_.domain(),c=s.values.filter(function(t,e){return N.x()(t,e)>=l[0]&&N.x()(t,e)<=l[1]}),d=c[n=r.interactiveBisect(c,t.pointXValue,N.x())],h=N.y()(d,n);null===h||isNaN(h)||s.noHighlightSeries||function(t,e,n,r){var i={line:{yAxis1:{chart:M,data:P},yAxis2:{chart:w,data:F}},scatter:{yAxis1:{chart:x,data:V},yAxis2:{chart:k,data:I}},bar:{yAxis1:{chart:L,data:W},yAxis2:{chart:S,data:R}},area:{yAxis1:{chart:Y,data:z},yAxis2:{chart:T,data:B}}},a=i[t.type]["yAxis"+t.yAxis].chart,o=i[t.type]["yAxis"+t.yAxis].data.reduce(function(e,n,r){return n.key===t.key?r:e},0);try{a.highlightPoint(o,e,n,r)}catch(t){}}(s,n,!0),void 0!==d&&(void 0===e&&(e=d),void 0===i&&(i=_(N.x()(d,n))),o.push({key:s.key,value:h,color:a(s,s.seriesIndex),data:d,yAxis:2==s.yAxis?E:C}))});m.tooltip.headerFormatter(function(t,e){return D.tickFormat()(t,e)}).valueFormatter(m.tooltip.valueFormatter()||function(t,e){var n=o[e].yAxis;return null==t?"N/A":n.tickFormat()(t)}).data({value:N.x()(e,n),index:n,series:o})(),m.renderGuideLine(i)}),m.dispatch.on("elementMouseout",function(t){gt()})):(M.dispatch.on("elementMouseover.tooltip",ht),w.dispatch.on("elementMouseover.tooltip",ht),M.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),w.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),x.dispatch.on("elementMouseover.tooltip",ft),k.dispatch.on("elementMouseover.tooltip",ft),x.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),k.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),Y.dispatch.on("elementMouseover.tooltip",mt),T.dispatch.on("elementMouseover.tooltip",mt),Y.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),T.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),L.dispatch.on("elementMouseover.tooltip",pt),S.dispatch.on("elementMouseover.tooltip",pt),L.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),S.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),L.dispatch.on("elementMousemove.tooltip",function(t){A()}),S.dispatch.on("elementMousemove.tooltip",function(t){A()}))}),N}return N.dispatch=j,N.legend=O,N.lines1=M,N.lines2=w,N.scatters1=x,N.scatters2=k,N.bars1=L,N.bars2=S,N.stack1=Y,N.stack2=T,N.xAxis=D,N.yAxis1=C,N.yAxis2=E,N.tooltip=A,N.interactiveLayer=m,N.options=r.utils.optionsFunc.bind(N),N._options=Object.create({},{width:{get:function(){return o},set:function(t){o=t}},height:{get:function(){return s},set:function(t){s=t}},showLegend:{get:function(){return u},set:function(t){u=t}},xScale:{get:function(){return _},set:function(t){_=t,D.scale(_)}},yDomain1:{get:function(){return t},set:function(e){t=e}},yDomain2:{get:function(){return e},set:function(t){e=t}},noData:{get:function(){return l},set:function(t){l=t}},interpolate:{get:function(){return h},set:function(t){h=t}},legendRightAxisHint:{get:function(){return g},set:function(t){g=t}},margin:{get:function(){return n},set:function(t){void 0!==t.top&&(n.top=t.top,i=t.top),n.right=void 0!==t.right?t.right:n.right,n.bottom=void 0!==t.bottom?t.bottom:n.bottom,n.left=void 0!==t.left?t.left:n.left}},color:{get:function(){return a},set:function(t){a=r.utils.getColor(t)}},x:{get:function(){return c},set:function(t){c=t,M.x(t),w.x(t),x.x(t),k.x(t),L.x(t),S.x(t),Y.x(t),T.x(t)}},y:{get:function(){return d},set:function(t){d=t,M.y(t),w.y(t),x.y(t),k.y(t),Y.y(t),T.y(t),L.y(t),S.y(t)}},useVoronoi:{get:function(){return f},set:function(t){f=t,M.useVoronoi(t),w.useVoronoi(t),Y.useVoronoi(t),T.useVoronoi(t)}},useInteractiveGuideline:{get:function(){return p},set:function(t){(p=t)&&(M.interactive(!1),M.useVoronoi(!1),w.interactive(!1),w.useVoronoi(!1),Y.interactive(!1),Y.useVoronoi(!1),T.interactive(!1),T.useVoronoi(!1),x.interactive(!1),k.interactive(!1))}},duration:{get:function(){return v},set:function(t){v=t,[M,w,Y,T,x,k,D,C,E].forEach(function(t){t.duration(v)})}}}),r.utils.initOptions(N),N},r.models.ohlcBar=function(){"use strict";var t,e,n,i,a={top:0,right:0,bottom:0,left:0},o=null,s=null,u=Math.floor(1e4*Math.random()),l=null,c=d3.scale.linear(),d=d3.scale.linear(),h=function(t){return t.x},f=function(t){return t.y},m=function(t){return t.open},p=function(t){return t.close},g=function(t){return t.high},v=function(t){return t.low},_=[],y=[],b=!1,M=!0,w=r.utils.defaultColor(),x=!1,k=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");function L(x){return x.each(function(x){l=d3.select(this);var L=r.utils.availableWidth(o,l,a),S=r.utils.availableHeight(s,l,a);r.utils.initSVG(l);var Y=L/x[0].values.length*.9;c.domain(t||d3.extent(x[0].values.map(h).concat(_))),b?c.range(n||[.5*L/x[0].values.length,L*(x[0].values.length-.5)/x[0].values.length]):c.range(n||[5+Y/2,L-Y/2-5]),d.domain(e||[d3.min(x[0].values.map(v).concat(y)),d3.max(x[0].values.map(g).concat(y))]).range(i||[S,0]),c.domain()[0]===c.domain()[1]&&(c.domain()[0]?c.domain([c.domain()[0]-.01*c.domain()[0],c.domain()[1]+.01*c.domain()[1]]):c.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var T=d3.select(this).selectAll("g.nv-wrap.nv-ohlcBar").data([x[0].values]),D=T.enter().append("g").attr("class","nvd3 nv-wrap nv-ohlcBar"),C=D.append("defs"),E=D.append("g"),O=T.select("g");E.append("g").attr("class","nv-ticks"),T.attr("transform","translate("+a.left+","+a.top+")"),l.on("click",function(t,e){k.chartClick({data:t,index:e,pos:d3.event,id:u})}),C.append("clipPath").attr("id","nv-chart-clip-path-"+u).append("rect"),T.select("#nv-chart-clip-path-"+u+" rect").attr("width",L).attr("height",S),O.attr("clip-path",M?"url(#nv-chart-clip-path-"+u+")":"");var A=T.select(".nv-ticks").selectAll(".nv-tick").data(function(t){return t});A.exit().remove(),A.enter().append("path").attr("class",function(t,e,n){return(m(t,e)>p(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e}).attr("d",function(t,e){return"m0,0l0,"+(d(m(t,e))-d(g(t,e)))+"l"+-Y/2+",0l"+Y/2+",0l0,"+(d(v(t,e))-d(m(t,e)))+"l0,"+(d(p(t,e))-d(v(t,e)))+"l"+Y/2+",0l"+-Y/2+",0z"}).attr("transform",function(t,e){return"translate("+c(h(t,e))+","+d(g(t,e))+")"}).attr("fill",function(t,e){return w[0]}).attr("stroke",function(t,e){return w[0]}).attr("x",0).attr("y",function(t,e){return d(Math.max(0,f(t,e)))}).attr("height",function(t,e){return Math.abs(d(f(t,e))-d(0))}),A.attr("class",function(t,e,n){return(m(t,e)>p(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e}),d3.transition(A).attr("transform",function(t,e){return"translate("+c(h(t,e))+","+d(g(t,e))+")"}).attr("d",function(t,e){var n=L/x[0].values.length*.9;return"m0,0l0,"+(d(m(t,e))-d(g(t,e)))+"l"+-n/2+",0l"+n/2+",0l0,"+(d(v(t,e))-d(m(t,e)))+"l0,"+(d(p(t,e))-d(v(t,e)))+"l"+n/2+",0l"+-n/2+",0z"})}),L}return L.highlightPoint=function(t,e){L.clearHighlights(),l.select(".nv-ohlcBar .nv-tick-0-"+t).classed("hover",e)},L.clearHighlights=function(){l.select(".nv-ohlcBar .nv-tick.hover").classed("hover",!1)},L.dispatch=k,L.options=r.utils.optionsFunc.bind(L),L._options=Object.create({},{width:{get:function(){return o},set:function(t){o=t}},height:{get:function(){return s},set:function(t){s=t}},xScale:{get:function(){return c},set:function(t){c=t}},yScale:{get:function(){return d},set:function(t){d=t}},xDomain:{get:function(){return t},set:function(e){t=e}},yDomain:{get:function(){return e},set:function(t){e=t}},xRange:{get:function(){return n},set:function(t){n=t}},yRange:{get:function(){return i},set:function(t){i=t}},forceX:{get:function(){return _},set:function(t){_=t}},forceY:{get:function(){return y},set:function(t){y=t}},padData:{get:function(){return b},set:function(t){b=t}},clipEdge:{get:function(){return M},set:function(t){M=t}},id:{get:function(){return u},set:function(t){u=t}},interactive:{get:function(){return x},set:function(t){x=t}},x:{get:function(){return h},set:function(t){h=t}},y:{get:function(){return f},set:function(t){f=t}},open:{get:function(){return m()},set:function(t){m=t}},close:{get:function(){return p()},set:function(t){p=t}},high:{get:function(){return g},set:function(t){g=t}},low:{get:function(){return v},set:function(t){v=t}},margin:{get:function(){return a},set:function(t){a.top=void 0!=t.top?t.top:a.top,a.right=void 0!=t.right?t.right:a.right,a.bottom=void 0!=t.bottom?t.bottom:a.bottom,a.left=void 0!=t.left?t.left:a.left}},color:{get:function(){return w},set:function(t){w=r.utils.getColor(t)}}}),r.utils.initOptions(L),L},r.models.parallelCoordinates=function(){"use strict";var t,e,n,i={top:30,right:0,bottom:10,left:0},a=null,o=null,s=null,u=null,l=d3.scale.ordinal(),c={},d="undefined values",h=[],f=[],m=[],p=!0,g=r.utils.defaultColor(),v=[],_=[],y=[],b=[],M=1,w=d3.svg.line(),x=d3.svg.axis(),k=d3.dispatch("brushstart","brush","brushEnd","dimensionsOrder","stateChange","elementClick","elementMouseover","elementMouseout","elementMousemove","renderEnd","activeChanged"),L=r.utils.renderWatch(k);function S(Y){return L.reset(),Y.each(function(L){var S=d3.select(this);if(s=r.utils.availableWidth(a,S,i),u=r.utils.availableHeight(o,S,i),r.utils.initSVG(S),void 0===L[0].values){var Y=[];L.forEach(function(t){var e={};Object.keys(t).forEach(function(n){"name"!==n&&(e[n]=t[n])}),Y.push({key:t.name,values:e})}),L=Y}var T=L.map(function(t){return t.values});0===_.length&&(_=L),m=h.sort(function(t,e){return t.currentPosition-e.currentPosition}).map(function(t){return t.key}),f=h.filter(function(t){return!t.disabled}),l.rangePoints([0,s],1).domain(f.map(function(t){return t.key}));var D={},C=!1,E=[];m.forEach(function(t){var e=d3.extent(T,function(e){return+e[t]}),n=e[0],r=e[1],i=!1;(isNaN(n)||isNaN(r))&&(i=!0,n=0,r=0),n===r&&(n-=1,r+=1);var a=v.filter(function(e){return e.dimension==t});0!==a.length&&(i?(n=c[t].domain()[0],r=c[t].domain()[1]):!a[0].hasOnlyNaN&&p?(n=n>a[0].extent[0]?a[0].extent[0]:n,r=r<a[0].extent[1]?a[0].extent[1]:r):a[0].hasNaN&&(r=r<a[0].extent[1]?a[0].extent[1]:r,D[t]=c[t].domain()[1],C=!0)),c[t]=d3.scale.linear().domain([n,r]).range([.9*(u-12),0]),b=[],c[t].brush=d3.svg.brush().y(c[t]).on("brushstart",U).on("brush",$).on("brushend",q)});var O=S.selectAll("g.nv-wrap.nv-parallelCoordinates").data([L]),A=O.enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinates").append("g"),j=O.select("g");A.append("g").attr("class","nv-parallelCoordinates background"),A.append("g").attr("class","nv-parallelCoordinates foreground"),A.append("g").attr("class","nv-parallelCoordinates missingValuesline"),O.attr("transform","translate("+i.left+","+i.top+")"),w.interpolate("cardinal").tension(M),x.orient("left");var H,N,P=d3.behavior.drag().on("dragstart",function(t){y[t.key]=this.parentNode.__origin__=l(t.key),e.attr("visibility","hidden")}).on("drag",function(e){y[e.key]=Math.min(s,Math.max(0,this.parentNode.__origin__+=d3.event.x)),t.attr("d",B),f.sort(function(t,e){return Z(t.key)-Z(e.key)}),f.forEach(function(t,e){return t.currentPosition=e}),l.domain(f.map(function(t){return t.key})),n.attr("transform",function(t){return"translate("+Z(t.key)+")"})}).on("dragend",function(n,r){delete this.parentNode.__origin__,delete y[n.key],d3.select(this.parentNode).attr("transform","translate("+l(n.key)+")"),t.attr("d",B),e.attr("d",B).attr("visibility",null),k.dimensionsOrder(f)}),F=l.range()[1]-l.range()[0];if(F=isNaN(F)?l.range()[0]:F,!isNaN(F)){var V=[0+F/2,u-12,s-F/2,u-12];(H=O.select(".missingValuesline").selectAll("line").data([V])).enter().append("line"),H.exit().remove(),H.attr("x1",function(t){return t[0]}).attr("y1",function(t){return t[1]}).attr("x2",function(t){return t[2]}).attr("y2",function(t){return t[3]}),(N=O.select(".missingValuesline").selectAll("text").data([d])).append("text").data([d]),N.enter().append("text"),N.exit().remove(),N.attr("y",u).attr("x",s-92-F/2).text(function(t){return t})}(e=O.select(".background").selectAll("path").data(L)).enter().append("path"),e.exit().remove(),e.attr("d",B),(t=O.select(".foreground").selectAll("path").data(L)).enter().append("path"),t.exit().remove(),t.attr("d",B).style("stroke-width",function(t,e){return isNaN(t.strokeWidth)&&(t.strokeWidth=1),t.strokeWidth}).attr("stroke",function(t,e){return t.color||g(t,e)}),t.on("mouseover",function(t,e){d3.select(this).classed("hover",!0).style("stroke-width",t.strokeWidth+2+"px").style("stroke-opacity",1),k.elementMouseover({label:t.name,color:t.color||g(t,e),values:t.values,dimensions:f})}),t.on("mouseout",function(t,e){d3.select(this).classed("hover",!1).style("stroke-width",t.strokeWidth+"px").style("stroke-opacity",.7),k.elementMouseout({label:t.name,index:e})}),t.on("mousemove",function(t,e){k.elementMousemove()}),t.on("click",function(t){k.elementClick({id:t.id})});var I=(n=j.selectAll(".dimension").data(f)).enter().append("g").attr("class","nv-parallelCoordinates dimension");n.attr("transform",function(t){return"translate("+l(t.key)+",0)"}),I.append("g").attr("class","nv-axis"),I.append("text").attr("class","nv-label").style("cursor","move").attr("dy","-1em").attr("text-anchor","middle").on("mouseover",function(t,e){k.elementMouseover({label:t.tooltip||t.key,color:t.color})}).on("mouseout",function(t,e){k.elementMouseout({label:t.tooltip})}).on("mousemove",function(t,e){k.elementMousemove()}).call(P),I.append("g").attr("class","nv-brushBackground"),n.exit().remove(),n.select(".nv-label").text(function(t){return t.key}),G(p);var W=m.filter(function(t){return!c[t].brush.empty()}),R=W.map(function(t){return c[t].brush.extent()}),z=_.slice(0);function B(t){return w(f.map(function(e){if(isNaN(t.values[e.key])||isNaN(parseFloat(t.values[e.key]))||C){var n=c[e.key].domain(),r=c[e.key].range(),i=n[0]-(n[1]-n[0])/9;if(b.indexOf(e.key)<0){var a=d3.scale.linear().domain([i,n[1]]).range([u-12,r[1]]);c[e.key].brush.y(a),b.push(e.key)}if(isNaN(t.values[e.key])||isNaN(parseFloat(t.values[e.key])))return[l(e.key),c[e.key](i)]}return void 0!==H&&(b.length>0||C?(H.style("display","inline"),N.style("display","inline")):(H.style("display","none"),N.style("display","none"))),[l(e.key),c[e.key](t.values[e.key])]}))}function G(t){v.forEach(function(e){var n=c[e.dimension].brush.y().domain();e.hasOnlyNaN&&(e.extent[1]=(c[e.dimension].domain()[1]-n[0])*(e.extent[1]-e.extent[0])/(D[e.dimension]-e.extent[0])+n[0]),e.hasNaN&&(e.extent[0]=n[0]),t&&c[e.dimension].brush.extent(e.extent)}),n.select(".nv-brushBackground").each(function(t){d3.select(this).call(c[t.key].brush)}).selectAll("rect").attr("x",-8).attr("width",16),J()}function U(){!1===p&&(p=!0,G(!0))}function $(){W=m.filter(function(t){return!c[t].brush.empty()}),R=W.map(function(t){return c[t].brush.extent()}),v=[],W.forEach(function(t,e){v[e]={dimension:t,extent:R[e],hasNaN:!1,hasOnlyNaN:!1}}),_=[],t.style("display",function(t){var e=W.every(function(e,n){return!(!isNaN(t.values[e])&&!isNaN(parseFloat(t.values[e]))||R[n][0]!=c[e].brush.y().domain()[0])||R[n][0]<=t.values[e]&&t.values[e]<=R[n][1]&&!isNaN(parseFloat(t.values[e]))});return e&&_.push(t),e?null:"none"}),J(),k.brush({filters:v,active:_})}function q(){var t=W.length>0;v.forEach(function(t){t.extent[0]===c[t.dimension].brush.y().domain()[0]&&b.indexOf(t.dimension)>=0&&(t.hasNaN=!0),t.extent[1]<c[t.dimension].domain()[0]&&(t.hasOnlyNaN=!0)}),k.brushEnd(_,t)}function J(){n.select(".nv-axis").each(function(t,e){var n=v.filter(function(e){return e.dimension==t.key});E[t.key]=c[t.key].domain(),0!=n.length&&p&&(E[t.key]=[],n[0].extent[1]>c[t.key].domain()[0]&&(E[t.key]=[n[0].extent[1]]),n[0].extent[0]>=c[t.key].domain()[0]&&E[t.key].push(n[0].extent[0])),d3.select(this).call(x.scale(c[t.key]).tickFormat(t.format).tickValues(E[t.key]))})}function Z(t){var e=y[t];return null==e?l(t):e}_=[],t.style("display",function(t){var e=W.every(function(e,n){return!(!isNaN(t.values[e])&&!isNaN(parseFloat(t.values[e]))||R[n][0]!=c[e].brush.y().domain()[0])||R[n][0]<=t.values[e]&&t.values[e]<=R[n][1]&&!isNaN(parseFloat(t.values[e]))});return e&&_.push(t),e?null:"none"}),(v.length>0||!r.utils.arrayEquals(_,z))&&k.activeChanged(_)}),S}return S.dispatch=k,S.options=r.utils.optionsFunc.bind(S),S._options=Object.create({},{width:{get:function(){return a},set:function(t){a=t}},height:{get:function(){return o},set:function(t){o=t}},dimensionData:{get:function(){return h},set:function(t){h=t}},displayBrush:{get:function(){return p},set:function(t){p=t}},filters:{get:function(){return v},set:function(t){v=t}},active:{get:function(){return _},set:function(t){_=t}},lineTension:{get:function(){return M},set:function(t){M=t}},undefinedValuesLabel:{get:function(){return d},set:function(t){d=t}},dimensions:{get:function(){return h.map(function(t){return t.key})},set:function(t){r.deprecated("dimensions","use dimensionData instead"),0===h.length?t.forEach(function(t){h.push({key:t})}):t.forEach(function(t,e){h[e].key=t})}},dimensionNames:{get:function(){return h.map(function(t){return t.key})},set:function(t){r.deprecated("dimensionNames","use dimensionData instead"),m=[],0===h.length?t.forEach(function(t){h.push({key:t})}):t.forEach(function(t,e){h[e].key=t})}},dimensionFormats:{get:function(){return h.map(function(t){return t.format})},set:function(t){r.deprecated("dimensionFormats","use dimensionData instead"),0===h.length?t.forEach(function(t){h.push({format:t})}):t.forEach(function(t,e){h[e].format=t})}},margin:{get:function(){return i},set:function(t){i.top=void 0!==t.top?t.top:i.top,i.right=void 0!==t.right?t.right:i.right,i.bottom=void 0!==t.bottom?t.bottom:i.bottom,i.left=void 0!==t.left?t.left:i.left}},color:{get:function(){return g},set:function(t){g=r.utils.getColor(t)}}}),r.utils.initOptions(S),S},r.models.parallelCoordinatesChart=function(){"use strict";var t=r.models.parallelCoordinates(),e=r.models.legend(),n=r.models.tooltip(),i=(r.models.tooltip(),{top:0,right:0,bottom:0,left:0}),a=null,o=null,s=null,u=!0,l=r.utils.defaultColor(),c=r.utils.state(),d=[],h=!0,f=null,m=null,p="undefined",g=d3.dispatch("dimensionsOrder","brushEnd","stateChange","changeState","renderEnd"),v=r.utils.renderWatch(g),_=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},y=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};function b(n){return v.reset(),v.models(t),n.each(function(n){var l=d3.select(this);r.utils.initSVG(l);var m,p=r.utils.availableWidth(o,l,i),v=r.utils.availableHeight(s,l,i);if(b.update=function(){l.call(b)},b.container=this,c.setter(y(d),b.update).getter(_(d)).update(),c.disabled=d.map(function(t){return!!t.disabled}),(d=d.map(function(t){return t.disabled=!!t.disabled,t})).forEach(function(t,e){t.originalPosition=isNaN(t.originalPosition)?e:t.originalPosition,t.currentPosition=isNaN(t.currentPosition)?e:t.currentPosition}),!f)for(m in f={},c)c[m]instanceof Array?f[m]=c[m].slice(0):f[m]=c[m];if(!n||!n.length)return r.utils.noData(b,l),b;l.selectAll(".nv-noData").remove();var M=l.selectAll("g.nv-wrap.nv-parallelCoordinatesChart").data([n]),w=M.enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinatesChart").append("g"),x=M.select("g");w.append("g").attr("class","nv-parallelCoordinatesWrap"),w.append("g").attr("class","nv-legendWrap"),x.select("rect").attr("width",p).attr("height",v>0?v:0),u?(e.width(p).color(function(t){return"rgb(188,190,192)"}),x.select(".nv-legendWrap").datum(d.sort(function(t,e){return t.originalPosition-e.originalPosition})).call(e),a||e.height()===i.top||(i.top=e.height(),v=r.utils.availableHeight(s,l,i)),M.select(".nv-legendWrap").attr("transform","translate( 0 ,"+-i.top+")")):x.select(".nv-legendWrap").selectAll("*").remove(),M.attr("transform","translate("+i.left+","+i.top+")"),t.width(p).height(v).dimensionData(d).displayBrush(h),x.select(".nv-parallelCoordinatesWrap ").datum(n).transition().call(t),t.dispatch.on("brushEnd",function(t,e){e?(h=!0,g.brushEnd(t)):h=!1}),e.dispatch.on("stateChange",function(t){for(var e in t)c[e]=t[e];g.stateChange(c),b.update()}),t.dispatch.on("dimensionsOrder",function(t){d.sort(function(t,e){return t.currentPosition-e.currentPosition});var e=!1;d.forEach(function(t,n){t.currentPosition=n,t.currentPosition!==t.originalPosition&&(e=!0)}),g.dimensionsOrder(d,e)}),g.on("changeState",function(t){void 0!==t.disabled&&(d.forEach(function(e,n){e.disabled=t.disabled[n]}),c.disabled=t.disabled),b.update()})}),v.renderEnd("parraleleCoordinateChart immediate"),b}return n.contentGenerator(function(t){var e='<table><thead><tr><td class="legend-color-guide"><div style="background-color:'+t.color+'"></div></td><td><strong>'+t.key+"</strong></td></tr></thead>";return 0!==t.series.length&&(e+='<tbody><tr><td height ="10px"></td></tr>',t.series.forEach(function(t){e=e+'<tr><td class="legend-color-guide"><div style="background-color:'+t.color+'"></div></td><td class="key">'+t.key+'</td><td class="value">'+t.value+"</td></tr>"}),e+="</tbody>"),e+="</table>"}),t.dispatch.on("elementMouseover.tooltip",function(t){var e={key:t.label,color:t.color,series:[]};t.values&&(Object.keys(t.values).forEach(function(n){var r,i=t.dimensions.filter(function(t){return t.key===n})[0];i&&(r=isNaN(t.values[n])||isNaN(parseFloat(t.values[n]))?p:i.format(t.values[n]),e.series.push({idx:i.currentPosition,key:n,value:r,color:i.color}))}),e.series.sort(function(t,e){return t.idx-e.idx})),n.data(e).hidden(!1)}),t.dispatch.on("elementMouseout.tooltip",function(t){n.hidden(!0)}),t.dispatch.on("elementMousemove.tooltip",function(){n()}),b.dispatch=g,b.parallelCoordinates=t,b.legend=e,b.tooltip=n,b.options=r.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return o},set:function(t){o=t}},height:{get:function(){return s},set:function(t){s=t}},showLegend:{get:function(){return u},set:function(t){u=t}},defaultState:{get:function(){return f},set:function(t){f=t}},dimensionData:{get:function(){return d},set:function(t){d=t}},displayBrush:{get:function(){return h},set:function(t){h=t}},noData:{get:function(){return m},set:function(t){m=t}},nanValue:{get:function(){return p},set:function(t){p=t}},margin:{get:function(){return i},set:function(t){void 0!==t.top&&(i.top=t.top,a=t.top),i.right=void 0!==t.right?t.right:i.right,i.bottom=void 0!==t.bottom?t.bottom:i.bottom,i.left=void 0!==t.left?t.left:i.left}},color:{get:function(){return l},set:function(n){l=r.utils.getColor(n),e.color(l),t.color(l)}}}),r.utils.inheritOptions(b,t),r.utils.initOptions(b),b},r.models.pie=function(){"use strict";var t={top:0,right:0,bottom:0,left:0},e=500,n=500,i=function(t){return t.x},a=function(t){return t.y},o=Math.floor(1e4*Math.random()),s=null,u=r.utils.defaultColor(),l=d3.format(",.2f"),c=!0,d=!1,h="key",f=.02,m=!1,p=!1,g=!1,v=!0,_=0,y=!1,b=!1,M=!1,w=!1,x=0,k=.5,L=250,S=[],Y=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),T=[],D=[],C=r.utils.renderWatch(Y);function E(O){return C.reset(),O.each(function(E){var O=e-t.left-t.right,A=n-t.top-t.bottom,j=Math.min(O,A)/2,H=[],N=[];if(s=d3.select(this),0===S.length)for(var P=j-j/10,F=k*j,V=0;V<E[0].length;V++)H.push(P),N.push(F);else v?(H=S.map(function(t){return(t.outer-t.outer/10)*j}),N=S.map(function(t){return(t.inner-t.inner/10)*j}),k=d3.min(S.map(function(t){return t.inner-t.inner/10}))):(H=S.map(function(t){return t.outer*j}),N=S.map(function(t){return t.inner*j}),k=d3.min(S.map(function(t){return t.inner})));r.utils.initSVG(s);var I=s.selectAll(".nv-wrap.nv-pie").data(E),W=I.enter().append("g").attr("class","nvd3 nv-wrap nv-pie nv-chart-"+o).append("g"),R=I.select("g"),z=W.append("g").attr("class","nv-pie");W.append("g").attr("class","nv-pieLabels"),I.attr("transform","translate("+t.left+","+t.top+")"),R.select(".nv-pie").attr("transform","translate("+O/2+","+A/2+")"),R.select(".nv-pieLabels").attr("transform","translate("+O/2+","+A/2+")"),s.on("click",function(t,e){Y.chartClick({data:t,index:e,pos:d3.event,id:o})}),T=[],D=[];for(V=0;V<E[0].length;V++){var B=d3.svg.arc().outerRadius(H[V]),G=d3.svg.arc().outerRadius(H[V]+5);!1!==b&&(B.startAngle(b),G.startAngle(b)),!1!==w&&(B.endAngle(w),G.endAngle(w)),p&&(B.innerRadius(N[V]),G.innerRadius(N[V])),B.cornerRadius&&x&&(B.cornerRadius(x),G.cornerRadius(x)),T.push(B),D.push(G)}var U=d3.layout.pie().sort(null).value(function(t){return t.disabled?0:a(t)});U.padAngle&&M&&U.padAngle(M),p&&g&&(z.append("text").attr("class","nv-pie-title"),I.select(".nv-pie-title").style("text-anchor","middle").text(function(t){return g}).style("font-size",Math.min(O,A)*k*2/(g.length+2)+"px").attr("dy","0.35em").attr("transform",function(t,e){return"translate(0, "+_+")"}));var $=I.select(".nv-pie").selectAll(".nv-slice").data(U),q=I.select(".nv-pieLabels").selectAll(".nv-label").data(U);$.exit().remove(),q.exit().remove();var J=$.enter().append("g");J.attr("class","nv-slice"),J.on("mouseover",function(t,e){d3.select(this).classed("hover",!0),v&&d3.select(this).select("path").transition().duration(70).attr("d",D[e]),Y.elementMouseover({data:t.data,index:e,color:d3.select(this).style("fill"),percent:(t.endAngle-t.startAngle)/(2*Math.PI)})}),J.on("mouseout",function(t,e){d3.select(this).classed("hover",!1),v&&d3.select(this).select("path").transition().duration(50).attr("d",T[e]),Y.elementMouseout({data:t.data,index:e})}),J.on("mousemove",function(t,e){Y.elementMousemove({data:t.data,index:e})}),J.on("click",function(t,e){Y.elementClick({data:t.data,index:e,color:d3.select(this).style("fill"),event:d3.event,element:this})}),J.on("dblclick",function(t,e){Y.elementDblClick({data:t.data,index:e,color:d3.select(this).style("fill")})}),$.attr("fill",function(t,e){return u(t.data,e)}),$.attr("stroke",function(t,e){return u(t.data,e)});J.append("path").each(function(t){this._current=t});if($.select("path").transition().duration(L).attr("d",function(t,e){return T[e](t)}).attrTween("d",function(t,e){t.endAngle=isNaN(t.endAngle)?0:t.endAngle,t.startAngle=isNaN(t.startAngle)?0:t.startAngle,p||(t.innerRadius=0);var n=d3.interpolate(this._current,t);return this._current=n(0),function(t){return T[e](n(t))}}),c){var Z=[];for(V=0;V<E[0].length;V++)Z.push(T[V]),d?p&&(Z[V]=d3.svg.arc().outerRadius(T[V].outerRadius()),!1!==b&&Z[V].startAngle(b),!1!==w&&Z[V].endAngle(w)):p||Z[V].innerRadius(0);q.enter().append("g").classed("nv-label",!0).each(function(t,e){var n=d3.select(this);n.attr("transform",function(t,e){if(y){t.outerRadius=H[e]+10,t.innerRadius=H[e]+15;var n=(t.startAngle+t.endAngle)/2*(180/Math.PI);return(t.startAngle+t.endAngle)/2<Math.PI?n-=90:n+=90,"translate("+Z[e].centroid(t)+") rotate("+n+")"}return t.outerRadius=j+10,t.innerRadius=j+15,"translate("+Z[e].centroid(t)+")"}),n.append("rect").style("stroke","#fff").style("fill","#fff").attr("rx",3).attr("ry",3),n.append("text").style("text-anchor",y?(t.startAngle+t.endAngle)/2<Math.PI?"start":"end":"middle").style("fill","#000")});var X={},K=function(t){return 140*Math.floor(t[0]/140)+","+14*Math.floor(t[1]/14)},Q=function(t){return(t.endAngle-t.startAngle)/(2*Math.PI)};q.watchTransition(C,"pie labels").attr("transform",function(t,e){if(y){t.outerRadius=H[e]+10,t.innerRadius=H[e]+15;var n=(t.startAngle+t.endAngle)/2*(180/Math.PI);return(t.startAngle+t.endAngle)/2<Math.PI?n-=90:n+=90,"translate("+Z[e].centroid(t)+") rotate("+n+")"}t.outerRadius=j+10,t.innerRadius=j+15;var r=Z[e].centroid(t),i=Q(t);if(t.value&&i>=f){var a=K(r);X[a]&&(r[1]-=14),X[K(r)]=!0}return"translate("+r+")"}),q.select(".nv-label text").style("text-anchor",function(t,e){return y?(t.startAngle+t.endAngle)/2<Math.PI?"start":"end":"middle"}).text(function(t,e){var n=Q(t),r="";if(!t.value||n<f)return"";if("function"==typeof h)r=h(t,e,{key:i(t.data),value:a(t.data),percent:l(n)});else switch(h){case"key":r=i(t.data);break;case"value":r=l(a(t.data));break;case"percent":r=d3.format("%")(n)}return r}),m&&q.each(function(t,e){if(this.getBBox){var n=this.getBBox(),i=Z[e].centroid(t),a={x:i[0]+n.x,y:i[1]+n.y},o={x:a.x+n.width,y:a.y},s={x:a.x,y:a.y+n.height},u={x:a.x+n.width,y:a.y+n.height};t.visible=r.utils.pointIsInArc(a,t,B)&&r.utils.pointIsInArc(o,t,B)&&r.utils.pointIsInArc(s,t,B)&&r.utils.pointIsInArc(u,t,B)}}).style("display",function(t){return t.visible?null:"none"})}}),C.renderEnd("pie immediate"),E}return E.dispatch=Y,E.options=r.utils.optionsFunc.bind(E),E._options=Object.create({},{arcsRadius:{get:function(){return S},set:function(t){S=t}},width:{get:function(){return e},set:function(t){e=t}},height:{get:function(){return n},set:function(t){n=t}},showLabels:{get:function(){return c},set:function(t){c=t}},title:{get:function(){return g},set:function(t){g=t}},titleOffset:{get:function(){return _},set:function(t){_=t}},labelThreshold:{get:function(){return f},set:function(t){f=t}},hideOverlapLabels:{get:function(){return m},set:function(t){m=t}},valueFormat:{get:function(){return l},set:function(t){l=t}},x:{get:function(){return i},set:function(t){i=t}},id:{get:function(){return o},set:function(t){o=t}},endAngle:{get:function(){return w},set:function(t){w=t}},startAngle:{get:function(){return b},set:function(t){b=t}},padAngle:{get:function(){return M},set:function(t){M=t}},cornerRadius:{get:function(){return x},set:function(t){x=t}},donutRatio:{get:function(){return k},set:function(t){k=t}},labelsOutside:{get:function(){return d},set:function(t){d=t}},labelSunbeamLayout:{get:function(){return y},set:function(t){y=t}},donut:{get:function(){return p},set:function(t){p=t}},growOnHover:{get:function(){return v},set:function(t){v=t}},pieLabelsOutside:{get:function(){return d},set:function(t){d=t,r.deprecated("pieLabelsOutside","use labelsOutside instead")}},donutLabelsOutside:{get:function(){return d},set:function(t){d=t,r.deprecated("donutLabelsOutside","use labelsOutside instead")}},labelFormat:{get:function(){return l},set:function(t){l=t,r.deprecated("labelFormat","use valueFormat instead")}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},duration:{get:function(){return L},set:function(t){L=t,C.reset(L)}},y:{get:function(){return a},set:function(t){a=d3.functor(t)}},color:{get:function(){return u},set:function(t){u=r.utils.getColor(t)}},labelType:{get:function(){return h},set:function(t){h=t||"key"}}}),r.utils.initOptions(E),E},r.models.pieChart=function(){"use strict";var t=r.models.pie(),e=r.models.legend(),n=r.models.tooltip(),i={top:30,right:20,bottom:20,left:20},a=null,o=null,s=null,u=!1,l=!0,c="top",d=r.utils.defaultColor(),h=r.utils.state(),f=null,m=null,p=250,g=d3.dispatch("stateChange","changeState","renderEnd");n.duration(0).headerEnabled(!1).valueFormatter(function(e,n){return t.valueFormat()(e,n)});var v=r.utils.renderWatch(g),_=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},y=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};function b(n){return v.reset(),v.models(t),n.each(function(n){var u=d3.select(this);r.utils.initSVG(u);var d,m=r.utils.availableWidth(o,u,i),p=r.utils.availableHeight(s,u,i);if(b.update=function(){u.transition().call(b)},b.container=this,h.setter(y(n),b.update).getter(_(n)).update(),h.disabled=n.map(function(t){return!!t.disabled}),!f)for(d in f={},h)h[d]instanceof Array?f[d]=h[d].slice(0):f[d]=h[d];if(!n||!n.length)return r.utils.noData(b,u),b;u.selectAll(".nv-noData").remove();var v=u.selectAll("g.nv-wrap.nv-pieChart").data([n]),M=v.enter().append("g").attr("class","nvd3 nv-wrap nv-pieChart").append("g"),w=v.select("g");if(M.append("g").attr("class","nv-pieWrap"),M.append("g").attr("class","nv-legendWrap"),l)if("top"===c)e.width(m).key(t.x()),v.select(".nv-legendWrap").datum(n).call(e),a||e.height()===i.top||(i.top=e.height(),p=r.utils.availableHeight(s,u,i)),v.select(".nv-legendWrap").attr("transform","translate(0,"+-i.top+")");else if("right"===c){var x=r.models.legend().width();m/2<x&&(x=m/2),e.height(p).key(t.x()),e.width(x),m-=e.width(),v.select(".nv-legendWrap").datum(n).call(e).attr("transform","translate("+m+",0)")}else"bottom"===c&&(e.width(m).key(t.x()),v.select(".nv-legendWrap").datum(n).call(e),i.bottom=e.height(),p=r.utils.availableHeight(s,u,i),v.select(".nv-legendWrap").attr("transform","translate(0,"+p+")"));else w.select(".nv-legendWrap").selectAll("*").remove();v.attr("transform","translate("+i.left+","+i.top+")"),t.width(m).height(p);var k=w.select(".nv-pieWrap").datum([n]);d3.transition(k).call(t),e.dispatch.on("stateChange",function(t){for(var e in t)h[e]=t[e];g.stateChange(h),b.update()}),g.on("changeState",function(t){void 0!==t.disabled&&(n.forEach(function(e,n){e.disabled=t.disabled[n]}),h.disabled=t.disabled),b.update()})}),v.renderEnd("pieChart immediate"),b}return t.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:b.x()(t.data),value:b.y()(t.data),color:t.color,percent:t.percent},u||(delete t.percent,delete t.series.percent),n.data(t).hidden(!1)}),t.dispatch.on("elementMouseout.tooltip",function(t){n.hidden(!0)}),t.dispatch.on("elementMousemove.tooltip",function(t){n()}),b.legend=e,b.dispatch=g,b.pie=t,b.tooltip=n,b.options=r.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return o},set:function(t){o=t}},height:{get:function(){return s},set:function(t){s=t}},noData:{get:function(){return m},set:function(t){m=t}},showTooltipPercent:{get:function(){return u},set:function(t){u=t}},showLegend:{get:function(){return l},set:function(t){l=t}},legendPosition:{get:function(){return c},set:function(t){c=t}},defaultState:{get:function(){return f},set:function(t){f=t}},color:{get:function(){return d},set:function(n){d=n,e.color(d),t.color(d)}},duration:{get:function(){return p},set:function(e){p=e,v.reset(p),t.duration(p)}},margin:{get:function(){return i},set:function(t){void 0!==t.top&&(i.top=t.top,a=t.top),i.right=void 0!==t.right?t.right:i.right,i.bottom=void 0!==t.bottom?t.bottom:i.bottom,i.left=void 0!==t.left?t.left:i.left}}}),r.utils.inheritOptions(b,t),r.utils.initOptions(b),b},r.models.sankey=function(){"use strict";var t={},e=24,n=8,i=[1,1],a=[],o=[],s=!0,u=function(t){a.forEach(function(t){t.sourceLinks=[],t.targetLinks=[]}),o.forEach(function(t){var e=t.source,n=t.target;"number"==typeof e&&(e=t.source=a[t.source]),"number"==typeof n&&(n=t.target=a[t.target]),e.sourceLinks.push(t),n.targetLinks.push(t)}),a.forEach(function(t){t.value=Math.max(d3.sum(t.sourceLinks,h),d3.sum(t.targetLinks,h))}),function(){var t,n=a,r=0;for(;n.length&&r<a.length;)t=[],n.forEach(function(n){n.x=r,n.dx=e,n.sourceLinks.forEach(function(e){t.indexOf(e.target)<0&&t.push(e.target)})}),n=t,++r;s&&function(t){a.forEach(function(e){e.sourceLinks.length||(e.x=t-1)})}(r);!function(t){a.forEach(function(e){e.x*=t})}((i[0]-e)/(r-1))}(),function(t){var e=d3.nest().key(function(t){return t.x}).sortKeys(d3.ascending).entries(a).map(function(t){return t.values});(function(){var t=d3.min(e,function(t){return(i[1]-(t.length-1)*n)/d3.sum(t,h)});e.forEach(function(e){e.forEach(function(e,n){e.y=n,e.dy=e.value*t})}),o.forEach(function(e){e.dy=e.value*t})})(),l(),d();for(var r=1;t>0;--t)u(r*=.99),l(),d(),s(r),l(),d();function s(t){function n(t){return(t.source.y+t.sy+t.dy/2)*t.value}e.forEach(function(e,r){e.forEach(function(e){if(e.targetLinks.length){var r=d3.sum(e.targetLinks,n)/d3.sum(e.targetLinks,h);e.y+=(r-c(e))*t}})})}function u(t){function n(t){return(t.target.y+t.ty+t.dy/2)*t.value}e.slice().reverse().forEach(function(e){e.forEach(function(e){if(e.sourceLinks.length){var r=d3.sum(e.sourceLinks,n)/d3.sum(e.sourceLinks,h);e.y+=(r-c(e))*t}})})}function l(){e.forEach(function(t){var e,r,a,o=0,s=t.length;for(t.sort(f),a=0;a<s;++a)e=t[a],(r=o-e.y)>0&&(e.y+=r),o=e.y+e.dy+n;if((r=o-n-i[1])>0)for(o=e.y-=r,a=s-2;a>=0;--a)e=t[a],(r=e.y+e.dy+n-o)>0&&(e.y-=r),o=e.y})}function f(t,e){return t.y-e.y}}(t)},l=function(){var t=.5;function e(e){var n=e.source.x+e.source.dx,r=e.target.x,i=d3.interpolateNumber(n,r),a=i(t),o=i(1-t),s=e.source.y+e.sy+e.dy/2,u=e.target.y+e.ty+e.dy/2;return"M"+n+","+s+"C"+a+","+s+" "+o+","+u+" "+r+","+u}return e.curvature=function(n){return arguments.length?(t=+n,e):t},e},c=function(t){return t.y+t.dy/2};function d(){function t(t,e){return t.source.y-e.source.y}function e(t,e){return t.target.y-e.target.y}a.forEach(function(n){n.sourceLinks.sort(e),n.targetLinks.sort(t)}),a.forEach(function(t){var e=0,n=0;t.sourceLinks.forEach(function(t){t.sy=e,e+=t.dy}),t.targetLinks.forEach(function(t){t.ty=n,n+=t.dy})})}function h(t){return t.value}return t.options=r.utils.optionsFunc.bind(t),t._options=Object.create({},{nodeWidth:{get:function(){return e},set:function(t){e=+t}},nodePadding:{get:function(){return n},set:function(t){n=t}},nodes:{get:function(){return a},set:function(t){a=t}},links:{get:function(){return o},set:function(t){o=t}},size:{get:function(){return i},set:function(t){i=t}},sinksRight:{get:function(){return s},set:function(t){s=t}},layout:{get:function(){u(32)},set:function(t){u(t)}},relayout:{get:function(){d()},set:function(t){}},center:{get:function(){return c()},set:function(t){"function"==typeof t&&(c=t)}},link:{get:function(){return l()},set:function(t){return"function"==typeof t&&(l=t),l()}}}),r.utils.initOptions(t),t},r.models.sankeyChart=function(){"use strict";var t={top:5,right:0,bottom:5,left:0},e=r.models.sankey(),n=600,i=400,a=36,o=40,s="units",u=void 0,l=d3.format(",.0f"),c=function(t){return l(t)+" "+s},d=d3.scale.category20(),h=function(t){return t.source.name+" → "+t.target.name+"\n"+c(t.value)},f=function(t){return t.color=d(t.name.replace(/ .*/,""))},m=function(t){return d3.rgb(t.color).darker(2)},p=function(t){return t.name+"\n"+c(t.value)},g=function(t,e){t.append("text").attr("x",0).attr("y",0).attr("class","nvd3-sankey-chart-error").attr("text-anchor","middle").text(e)};function v(t){return t.each(function(r){var s={nodes:[{node:1,name:"Test 1"},{node:2,name:"Test 2"},{node:3,name:"Test 3"},{node:4,name:"Test 4"},{node:5,name:"Test 5"},{node:6,name:"Test 6"}],links:[{source:0,target:1,value:2295},{source:0,target:5,value:1199},{source:1,target:2,value:1119},{source:1,target:5,value:1176},{source:2,target:3,value:487},{source:2,target:5,value:632},{source:3,target:4,value:301},{source:3,target:5,value:186}]},l=!1,c=!1;if(("object"==typeof r.nodes&&r.nodes.length)>=0&&("object"==typeof r.links&&r.links.length)>=0&&(l=!0),r.nodes&&r.nodes.length>0&&r.links&&r.links.length>0&&(c=!0),!l)return console.error("NVD3 Sankey chart error:","invalid data format for",r),console.info("Valid data format is: ",s,JSON.stringify(s)),g(t,"Error loading chart, data is invalid"),!1;if(!c)return g(t,"No data available"),!1;var d=t.append("svg").attr("width",n).attr("height",i).append("g").attr("class","nvd3 nv-wrap nv-sankeyChart");e.nodeWidth(a).nodePadding(o).size([n,i]);var v=e.link();e.nodes(r.nodes).links(r.links).layout(32).center(u);var _=d.append("g").selectAll(".link").data(r.links).enter().append("path").attr("class","link").attr("d",v).style("stroke-width",function(t){return Math.max(1,t.dy)}).sort(function(t,e){return e.dy-t.dy});_.append("title").text(h);var y=d.append("g").selectAll(".node").data(r.nodes).enter().append("g").attr("class","node").attr("transform",function(t){return"translate("+t.x+","+t.y+")"}).call(d3.behavior.drag().origin(function(t){return t}).on("dragstart",function(){this.parentNode.appendChild(this)}).on("drag",function(t){d3.select(this).attr("transform","translate("+t.x+","+(t.y=Math.max(0,Math.min(i-t.dy,d3.event.y)))+")"),e.relayout(),_.attr("d",v)}));y.append("rect").attr("height",function(t){return t.dy}).attr("width",e.nodeWidth()).style("fill",f).style("stroke",m).append("title").text(p),y.append("text").attr("x",-6).attr("y",function(t){return t.dy/2}).attr("dy",".35em").attr("text-anchor","end").attr("transform",null).text(function(t){return t.name}).filter(function(t){return t.x<n/2}).attr("x",6+e.nodeWidth()).attr("text-anchor","start")}),v}return v.options=r.utils.optionsFunc.bind(v),v._options=Object.create({},{units:{get:function(){return s},set:function(t){s=t}},width:{get:function(){return n},set:function(t){n=t}},height:{get:function(){return i},set:function(t){i=t}},format:{get:function(){return c},set:function(t){c=t}},linkTitle:{get:function(){return h},set:function(t){h=t}},nodeWidth:{get:function(){return a},set:function(t){a=t}},nodePadding:{get:function(){return o},set:function(t){o=t}},center:{get:function(){return u},set:function(t){u=t}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},nodeStyle:{get:function(){return{}},set:function(t){f=void 0!==t.fillColor?t.fillColor:f,m=void 0!==t.strokeColor?t.strokeColor:m,p=void 0!==t.title?t.title:p}}}),r.utils.initOptions(v),v},r.models.scatter=function(){"use strict";var t,e,n,i,a,o,s,u,l={top:0,right:0,bottom:0,left:0},c=null,d=null,h=r.utils.defaultColor(),f=null,m=Math.floor(1e5*Math.random()),p=null,g=d3.scale.linear(),v=d3.scale.linear(),_=d3.scale.linear(),y=function(t){return t.x},b=function(t){return t.y},M=function(t){return t.size||1},w=function(t){return t.shape||"circle"},x=[],k=[],L=[],S=!0,Y=function(t){return!t.notActive},T=!1,D=.1,C=!1,E=!0,O=!1,A=function(){return 25},j=null,H=null,N=null,P=null,F=null,V=null,I=!1,W=d3.dispatch("elementClick","elementDblClick","elementMouseover","elementMouseout","renderEnd"),R=!0,z=250,B=300,G=!1,U=!1,$=r.utils.renderWatch(W,z),q=[16,256],J={};function Z(t){var e;e=t[0].series+":"+t[1],delete J[e]}function X(t){var e,n,r,i=function(t){var e;return e=t[0].series+":"+t[1],J[e]=J[e]||{}}(t),a=!1;for(e=1;e<arguments.length;e+=2)n=arguments[e],r=arguments[e+1](t[0],t[1]),i[n]===r&&i.hasOwnProperty(n)||(i[n]=r,a=!0);return a}function K(z){return $.reset(),z.each(function(z){p=d3.select(this);var J=r.utils.availableWidth(c,p,l),Q=r.utils.availableHeight(d,p,l);r.utils.initSVG(p),z.forEach(function(t,e){t.values.forEach(function(t){t.series=e})});var tt="function"==typeof K.yScale().base,et=j&&H&&F?[]:d3.merge(z.map(function(t){return t.values.map(function(t,e){return{x:y(t,e),y:b(t,e),size:M(t,e)}})}));if(g.domain(j||d3.extent(et.map(function(t){return t.x}).concat(x))),T&&z[0]?g.range(N||[(J*D+J)/(2*z[0].values.length),J-J*(1+D)/(2*z[0].values.length)]):g.range(N||[0,J]),tt){var nt=d3.min(et.map(function(t){if(0!==t.y)return t.y}));v.clamp(!0).domain(H||d3.extent(et.map(function(t){return 0!==t.y?t.y:.1*nt}).concat(k))).range(P||[Q,0])}else v.domain(H||d3.extent(et.map(function(t){return t.y}).concat(k))).range(P||[Q,0]);_.domain(F||d3.extent(et.map(function(t){return t.size}).concat(L))).range(V||q),I=g.domain()[0]===g.domain()[1]||v.domain()[0]===v.domain()[1],g.domain()[0]===g.domain()[1]&&(g.domain()[0]?g.domain([g.domain()[0]-.01*g.domain()[0],g.domain()[1]+.01*g.domain()[1]]):g.domain([-1,1])),v.domain()[0]===v.domain()[1]&&(v.domain()[0]?v.domain([v.domain()[0]-.01*v.domain()[0],v.domain()[1]+.01*v.domain()[1]]):v.domain([-1,1])),isNaN(g.domain()[0])&&g.domain([-1,1]),isNaN(v.domain()[0])&&v.domain([-1,1]),t=t||g,e=e||v,n=n||_;var rt=g(1)!==t(1)||v(1)!==e(1)||_(1)!==n(1);o=o||c,s=s||d;var it=o!==c||s!==d,at=(i=i||[])[0]!==g.domain()[0]||i[1]!==g.domain()[1];i=g.domain(),a=a||[],at=at||a[0]!==v.domain()[0]||a[1]!==v.domain()[1],a=v.domain();var ot=p.selectAll("g.nv-wrap.nv-scatter").data([z]),st=ot.enter().append("g").attr("class","nvd3 nv-wrap nv-scatter nv-chart-"+m),ut=st.append("defs"),lt=st.append("g"),ct=ot.select("g");function dt(){if(U=!1,!S)return!1;if(p.selectAll(".nv-point.hover").classed("hover",!1),ot.select(".nv-point-paths").selectAll("path").remove(),!0===R){var t=d3.merge(z.map(function(t,e){return t.values.map(function(t,n){var i=y(t,n),a=b(t,n);return[r.utils.NaNtoZero(g(i))+1e-4*Math.random(),r.utils.NaNtoZero(v(a))+1e-4*Math.random(),e,n,t]}).filter(function(t,e){return Y(t[4],e)})}));if(0==t.length)return!1;t.length<3&&(t.push([g.range()[0]-20,v.range()[0]-20,null,null]),t.push([g.range()[1]+20,v.range()[1]+20,null,null]),t.push([g.range()[0]-20,v.range()[0]+20,null,null]),t.push([g.range()[1]+20,v.range()[1]-20,null,null]));var e=d3.geom.polygon([[-10,-10],[-10,d+10],[c+10,d+10],[c+10,-10]]);t=t.sort(function(t,e){return t[0]-e[0]||t[1]-e[1]});for(var n=0;n<t.length-1;)Math.abs(t[n][0]-t[n+1][0])<1e-4&&Math.abs(t[n][1]-t[n+1][1])<1e-4?t.splice(n+1,1):n++;var i=d3.geom.voronoi(t).map(function(n,r){return 0===n.length?null:{data:e.clip(n),series:t[r][2],point:t[r][3]}}),a=ot.select(".nv-point-paths").selectAll("path").data(i),o=a.enter().append("svg:path").attr("d",function(t){return t&&t.data&&0!==t.data.length?"M"+t.data.join(",")+"Z":"M 0 0"}).attr("id",function(t,e){return"nv-path-"+e}).attr("clip-path",function(t,e){return"url(#nv-clip-"+m+"-"+e+")"});if(O&&o.style("fill",d3.rgb(230,230,230)).style("fill-opacity",.4).style("stroke-opacity",1).style("stroke",d3.rgb(200,200,200)),E){ot.select(".nv-point-clips").selectAll("*").remove();ot.select(".nv-point-clips").selectAll("clipPath").data(t).enter().append("svg:clipPath").attr("id",function(t,e){return"nv-clip-"+m+"-"+e}).append("svg:circle").attr("cx",function(t){return t[0]}).attr("cy",function(t){return t[1]}).attr("r",A)}var s=function(t,e,n){if(U)return 0;var r=z[e.series];if(void 0!==r){var i=r.values[e.point];i.color=h(r,e.series),i.x=y(i),i.y=b(i);var a=p.node().getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop,s=window.pageXOffset||document.documentElement.scrollLeft;n({point:i,series:r,pos:{left:g(y(i,e.point))+a.left+s+l.left+10,top:v(b(i,e.point))+a.top+o+l.top+10},relativePos:[g(y(i,e.point))+l.left,v(b(i,e.point))+l.top],seriesIndex:e.series,pointIndex:e.point,event:d3.event,element:t})}};a.on("click",function(t){s(this,t,W.elementClick)}).on("dblclick",function(t){s(this,t,W.elementDblClick)}).on("mouseover",function(t){s(this,t,W.elementMouseover)}).on("mouseout",function(t,e){s(this,t,W.elementMouseout)})}else ot.select(".nv-groups").selectAll(".nv-group").selectAll(".nv-point").on("click",function(t,e){if(U||!z[t[0].series])return 0;var n=z[t[0].series],r=n.values[e];W.elementClick({point:r,series:n,pos:[g(y(r,e))+l.left,v(b(r,e))+l.top],relativePos:[g(y(r,e))+l.left,v(b(r,e))+l.top],seriesIndex:t[0].series,pointIndex:e,event:d3.event,element:this})}).on("dblclick",function(t,e){if(U||!z[t[0].series])return 0;var n=z[t[0].series],r=n.values[e];W.elementDblClick({point:r,series:n,pos:[g(y(r,e))+l.left,v(b(r,e))+l.top],relativePos:[g(y(r,e))+l.left,v(b(r,e))+l.top],seriesIndex:t[0].series,pointIndex:e})}).on("mouseover",function(t,e){if(U||!z[t[0].series])return 0;var n=z[t[0].series],r=n.values[e];W.elementMouseover({point:r,series:n,pos:[g(y(r,e))+l.left,v(b(r,e))+l.top],relativePos:[g(y(r,e))+l.left,v(b(r,e))+l.top],seriesIndex:t[0].series,pointIndex:e,color:h(t[0],e)})}).on("mouseout",function(t,e){if(U||!z[t[0].series])return 0;var n=z[t[0].series],r=n.values[e];W.elementMouseout({point:r,series:n,pos:[g(y(r,e))+l.left,v(b(r,e))+l.top],relativePos:[g(y(r,e))+l.left,v(b(r,e))+l.top],seriesIndex:t[0].series,pointIndex:e,color:h(t[0],e)})})}ot.classed("nv-single-point",I),lt.append("g").attr("class","nv-groups"),lt.append("g").attr("class","nv-point-paths"),st.append("g").attr("class","nv-point-clips"),ot.attr("transform","translate("+l.left+","+l.top+")"),ut.append("clipPath").attr("id","nv-edge-clip-"+m).append("rect").attr("transform","translate( -10, -10)"),ot.select("#nv-edge-clip-"+m+" rect").attr("width",J+20).attr("height",Q>0?Q+20:0),ct.attr("clip-path",C?"url(#nv-edge-clip-"+m+")":""),U=!0;var ht=ot.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key});ht.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),ht.exit().remove(),ht.attr("class",function(t,e){return(t.classed||"")+" nv-group nv-series-"+e}).classed("nv-noninteractive",!S).classed("hover",function(t){return t.hover}),ht.watchTransition($,"scatter: groups").style("fill",function(t,e){return h(t,e)}).style("stroke",function(t,e){return t.pointBorderColor||f||h(t,e)}).style("stroke-opacity",1).style("fill-opacity",.5);var ft=ht.selectAll("path.nv-point").data(function(t){return t.values.map(function(t,e){return[t,e]}).filter(function(t,e){return Y(t[0],e)})});if(ft.enter().append("path").attr("class",function(t){return"nv-point nv-point-"+t[1]}).style("fill",function(t){return t.color}).style("stroke",function(t){return t.color}).attr("transform",function(n){return"translate("+r.utils.NaNtoZero(t(y(n[0],n[1])))+","+r.utils.NaNtoZero(e(b(n[0],n[1])))+")"}).attr("d",r.utils.symbol().type(function(t){return w(t[0])}).size(function(t){return _(M(t[0],t[1]))})),ft.exit().each(Z).remove(),ht.exit().selectAll("path.nv-point").watchTransition($,"scatter exit").attr("transform",function(t){return"translate("+r.utils.NaNtoZero(g(y(t[0],t[1])))+","+r.utils.NaNtoZero(v(b(t[0],t[1])))+")"}).remove(),ft.filter(function(t){return X(t,"x",y,"y",b)||rt||it||at}).watchTransition($,"scatter points").attr("transform",function(t){return"translate("+r.utils.NaNtoZero(g(y(t[0],t[1])))+","+r.utils.NaNtoZero(v(b(t[0],t[1])))+")"}),ft.filter(function(t){return X(t,"shape",w,"size",M)||rt||it||at}).watchTransition($,"scatter points").attr("d",r.utils.symbol().type(function(t){return w(t[0])}).size(function(t){return _(M(t[0],t[1]))})),G){var mt=ht.selectAll(".nv-label").data(function(t){return t.values.map(function(t,e){return[t,e]}).filter(function(t,e){return Y(t[0],e)})});mt.enter().append("text").style("fill",function(t,e){return t.color}).style("stroke-opacity",0).style("fill-opacity",1).attr("transform",function(n){return"translate("+(r.utils.NaNtoZero(t(y(n[0],n[1])))+Math.sqrt(_(M(n[0],n[1]))/Math.PI)+2)+","+r.utils.NaNtoZero(e(b(n[0],n[1])))+")"}).text(function(t,e){return t[0].label}),mt.exit().remove(),ht.exit().selectAll("path.nv-label").watchTransition($,"scatter exit").attr("transform",function(t){return"translate("+(r.utils.NaNtoZero(g(y(t[0],t[1])))+Math.sqrt(_(M(t[0],t[1]))/Math.PI)+2)+","+r.utils.NaNtoZero(v(b(t[0],t[1])))+")"}).remove(),mt.each(function(t){d3.select(this).classed("nv-label",!0).classed("nv-label-"+t[1],!1).classed("hover",!1)}),mt.watchTransition($,"scatter labels").text(function(t,e){return t[0].label}).attr("transform",function(t){return"translate("+(r.utils.NaNtoZero(g(y(t[0],t[1])))+Math.sqrt(_(M(t[0],t[1]))/Math.PI)+2)+","+r.utils.NaNtoZero(v(b(t[0],t[1])))+")"})}B?(clearTimeout(u),u=setTimeout(dt,B)):dt(),t=g.copy(),e=v.copy(),n=_.copy(),o=c,s=d}),$.renderEnd("scatter immediate"),K}return K.dispatch=W,K.options=r.utils.optionsFunc.bind(K),K._calls=new function(){this.clearHighlights=function(){return r.dom.write(function(){p.selectAll(".nv-point.hover").classed("hover",!1)}),null},this.highlightPoint=function(t,e,n){r.dom.write(function(){p.select(".nv-groups").selectAll(".nv-series-"+t).selectAll(".nv-point-"+e).classed("hover",n)})}},W.on("elementMouseover.point",function(t){S&&K._calls.highlightPoint(t.seriesIndex,t.pointIndex,!0)}),W.on("elementMouseout.point",function(t){S&&K._calls.highlightPoint(t.seriesIndex,t.pointIndex,!1)}),K._options=Object.create({},{width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return d},set:function(t){d=t}},xScale:{get:function(){return g},set:function(t){g=t}},yScale:{get:function(){return v},set:function(t){v=t}},pointScale:{get:function(){return _},set:function(t){_=t}},xDomain:{get:function(){return j},set:function(t){j=t}},yDomain:{get:function(){return H},set:function(t){H=t}},pointDomain:{get:function(){return F},set:function(t){F=t}},xRange:{get:function(){return N},set:function(t){N=t}},yRange:{get:function(){return P},set:function(t){P=t}},pointRange:{get:function(){return V},set:function(t){V=t}},forceX:{get:function(){return x},set:function(t){x=t}},forceY:{get:function(){return k},set:function(t){k=t}},forcePoint:{get:function(){return L},set:function(t){L=t}},interactive:{get:function(){return S},set:function(t){S=t}},pointActive:{get:function(){return Y},set:function(t){Y=t}},padDataOuter:{get:function(){return D},set:function(t){D=t}},padData:{get:function(){return T},set:function(t){T=t}},clipEdge:{get:function(){return C},set:function(t){C=t}},clipVoronoi:{get:function(){return E},set:function(t){E=t}},clipRadius:{get:function(){return A},set:function(t){A=t}},showVoronoi:{get:function(){return O},set:function(t){O=t}},id:{get:function(){return m},set:function(t){m=t}},interactiveUpdateDelay:{get:function(){return B},set:function(t){B=t}},showLabels:{get:function(){return G},set:function(t){G=t}},pointBorderColor:{get:function(){return f},set:function(t){f=t}},x:{get:function(){return y},set:function(t){y=d3.functor(t)}},y:{get:function(){return b},set:function(t){b=d3.functor(t)}},pointSize:{get:function(){return M},set:function(t){M=d3.functor(t)}},pointShape:{get:function(){return w},set:function(t){w=d3.functor(t)}},margin:{get:function(){return l},set:function(t){l.top=void 0!==t.top?t.top:l.top,l.right=void 0!==t.right?t.right:l.right,l.bottom=void 0!==t.bottom?t.bottom:l.bottom,l.left=void 0!==t.left?t.left:l.left}},duration:{get:function(){return z},set:function(t){z=t,$.reset(z)}},color:{get:function(){return h},set:function(t){h=r.utils.getColor(t)}},useVoronoi:{get:function(){return R},set:function(t){!1===(R=t)&&(E=!1)}}}),r.utils.initOptions(K),K},r.models.scatterChart=function(){"use strict";var t=r.models.scatter(),e=r.models.axis(),n=r.models.axis(),i=r.models.legend(),a=r.models.distribution(),o=r.models.distribution(),s=r.models.tooltip(),u={top:30,right:20,bottom:50,left:75},l=null,c=null,d=null,h=null,f=r.utils.defaultColor(),m=t.xScale(),p=t.yScale(),g=!1,v=!1,_=!0,y=!0,b=!0,M=!1,w=r.utils.state(),x=null,k=d3.dispatch("stateChange","changeState","renderEnd"),L=null,S=250,Y=!1;t.xScale(m).yScale(p),e.orient("bottom").tickPadding(10),n.orient(M?"right":"left").tickPadding(10),a.axis("x"),o.axis("y"),s.headerFormatter(function(t,n){return e.tickFormat()(t,n)}).valueFormatter(function(t,e){return n.tickFormat()(t,e)});var T=r.utils.renderWatch(k,S),D=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},C=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};function E(L){return T.reset(),T.models(t),y&&T.models(e),b&&T.models(n),g&&T.models(a),v&&T.models(o),L.each(function(L){h=d3.select(this),r.utils.initSVG(h);var O,A=r.utils.availableWidth(c,h,u),j=r.utils.availableHeight(d,h,u);if(E.update=function(){0===S?h.call(E):h.transition().duration(S).call(E)},E.container=this,w.setter(C(L),E.update).getter(D(L)).update(),w.disabled=L.map(function(t){return!!t.disabled}),!x)for(O in x={},w)w[O]instanceof Array?x[O]=w[O].slice(0):x[O]=w[O];if(!(L&&L.length&&L.filter(function(t){return t.values.length}).length))return r.utils.noData(E,h),T.renderEnd("scatter immediate"),E;h.selectAll(".nv-noData").remove(),m=t.xScale(),p=t.yScale();var H=h.selectAll("g.nv-wrap.nv-scatterChart").data([L]),N=H.enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+t.id()).append("g"),P=H.select("g");if(N.append("rect").attr("class","nvd3 nv-background").style("pointer-events","none"),N.append("g").attr("class","nv-x nv-axis"),N.append("g").attr("class","nv-y nv-axis"),N.append("g").attr("class","nv-scatterWrap"),N.append("g").attr("class","nv-regressionLinesWrap"),N.append("g").attr("class","nv-distWrap"),N.append("g").attr("class","nv-legendWrap"),M&&P.select(".nv-y.nv-axis").attr("transform","translate("+A+",0)"),_){var F=A;i.width(F),H.select(".nv-legendWrap").datum(L).call(i),l||i.height()===u.top||(u.top=i.height(),j=r.utils.availableHeight(d,h,u)),H.select(".nv-legendWrap").attr("transform","translate(0,"+-u.top+")")}else P.select(".nv-legendWrap").selectAll("*").remove();H.attr("transform","translate("+u.left+","+u.top+")"),t.width(A).height(j).color(L.map(function(t,e){return t.color=t.color||f(t,e),t.color}).filter(function(t,e){return!L[e].disabled})).showLabels(Y),H.select(".nv-scatterWrap").datum(L.filter(function(t){return!t.disabled})).call(t),H.select(".nv-regressionLinesWrap").attr("clip-path","url(#nv-edge-clip-"+t.id()+")");var V=H.select(".nv-regressionLinesWrap").selectAll(".nv-regLines").data(function(t){return t});V.enter().append("g").attr("class","nv-regLines");var I=V.selectAll(".nv-regLine").data(function(t){return[t]});I.enter().append("line").attr("class","nv-regLine").style("stroke-opacity",0),I.filter(function(t){return t.intercept&&t.slope}).watchTransition(T,"scatterPlusLineChart: regline").attr("x1",m.range()[0]).attr("x2",m.range()[1]).attr("y1",function(t,e){return p(m.domain()[0]*t.slope+t.intercept)}).attr("y2",function(t,e){return p(m.domain()[1]*t.slope+t.intercept)}).style("stroke",function(t,e,n){return f(t,n)}).style("stroke-opacity",function(t,e){return t.disabled||void 0===t.slope||void 0===t.intercept?0:1}),y&&(e.scale(m)._ticks(r.utils.calcTicksX(A/100,L)).tickSize(-j,0),P.select(".nv-x.nv-axis").attr("transform","translate(0,"+p.range()[0]+")").call(e)),b&&(n.scale(p)._ticks(r.utils.calcTicksY(j/36,L)).tickSize(-A,0),P.select(".nv-y.nv-axis").call(n)),a.getData(t.x()).scale(m).width(A).color(L.map(function(t,e){return t.color||f(t,e)}).filter(function(t,e){return!L[e].disabled})),N.select(".nv-distWrap").append("g").attr("class","nv-distributionX"),P.select(".nv-distributionX").attr("transform","translate(0,"+p.range()[0]+")").datum(L.filter(function(t){return!t.disabled})).call(a).style("opacity",function(){return g?"1":"1e-6"}).watchTransition(T,"scatterPlusLineChart").style("opacity",function(){return g?"1":"1e-6"}),o.getData(t.y()).scale(p).width(j).color(L.map(function(t,e){return t.color||f(t,e)}).filter(function(t,e){return!L[e].disabled})),N.select(".nv-distWrap").append("g").attr("class","nv-distributionY"),P.select(".nv-distributionY").attr("transform","translate("+(M?A:-o.size())+",0)").datum(L.filter(function(t){return!t.disabled})).call(o).style("opacity",function(){return v?"1":"1e-6"}).watchTransition(T,"scatterPlusLineChart").style("opacity",function(){return v?"1":"1e-6"}),i.dispatch.on("stateChange",function(t){for(var e in t)w[e]=t[e];k.stateChange(w),E.update()}),k.on("changeState",function(t){void 0!==t.disabled&&(L.forEach(function(e,n){e.disabled=t.disabled[n]}),w.disabled=t.disabled),E.update()}),t.dispatch.on("elementMouseout.tooltip",function(e){s.hidden(!0),h.select(".nv-chart-"+t.id()+" .nv-series-"+e.seriesIndex+" .nv-distx-"+e.pointIndex).attr("y1",0),h.select(".nv-chart-"+t.id()+" .nv-series-"+e.seriesIndex+" .nv-disty-"+e.pointIndex).attr("x2",o.size())}),t.dispatch.on("elementMouseover.tooltip",function(t){h.select(".nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",t.relativePos[1]-j),h.select(".nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",t.relativePos[0]+a.size()),s.data(t).hidden(!1)}),m.copy(),p.copy()}),T.renderEnd("scatter with line immediate"),E}return E.dispatch=k,E.scatter=t,E.legend=i,E.xAxis=e,E.yAxis=n,E.distX=a,E.distY=o,E.tooltip=s,E.options=r.utils.optionsFunc.bind(E),E._options=Object.create({},{width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return d},set:function(t){d=t}},container:{get:function(){return h},set:function(t){h=t}},showDistX:{get:function(){return g},set:function(t){g=t}},showDistY:{get:function(){return v},set:function(t){v=t}},showLegend:{get:function(){return _},set:function(t){_=t}},showXAxis:{get:function(){return y},set:function(t){y=t}},showYAxis:{get:function(){return b},set:function(t){b=t}},defaultState:{get:function(){return x},set:function(t){x=t}},noData:{get:function(){return L},set:function(t){L=t}},duration:{get:function(){return S},set:function(t){S=t}},showLabels:{get:function(){return Y},set:function(t){Y=t}},margin:{get:function(){return u},set:function(t){void 0!==t.top&&(u.top=t.top,l=t.top),u.right=void 0!==t.right?t.right:u.right,u.bottom=void 0!==t.bottom?t.bottom:u.bottom,u.left=void 0!==t.left?t.left:u.left}},rightAlignYAxis:{get:function(){return M},set:function(t){M=t,n.orient(t?"right":"left")}},color:{get:function(){return f},set:function(t){f=r.utils.getColor(t),i.color(f),a.color(f),o.color(f)}}}),r.utils.inheritOptions(E,t),r.utils.initOptions(E),E},r.models.sparkline=function(){"use strict";var t,e,n,i,a={top:2,right:0,bottom:2,left:0},o=400,s=32,u=null,l=!0,c=d3.scale.linear(),d=d3.scale.linear(),h=function(t){return t.x},f=function(t){return t.y},m=r.utils.getColor(["#000"]),p=!0,g=!0,v=d3.dispatch("renderEnd"),_=r.utils.renderWatch(v);function y(l){return _.reset(),l.each(function(l){var v=o-a.left-a.right,_=s-a.top-a.bottom;u=d3.select(this),r.utils.initSVG(u),c.domain(t||d3.extent(l,h)).range(n||[0,v]),d.domain(e||d3.extent(l,f)).range(i||[_,0]);var y=u.selectAll("g.nv-wrap.nv-sparkline").data([l]);y.enter().append("g").attr("class","nvd3 nv-wrap nv-sparkline").append("g"),y.select("g");y.attr("transform","translate("+a.left+","+a.top+")");var b=y.selectAll("path").data(function(t){return[t]});b.enter().append("path"),b.exit().remove(),b.style("stroke",function(t,e){return t.color||m(t,e)}).attr("d",d3.svg.line().x(function(t,e){return c(h(t,e))}).y(function(t,e){return d(f(t,e))}));var M=y.selectAll("circle.nv-point").data(function(t){var e=t.map(function(t,e){return f(t,e)});function n(e){if(-1!=e){var n=t[e];return n.pointIndex=e,n}return null}var r=n(e.lastIndexOf(d.domain()[1])),i=n(e.indexOf(d.domain()[0])),a=n(e.length-1);return[p?i:null,p?r:null,g?a:null].filter(function(t){return null!=t})});M.enter().append("circle"),M.exit().remove(),M.attr("cx",function(t,e){return c(h(t,t.pointIndex))}).attr("cy",function(t,e){return d(f(t,t.pointIndex))}).attr("r",2).attr("class",function(t,e){return h(t,t.pointIndex)==c.domain()[1]?"nv-point nv-currentValue":f(t,t.pointIndex)==d.domain()[0]?"nv-point nv-minValue":"nv-point nv-maxValue"})}),_.renderEnd("sparkline immediate"),y}return y.options=r.utils.optionsFunc.bind(y),y._options=Object.create({},{width:{get:function(){return o},set:function(t){o=t}},height:{get:function(){return s},set:function(t){s=t}},xDomain:{get:function(){return t},set:function(e){t=e}},yDomain:{get:function(){return e},set:function(t){e=t}},xRange:{get:function(){return n},set:function(t){n=t}},yRange:{get:function(){return i},set:function(t){i=t}},xScale:{get:function(){return c},set:function(t){c=t}},yScale:{get:function(){return d},set:function(t){d=t}},animate:{get:function(){return l},set:function(t){l=t}},showMinMaxPoints:{get:function(){return p},set:function(t){p=t}},showCurrentPoint:{get:function(){return g},set:function(t){g=t}},x:{get:function(){return h},set:function(t){h=d3.functor(t)}},y:{get:function(){return f},set:function(t){f=d3.functor(t)}},margin:{get:function(){return a},set:function(t){a.top=void 0!==t.top?t.top:a.top,a.right=void 0!==t.right?t.right:a.right,a.bottom=void 0!==t.bottom?t.bottom:a.bottom,a.left=void 0!==t.left?t.left:a.left}},color:{get:function(){return m},set:function(t){m=r.utils.getColor(t)}}}),y.dispatch=v,r.utils.initOptions(y),y},r.models.sparklinePlus=function(){"use strict";var t,e,n=r.models.sparkline(),i={top:15,right:100,bottom:10,left:50},a=null,o=null,s=[],u=!1,l=d3.format(",r"),c=d3.format(",.2f"),d=!0,h=!0,f=!1,m=null,p=d3.dispatch("renderEnd"),g=r.utils.renderWatch(p);function v(m){return g.reset(),g.models(n),m.each(function(m){var p=d3.select(this);r.utils.initSVG(p);var g=r.utils.availableWidth(a,p,i),_=r.utils.availableHeight(o,p,i);if(v.update=function(){p.call(v)},v.container=this,!m||!m.length)return r.utils.noData(v,p),v;p.selectAll(".nv-noData").remove();var y=n.y()(m[m.length-1],m.length-1);t=n.xScale(),e=n.yScale();var b=p.selectAll("g.nv-wrap.nv-sparklineplus").data([m]),M=b.enter().append("g").attr("class","nvd3 nv-wrap nv-sparklineplus").append("g"),w=b.select("g");M.append("g").attr("class","nv-sparklineWrap"),M.append("g").attr("class","nv-valueWrap"),M.append("g").attr("class","nv-hoverArea"),b.attr("transform","translate("+i.left+","+i.top+")");var x=w.select(".nv-sparklineWrap");if(n.width(g).height(_),x.call(n),d){var k=w.select(".nv-valueWrap").selectAll(".nv-currentValue").data([y]);k.enter().append("text").attr("class","nv-currentValue").attr("dx",f?-8:8).attr("dy",".9em").style("text-anchor",f?"end":"start"),k.attr("x",g+(f?i.right:0)).attr("y",h?function(t){return e(t)}:0).style("fill",n.color()(m[m.length-1],m.length-1)).text(c(y))}function L(){if(!u){var e=w.selectAll(".nv-hoverValue").data(s),r=e.enter().append("g").attr("class","nv-hoverValue").style("stroke-opacity",0).style("fill-opacity",0);e.exit().transition().duration(250).style("stroke-opacity",0).style("fill-opacity",0).remove(),e.attr("transform",function(e){return"translate("+t(n.x()(m[e],e))+",0)"}).transition().duration(250).style("stroke-opacity",1).style("fill-opacity",1),s.length&&(r.append("line").attr("x1",0).attr("y1",-i.top).attr("x2",0).attr("y2",_),r.append("text").attr("class","nv-xValue").attr("x",-6).attr("y",-i.top).attr("text-anchor","end").attr("dy",".9em"),w.select(".nv-hoverValue .nv-xValue").text(l(n.x()(m[s[0]],s[0]))),r.append("text").attr("class","nv-yValue").attr("x",6).attr("y",-i.top).attr("text-anchor","start").attr("dy",".9em"),w.select(".nv-hoverValue .nv-yValue").text(c(n.y()(m[s[0]],s[0]))))}}M.select(".nv-hoverArea").append("rect").on("mousemove",function(){if(u)return;var e=d3.mouse(this)[0]-i.left;s=[function(t,e){for(var r=Math.abs(n.x()(t[0],0)-e),i=0,a=0;a<t.length;a++)Math.abs(n.x()(t[a],a)-e)<r&&(r=Math.abs(n.x()(t[a],a)-e),i=a);return i}(m,Math.round(t.invert(e)))],L()}).on("click",function(){u=!u}).on("mouseout",function(){s=[],L()}),w.select(".nv-hoverArea rect").attr("transform",function(t){return"translate("+-i.left+","+-i.top+")"}).attr("width",g+i.left+i.right).attr("height",_+i.top)}),g.renderEnd("sparklinePlus immediate"),v}return v.dispatch=p,v.sparkline=n,v.options=r.utils.optionsFunc.bind(v),v._options=Object.create({},{width:{get:function(){return a},set:function(t){a=t}},height:{get:function(){return o},set:function(t){o=t}},xTickFormat:{get:function(){return l},set:function(t){l=t}},yTickFormat:{get:function(){return c},set:function(t){c=t}},showLastValue:{get:function(){return d},set:function(t){d=t}},alignValue:{get:function(){return h},set:function(t){h=t}},rightAlignValue:{get:function(){return f},set:function(t){f=t}},noData:{get:function(){return m},set:function(t){m=t}},margin:{get:function(){return i},set:function(t){i.top=void 0!==t.top?t.top:i.top,i.right=void 0!==t.right?t.right:i.right,i.bottom=void 0!==t.bottom?t.bottom:i.bottom,i.left=void 0!==t.left?t.left:i.left}}}),r.utils.inheritOptions(v,n),r.utils.initOptions(v),v},r.models.stackedArea=function(){"use strict";var t,e,n={top:0,right:0,bottom:0,left:0},i=960,a=500,o=r.utils.defaultColor(),s=Math.floor(1e5*Math.random()),u=null,l=function(t){return t.x},c=function(t){return t.y},d=function(t,e){return!isNaN(c(t,e))&&null!==c(t,e)},h="stack",f="zero",m="default",p="linear",g=!1,v=r.models.scatter(),_=250,y=function(t,e,n){t.display={y:n,y0:e}},b=function(t){return e(t.display.y+t.display.y0)},M=d3.dispatch("areaClick","areaMouseover","areaMouseout","renderEnd","elementClick","elementMouseover","elementMouseout");v.pointSize(2.2).pointDomain([2.2,2.2]);var w=r.utils.renderWatch(M,_);function x(h){return w.reset(),w.models(v),h.each(function(h){var _=i-n.left-n.right,k=a-n.top-n.bottom;u=d3.select(this),r.utils.initSVG(u),t=v.xScale(),e=v.yScale();var L=h;h.forEach(function(t,e){t.seriesIndex=e,t.values=t.values.map(function(t,n){return t.index=n,t.seriesIndex=e,t})});var S=h.filter(function(t){return!t.disabled});h=d3.layout.stack().order(m).offset(f).values(function(t){return t.values}).x(l).y(c).out(y)(S);var Y=u.selectAll("g.nv-wrap.nv-stackedarea").data([h]),T=Y.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedarea"),D=T.append("defs"),C=T.append("g"),E=Y.select("g");C.append("g").attr("class","nv-areaWrap"),C.append("g").attr("class","nv-scatterWrap"),Y.attr("transform","translate("+n.left+","+n.top+")"),0==v.forceY().length&&v.forceY().push(0),v.width(_).height(k).x(l).y(function(t){if(void 0!==t.display)return t.display.y+t.display.y0}).color(h.map(function(t,e){return t.color=t.color||o(t,t.seriesIndex),t.color})),E.select(".nv-scatterWrap").datum(h).call(v),D.append("clipPath").attr("id","nv-edge-clip-"+s).append("rect"),Y.select("#nv-edge-clip-"+s+" rect").attr("width",_).attr("height",k),E.attr("clip-path",g?"url(#nv-edge-clip-"+s+")":"");var O=d3.svg.area().defined(d).x(function(e,n){return t(l(e,n))}).y0(function(t){return e(t.display.y0)}).y1(b).interpolate(p),A=d3.svg.area().defined(d).x(function(e,n){return t(l(e,n))}).y0(function(t){return e(t.display.y0)}).y1(function(t){return e(t.display.y0)}),j=E.select(".nv-areaWrap").selectAll("path.nv-area").data(function(t){return t});j.enter().append("path").attr("class",function(t,e){return"nv-area nv-area-"+e}).attr("d",function(t,e){return A(t.values,t.seriesIndex)}).on("mouseover",function(t,e){d3.select(this).classed("hover",!0),M.areaMouseover({point:t,series:t.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:t.seriesIndex})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),M.areaMouseout({point:t,series:t.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:t.seriesIndex})}).on("click",function(t,e){d3.select(this).classed("hover",!1),M.areaClick({point:t,series:t.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:t.seriesIndex})}),j.exit().remove(),j.style("fill",function(t,e){return t.color||o(t,t.seriesIndex)}).style("stroke",function(t,e){return t.color||o(t,t.seriesIndex)}),j.watchTransition(w,"stackedArea path").attr("d",function(t,e){return O(t.values,e)}),v.dispatch.on("elementMouseover.area",function(t){E.select(".nv-chart-"+s+" .nv-area-"+t.seriesIndex).classed("hover",!0)}),v.dispatch.on("elementMouseout.area",function(t){E.select(".nv-chart-"+s+" .nv-area-"+t.seriesIndex).classed("hover",!1)}),x.d3_stackedOffset_stackPercent=function(t){var e,n,r,i=t.length,a=t[0].length,o=[];for(n=0;n<a;++n){for(e=0,r=0;e<L.length;e++)r+=c(L[e].values[n]);if(r)for(e=0;e<i;e++)t[e][n][1]/=r;else for(e=0;e<i;e++)t[e][n][1]=0}for(n=0;n<a;++n)o[n]=0;return o}}),w.renderEnd("stackedArea immediate"),x}return x.dispatch=M,x.scatter=v,v.dispatch.on("elementClick",function(){M.elementClick.apply(this,arguments)}),v.dispatch.on("elementMouseover",function(){M.elementMouseover.apply(this,arguments)}),v.dispatch.on("elementMouseout",function(){M.elementMouseout.apply(this,arguments)}),x.interpolate=function(t){return arguments.length?(p=t,x):p},x.duration=function(t){return arguments.length?(_=t,w.reset(_),v.duration(_),x):_},x.dispatch=M,x.scatter=v,x.options=r.utils.optionsFunc.bind(x),x._options=Object.create({},{width:{get:function(){return i},set:function(t){i=t}},height:{get:function(){return a},set:function(t){a=t}},defined:{get:function(){return d},set:function(t){d=t}},clipEdge:{get:function(){return g},set:function(t){g=t}},offset:{get:function(){return f},set:function(t){f=t}},order:{get:function(){return m},set:function(t){m=t}},interpolate:{get:function(){return p},set:function(t){p=t}},x:{get:function(){return l},set:function(t){l=d3.functor(t)}},y:{get:function(){return c},set:function(t){c=d3.functor(t)}},areaY1:{get:function(){return b},set:function(t){b=d3.functor(t)}},transformData:{get:function(){return y},set:function(t){y=d3.functor(t)}},margin:{get:function(){return n},set:function(t){n.top=void 0!==t.top?t.top:n.top,n.right=void 0!==t.right?t.right:n.right,n.bottom=void 0!==t.bottom?t.bottom:n.bottom,n.left=void 0!==t.left?t.left:n.left}},color:{get:function(){return o},set:function(t){o=r.utils.getColor(t)}},style:{get:function(){return h},set:function(t){switch(h=t){case"stack":x.offset("zero"),x.order("default");break;case"stream":x.offset("wiggle"),x.order("inside-out");break;case"stream-center":x.offset("silhouette"),x.order("inside-out");break;case"expand":x.offset("expand"),x.order("default");break;case"stack_percent":x.offset(x.d3_stackedOffset_stackPercent),x.order("default")}}},duration:{get:function(){return _},set:function(t){_=t,w.reset(_),v.duration(_)}}}),r.utils.inheritOptions(x,v),r.utils.initOptions(x),x},r.models.stackedAreaChart=function(){"use strict";var t,e,n=r.models.stackedArea(),i=r.models.axis(),a=r.models.axis(),o=r.models.legend(),s=r.models.legend(),u=r.interactiveGuideline(),l=r.models.tooltip(),c=r.models.focus(r.models.stackedArea()),d={top:10,right:25,bottom:50,left:60},h=null,f=null,m=null,p=r.utils.defaultColor(),g=!0,v=!0,_="top",y=!0,b=!0,M=!1,w=!1,x=!1,k=!0,L="TOTAL",S=r.utils.state(),Y=null,T=null,D=d3.dispatch("stateChange","changeState","renderEnd"),C=250,E=["Stacked","Stream","Expanded"],O={},A=250;S.style=n.style(),i.orient("bottom").tickPadding(7),a.orient(M?"right":"left"),l.headerFormatter(function(t,e){return i.tickFormat()(t,e)}).valueFormatter(function(t,e){return a.tickFormat()(t,e)}),u.tooltip.headerFormatter(function(t,e){return i.tickFormat()(t,e)}).valueFormatter(function(t,e){return null==t?"N/A":a.tickFormat()(t,e)});var j=null,H=null;s.updateState(!1);var N=r.utils.renderWatch(D),P=(n.style(),function(t){return function(){return{active:t.map(function(t){return!t.disabled}),style:n.style()}}}),F=function(t){return function(e){void 0!==e.style&&e.style,void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}},V=d3.format("%");function I(l){return N.reset(),N.models(n),y&&N.models(i),b&&N.models(a),l.each(function(l){var T=d3.select(this);r.utils.initSVG(T);var N,W=r.utils.availableWidth(f,T,d),R=r.utils.availableHeight(m,T,d)-(w?c.height():0);if(I.update=function(){T.transition().duration(A).call(I)},I.container=this,S.setter(F(l),I.update).getter(P(l)).update(),S.disabled=l.map(function(t){return!!t.disabled}),!Y)for(N in Y={},S)S[N]instanceof Array?Y[N]=S[N].slice(0):Y[N]=S[N];if(!(l&&l.length&&l.filter(function(t){return t.values.length}).length))return r.utils.noData(I,T),I;T.selectAll(".nv-noData").remove(),t=n.xScale(),e=n.yScale();var z=T.selectAll("g.nv-wrap.nv-stackedAreaChart").data([l]),B=z.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedAreaChart").append("g"),G=z.select("g");B.append("g").attr("class","nv-legendWrap"),B.append("g").attr("class","nv-controlsWrap");var U=B.append("g").attr("class","nv-focus");U.append("g").attr("class","nv-background").append("rect"),U.append("g").attr("class","nv-x nv-axis"),U.append("g").attr("class","nv-y nv-axis"),U.append("g").attr("class","nv-stackedWrap"),U.append("g").attr("class","nv-interactive");B.append("g").attr("class","nv-focusWrap");if(v){var $=g&&"top"===_?W-C:W;if(o.width($),G.select(".nv-legendWrap").datum(l).call(o),"bottom"===_){var q=i.height();d.bottom=Math.max(o.height()+q,d.bottom);var J=(R=r.utils.availableHeight(m,T,d)-(w?c.height():0))+q;G.select(".nv-legendWrap").attr("transform","translate(0,"+J+")")}else"top"===_&&(h||d.top==o.height()||(d.top=o.height(),R=r.utils.availableHeight(m,T,d)-(w?c.height():0)),G.select(".nv-legendWrap").attr("transform","translate("+(W-$)+","+-d.top+")"))}else G.select(".nv-legendWrap").selectAll("*").remove();if(g){var Z=[{key:O.stacked||"Stacked",metaKey:"Stacked",disabled:"stack"!=n.style(),style:"stack"},{key:O.stream||"Stream",metaKey:"Stream",disabled:"stream"!=n.style(),style:"stream"},{key:O.stream_center||"Stream Center",metaKey:"Stream_Center",disabled:"stream_center"!=n.style(),style:"stream-center"},{key:O.expanded||"Expanded",metaKey:"Expanded",disabled:"expand"!=n.style(),style:"expand"},{key:O.stack_percent||"Stack %",metaKey:"Stack_Percent",disabled:"stack_percent"!=n.style(),style:"stack_percent"}];C=E.length/3*260,Z=Z.filter(function(t){return-1!==E.indexOf(t.metaKey)}),s.width(C).color(["#444","#444","#444"]),G.select(".nv-controlsWrap").datum(Z).call(s);var X=Math.max(s.height(),v&&"top"===_?o.height():0);d.top!=X&&(d.top=X,R=r.utils.availableHeight(m,T,d)-(w?c.height():0)),G.select(".nv-controlsWrap").attr("transform","translate(0,"+-d.top+")")}else G.select(".nv-controlsWrap").selectAll("*").remove();z.attr("transform","translate("+d.left+","+d.top+")"),M&&G.select(".nv-y.nv-axis").attr("transform","translate("+W+",0)"),x&&(u.width(W).height(R).margin({left:d.left,top:d.top}).svgContainer(T).xScale(t),z.select(".nv-interactive").call(u)),G.select(".nv-focus .nv-background rect").attr("width",W).attr("height",R),n.width(W).height(R).color(l.map(function(t,e){return t.color||p(t,e)}).filter(function(t,e){return!l[e].disabled}));var K,Q=G.select(".nv-focus .nv-stackedWrap").datum(l.filter(function(t){return!t.disabled}));(y&&i.scale(t)._ticks(r.utils.calcTicksX(W/100,l)).tickSize(-R,0),b)&&(K="wiggle"===n.offset()?0:r.utils.calcTicksY(R/36,l),a.scale(e)._ticks(K).tickSize(-W,0));function tt(){y&&G.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+R+")").transition().duration(A).call(i)}function et(){if(b){if("expand"===n.style()||"stack_percent"===n.style()){var t=a.tickFormat();j&&t===V||(j=t),a.tickFormat(V)}else j&&(a.tickFormat(j),j=null);G.select(".nv-focus .nv-y.nv-axis").transition().duration(0).call(a)}}if(w){c.width(W),G.select(".nv-focusWrap").attr("transform","translate(0,"+(R+d.bottom+c.margin().top)+")").datum(l.filter(function(t){return!t.disabled})).call(c);var nt=c.brush.empty()?c.xDomain():c.brush.extent();null!==nt&&rt(nt)}else Q.transition().call(n),tt(),et();function rt(t){G.select(".nv-focus .nv-stackedWrap").datum(l.filter(function(t){return!t.disabled}).map(function(e,r){return{key:e.key,area:e.area,classed:e.classed,values:e.values.filter(function(e,r){return n.x()(e,r)>=t[0]&&n.x()(e,r)<=t[1]}),disableTooltip:e.disableTooltip}})).transition().duration(A).call(n),tt(),et()}n.dispatch.on("areaClick.toggle",function(t){1===l.filter(function(t){return!t.disabled}).length?l.forEach(function(t){t.disabled=!1}):l.forEach(function(e,n){e.disabled=n!=t.seriesIndex}),S.disabled=l.map(function(t){return!!t.disabled}),D.stateChange(S),I.update()}),o.dispatch.on("stateChange",function(t){for(var e in t)S[e]=t[e];D.stateChange(S),I.update()}),s.dispatch.on("legendClick",function(t,e){t.disabled&&(Z=Z.map(function(t){return t.disabled=!0,t}),t.disabled=!1,n.style(t.style),S.style=n.style(),D.stateChange(S),I.update())}),u.dispatch.on("elementMousemove",function(t){n.clearHighlights();var e,i,a,o=[],s=0,c=!0,d=!1;if(l.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(u,h){i=r.interactiveBisect(u.values,t.pointXValue,I.x());var f=u.values[i],m=I.y()(f,i);if(null!=m&&m>0&&(n.highlightPoint(h,i,!0),d=!0),h!==l.length-1||d||n.highlightPoint(h,i,!0),void 0!==f){void 0===e&&(e=f),void 0===a&&(a=I.xScale()(I.x()(f,i)));var g="expand"==n.style()?f.display.y:I.y()(f,i);o.push({key:u.key,value:g,color:p(u,u.seriesIndex),point:f}),k&&"expand"!=n.style()&&null!=g&&(s+=g,c=!1)}}),o.reverse(),o.length>2){var h=I.yScale().invert(t.mouseY),f=null;o.forEach(function(t,e){h=Math.abs(h);var n=Math.abs(t.point.display.y0),r=Math.abs(t.point.display.y);h>=n&&h<=r+n&&(f=e)}),null!=f&&(o[f].highlight=!0)}k&&"expand"!=n.style()&&o.length>=2&&!c&&o.push({key:L,value:s,total:!0});var m=I.x()(e,i),g=u.tooltip.valueFormatter();"expand"===n.style()||"stack_percent"===n.style()?(H||(H=g),g=d3.format(".1%")):H&&(g=H,H=null),u.tooltip.valueFormatter(g).data({value:m,series:o})(),u.renderGuideLine(a)}),u.dispatch.on("elementMouseout",function(t){n.clearHighlights()}),c.dispatch.on("onBrush",function(t){rt(t)}),D.on("changeState",function(t){void 0!==t.disabled&&l.length===t.disabled.length&&(l.forEach(function(e,n){e.disabled=t.disabled[n]}),S.disabled=t.disabled),void 0!==t.style&&(n.style(t.style),t.style),I.update()})}),N.renderEnd("stacked Area chart immediate"),I}return n.dispatch.on("elementMouseover.tooltip",function(t){t.point.x=n.x()(t.point),t.point.y=n.y()(t.point),l.data(t).hidden(!1)}),n.dispatch.on("elementMouseout.tooltip",function(t){l.hidden(!0)}),I.dispatch=D,I.stacked=n,I.legend=o,I.controls=s,I.xAxis=i,I.x2Axis=c.xAxis,I.yAxis=a,I.y2Axis=c.yAxis,I.interactiveLayer=u,I.tooltip=l,I.focus=c,I.dispatch=D,I.options=r.utils.optionsFunc.bind(I),I._options=Object.create({},{width:{get:function(){return f},set:function(t){f=t}},height:{get:function(){return m},set:function(t){m=t}},showLegend:{get:function(){return v},set:function(t){v=t}},legendPosition:{get:function(){return _},set:function(t){_=t}},showXAxis:{get:function(){return y},set:function(t){y=t}},showYAxis:{get:function(){return b},set:function(t){b=t}},defaultState:{get:function(){return Y},set:function(t){Y=t}},noData:{get:function(){return T},set:function(t){T=t}},showControls:{get:function(){return g},set:function(t){g=t}},controlLabels:{get:function(){return O},set:function(t){O=t}},controlOptions:{get:function(){return E},set:function(t){E=t}},showTotalInTooltip:{get:function(){return k},set:function(t){k=t}},totalLabel:{get:function(){return L},set:function(t){L=t}},focusEnable:{get:function(){return w},set:function(t){w=t}},focusHeight:{get:function(){return c.height()},set:function(t){c.height(t)}},brushExtent:{get:function(){return c.brushExtent()},set:function(t){c.brushExtent(t)}},margin:{get:function(){return d},set:function(t){void 0!==t.top&&(d.top=t.top,h=t.top),d.right=void 0!==t.right?t.right:d.right,d.bottom=void 0!==t.bottom?t.bottom:d.bottom,d.left=void 0!==t.left?t.left:d.left}},focusMargin:{get:function(){return c.margin},set:function(t){c.margin.top=void 0!==t.top?t.top:c.margin.top,c.margin.right=void 0!==t.right?t.right:c.margin.right,c.margin.bottom=void 0!==t.bottom?t.bottom:c.margin.bottom,c.margin.left=void 0!==t.left?t.left:c.margin.left}},duration:{get:function(){return A},set:function(t){A=t,N.reset(A),n.duration(A),i.duration(A),a.duration(A)}},color:{get:function(){return p},set:function(t){p=r.utils.getColor(t),o.color(p),n.color(p),c.color(p)}},x:{get:function(){return n.x()},set:function(t){n.x(t),c.x(t)}},y:{get:function(){return n.y()},set:function(t){n.y(t),c.y(t)}},rightAlignYAxis:{get:function(){return M},set:function(t){M=t,a.orient(M?"right":"left")}},useInteractiveGuideline:{get:function(){return x},set:function(t){x=!!t,I.interactive(!t),I.useVoronoi(!t),n.scatter.interactive(!t)}}}),r.utils.inheritOptions(I,n),r.utils.initOptions(I),I},r.models.stackedAreaWithFocusChart=function(){return r.models.stackedAreaChart().margin({bottom:30}).focusEnable(!0)},r.models.sunburst=function(){"use strict";var t,e,n,i,a={top:0,right:0,bottom:0,left:0},o=600,s=600,u="count",l={count:function(t){return 1},value:function(t){return t.value||t.size},size:function(t){return t.value||t.size}},c=Math.floor(1e4*Math.random()),d=null,h=r.utils.defaultColor(),f=!1,m=function(t){return"count"===u?t.name+" #"+t.value:t.name+" "+(t.value||t.size)},p=.02,g=function(t,e){return t.name>e.name},v=function(t,e){return void 0!==t.parent?t.name+"-"+t.parent.name+"-"+e:t.name},_=!0,y=500,b=d3.dispatch("chartClick","elementClick","elementDblClick","elementMousemove","elementMouseover","elementMouseout","renderEnd"),M=d3.scale.linear().range([0,2*Math.PI]),w=d3.scale.sqrt(),x=d3.layout.partition().sort(g),k={},L=d3.svg.arc().startAngle(function(t){return Math.max(0,Math.min(2*Math.PI,M(t.x)))}).endAngle(function(t){return Math.max(0,Math.min(2*Math.PI,M(t.x+t.dx)))}).innerRadius(function(t){return Math.max(0,w(t.y))}).outerRadius(function(t){return Math.max(0,w(t.y+t.dy))});function S(t){return Y(t)>90?180:0}function Y(t){return(Math.max(0,Math.min(2*Math.PI,M(t.x)))+Math.max(0,Math.min(2*Math.PI,M(t.x+t.dx))))/2*(180/Math.PI)-90}function T(t){var e=Math.max(0,Math.min(2*Math.PI,M(t.x)));return Math.max(0,Math.min(2*Math.PI,M(t.x+t.dx)))-e>p}function D(e,n){var r=d3.interpolate(M.domain(),[t.x,t.x+t.dx]),a=d3.interpolate(w.domain(),[t.y,1]),o=d3.interpolate(w.range(),[t.y?20:0,i]);return 0===n?function(){return L(e)}:function(t){return M.domain(r(t)),w.domain(a(t)).range(o(t)),L(e)}}function C(t){var e=d3.interpolate({x:t.x0,dx:t.dx0,y:t.y0,dy:t.dy0},t);return function(n){var r=e(n);return t.x0=r.x,t.dx0=r.dx,t.y0=r.y,t.dy0=r.dy,L(r)}}function E(t){t.forEach(function(t){var e=v(t),n=k[e];n?(t.dx0=n.dx,t.x0=n.x,t.dy0=n.dy,t.y0=n.y):(t.dx0=t.dx,t.x0=t.x,t.dy0=t.dy,t.y0=t.y),function(t){var e=v(t);k[e]||(k[e]={});var n=k[e];n.dx=t.dx,n.x=t.x,n.dy=t.dy,n.y=t.y}(t)})}function O(e){var n=d.selectAll("text"),r=d.selectAll("path");n.transition().attr("opacity",0),t=e,r.transition().duration(y).attrTween("d",D).each("end",function(t){t.x>=e.x&&t.x<e.x+e.dx&&(t.depth>=e.depth&&d3.select(this.parentNode).select("text").transition().duration(y).text(function(t){return m(t)}).attr("opacity",function(t){return T(t)?1:0}).attr("transform",function(){var n=this.getBBox().width;if(0===t.depth)return"translate("+n/2*-1+",0)";if(t.depth===e.depth)return"translate("+(w(t.y)+5)+",0)";var r=Y(t),i=S(t);return 0===i?"rotate("+r+")translate("+(w(t.y)+5)+",0)":"rotate("+r+")translate("+(w(t.y)+n+5)+",0)rotate("+i+")"}))})}var A=r.utils.renderWatch(b);function j(t){return A.reset(),t.each(function(t){d=d3.select(this),e=r.utils.availableWidth(o,d,a),n=r.utils.availableHeight(s,d,a),i=Math.min(e,n)/2,w.range([0,i]);var p=d.select("g.nvd3.nv-wrap.nv-sunburst");p[0][0]?p.attr("transform","translate("+(e/2+a.left+a.right)+","+(n/2+a.top+a.bottom)+")"):p=d.append("g").attr("class","nvd3 nv-wrap nv-sunburst nv-chart-"+c).attr("transform","translate("+(e/2+a.left+a.right)+","+(n/2+a.top+a.bottom)+")"),d.on("click",function(t,e){b.chartClick({data:t,index:e,pos:d3.event,id:c})}),x.value(l[u]||l.count);var g=x.nodes(t[0]).reverse();E(g);var D=p.selectAll(".arc-container").data(g,v);D.enter().append("g").attr("class","arc-container").append("path").attr("d",L).style("fill",function(t){return t.color?t.color:h(_?(t.children?t:t.parent).name:t.name)}).style("stroke","#FFF").on("click",function(t,e){O(t),b.elementClick({data:t,index:e})}).on("mouseover",function(t,e){d3.select(this).classed("hover",!0).style("opacity",.8),b.elementMouseover({data:t,color:d3.select(this).style("fill"),percent:function(t){var e=Math.max(0,Math.min(2*Math.PI,M(t.x)));return(Math.max(0,Math.min(2*Math.PI,M(t.x+t.dx)))-e)/(2*Math.PI)}(t)})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1).style("opacity",1),b.elementMouseout({data:t})}).on("mousemove",function(t,e){b.elementMousemove({data:t})}),D.each(function(t){d3.select(this).select("path").transition().duration(y).attrTween("d",C)}),f&&(D.selectAll("text").remove(),D.append("text").text(function(t){return m(t)}).transition().duration(y).attr("opacity",function(t){return T(t)?1:0}).attr("transform",function(t){var e=this.getBBox().width;if(0===t.depth)return"rotate(0)translate("+e/2*-1+",0)";var n=Y(t),r=S(t);return 0===r?"rotate("+n+")translate("+(w(t.y)+5)+",0)":"rotate("+n+")translate("+(w(t.y)+e+5)+",0)rotate("+r+")"})),O(g[g.length-1]),D.exit().transition().duration(y).attr("opacity",0).each("end",function(t){var e=v(t);k[e]=void 0}).remove()}),A.renderEnd("sunburst immediate"),j}return j.dispatch=b,j.options=r.utils.optionsFunc.bind(j),j._options=Object.create({},{width:{get:function(){return o},set:function(t){o=t}},height:{get:function(){return s},set:function(t){s=t}},mode:{get:function(){return u},set:function(t){u=t}},id:{get:function(){return c},set:function(t){c=t}},duration:{get:function(){return y},set:function(t){y=t}},groupColorByParent:{get:function(){return _},set:function(t){_=!!t}},showLabels:{get:function(){return f},set:function(t){f=!!t}},labelFormat:{get:function(){return m},set:function(t){m=t}},labelThreshold:{get:function(){return p},set:function(t){p=t}},sort:{get:function(){return g},set:function(t){g=t}},key:{get:function(){return v},set:function(t){v=t}},margin:{get:function(){return a},set:function(t){a.top=void 0!=t.top?t.top:a.top,a.right=void 0!=t.right?t.right:a.right,a.bottom=void 0!=t.bottom?t.bottom:a.bottom,a.left=void 0!=t.left?t.left:a.left}},color:{get:function(){return h},set:function(t){h=r.utils.getColor(t)}}}),r.utils.initOptions(j),j},r.models.sunburstChart=function(){"use strict";var t=r.models.sunburst(),e=r.models.tooltip(),n={top:30,right:20,bottom:20,left:20},i=null,a=null,o=r.utils.defaultColor(),s=!1,u=(Math.round(1e5*Math.random()),null),l=null,c=250,d=d3.dispatch("stateChange","changeState","renderEnd"),h=r.utils.renderWatch(d);function f(e){return h.reset(),h.models(t),e.each(function(e){var o=d3.select(this);r.utils.initSVG(o);var s=r.utils.availableWidth(i,o,n),u=r.utils.availableHeight(a,o,n);if(f.update=function(){0===c?o.call(f):o.transition().duration(c).call(f)},f.container=o,!e||!e.length)return r.utils.noData(f,o),f;o.selectAll(".nv-noData").remove(),t.width(s).height(u).margin(n),o.call(t)}),h.renderEnd("sunburstChart immediate"),f}return e.duration(0).headerEnabled(!1).valueFormatter(function(t){return t}),t.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:t.data.name,value:t.data.value||t.data.size,color:t.color,percent:t.percent},s||(delete t.percent,delete t.series.percent),e.data(t).hidden(!1)}),t.dispatch.on("elementMouseout.tooltip",function(t){e.hidden(!0)}),t.dispatch.on("elementMousemove.tooltip",function(t){e()}),f.dispatch=d,f.sunburst=t,f.tooltip=e,f.options=r.utils.optionsFunc.bind(f),f._options=Object.create({},{noData:{get:function(){return l},set:function(t){l=t}},defaultState:{get:function(){return u},set:function(t){u=t}},showTooltipPercent:{get:function(){return s},set:function(t){s=t}},color:{get:function(){return o},set:function(e){o=e,t.color(o)}},duration:{get:function(){return c},set:function(e){c=e,h.reset(c),t.duration(c)}},margin:{get:function(){return n},set:function(e){n.top=void 0!==e.top?e.top:n.top,n.right=void 0!==e.right?e.right:n.right,n.bottom=void 0!==e.bottom?e.bottom:n.bottom,n.left=void 0!==e.left?e.left:n.left,t.margin(n)}}}),r.utils.inheritOptions(f,t),r.utils.initOptions(f),f},r.version="1.8.6-dev"}()},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(t,e,n){"use strict";var r,i=n(0);!function(t){t[t.ProportionalConversion=2]="ProportionalConversion",t[t.Zoom=4]="Zoom"}(r||(r={})),n.d(e,"a",function(){return a});let a=class{constructor(t){this.dataTypeService=t}getNumericalOperationedValue(t,e,n){let i=e;const a=t.numericalOperationSetting;if(a.type===r.ProportionalConversion){const r=a.settings.upperLimit,o=a.settings.lowerLimit,s=t.numericalUpperLimit,u=t.numericalLowerLimit;if(s===u)return i;i=((r-o)/(s-u)*(e-u)+o).toFixed(n)}else if(a.type===r.Zoom){i=(e*a.settings.gain+a.settings.offset).toFixed(n)}return i}getNumericalOperations(t){const e={};return e.numericalUpperLimit=t.numericalUpperLimit||0===t.numericalUpperLimit?+t.numericalUpperLimit:this.dataTypeService.getMaxValue(t.version,t.dataType,t.integerDigits,t.fractionDigits),e.numericalLowerLimit=t.numericalLowerLimit||0===t.numericalLowerLimit?+t.numericalLowerLimit:this.dataTypeService.getMinValue(t.version,t.dataType,t.integerDigits,t.fractionDigits),e.enableNumericalOperation=t.enableNumericalOperation,t.enableNumericalOperation&&(e.type=t.numericalOperationSetting.type,e.type===r.ProportionalConversion?(e.proportionalConversion={},e.proportionalConversion.lowerLimit=t.numericalOperationSetting.settings.lowerLimit,e.proportionalConversion.upperLimit=t.numericalOperationSetting.settings.upperLimit):e.type===r.Zoom&&(e.zoom={},e.zoom.gain=t.numericalOperationSetting.settings.gain,e.zoom.offset=t.numericalOperationSetting.settings.offset)),e}getWriteValue(t,e,n,i,a){const o=Number(e);let s=Number(e);if(n.type===r.ProportionalConversion){const t=n.proportionalConversion.upperLimit,e=n.proportionalConversion.lowerLimit,r=n.numericalUpperLimit,i=n.numericalLowerLimit;if(t===e)return s.toString();s=(o-e)*(r-i)/(t-e)+i}else if(n.type===r.Zoom){const t=n.zoom.gain,e=n.zoom.offset;if(0===t)return s.toString();s=(o-e)/t}return(s=this.dataTypeService.isFloat(t,i)?Number(s.toFixed(a)):Number(s.toFixed(0))).toString()}getWriteMaxValue(t,e){let n=t;if(e.enableNumericalOperation)if(e.type===r.ProportionalConversion)n=e.proportionalConversion.upperLimit;else if(e.type===r.Zoom){const t=e.zoom.gain,r=e.zoom.offset,i=this.toInteger(t);n=n*i.num/i.times+r}return n}getWriteMinValue(t,e){let n=t;if(e.enableNumericalOperation)if(e.type===r.ProportionalConversion)n=e.proportionalConversion.lowerLimit;else if(e.type===r.Zoom){const t=e.zoom.gain,r=e.zoom.offset,i=this.toInteger(t);n=n*i.num/i.times+r}return n}toInteger(t){const e={times:1,num:0},n=t<0;if(t=Math.abs(t),this.isInteger(t))return e.num=t,e.num=n?-t:t,e;const r=t+"",i=r.indexOf("."),a=r.substr(i+1).length,o=Math.pow(10,a),s=parseInt((t*o+.5).toString(),10);return e.times=o,e.num=s,e.num=n?-s:s,e}isInteger(t){return Math.floor(t)===t}};a=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(i.Injectable)()],a)},function(t,e,n){"use strict";var r,i=n(0);!function(t){t[t.Write=2]="Write",t[t.ReadOnly=4]="ReadOnly",t[t.ReadWrite=6]="ReadWrite"}(r||(r={})),n.d(e,"a",function(){return a});let a=class{getAccessPermissions(){return[{key:r.ReadOnly,value:"ReadOnly"},{key:r.ReadWrite,value:"ReadWrite"}]}isReadOnly(t){return t===r.ReadOnly}isReadWrite(t){return t==r.ReadWrite}canRead(t){return t===r.ReadOnly}canWrite(t){return t===r.ReadWrite||t===r.Write}};a=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(i.Injectable)()],a)},function(t,e,n){"use strict";var r=n(26);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0);let i=class{constructor(){this.zeroText="0"}padLeft(t,e,n){let r=String(t);n=n||this.zeroText;let i=r.length;for(;i<e;)r=n+r,i++;return r.toString()}padRight(t,e,n){let r=String(t);n=n||this.zeroText;let i=r.length;for(;i<e;)r+=n,i++;return r.toString()}movePointLeft(t,e){if(e<=0)return t;const n=String(t).split(".");let r=n[0]?n[0]:"";const i=n[1]?n[1]:"";let a=".",o="";return"-"===r.slice(0,1)&&(r=r.slice(1),o="-"),r.length<=e&&(a="0.",r=this.padLeft(r,e,"0")),o+r.slice(0,-e)+a+r.slice(-e)+i}movePointRight(t,e){if(e<=0)return t;const n=new String(t).split("."),r=n[0]?n[0]:"";let i=n[1]?n[1]:"",a=".";return i.length<=e&&(a="",i=this.padRight(i,e,"0")),r+i.slice(0,e)+a+i.slice(e,i.length)}movePoint(t,e){return e>=0?this.movePointRight(t,e):this.movePointLeft(t,-e)}roundingToFixedFractionDigits(t,e){const n=String(t),r=n.indexOf(".")+1,i=n.length-r;if(r>=1&&i>e){let i=+this.movePoint(n,e);const a=Number(n.substr(r+e,1));return i=a>=5&&t>=0||a<5&&t<0?Math.ceil(i):Math.floor(i),this.movePoint(i,-e)}return Number(t).toFixed(e)}};i=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(r.Injectable)()],i)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=n(3);let a=class{constructor(t,e){this.fcloudDataTypeService=t,this.fboxDataTypeService=e}getValueType(t,e){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.getValueType(e):this.fboxDataTypeService.getValueType(e)}getValuePattern(t,e){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.getValuePattern(e):this.fboxDataTypeService.getValuePattern(e)}isHexType(t,e){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.isHexType(e):this.fboxDataTypeService.isHexType(e)}isBinaryType(t,e){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.isBinaryType(e):this.fboxDataTypeService.isBinaryType(e)}isHexOrBinaryType(t,e){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.isHexOrBinaryType(e):this.fboxDataTypeService.isHexOrBinaryType(e)}isFloat(t,e){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.isFloat(e):this.fboxDataTypeService.isFloat(e)}getValueMaxLength(t,e){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.getValueMaxLength(e):this.fboxDataTypeService.getValueMaxLength(e)}isSupportFractionDigit(t,e){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.isSupportFractionDigit(e):this.fboxDataTypeService.isSupportFractionDigit(e)}isSignedType(t,e){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.isSignedType(e):this.fboxDataTypeService.isSignedType(e)}isSupportNumericalOperation(t,e){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.isSupportNumericalOperation(e):this.fboxDataTypeService.isSupportNumericalOperation(e)}formatToDecimal(t,e,n){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.formatToDecimal(e,n):this.fboxDataTypeService.formatToDecimal(e,n)}getMinValue(t,e,n,r){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.getMinValue(e,n,r):this.fboxDataTypeService.getMinValue(e,n,r)}getMaxValue(t,e,n,r){return!Object(i.isNil)(t)&&t>4?this.fcloudDataTypeService.getMaxValue(e,n,r):this.fboxDataTypeService.getMaxValue(e,n,r)}};a=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(r.Injectable)()],a)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),i=n(9),a=n(5),o=function(t,e){return function(n,r){e(n,r,t)}};let s=class{constructor(t){this.localization=t,this.defaultIntegerDigits=4,this.defaultFractionDigits=0,this.dataTypeList=new Map}getValueType(t){switch(t){case a.a.Binary:return this.localization.binaryType;case a.a.Int32:case a.a.Float:return this.localization.decimalType;case a.a.Hex:return this.localization.hexadecimalType;case a.a.String:return this.localization.stringType}}getValuePattern(t){switch(t){case a.a.Binary:return"^[01]+$";case a.a.Int32:case a.a.Float:return"^[+-]?[0-9]*(\\.[0-9]*)?$";case a.a.Hex:return"^[0-9a-fA-F]+$"}}isHexType(t){return t===a.a.Hex}isBinaryType(t){return t===a.a.Binary}isHexOrBinaryType(t){return t===a.a.Binary||t===a.a.Hex}isFloat(t){return t===a.a.Float}getValueMaxLength(t){switch(t){case a.a.Int32:return 10;case a.a.Float:return 11;case a.a.Binary:return 32;case a.a.Hex:return 8;default:return 0}}isSupportFractionDigit(t){return t!==a.a.Bool&&t!==a.a.String&&t!==a.a.Binary&&t!==a.a.Hex}isSignedType(t){return t===a.a.Int32||t===a.a.Float}isSupportNumericalOperation(t){return t!==a.a.Bool&&t!==a.a.Binary&&t!==a.a.Hex&&t!==a.a.String}formatToDecimal(t,e){return this.isBinaryType(e)?parseInt(t,2):this.isHexType(e)?parseInt(t,16):t}getMinValue(t,e,n){let r;switch(t){case a.a.Binary:case a.a.Hex:r=0;break;case a.a.Int32:r=-2147483648;break;case a.a.Float:r=-1e9}if(e){let i=e;n&&(i+=n),i&&r.toString().length-1>i&&(r=-this.getFillNine(i)),this.isFloat(t)&&n&&(r/=Math.pow(10,n))}return r}getMaxValue(t,e,n){let r;switch(t){case a.a.Binary:case a.a.Hex:r=4294967295;break;case a.a.Int32:r=2147483647;break;case a.a.Float:r=1e9}if(e){let i=e;n&&(i+=n),i&&r.toString().length>i&&(r=this.getFillNine(i)),this.isFloat(t)&&n&&(r/=Math.pow(10,n))}return r}getFillNine(t){let e="9";for(let n=1;n<t;n++)e=`9${e}`;return e}};s=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(r.Injectable)(),o(0,Object(r.Inject)(i.b))],s)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(0),i=n(9),a=function(t,e){return function(n,r){e(n,r,t)}};let o=class{constructor(t){this.localization=t,this.defaultIntegerDigits=4,this.defaultFractionDigits=0}getValueType(t){switch(t){case 0:case 5:case 15:return this.localization.binaryType;case 1:case 2:case 3:case 11:case 12:case 13:case 16:return this.localization.decimalType;case 4:case 14:return this.localization.hexadecimalType;case 30:return this.localization.stringType}}getValuePattern(t){switch(t){case 0:case 5:case 15:return"^[01]+$";case 1:case 2:case 3:case 11:case 12:case 13:case 16:return"^[+-]?[0-9]*(\\.[0-9]*)?$";case 4:case 14:return"^[0-9a-fA-F]+$"}}isHexType(t){return 4===t||14===t}isBinaryType(t){return 5===t||15===t}isHexOrBinaryType(t){return 4===t||14===t||5===t||15===t}isFloat(t){return 16===t}getValueMaxLength(t){switch(t){case 1:return 5;case 2:return 6;case 3:case 4:return 4;case 5:return 16;case 11:return 10;case 12:case 16:return 11;case 13:case 14:return 8;case 15:return 32;default:return 0}}isSupportFractionDigit(t){return 0!==t&&4!==t&&5!==t&&14!==t&&15!==t&&30!==t}isSignedType(t){return 2===t||12===t||16===t}isSupportNumericalOperation(t){return 0!==t&&4!==t&&5!==t&&14!==t&&15!==t&&30!==t}formatToDecimal(t,e){return this.isBinaryType(e)?parseInt(t,2):this.isHexType(e)?parseInt(t,16):t}getMinValue(t,e,n){let r;switch(t){case 1:case 3:case 4:case 5:case 11:case 13:case 14:case 15:r=0;break;case 2:r=-32768;break;case 12:r=-2147483648;break;case 16:r=-1e9}if(e){let i=e;n&&(i+=n),i&&r.toString().length-1>i&&(r=-this.getFillNine(i)),this.isFloat(t)&&n&&(r/=Math.pow(10,n))}return r}getMaxValue(t,e,n){let r;switch(t){case 1:case 4:case 5:r=65535;break;case 2:r=32767;break;case 3:r=9999;break;case 11:case 14:case 15:r=4294967295;break;case 12:r=2147483647;break;case 13:r=99999999;break;case 16:r=1e9}if(e){let i=e;n&&(i+=n),i&&r.toString().length>i&&(r=this.getFillNine(i)),this.isFloat(t)&&n&&(r/=Math.pow(10,n))}return r}getFillNine(t){let e="9";for(let n=1;n<t;n++)e=`9${e}`;return e}};o=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(r.Injectable)(),a(0,Object(r.Inject)(i.b))],o)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0);let i=class{};i=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(r.Injectable)()],i)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(49),i=n(265),a=n(53);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(a.a)(t,n)):Object(i.a)(t)}},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(21),i=n(34),a={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(14),i=n(22);function a(t,e){return new r.a(function(n){var r=new i.a,a=0;return r.add(e.schedule(function(){a!==t.length?(n.next(t[a++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},function(t,e,n){"use strict";var r;!function(t){t[t.ToggleView=0]="ToggleView",t[t.PopupView=1]="PopupView",t[t.CloseView=2]="CloseView",t[t.ControlView=3]="ControlView"}(r||(r={}));var i=n(222);n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i.ViewOperationElementModel})},function(t,e,n){"use strict";var r;!function(t){t[t.Positive=0]="Positive",t[t.Negative=1]="Negative"}(r||(r={}));var i=n(223);n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i.Pipe})},function(t,e,n){"use strict";class r{}var i=n(258),a=n(257),o=n(256),s=n(255),u=n(254),l=n(253);n.d(e,"a",function(){return r}),n.d(e,"f",function(){return i.ReadableModel}),n.d(e,"c",function(){return a.ConditionalDisplayModel}),n.d(e,"e",function(){return o.ConditionalEnableModel}),n.d(e,"b",function(){return s.ConditionalControlModel}),n.d(e,"d",function(){return u.ConditionalDynamicDisplayModel}),n.d(e,"g",function(){return l.SecurityModel})},function(t,e,n){"use strict";var r,i,a=n(207);!function(t){t[t.Center=0]="Center",t[t.Custom=1]="Custom"}(r||(r={})),function(t){t[t.Shadow=0]="Shadow",t[t.Musk=1]="Musk"}(i||(i={})),n.d(e,"c",function(){return a.ViewSettingsModel}),n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i})},function(t,e,n){"use strict";var r,i=n(220),a=n(219);!function(t){t[t.ProportionalConversion=2]="ProportionalConversion",t[t.Zoom=4]="Zoom"}(r||(r={}));var o,s=n(218),u=n(217),l=n(216),c=n(215);!function(t){t[t.Decimal=0]="Decimal",t[t.Hex=1]="Hex",t[t.Binary=2]="Binary"}(o||(o={})),n.d(e,"b",function(){return i.NumericalDisplay}),n.d(e,"d",function(){return a.NumericalOperationSettings}),n.d(e,"e",function(){return r}),n.d(e,"c",function(){return s.NumericalOperation}),n.d(e,"f",function(){return u.ProportionalConversion}),n.d(e,"g",function(){return l.TypeSettings}),n.d(e,"h",function(){return c.Zoom}),n.d(e,"a",function(){return o})},function(t,e,n){"use strict";var r=n(71),i=n(70),a=n(69),o=n(68),s=n(67),u=n(66),l=n(65);n.d(e,"g",function(){return r.WeatherService}),n.d(e,"c",function(){return i.PermissionChecker}),n.d(e,"a",function(){return a.CreateOperationRecordArgs}),n.d(e,"b",function(){return o.OperationRecordService}),n.d(e,"d",function(){return s.VariableOptionModel}),n.d(e,"e",function(){return u.VideoService}),n.d(e,"f",function(){return l.VideoUrl})},function(t,e,n){"use strict";var r=n(81),i=n(80),a=n(79),o=n(78),s=n(77),u=n(76),l=n(3),c=n(48),d=n(33),h=n(15),f=n(12),m=n(26);class p{constructor(t){this.remoteGraphProtocol=t,this.graphStateCache=new m.a(t=>JSON.stringify(t))}getGraph(t,e,n){const r={graphId:t,stateId:e,extendedStyle:n};return this.graphStateCache.has(r)?Object(c.a)(this.graphStateCache.get(r)):this.remoteGraphProtocol.version>=1?this.getReleasedGraphState(r):this.getSystemGraph(r)}getSystemGraph(t){const e=String(t.graphId);return this.remoteGraphProtocol.getSystemGraphConfig(e).pipe(Object(h.map)(n=>{let r;const i=Object(l.find)(n.states,e=>e.id===t.stateId);if(i){const t="svg"===i.type?f.g.SVG:f.g.Image,n=new f.d(t,this.remoteGraphProtocol.getAbsoluteStateUrl(e,i.url));r=f.e.success(n)}else r=f.e.failed();return this.graphStateCache.set(t,r),r}))}getImageUrl(t){return t?0===t.indexOf("http://")||0===t.indexOf("https://")?t:this.remoteGraphProtocol.remoteServiceBaseUrl+t:t}getReleasedGraphState(t){return t.extendedStyle?this.getReleaseGraphStateWithExtendedStyle(t):(this.graphStateToBeResolved||(this.graphStateToBeResolved=new m.a(t=>JSON.stringify(t)),setTimeout(()=>{this.resolvePendingStates()})),this.graphStateToBeResolved.has(t)||this.graphStateToBeResolved.set(t,new d.a),this.graphStateToBeResolved.get(t))}getReleaseGraphStateWithExtendedStyle(t){const e=Number(t.graphId),n=encodeURIComponent(t.extendedStyle.fill),r=encodeURIComponent(t.extendedStyle.stroke),i=this.remoteGraphProtocol.getGraphStateUrl(e,t.stateId,n,r),a=new f.d(f.g.SVG,i);return Object(c.a)(f.e.success(a))}resolvePendingStates(){const t=this.graphStateToBeResolved,e=[];t.forEach((t,n)=>{const r=JSON.parse(n);e.push({graphId:r.graphId,stateIndex:r.stateId})});const n={states:e};this.remoteGraphProtocol.getReleasedGraphStates(n).subscribe(e=>{e.forEach(e=>{const n={graphId:e.graphId,stateId:e.stateIndex};let r;if(e.result){const t=this.getImageUrl(e.result.url);r=f.e.success(new f.d(e.result.type,t))}else r=f.e.failed();this.graphStateCache.set(n,r);const i=t.get(n);i&&(i.next(r),i.complete())})}),delete this.graphStateToBeResolved}}var g=n(75),v=n(27);class _{constructor(t){this.remoteViewProtocol=t,this.viewConfigCache=new m.a(t=>JSON.stringify(t))}getMainViewConfig(){return this.remoteViewProtocol.getReleasedMainView().pipe(Object(h.map)(t=>{const e=new v.a(t.content);return this.viewConfigCache.set(t.viewIndex,e),e}))}getViewConfig(t){return this.viewConfigCache.has(t)?Object(c.a)(this.viewConfigCache.get(t)):this.remoteViewProtocol.getReleasedView(t).pipe(Object(h.map)(e=>{const n=new v.a(e.content);return this.viewConfigCache.set(t,n),n}))}getViewConfigByConfigureViewId(t){return this.remoteViewProtocol.getViewConfigByConfigureViewId(t).pipe(Object(h.map)(t=>{return new v.a(t.content)}))}getViewConfigByConfigureViewCode(t){return this.remoteViewProtocol.getViewConfigByConfigureViewCode(t).pipe(Object(h.map)(t=>{return new v.a(t.content)}))}}var y=n(74),b=n(73);const M="defaultImage",w="/assets/common/images/configure/defaultImage.png",x="/ConfigureComponent/GetImage",k="id=";class L{constructor(t){this.remoteImageProtocol=t}getDiagramImageUrlPrefix(){return this.remoteImageProtocol.remoteServiceBaseUrl+x+"?"}getImageUrl(t){return t&&t!==M?this.getDiagramImageUrlPrefix()+k+t:this.remoteImageProtocol.appBaseUrl+w}}var S=n(14),Y=n(42);class T{constructor(t,e){this.remoteVariableProtocol=t,this.logger=e,this.observers=new Map,this.appIdVariablesMap=new Map,this.variableStateObservers=new Map,this.variableStateCache=new Map,this.variableValueCache=new Y.a(t=>JSON.stringify(t)),this.connectedSubscription=this.remoteVariableProtocol.connected.subscribe(()=>{const t=[];this.variableStateObservers.forEach((e,n)=>{t.push(n)}),this.remoteVariableProtocol.subscribeVariableStates(t),this.appIdVariablesMap.forEach((t,e)=>{this.remoteVariableProtocol.tryOpenVariables(t,e)})}),this.doVariableStatesChanged(),this.doVariableValuesChanged()}doVariableValuesChanged(){void 0!==this.variableValuesChangedSubscription&&this.variableValuesChangedSubscription.unsubscribe(),this.variableValuesChangedSubscription=this.remoteVariableProtocol.variableValuesChanged.subscribe(t=>{Object(l.each)(t,t=>{const e=t.variableName;this.variableValueCache.set(e,t),this.observers.has(e)&&Object(l.each)(this.observers.get(e),e=>{e.next([t])})})})}doVariableStatesChanged(){void 0!==this.variableStatesChangedSubscription&&this.variableStatesChangedSubscription.unsubscribe(),this.variableStatesChangedSubscription=this.remoteVariableProtocol.variableStatesChanged.subscribe(t=>{Object(l.each)(t,t=>{const e=t.variableName;this.variableStateCache.set(e,t),this.variableStateObservers.has(e)&&Object(l.each)(this.variableStateObservers.get(e),e=>{e.next([t])})})})}subscribeVariableStates(t){return new S.a(e=>{let n=[];return Object(l.each)(t,t=>{this.variableStateObservers.has(t)?this.variableStateCache.has(t)&&e.next([this.variableStateCache.get(t)]):(this.variableStateObservers.set(t,[]),n.push(t)),this.variableStateObservers.get(t).push(e)}),(n=Object(l.uniq)(n))&&n.length>0&&(this.variableStatesToBeOpened||(this.variableStatesToBeOpened=[],setTimeout(()=>{this.remoteVariableProtocol.subscribeVariableStates(this.variableStatesToBeOpened),delete this.variableStatesToBeOpened})),this.variableStatesToBeOpened.push(...n)),()=>{const n=[];Object(l.each)(t,t=>{const r=this.variableStateObservers.get(t);r&&(Object(l.remove)(r,t=>t===e),r.length<=0&&(this.variableStateObservers.delete(t),n.push(t)))}),n.length&&(this.variableStatesToBeClosed||(this.variableStatesToBeClosed=[],setTimeout(()=>{this.remoteVariableProtocol.unsubscribeVariableStates(this.variableStatesToBeClosed),delete this.variableStatesToBeClosed})),this.variableStatesToBeClosed.push(...n))}})}subscribeVariableState(t){return this.subscribeVariableStates([t]).pipe(Object(h.map)(t=>t[0]))}openVariables(t,e=""){return new S.a(n=>{let r=[];return Object(l.each)(t,t=>{t&&(this.observers.has(t)?this.variableValueCache.has(t)&&n.next([this.variableValueCache.get(t)]):(this.observers.set(t,[]),r.push(t)),this.observers.get(t).push(n),this.appIdVariablesMap.get(e)?-1===this.appIdVariablesMap.get(e).indexOf(t)&&this.appIdVariablesMap.get(e).push():this.appIdVariablesMap.set(e,[]))}),(r=Object(l.uniq)(r))&&r.length>0&&(this.variablesToBeOpened||(this.variablesToBeOpened=[],setTimeout(()=>{this.remoteVariableProtocol.tryOpenVariables(this.variablesToBeOpened,e),delete this.variablesToBeOpened})),this.variablesToBeOpened.push(...r)),()=>{const r=[];Object(l.each)(t,t=>{const e=this.observers.get(t);e&&(Object(l.remove)(e,t=>t===n),e.length<=0&&(this.observers.delete(t),r.push(t)))}),r.length&&(this.variablesToBeClosed||(this.variablesToBeClosed=[],setTimeout(()=>{this.remoteVariableProtocol.tryStopVariables(this.variablesToBeClosed,e),delete this.variablesToBeClosed})),this.variablesToBeClosed.push(...r))}})}openVariable(t,e=""){if(t)return this.openVariables([t],e).pipe(Object(h.map)(t=>t[0]))}write(t,e){if(t)return this.remoteVariableProtocol.writeVariable(t,e),new S.a(t=>{})}writeWordByBit(t,e,n){if(t)return this.remoteVariableProtocol.writeVariableWordByBit(t,e,n),new S.a(t=>{})}dispose(){this.connectedSubscription.unsubscribe(),this.variableStatesChangedSubscription.unsubscribe(),this.variableValuesChangedSubscription.unsubscribe(),this.logger&&this.logger.isDebugEnabled()&&this.logger.debug("[VariableCommunicator] RemoteVariableCommunicator disposed.")}}var D=n(72);n.d(e,"a",function(){return r.GetReleasedGraphStateResult}),n.d(e,"e",function(){return i.GraphStateResult}),n.d(e,"b",function(){return a.GetReleasedGraphStates}),n.d(e,"d",function(){return o.GraphStateKey}),n.d(e,"c",function(){return s.GraphState}),n.d(e,"f",function(){return u.RemoteGraphProtocol}),n.d(e,"g",function(){return p}),n.d(e,"l",function(){return g.RemoteViewProtocol}),n.d(e,"m",function(){return _}),n.d(e,"n",function(){return y.ViewResult}),n.d(e,"h",function(){return b.RemoteImageProtocol}),n.d(e,"i",function(){return L}),n.d(e,"j",function(){return T}),n.d(e,"k",function(){return D.RemoteVariableProtocol})},function(t,e,n){"use strict";var r,i=n(235);!function(t){t[t.Bit=0]="Bit",t[t.Word=1]="Word"}(r||(r={}));var a,o,s=n(234);!function(t){t[t.On=0]="On",t[t.Off=1]="Off",t[t.Inverse=2]="Inverse"}(a||(a={})),function(t){t[t.Add=0]="Add",t[t.Subtract=1]="Subtract",t[t.SetConstant=2]="SetConstant"}(o||(o={}));var u,l=n(233),c=n(232);!function(t){t[t.Bit=0]="Bit",t[t.Word=1]="Word"}(u||(u={}));var d,h=n(231),f=n(230),m=n(229),p=n(228);!function(t){t[t.Nothing=0]="Nothing",t[t.Image=1]="Image",t[t.Label=2]="Label"}(d||(d={}));var g=n(227);n.d(e,"k",function(){return i.SwtichSettings}),n.d(e,"j",function(){return r}),n.d(e,"c",function(){return s.BitSwitchSettings}),n.d(e,"b",function(){return a}),n.d(e,"m",function(){return o}),n.d(e,"n",function(){return l.WordSwitchSettings}),n.d(e,"f",function(){return c.IndicatorLightSettings}),n.d(e,"g",function(){return u}),n.d(e,"a",function(){return h.BitIndicatorLightSettings}),n.d(e,"l",function(){return f.WordIndicatorLightSettings}),n.d(e,"i",function(){return m.SwitchIndicatorState}),n.d(e,"h",function(){return p.SwitchIndicatorLight}),n.d(e,"e",function(){return d}),n.d(e,"d",function(){return g.FaultFlicker})},function(t,e,n){"use strict";var r;!function(t){t[t.Equal=0]="Equal",t[t.NotEqual=1]="NotEqual",t[t.GreaterThan=2]="GreaterThan",t[t.LessThan=3]="LessThan",t[t.GreaterOrEqual=4]="GreaterOrEqual",t[t.LessOrEqual=5]="LessOrEqual"}(r||(r={}));var i,a=n(251);!function(t){t[t.Off=0]="Off",t[t.On=1]="On"}(i||(i={}));var o=n(250);class s{static isSatisfied(t,e,n){switch(+t){case r.Equal:return n===e;case r.GreaterOrEqual:return n>=e;case r.GreaterThan:return n>e;case r.LessOrEqual:return n<=e;case r.LessThan:return n<e;case r.NotEqual:return n!==e;default:throw new Error(`Unknown RelationalOperator:${t}.`)}}}var u=n(0),l=n(3),c=n(32),d=n(8),h=n(10);class f{constructor(t,e){this.condition=t,this.variableStore=e,this.conditionEffectiveChanged=new u.EventEmitter}get variableName(){const t=new h.a(this.condition.variableName,this.condition.variableGroupName,this.condition.dataSourceCode,this.condition.variableVersion);return d.a.getConvertedVariableName(this.variableStore,t)}}var m=n(4);class p{constructor(t,e){this.state=t,this.value=e,this.state=t,this.value=e}}var g,v=n(29);class _ extends f{constructor(t,e,n){super(t,n),this.bitConditon=t,this.variableCommunicator=e}requestData(t){if(!this.bitConditon)throw new Error("BitConditionModel cannot be null.");this.variableName&&this.variableCommunicator.subscribeVariableState(this.variableName).subscribe(e=>{e.state===m.d.Normal?this.requestconditionEffectiveValue(this.variableCommunicator,t):this.conditionEffectiveChanged.emit(new p(new m.c(this.variableName,e.state),!1))})}requestconditionEffectiveValue(t,e=""){t.openVariable(this.variableName,e).subscribe(t=>{if(this.bitConditon.isBitwiseIndex){const e=31;this.binary=new v.a(t.value,e+1),this.currentValue=new m.e(t.variableName,t.state,this.binary.convertToBinary().substr(e-this.bitConditon.bitIndex,1))}else this.currentValue=t;this.isConditionEffective=this.getIsConditionEffective(),this.conditionEffectiveChanged.emit(new p(new m.c(this.variableName,t.state),this.isConditionEffective))})}getIsConditionEffective(){switch(this.bitConditon.bitConditionLogic){case i.On:return this.currentValue.state===m.d.DataNormal&&1==this.currentValue.value;case i.Off:return this.currentValue.state===m.d.DataNormal&&0==this.currentValue.value;default:throw new Error(`Unknown BitConditonLogic : ${this.bitConditon.bitConditionLogic}.`)}}}class y{constructor(t,e,n){this.key=t,this.relationType=e,this.result=n}}!function(t){t[t.Constant=0]="Constant",t[t.Variable=1]="Variable"}(g||(g={}));var b=n(20);class M extends f{constructor(t,e,n){super(t,n),this.wordCondition=t,this.variableCommunicator=e}get baseVariable(){const t=this.wordCondition.baseVariableValue;if(!t||!t.variableName)return;const e=new h.a(t.variableName,t.variableGroupName,t.dataSourceCode,t.variableVersion);return d.a.getConvertedVariableName(this.variableStore,e)}get realtionVariable(){const t=this.wordCondition.realtionVariableValue;if(!t||!t.variableName)return;const e=new h.a(t.variableName,t.variableGroupName,t.dataSourceCode,t.variableVersion);return d.a.getConvertedVariableName(this.variableStore,e)}requestData(t){if(!this.wordCondition)throw new Error("WordConditionModel cannot be null.");if(!this.wordCondition.baseVariableValue)throw new Error("WordConditionModel.baseVariableValue cannot be null.");if(this.wordCondition.baseVariableValue.valueType==g.Constant?this.baseVariableValue=new m.e(void 0,m.d.DataNormal,this.wordCondition.baseVariableValue.constValue):this.variableName&&this.variableCommunicator.subscribeVariableState(this.variableName).subscribe(e=>{e.state===m.d.Normal?this.requestconditionEffectiveBaseValue(this.variableCommunicator,t):this.conditionEffectiveChanged.emit(new p(new m.c(this.variableName,e.state),!1))}),0!=+this.wordCondition.relationType){if(!this.wordCondition.baseVariableValue)throw new Error("WordConditionModel.realtionVariableValue cannot be null.");this.wordCondition.realtionVariableValue.valueType==g.Constant?this.realtionVariableValue=new m.e(void 0,m.d.DataNormal,this.wordCondition.realtionVariableValue.constValue):this.variableName?this.variableCommunicator.subscribeVariableState(this.variableName).subscribe(e=>{e.state===m.d.Normal?this.requestconditionEffectiveRealtionValue(this.variableCommunicator,t):this.conditionEffectiveChanged.emit(new p(new m.c(this.variableName,e.state),!1))}):this.requestconditionEffectiveRealtionValue(this.variableCommunicator,t)}this.variableName&&this.variableCommunicator.subscribeVariableState(this.variableName).subscribe(e=>{e.state===m.d.Normal?this.requestconditionEffectiveValue(this.variableCommunicator,t):this.conditionEffectiveChanged.emit(new p(new m.c(this.variableName,e.state),!1))})}requestconditionEffectiveValue(t,e=""){t.openVariable(this.variableName,e).subscribe(t=>{this.currentValue=t,this.isConditionEffective=this.getIsConditionEffective(),this.conditionEffectiveChanged.emit(new p(new m.c(this.variableName,t.state),this.isConditionEffective))})}requestconditionEffectiveBaseValue(t,e=""){t.openVariable(this.baseVariable,e).subscribe(t=>{this.baseVariableValue=t,this.isConditionEffective=this.getIsConditionEffective(),this.conditionEffectiveChanged.emit(new p(new m.c(this.variableName,t.state),this.isConditionEffective))})}requestconditionEffectiveRealtionValue(t,e=""){t.openVariable(this.realtionVariable,e).subscribe(t=>{this.realtionVariableValue=t,this.isConditionEffective=this.getIsConditionEffective(),this.conditionEffectiveChanged.emit(new p(new m.c(this.variableName,t.state),this.isConditionEffective))})}getIsConditionEffective(){return this.wordCondition.relationType==b.a.None?this.comparator(this.baseVariableValue,this.wordCondition.baseVariableValue.operator):this.wordCondition.relationType==b.a.And?this.comparator(this.baseVariableValue,this.wordCondition.baseVariableValue.operator)&&this.comparator(this.realtionVariableValue,this.wordCondition.realtionVariableValue.operator):this.wordCondition.relationType==b.a.Or?this.comparator(this.baseVariableValue,this.wordCondition.baseVariableValue.operator)||this.comparator(this.realtionVariableValue,this.wordCondition.realtionVariableValue.operator):void 0}comparator(t,e){return null!=t&&(null!=this.currentValue&&(t.state===m.d.DataNormal&&this.currentValue.state===m.d.DataNormal&&(e==r.Equal?+this.currentValue.value==+t.value:e==r.GreaterOrEqual?+this.currentValue.value>+t.value||+this.currentValue.value==+t.value:e==r.GreaterThan?+this.currentValue.value>+t.value:e==r.LessOrEqual?+this.currentValue.value<+t.value||+this.currentValue.value==+t.value:e==r.LessThan?+this.currentValue.value<+t.value:e==r.NotEqual?+this.currentValue.value!=+t.value:void 0)))}}class w{constructor(t,e,n){this.sourceConditionItems=t,this.variableCommunicator=e,this.variableStore=n,this.conditionResultChanged=new u.EventEmitter,this.conditionResults=new Map}requestData(t){if(null==this.sourceConditionItems||!this.sourceConditionItems.length)return;const e=this.sourceConditionItems.sort(t=>t.index);e.forEach(n=>{switch(n.conditionType){case c.a.Bit:const r=new _(n.condition,this.variableCommunicator,this.variableStore);r.conditionEffectiveChanged.subscribe(t=>{this.conditionResults.has(e.indexOf(n))&&this.conditionResults.delete(e.indexOf(n)),this.conditionResults.set(e.indexOf(n),new y(e.indexOf(n),n.relationType,t)),this.emitConditionResult()}),r.requestData(t);break;case c.a.Word:const i=new M(n.condition,this.variableCommunicator,this.variableStore);i.conditionEffectiveChanged.subscribe(t=>{this.conditionResults.has(e.indexOf(n))&&this.conditionResults.delete(e.indexOf(n)),this.conditionResults.set(e.indexOf(n),new y(e.indexOf(n),n.relationType,t)),this.emitConditionResult()}),i.requestData(t);break;default:throw new Error(`Unknown ConditionType :${n.conditionType}`)}})}emitConditionResult(){let t=!0;const e=[],n=[];this.conditionResults.forEach(r=>{n.push({key:r.key,result:r}),r.relationType==b.a.None&&(t=r.result.value,e.push(r.result.state))}),Object(l.sortBy)(n,t=>t.key).forEach(n=>{const r=n.result;r.relationType==b.a.Or?(t=t||r.result.value,e.push(r.result.state)):r.relationType==b.a.And&&(t=t&&r.result.value,e.push(r.result.state))});const r={states:e,value:t};this.conditionResultChanged.emit(r)}}var x=n(243),k=n(242),L=n(241),S=n(240);class Y{constructor(t,e){this.width=t||0,this.height=e||0}isReal(){return isFinite(this.width)&&isFinite(this.height)}toString(){return`Size(${this.width} ${this.height})`}}var T,D=n(239),C=n(238),E=n(237);!function(t){t[t.Normal=0]="Normal",t[t.Offline=1]="Offline",t[t.Unbind=2]="Unbind",t[t.Abnormal=3]="Abnormal",t[t.Loading=4]="Loading",t[t.Disable=9]="Disable"}(T||(T={}));var O=n(236);n.d(e,"l",function(){return r}),n.d(e,"b",function(){return a.BitCondition}),n.d(e,"c",function(){return i}),n.d(e,"p",function(){return o.WordCondition}),n.d(e,"e",function(){return s}),n.d(e,"g",function(){return w}),n.d(e,"f",function(){return x.ConditionItemModel}),n.d(e,"d",function(){return k.ConditionControlResultValue}),n.d(e,"i",function(){return L.Font}),n.d(e,"o",function(){return S.Text}),n.d(e,"m",function(){return Y}),n.d(e,"k",function(){return D.Point}),n.d(e,"j",function(){return C.GraphSetting}),n.d(e,"h",function(){return E.CustomStyle}),n.d(e,"n",function(){return T}),n.d(e,"a",function(){return O.ArcModel})},function(t,e,n){"use strict";var r=n(23),i=n(0),a=n(263),o=function(){function t(t,e){this.open=t,this.close=e||t}return t.prototype.isManual=function(){return"manual"===this.open||"manual"===this.close},t}();var s={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function u(t,e){void 0===e&&(e=s);var n=(t||"").trim();if(0===n.length)return[];var r=n.split(/\s+/).map(function(t){return t.split(":")}).map(function(t){var n=e[t[0]]||t;return new o(n[0],n[1])}),i=r.filter(function(t){return t.isManual()});if(i.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===i.length&&r.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return r}
25
- /**
26
- * @license
27
- * Copyright Google Inc. All Rights Reserved.
28
- *
29
- * Use of this source code is governed by an MIT-style license that can be
30
- * found in the LICENSE file at https://angular.io/license
31
- */
32
- var l,c="undefined"!=typeof window&&window||{},d=c.document;c.location,c.gc,c.performance&&c.performance,c.Event,c.MouseEvent,c.KeyboardEvent,c.EventTarget,c.History,c.Location,c.EventListener;function h(){return void 0===c||(void 0===c.__theme?l?"bs3"===l:"bs3"===(l=function(){if("undefined"==typeof document)return null;var t=document.createElement("span");t.innerText="test bs version",document.body.appendChild(t),t.classList.add("d-none");var e=t.getBoundingClientRect();return document.body.removeChild(t),e&&0===e.top?"bs4":"bs3"}()):"bs4"!==c.__theme)}!function(){function t(){this.length=0,this.asArray=[]}t.prototype.get=function(t){if(!(0===this.length||t<0||t>=this.length)){for(var e=this.head,n=0;n<t;n++)e=e.next;return e.value}},t.prototype.add=function(t,e){if(void 0===e&&(e=this.length),e<0||e>this.length)throw new Error("Position is out of the list");var n={value:t,next:void 0,previous:void 0};if(0===this.length)this.head=n,this.tail=n,this.current=n;else if(0===e)n.next=this.head,this.head.previous=n,this.head=n;else if(e===this.length)this.tail.next=n,n.previous=this.tail,this.tail=n;else{var r=this.getNode(e-1),i=r.next;r.next=n,i.previous=n,n.previous=r,n.next=i}this.length++,this.createInternalArrayRepresentation()},t.prototype.remove=function(t){if(void 0===t&&(t=0),0===this.length||t<0||t>=this.length)throw new Error("Position is out of the list");if(0===t)this.head=this.head.next,this.head?this.head.previous=void 0:this.tail=void 0;else if(t===this.length-1)this.tail=this.tail.previous,this.tail.next=void 0;else{var e=this.getNode(t);e.next.previous=e.previous,e.previous.next=e.next}this.length--,this.createInternalArrayRepresentation()},t.prototype.set=function(t,e){if(0===this.length||t<0||t>=this.length)throw new Error("Position is out of the list");this.getNode(t).value=e,this.createInternalArrayRepresentation()},t.prototype.toArray=function(){return this.asArray},t.prototype.findAll=function(t){for(var e=this.head,n=[],r=0;r<this.length;r++)t(e.value,r)&&n.push({index:r,value:e.value}),e=e.next;return n},t.prototype.push=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.forEach(function(e){t.add(e)}),this.length},t.prototype.pop=function(){if(0!==this.length){var t=this.tail;return this.remove(this.length-1),t.value}},t.prototype.unshift=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.reverse(),e.forEach(function(e){t.add(e,0)}),this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.value;return this.remove(),t}},t.prototype.forEach=function(t){for(var e=this.head,n=0;n<this.length;n++)t(e.value,n),e=e.next},t.prototype.indexOf=function(t){for(var e=this.head,n=0,r=0;r<this.length;r++){if(e.value===t){n=r;break}e=e.next}return n},t.prototype.some=function(t){for(var e=this.head,n=!1;e&&!n;){if(t(e.value)){n=!0;break}e=e.next}return n},t.prototype.every=function(t){for(var e=this.head,n=!0;e&&n;)t(e.value)||(n=!1),e=e.next;return n},t.prototype.toString=function(){return"[Linked List]"},t.prototype.find=function(t){for(var e,n=this.head,r=0;r<this.length;r++){if(t(n.value,r)){e=n.value;break}n=n.next}return e},t.prototype.findIndex=function(t){for(var e,n=this.head,r=0;r<this.length;r++){if(t(n.value,r)){e=r;break}n=n.next}return e},t.prototype.getNode=function(t){if(0===this.length||t<0||t>=this.length)throw new Error("Position is out of the list");for(var e=this.head,n=0;n<t;n++)e=e.next;return e},t.prototype.createInternalArrayRepresentation=function(){for(var t=[],e=this.head;e;)t.push(e.value),e=e.next;this.asArray=t}}();var f=function(){function t(){}return t.reflow=function(t){t.offsetHeight},t.getStyles=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=c),e.getComputedStyle(t)},t}(),m={},p="undefined"==typeof console||!("warn"in console);function g(t){!Object(i.isDevMode)()||p||t in m||(m[t]=!0,console.warn(t))}
33
- /*! *****************************************************************************
34
- Copyright (c) Microsoft Corporation. All rights reserved.
35
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
36
- this file except in compliance with the License. You may obtain a copy of the
37
- License at http://www.apache.org/licenses/LICENSE-2.0
38
-
39
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
40
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
41
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
42
- MERCHANTABLITY OR NON-INFRINGEMENT.
43
-
44
- See the Apache Version 2.0 License for specific language governing permissions
45
- and limitations under the License.
46
- ***************************************************************************** */Object.setPrototypeOf||Array;var v=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};function _(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}var y=n(33),b=n(14),M=n(49),w=n(11),x=n(25),k=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return w.a(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(x.a),L=n(266),S=n(34);var Y=function(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),T=n(39),D=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function C(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var E=n(268),O=function(t){if(t&&"function"==typeof t[T.a])return function(t){return function(e){var n=t[T.a]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}}(t);if(D(t))return Object(L.a)(t);if(C(t))return function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,S.a),e}}(t);if(t&&"function"==typeof t[Y])return function(t){return function(e){for(var n=t[Y]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}}(t);var e=Object(E.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(x.a);function j(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new H(t,e))}}var H=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new N(t,this.project,this.thisArg))},t}(),N=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return w.a(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(x.a),P=n(22);var F=n(53);function V(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[T.a]}(t))return function(t,e){return new b.a(function(n){var r=new P.a;return r.add(e.schedule(function(){var i=t[T.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r})}(t,e);if(C(t))return function(t,e){return new b.a(function(n){var r=new P.a;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r})}(t,e);if(D(t))return Object(F.a)(t,e);if(function(t){return t&&"function"==typeof t[Y]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b.a(function(n){var r,i=new P.a;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[Y](),i.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function I(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(I(function(n,r){return function(t,e){return e?V(t,e):t instanceof b.a?t:new b.a(O(t))}(t(n,r)).pipe(j(function(t,i){return e(n,t,r,i)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new W(t,n))})}var W=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new R(t,this.project,this.concurrent))},t}(),R=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return w.a(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new k(this,e,n),i=this.destination;i.add(r);var a=function(t,e,n,r,i){if(void 0===i&&(i=new k(t,n,r)),!i.closed)return e instanceof b.a?e.subscribe(i):O(e)(i)}(this,t,void 0,void 0,r);a!==r&&i.add(a)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(A),z=n(267);var B=n(265);function G(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return Object(M.a)(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof b.a?t[0]:function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),I(z.a,t)}(n)(Object(B.a)(t,r))}var U=n(54),q=n(50);function J(t,e,n,r){return Object(q.a)(n)&&(r=n,n=void 0),r?J(t,e,n).pipe(j(function(t){return Object(U.a)(t)?r.apply(void 0,t):r(t)})):new b.a(function(r){!function t(e,n,r,i,a){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,a),o=function(){return s.removeEventListener(n,r,a)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),o=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var l=e;e.addListener(n,r),o=function(){return l.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,d=e.length;c<d;c++)t(e[c],n,r,i,a)}i.add(o)}(t,e,function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)},r,n)})}var Z=n(48),X=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return w.a(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return w.a(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(P.a)),K=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return w.a(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(X),Q=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),tt=function(t){function e(n,r){void 0===r&&(r=Q.now);var i=t.call(this,n,function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return w.a(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(Q),et=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(tt))(K);function nt(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function rt(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function it(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=nt(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(String(n)+String(i)+String(r))?t:it(rt(t))}var at="undefined"!=typeof window&&"undefined"!=typeof document,ot=at&&!(!window.MSInputMethodContext||!document.documentMode),st=at&&!(!window.MSInputMethodContext||!/MSIE 10/.test(navigator.userAgent));function ut(t){return 11===t?ot:10===t?st:ot||st}function lt(t){if(!t)return document.documentElement;for(var e,n=ut(10)?document.body:null,r=t.offsetParent||null;r===n&&t.nextElementSibling&&e!==t.nextElementSibling;)r=(e=t.nextElementSibling).offsetParent;var i=r&&r.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===nt(r,"position")?lt(r):r:e?e.ownerDocument.documentElement:document.documentElement}function ct(t){return null!==t.parentNode?ct(t.parentNode):t}function dt(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(t!==o&&e!==o||r.contains(i))return function(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||lt(t.firstElementChild)===t)}(o)?o:lt(o);var s=ct(t);return s.host?dt(s.host,e):dt(t,ct(e).host)}function ht(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function ft(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],ut(10)?parseInt(n["offset"+t],10)+parseInt(r["margin"+("Height"===t?"Top":"Left")],10)+parseInt(r["margin"+("Height"===t?"Bottom":"Right")],10):0)}function mt(t){var e=t.body,n=t.documentElement,r=ut(10)&&getComputedStyle(n);return{height:ft("Height",e,n,r),width:ft("Width",e,n,r)}}function pt(t,e){void 0===e&&(e="top");var n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[n]}return t[n]}function gt(t){return v({},t,{right:t.left+t.width,bottom:t.top+t.height})}function vt(t){var e={};try{if(ut(10)){e=t.getBoundingClientRect();var n=pt(t,"top"),r=pt(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(t){return}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},a="HTML"===t.nodeName?mt(t.ownerDocument):{},o=a.width||t.clientWidth||i.right-i.left,s=a.height||t.clientHeight||i.bottom-i.top,u=t.offsetWidth-o,l=t.offsetHeight-s;if(u||l){var c=nt(t);u-=ht(c,"x"),l-=ht(c,"y"),i.width-=u,i.height-=l}return gt(i)}function _t(t,e,n){void 0===n&&(n=!1);var r=ut(10),i="HTML"===e.nodeName,a=vt(t),o=vt(e),s=it(t),u=nt(e),l=parseFloat(u.borderTopWidth),c=parseFloat(u.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=gt({top:a.top-o.top-l,left:a.left-o.left-c,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var h=parseFloat(u.marginTop),f=parseFloat(u.marginLeft);d.top-=l-h,d.bottom-=l-h,d.left-=c-f,d.right-=c-f,d.marginTop=h,d.marginLeft=f}return(r&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(d=function(t,e,n){void 0===n&&(n=!1);var r=pt(e,"top"),i=pt(e,"left"),a=n?-1:1;return t.top+=r*a,t.bottom+=r*a,t.left+=i*a,t.right+=i*a,t}(d,e)),d}function yt(t){if(!t||!t.parentElement||ut())return document.documentElement;for(var e=t.parentElement;e&&"none"===nt(e,"transform");)e=e.parentElement;return e||document.documentElement}function bt(t,e,n,r,i){void 0===n&&(n=0),void 0===i&&(i=!1);var a={top:0,left:0},o=i?yt(t):dt(t,e);if("viewport"===r)a=function(t,e){void 0===e&&(e=!1);var n=t.ownerDocument.documentElement,r=_t(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=e?0:pt(n),s=e?0:pt(n,"left");return gt({top:o-Number(r.top)+Number(r.marginTop),left:s-Number(r.left)+Number(r.marginLeft),width:i,height:a})}(o,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=it(rt(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===r?t.ownerDocument.documentElement:r;var u=_t(s,o,i);if("HTML"!==s.nodeName||function t(e){var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===nt(e,"position")||t(rt(e)))}(o))a=u;else{var l=mt(t.ownerDocument),c=l.height,d=l.width;a.top+=u.top-u.marginTop,a.bottom=Number(c)+Number(u.top),a.left+=u.left-u.marginLeft,a.right=Number(d)+Number(u.left)}}return a.left+=n,a.top+=n,a.right-=n,a.bottom-=n,a}function Mt(t,e,n,r,i,a,o){if(void 0===i&&(i=["top","bottom","right","left"]),void 0===a&&(a="viewport"),void 0===o&&(o=0),-1===t.indexOf("auto"))return t;var s=bt(n,r,o,a),u={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(u).map(function(t){return v({key:t},u[t],{area:function(t){return t.width*t.height}(u[t])})}).sort(function(t,e){return e.area-t.area}),c=l.filter(function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight}),d=(c=c.filter(function(t){return i.some(function(e){return e===t.key})})).length>0?c[0].key:l[0].key,h=t.split(" ")[1];return n.className=n.className.replace(/bs-tooltip-auto/g,"bs-tooltip-"+d),d+(h?"-"+h:"")}function wt(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:Number(t.offsetWidth)+r,height:Number(t.offsetHeight)+n}}function xt(t,e,n){return void 0===n&&(n=null),_t(e,n?yt(t):dt(t,e),n)}function kt(t,e,n){var r=n.split(" ")[0],i=wt(t),a={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(r),s=o?"top":"left",u=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return a[s]=e[s]+e[l]/2-i[l]/2,a[u]=r===u?e[u]-i[c]:e[function(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}(u)],a}function Lt(t,e){return t&&t.modifiers&&t.modifiers[e]&&t.modifiers[e].enabled}function St(t,e,n){Object.keys(e).forEach(function(r){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&function(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}(e[r])&&(i="px"),n?n.setStyle(t,r,""+String(e[r])+i):t.style[r]=String(e[r])+i})}function Yt(t){var e,n=t.offsets.target,r=t.instance.target.querySelector(".arrow");if(!r)return t;var i=-1!==["left","right"].indexOf(t.placement.split(" ")[0]),a=i?"height":"width",o=i?"Top":"Left",s=o.toLowerCase(),u=i?"left":"top",l=i?"bottom":"right",c=wt(r)[a],d=t.placement.split(" ")[1];t.offsets.host[l]-c<n[s]&&(n[s]-=n[s]-(t.offsets.host[l]-c)),Number(t.offsets.host[s])+Number(c)>n[l]&&(n[s]+=Number(t.offsets.host[s])+Number(c)-Number(n[l])),n=gt(n);var h,f=nt(t.instance.target),m=parseFloat(f["margin"+o]),p=parseFloat(f["border"+o+"Width"]);if(d){var g=parseFloat(f.borderRadius),v=Number(m+p+g);h=s===d?Number(t.offsets.host[s])+v:Number(t.offsets.host[s])+Number(t.offsets.host[a]-v)}else h=Number(t.offsets.host[s])+Number(t.offsets.host[a]/2-c/2);var _=h-n[s]-m-p;return _=Math.max(Math.min(n[a]-c,_),0),t.offsets.arrow=((e={})[s]=Math.round(_),e[u]="",e),t.instance.arrow=r,t}function Tt(t){if(t.offsets.target=gt(t.offsets.target),!Lt(t.options,"flip"))return t.offsets.target=v({},t.offsets.target,kt(t.instance.target,t.offsets.host,t.placement)),t;var e=bt(t.instance.target,t.instance.host,0,"viewport",!1),n=t.placement.split(" ")[0],r=t.placement.split(" ")[1]||"",i=Mt("auto",t.offsets.host,t.instance.target,t.instance.host,t.options.allowedPositions),a=[n,i];return a.forEach(function(i,o){if(n!==i||a.length===o+1)return t;var s="left"===(n=t.placement.split(" ")[0])&&Math.floor(t.offsets.target.right)>Math.floor(t.offsets.host.left)||"right"===n&&Math.floor(t.offsets.target.left)<Math.floor(t.offsets.host.right)||"top"===n&&Math.floor(t.offsets.target.bottom)>Math.floor(t.offsets.host.top)||"bottom"===n&&Math.floor(t.offsets.target.top)<Math.floor(t.offsets.host.bottom),u=Math.floor(t.offsets.target.left)<Math.floor(e.left),l=Math.floor(t.offsets.target.right)>Math.floor(e.right),c=Math.floor(t.offsets.target.top)<Math.floor(e.top),d=Math.floor(t.offsets.target.bottom)>Math.floor(e.bottom),h="left"===n&&u||"right"===n&&l||"top"===n&&c||"bottom"===n&&d,f=-1!==["top","bottom"].indexOf(n),m=f&&"left"===r&&u||f&&"right"===r&&l||!f&&"left"===r&&c||!f&&"right"===r&&d;(s||h||m)&&((s||h)&&(n=a[o+1]),m&&(r=function(t){return"right"===t?"left":"left"===t?"right":t}(r)),t.placement=n+(r?" "+r:""),t.offsets.target=v({},t.offsets.target,kt(t.instance.target,t.offsets.host,t.placement)))}),t}function Dt(t){if(!Lt(t.options,"preventOverflow"))return t;var e=t.instance.target.style,n=e.top,r=e.left,i=e.transform;e.top="",e.left="",e.transform="";var a=bt(t.instance.target,t.instance.host,0,"scrollParent",!1);e.top=n,e.left=r,e.transform=i;var o,s={primary:function(e){var n,r=t.offsets.target[e];return t.offsets.target[e]<a[e]&&(r=Math.max(t.offsets.target[e],a[e])),(n={})[e]=r,n},secondary:function(e){var n,r="right"===e?"left":"top",i=t.offsets.target[r];return t.offsets.target[e]>a[e]&&(i=Math.min(t.offsets.target[r],a[e]-("right"===e?t.offsets.target.width:t.offsets.target.height))),(n={})[r]=i,n}};return["left","right","top","bottom"].forEach(function(e){o=-1!==["left","top"].indexOf(e)?"primary":"secondary",t.offsets.target=v({},t.offsets.target,s[o](e))}),t}function Ct(t){var e,n,r,i=t.placement,a=i.split(" ")[0],o=i.split(" ")[1];if(o){var s=t.offsets,u=s.host,l=s.target,c=-1!==["bottom","top"].indexOf(a),d=c?"left":"top",h=c?"width":"height",f={start:(e={},e[d]=u[d],e),end:(n={},n[d]=u[d]+u[h]-l[h],n)};t.offsets.target=v({},l,((r={})[d]=d===o?f.start[d]:f.end[d],r))}return t}var Et=new(function(){function t(){}return t.prototype.position=function(t,e,n){return void 0===n&&(n=!0),this.offset(t,e,!1)},t.prototype.offset=function(t,e,n){return void 0===n&&(n=!0),xt(e,t)},t.prototype.positionElements=function(t,e,n,r,i){return[Tt,Ct,Dt,Yt].reduce(function(t,e){return e(t)},function(t,e,n,r){var i=xt(t,e);n.match(/^(auto)*\s*(left|right|top|bottom)*$/)||n.match(/^(left|right|top|bottom)*(?: (left|right|top|bottom))?\s*(start|end)*$/)||(n="auto");var a=!!n.match(/auto/g),o=n.match(/auto\s(left|right|top|bottom)/)?n.split(" ")[1]||"auto":n,s=o.match(/^(left|right|top|bottom)* ?(?!\1)(left|right|top|bottom)?/);return s&&(o=s[1]+(s[2]?" "+s[2]:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(o)&&(o="auto"),{options:r,instance:{target:t,host:e,arrow:null},offsets:{target:kt(t,i,o),host:i,arrow:null},positionFixed:!1,placement:o=Mt(o,i,t,e,r?r.allowedPositions:void 0),placementAuto:a}}(e,t,n,i))},t}());function Ot(t,e,n,r,i,a){var o=Et.positionElements(t,e,n,r,i),s=function(t){return{width:t.offsets.target.width,height:t.offsets.target.height,left:Math.floor(t.offsets.target.left),top:Math.round(t.offsets.target.top),bottom:Math.round(t.offsets.target.bottom),right:Math.floor(t.offsets.target.right)}}(o);St(e,{"will-change":"transform",top:"0px",left:"0px",transform:"translate3d("+s.left+"px, "+s.top+"px, 0px)"},a),o.instance.arrow&&St(o.instance.arrow,o.offsets.arrow,a),function(t,e){var n=t.instance.target,r=n.className;t.placementAuto&&(-1!==(r=(r=(r=r.replace(/bs-popover-auto/g,"bs-popover-"+t.placement)).replace(/bs-tooltip-auto/g,"bs-tooltip-"+t.placement)).replace(/\sauto/g," "+t.placement)).indexOf("popover")&&-1===r.indexOf("popover-auto")&&(r+=" popover-auto"),-1!==r.indexOf("tooltip")&&-1===r.indexOf("tooltip-auto")&&(r+=" tooltip-auto")),r=r.replace(/left|right|top|bottom/g,""+t.placement.split(" ")[0]),e?e.setAttribute(n,"class",r):n.className=r}(o,a)}var At=function(){function t(t,e,n){var i=this;this.update$$=new y.a,this.positionElements=new Map,this.isDisabled=!1,Object(r.isPlatformBrowser)(n)&&t.runOutsideAngular(function(){i.triggerEvent$=G(J(window,"scroll",{passive:!0}),J(window,"resize",{passive:!0}),Object(Z.a)(0,et),i.update$$),i.triggerEvent$.subscribe(function(){i.isDisabled||i.positionElements.forEach(function(t){Ot(jt(t.target),jt(t.element),t.attachment,t.appendToBody,i.options,e.createRenderer(null,null))})})})}return t.prototype.position=function(t){this.addPositionElement(t)},Object.defineProperty(t.prototype,"event$",{get:function(){return this.triggerEvent$},enumerable:!0,configurable:!0}),t.prototype.disable=function(){this.isDisabled=!0},t.prototype.enable=function(){this.isDisabled=!1},t.prototype.addPositionElement=function(t){this.positionElements.set(jt(t.element),t)},t.prototype.calcPosition=function(){this.update$$.next()},t.prototype.deletePositionElement=function(t){this.positionElements.delete(jt(t))},t.prototype.setOptions=function(t){this.options=t},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[{type:i.NgZone},{type:i.RendererFactory2},{type:Number,decorators:[{type:i.Inject,args:[i.PLATFORM_ID]}]}]},t}();function jt(t){return"string"==typeof t?document.querySelector(t):t instanceof i.ElementRef?t.nativeElement:t}var Ht=function(){return function(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}();var Nt=function(){function t(t,e,n,r,a,o,s,u){this._viewContainerRef=t,this._renderer=e,this._elementRef=n,this._injector=r,this._componentFactoryResolver=a,this._ngZone=o,this._applicationRef=s,this._posService=u,this.onBeforeShow=new i.EventEmitter,this.onShown=new i.EventEmitter,this.onBeforeHide=new i.EventEmitter,this.onHidden=new i.EventEmitter,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}return Object.defineProperty(t.prototype,"isShown",{get:function(){return!this._isHiding&&!!this._componentRef},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(t),this},t.prototype.to=function(t){return this.container=t||this.container,this},t.prototype.position=function(t){return this.attachment=t.attachment||this.attachment,this._elementRef=t.target||this._elementRef,this},t.prototype.provide=function(t){return this._providers.push(t),this},t.prototype.show=function(t){if(void 0===t&&(t={}),this._subscribePositioning(),this._innerComponent=null,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(t.content,t.context,t.initialState);var e=i.Injector.create({providers:this._providers,parent:this._injector});if(this._componentRef=this._componentFactory.create(e,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,t),this.container instanceof i.ElementRef&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&"undefined"!=typeof document)(document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector)).appendChild(this._componentRef.location.nativeElement);!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef},t.prototype.hide=function(){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);var t=this._componentRef.location.nativeElement;return t.parentNode.removeChild(t),this._contentRef.componentRef&&this._contentRef.componentRef.destroy(),this._componentRef.destroy(),this._viewContainerRef&&this._contentRef.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._contentRef=null,this._componentRef=null,this._removeGlobalListener(),this.onHidden.emit(),this},t.prototype.toggle=function(){this.isShown?this.hide():this.show()},t.prototype.dispose=function(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()},t.prototype.listen=function(t){var e=this;this.triggers=t.triggers||this.triggers,this._listenOpts.outsideClick=t.outsideClick,this._listenOpts.outsideEsc=t.outsideEsc,t.target=t.target||this._elementRef.nativeElement;var n=this._listenOpts.hide=function(){return t.hide?t.hide():void e.hide()},r=this._listenOpts.show=function(n){t.show?t.show(n):e.show(n),n()};return this._unregisterListenersFn=function(t,e){var n=u(e.triggers),r=e.target;if(1===n.length&&n[0].isManual())return Function.prototype;var i=[],a=[],o=function(){a.forEach(function(t){return i.push(t())}),a.length=0};return n.forEach(function(n){var s=n.open===n.close,u=s?e.toggle:e.show;s||a.push(function(){return t.listen(r,n.close,e.hide)}),i.push(t.listen(r,n.open,function(){return u(o)}))}),function(){i.forEach(function(t){return t()})}}(this._renderer,{target:t.target,triggers:t.triggers,show:r,hide:n,toggle:function(t){e.isShown?n():r(t)}}),this},t.prototype._removeGlobalListener=function(){this._globalListener&&(this._globalListener(),this._globalListener=null)},t.prototype.attachInline=function(t,e){return this._inlineViewRef=t.createEmbeddedView(e),this},t.prototype._registerOutsideClick=function(){var t=this;if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){var e=this._componentRef.location.nativeElement;setTimeout(function(){t._globalListener=function(t,e){return e.outsideClick?t.listen("document","click",function(t){e.target&&e.target.contains(t.target)||e.targets&&e.targets.some(function(e){return e.contains(t.target)})||e.hide()}):Function.prototype}(t._renderer,{targets:[e,t._elementRef.nativeElement],outsideClick:t._listenOpts.outsideClick,hide:function(){return t._listenOpts.hide()}})})}if(this._listenOpts.outsideEsc){var n=this._componentRef.location.nativeElement;this._globalListener=function(t,e){return e.outsideEsc?t.listen("document","keyup.esc",function(t){e.target&&e.target.contains(t.target)||e.targets&&e.targets.some(function(e){return e.contains(t.target)})||e.hide()}):Function.prototype}(this._renderer,{targets:[n,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:function(){return t._listenOpts.hide()}})}}},t.prototype.getInnerComponent=function(){return this._innerComponent},t.prototype._subscribePositioning=function(){var t=this;!this._zoneSubscription&&this.attachment&&(this.onShown.subscribe(function(){t._posService.position({element:t._componentRef.location,target:t._elementRef,attachment:t.attachment,appendToBody:"body"===t.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(function(){t._componentRef&&t._posService.calcPosition()}))},t.prototype._unsubscribePositioning=function(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)},t.prototype._getContentRef=function(t,e,n){if(!t)return new Ht([]);if(t instanceof i.TemplateRef){if(this._viewContainerRef){var r=this._viewContainerRef.createEmbeddedView(t,e);return r.markForCheck(),new Ht([r.rootNodes],r)}var a=t.createEmbeddedView({});return this._applicationRef.attachView(a),new Ht([a.rootNodes],a)}if("function"==typeof t){var o=this._componentFactoryResolver.resolveComponentFactory(t),s=i.Injector.create({providers:this._providers,parent:this._injector}),u=o.create(s);return Object.assign(u.instance,n),this._applicationRef.attachView(u.hostView),new Ht([[u.location.nativeElement]],u.hostView,u)}return new Ht([[this._renderer.createText(""+t)]])},t}();var Pt=function(){function t(t,e,n,r,i){this._componentFactoryResolver=t,this._ngZone=e,this._injector=n,this._posService=r,this._applicationRef=i}return t.prototype.createLoader=function(t,e,n){return new Nt(e,n,t,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[{type:i.ComponentFactoryResolver},{type:i.NgZone},{type:i.Injector},{type:At},{type:i.ApplicationRef}]},t}();var Ft=function(){function t(){this.hide=Function,this.setClass=Function}return t.decorators=[{type:i.Injectable}],t}();var Vt=function(){function t(){}return t.decorators=[{type:i.Injectable}],t}();var It={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",animated:!0,initialState:{}},Wt="modal-scrollbar-measure",Rt="modal-backdrop",zt="modal-open",Bt="fade",Gt="in",Ut="show",$t=300,qt=150,Jt="backdrop-click",Zt="esc",Xt=function(){function t(t,e,n){this._element=e,this._renderer=n,this.isShown=!1,this.isModalHiding=!1,this.clickStartedInContent=!1,this.config=Object.assign({},t)}return t.prototype.ngOnInit=function(){var t=this;this.isAnimated&&this._renderer.addClass(this._element.nativeElement,Bt),this._renderer.setStyle(this._element.nativeElement,"display","block"),setTimeout(function(){t.isShown=!0,t._renderer.addClass(t._element.nativeElement,h()?Gt:Ut)},this.isAnimated?qt:0),document&&document.body&&(1===this.bsModalService.getModalsCount()&&(this.bsModalService.checkScrollbar(),this.bsModalService.setScrollbar()),this._renderer.addClass(document.body,zt)),this._element.nativeElement&&this._element.nativeElement.focus()},t.prototype.onClickStarted=function(t){this.clickStartedInContent=t.target!==this._element.nativeElement},t.prototype.onClickStop=function(t){var e=t.target===this._element.nativeElement&&!this.clickStartedInContent;!this.config.ignoreBackdropClick&&"static"!==this.config.backdrop&&e?(this.bsModalService.setDismissReason(Jt),this.hide()):this.clickStartedInContent=!1},t.prototype.onEsc=function(t){this.isShown&&(27!==t.keyCode&&"Escape"!==t.key||t.preventDefault(),this.config.keyboard&&this.level===this.bsModalService.getModalsCount()&&(this.bsModalService.setDismissReason(Zt),this.hide()))},t.prototype.ngOnDestroy=function(){this.isShown&&this.hide()},t.prototype.hide=function(){var t=this;!this.isModalHiding&&this.isShown&&(this.isModalHiding=!0,this._renderer.removeClass(this._element.nativeElement,h()?Gt:Ut),setTimeout(function(){t.isShown=!1,document&&document.body&&1===t.bsModalService.getModalsCount()&&t._renderer.removeClass(document.body,zt),t.bsModalService.hide(t.level),t.isModalHiding=!1},this.isAnimated?$t:0))},t.decorators=[{type:i.Component,args:[{selector:"modal-container",template:"\n <div [class]=\"'modal-dialog' + (config.class ? ' ' + config.class : '')\" role=\"document\">\n <div class=\"modal-content\">\n <ng-content></ng-content>\n </div>\n </div>\n ",host:{class:"modal",role:"dialog",tabindex:"-1","[attr.aria-modal]":"true","[attr.aria-labelledby]":"config.ariaLabelledBy","[attr.aria-describedby]":"config.ariaDescribedby"}}]}],t.ctorParameters=function(){return[{type:Vt},{type:i.ElementRef},{type:i.Renderer2}]},t.propDecorators={onClickStarted:[{type:i.HostListener,args:["mousedown",["$event"]]}],onClickStop:[{type:i.HostListener,args:["mouseup",["$event"]]}],onEsc:[{type:i.HostListener,args:["window:keydown.esc",["$event"]]}]},t}();var Kt=function(){function t(t,e){this._isShown=!1,this.element=t,this.renderer=e}return Object.defineProperty(t.prototype,"isAnimated",{get:function(){return this._isAnimated},set:function(t){this._isAnimated=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShown",{get:function(){return this._isShown},set:function(t){this._isShown=t,t?this.renderer.addClass(this.element.nativeElement,""+Gt):this.renderer.removeClass(this.element.nativeElement,""+Gt),h()||(t?this.renderer.addClass(this.element.nativeElement,""+Ut):this.renderer.removeClass(this.element.nativeElement,""+Ut))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.isAnimated&&(this.renderer.addClass(this.element.nativeElement,""+Bt),f.reflow(this.element.nativeElement)),this.isShown=!0},t.decorators=[{type:i.Component,args:[{selector:"bs-modal-backdrop",template:" ",host:{class:Rt}}]}],t.ctorParameters=function(){return[{type:i.ElementRef},{type:i.Renderer2}]},t}();var Qt=function(){function t(t,e,n,r){this._element=t,this._renderer=n,this.onShow=new i.EventEmitter,this.onShown=new i.EventEmitter,this.onHide=new i.EventEmitter,this.onHidden=new i.EventEmitter,this._isShown=!1,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.timerHideModal=0,this.timerRmBackDrop=0,this.isNested=!1,this.clickStartedInContent=!1,this._backdrop=r.createLoader(t,e,n)}return Object.defineProperty(t.prototype,"config",{get:function(){return this._config},set:function(t){this._config=this.getConfig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShown",{get:function(){return this._isShown},enumerable:!0,configurable:!0}),t.prototype.onClickStarted=function(t){this.clickStartedInContent=t.target!==this._element.nativeElement},t.prototype.onClickStop=function(t){var e=t.target===this._element.nativeElement&&!this.clickStartedInContent;!this.config.ignoreBackdropClick&&"static"!==this.config.backdrop&&e?(this.dismissReason=Jt,this.hide(t)):this.clickStartedInContent=!1},t.prototype.onEsc=function(t){this._isShown&&(27!==t.keyCode&&"Escape"!==t.key||t.preventDefault(),this.config.keyboard&&(this.dismissReason=Zt,this.hide()))},t.prototype.ngOnDestroy=function(){this.config=void 0,this._isShown&&(this._isShown=!1,this.hideModal(),this._backdrop.dispose())},t.prototype.ngOnInit=function(){var t=this;this._config=this._config||this.getConfig(),setTimeout(function(){t._config.show&&t.show()},0)},t.prototype.toggle=function(){return this._isShown?this.hide():this.show()},t.prototype.show=function(){var t=this;this.dismissReason=null,this.onShow.emit(this),this._isShown||(clearTimeout(this.timerHideModal),clearTimeout(this.timerRmBackDrop),this._isShown=!0,this.checkScrollbar(),this.setScrollbar(),d&&d.body&&(d.body.classList.contains(zt)?this.isNested=!0:this._renderer.addClass(d.body,zt)),this.showBackdrop(function(){t.showElement()}))},t.prototype.hide=function(t){var e=this;t&&t.preventDefault(),this.onHide.emit(this),this._isShown&&(c.clearTimeout(this.timerHideModal),c.clearTimeout(this.timerRmBackDrop),this._isShown=!1,this._renderer.removeClass(this._element.nativeElement,Gt),h()||this._renderer.removeClass(this._element.nativeElement,Ut),this._config.animated?this.timerHideModal=c.setTimeout(function(){return e.hideModal()},300):this.hideModal())},t.prototype.getConfig=function(t){return Object.assign({},It,t)},t.prototype.showElement=function(){var t=this;this._element.nativeElement.parentNode&&this._element.nativeElement.parentNode.nodeType===Node.ELEMENT_NODE||d&&d.body&&d.body.appendChild(this._element.nativeElement),this._renderer.setAttribute(this._element.nativeElement,"aria-hidden","false"),this._renderer.setAttribute(this._element.nativeElement,"aria-modal","true"),this._renderer.setStyle(this._element.nativeElement,"display","block"),this._renderer.setProperty(this._element.nativeElement,"scrollTop",0),this._config.animated&&f.reflow(this._element.nativeElement),this._renderer.addClass(this._element.nativeElement,Gt),h()||this._renderer.addClass(this._element.nativeElement,Ut);var e=function(){t._config.focus&&t._element.nativeElement.focus(),t.onShown.emit(t)};this._config.animated?setTimeout(e,300):e()},t.prototype.hideModal=function(){var t=this;this._renderer.setAttribute(this._element.nativeElement,"aria-hidden","true"),this._renderer.setStyle(this._element.nativeElement,"display","none"),this.showBackdrop(function(){t.isNested||(d&&d.body&&t._renderer.removeClass(d.body,zt),t.resetScrollbar()),t.resetAdjustments(),t.focusOtherModal(),t.onHidden.emit(t)})},t.prototype.showBackdrop=function(t){var e=this;if(!this._isShown||!this.config.backdrop||this.backdrop&&this.backdrop.instance.isShown)if(!this._isShown&&this.backdrop){this.backdrop.instance.isShown=!1;var n=function(){e.removeBackdrop(),t&&t()};this.backdrop.instance.isAnimated?this.timerRmBackDrop=c.setTimeout(n,150):n()}else t&&t();else{if(this.removeBackdrop(),this._backdrop.attach(Kt).to("body").show({isAnimated:this._config.animated}),this.backdrop=this._backdrop._componentRef,!t)return;if(!this._config.animated)return void t();setTimeout(t,150)}},t.prototype.removeBackdrop=function(){this._backdrop.hide()},t.prototype.focusOtherModal=function(){if(null!=this._element.nativeElement.parentElement){var t=this._element.nativeElement.parentElement.querySelectorAll(".in[bsModal]");t.length&&t[t.length-1].focus()}},t.prototype.resetAdjustments=function(){this._renderer.setStyle(this._element.nativeElement,"paddingLeft",""),this._renderer.setStyle(this._element.nativeElement,"paddingRight","")},t.prototype.checkScrollbar=function(){this.isBodyOverflowing=d.body.clientWidth<c.innerWidth,this.scrollbarWidth=this.getScrollbarWidth()},t.prototype.setScrollbar=function(){d&&(this.originalBodyPadding=parseInt(c.getComputedStyle(d.body).getPropertyValue("padding-right")||0,10),this.isBodyOverflowing&&(d.body.style.paddingRight=this.originalBodyPadding+this.scrollbarWidth+"px"))},t.prototype.resetScrollbar=function(){d.body.style.paddingRight=this.originalBodyPadding+"px"},t.prototype.getScrollbarWidth=function(){var t=this._renderer.createElement("div");this._renderer.addClass(t,Wt),this._renderer.appendChild(d.body,t);var e=t.offsetWidth-t.clientWidth;return this._renderer.removeChild(d.body,t),e},t.decorators=[{type:i.Directive,args:[{selector:"[bsModal]",exportAs:"bs-modal"}]}],t.ctorParameters=function(){return[{type:i.ElementRef},{type:i.ViewContainerRef},{type:i.Renderer2},{type:Pt}]},t.propDecorators={config:[{type:i.Input}],onShow:[{type:i.Output}],onShown:[{type:i.Output}],onHide:[{type:i.Output}],onHidden:[{type:i.Output}],onClickStarted:[{type:i.HostListener,args:["mousedown",["$event"]]}],onClickStop:[{type:i.HostListener,args:["mouseup",["$event"]]}],onEsc:[{type:i.HostListener,args:["keydown.esc",["$event"]]}]},t}();var te=function(){function t(t,e){this.clf=e,this.config=It,this.onShow=new i.EventEmitter,this.onShown=new i.EventEmitter,this.onHide=new i.EventEmitter,this.onHidden=new i.EventEmitter,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.lastDismissReason="",this.loaders=[],this._backdropLoader=this.clf.createLoader(null,null,null),this._renderer=t.createRenderer(null,null)}return t.prototype.show=function(t,e){return this.modalsCount++,this._createLoaders(),this.config=Object.assign({},It,e),this._showBackdrop(),this.lastDismissReason=null,this._showModal(t)},t.prototype.hide=function(t){var e=this;1===this.modalsCount&&(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1?this.modalsCount-1:0,setTimeout(function(){e._hideModal(t),e.removeLoaders(t)},this.config.animated?qt:0)},t.prototype._showBackdrop=function(){var t=this.config.backdrop||"static"===this.config.backdrop,e=!this.backdropRef||!this.backdropRef.instance.isShown;1===this.modalsCount&&(this.removeBackdrop(),t&&e&&(this._backdropLoader.attach(Kt).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))},t.prototype._hideBackdrop=function(){var t=this;if(this.backdropRef){this.backdropRef.instance.isShown=!1;var e=this.config.animated?qt:0;setTimeout(function(){return t.removeBackdrop()},e)}},t.prototype._showModal=function(t){var e,n,r=this,i=this.loaders[this.loaders.length-1];if(this.config&&this.config.providers)try{for(var a=_(this.config.providers),o=a.next();!o.done;o=a.next()){var s=o.value;i.provide(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}var u=new Ft,l=i.provide({provide:Vt,useValue:this.config}).provide({provide:Ft,useValue:u}).attach(Xt).to("body").show({content:t,isAnimated:this.config.animated,initialState:this.config.initialState,bsModalService:this});return l.instance.level=this.getModalsCount(),u.hide=function(){var t=r.config.animated?$t:0;setTimeout(function(){return l.instance.hide()},t)},u.content=i.getInnerComponent()||null,u.setClass=function(t){l.instance.config.class=t},u},t.prototype._hideModal=function(t){var e=this.loaders[t-1];e&&e.hide()},t.prototype.getModalsCount=function(){return this.modalsCount},t.prototype.setDismissReason=function(t){this.lastDismissReason=t},t.prototype.removeBackdrop=function(){this._backdropLoader.hide(),this.backdropRef=null},t.prototype.checkScrollbar=function(){this.isBodyOverflowing=document.body.clientWidth<window.innerWidth,this.scrollbarWidth=this.getScrollbarWidth()},t.prototype.setScrollbar=function(){document&&(this.originalBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")||"0",10),this.isBodyOverflowing&&(document.body.style.paddingRight=this.originalBodyPadding+this.scrollbarWidth+"px"))},t.prototype.resetScrollbar=function(){document.body.style.paddingRight=this.originalBodyPadding+"px"},t.prototype.getScrollbarWidth=function(){var t=this._renderer.createElement("div");this._renderer.addClass(t,Wt),this._renderer.appendChild(document.body,t);var e=t.offsetWidth-t.clientWidth;return this._renderer.removeChild(document.body,t),e},t.prototype._createLoaders=function(){var t=this.clf.createLoader(null,null,null);this.copyEvent(t.onBeforeShow,this.onShow),this.copyEvent(t.onShown,this.onShown),this.copyEvent(t.onBeforeHide,this.onHide),this.copyEvent(t.onHidden,this.onHidden),this.loaders.push(t)},t.prototype.removeLoaders=function(t){this.loaders.splice(t-1,1),this.loaders.forEach(function(t,e){t.instance.level=e+1})},t.prototype.copyEvent=function(t,e){var n=this;t.subscribe(function(){e.emit(n.lastDismissReason)})},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[{type:i.RendererFactory2},{type:Pt}]},t}();var ee=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[te,Pt,At]}},t.forChild=function(){return{ngModule:t,providers:[te,Pt,At]}},t.decorators=[{type:i.NgModule,args:[{declarations:[Kt,Qt,Xt],exports:[Kt,Qt],entryComponents:[Kt,Xt]}]}],t}(),ne=function(){function t(t){this.viewRef=t}return Object.defineProperty(t.prototype,"ngTransclude",{get:function(){return this._ngTransclude},set:function(t){this._ngTransclude=t,t&&this.viewRef.createEmbeddedView(t)},enumerable:!0,configurable:!0}),t.decorators=[{type:i.Directive,args:[{selector:"[ngTransclude]"}]}],t.ctorParameters=function(){return[{type:i.ViewContainerRef}]},t.propDecorators={ngTransclude:[{type:i.Input}]},t}();var re=function(){function t(){this.type="tabs",this.ariaLabel="Tabs"}return t.decorators=[{type:i.Injectable}],t}();var ie=function(){function t(t,e,n){this.renderer=e,this.elementRef=n,this.clazz=!0,this.tabs=[],this.classMap={},Object.assign(this,t)}return Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=t,this.setClassMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"justified",{get:function(){return this._justified},set:function(t){this._justified=t,this.setClassMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t,this.setClassMap()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.isDestroyed=!0},t.prototype.addTab=function(t){this.tabs.push(t),t.active=1===this.tabs.length&&void 0===t.active},t.prototype.removeTab=function(t,e){void 0===e&&(e={reselect:!0,emit:!0});var n=this.tabs.indexOf(t);if(-1!==n&&!this.isDestroyed){if(e.reselect&&t.active&&this.hasAvailableTabs(n)){var r=this.getClosestTabIndex(n);this.tabs[r].active=!0}e.emit&&t.removed.emit(t),this.tabs.splice(n,1),t.elementRef.nativeElement.parentNode&&this.renderer.removeChild(t.elementRef.nativeElement.parentNode,t.elementRef.nativeElement)}},t.prototype.keyNavActions=function(t,e){var n=Array.from(this.elementRef.nativeElement.querySelectorAll(".nav-link"));if(13===t.keyCode||"Enter"===t.key||32===t.keyCode||"Space"===t.key)return t.preventDefault(),void n[e%n.length].click();if(39!==t.keyCode&&"RightArrow"!==t.key)if(37!==t.keyCode&&"LeftArrow"!==t.key)if(36!==t.keyCode&&"Home"!==t.key)if(35!==t.keyCode&&"End"!==t.key){if((46===t.keyCode||"Delete"===t.key)&&this.tabs[e].removable){if(this.removeTab(this.tabs[e]),n[e+1])return void n[(e+1)%n.length].focus();n[n.length-1]&&n[0].focus()}}else{t.preventDefault();var r=void 0;o=1,s=e;do{s-o<0?(r=n[s=n.length-1],o=0):r=n[s-o],o++}while(r.classList.contains("disabled"));r.focus()}else{t.preventDefault();var i=void 0;o=0;do{i=n[o%n.length],o++}while(i.classList.contains("disabled"));i.focus()}else{var a=void 0,o=1,s=e;do{s-o<0?(a=n[s=n.length-1],o=0):a=n[s-o],o++}while(a.classList.contains("disabled"));a.focus()}else{var u=void 0,o=1;do{u=n[(e+o)%n.length],o++}while(u.classList.contains("disabled"));u.focus()}},t.prototype.getClosestTabIndex=function(t){var e=this.tabs.length;if(!e)return-1;for(var n=1;n<=e;n+=1){var r=t-n,i=t+n;if(this.tabs[r]&&!this.tabs[r].disabled)return r;if(this.tabs[i]&&!this.tabs[i].disabled)return i}return-1},t.prototype.hasAvailableTabs=function(t){var e=this.tabs.length;if(!e)return!1;for(var n=0;n<e;n+=1)if(!this.tabs[n].disabled&&n!==t)return!0;return!1},t.prototype.setClassMap=function(){var t;this.classMap=((t={"nav-stacked":this.vertical,"flex-column":this.vertical,"nav-justified":this.justified})["nav-"+this.type]=!0,t)},t.decorators=[{type:i.Component,args:[{selector:"tabset",template:'<ul class="nav" [ngClass]="classMap"\n (click)="$event.preventDefault()"\n [attr.aria-label]="ariaLabel"\n role="tablist">\n <li *ngFor="let tabz of tabs; let i = index" [ngClass]="[\'nav-item\', tabz.customClass || \'\']"\n [class.active]="tabz.active" [class.disabled]="tabz.disabled" (keydown)="keyNavActions($event, i)">\n <a href="javascript:void(0);" class="nav-link" role="tab"\n [attr.aria-controls]="tabz.id ? tabz.id : \'\'"\n [attr.aria-selected]="!!tabz.active"\n [attr.id]="tabz.id ? tabz.id + \'-link\' : \'\'"\n [class.active]="tabz.active" [class.disabled]="tabz.disabled"\n (click)="tabz.active = true">\n <span [ngTransclude]="tabz.headingRef">{{ tabz.heading }}</span>\n <span *ngIf="tabz.removable" (click)="$event.preventDefault(); removeTab(tabz);" class="bs-remove-tab"> &#10060;</span>\n </a>\n </li>\n</ul>\n<div class="tab-content">\n <ng-content></ng-content>\n</div>\n',styles:[":host .nav-tabs .nav-item.disabled a.disabled{cursor:default}"]}]}],t.ctorParameters=function(){return[{type:re},{type:i.Renderer2},{type:i.ElementRef}]},t.propDecorators={vertical:[{type:i.Input}],justified:[{type:i.Input}],type:[{type:i.Input}],clazz:[{type:i.HostBinding,args:["class.tab-container"]}]},t}();var ae=function(){function t(t,e,n){this.elementRef=e,this.renderer=n,this.selectTab=new i.EventEmitter,this.deselect=new i.EventEmitter,this.removed=new i.EventEmitter,this.addClass=!0,this.role="tabpanel",this.tabset=t,this.tabset.addTab(this)}return Object.defineProperty(t.prototype,"customClass",{get:function(){return this._customClass},set:function(t){var e=this;this.customClass&&this.customClass.split(" ").forEach(function(t){e.renderer.removeClass(e.elementRef.nativeElement,t)}),this._customClass=t?t.trim():null,this.customClass&&this.customClass.split(" ").forEach(function(t){e.renderer.addClass(e.elementRef.nativeElement,t)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},set:function(t){var e=this;this._active!==t&&(this.disabled&&t||!t?this._active&&!t&&(this.deselect.emit(this),this._active=t):(this._active=t,this.selectTab.emit(this),this.tabset.tabs.forEach(function(t){t!==e&&(t.active=!1)})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledby",{get:function(){return this.id?this.id+"-link":""},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.removable=this.removable},t.prototype.ngOnDestroy=function(){this.tabset.removeTab(this,{reselect:!1,emit:!1})},t.decorators=[{type:i.Directive,args:[{selector:"tab, [tab]"}]}],t.ctorParameters=function(){return[{type:ie},{type:i.ElementRef},{type:i.Renderer2}]},t.propDecorators={heading:[{type:i.Input}],id:[{type:i.HostBinding,args:["attr.id"]},{type:i.Input}],disabled:[{type:i.Input}],removable:[{type:i.Input}],customClass:[{type:i.Input}],active:[{type:i.HostBinding,args:["class.active"]},{type:i.Input}],selectTab:[{type:i.Output}],deselect:[{type:i.Output}],removed:[{type:i.Output}],addClass:[{type:i.HostBinding,args:["class.tab-pane"]}],role:[{type:i.HostBinding,args:["attr.role"]}],ariaLabelledby:[{type:i.HostBinding,args:["attr.aria-labelledby"]}]},t}();var oe=function(){function t(t,e){e.headingRef=t}return t.decorators=[{type:i.Directive,args:[{selector:"[tabHeading]"}]}],t.ctorParameters=function(){return[{type:i.TemplateRef},{type:ae}]},t}();var se=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[re]}},t.decorators=[{type:i.NgModule,args:[{imports:[r.CommonModule],declarations:[ne,ae,ie,oe],exports:[ae,ie,oe,ne]}]}],t}(),ue=new tt(X);function le(t){return!Object(U.a)(t)&&t-parseFloat(t)+1>=0}function ce(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}var de=function(){function t(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}return t.decorators=[{type:i.Injectable}],t}();var he=function(){function t(t){Object.assign(this,t)}return Object.defineProperty(t.prototype,"isBs3",{get:function(){return h()},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.classMap={in:!1,fade:!1},this.classMap[this.placement]=!0,this.classMap["tooltip-"+this.placement]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)},t.decorators=[{type:i.Component,args:[{selector:"bs-tooltip-container",changeDetection:i.ChangeDetectionStrategy.OnPush,host:{"[class]":'"tooltip in tooltip-" + placement + " " + "bs-tooltip-" + placement + " " + placement + " " + containerClass',"[class.show]":"!isBs3","[class.bs3]":"isBs3","[attr.id]":"this.id",role:"tooltip"},template:'\n <div class="tooltip-arrow arrow"></div>\n <div class="tooltip-inner"><ng-content></ng-content></div>\n ',styles:["\n :host.tooltip {\n display: block;\n pointer-events: none;\n }\n :host.bs3.tooltip.top>.arrow {\n margin-left: -2px;\n }\n :host.bs3.tooltip.bottom {\n margin-top: 0px;\n }\n :host.bs3.bs-tooltip-left, :host.bs3.bs-tooltip-right{\n margin: 0px;\n }\n :host.bs3.bs-tooltip-right .arrow, :host.bs3.bs-tooltip-left .arrow {\n margin: .3rem 0;\n }\n "]}]}],t.ctorParameters=function(){return[{type:de}]},t}();var fe=0,me=function(){function t(t,e,n,r,a,o){this._elementRef=r,this._renderer=a,this._positionService=o,this.tooltipId=fe++,this.tooltipChange=new i.EventEmitter,this.containerClass="",this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new i.EventEmitter,this._tooltip=e.createLoader(this._elementRef,t,this._renderer).provide({provide:de,useValue:n}),Object.assign(this,n),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}return Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._tooltip.isShown},set:function(t){t?this.show():this.hide()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"htmlContent",{set:function(t){g("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_placement",{set:function(t){g("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isOpen",{get:function(){return g("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen},set:function(t){g("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_enable",{get:function(){return g("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled},set:function(t){g("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_appendToBody",{get:function(){return g('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container},set:function(t){g('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=t?"body":this.container},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_popupClass",{set:function(t){g("tooltipClass deprecated")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_tooltipContext",{set:function(t){g("tooltipContext deprecated")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_tooltipPopupDelay",{set:function(t){g("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_tooltipTrigger",{get:function(){return g("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers},set:function(t){g("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(t||"").toString()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._tooltip.listen({triggers:this.triggers,show:function(){return t.show()}}),this.tooltipChange.subscribe(function(e){e||t._tooltip.hide()}),this.onShown.subscribe(function(){t.setAriaDescribedBy()}),this.onHidden.subscribe(function(){t.setAriaDescribedBy()})},t.prototype.setAriaDescribedBy=function(){this._ariaDescribedby=this.isOpen?"tooltip-"+this.tooltipId:null,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")},t.prototype.toggle=function(){if(this.isOpen)return this.hide();this.show()},t.prototype.show=function(){var t=this;if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition}}}),!(this.isOpen||this.isDisabled||this._delayTimeoutId)&&this.tooltip){var e=function(){t._delayTimeoutId&&(t._delayTimeoutId=void 0),t._tooltip.attach(he).to(t.container).position({attachment:t.placement}).show({content:t.tooltip,placement:t.placement,containerClass:t.containerClass,id:"tooltip-"+t.tooltipId})},n=function(){t._tooltipCancelShowFn&&t._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=function(t,e,n){void 0===t&&(t=0);var r=-1;return le(e)?r=Number(e)<1?1:Number(e):Object(M.a)(e)&&(n=e),Object(M.a)(n)||(n=ue),new b.a(function(e){var i=le(t)?t:+t-n.now();return n.schedule(ce,i,{index:0,period:r,subscriber:e})})}(this.delay).subscribe(function(){e(),n()}),this.triggers&&u(this.triggers).forEach(function(e){t._tooltipCancelShowFn=t._renderer.listen(t._elementRef.nativeElement,e.close,function(){t._delaySubscription.unsubscribe(),n()})})):e()}},t.prototype.hide=function(){var t=this;this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance.classMap.in=!1,setTimeout(function(){t._tooltip.hide()},this.tooltipFadeDuration))},t.prototype.ngOnDestroy=function(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()},t.decorators=[{type:i.Directive,args:[{selector:"[tooltip], [tooltipHtml]",exportAs:"bs-tooltip"}]}],t.ctorParameters=function(){return[{type:i.ViewContainerRef},{type:Pt},{type:de},{type:i.ElementRef},{type:i.Renderer2},{type:At}]},t.propDecorators={adaptivePosition:[{type:i.Input}],tooltip:[{type:i.Input}],tooltipChange:[{type:i.Output}],placement:[{type:i.Input}],triggers:[{type:i.Input}],container:[{type:i.Input}],containerClass:[{type:i.Input}],isOpen:[{type:i.Input}],isDisabled:[{type:i.Input}],delay:[{type:i.Input}],onShown:[{type:i.Output}],onHidden:[{type:i.Output}],htmlContent:[{type:i.Input,args:["tooltipHtml"]}],_placement:[{type:i.Input,args:["tooltipPlacement"]}],_isOpen:[{type:i.Input,args:["tooltipIsOpen"]}],_enable:[{type:i.Input,args:["tooltipEnable"]}],_appendToBody:[{type:i.Input,args:["tooltipAppendToBody"]}],tooltipAnimation:[{type:i.Input}],_popupClass:[{type:i.Input,args:["tooltipClass"]}],_tooltipContext:[{type:i.Input,args:["tooltipContext"]}],_tooltipPopupDelay:[{type:i.Input,args:["tooltipPopupDelay"]}],tooltipFadeDuration:[{type:i.Input}],_tooltipTrigger:[{type:i.Input,args:["tooltipTrigger"]}],tooltipStateChanged:[{type:i.Output}]},function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);a>3&&o&&Object.defineProperty(e,n,o)}([function(t,e){var n=" __"+e+"Value";Object.defineProperty(t,e,{get:function(){return this[n]},set:function(t){var r=this[n];this[n]=t,r!==t&&this[e+"Change"]&&this[e+"Change"].emit(t)}})},function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],t.prototype,"tooltip",void 0),t}();var pe=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[de,Pt,At]}},t.decorators=[{type:i.NgModule,args:[{imports:[r.CommonModule],declarations:[me,he],exports:[me],entryComponents:[he]}]}],t}(),ge=n(35),ve=n(16),_e=n(19),ye=n(18),be=n(37),Me=n(36),we=n(47),xe=n(41);let ke=class{constructor(t){this._element=t}ngAfterViewInit(){setTimeout(()=>{$(this._element.nativeElement).focus()},100)}};ke=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(i.Directive)({selector:"[autoFocus]"})],ke);let Le=class{constructor(t){this._element=t}ngAfterViewInit(){setTimeout(()=>this.setDrag(),1e3)}setDrag(){const t=$(this._element.nativeElement).parents(".modal-content");0!==t.length&&$(t[0]).draggable({cursor:"pointer",handle:".modal-header",containment:"body",scroll:!1})}};Le=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(i.Directive)({selector:"[bs-modal-drag]"})],Le);var Se=n(44),Ye=n(43),Te=n(40),De=n(30),Ce=n(7),Ee=n(17),Oe=n(46),Ae=n(45);n.d(e,"a",function(){return je});let je=class{};je=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Object(i.NgModule)({imports:[r.CommonModule,a.FormsModule,ee.forRoot(),se,pe],declarations:[ge.a,Me.a,ye.a,be.a,_e.a,ke,Le,Ee.a],exports:[ge.a],providers:[Ye.a,Oe.a,Ae.a,Se.a,xe.a,Te.a,{provide:ve.b,useValue:ve.a},{provide:Ce.b,useClass:Ce.a},De.a,we.a],entryComponents:[ye.a,_e.a,Me.a,be.a,Ee.a]})],je)},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(82);n.d(e,"a",function(){return r.SecurityChecker})},function(t,e){},function(t,e,n){!function(t){"use strict";t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";var e=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,n){return t<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n){var r={ss:e?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:e?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:e?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===n?e?"хвилина":"хвилину":"h"===n?e?"година":"годину":t+" "+function(t,e){var n=t.split("_");return e%10==1&&e%100!=11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}(r[n],+t)}function n(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(t,e){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};if(!t)return n.nominative;var r=/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative";return n[r][t.day()]},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:e,m:e,mm:e,h:"годину",hh:e,d:"день",dd:e,M:"місяць",MM:e,y:"рік",yy:e},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(t,e){return 12===t&&(t=0),"يېرىم كېچە"===e||"سەھەر"===e||"چۈشتىن بۇرۇن"===e?t:"چۈشتىن كېيىن"===e||"كەچ"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var r=100*t+e;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"-كۈنى";case"w":case"W":return t+"-ھەپتە";default:return t}},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n míut","'iens míut"],mm:[t+" míuts",t+" míuts"],h:["'n þora","'iensa þora"],hh:[t+" þoras",t+" þoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return r?i[n][0]:e?i[n][0]:i[n][1]}t.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,n){return t>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(t,n){switch(n){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'ıncı";var r=t%10,i=t%100-r,a=t>=100?100:null;return t+(e[r]||e[i]||e[a])}},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";var e="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(t,n,r,i){var a=function(t){var n=Math.floor(t%1e3/100),r=Math.floor(t%100/10),i=t%10,a="";return n>0&&(a+=e[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+e[r]+"maH"),i>0&&(a+=(""!==a?" ":"")+e[i]),""===a?"pagh":a}(t);switch(r){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu’":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(t){return"หลังเที่ยง"===t},meridiem:function(t,e,n){return t<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};t.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(t,e){return 12===t&&(t=0),"шаб"===e?t<4?t:t+12:"субҳ"===e?t:"рӯз"===e?t>=11?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(t){var n=t%10,r=t>=100?100:null;return t+(e[t]||e[n]||e[r])},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(t,e){return 12===t&&(t=0),"రాత్రి"===e?t<4?t:t+12:"ఉదయం"===e?t:"మధ్యాహ్నం"===e?t>=10?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(t){return t+"வது"},preparse:function(t){return t.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(t,e,n){return t<2?" யாமம்":t<6?" வைகறை":t<10?" காலை":t<14?" நண்பகல்":t<18?" எற்பாடு":t<22?" மாலை":" யாமம்"},meridiemHour:function(t,e){return 12===t&&(t=0),"யாமம்"===e?t<2?t:t+12:"வைகறை"===e||"காலை"===e?t:"நண்பகல்"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(t){var e=t%10,n=1==~~(t%100/10)?"e":1===e?"a":2===e?"a":"e";return t+n},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,n){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,r){var i=e.words[r];return 1===r.length?n?i[0]:i[1]:t+" "+e.correctGrammaticalCase(t,i)}};t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"дан",dd:e.translate,M:"месец",MM:e.translate,y:"годину",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,r){var i=e.words[r];return 1===r.length?n?i[0]:i[1]:t+" "+e.correctGrammaticalCase(t,i)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,n){return t<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i=t+" ";switch(n){case"s":return e||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===t?e?"sekundo":"sekundi":2===t?e||r?"sekundi":"sekundah":t<5?e||r?"sekunde":"sekundah":"sekund";case"m":return e?"ena minuta":"eno minuto";case"mm":return i+=1===t?e?"minuta":"minuto":2===t?e||r?"minuti":"minutama":t<5?e||r?"minute":"minutami":e||r?"minut":"minutami";case"h":return e?"ena ura":"eno uro";case"hh":return i+=1===t?e?"ura":"uro":2===t?e||r?"uri":"urama":t<5?e||r?"ure":"urami":e||r?"ur":"urami";case"d":return e||r?"en dan":"enim dnem";case"dd":return i+=1===t?e||r?"dan":"dnem":2===t?e||r?"dni":"dnevoma":e||r?"dni":"dnevi";case"M":return e||r?"en mesec":"enim mesecem";case"MM":return i+=1===t?e||r?"mesec":"mesecem":2===t?e||r?"meseca":"mesecema":t<5?e||r?"mesece":"meseci":e||r?"mesecev":"meseci";case"y":return e||r?"eno leto":"enim letom";case"yy":return i+=1===t?e||r?"leto":"letom":2===t?e||r?"leti":"letoma":t<5?e||r?"leta":"leti":e||r?"let":"leti"}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";var e="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(t){return t>1&&t<5}function i(t,e,n,i){var a=t+" ";switch(n){case"s":return e||i?"pár sekúnd":"pár sekundami";case"ss":return e||i?a+(r(t)?"sekundy":"sekúnd"):a+"sekundami";case"m":return e?"minúta":i?"minútu":"minútou";case"mm":return e||i?a+(r(t)?"minúty":"minút"):a+"minútami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?a+(r(t)?"hodiny":"hodín"):a+"hodinami";case"d":return e||i?"deň":"dňom";case"dd":return e||i?a+(r(t)?"dni":"dní"):a+"dňami";case"M":return e||i?"mesiac":"mesiacom";case"MM":return e||i?a+(r(t)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return e||i?"rok":"rokom";case"yy":return e||i?a+(r(t)?"roky":"rokov"):a+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(t){return t+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,n){return t>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,n){return t<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n){var r={ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===n?e?"минута":"минуту":t+" "+function(t,e){var n=t.split("_");return e%10==1&&e%100!=11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}(r[n],+t)}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:e,m:e,mm:e,h:"час",hh:e,d:"день",dd:e,M:"месяц",MM:e,y:"год",yy:e},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n){var r=" ";return(t%100>=20||t>=100&&t%100==0)&&(r=" de "),t+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:e,m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function i(t,e,n){var i=t+" ";switch(n){case"ss":return i+(r(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return i+(r(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return i+(r(t)?"godziny":"godzin");case"MM":return i+(r(t)?"miesiące":"miesięcy");case"yy":return i+(r(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,r){return t?""===r?"("+n[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(r)?n[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(t){return t.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ਰਾਤ"===e?t<4?t:t+12:"ਸਵੇਰ"===e?t:"ਦੁਪਹਿਰ"===e?t>=10?t:t+12:"ਸ਼ਾਮ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ਰਾਤ":t<10?"ਸਵੇਰ":t<17?"ਦੁਪਹਿਰ":t<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?t>=10?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,n){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(t){return t.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(t,e,n,r){var i="";if(e)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,t)}t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात्री"===e?t<4?t:t+12:"सकाळी"===e?t:"दुपारी"===e?t>=10?t:t+12:"सायंकाळी"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"रात्री":t<10?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(t,e){return 12===t&&(t=0),"രാത്രി"===e&&t>=4||"ഉച്ച കഴിഞ്ഞ്"===e||"വൈകുന്നേരം"===e?t+12:t},meridiem:function(t,e,n){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,r){var i=e.words[r];return 1===r.length?n?i[0]:i[1]:t+" "+e.correctGrammaticalCase(t,i)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(t,e,n){return n?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function r(t,r,i){return t+" "+n(e[i],t,r)}function i(t,r,i){return n(e[i],t,r)}t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(t,e){return e?"dažas sekundes":"dažām sekundēm"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(t,e,n,r){return e?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(t){return t%10==0||t>10&&t<20}function i(t){return e[t].split("_")}function a(t,e,a,o){var s=t+" ";return 1===t?s+n(0,e,a[0],o):e?s+(r(t)?i(a)[1]:i(a)[0]):o?s+i(a)[1]:s+(r(t)?i(a)[1]:i(a)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(t,e,n,r){return e?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(t){return"ຕອນແລງ"===t},meridiem:function(t,e,n){return t<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(t){return"ທີ່"+t}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?i[n][0]:i[n][1]}function n(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10,r=t/10;return n(0===e?r:e)}if(t<1e4){for(;t>=10;)t/=10;return n(t)}return n(t/=1e3)}t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(t){return n(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return n(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(t){var n=t%10,r=t>=100?100:null;return t+(e[t]||e[n]||e[r])},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"일";case"M":return t+"월";case"w":case"W":return t+"주";default:return t}},meridiemParse:/오전|오후/,isPM:function(t){return"오후"===t},meridiem:function(t,e,n){return t<12?"오전":"오후"}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(t){return t.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?t>=10?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};t.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(t){var n=t%10,r=t>=100?100:null;return t+(e[t]||e[n]||e[r])},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return/(წამი|წუთი|საათი|წელი)/.test(t)?t.replace(/ი$/,"ში"):t+"ში"},past:function(t){return/(წამი|წუთი|საათი|დღე|თვე)/.test(t)?t.replace(/(ი|ე)$/,"ის უკან"):/წელი/.test(t)?t.replace(/წელი$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(t){return 0===t?t:1===t?t+"-ლი":t<20||t<=100&&t%20==0||t%100==0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(t,e){return 12===t&&(t=0),"enjing"===e?t:"siyang"===e?t>=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"enjing":t<15?"siyang":t<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,n){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t){return t%100==11||t%10!=1}function n(t,n,r,i){var a=t+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return e(t)?a+(n||i?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return e(t)?a+(n||i?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return e(t)?a+(n||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return e(t)?n?a+"dagar":a+(i?"daga":"dögum"):n?a+"dagur":a+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return e(t)?n?a+"mánuðir":a+(i?"mánuði":"mánuðum"):n?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return e(t)?a+(n||i?"ár":"árum"):a+(n||i?"ár":"ári")}}t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(t){return/^(ցերեկվա|երեկոյան)$/.test(t)},meridiem:function(t){return t<4?"գիշերվա":t<12?"առավոտվա":t<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-ին":t+"-րդ";default:return t}},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";var e="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(t,e,n,r){var i=t;switch(n){case"s":return r||e?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||e)?" másodperc":" másodperce";case"m":return"egy"+(r||e?" perc":" perce");case"mm":return i+(r||e?" perc":" perce");case"h":return"egy"+(r||e?" óra":" órája");case"hh":return i+(r||e?" óra":" órája");case"d":return"egy"+(r||e?" nap":" napja");case"dd":return i+(r||e?" nap":" napja");case"M":return"egy"+(r||e?" hónap":" hónapja");case"MM":return i+(r||e?" hónap":" hónapja");case"y":return"egy"+(r||e?" év":" éve");case"yy":return i+(r||e?" év":" éve")}return""}function r(t){return(t?"":"[múlt] ")+"["+e[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,n){return t<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n){var r=t+" ";switch(n){case"ss":return r+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return r+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return r+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return r+=1===t?"dan":"dana";case"MM":return r+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return r+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात"===e?t<4?t:t+12:"सुबह"===e?t:"दोपहर"===e?t>=10?t:t+12:"शाम"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"रात":t<10?"सुबह":t<17?"दोपहर":t<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t%10==0&&10!==t?t+" שנה":t+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(t){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(t)},meridiem:function(t,e,n){return t<5?"לפנות בוקר":t<10?"בבוקר":t<12?n?'לפנה"צ':"לפני הצהריים":t<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka horan","ek hor"],hh:[t+" horanim",t+" hor"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?i[n][0]:i[n][1]}t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){var e=1===t?"d":t%10==2?"na":"mh";return t+e},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",e[7],e[8],e[9]];function r(t,r,i,a){var o="";switch(i){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":return a?"sekunnin":"sekuntia";case"m":return a?"minuutin":"minuutti";case"mm":o=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":o=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":o=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":o=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":o=a?"vuoden":"vuotta"}return o=function(t,r){return t<10?r?n[t]:e[t]:t}(t,a)+" "+o}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(t){return/بعد از ظهر/.test(t)},meridiem:function(t,e,n){return t<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(t){return t.replace(/[۰-۹]/g,function(t){return n[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(1))},function(t,e,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,n){return t>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,n){return t>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var n=this._calendarEl[t],r=e&&e.hours();return function(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}(n)&&(n=n.apply(e)),n.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(t){return"މފ"===t},meridiem:function(t,e,n){return t<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[n][0]:i[n][1]}t.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[n][0]:i[n][1]}t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[n][0]:i[n][1]}t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e=t,n="";return e>20?n=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(n=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),t+n},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(t){var e=/сехет$/i.exec(t)?"рен":/ҫул$/i.exec(t)?"тан":"ран";return t+e},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";var e="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function r(t){return t>1&&t<5&&1!=~~(t/10)}function i(t,e,n,i){var a=t+" ";switch(n){case"s":return e||i?"pár sekund":"pár sekundami";case"ss":return e||i?a+(r(t)?"sekundy":"sekund"):a+"sekundami";case"m":return e?"minuta":i?"minutu":"minutou";case"mm":return e||i?a+(r(t)?"minuty":"minut"):a+"minutami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?a+(r(t)?"hodiny":"hodin"):a+"hodinami";case"d":return e||i?"den":"dnem";case"dd":return e||i?a+(r(t)?"dny":"dní"):a+"dny";case"M":return e||i?"měsíc":"měsícem";case"MM":return e||i?a+(r(t)?"měsíce":"měsíců"):a+"měsíci";case"y":return e||i?"rok":"rokem";case"yy":return e||i?a+(r(t)?"roky":"let"):a+"lety"}}t.defineLocale("cs",{months:e,monthsShort:n,monthsParse:function(t,e){var n,r=[];for(n=0;n<12;n++)r[n]=new RegExp("^"+t[n]+"$|^"+e[n]+"$","i");return r}(e,n),shortMonthsParse:function(t){var e,n=[];for(e=0;e<12;e++)n[e]=new RegExp("^"+t[e]+"$","i");return n}(n),longMonthsParse:function(t){var e,n=[];for(e=0;e<12;e++)n[e]=new RegExp("^"+t[e]+"$","i");return n}(e),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n){var r=t+" ";switch(n){case"ss":return r+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return r+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return r+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return r+=1===t?"dan":"dana";case"MM":return r+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return r+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],t)}t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(function t(e){return e>9?t(e%10):e}(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(t){var e=1===t?"añ":"vet";return t+e},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(t){return t.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(t,e){return 12===t&&(t=0),"མཚན་མོ"===e&&t>=4||"ཉིན་གུང"===e&&t<5||"དགོང་དག"===e?t+12:t},meridiem:function(t,e,n){return t<4?"མཚན་མོ":t<10?"ཞོགས་ཀས":t<17?"ཉིན་གུང":t<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e&&t>=4||"দুপুর"===e&&t<5||"বিকাল"===e?t+12:t},meridiem:function(t,e,n){return t<4?"রাত":t<10?"সকাল":t<17?"দুপুর":t<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";function e(t,e,n){var r={ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:e?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===n?e?"хвіліна":"хвіліну":"h"===n?e?"гадзіна":"гадзіну":t+" "+function(t,e){var n=t.split("_");return e%10==1&&e%100!=11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}(r[n],+t)}t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:e,mm:e,h:e,hh:e,d:"дзень",dd:e,M:"месяц",MM:e,y:"год",yy:e},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(t){return/^(дня|вечара)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(t){return/^(gündüz|axşam)$/.test(t)},meridiem:function(t,e,n){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var n=t%10,r=t%100-n,i=t>=100?100:null;return t+(e[n]||e[r]||e[i])},week:{dow:1,doy:7}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return n[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(t){return function(e,i,a,o){var s=n(e),u=r[t][n(e)];return 2===s&&(u=u[i?0:1]),u.replace(/%d/i,e)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n(1))},function(t,e,n){!function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(t){return function(e,n,a,o){var s=r(e),u=i[t][r(e)];return 2===s&&(u=u[n?0:1]),u.replace(/%d/i,e)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return n[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(1))},function(t,e,n){!function(t){"use strict";t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(1))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(213);n.d(e,"c",function(){return r.HistoricalCurveModel});var i=n(212);n.d(e,"b",function(){return i.HistoricalCurveDisplaySettings});var a=n(211);n.d(e,"a",function(){return a.HistoricalCurveDataSettings});var o=n(210);n.d(e,"d",function(){return o.HistroicalCurveChannelModel})},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r;n.d(e,"a",function(){return r}),function(t){t[t.DownToUp=0]="DownToUp",t[t.UpToDown=1]="UpToDown",t[t.LeftToRight=2]="LeftToRight",t[t.RightToLeft=3]="RightToLeft"}(r||(r={}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=r},function(t,e){t.exports=i},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(14),i=n(266),a=n(53);function o(t,e){return e?Object(a.a)(t,e):new r.a(Object(i.a)(t))}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",function(){return r})},function(t,e,n){var r={"./af":206,"./af.js":206,"./ar":205,"./ar-dz":204,"./ar-dz.js":204,"./ar-kw":203,"./ar-kw.js":203,"./ar-ly":202,"./ar-ly.js":202,"./ar-ma":201,"./ar-ma.js":201,"./ar-sa":200,"./ar-sa.js":200,"./ar-tn":199,"./ar-tn.js":199,"./ar.js":205,"./az":198,"./az.js":198,"./be":197,"./be.js":197,"./bg":196,"./bg.js":196,"./bm":195,"./bm.js":195,"./bn":194,"./bn.js":194,"./bo":193,"./bo.js":193,"./br":192,"./br.js":192,"./bs":191,"./bs.js":191,"./ca":190,"./ca.js":190,"./cs":189,"./cs.js":189,"./cv":188,"./cv.js":188,"./cy":187,"./cy.js":187,"./da":186,"./da.js":186,"./de":185,"./de-at":184,"./de-at.js":184,"./de-ch":183,"./de-ch.js":183,"./de.js":185,"./dv":182,"./dv.js":182,"./el":181,"./el.js":181,"./en-au":180,"./en-au.js":180,"./en-ca":179,"./en-ca.js":179,"./en-gb":178,"./en-gb.js":178,"./en-ie":177,"./en-ie.js":177,"./en-il":176,"./en-il.js":176,"./en-nz":175,"./en-nz.js":175,"./eo":174,"./eo.js":174,"./es":173,"./es-do":172,"./es-do.js":172,"./es-us":171,"./es-us.js":171,"./es.js":173,"./et":170,"./et.js":170,"./eu":169,"./eu.js":169,"./fa":168,"./fa.js":168,"./fi":167,"./fi.js":167,"./fo":166,"./fo.js":166,"./fr":165,"./fr-ca":164,"./fr-ca.js":164,"./fr-ch":163,"./fr-ch.js":163,"./fr.js":165,"./fy":162,"./fy.js":162,"./gd":161,"./gd.js":161,"./gl":160,"./gl.js":160,"./gom-latn":159,"./gom-latn.js":159,"./gu":158,"./gu.js":158,"./he":157,"./he.js":157,"./hi":156,"./hi.js":156,"./hr":155,"./hr.js":155,"./hu":154,"./hu.js":154,"./hy-am":153,"./hy-am.js":153,"./id":152,"./id.js":152,"./is":151,"./is.js":151,"./it":150,"./it.js":150,"./ja":149,"./ja.js":149,"./jv":148,"./jv.js":148,"./ka":147,"./ka.js":147,"./kk":146,"./kk.js":146,"./km":145,"./km.js":145,"./kn":144,"./kn.js":144,"./ko":143,"./ko.js":143,"./ky":142,"./ky.js":142,"./lb":141,"./lb.js":141,"./lo":140,"./lo.js":140,"./lt":139,"./lt.js":139,"./lv":138,"./lv.js":138,"./me":137,"./me.js":137,"./mi":136,"./mi.js":136,"./mk":135,"./mk.js":135,"./ml":134,"./ml.js":134,"./mr":133,"./mr.js":133,"./ms":132,"./ms-my":131,"./ms-my.js":131,"./ms.js":132,"./mt":130,"./mt.js":130,"./my":129,"./my.js":129,"./nb":128,"./nb.js":128,"./ne":127,"./ne.js":127,"./nl":126,"./nl-be":125,"./nl-be.js":125,"./nl.js":126,"./nn":124,"./nn.js":124,"./pa-in":123,"./pa-in.js":123,"./pl":122,"./pl.js":122,"./pt":121,"./pt-br":120,"./pt-br.js":120,"./pt.js":121,"./ro":119,"./ro.js":119,"./ru":118,"./ru.js":118,"./sd":117,"./sd.js":117,"./se":116,"./se.js":116,"./si":115,"./si.js":115,"./sk":114,"./sk.js":114,"./sl":113,"./sl.js":113,"./sq":112,"./sq.js":112,"./sr":111,"./sr-cyrl":110,"./sr-cyrl.js":110,"./sr.js":111,"./ss":109,"./ss.js":109,"./sv":108,"./sv.js":108,"./sw":107,"./sw.js":107,"./ta":106,"./ta.js":106,"./te":105,"./te.js":105,"./tet":104,"./tet.js":104,"./tg":103,"./tg.js":103,"./th":102,"./th.js":102,"./tl-ph":101,"./tl-ph.js":101,"./tlh":100,"./tlh.js":100,"./tr":99,"./tr.js":99,"./tzl":98,"./tzl.js":98,"./tzm":97,"./tzm-latn":96,"./tzm-latn.js":96,"./tzm.js":97,"./ug-cn":95,"./ug-cn.js":95,"./uk":94,"./uk.js":94,"./ur":93,"./ur.js":93,"./uz":92,"./uz-latn":91,"./uz-latn.js":91,"./uz.js":92,"./vi":90,"./vi.js":90,"./x-pseudo":89,"./x-pseudo.js":89,"./yo":88,"./yo.js":88,"./zh-cn":87,"./zh-cn.js":87,"./zh-hk":86,"./zh-hk.js":86,"./zh-tw":85,"./zh-tw.js":85};function i(t){var e=a(t);return n(e)}function a(t){var e=r[t];if(!(e+1)){var n=new Error('Cannot find module "'+t+'".');throw n.code="MODULE_NOT_FOUND",n}return e}i.keys=function(){return Object.keys(r)},i.resolve=a,t.exports=i,i.id=269},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";n.r(e);var r=n(35);n.d(e,"GuiComponent",function(){return r.a});var i=n(28);n.d(e,"GuiView",function(){return i.a});var a=n(84);n.d(e,"GuiContext",function(){return a.GuiContext});var o=n(42);n.d(e,"StringifyingMap",function(){return o.a});var s=n(12);n.d(e,"ConfigStore",function(){return s.a}),n.d(e,"Graph",function(){return s.d}),n.d(e,"GraphResult",function(){return s.e}),n.d(e,"GraphType",function(){return s.g}),n.d(e,"GraphStore",function(){return s.f}),n.d(e,"ViewStore",function(){return s.n}),n.d(e,"ViewModel",function(){return s.m}),n.d(e,"ImageStore",function(){return s.k}),n.d(e,"HistoryDataStore",function(){return s.i}),n.d(e,"HistoryDataModel",function(){return s.h}),n.d(e,"HistoryDataValue",function(){return s.j}),n.d(e,"GetHistoryDataArgs",function(){return s.b}),n.d(e,"VariableStore",function(){return s.l}),n.d(e,"GetVariableNameArgs",function(){return s.c});var u=n(4);n.d(e,"VariableCommunicator",function(){return u.a}),n.d(e,"VariableValue",function(){return u.e}),n.d(e,"VariableState",function(){return u.c}),n.d(e,"VariableDefinition",function(){return u.b}),n.d(e,"VariableStateEnum",function(){return u.d});var l=n(2);for(var c in l)["GuiComponent","GuiView","GuiContext","GuiModule","LOGGER_SERVICE_TOKEN","LoggerService","ConsoleLoggerService","StringifyingMap","ConfigStore","Graph","GraphResult","GraphType","GraphStore","ViewStore","ViewModel","ImageStore","HistoryDataStore","HistoryDataModel","HistoryDataValue","GetHistoryDataArgs","VariableStore","GetVariableNameArgs","VariableCommunicator","VariableValue","VariableState","VariableDefinition","VariableStateEnum","default"].indexOf(c)<0&&function(t){n.d(e,t,function(){return l[t]})}(c);var d=n(9);n.d(e,"Localization",function(){return d.c}),n.d(e,"LOCALIZATION",function(){return d.b}),n.d(e,"DefaultLocalization",function(){return d.a}),n.d(e,"Localization_zh_CN",function(){return d.d});var h=n(83);n.d(e,"SecurityChecker",function(){return h.a});var f=n(6);n.d(e,"Disposable",function(){return f.b}),n.d(e,"ConfigIsEmptyError",function(){return f.a}),n.d(e,"OperationHelper",function(){return f.e}),n.d(e,"GuiConsts",function(){return f.d}),n.d(e,"GraphExtendedStyle",function(){return f.c});var m=n(64);n.d(e,"GuiModule",function(){return m.a});var p=n(61);n.d(e,"GetReleasedGraphStateResult",function(){return p.a}),n.d(e,"GraphStateResult",function(){return p.e}),n.d(e,"GetReleasedGraphStates",function(){return p.b}),n.d(e,"GraphStateKey",function(){return p.d}),n.d(e,"GraphState",function(){return p.c}),n.d(e,"RemoteGraphProtocol",function(){return p.f}),n.d(e,"RemoteGraphStore",function(){return p.g}),n.d(e,"RemoteViewProtocol",function(){return p.l}),n.d(e,"RemoteViewStore",function(){return p.m}),n.d(e,"ViewResult",function(){return p.n}),n.d(e,"RemoteImageProtocol",function(){return p.h}),n.d(e,"RemoteImageStore",function(){return p.i}),n.d(e,"RemoteVariableCommunicator",function(){return p.j}),n.d(e,"RemoteVariableProtocol",function(){return p.k});var g=n(60);n.d(e,"WeatherService",function(){return g.g}),n.d(e,"PermissionChecker",function(){return g.c}),n.d(e,"CreateOperationRecordArgs",function(){return g.a}),n.d(e,"OperationRecordService",function(){return g.b}),n.d(e,"VariableOptionModel",function(){return g.d}),n.d(e,"VideoService",function(){return g.e}),n.d(e,"VideoUrl",function(){return g.f});var v=n(7);n.d(e,"LOGGER_SERVICE_TOKEN",function(){return v.b}),n.d(e,"LoggerService",function(){return v.c}),n.d(e,"ConsoleLoggerService",function(){return v.a})}])});
47
- //# sourceMappingURL=fc-gui.umd.min.js.map