@bino-bi/bn-template-engine 1.0.0-alpha.0 → 1.0.0-alpha.3

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 (299) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-05a82a77.entry.js +1 -0
  3. package/dist/bn-template-engine/p-0f1504f3.entry.js +1 -0
  4. package/dist/bn-template-engine/p-1970906d.entry.js +1 -0
  5. package/dist/bn-template-engine/p-1dbd339c.entry.js +1 -0
  6. package/dist/bn-template-engine/p-2e68cf09.entry.js +1 -0
  7. package/dist/bn-template-engine/p-31cc6a2d.entry.js +1 -0
  8. package/dist/bn-template-engine/p-37881d05.entry.js +1 -0
  9. package/dist/bn-template-engine/{p-65f8962a.entry.js → p-3b894997.entry.js} +1 -1
  10. package/dist/bn-template-engine/p-50e49732.entry.js +1 -0
  11. package/dist/bn-template-engine/{p-ad94cf63.entry.js → p-6c7c0455.entry.js} +1 -1
  12. package/dist/bn-template-engine/p-6da93eae.entry.js +1 -0
  13. package/dist/bn-template-engine/p-701e1578.entry.js +1 -0
  14. package/dist/bn-template-engine/{p-_LBTIfNN.js → p-8tsCnxIz.js} +1 -1
  15. package/dist/bn-template-engine/p-997b2fe4.entry.js +1 -0
  16. package/dist/bn-template-engine/p-B4ySv9KQ.js +1 -0
  17. package/dist/bn-template-engine/p-BL8gyUwE.js +1 -0
  18. package/dist/bn-template-engine/p-BSfqOkN_.js +1 -0
  19. package/dist/bn-template-engine/{p-Cp4MVxCu.js → p-C0yAPzJz.js} +1 -1
  20. package/dist/bn-template-engine/{p--TeDldm8.js → p-CRLgp9-v.js} +1 -1
  21. package/dist/bn-template-engine/p-CYjZRKdI.js +1 -0
  22. package/dist/bn-template-engine/p-DG-1MR_T.js +1 -0
  23. package/dist/bn-template-engine/{p-CnI71OA9.js → p-DRikHQE-.js} +1 -1
  24. package/dist/bn-template-engine/p-DVMu6dEy.js +1 -0
  25. package/dist/bn-template-engine/p-DtdQCMzj.js +1 -0
  26. package/dist/bn-template-engine/p-JNHhIe7t.js +2 -0
  27. package/dist/bn-template-engine/p-a90f1cbe.entry.js +1 -0
  28. package/dist/bn-template-engine/p-b7bec050.entry.js +1 -0
  29. package/dist/bn-template-engine/p-d7f0cbaf.entry.js +1 -0
  30. package/dist/bn-template-engine/p-dfb61aa5.entry.js +1 -0
  31. package/dist/bn-template-engine/p-ece17f84.entry.js +1 -0
  32. package/dist/bn-template-engine/p-f27995c9.entry.js +1 -0
  33. package/dist/bn-template-engine/p-fd427179.entry.js +1 -0
  34. package/dist/bn-template-engine/p-sqjrku2z.js +1 -0
  35. package/dist/bn-template-engine/{p-CY1RzLjU.js → p-tzFCK9qn.js} +1 -1
  36. package/dist/cjs/{DataFormatDigits-DmTbhF8q.js → DataFormatDigits-DAmZzqbD.js} +1 -1
  37. package/dist/cjs/{DateStringFactory-Dn0aRj2Y.js → DateStringFactory-CcluhpGI.js} +4 -5
  38. package/dist/cjs/{luxon-8hyy5YD7.js → Order-BKoDS21t.js} +310 -0
  39. package/dist/cjs/{SVGVariancesStyleGroup-Czizhngt.js → SVGVariancesStyleGroup-DYYAU-81.js} +1 -1
  40. package/dist/cjs/{StringAdapter-0EbYMkR0.js → StringAdapter-Bneo8T4k.js} +1 -1
  41. package/dist/cjs/bn-asset.cjs.entry.js +5 -6
  42. package/dist/cjs/{bn-body_3.cjs.entry.js → bn-body_4.cjs.entry.js} +360 -27
  43. package/dist/cjs/bn-card.cjs.entry.js +5 -6
  44. package/dist/cjs/bn-chart-structure.cjs.entry.js +17 -22
  45. package/dist/cjs/bn-chart-time.cjs.entry.js +38 -51
  46. package/dist/cjs/bn-component-style.cjs.entry.js +5 -6
  47. package/dist/cjs/bn-context_5.cjs.entry.js +145 -78
  48. package/dist/cjs/bn-dataset.cjs.entry.js +5 -6
  49. package/dist/cjs/bn-grid.cjs.entry.js +8 -11
  50. package/dist/cjs/bn-image.cjs.entry.js +8 -11
  51. package/dist/cjs/bn-internationalization.cjs.entry.js +5 -6
  52. package/dist/cjs/bn-layout-card.cjs.entry.js +3 -3
  53. package/dist/cjs/bn-layout-page.cjs.entry.js +2 -2
  54. package/dist/cjs/bn-message.cjs.entry.js +6 -7
  55. package/dist/cjs/bn-template-engine.cjs.js +2 -2
  56. package/dist/cjs/bn-template.cjs.entry.js +4 -5
  57. package/dist/cjs/bn-text.cjs.entry.js +12 -16
  58. package/dist/cjs/bn-tree.cjs.entry.js +8 -11
  59. package/dist/cjs/{context-protocol-BkYHFkXE.js → context-protocol-CRPmux5D.js} +1 -1
  60. package/dist/cjs/editor-companion.cjs.entry.js +3 -3
  61. package/dist/cjs/ibcs-chart-structure.cjs.entry.js +31 -33
  62. package/dist/cjs/ibcs-chart-time.cjs.entry.js +42 -44
  63. package/dist/cjs/{index-CScBFiS1.js → index-Cjw0q6gP.js} +1 -2
  64. package/dist/cjs/loader.cjs.js +2 -2
  65. package/dist/cjs/{withDataset-ZdN-RRTx.js → scaling-D8sIIKft.js} +68 -3
  66. package/dist/cjs/{withBodyObserver-B0_W1VOf.js → withBodyObserver-C6gLgq_e.js} +2 -2
  67. package/dist/cjs/{componentRegister-C17UFNPh.js → withComponentStatus-_x4LQZ0N.js} +43 -6
  68. package/dist/cjs/{withComponentStyle-C6KHnZHt.js → withComponentStyle-DMtic_9Y.js} +3 -3
  69. package/dist/cjs/{withHasError-Dspb3lIV.js → withHasError-B8gHkfV2.js} +1 -1
  70. package/dist/cjs/{withStyled-Bf-stJTR.js → withStyled-CW30Bh6c.js} +18 -63
  71. package/dist/cjs/{withTranslation-Cz0M5maV.js → withTranslation-CWPAIRjh.js} +3 -3
  72. package/dist/collection/collection-manifest.json +1 -10
  73. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +2 -3
  74. package/dist/collection/components/bn-chart-time/bn-chart-time.js +21 -30
  75. package/dist/collection/components/bn-message/bn-message.js +1 -1
  76. package/dist/collection/components/bn-page/bn-page.js +1 -1
  77. package/dist/collection/components/bn-table/bn-table.js +63 -12
  78. package/dist/collection/components/bn-table/ibcs-table.css +7 -5
  79. package/dist/collection/components/bn-table/ibcs-table.js +22 -1
  80. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +56 -25
  81. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -1
  82. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
  83. package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +9 -1
  84. package/dist/collection/components/bn-template/bn-template.js +1 -1
  85. package/dist/collection/components/bn-text/bn-text.js +1 -1
  86. package/dist/collection/components/bn-title/bn-title.js +1 -9
  87. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +1 -1
  88. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  89. package/dist/collection/utils/DateStringFactory.js +0 -1
  90. package/dist/collection/utils/constants.js +27 -0
  91. package/dist/collection/utils/validate.js +4 -1
  92. package/dist/components/DataFormatDigits.js +1 -1
  93. package/dist/components/DateStringFactory.js +1 -1
  94. package/dist/components/Order.js +1 -1
  95. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  96. package/dist/components/bn-chart-structure.js +1 -1
  97. package/dist/components/bn-chart-time.js +1 -1
  98. package/dist/components/bn-message2.js +1 -1
  99. package/dist/components/bn-page2.js +1 -1
  100. package/dist/components/bn-table.js +1 -1
  101. package/dist/components/bn-template.js +1 -1
  102. package/dist/components/bn-text.js +1 -1
  103. package/dist/components/bn-title2.js +1 -1
  104. package/dist/components/editor-companion.js +1 -1
  105. package/dist/components/ibcs-chart-structure2.js +1 -1
  106. package/dist/components/ibcs-chart-time2.js +1 -1
  107. package/dist/components/ibcs-table2.js +1 -1
  108. package/dist/components/ibcs-title2.js +1 -1
  109. package/dist/components/ibcsRuleSet.js +1 -1
  110. package/dist/components/scaling.js +1 -1
  111. package/dist/components/validate.js +1 -1
  112. package/dist/components/withHasError.js +1 -1
  113. package/dist/esm/{DataFormatDigits-Dt6gpIiZ.js → DataFormatDigits--qIbKvXa.js} +1 -1
  114. package/dist/esm/{DateStringFactory-_Qiv0IvF.js → DateStringFactory-XWdUjsn8.js} +1 -2
  115. package/dist/esm/{luxon-DbyXf6dF.js → Order-sqjrku2z.js} +307 -1
  116. package/dist/esm/{SVGVariancesStyleGroup-DlWgvpzs.js → SVGVariancesStyleGroup-ibg3sLjM.js} +1 -1
  117. package/dist/esm/{StringAdapter-BLvo1Krl.js → StringAdapter-BCLJpQQ8.js} +1 -1
  118. package/dist/esm/bn-asset.entry.js +5 -6
  119. package/dist/esm/{bn-body_3.entry.js → bn-body_4.entry.js} +356 -24
  120. package/dist/esm/bn-card.entry.js +5 -6
  121. package/dist/esm/bn-chart-structure.entry.js +12 -17
  122. package/dist/esm/bn-chart-time.entry.js +31 -44
  123. package/dist/esm/bn-component-style.entry.js +5 -6
  124. package/dist/esm/bn-context_5.entry.js +124 -57
  125. package/dist/esm/bn-dataset.entry.js +5 -6
  126. package/dist/esm/bn-grid.entry.js +8 -11
  127. package/dist/esm/bn-image.entry.js +8 -11
  128. package/dist/esm/bn-internationalization.entry.js +5 -6
  129. package/dist/esm/bn-layout-card.entry.js +3 -3
  130. package/dist/esm/bn-layout-page.entry.js +2 -2
  131. package/dist/esm/bn-message.entry.js +6 -7
  132. package/dist/esm/bn-template-engine.js +3 -3
  133. package/dist/esm/bn-template.entry.js +4 -5
  134. package/dist/esm/bn-text.entry.js +11 -15
  135. package/dist/esm/bn-tree.entry.js +8 -11
  136. package/dist/esm/{context-protocol-DzeqZxg6.js → context-protocol-Bz5klD-F.js} +1 -1
  137. package/dist/esm/editor-companion.entry.js +3 -3
  138. package/dist/esm/ibcs-chart-structure.entry.js +5 -7
  139. package/dist/esm/ibcs-chart-time.entry.js +6 -8
  140. package/dist/esm/{index-B27Ax6P_.js → index-JNHhIe7t.js} +2 -2
  141. package/dist/esm/loader.js +3 -3
  142. package/dist/esm/{withDataset-BT2VQCsG.js → scaling-C6K8FYSF.js} +67 -4
  143. package/dist/esm/{withBodyObserver-gZpZiEIK.js → withBodyObserver-DczL5ia8.js} +2 -2
  144. package/dist/esm/{componentRegister-BtVfu16B.js → withComponentStatus-DodoSXe-.js} +36 -1
  145. package/dist/esm/{withComponentStyle-NaxfakAG.js → withComponentStyle-BerJY64r.js} +3 -3
  146. package/dist/esm/{withHasError-C48fTE2k.js → withHasError-B3QX2emi.js} +1 -1
  147. package/dist/esm/{withStyled-CpUTv74m.js → withStyled-D1fAWJ3g.js} +8 -51
  148. package/dist/esm/{withTranslation-Do4GhleK.js → withTranslation-mimbJdER.js} +3 -3
  149. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +1 -2
  150. package/dist/types/components/bn-table/bn-table.d.ts +11 -7
  151. package/dist/types/components/bn-table/ibcs-table.d.ts +1 -0
  152. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +1 -0
  153. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +3 -0
  154. package/dist/types/components/bn-title/bn-title.d.ts +0 -1
  155. package/dist/types/components.d.ts +22 -403
  156. package/dist/types/utils/constants.d.ts +15 -0
  157. package/dist/types/utils/validate.d.ts +1 -0
  158. package/package.json +2 -3
  159. package/readme.md +0 -1
  160. package/dist/bn-template-engine/assets/gpx/Chasing_Legends.gpx +0 -195076
  161. package/dist/bn-template-engine/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  162. package/dist/bn-template-engine/assets/icons/gpx-finish.png +0 -0
  163. package/dist/bn-template-engine/assets/icons/gpx-shadow.png +0 -0
  164. package/dist/bn-template-engine/assets/icons/gpx-start.png +0 -0
  165. package/dist/bn-template-engine/assets/icons/marker-example.png +0 -0
  166. package/dist/bn-template-engine/assets/icons/pin-icon-end.png +0 -0
  167. package/dist/bn-template-engine/assets/icons/pin-icon-start.png +0 -0
  168. package/dist/bn-template-engine/assets/icons/pin-icon-wpt.png +0 -0
  169. package/dist/bn-template-engine/assets/icons/pin-shadow.png +0 -0
  170. package/dist/bn-template-engine/assets/icons/pin.png +0 -0
  171. package/dist/bn-template-engine/p-0e7dc113.entry.js +0 -1
  172. package/dist/bn-template-engine/p-264c6bad.entry.js +0 -1
  173. package/dist/bn-template-engine/p-326a0902.entry.js +0 -1
  174. package/dist/bn-template-engine/p-38a8bde3.entry.js +0 -1
  175. package/dist/bn-template-engine/p-577eafcd.entry.js +0 -1
  176. package/dist/bn-template-engine/p-5905cc43.entry.js +0 -1
  177. package/dist/bn-template-engine/p-5d155a72.entry.js +0 -1
  178. package/dist/bn-template-engine/p-6b8d1ebf.entry.js +0 -1
  179. package/dist/bn-template-engine/p-7995acb2.entry.js +0 -1
  180. package/dist/bn-template-engine/p-7afe431e.entry.js +0 -1
  181. package/dist/bn-template-engine/p-8014b1ac.entry.js +0 -1
  182. package/dist/bn-template-engine/p-80423fc8.entry.js +0 -1
  183. package/dist/bn-template-engine/p-91e74d42.entry.js +0 -1
  184. package/dist/bn-template-engine/p-930a9e29.entry.js +0 -1
  185. package/dist/bn-template-engine/p-93C9jL8R.js +0 -1
  186. package/dist/bn-template-engine/p-93ff8584.entry.js +0 -1
  187. package/dist/bn-template-engine/p-B0m0U4wJ.js +0 -1
  188. package/dist/bn-template-engine/p-B27Ax6P_.js +0 -2
  189. package/dist/bn-template-engine/p-B79VcHiT.js +0 -1
  190. package/dist/bn-template-engine/p-BBd0ZVLL.js +0 -1
  191. package/dist/bn-template-engine/p-BFatTBqh.js +0 -1
  192. package/dist/bn-template-engine/p-BQp6ZPYW.js +0 -1
  193. package/dist/bn-template-engine/p-BhEQy-2D.js +0 -1
  194. package/dist/bn-template-engine/p-BtVfu16B.js +0 -1
  195. package/dist/bn-template-engine/p-CfWnag33.js +0 -1
  196. package/dist/bn-template-engine/p-DbyXf6dF.js +0 -1
  197. package/dist/bn-template-engine/p-TdL-LRR9.js +0 -1
  198. package/dist/bn-template-engine/p-a342cd3c.entry.js +0 -1
  199. package/dist/bn-template-engine/p-bc37d750.entry.js +0 -1
  200. package/dist/bn-template-engine/p-c9f050bf.entry.js +0 -1
  201. package/dist/bn-template-engine/p-d07a0ca3.entry.js +0 -1
  202. package/dist/bn-template-engine/p-e5f372af.entry.js +0 -1
  203. package/dist/bn-template-engine/p-e620028c.entry.js +0 -1
  204. package/dist/bn-template-engine/p-e81e116a.entry.js +0 -1
  205. package/dist/bn-template-engine/p-eca98070.entry.js +0 -1
  206. package/dist/bn-template-engine/p-ee6de950.entry.js +0 -1
  207. package/dist/bn-template-engine/p-efe0ef1e.entry.js +0 -1
  208. package/dist/bn-template-engine/p-f034f1b8.entry.js +0 -1
  209. package/dist/bn-template-engine/p-f1c1a8a3.entry.js +0 -1
  210. package/dist/bn-template-engine/p-fe573a1a.entry.js +0 -1
  211. package/dist/bn-template-engine/p-kMyLevYy.js +0 -1
  212. package/dist/cjs/Order-B4NIqQWe.js +0 -129
  213. package/dist/cjs/bn-map.cjs.entry.js +0 -425
  214. package/dist/cjs/constants-DHqQXSSd.js +0 -158
  215. package/dist/cjs/ibcs-map.cjs.entry.js +0 -1075
  216. package/dist/cjs/ibcs-title.cjs.entry.js +0 -352
  217. package/dist/cjs/scaling-B23eOtsC.js +0 -67
  218. package/dist/cjs/test-runner-card.cjs.entry.js +0 -27
  219. package/dist/cjs/test-runner-chart-time.cjs.entry.js +0 -230
  220. package/dist/cjs/test-runner-chart.cjs.entry.js +0 -326
  221. package/dist/cjs/test-runner-map.cjs.entry.js +0 -1862
  222. package/dist/cjs/test-runner-table.cjs.entry.js +0 -477
  223. package/dist/cjs/test-runner-time.cjs.entry.js +0 -381
  224. package/dist/cjs/test-runner-title.cjs.entry.js +0 -115
  225. package/dist/cjs/withComponentStatus-BrxL7usr.js +0 -39
  226. package/dist/collection/components/bn-map/bn-map.css +0 -4
  227. package/dist/collection/components/bn-map/bn-map.js +0 -725
  228. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Chasing_Legends.gpx +0 -195076
  229. package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
  230. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-finish.png +0 -0
  231. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-shadow.png +0 -0
  232. package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-start.png +0 -0
  233. package/dist/collection/components/bn-map/ibcs-map/assets/icons/marker-example.png +0 -0
  234. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-end.png +0 -0
  235. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-start.png +0 -0
  236. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-wpt.png +0 -0
  237. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-shadow.png +0 -0
  238. package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin.png +0 -0
  239. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.css +0 -674
  240. package/dist/collection/components/bn-map/ibcs-map/ibcs-map.js +0 -744
  241. package/dist/collection/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.js +0 -9
  242. package/dist/collection/components/bn-map/ibcs-map/utils/model/GpxLayer.js +0 -13
  243. package/dist/collection/components/bn-map/ibcs-map/utils/model/Marker.js +0 -11
  244. package/dist/collection/components/bn-map/ibcs-map/utils/model/index.js +0 -2
  245. package/dist/collection/test-runner/test-runner-card.js +0 -36
  246. package/dist/collection/test-runner/test-runner-chart-time.js +0 -234
  247. package/dist/collection/test-runner/test-runner-chart.js +0 -364
  248. package/dist/collection/test-runner/test-runner-map.js +0 -1901
  249. package/dist/collection/test-runner/test-runner-table.js +0 -469
  250. package/dist/collection/test-runner/test-runner-time.js +0 -399
  251. package/dist/collection/test-runner/test-runner-title.js +0 -108
  252. package/dist/components/bn-map.d.ts +0 -11
  253. package/dist/components/bn-map.js +0 -1
  254. package/dist/components/componentRegister.js +0 -1
  255. package/dist/components/ibcs-map.d.ts +0 -11
  256. package/dist/components/ibcs-map.js +0 -1
  257. package/dist/components/ibcs-map2.js +0 -1
  258. package/dist/components/test-runner-card.d.ts +0 -11
  259. package/dist/components/test-runner-card.js +0 -1
  260. package/dist/components/test-runner-chart-time.d.ts +0 -11
  261. package/dist/components/test-runner-chart-time.js +0 -1
  262. package/dist/components/test-runner-chart.d.ts +0 -11
  263. package/dist/components/test-runner-chart.js +0 -1
  264. package/dist/components/test-runner-map.d.ts +0 -11
  265. package/dist/components/test-runner-map.js +0 -1
  266. package/dist/components/test-runner-table.d.ts +0 -11
  267. package/dist/components/test-runner-table.js +0 -1
  268. package/dist/components/test-runner-time.d.ts +0 -11
  269. package/dist/components/test-runner-time.js +0 -1
  270. package/dist/components/test-runner-title.d.ts +0 -11
  271. package/dist/components/test-runner-title.js +0 -1
  272. package/dist/components/withDataset.js +0 -1
  273. package/dist/esm/Order-B4fpLe_f.js +0 -125
  274. package/dist/esm/bn-map.entry.js +0 -423
  275. package/dist/esm/constants-kMyLevYy.js +0 -158
  276. package/dist/esm/ibcs-map.entry.js +0 -1073
  277. package/dist/esm/ibcs-title.entry.js +0 -350
  278. package/dist/esm/scaling-BBd0ZVLL.js +0 -64
  279. package/dist/esm/test-runner-card.entry.js +0 -25
  280. package/dist/esm/test-runner-chart-time.entry.js +0 -228
  281. package/dist/esm/test-runner-chart.entry.js +0 -324
  282. package/dist/esm/test-runner-map.entry.js +0 -1860
  283. package/dist/esm/test-runner-table.entry.js +0 -475
  284. package/dist/esm/test-runner-time.entry.js +0 -379
  285. package/dist/esm/test-runner-title.entry.js +0 -113
  286. package/dist/esm/withComponentStatus-elELReKt.js +0 -37
  287. package/dist/types/components/bn-map/bn-map.d.ts +0 -122
  288. package/dist/types/components/bn-map/ibcs-map/ibcs-map.d.ts +0 -73
  289. package/dist/types/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.d.ts +0 -8
  290. package/dist/types/components/bn-map/ibcs-map/utils/model/GpxLayer.d.ts +0 -11
  291. package/dist/types/components/bn-map/ibcs-map/utils/model/Marker.d.ts +0 -9
  292. package/dist/types/components/bn-map/ibcs-map/utils/model/index.d.ts +0 -2
  293. package/dist/types/test-runner/test-runner-card.d.ts +0 -3
  294. package/dist/types/test-runner/test-runner-chart-time.d.ts +0 -3
  295. package/dist/types/test-runner/test-runner-chart.d.ts +0 -3
  296. package/dist/types/test-runner/test-runner-map.d.ts +0 -3
  297. package/dist/types/test-runner/test-runner-table.d.ts +0 -3
  298. package/dist/types/test-runner/test-runner-time.d.ts +0 -3
  299. package/dist/types/test-runner/test-runner-title.d.ts +0 -3
@@ -1 +0,0 @@
1
- class t extends Error{}class e extends t{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class n extends t{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class r extends t{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class s extends t{}class i extends t{constructor(t){super(`Invalid unit ${t}`)}}class u extends t{}class o extends t{constructor(){super("Zone is an abstract class")}}const a="numeric",c="short",h="long",l={year:a,month:a,day:a},d={year:a,month:c,day:a},m={year:a,month:c,day:a,weekday:c},f={year:a,month:h,day:a},y={year:a,month:h,day:a,weekday:h},g={hour:a,minute:a},w={hour:a,minute:a,second:a},p={hour:a,minute:a,second:a,timeZoneName:c},M={hour:a,minute:a,second:a,timeZoneName:h},k={hour:a,minute:a,hourCycle:"h23"},S={hour:a,minute:a,second:a,hourCycle:"h23"},N={hour:a,minute:a,second:a,hourCycle:"h23",timeZoneName:c},T={hour:a,minute:a,second:a,hourCycle:"h23",timeZoneName:h},b={year:a,month:a,day:a,hour:a,minute:a},v={year:a,month:a,day:a,hour:a,minute:a,second:a},E={year:a,month:c,day:a,hour:a,minute:a},D={year:a,month:c,day:a,hour:a,minute:a,second:a},O={year:a,month:c,day:a,weekday:c,hour:a,minute:a},$={year:a,month:h,day:a,hour:a,minute:a,timeZoneName:c},I={year:a,month:h,day:a,hour:a,minute:a,second:a,timeZoneName:c},x={year:a,month:h,day:a,weekday:h,hour:a,minute:a,timeZoneName:h},F={year:a,month:h,day:a,weekday:h,hour:a,minute:a,second:a,timeZoneName:h};class Z{get type(){throw new o}get name(){throw new o}get ianaName(){return this.name}get isUniversal(){throw new o}offsetName(t,e){throw new o}formatOffset(t,e){throw new o}offset(t){throw new o}equals(t){throw new o}get isValid(){throw new o}}let L=null;class W extends Z{static get instance(){return null===L&&(L=new W),L}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return ee(t,e,n)}formatOffset(t,e){return ie(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}const A=new Map,C={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},_=new Map;class j extends Z{static create(t){let e=_.get(t);return void 0===e&&_.set(t,e=new j(t)),e}static resetCache(){_.clear(),A.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=j.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return ee(t,e,n,this.name)}formatOffset(t,e){return ie(this.offset(t),e)}offset(t){if(!this.valid)return NaN;const e=new Date(t);if(isNaN(e))return NaN;const n=function(t){let e=A.get(t);return void 0===e&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),A.set(t,e)),e}(this.name);let[r,s,i,u,o,a,c]=n.formatToParts?function(t,e){const n=t.formatToParts(e),r=[];for(let t=0;t<n.length;t++){const{type:e,value:s}=n[t],i=C[e];"era"===e?r[i]=s:Lt(i)||(r[i]=parseInt(s,10))}return r}(n,e):function(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,u,o,a,c,h]=r;return[u,s,i,o,a,c,h]}(n,e);"BC"===u&&(r=1-Math.abs(r));let h=+e;const l=h%1e3;return h-=l>=0?l:1e3+l,(Qt({year:r,month:s,day:i,hour:24===o?0:o,minute:a,second:c,millisecond:0})-h)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let q={};const H=new Map;function z(t,e={}){const n=JSON.stringify([t,e]);let r=H.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(t,e),H.set(n,r)),r}const R=new Map,U=new Map;let J=null;const G=new Map;function P(t){let e=G.get(t);return void 0===e&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),G.set(t,e)),e}const Y=new Map;function V(t,e,n,r){const s=t.listingMode();return"error"===s?null:"en"===s?n(e):r(e)}class B{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...i}=n;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){const n=JSON.stringify([t,e]);let r=R.get(n);return void 0===r&&(r=new Intl.NumberFormat(t,e),R.set(n,r)),r}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return Rt(this.floor?Math.floor(t):Pt(t,3),this.padTo)}}class Q{constructor(t,e,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&j.create(n).valid?(r=n,this.dt=t):(r="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=z(e,s)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class K{constructor(t,e,n){this.opts={style:"long",...n},!e&&Ct()&&(this.rtf=function(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=U.get(s);return void 0===i&&(i=new Intl.RelativeTimeFormat(t,e),U.set(s,i)),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&i){const n="days"===t;switch(e){case 1:return n?"tomorrow":`next ${s[t][0]}`;case-1:return n?"yesterday":`last ${s[t][0]}`;case 0:return n?"today":`this ${s[t][0]}`}}const u=Object.is(e,-0)||e<0,o=Math.abs(e),a=1===o,c=s[t],h=r?a?c[1]:c[2]||c[1]:a?s[t][0]:t;return u?`${o} ${h} ago`:`in ${o} ${h}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const X={firstDay:1,minimalDays:4,weekend:[6,7]};class tt{static fromOpts(t){return tt.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,r,s=!1){const i=t||pt.defaultLocale,u=i||(s?"en-US":J||(J=(new Intl.DateTimeFormat).resolvedOptions().locale,J)),o=e||pt.defaultNumberingSystem,a=n||pt.defaultOutputCalendar,c=Ht(r)||pt.defaultWeekSettings;return new tt(u,o,a,c,i)}static resetCache(){J=null,H.clear(),R.clear(),U.clear(),G.clear(),Y.clear()}static fromObject({locale:t,numberingSystem:e,outputCalendar:n,weekSettings:r}={}){return tt.create(t,e,n,r)}constructor(t,e,n,r,s){const[i,u,o]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,r;try{e=z(t).resolvedOptions(),r=t}catch(s){const i=t.substring(0,n);e=z(i).resolvedOptions(),r=i}const{numberingSystem:s,calendar:i}=e;return[r,s,i]}}(t);this.locale=i,this.numberingSystem=e||u||null,this.outputCalendar=n||o||null,this.weekSettings=r,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===P(t.locale).numberingSystem)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?tt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,Ht(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return V(this,t,he,(()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(e&=!n)?{month:t,day:"numeric"}:{month:t},s=e?"format":"standalone";return this.monthsCache[s][t]||(this.monthsCache[s][t]=function(t){const e=[];for(let n=1;n<=12;n++){const r=mr.utc(2009,n,1);e.push(t(r))}return e}(n?t=>this.dtFormatter(t,r).format():t=>this.extract(t,r,"month"))),this.monthsCache[s][t]}))}weekdays(t,e=!1){return V(this,t,fe,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=function(t){const e=[];for(let n=1;n<=7;n++){const r=mr.utc(2016,11,13+n);e.push(t(r))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[r][t]}))}meridiems(){return V(this,void 0,(()=>ye),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[mr.utc(2016,11,13,9),mr.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return V(this,t,Me,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[mr.utc(-40,1,1),mr.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const r=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return r?r.value:null}numberFormatter(t={}){return new B(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new Q(t,this.intl,e)}relFormatter(t={}){return new K(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const n=JSON.stringify([t,e]);let r=q[n];return r||(r=new Intl.ListFormat(t,e),q[n]=r),r}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||P(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:_t()?function(t){let e=Y.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...X,...e}),Y.set(t,e)}return e}(this.locale):X}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let et=null;class nt extends Z{static get utcInstance(){return null===et&&(et=new nt(0)),et}static instance(t){return 0===t?nt.utcInstance:new nt(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new nt(ne(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${ie(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${ie(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return ie(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class rt extends Z{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function st(t,e){if(Lt(t)||null===t)return e;if(t instanceof Z)return t;if("string"==typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?W.instance:"utc"===n||"gmt"===n?nt.utcInstance:nt.parseSpecifier(n)||j.create(t)}return Wt(t)?nt.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new rt(t)}const it={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ut={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ot=it.hanidec.replace(/[\[|\]]/g,"").split(""),at=new Map;function ct({numberingSystem:t},e=""){const n=t||"latn";let r=at.get(n);void 0===r&&(r=new Map,at.set(n,r));let s=r.get(e);return void 0===s&&(s=new RegExp(`${it[n]}${e}`),r.set(e,s)),s}let ht,lt=()=>Date.now(),dt="system",mt=null,ft=null,yt=null,gt=60,wt=null;class pt{static get now(){return lt}static set now(t){lt=t}static set defaultZone(t){dt=t}static get defaultZone(){return st(dt,W.instance)}static get defaultLocale(){return mt}static set defaultLocale(t){mt=t}static get defaultNumberingSystem(){return ft}static set defaultNumberingSystem(t){ft=t}static get defaultOutputCalendar(){return yt}static set defaultOutputCalendar(t){yt=t}static get defaultWeekSettings(){return wt}static set defaultWeekSettings(t){wt=Ht(t)}static get twoDigitCutoffYear(){return gt}static set twoDigitCutoffYear(t){gt=t%100}static get throwOnInvalid(){return ht}static set throwOnInvalid(t){ht=t}static resetCaches(){tt.resetCache(),j.resetCache(),mr.resetCache(),at.clear()}}class Mt{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const kt=[0,31,59,90,120,151,181,212,243,273,304,334],St=[0,31,60,91,121,152,182,213,244,274,305,335];function Nt(t,e){return new Mt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Tt(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function bt(t,e,n){return n+(Yt(t)?St:kt)[e-1]}function vt(t,e){const n=Yt(t)?St:kt,r=n.findIndex((t=>t<e));return{month:r+1,day:e-n[r]}}function Et(t,e){return(t-e+7)%7+1}function Dt(t,e=4,n=1){const{year:r,month:s,day:i}=t,u=bt(r,s,i),o=Et(Tt(r,s,i),n);let a,c=Math.floor((u-o+14-e)/7);return c<1?(a=r-1,c=Xt(a,e,n)):c>Xt(r,e,n)?(a=r+1,c=1):a=r,{weekYear:a,weekNumber:c,weekday:o,...ue(t)}}function Ot(t,e=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=t,u=Et(Tt(r,1,e),n),o=Vt(r);let a,c=7*s+i-u-7+e;c<1?(a=r-1,c+=Vt(a)):c>o?(a=r+1,c-=Vt(r)):a=r;const{month:h,day:l}=vt(a,c);return{year:a,month:h,day:l,...ue(t)}}function $t(t){const{year:e,month:n,day:r}=t;return{year:e,ordinal:bt(e,n,r),...ue(t)}}function It(t){const{year:e,ordinal:n}=t,{month:r,day:s}=vt(e,n);return{year:e,month:r,day:s,...ue(t)}}function xt(t,e){if(!Lt(t.localWeekday)||!Lt(t.localWeekNumber)||!Lt(t.localWeekYear)){if(!Lt(t.weekday)||!Lt(t.weekNumber)||!Lt(t.weekYear))throw new s("Cannot mix locale-based week fields with ISO-based week fields");return Lt(t.localWeekday)||(t.weekday=t.localWeekday),Lt(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Lt(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Ft(t){const e=At(t.year),n=zt(t.month,1,12),r=zt(t.day,1,Bt(t.year,t.month));return e?n?!r&&Nt("day",t.day):Nt("month",t.month):Nt("year",t.year)}function Zt(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=zt(e,0,23)||24===e&&0===n&&0===r&&0===s,u=zt(n,0,59),o=zt(r,0,59),a=zt(s,0,999);return i?u?o?!a&&Nt("millisecond",s):Nt("second",r):Nt("minute",n):Nt("hour",e)}function Lt(t){return void 0===t}function Wt(t){return"number"==typeof t}function At(t){return"number"==typeof t&&t%1==0}function Ct(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function _t(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function jt(t,e,n){if(0!==t.length)return t.reduce(((t,r)=>{const s=[e(r),r];return t&&n(t[0],s[0])===t[0]?t:s}),null)[1]}function qt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ht(t){if(null==t)return null;if("object"!=typeof t)throw new u("Week settings must be an object");if(!zt(t.firstDay,1,7)||!zt(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!zt(t,1,7))))throw new u("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function zt(t,e,n){return At(t)&&t>=e&&t<=n}function Rt(t,e=2){let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function Ut(t){return Lt(t)||null===t||""===t?void 0:parseInt(t,10)}function Jt(t){return Lt(t)||null===t||""===t?void 0:parseFloat(t)}function Gt(t){if(!Lt(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function Pt(t,e,n="round"){const r=10**e;switch(n){case"expand":return t>0?Math.ceil(t*r)/r:Math.floor(t*r)/r;case"trunc":return Math.trunc(t*r)/r;case"round":return Math.round(t*r)/r;case"floor":return Math.floor(t*r)/r;case"ceil":return Math.ceil(t*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Yt(t){return t%4==0&&(t%100!=0||t%400==0)}function Vt(t){return Yt(t)?366:365}function Bt(t,e){const n=(r=e-1)-12*Math.floor(r/12)+1;var r;return 2===n?Yt(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Qt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Kt(t,e,n){return-Et(Tt(t,1,e),n)+e-1}function Xt(t,e=4,n=1){const r=Kt(t,e,n),s=Kt(t+1,e,n);return(Vt(t)-r+s)/7}function te(t){return t>99?t:t>pt.twoDigitCutoffYear?1900+t:2e3+t}function ee(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const u={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,u).formatToParts(s).find((t=>"timezonename"===t.type.toLowerCase()));return o?o.value:null}function ne(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function re(t){const e=Number(t);if("boolean"==typeof t||""===t||!Number.isFinite(e))throw new u(`Invalid unit value ${t}`);return e}function se(t,e){const n={};for(const r in t)if(qt(t,r)){const s=t[r];if(null==s)continue;n[e(r)]=re(s)}return n}function ie(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${Rt(n,2)}:${Rt(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${Rt(n,2)}${Rt(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ue(t){return function(t){return["hour","minute","second","millisecond"].reduce(((e,n)=>(e[n]=t[n],e)),{})}(t)}const oe=["January","February","March","April","May","June","July","August","September","October","November","December"],ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ce=["J","F","M","A","M","J","J","A","S","O","N","D"];function he(t){switch(t){case"narrow":return[...ce];case"short":return[...ae];case"long":return[...oe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const le=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],de=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],me=["M","T","W","T","F","S","S"];function fe(t){switch(t){case"narrow":return[...me];case"short":return[...de];case"long":return[...le];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const ye=["AM","PM"],ge=["Before Christ","Anno Domini"],we=["BC","AD"],pe=["B","A"];function Me(t){switch(t){case"narrow":return[...pe];case"short":return[...we];case"long":return[...ge];default:return null}}function ke(t,e){let n="";for(const r of t)n+=r.literal?r.val:e(r.val);return n}const Se={D:l,DD:d,DDD:f,DDDD:y,t:g,tt:w,ttt:p,tttt:M,T:k,TT:S,TTT:N,TTTT:T,f:b,ff:E,fff:$,ffff:x,F:v,FF:D,FFF:I,FFFF:F};class Ne{static create(t,e={}){return new Ne(t,e)}static parseFormat(t){let e=null,n="",r=!1;const s=[];for(let i=0;i<t.length;i++){const u=t.charAt(i);"'"===u?((n.length>0||r)&&s.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),e=null,n="",r=!r):r||u===e?n+=u:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=u,e=u)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(t){return Se[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0,n){if(this.opts.forceSimple)return Rt(t,e);const r={...this.opts};return e>0&&(r.padTo=e),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(e,n)=>this.loc.extract(t,e,n),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",u=(e,r)=>n?function(t,e){return he(e)[t.month-1]}(t,e):s(r?{month:e}:{month:e,day:"numeric"},"month"),o=(e,r)=>n?function(t,e){return fe(e)[t.weekday-1]}(t,e):s(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),a=e=>{const n=Ne.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},c=e=>n?function(t,e){return Me(e)[t.year<0?0:1]}(t,e):s({era:e},"era");return ke(Ne.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return n?function(t){return ye[t.hour<12?0:1]}(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?s({day:"numeric"},"day"):this.num(t.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(t.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(t.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return a(e)}}))}formatDurationFromString(t,e){const n="negativeLargestOnly"===this.opts.signMode?-1:1,r=t=>{switch(t[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},s=Ne.parseFormat(e),i=s.reduce(((t,{literal:e,val:n})=>e?t:t.concat(n)),[]),u=t.shiftTo(...i.map(r).filter((t=>t)));return ke(s,((t,e)=>s=>{const i=r(s);if(i){const r=e.isNegativeDuration&&i!==e.largestUnit?n:1;let u;return u="negativeLargestOnly"===this.opts.signMode&&i!==e.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(t.get(i)*r,s.length,u)}return s})(u,{isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]}))}}const Te=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function be(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function ve(...t){return e=>t.reduce((([t,n,r],s)=>{const[i,u,o]=s(e,r);return[{...t,...i},u||n,o]}),[{},null,1]).slice(0,2)}function Ee(t,...e){if(null==t)return[null,null];for(const[n,r]of e){const e=n.exec(t);if(e)return r(e)}return[null,null]}function De(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=Ut(e[n+s]);return[r,null,n+s]}}const Oe=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,$e=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ie=RegExp(`${$e.source}(?:${Oe.source}?(?:\\[(${Te.source})\\])?)?`),xe=RegExp(`(?:[Tt]${Ie.source})?`),Fe=De("weekYear","weekNumber","weekDay"),Ze=De("year","ordinal"),Le=RegExp(`${$e.source} ?(?:${Oe.source}|(${Te.source}))?`),We=RegExp(`(?: ${Le.source})?`);function Ae(t,e,n){const r=t[e];return Lt(r)?n:Ut(r)}function Ce(t,e){return[{hours:Ae(t,e,0),minutes:Ae(t,e+1,0),seconds:Ae(t,e+2,0),milliseconds:Gt(t[e+3])},null,e+4]}function _e(t,e){const n=!t[e]&&!t[e+1],r=ne(t[e+1],t[e+2]);return[{},n?null:nt.instance(r),e+3]}function je(t,e){return[{},t[e]?j.create(t[e]):null,e+1]}const qe=RegExp(`^T?${$e.source}$`),He=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ze(t){const[e,n,r,s,i,u,o,a,c]=t,h="-"===e[0],l=a&&"-"===a[0],d=(t,e=!1)=>void 0!==t&&(e||t&&h)?-t:t;return[{years:d(Jt(n)),months:d(Jt(r)),weeks:d(Jt(s)),days:d(Jt(i)),hours:d(Jt(u)),minutes:d(Jt(o)),seconds:d(Jt(a),"-0"===a),milliseconds:d(Gt(c),l)}]}const Re={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ue(t,e,n,r,s,i,u){const o={year:2===e.length?te(Ut(e)):Ut(e),month:ae.indexOf(n)+1,day:Ut(r),hour:Ut(s),minute:Ut(i)};return u&&(o.second=Ut(u)),t&&(o.weekday=t.length>3?le.indexOf(t)+1:de.indexOf(t)+1),o}const Je=/^(?:(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\d)(\d\d)))$/;function Ge(t){const[,e,n,r,s,i,u,o,a,c,h,l]=t,d=Ue(e,s,r,n,i,u,o);let m;return m=a?Re[a]:c?0:ne(h,l),[d,new nt(m)]}const Pe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ye=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ve=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Be(t){const[,e,n,r,s,i,u,o]=t;return[Ue(e,s,r,n,i,u,o),nt.utcInstance]}function Qe(t){const[,e,n,r,s,i,u,o]=t;return[Ue(e,o,n,r,s,i,u),nt.utcInstance]}const Ke=be(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,xe),Xe=be(/(\d{4})-?W(\d\d)(?:-?(\d))?/,xe),tn=be(/(\d{4})-?(\d{3})/,xe),en=be(Ie),nn=ve((function(t,e){return[{year:Ae(t,e),month:Ae(t,e+1,1),day:Ae(t,e+2,1)},null,e+3]}),Ce,_e,je),rn=ve(Fe,Ce,_e,je),sn=ve(Ze,Ce,_e,je),un=ve(Ce,_e,je),on=ve(Ce),an=be(/(\d{4})-(\d\d)-(\d\d)/,We),cn=be(Le),hn=ve(Ce,_e,je),ln="Invalid Duration",dn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},mn={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...dn},fn={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...dn},yn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],gn=yn.slice(0).reverse();function wn(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Sn(r)}function pn(t,e){let n=e.milliseconds??0;for(const r of gn.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function Mn(t,e){const n=pn(t,e)<0?-1:1;yn.reduceRight(((r,s)=>{if(Lt(e[s]))return r;if(r){const i=t[s][r],u=Math.floor(e[r]*n/i);e[s]+=u*n,e[r]-=u*i*n}return s}),null),yn.reduce(((n,r)=>{if(Lt(e[r]))return n;if(n){const s=e[n]%1;e[n]-=s,e[r]+=s*t[n][r]}return r}),null)}function kn(t){const e={};for(const[n,r]of Object.entries(t))0!==r&&(e[n]=r);return e}class Sn{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?fn:mn;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||tt.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return Sn.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new u("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new Sn({values:se(t,Sn.normalizeUnit),loc:tt.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(Wt(t))return Sn.fromMillis(t);if(Sn.isDuration(t))return t;if("object"==typeof t)return Sn.fromObject(t);throw new u(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function(t){return Ee(t,[He,ze])}(t);return n?Sn.fromObject(n,e):Sn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function(t){return Ee(t,[qe,on])}(t);return n?Sn.fromObject(n,e):Sn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new u("need to specify a reason the Duration is invalid");const n=t instanceof Mt?t:new Mt(t,e);if(pt.throwOnInvalid)throw new r(n);return new Sn({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new i(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Ne.create(this.loc,n).formatDurationFromString(this,t):ln}toHuman(t={}){if(!this.isValid)return ln;const e=!1!==t.showZeros,n=yn.map((n=>{const r=this.values[n];return Lt(r)||0===r&&!e?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(r)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=Pt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},mr.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?pn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=Sn.fromDurationLike(t),n={};for(const t of yn)(qt(e.values,t)||qt(this.values,t))&&(n[t]=e.get(t)+this.get(t));return wn(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=Sn.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=re(t(this.values[n],n));return wn(this,{values:e},!0)}get(t){return this[Sn.normalizeUnit(t)]}set(t){return this.isValid?wn(this,{values:{...this.values,...se(t,Sn.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:r}={}){return wn(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Mn(this.matrix,t),wn(this,{values:t},!0)}rescale(){return this.isValid?wn(this,{values:kn(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>Sn.normalizeUnit(t)));const e={},n={},r=this.toObject();let s;for(const i of yn)if(t.indexOf(i)>=0){s=i;let t=0;for(const e in n)t+=this.matrix[e][i]*n[e],n[e]=0;Wt(r[i])&&(t+=r[i]);const u=Math.trunc(t);e[i]=u,n[i]=(1e3*t-1e3*u)/1e3}else Wt(r[i])&&(n[i]=r[i]);for(const t in n)0!==n[t]&&(e[s]+=t===s?n[t]:n[t]/this.matrix[s][t]);return Mn(this.matrix,e),wn(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return wn(this,{values:t},!0)}removeZeros(){return this.isValid?wn(this,{values:kn(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const r of yn)if(n=t.values[r],!(void 0===(e=this.values[r])||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const Nn="Invalid Interval";class Tn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new u("need to specify a reason the Interval is invalid");const r=t instanceof Mt?t:new Mt(t,e);if(pt.throwOnInvalid)throw new n(r);return new Tn({invalid:r})}static fromDateTimes(t,e){const n=fr(t),r=fr(e),s=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?Tn.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:Tn.invalid("missing or invalid end"):Tn.invalid("missing or invalid start")}(n,r);return null==s?new Tn({start:n,end:r}):s}static after(t,e){const n=Sn.fromDurationLike(e),r=fr(t);return Tn.fromDateTimes(r,r.plus(n))}static before(t,e){const n=Sn.fromDurationLike(e),r=fr(t);return Tn.fromDateTimes(r.minus(n),r)}static fromISO(t,e){const[n,r]=(t||"").split("/",2);if(n&&r){let t,s,i,u;try{t=mr.fromISO(n,e),s=t.isValid}catch(r){s=!1}try{i=mr.fromISO(r,e),u=i.isValid}catch(r){u=!1}if(s&&u)return Tn.fromDateTimes(t,i);if(s){const n=Sn.fromISO(r,e);if(n.isValid)return Tn.after(t,n)}else if(u){const t=Sn.fromISO(n,e);if(t.isValid)return Tn.before(i,t)}}return Tn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",e){if(!this.isValid)return NaN;const n=this.start.startOf(t,e);let r;return r=e?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(t,e),Math.floor(r.diff(n,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?Tn.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(fr).filter((t=>this.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),n=[];let{s:r}=this,s=0;for(;r<this.e;){const t=e[s]||this.e,i=+t>+this.e?this.e:t;n.push(Tn.fromDateTimes(r,i)),r=i,s+=1}return n}splitBy(t){const e=Sn.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s:r}=this,s=1;const i=[];for(;r<this.e;){const t=this.start.plus(e.mapUnits((t=>t*s)));n=+t>+this.e?this.e:t,i.push(Tn.fromDateTimes(r,n)),r=n,s+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return e>=n?null:Tn.fromDateTimes(e,n)}union(t){return this.isValid?Tn.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n]),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const r=[],s=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...s).sort(((t,e)=>t.time-e.time));for(const t of i)n+="s"===t.type?1:-1,1===n?e=t.time:(e&&+e!=+t.time&&r.push(Tn.fromDateTimes(e,t.time)),e=null);return Tn.merge(r)}difference(...t){return Tn.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Nn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=l,e={}){return this.isValid?Ne.create(this.s.loc.clone(e),t).formatInterval(this):Nn}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Nn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Nn}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Nn}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:Nn}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Sn.invalid(this.invalidReason)}mapEndpoints(t){return Tn.fromDateTimes(t(this.s),t(this.e))}}class bn{static hasDST(t=pt.defaultZone){const e=mr.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return j.isValidZone(t)}static normalizeZone(t){return st(t,pt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||tt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||tt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||tt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||tt.create(e,n,s)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||tt.create(e,n,s)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||tt.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||tt.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return tt.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return tt.create(e,null,"gregory").eras(t)}static features(){return{relative:Ct(),localeWeek:_t()}}}function vn(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(Sn.fromMillis(r).as("days"))}function En(t,e=t=>t){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(-1!==t[n].search(it.hanidec))e+=ot.indexOf(t[n]);else for(const t in ut){const[n,s]=ut[t];r>=n&&r<=s&&(e+=r-n)}}return parseInt(e,10)}return e}(t))}}const Dn=`[ ${String.fromCharCode(160)}]`,On=new RegExp(Dn,"g");function $n(t){return t.replace(/\./g,"\\.?").replace(On,Dn)}function In(t){return t.replace(/\./g,"").replace(On," ").toLowerCase()}function xn(t,e){return null===t?null:{regex:RegExp(t.map($n).join("|")),deser:([n])=>t.findIndex((t=>In(n)===In(t)))+e}}function Fn(t,e){return{regex:t,deser:([,t,e])=>ne(t,e),groups:e}}function Zn(t){return{regex:t,deser:([t])=>t}}const Ln={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Wn=null;function An(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=jn(Ne.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}class Cn{constructor(t,e){if(this.locale=t,this.format=e,this.tokens=An(Ne.parseFormat(e),t),this.units=this.tokens.map((e=>function(t,e){const n=ct(e),r=ct(e,"{2}"),s=ct(e,"{3}"),i=ct(e,"{4}"),u=ct(e,"{6}"),o=ct(e,"{1,2}"),a=ct(e,"{1,3}"),c=ct(e,"{1,6}"),h=ct(e,"{1,9}"),l=ct(e,"{2,4}"),d=ct(e,"{4,6}"),m=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return xn(e.eras("short"),0);case"GG":return xn(e.eras("long"),0);case"y":return En(c);case"yy":case"kk":return En(l,te);case"yyyy":case"kkkk":return En(i);case"yyyyy":return En(d);case"yyyyyy":return En(u);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return En(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return En(r);case"MMM":return xn(e.months("short",!0),1);case"MMMM":return xn(e.months("long",!0),1);case"LLL":return xn(e.months("short",!1),1);case"LLLL":return xn(e.months("long",!1),1);case"o":case"S":return En(a);case"ooo":case"SSS":return En(s);case"u":return Zn(h);case"uu":return Zn(o);case"uuu":case"E":case"c":return En(n);case"a":return xn(e.meridiems(),0);case"EEE":return xn(e.weekdays("short",!1),1);case"EEEE":return xn(e.weekdays("long",!1),1);case"ccc":return xn(e.weekdays("short",!0),1);case"cccc":return xn(e.weekdays("long",!0),1);case"Z":case"ZZ":return Fn(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return Fn(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return Zn(/[a-z_+-/]{1,256}?/i);case" ":return Zn(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=t,f}(e,t))),this.disqualifyingUnit=this.units.find((t=>t.invalidReason)),!this.disqualifyingUnit){const[t,e]=[`^${(n=this.units).map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,n];this.regex=RegExp(t,"i"),this.handlers=e}var n}explainFromTokens(t){if(this.isValid){const[e,n]=function(t,e,n){const r=t.match(e);if(r){const t={};let e=1;for(const s in n)if(qt(n,s)){const i=n[s],u=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(r.slice(e,e+u))),e+=u}return[r,t]}return[r,{}]}(t,this.regex,this.handlers),[r,i,u]=n?function(t){let e,n=null;return Lt(t.z)||(n=j.create(t.z)),Lt(t.Z)||(n||(n=new nt(t.Z)),e=t.Z),Lt(t.q)||(t.M=3*(t.q-1)+1),Lt(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Lt(t.u)||(t.S=Gt(t.u)),[Object.keys(t).reduce(((e,n)=>{const r=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(e[r]=t[n]),e}),{}),n,e]}(n):[null,null,void 0];if(qt(n,"a")&&qt(n,"H"))throw new s("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:n,result:r,zone:i,specificOffset:u}}return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function _n(t,e,n){return new Cn(t,n).explainFromTokens(e)}function jn(t,e){if(!t)return null;const n=Ne.create(e,t).dtFormatter((Wn||(Wn=mr.fromMillis(1555555555555)),Wn)),r=n.formatToParts(),s=n.resolvedOptions();return r.map((e=>function(t,e,n){const{type:r,value:s}=t;if("literal"===r){const t=/^\s+$/.test(s);return{literal:!t,val:t?" ":s}}let i=r;"hour"===r&&(i=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let u=Ln[i];if("object"==typeof u&&(u=u[e[r]]),u)return{literal:!1,val:u}}(e,t,s)))}const qn="Invalid DateTime",Hn=864e13;function zn(t){return new Mt("unsupported zone",`the zone "${t.name}" is not supported`)}function Rn(t){return null===t.weekData&&(t.weekData=Dt(t.c)),t.weekData}function Un(t){return null===t.localWeekData&&(t.localWeekData=Dt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Jn(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new mr({...n,...e,old:n})}function Gn(t,e,n){let r=t-60*e*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=60*(s-e)*1e3;const i=n.offset(r);return s===i?[r,s]:[t-60*Math.min(s,i)*1e3,Math.max(s,i)]}function Pn(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Yn(t,e,n){return Gn(Qt(t),e,n)}function Vn(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:r,month:s,day:Math.min(t.c.day,Bt(r,s))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},u=Sn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=Qt(i);let[a,c]=Gn(o,n,t.zone);return 0!==u&&(a+=u,c=t.zone.offset(a)),{ts:a,o:c}}function Bn(t,e,n,r,s,i){const{setZone:u,zone:o}=n;if(t&&0!==Object.keys(t).length||e){const r=e||o,s=mr.fromObject(t,{...n,zone:r,specificOffset:i});return u?s:s.setZone(o)}return mr.invalid(new Mt("unparsable",`the input "${s}" can't be parsed as ${r}`))}function Qn(t,e,n=!0){return t.isValid?Ne.create(tt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Kn(t,e,n){const r=t.c.year>9999||t.c.year<0;let s="";if(r&&t.c.year>=0&&(s+="+"),s+=Rt(t.c.year,r?6:4),"year"===n)return s;if(e){if(s+="-",s+=Rt(t.c.month),"month"===n)return s;s+="-"}else if(s+=Rt(t.c.month),"month"===n)return s;return s+=Rt(t.c.day),s}function Xn(t,e,n,r,s,i,u){let o=!n||0!==t.c.millisecond||0!==t.c.second,a="";switch(u){case"day":case"month":case"year":break;default:if(a+=Rt(t.c.hour),"hour"===u)break;if(e){if(a+=":",a+=Rt(t.c.minute),"minute"===u)break;o&&(a+=":",a+=Rt(t.c.second))}else{if(a+=Rt(t.c.minute),"minute"===u)break;o&&(a+=Rt(t.c.second))}if("second"===u)break;!o||r&&0===t.c.millisecond||(a+=".",a+=Rt(t.c.millisecond,3))}return s&&(t.isOffsetFixed&&0===t.offset&&!i?a+="Z":t.o<0?(a+="-",a+=Rt(Math.trunc(-t.o/60)),a+=":",a+=Rt(Math.trunc(-t.o%60))):(a+="+",a+=Rt(Math.trunc(t.o/60)),a+=":",a+=Rt(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const tr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},er={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},nr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},rr=["year","month","day","hour","minute","second","millisecond"],sr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ir=["year","ordinal","hour","minute","second","millisecond"];function ur(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new i(t);return e}function or(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return ur(t)}}function ar(t,e){const n=st(e.zone,pt.defaultZone);if(!n.isValid)return mr.invalid(zn(n));const r=tt.fromObject(e);let s,i;if(Lt(t.year))s=pt.now();else{for(const e of rr)Lt(t[e])&&(t[e]=tr[e]);const e=Ft(t)||Zt(t);if(e)return mr.invalid(e);const r=function(t){if(void 0===lr&&(lr=pt.now()),"iana"!==t.type)return t.offset(lr);const e=t.name;let n=dr.get(e);return void 0===n&&(n=t.offset(lr),dr.set(e,n)),n}(n);[s,i]=Yn(t,r,n)}return new mr({ts:s,zone:n,loc:r,o:i})}function cr(t,e,n){const r=!!Lt(n.round)||n.round,s=Lt(n.rounding)?"trunc":n.rounding,i=(t,i)=>(t=Pt(t,r||n.calendary?0:2,n.calendary?"round":s),e.loc.clone(n).relFormatter(n).format(t,i)),u=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return i(u(n.unit),n.unit);for(const t of n.units){const e=u(t);if(Math.abs(e)>=1)return i(e,t)}return i(t>e?-0:0,n.units[n.units.length-1])}function hr(t){let e,n={};return t.length>0&&"object"==typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}let lr;const dr=new Map;class mr{constructor(t){const e=t.zone||pt.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Mt("invalid input"):null)||(e.isValid?null:zn(e));this.ts=Lt(t.ts)?pt.now():t.ts;let r=null,s=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,s]=[t.old.c,t.old.o];else{const i=Wt(t.o)&&!t.old?t.o:e.offset(this.ts);r=Pn(this.ts,i),n=Number.isNaN(r.year)?new Mt("invalid input"):null,r=n?null:r,s=n?null:i}this._zone=e,this.loc=t.loc||tt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new mr({})}static local(){const[t,e]=hr(arguments),[n,r,s,i,u,o,a]=e;return ar({year:n,month:r,day:s,hour:i,minute:u,second:o,millisecond:a},t)}static utc(){const[t,e]=hr(arguments),[n,r,s,i,u,o,a]=e;return t.zone=nt.utcInstance,ar({year:n,month:r,day:s,hour:i,minute:u,second:o,millisecond:a},t)}static fromJSDate(t,e={}){const n="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(n))return mr.invalid("invalid input");const r=st(e.zone,pt.defaultZone);return r.isValid?new mr({ts:n,zone:r,loc:tt.fromObject(e)}):mr.invalid(zn(r))}static fromMillis(t,e={}){if(Wt(t))return t<-Hn||t>Hn?mr.invalid("Timestamp out of range"):new mr({ts:t,zone:st(e.zone,pt.defaultZone),loc:tt.fromObject(e)});throw new u(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Wt(t))return new mr({ts:1e3*t,zone:st(e.zone,pt.defaultZone),loc:tt.fromObject(e)});throw new u("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=st(e.zone,pt.defaultZone);if(!n.isValid)return mr.invalid(zn(n));const r=tt.fromObject(e),i=se(t,or),{minDaysInFirstWeek:u,startOfWeek:o}=xt(i,r),a=pt.now(),c=Lt(e.specificOffset)?n.offset(a):e.specificOffset,h=!Lt(i.ordinal),l=!Lt(i.year),d=!Lt(i.month)||!Lt(i.day),m=l||d,f=i.weekYear||i.weekNumber;if((m||h)&&f)throw new s("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&h)throw new s("Can't mix ordinal dates with month/day");const y=f||i.weekday&&!m;let g,w,p=Pn(a,c);y?(g=sr,w=er,p=Dt(p,u,o)):h?(g=ir,w=nr,p=$t(p)):(g=rr,w=tr);let M=!1;for(const t of g)Lt(i[t])?i[t]=M?w[t]:p[t]:M=!0;const k=y?function(t,e=4,n=1){const r=At(t.weekYear),s=zt(t.weekNumber,1,Xt(t.weekYear,e,n)),i=zt(t.weekday,1,7);return r?s?!i&&Nt("weekday",t.weekday):Nt("week",t.weekNumber):Nt("weekYear",t.weekYear)}(i,u,o):h?function(t){const e=At(t.year),n=zt(t.ordinal,1,Vt(t.year));return e?!n&&Nt("ordinal",t.ordinal):Nt("year",t.year)}(i):Ft(i),S=k||Zt(i);if(S)return mr.invalid(S);const N=y?Ot(i,u,o):h?It(i):i,[T,b]=Yn(N,c,n),v=new mr({ts:T,zone:n,o:b,loc:r});return i.weekday&&m&&t.weekday!==v.weekday?mr.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${v.toISO()}`):v.isValid?v:mr.invalid(v.invalid)}static fromISO(t,e={}){const[n,r]=function(t){return Ee(t,[Ke,nn],[Xe,rn],[tn,sn],[en,un])}(t);return Bn(n,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,r]=function(t){return Ee(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Je,Ge])}(t);return Bn(n,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,r]=function(t){return Ee(t,[Pe,Be],[Ye,Be],[Ve,Qe])}(t);return Bn(n,r,e,"HTTP",e)}static fromFormat(t,e,n={}){if(Lt(t)||Lt(e))throw new u("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,i=tt.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[o,a,c,h]=function(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:u}=_n(t,e,n);return[r,s,i,u]}(i,t,e);return h?mr.invalid(h):Bn(o,a,n,`format ${e}`,t,c)}static fromString(t,e,n={}){return mr.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,r]=function(t){return Ee(t,[an,nn],[cn,hn])}(t);return Bn(n,r,e,"SQL",t)}static invalid(t,n=null){if(!t)throw new u("need to specify a reason the DateTime is invalid");const r=t instanceof Mt?t:new Mt(t,n);if(pt.throwOnInvalid)throw new e(r);return new mr({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=jn(t,tt.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return An(Ne.parseFormat(t),tt.fromObject(e)).map((t=>t.val)).join("")}static resetCache(){lr=void 0,dr.clear()}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Rn(this).weekYear:NaN}get weekNumber(){return this.isValid?Rn(this).weekNumber:NaN}get weekday(){return this.isValid?Rn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Un(this).weekday:NaN}get localWeekNumber(){return this.isValid?Un(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Un(this).weekYear:NaN}get ordinal(){return this.isValid?$t(this.c).ordinal:NaN}get monthShort(){return this.isValid?bn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?bn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?bn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?bn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=Qt(this.c),r=this.zone.offset(n-t),s=this.zone.offset(n+t),i=this.zone.offset(n-r*e),u=this.zone.offset(n-s*e);if(i===u)return[this];const o=n-i*e,a=n-u*e,c=Pn(o,i),h=Pn(a,u);return c.hour===h.hour&&c.minute===h.minute&&c.second===h.second&&c.millisecond===h.millisecond?[Jn(this,{ts:o}),Jn(this,{ts:a})]:[this]}get isInLeapYear(){return Yt(this.year)}get daysInMonth(){return Bt(this.year,this.month)}get daysInYear(){return this.isValid?Vt(this.year):NaN}get weeksInWeekYear(){return this.isValid?Xt(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Xt(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:r}=Ne.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(nt.instance(t),e)}toLocal(){return this.setZone(pt.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=st(t,pt.defaultZone)).equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[r]=Yn(n,e,t)}return Jn(this,{ts:r,zone:t})}return mr.invalid(zn(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return Jn(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=se(t,or),{minDaysInFirstWeek:n,startOfWeek:r}=xt(e,this.loc),i=!Lt(e.weekYear)||!Lt(e.weekNumber)||!Lt(e.weekday),u=!Lt(e.ordinal),o=!Lt(e.year),a=!Lt(e.month)||!Lt(e.day);if((o||a||u)&&(e.weekYear||e.weekNumber))throw new s("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&u)throw new s("Can't mix ordinal dates with month/day");let c;i?c=Ot({...Dt(this.c,n,r),...e},n,r):Lt(e.ordinal)?(c={...this.toObject(),...e},Lt(e.day)&&(c.day=Math.min(Bt(c.year,c.month),c.day))):c=It({...$t(this.c),...e});const[h,l]=Yn(c,this.o,this.zone);return Jn(this,{ts:h,o:l})}plus(t){return this.isValid?Jn(this,Vn(this,Sn.fromDurationLike(t))):this}minus(t){return this.isValid?Jn(this,Vn(this,Sn.fromDurationLike(t).negate())):this}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;const n={},r=Sn.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(e){const t=this.loc.getStartOfWeek(),{weekday:e}=this;e<t&&(n.weekNumber=this.weekNumber-1),n.weekday=t}else n.weekday=1;if("quarters"===r){const t=Math.ceil(this.month/3);n.month=3*(t-1)+1}return this.set(n)}endOf(t,e){return this.isValid?this.plus({[t]:1}).startOf(t,e).minus(1):this}toFormat(t,e={}){return this.isValid?Ne.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):qn}toLocaleString(t=l,e={}){return this.isValid?Ne.create(this.loc.clone(e),t).formatDateTime(this):qn}toLocaleParts(t={}){return this.isValid?Ne.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;const u="extended"===t;let o=Kn(this,u,i=ur(i));return rr.indexOf(i)>=3&&(o+="T"),o+=Xn(this,u,e,n,r,s,i),o}toISODate({format:t="extended",precision:e="day"}={}){return this.isValid?Kn(this,"extended"===t,ur(e)):null}toISOWeekDate(){return Qn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:i="extended",precision:u="milliseconds"}={}){return this.isValid?(u=ur(u),(r&&rr.indexOf(u)>=3?"T":"")+Xn(this,"extended"===i,e,t,n,s,u)):null}toRFC2822(){return Qn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Qn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Kn(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(n&&(r+=" "),e?r+="z":t&&(r+="ZZ")),Qn(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():qn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",n={}){if(!this.isValid||!t.isValid)return Sn.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(o=e,Array.isArray(o)?o:[o]).map(Sn.normalizeUnit),i=t.valueOf()>this.valueOf(),u=function(t,e,n,r){let[s,i,u,o]=function(t,e,n){const r=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=vn(t,e);return(n-n%7)/7}],["days",vn]],s={},i=t;let u,o;for(const[a,c]of r)n.indexOf(a)>=0&&(u=a,s[a]=c(t,e),o=i.plus(s),o>e?(s[a]--,(t=i.plus(s))>e&&(o=t,s[a]--,t=i.plus(s))):t=o);return[t,s,o,u]}(t,e,n);const a=e-s,c=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(u<e&&(u=s.plus({[o]:1})),u!==s&&(i[o]=(i[o]||0)+a/(u-s)));const h=Sn.fromObject(i,r);return c.length>0?Sn.fromMillis(a,r).shiftTo(...c).plus(h):h}(i?this:t,i?t:this,s,r);var o;return i?u.negate():u}diffNow(t="milliseconds",e={}){return this.diff(mr.now(),t,e)}until(t){return this.isValid?Tn.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const r=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(e,n)<=r&&r<=s.endOf(e,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||mr.fromObject({},{zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(r=t.unit,s=void 0),cr(e,this.plus(n),{...t,numeric:"always",units:r,unit:s})}toRelativeCalendar(t={}){return this.isValid?cr(t.base||mr.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(mr.isDateTime))throw new u("min requires all arguments be DateTimes");return jt(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(mr.isDateTime))throw new u("max requires all arguments be DateTimes");return jt(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:r=null,numberingSystem:s=null}=n;return _n(tt.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return mr.fromFormatExplain(t,e,n)}static buildFormatParser(t,e={}){const{locale:n=null,numberingSystem:r=null}=e,s=tt.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new Cn(s,t)}static fromFormatParser(t,e,n={}){if(Lt(t)||Lt(e))throw new u("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:s=null}=n,i=tt.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});if(!i.equals(e.locale))throw new u(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${e.locale}`);const{result:o,zone:a,specificOffset:c,invalidReason:h}=e.explainFromTokens(t);return h?mr.invalid(h):Bn(o,a,n,`format ${e.format}`,t,c)}static get DATE_SHORT(){return l}static get DATE_MED(){return d}static get DATE_MED_WITH_WEEKDAY(){return m}static get DATE_FULL(){return f}static get DATE_HUGE(){return y}static get TIME_SIMPLE(){return g}static get TIME_WITH_SECONDS(){return w}static get TIME_WITH_SHORT_OFFSET(){return p}static get TIME_WITH_LONG_OFFSET(){return M}static get TIME_24_SIMPLE(){return k}static get TIME_24_WITH_SECONDS(){return S}static get TIME_24_WITH_SHORT_OFFSET(){return N}static get TIME_24_WITH_LONG_OFFSET(){return T}static get DATETIME_SHORT(){return b}static get DATETIME_SHORT_WITH_SECONDS(){return v}static get DATETIME_MED(){return E}static get DATETIME_MED_WITH_SECONDS(){return D}static get DATETIME_MED_WITH_WEEKDAY(){return O}static get DATETIME_FULL(){return $}static get DATETIME_FULL_WITH_SECONDS(){return I}static get DATETIME_HUGE(){return x}static get DATETIME_HUGE_WITH_SECONDS(){return F}}function fr(t){if(mr.isDateTime(t))return t;if(t&&t.valueOf&&Wt(t.valueOf()))return mr.fromJSDate(t);if(t&&"object"==typeof t)return mr.fromObject(t);throw new u(`Unknown datetime argument: ${t}, of type ${typeof t}`)}export{mr as D}
@@ -1 +0,0 @@
1
- import{d as t,e as r,D as n,T as e,M as a,a as s,A as o,c as i}from"./p-kMyLevYy.js";import{D as u,a as c}from"./p-CfWnag33.js";import{a as f,O as l}from"./p-B79VcHiT.js";import{f as m,g as d}from"./p-B27Ax6P_.js";import{r as N}from"./p-CY1RzLjU.js";function p(t){return null==t||""===t||"null"===t}function v(r){return p(r)||"auto"===r.trim().toLowerCase()?[]:h((null==r?void 0:r.split(",").filter((r=>!(r.toUpperCase().trim()in t)))).toString())}function h(n){return p(n)?[]:n.replace(";",",").split(",").filter((n=>{var e,a,s;const o=n.split("_"),i=null===(e=o[0])||void 0===e?void 0:e.replace(/^dr|^d/,"").toUpperCase().trim(),u=null===(a=o[1])||void 0===a?void 0:a.toUpperCase().trim(),c=null===(s=o[2])||void 0===s?void 0:s.toUpperCase().trim();return 3!==o.length||!(i in t)||!(u in t)||!(c in r)}))}function y(t){return p(t)||"auto"===t.trim().toLowerCase()?[]:h(t.split(",").filter((t=>!(t.toUpperCase()in f))).toString())}function b(t){return!p(t)&&Number.isInteger(Number(t))}function g(t){return!p(t)&&!Number.isNaN(Number(t))}function O(t){return!p(t)&&(null==t?void 0:t.toUpperCase())in l}function S(t){return"auto"===(null==t?void 0:t.toLowerCase())||(null==t?void 0:t.toUpperCase())in o}function J(t){if(p(t))return[];try{const r=JSON.parse(t);if(r instanceof Array)return r.filter((t=>!(t.hasOwnProperty("name")&&t.hasOwnProperty("unit"))))}catch(t){console.error("validateMeasureList: failed to parse JSON",t)}return["Invalid JSON structure"]}function w(t){if(p(t))return[];try{const r=JSON.parse(t);if(r instanceof Array)return r.filter((t=>!t.hasOwnProperty("latitude")&&!t.hasOwnProperty("longitude")&&!t.hasOwnProperty("iconUrl")))}catch(t){throw t}return["Invalid JSON structure"]}function A(t){if(p(t))return[];try{const r=JSON.parse(t);if(r instanceof Array)return r.filter((t=>!t.hasOwnProperty("file")))}catch(t){throw t}return["Invalid JSON structure"]}function j(t){if(p(t))return[];try{const r=JSON.parse(t);if(r instanceof Array)return r.filter((t=>!t.hasOwnProperty("file")))}catch(t){throw t}return["Invalid JSON structure"]}function k(t){const r=Date.parse(t);return Number.isInteger(r)}function T(t){return(null==t?void 0:t.toUpperCase())in c}function $(t){return(null==t?void 0:t.toUpperCase())in u}function I(t){return(null==t?void 0:t.toUpperCase())in i}function M(t){return!p(t)&&(null==t?void 0:t.toUpperCase())in n}function z(t){return!p(t)&&["true","false",!0,!1].some((r=>r===t))}function x(t){return!p(t)&&(null==t?void 0:t.toUpperCase())in e}function C(t){if(p(t))return[];try{const r=JSON.parse(t);if(r instanceof Array)return r.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category")&&t.hasOwnProperty("subCategory"))))}catch(t){console.error("validateThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function E(t){if(p(t))return[];try{const r=JSON.parse(t);if(r instanceof Array)return r.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category"))))}catch(t){console.error("validatePartOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function G(t){return(null==t?void 0:t.trim().toUpperCase())in a}function L(t){return["_","k","M","G","T","P","E","Z","Y","m","μ","n","p","P","f","a","z","y"].includes(null==t?void 0:t.trim())||["GREATEST","LEAST"].includes(null==t?void 0:t.trim().toUpperCase())}function P(t){return(null==t?void 0:t.toUpperCase().trim())in s}function _(t){if(p(t))return[];try{return JSON.parse(t).filter((t=>!(t.hasOwnProperty("scenario")&&t.hasOwnProperty("name")&&t.hasOwnProperty("subGroups"))))}catch(t){console.error("validateColumnThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function D(t){if(p(t))return[];try{const r=JSON.parse(t);if("object"!=typeof r||null===r||Array.isArray(r))return["stack: must be a JSON object"];const n=[];if(r.hasOwnProperty("by")){const t=["scenario","category","subcategory","rowgroup"];t.includes(r.by)||n.push(`stack: 'by' must be one of: ${t.join(", ")}`)}else n.push("stack: 'by' is required");if(r.hasOwnProperty("mode")){const t=["absolute","relative","absolute-relative"];t.includes(r.mode)||n.push(`stack: 'mode' must be one of: ${t.join(", ")}`)}if(r.hasOwnProperty("order")){const t=["asc","desc","dataset"];t.includes(r.order)||n.push(`stack: 'order' must be one of: ${t.join(", ")}`)}return n}catch(t){return["stack: invalid JSON"]}}class Y{constructor(){this.cache=new Map,this.tag=Y.makeStyleTag()}static makeStyleTag(){const t=document.createElement("style");return t.type="text/css",t.setAttribute("data-bn-computed-style",""),t.append(document.createTextNode("")),(document.head||document.querySelector("head")).append(t),t}apply(t){t.forEach((t=>this.cache.set(t.className,t.style))),this.tag.innerHTML=Array.from(this.cache.values()).map((t=>t)).join("\n")}}const q=new Y,B=t=>g(t)?`${t}px`:t,R={width:{className:"w",cssName:"width",attrName:"width",transform:B},height:{className:"h",cssName:"height",attrName:"height",transform:B},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:B},right:{className:"rgt",cssName:"right",attrName:"right",transform:B},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:B},left:{className:"lft",cssName:"left",attrName:"left",transform:B},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:B},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},U=Object.keys(R);function F(t,r){const n=function(t,r){const n=function(t){for(var r,n=0,e=0,a=t.length;a>=4;++e,a-=4)r=1540483477*(65535&(r=255&t.charCodeAt(e)|(255&t.charCodeAt(++e))<<8|(255&t.charCodeAt(++e))<<16|(255&t.charCodeAt(++e))<<24))+(59797*(r>>>16)<<16),n=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&t.charCodeAt(e+2))<<16;case 2:n^=(255&t.charCodeAt(e+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(e)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r);return`bn-c-${t.className}_${n}`}(t,r),e=function(t,r,n){return`.${r} {${t.cssName}: ${n};}`}(t,n,r);return{className:n,style:e}}const H=t=>{const r=new Map;return U.forEach((n=>{const e=t.getAttribute(n);e&&(["top","left","right","bottom"].includes(n)&&r.set("position",F(R.position,"absolute")),r.set(n,F(R[n],(R[n].transform||function(t){return t})(e))))})),r},V=new MutationObserver((t=>{for(const r of t){const t=r.target,n=H(t);q.apply(n);const e=Array.from(n.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...e).join(" "),m(t)}})),W=t=>{const r=t.connectedCallback,n=t.disconnectedCallback;t.connectedCallback=()=>{const n=d(t);if(!n)throw new Error("Can't find element field in component undefined");(t=>{const r=H(t);q.apply(r);const n=Array.from(r.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...n).join(" "),V.observe(t,{attributes:!0,attributeFilter:U,childList:!1,subtree:!1})})(n),N(r,t)},t.disconnectedCallback=()=>{N(n,t)}};export{_ as A,h as a,S as b,y as c,O as d,b as e,z as f,L as g,D as h,g as i,p as j,$ as k,I as l,w as m,A as n,j as o,J as p,k as q,T as r,M as s,x as t,C as u,v,W as w,E as x,G as y,P as z}
@@ -1 +0,0 @@
1
- import{r as t,d as i,h as s,H as e,g as a}from"./p-B27Ax6P_.js";import{w as r,i as n,f as o,m as p,n as l,o as d}from"./p-TdL-LRR9.js";import{w as h}from"./p-BFatTBqh.js";import{w as g}from"./p-B0m0U4wJ.js";import{g as u,w as c}from"./p-CY1RzLjU.js";import{C as m}from"./p-BtVfu16B.js";import"./p-kMyLevYy.js";import"./p-CfWnag33.js";import"./p-DbyXf6dF.js";import"./p-B79VcHiT.js";import"./p-CnI71OA9.js";const v=class{constructor(s){t(this,s),this.bnStateUpdated=i(this,"bnStateUpdated",7),this.bnDragZoomEnded=i(this,"bnDragZoomEnded",7),this.markerList=[],this.gpxList=[],this.geojsonList=[],this.gpxData=[],this.geojsonData=[],this.markerData=[],this.data=[],this.uuid=u(),this.markersDatasetName="$markers",this.gpxsDatasetName="$gpxs",this.latitude=50.137634,this.longitude=8.679129,this.scale=11,this.manualPosOverride=!0,this.showScale=!1,this.attribution="",this.tileLayer="https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png",this.markers=null,this.gpxs=null,this.geojsons=null,r(this),h(this),this.errors=c(this),g(this,((t,i)=>{t===this.markersDatasetName?this.markerData=i:t===this.gpxsDatasetName&&(this.gpxData=i)}))}validateMarkerDatasetName(t){const i="ERR_markersDatasetName";"string"!=typeof t?this.errors.addOrReplace({id:i,type:"warning",message:"markerDatasetName: invalid value(s) '"+t+"' are not supported."}):this.errors.remove(i)}validateGpxsDatasetName(t){const i="ERR_gpxsDatasetName";"string"!=typeof t?this.errors.addOrReplace({id:i,type:"warning",message:"gpxsDatasetName: invalid value(s) '"+t+"' are not supported."}):this.errors.remove(i)}validateLatitude(t){const i="ERR_latitude";n(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"latitude: invalid value(s) '"+t+"' are not supported."})}validateLongitude(t){const i="ERR_longitude";n(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"longitude: invalid value(s) '"+t+"' are not supported."})}validateScale(t){const i="ERR_scale";n(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"scale: invalid value(s) '"+t+"' are not supported."})}validateManualPosOverride(t){const i="ERR_scale";o(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"manualPosOverride: invalid value(s) '"+t+"' are not supported."})}validateShowScale(t){const i="ERR_showScale";o(t)?this.errors.remove(i):this.errors.addOrReplace({id:i,type:"warning",message:"showScale: invalid value(s) '"+t+"' are not supported."})}validateAttribution(t){const i="ERR_attribution";"string"!=typeof t?this.errors.addOrReplace({id:i,type:"warning",message:"attribution: invalid value(s) '"+t+"' are not supported."}):this.errors.remove(i)}validateTileLayer(t){const i="ERR_tileLayer";"string"!=typeof t?this.errors.addOrReplace({id:i,type:"warning",message:"tileLayer: invalid value(s) '"+t+"' are not supported."}):this.errors.remove(i)}validateMarkers(t){if(!t)return;const i="ERR_markers",s="ERR_markersJSON";try{const e=p(t);e.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"Markers: invalid value(s) '"+e+"' are not supported."}):this.errors.remove(i),this.markerList=JSON.parse(t),this.errors.remove(s)}catch(i){this.errors.addOrReplace({id:s,type:"warning",message:"Markers: invalid value(s) '"+t+"' are not supported.:"+i.message})}}validateGpx(t){if(!t)return;const i="ERR_gpxs",s="ERR_gpxsJSON";try{const e=l(t);e.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"gpxs: invalid value(s) '"+e+"' are not supported."}):this.errors.remove(i),this.gpxList=JSON.parse(t),this.errors.remove(s)}catch(i){this.errors.addOrReplace({id:s,type:"warning",message:"gpxs: invalid '"+t+"' is not supported.:"+i.message})}}validateGeojson(t){if(!t)return;const i="ERR_geojsons",s="ERR_geojsons";try{const e=d(t);e.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"geojsons: invalid value(s) '"+e+"' are not supported."}):this.errors.remove(i),this.geojsonList=JSON.parse(t),this.errors.remove(s)}catch(i){this.errors.addOrReplace({id:s,type:"warning",message:"geojsons: invalid '"+t+"' is not supported.:"+i.message})}}stateUpdated(t){m.updateStatus(this.uuid,t.detail)}dragZoomEnded(t){this.bnDragZoomEnded.emit(t.detail)}componentWillLoad(){this.validateLatitude(this.latitude),this.validateLongitude(this.longitude),this.validateScale(this.scale),this.validateShowScale(this.showScale),this.validateAttribution(this.attribution),this.validateTileLayer(this.tileLayer),this.validateMarkers(this.markers),this.validateGpx(this.gpxs),this.validateGeojson(this.geojsons),this.validateManualPosOverride(this.manualPosOverride)}render(){return s(e,{key:"fa9bf3fb7fcf0c10b91967c6e3a67db914af1bf9"},s("ibcs-map",{key:"2b692fe311b00b65d0001ae64f5b17f7b99d111d",tileLayer:this.tileLayer,latitude:this.latitude,longitude:this.longitude,scale:this.scale,showScale:this.showScale,showZoom:!1,attribution:this.attribution,gpxs:this.prepareGpxData(),markers:this.prepareMarkerData(),geojsons:this.prepareGeojsonData(),manualPosOverride:this.manualPosOverride}))}prepareMarkerData(){return[...this.markerData,...this.markerList]}prepareGpxData(){return[...this.gpxData,...this.gpxList]}prepareGeojsonData(){return[...this.geojsonData,...this.geojsonList]}getDataStructureGpxParams(){return{GpxParams:{file:{type:"string",isOptional:!1,description:""},color:{type:"string",isOptional:!1,description:""},opacity:{type:"number",isOptional:!1,description:""},weight:{type:"number",isOptional:!1,description:""},lineCap:{type:"string",isOptional:!1,description:""},startIconUrl:{type:"string",isOptional:!1,description:""},endIconUrl:{type:"string",isOptional:!1,description:""},shadowUrl:{type:"string",isOptional:!1,description:""}}}}getDataStructureGeojsonParams(){return{GeojsonParams:{file:{type:"string",isOptional:!1,description:""},color:{type:"string",isOptional:!1,description:""},opacity:{type:"number",isOptional:!1,description:""},weight:{type:"number",isOptional:!1,description:""},lineCap:{type:"string",isOptional:!1,description:""}}}}getDataStructureMarkerParams(){return{MarkerParams:{latitude:{type:"number",isOptional:!1,description:""},longitude:{type:"string",isOptional:!1,description:""},iconUrl:{type:"number",isOptional:!1,description:""},iconWidth:{type:"number",isOptional:!1,description:""},iconHeight:{type:"number",isOptional:!1,description:""},tile:{type:"string",isOptional:!1,description:""}}}}get element(){return a(this)}static get watchers(){return{markersDatasetName:[{validateMarkerDatasetName:0}],gpxsDatasetName:[{validateGpxsDatasetName:0}],latitude:[{validateLatitude:0}],longitude:[{validateLongitude:0}],scale:[{validateScale:0}],manualPosOverride:[{validateManualPosOverride:0}],showScale:[{validateShowScale:0}],attribution:[{validateAttribution:0}],tileLayer:[{validateTileLayer:0}],markers:[{validateMarkers:0}],gpxs:[{validateGpx:0}],geojsons:[{validateGeojson:0}]}}};v.style=":host{display:block;height:100%}";export{v as bn_map}
@@ -1 +0,0 @@
1
- import{r as s,h as t,H as e,g as i}from"./p-B27Ax6P_.js";import{w as o}from"./p-BFatTBqh.js";import{w as n}from"./p-93C9jL8R.js";import{g as a}from"./p-CnI71OA9.js";import{w as r}from"./p-CY1RzLjU.js";import"./p-BtVfu16B.js";const d=class{constructor(t){s(this,t),o(this),this.errors=r(this),this.componentStyle=n(this)}connectedCallback(){this.stores=a(this.element)}getFontStyles(){return this.componentStyle((s=>{var t,e,i,o;return{"--bn-font-family":(null===(t=s.global)||void 0===t?void 0:t.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(e=s.global)||void 0===e?void 0:e.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(i=s.global)||void 0===i?void 0:i.fontColor)||"#000000","--bn-font-background":(null===(o=s.global)||void 0===o?void 0:o.fontBackgroundColor)||"#ffffff"}}))}prepareAssetUrl(s){if(null==s||""===s)return"";const t=this.stores.assets.state;return s.startsWith("asset:")?t[s.substring(6)]:t[s]||s}render(){return t(e,{key:"fc5f029a310621d2dc911d05549a8128896d22bc",id:this.text||this.image?"container-page-message":"container",style:this.getFontStyles()},t("div",{key:"7e8b92d010ade7d71360145c2d9ca82c5682dfb9",id:"message-text"},null!=this.text&&""!==this.text?t("span",{class:"note"},this.text):""),t("div",{key:"b40fdf7a7af3ba9352015c42617b39aa9d17a0dc",id:"page-image"},null!=this.image&&""!==this.image?t("img",{class:"image",src:this.prepareAssetUrl(this.image)}):""))}static get assetsDirs(){return["assets"]}get element(){return i(this)}};d.style=':host{padding:0.2em 0.5em;display:flex;flex-direction:row;justify-content:space-between;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}:host(#container-page-message){height:4.55em;box-sizing:border-box;-webkit-box-sizing:border-box;border-bottom:0.1em solid #ddd}div#message-text{font-size:1.4em;overflow:clip;display:inline}.image{z-index:2;background-color:transparent;border:transparent;height:4em;width:auto;display:inline}';export{d as bn_message}
@@ -1 +0,0 @@
1
- import{r as t,h as s,F as e,g as i}from"./p-B27Ax6P_.js";import{g as r,B as n}from"./p-CnI71OA9.js";const o=class{constructor(s){t(this,s),this.distinctCache=new Map}connectedCallback(){this.stores=r(this.element)}internationalizationKeys(){return Promise.resolve(n)}getDistinctFromDataSource(t,s){const e=`datasource:${t}:${s}`;if(this.distinctCache.has(e))return Promise.resolve(this.distinctCache.get(e));const i=this.distinct(this.stores.datasources.get(t)||[],s);return this.distinctCache.set(e,i),Promise.resolve(i)}getDistinctFromDataset(t,s){const e=`dataset:${t}:${s}`;if(this.distinctCache.has(e))return Promise.resolve(this.distinctCache.get(e));const i=this.distinct(this.stores.datasets.get(t)||[],s);return this.distinctCache.set(e,i),Promise.resolve(i)}render(){return s(e,{key:"1380161960ef3791df5ddf8314818ae135d01de9"})}distinct(t,s){return[...new Set(t.map((t=>t[s])))].filter((t=>null!=t))}get element(){return i(this)}};o.style="editor-companion{display:none}";export{o as editor_companion}
@@ -1 +0,0 @@
1
- import{g as t,r as s,h as a,H as e}from"./p-B27Ax6P_.js";import{g as o,c as n}from"./p-CnI71OA9.js";import{r,w as i}from"./p-CY1RzLjU.js";import{w as c}from"./p-BQp6ZPYW.js";import{a as u}from"./p-BYmPQYxx.js";import{w as l}from"./p-BFatTBqh.js";import"./p-BFTU3MAI.js";import"./p-BtVfu16B.js";const p=["ac1","ac2","ac3","ac4","pp1","pp2","pp3","pp4","fc1","fc2","fc3","fc4","pl1","pl2","pl3","pl4"],h=["rowGroup","category","subCategory","columnGroup","columnSubGroup"];function f(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function m(t){const s=Array.from(t);return{distinctValues:s,count:s.length,hasData:s.length>0}}const d=class{constructor(a){s(this,a),this.datasources="",this.static=!1,l(this),this.errors=i(this),this.database=new u.Database,((s,a)=>{let e,i,c=[];const u=new MutationObserver((e=>{e.forEach((e=>{"datasources"===e.attributeName&&(c=(t(s).getAttribute("datasources")||"").split(","),c.forEach((t=>{a(t,i.datasources.get(t))})))}))})),l=s.connectedCallback;s.connectedCallback=()=>{const n=t(s);i=o(n),c=(n.getAttribute("datasources")||"").split(","),c.forEach((t=>{a(t,i.datasources.get(t))})),u.observe(n,{attributes:!0,attributeFilter:["datasources"]}),e=i.datasources.on("set",((t,s)=>{c.includes(t)&&a(t,s)})),r(l,s)};const p=s.disconnectedCallback;s.disconnectedCallback=()=>{u.disconnect(),r(e),n(t(s)),r(p,s)}})(this,((t,s)=>{this.database.tables[t]={data:s},this.executeQuery()})),c(this,(t=>{this.query=t,this.executeQuery()}))}executeQuery(){if(this.stores||(this.stores=o(this.element)),this.query&&this.name){let t;if(this.static)try{t=JSON.parse(this.query)}catch(s){console.error("Failed to parse static dataset",s),t=[]}else t=this.database.exec(this.query);this.latestResult!==t&&(this.latestResult=t,this.stores.datasets.set(this.name,t),this.stores.datasetsMeta.set(this.name,function(t){const s={};for(const t of h)s[t]=new Set;const a={};for(const t of p)a[t]={hasData:!1,min:null,max:null};const e=new Set;let o=null,n=null;const r=Array.isArray(t)?t:[];for(let t=0;t<r.length;t++){const i=r[t];if(null==i)continue;for(const t of h){const a=i[t];null!=a&&""!==a&&s[t].add(String(a))}for(const t of p){const s=i[t];if(f(s)){const e=a[t];e.hasData=!0,(null===e.min||s<e.min)&&(e.min=s),(null===e.max||s>e.max)&&(e.max=s)}}const c=i.date;if(null!=c&&""!==c){const t=String(c);e.add(t),(null===o||t<o)&&(o=t),(null===n||t>n)&&(n=t)}}const i=p.map((t=>({key:t,hasData:a[t].hasData,min:a[t].min,max:a[t].max}))),c=i.filter((t=>t.hasData)).map((t=>t.key)),u=m(s.rowGroup),l=m(s.category),d=m(s.subCategory),g=m(s.columnGroup),y=m(s.columnSubGroup),b={min:o,max:n,hasData:e.size>0,distinctCount:e.size};let w="category";return d.hasData?w="subCategory":l.hasData?w="category":u.hasData&&(w="rowGroup"),{rowCount:r.length,scenarios:i,availableScenarios:c,rowGroup:u,category:l,subCategory:d,columnGroup:g,columnSubGroup:y,dateRange:b,suggestedLevel:w,suggestedOrder:w,suggestedDateInterval:b.hasData?"auto":null,calculatedAt:Date.now()}}(t)))}}nameUpdated(){this.executeQuery()}render(){return a(e,{key:"0aecc50d8aa488f49d6630fec9f0755d306f213e"})}get element(){return t(this)}static get watchers(){return{name:[{nameUpdated:0}]}}};d.style="bn-dataset{display:none}";export{d as bn_dataset}
@@ -1 +0,0 @@
1
- import{r as t,h as o,H as i,g as e}from"./p-B27Ax6P_.js";import{w as n}from"./p-B0m0U4wJ.js";import{w as s}from"./p--TeDldm8.js";import{w as a}from"./p-BFatTBqh.js";import{w as r}from"./p-TdL-LRR9.js";import{w as l}from"./p-93C9jL8R.js";import{w as d}from"./p-CY1RzLjU.js";import{g as c,p as f}from"./p-BBd0ZVLL.js";import"./p-CnI71OA9.js";import"./p-BtVfu16B.js";import"./p-kMyLevYy.js";import"./p-CfWnag33.js";import"./p-DbyXf6dF.js";import"./p-B79VcHiT.js";const h=new Set(["br","b","i","strong","em","span","p","div","table","tr","td","th","thead","tbody","tfoot","ul","ol","li","h1","h2","h3","h4","h5","h6","sub","sup","small","hr","a","img"]),v=new Set(["class","style","colspan","rowspan","href","title","src","alt","width","height"]),p=/\b(__proto__|globalThis)\b|\.constructor\b/;function u(t){const o=document.createElement("div");return o.innerHTML=t,m(o),o.innerHTML}function m(t){for(const o of Array.from(t.childNodes)){if(o.nodeType!==Node.ELEMENT_NODE)continue;const i=o;if(h.has(i.tagName.toLowerCase())){for(const t of Array.from(i.attributes)){const o=t.name.toLowerCase();o.startsWith("on")||!v.has(o)?i.removeAttribute(t.name):"href"!==o&&"src"!==o||!/^\s*javascript:/i.test(t.value)?"style"===o&&/expression|javascript/i.test(t.value)&&i.removeAttribute(t.name):i.removeAttribute(t.name)}m(i)}else t.replaceChild(document.createTextNode(i.textContent||""),i)}}const b=class{constructor(o){t(this,o),this.data={},r(this),a(this),this.errors=d(this),this.t=s(this).t,n(this,((t,o)=>{this.data=Object.assign(Object.assign({},this.data),{[t]:o})})),this.componentStyle=l(this)}validateValue(t){"string"!=typeof t||""===t?this.errors.addOrReplace({id:"no_value",type:"warning",message:"Empty value"}):this.errors.remove("no_value")}validateScaling(t){if(null==t||""===t||"none"===t||"auto"===t)return void this.errors.remove("ERR_scale");const o=Number(t);isNaN(o)||o<=0?this.errors.addOrReplace({id:"ERR_scale",type:"warning",message:`Invalid scale value: "${t}". Use "none", "auto", or a positive number.`}):this.errors.remove("ERR_scale")}componentWillLoad(){this.validateValue(this.value),this.validateScaling(this.scale)}evalTemplate(t){if(!t)return"";if(p.test(t))return this.errors.addOrReplace({id:"ERR_value_eval",type:"error",message:"Template contains forbidden pattern"}),"";try{const o=new Proxy({data:this.data,t:this.t},{has:()=>!0,get:(t,o)=>o===Symbol.unscopables?void 0:t[o],set:()=>!0}),i=new Function("sandbox","with(sandbox){try{return`"+t+'`}catch(e){return""}}').call(o,o);return this.errors.remove("ERR_value_eval"),null!=i?String(i):""}catch(t){return this.errors.addOrReplace({id:"ERR_value_eval",type:"error",message:`Template evaluation failed: ${t instanceof Error?t.message:String(t)}`}),""}}prepareStyle(){return this.componentStyle((t=>{var o,i,e,n,s,a,r,l,d,c,f,h,v,p,u,m,b,g,y,w,_,R;return{fontStyles:{font:`${null!==(n=null!==(i=null===(o=t["bn-text"])||void 0===o?void 0:o.fontSizePx)&&void 0!==i?i:null===(e=t.global)||void 0===e?void 0:e.fontSizePx)&&void 0!==n?n:13.3333}px ${null!==(l=null!==(a=null===(s=t["bn-text"])||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:null===(r=t.global)||void 0===r?void 0:r.fontFamily)&&void 0!==l?l:"'Noto Sans', sans-serif"}`,size:null!==(h=null!==(c=null===(d=t["bn-text"])||void 0===d?void 0:d.fontSizePx)&&void 0!==c?c:null===(f=t.global)||void 0===f?void 0:f.fontSizePx)&&void 0!==h?h:13.3333,color:null!==(m=null!==(p=null===(v=t["bn-text"])||void 0===v?void 0:v.fontColor)&&void 0!==p?p:null===(u=t.global)||void 0===u?void 0:u.fontColor)&&void 0!==m?m:"#000000",background:null!==(w=null!==(g=null===(b=t["bn-text"])||void 0===b?void 0:b.fontBackgroundColor)&&void 0!==g?g:null===(y=t.global)||void 0===y?void 0:y.fontBackgroundColor)&&void 0!==w?w:"#ffffff",leading:null!==(R=null===(_=t["bn-text"])||void 0===_?void 0:_.leading)&&void 0!==R?R:1.8}}}))}applyScaling(t){const o=this.element,{mode:i,factor:e}=f(this.scale),{width:n,height:s}=c(o),a=o.scrollHeight>o.clientHeight+1?o.clientHeight:s,r=n,l=r>0&&o.scrollWidth>r+1,d=a>0&&o.scrollHeight>a+1,h=l||d;if(r<=0&&a<=0)return;if("none"===i){if(h){const t=[];l&&t.push(`w:${o.scrollWidth}>${Math.round(r)}`),d&&t.push(`h:${o.scrollHeight}>${Math.round(a)}`),this.errors.addOrReplace({id:"WARN_overflow",type:"warning",message:`Content overflows container (${t.join(", ")})`})}else this.errors.remove("WARN_overflow");return}if("factor"===i){if(h){const t=[];l&&t.push(`w:${o.scrollWidth}>${Math.round(r)}`),d&&t.push(`h:${o.scrollHeight}>${Math.round(a)}`),this.errors.addOrReplace({id:"WARN_overflow",type:"warning",message:`Content overflows with factor ${e} (${t.join(", ")})`})}else this.errors.remove("WARN_overflow");return}o.style.setProperty("--bn-font-size",`${t}px`);const v=o.scrollWidth,p=o.scrollHeight,u=o.clientHeight,m=p>u+1?u:s,b=r<=0||v<=r+1,g=m<=0||p<=m+1;if(b&&g)return void this.errors.remove("AUTO_scale");const y=Math.min(1,!b&&r>0?r/v:1,!g&&m>0?m/p:1);o.style.setProperty("--bn-font-size",t*y+"px"),"empty"===i?this.errors.addOrReplace({id:"AUTO_scale",type:"warning",message:`Auto-scaled font by factor ${y.toFixed(3)}`}):this.errors.remove("AUTO_scale")}componentDidRender(){this.container.innerHTML=u(this.evalTemplate(this.value)),this.applyScaling(this.prepareStyle().fontStyles.size)}render(){const{fontStyles:t}=this.prepareStyle(),{mode:e,factor:n}=f(this.scale),s="factor"===e?t.size*n+"px":`${t.size}px`,a={"--bn-font-family":t.font.substring(t.font.indexOf("px ")+3),"--bn-font-size":s,"--bn-font-color":t.color,"--bn-font-background":t.background};return o(i,{key:"96ef774aa76e3ec2ef09d29fe92df0c427c4c94d",style:a},o("div",{key:"fb1fc02d7e464c40043a24b8a59642d6ae5a6690"},o("span",{key:"a053d732b4965b31f696d34847ebaef5cb0e2e76",class:"container",ref:t=>{this.container=t}})))}get element(){return e(this)}static get watchers(){return{value:[{validateValue:0}],scale:[{validateScaling:0}]}}};b.style=':host{padding:0.5em;display:inline-block;position:relative;overflow:hidden;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000);background-color:var(--bn-font-background, white)}span.container p{margin:0}';export{b as bn_text}
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as s,g as h}from"./p-B27Ax6P_.js";import{S as e,g as n,a as r,b as o,c as l,I as a,F as c,d as u,e as d,f,P as p}from"./p-Cp4MVxCu.js";import{C as w,A as v,b,O as g}from"./p-B79VcHiT.js";import{C as m,F as L,V as P}from"./p-1jFf17Vj.js";import{S,D as y,b as k}from"./p-BhEQy-2D.js";import{b as M,c as C,C as x,f as A,A as O}from"./p-kMyLevYy.js";import{a as T}from"./p-BYmPQYxx.js";import{D as $}from"./p-DbyXf6dF.js";import{D as _,b as D}from"./p-CfWnag33.js";import{I as E,S as Y}from"./p-_LBTIfNN.js";import"./p-BFTU3MAI.js";class N{constructor(){this.scenarioOffset=.3,this.scenarioLabelToColumn=.3,this.labelToColumn=.3,this.labelToAxis=.3,this.needleWidth=.3,this.needleHeadWidth=.6,this.columnWidth=2,this.varianceAxisLineWidth=.3,this.axisLineWidth=.1,this.auxiliaryLineWidth=.1,this.scenarioLineWidth=.2,this.markerWidth=.7,this.markerOffset=0,this.categoryWidth=3,this.axisTickLength=.3}}class R{adapt(t){const i=new N;return w.isNumber(t.scenarioOffset)&&(i.scenarioOffset=t.scenarioOffset),w.isNumber(t.scenarioLabelToColumn)&&(i.scenarioLabelToColumn=t.scenarioLabelToColumn),w.isNumber(t.labelToColumn)&&(i.labelToColumn=t.labelToColumn),w.isNumber(t.labelToAxis)&&(i.labelToAxis=t.labelToAxis),w.isNumber(t.needleWidth)&&(i.needleWidth=t.needleWidth),w.isNumber(t.needleHeadWidth)&&(i.needleHeadWidth=t.needleHeadWidth),w.isNumber(t.columnWidth)&&(i.columnWidth=t.columnWidth),w.isNumber(t.varianceAxisLineWidth)&&(i.varianceAxisLineWidth=t.varianceAxisLineWidth),w.isNumber(t.axisLineWidth)&&(i.axisLineWidth=t.axisLineWidth),w.isNumber(t.auxiliaryLineWidth)&&(i.auxiliaryLineWidth=t.auxiliaryLineWidth),w.isNumber(t.scenarioLineWidth)&&(i.scenarioLineWidth=t.scenarioLineWidth),w.isNumber(t.markerWidth)&&(i.markerWidth=t.markerWidth),w.isNumber(t.markerOffset)&&(i.markerOffset=t.markerOffset),w.isNumber(t.categoryWidth)&&(i.categoryWidth=t.categoryWidth),w.isNumber(t.axisTickLength)&&(i.axisTickLength=t.axisTickLength),i}default(){return new N}}class F{constructor(t,i,s,h,e,n,r){this.categoryPosition={x:0,y:0},this.spacings=new N,this.categoriesBoxOffset={width:0,height:0},this.padding=t,this.scaleFactors=i,this.fontStlye=s,this.dataLabelHeight=this.caluculateDataLabelHeight(),this.axisPosition={x:0,y:0},this.columnValue={min:h,max:e},this.numberOfColumns=n,this.leftSideLabelLength=r,this.calculateSpacings(),this.calculateCategoryPosition(),this.calculateAxisPosition()}caluculateDataLabelHeight(){return 1.1*m("123456789",{font:this.fontStlye.font,fontSize:this.fontStlye.size+"px"}).height}getColumnCenterPositionX(t){return this.categoryPosition.y+this.spacings.scenarioOffset+t*this.spacings.categoryWidth+this.leftSideLabelLength+.5*this.spacings.columnWidth}getAxisPositionY(t){let i=this.columnValue.max.getScaledUnit();return t&&(i=this.columnValue.max.getScaledPercentUnit()+this.getNeedleWidth()),i+this.dataLabelHeight+this.spacings.labelToAxis+this.padding.top}getAxisPositionX(){return this.padding.left+this.leftSideLabelLength}getColumnPositionX(t,i){return i?this.getColumnCenterPositionX(t):this.getColumnCenterPositionX(t)-this.spacings.scenarioOffset}getColumnPositionY(){return this.columnValue.max.getScaledUnit()+this.dataLabelHeight+this.spacings.labelToColumn+this.padding.top}getNeedlePositionY(){return this.columnValue.max.getScaledPercentUnit()+this.dataLabelHeight+this.spacings.labelToColumn+this.getNeedleWidth()+this.padding.top}getMarkerPositionX(t,i){return i?this.getColumnCenterPositionX(t)-this.spacings.markerOffset-.5*this.getColumnWidth():this.getColumnCenterPositionX(t)+this.spacings.markerOffset+.5*this.getColumnWidth()}getMarkerPositionY(){return this.getColumnPositionY()}getAxisTitlePositionX(t){const i=t.width();return this.axisPosition.x-i}getAxisTitlePositionY(t,i){let s=this.columnValue.max.getScaledUnit();return i&&(s=this.columnValue.max.getScaledPercentUnit()),t?s+this.dataLabelHeight+this.spacings.labelToAxis:s}getColumnDataLabelPositionY(t){const i=this.spacings.labelToColumn;return t<0?this.getColumnPositionY()+Math.abs(t)+i:this.getColumnPositionY()-t-i}getNeedleDataLabelPositionY(t){const i=this.spacings.labelToColumn;return t<0?this.getNeedlePositionY()+Math.abs(t)+i+2*this.getNeedleWidth():this.getNeedlePositionY()-t-i-2*this.getNeedleWidth()}getAxisEndPositionX(){return this.getAxisPositionX()+(this.numberOfColumns+.5)*this.spacings.categoryWidth}getColumnWidth(){return this.spacings.columnWidth}getNeedleWidth(){return this.spacings.needleWidth}getNeedleHeadWidth(){return this.spacings.needleHeadWidth}getScenarioLabelPositionOffsetX(t){return t?.5*this.getColumnWidth()+this.spacings.scenarioLabelToColumn:-(.5*this.getColumnWidth()+this.spacings.scenarioLabelToColumn)}calculateSpacings(){this.spacings={scenarioOffset:this.fontStlye.size*this.scaleFactors.scenarioOffset,scenarioLabelToColumn:this.fontStlye.size*this.scaleFactors.scenarioLabelToColumn,markerOffset:this.fontStlye.size*this.scaleFactors.markerOffset,labelToColumn:this.fontStlye.size*this.scaleFactors.labelToColumn,labelToAxis:this.fontStlye.size*this.scaleFactors.labelToAxis,needleWidth:this.fontStlye.size*this.scaleFactors.needleWidth,needleHeadWidth:this.fontStlye.size*this.scaleFactors.needleHeadWidth,columnWidth:this.fontStlye.size*this.scaleFactors.columnWidth,varianceAxisLineWidth:this.fontStlye.size*this.scaleFactors.varianceAxisLineWidth,axisLineWidth:this.fontStlye.size*this.scaleFactors.axisLineWidth,auxiliaryLineWidth:this.fontStlye.size*this.scaleFactors.auxiliaryLineWidth,scenarioLineWidth:this.fontStlye.size*this.scaleFactors.scenarioLineWidth,markerWidth:this.fontStlye.size*this.scaleFactors.markerWidth,categoryWidth:this.fontStlye.size*this.scaleFactors.categoryWidth,axisTickLength:this.fontStlye.size*this.scaleFactors.axisTickLength}}calculateCategoryPosition(){this.categoryPosition={x:this.padding.left+.5*this.spacings.columnWidth,y:this.padding.top}}calculateAxisPosition(){this.axisPosition={x:this.getAxisPositionX(),y:this.getAxisPositionY(!1)}}getMarkerScenarioLabelPositionOffsetX(t){return t?this.spacings.labelToColumn-this.fontStlye.size:this.spacings.labelToColumn+.5*this.spacings.markerWidth}}class H{constructor(t){this.top=t.top,this.bottom=t.bottom,this.left=t.left,this.right=t.right}addBoxTopLeft(t){return this.top+=t.height|this.top,this.left+=t.width|this.top,this}}class j{constructor(t){const i=1*t,s=.7*t;this.bgOffset=(i-s)/2,this.markerUp={top:s/2+",0",left:"0,"+s,right:s+","+s},this.markerUpBackground={top:i/2+",0",left:"0,"+i,right:i+","+i},this.markerDown={bottom:s/2+","+s,left:"0,0",right:s+",0"},this.markerDownBackground={bottom:i/2+","+i,left:"0,0",right:i+",0"},this.markerRight={bottom:"0,"+s,top:"0,0",right:s+","+s/2},this.markerRightBackground={bottom:"0,"+i,top:"0,0",right:i+","+i/2},this.markerLeft={bottom:s+","+s,top:s+",0",left:"0,"+s/2},this.markerLeftBackground={bottom:i+","+i,top:i+",0",Left:"0,"+i/2}}upMarkerPatternStrings(){return{background:this.markerUpBackground.left+" "+this.markerUpBackground.right+" "+this.markerUpBackground.top+" "+this.markerUpBackground.left,foreground:this.markerUp.left+" "+this.markerUp.right+" "+this.markerUp.top+" "+this.markerUp.left,bgOffset:this.bgOffset}}downMarkerPatternStrings(){return{background:this.markerDownBackground.left+" "+this.markerDownBackground.right+" "+this.markerDownBackground.bottom+" "+this.markerDownBackground.left,foreground:this.markerDown.left+" "+this.markerDown.right+" "+this.markerDown.bottom+" "+this.markerDown.left,bgOffset:this.bgOffset}}rightMarkerPatternStrings(){return{background:this.markerRightBackground.top+" "+this.markerRightBackground.right+" "+this.markerRightBackground.bottom+" "+this.markerRightBackground.top,foreground:this.markerRight.top+" "+this.markerRight.right+" "+this.markerRight.bottom+" "+this.markerRight.top,bgOffset:this.bgOffset}}leftMarkerPatternStrings(){return{background:this.markerLeftBackground.top+" "+this.markerLeftBackground.Left+" "+this.markerLeftBackground.bottom+" "+this.markerLeftBackground.top,foreground:this.markerLeft.top+" "+this.markerLeft.left+" "+this.markerLeft.bottom+" "+this.markerLeft.top,bgOffset:this.bgOffset}}createPatternMapForStructureBar(){const t=new Map;return t.set("marker-up",this.upMarkerPatternStrings()),t.set("marker-down",this.downMarkerPatternStrings()),t.set("marker-right",this.rightMarkerPatternStrings()),t.set("marker-left",this.leftMarkerPatternStrings()),t}}class V{constructor(t){this.container=new e,this.pattern=this.createFCPattern(this.container.group(),t),this.styles=t;let i=10;null!=t&&null!=t.fontStyles&&t.fontStyles.size&&(i=t.fontStyles.size),this.bgOffset=(1*i-.7*i)/2}createFCPattern(t,i){const s=i;return t.pattern(10,10,(function(t){t.rect(10,10).fill(s.barStyles.fc.fill),t.line(0,5,5,0).stroke({width:s.barStyles.fc.width,color:s.barStyles.fc.stroke,linecap:"square"}),t.line(5,10,10,5).stroke({width:s.barStyles.fc.width,color:s.barStyles.fc.stroke,linecap:"square"})})).id("pattern-time-fc")}getFCPolygonPattern(){return{background:"",foreground:"",bgOffset:0,pattern:this.pattern}}toString(){return this.container.svg()}}var X;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Top=3]="Top",t[t.Bottom=4]="Bottom"}(X||(X={}));class B{constructor(t,i,s,h,e,n,r,o){this.ID_SCENARIOLABEL="Label",this.CSS_CATEGORIES="categories",this.isRelativeLabel=!1,this.segmentFillColor=null,this.x=i,this.y=s,this.value=e,this.group=t.group().id(this.createElementID(t.toString(),h)),this.styles=n,this.isVarianceLabel=!1,this.verticalHookLocation=r||X.Top,this.horizontalHookLocation=o||X.Left}setToVarianceLabel(){return this.isVarianceLabel=!0,this}setToRelativeVarianceLabel(){return this.isVarianceLabel=!0,this.isRelativeLabel=!0,this}setSegmentFill(t){return this.segmentFillColor=t,this}updateGroup(t){return this.group=t,this}draw(t=!0,i={percent:2,decimal:1},s=new S){if(this.isEmpty())return this;const h=this.group;let e,n="";if(!1===Number.isNaN(Number(this.value))){let t="percent",h=i.percent,r=i.percent,o=1;!1===this.isRelativeLabel&&(h=i.decimal,r=i.decimal,o=s.value,t="decimal"),e=L.number(Number(this.value),t,h,r,o),this.isVarianceLabel&&Number(this.value)>=0&&(n="+")}else e=""+this.value;const r=this.drawLabel(h,n+e);return!1===t&&(r.addClass("hide"),h.addClass("hide")),this}isEmpty(){return null==this.value||""===this.value}setPos(t,i){return this.x=t,this.y=i,this}forceStringTypeDraw(){return this.drawLabel(this.group,""+this.value),this}drawLabel(t,i){const s=this.styles.fontStyles.background||"#ffffff";let h="start";const e=t.text(i);e.move(this.x,this.y);const r=e.bbox().w,o=e.bbox().h;let l=0,a=0;const c=e.x();let u=e.y();return this.horizontalHookLocation===X.Left?(h="left",l=e.x()):this.horizontalHookLocation===X.Center?(h="middle",l=e.x()-(r+2)/2):this.horizontalHookLocation===X.Right&&(h="end",l=e.x()-r),this.verticalHookLocation===X.Center?(u=e.y()-1.2*o/2,a=u+.2*o):this.verticalHookLocation===X.Top?(u-=o/4,a=u+.2*o):this.verticalHookLocation===X.Bottom&&(u-=o,a=u+.2*o),e.move(c,u),e.font({anchor:h}),null!=this.segmentFillColor?e.fill(n(this.segmentFillColor)):t.rect(r+2,.8*o).stroke(s).fill(s).opacity(.9).move(l-1,a).insertBefore(e),e}createElementID(t,i){return t+"_"+i+"_"+this.ID_SCENARIOLABEL}}const I={ac:1,pp:2,fc:3,pl:4};var W,G,U;!function(t){t[t.Above=0]="Above",t[t.Below=1]="Below",t[t.Left=2]="Left",t[t.Right=3]="Right"}(W||(W={}));class z{constructor(){this.labels=[],this.scenarioLabels=[]}clear(){this.labels=[],this.scenarioLabels=[]}register(t){this.labels.push(t)}hasCollision(t){return this.labels.some((i=>this.intersects(t,i)))}getOptimalPlacement(t,i,s,h,e,n,r,o){const l=I[r]||99,a=n/2;for(const n of o){const r=this.calculatePlacementForDirection(t,i,s,h,e,a,8,n);if(!this.hasCollision(r.bounds))return r}for(const n of o){const r=this.calculatePlacementForDirection(t,i,s,h,e,a,8,n);if(!this.collidesWithHigherPriority(r.bounds,l))return r}return null}calculatePlacementForDirection(t,i,s,h,e,n,r,o){let l,a,c,u,d,f;switch(o){case W.Above:l=t,a=i-n-r,c=X.Bottom,u=X.Center,d=t-s/2,f=i-n-r-h;break;case W.Below:l=t,a=i+n+r,c=X.Top,u=X.Center,d=t-s/2,f=i+n+r-h/4;break;case W.Left:l=t-n-r,a=i,c=X.Center,u=X.Right,d=t-n-r-s,f=i-.6*h;break;case W.Right:l=t+n+r,a=i,c=X.Center,u=X.Left,d=t+n+r,f=i-.6*h}return{labelX:l,labelY:a,verticalHook:c,horizontalHook:u,bounds:{x:d,y:f,width:s,height:h,pointIndex:e,preferredHook:c}}}collidesWithHigherPriority(t,i){return this.labels.some((s=>!!s.scenarioType&&((I[s.scenarioType]||99)<i&&this.intersects(t,s))))}shouldHideScenarioLabel(t,i,s,h=20){const e=I[s]||99;return!(e<=1)&&this.scenarioLabels.some((s=>{if((I[s.scenarioType]||99)>=e)return!1;const n=Math.abs(i-s.y),r=Math.abs(t-s.x);return n<h&&r<h}))}registerScenarioLabel(t,i,s){this.scenarioLabels.push({x:t,y:i,scenarioType:s})}intersects(t,i){return!(t.x+t.width<i.x||i.x+i.width<t.x||t.y+t.height<i.y||i.y+i.height<t.y)}getLabelCount(){return this.labels.length}}class q{constructor(t,i,s,h){this.value=t,this.scenario=i,this.pixelPerUnit=s||1,this.variance="neg"===h||h===G.NEG?G.NEG:"pos"===h||h===G.POS?G.POS:G.NEU}isEmpty(){return void 0===this.value||null==this.scenario}getScaledUnit(){return null==this.value?0:this.value*this.pixelPerUnit}getScaledPercentUnit(){return null==this.value?0:this.value>1.45?1.45*this.pixelPerUnit:this.value<-1.45?-1.45*this.pixelPerUnit:this.value*this.pixelPerUnit}getVarianceStyle(){return null==this.value||this.value>=0?this.variance:G.NEU===this.variance?G.NEU:G.POS===this.variance?G.NEG:G.POS}isClipped(){return null!=this.value&&Math.abs(this.value)>1.45}getClippedValue(){return 145}getScenario(){var t;return null===(t=this.scenario)||void 0===t?void 0:t.slice(0,2)}}class K{constructor(){this.operation="+"}addRowGroup(t,i){this.rowGroup=t,this.rowGroupIndex=i}addCategory(t,i){this.category=t,this.categoryIndex=i}addSubCategory(t,i){this.subCategory=t,this.subCategoryIndex=i}addColumnGroup(t,i){this.columnGroup=t,this.columnGroupIndex=i}addSubColumnGroup(t,i){this.columnSubGroup=t,this.columnSubGroupIndex=i}}class Z{constructor(){}adapt(t){const i=new K;return w.isString(t.date)&&(i.date=this.parseDateString(t.date)),w.isOperator(t.operation)&&(i.operation=t.operation),w.isNumber(t.rowGroupIndex)&&w.isString(t.rowGroup)&&i.addRowGroup(t.rowGroup,t.rowGroupIndex),w.isNumber(t.categoryIndex)&&w.isString(t.category)&&i.addCategory(t.category,t.categoryIndex),w.isNumber(t.subCategoryIndex)&&w.isString(t.subCategory)&&i.addSubCategory(t.subCategory,t.subCategoryIndex),w.isNumber(t.columnGroupIndex)&&w.isString(t.columnGroup)&&i.addColumnGroup(t.columnGroup,t.columnGroupIndex),w.isNumber(t.columnSubGroupIndex)&&w.isString(t.columnSubGroup)&&i.addSubColumnGroup(t.columnSubGroup,t.columnSubGroupIndex),this.setActualValues(t,i),this.setPlanValues(t,i),this.setPreviousPeriodValues(t,i),this.setForecastValues(t,i),i}parseDateString(t){const i=$.fromISO(t);if(i.isValid)return i;console.warn(`TimeChartDataRow: invalid date value '${t}' — skipping row`)}default(){return new K}setActualValues(t,i){w.isNumber(t.ac1)&&(i.ac1=t.ac1),w.isNumber(t.ac2)&&(i.ac2=t.ac2),w.isNumber(t.ac3)&&(i.ac3=t.ac3),w.isNumber(t.ac4)&&(i.ac4=t.ac4)}setPlanValues(t,i){w.isNumber(t.pl1)&&(i.pl1=t.pl1),w.isNumber(t.pl2)&&(i.pl2=t.pl2),w.isNumber(t.pl3)&&(i.pl3=t.pl3),w.isNumber(t.pl4)&&(i.pl4=t.pl4)}setPreviousPeriodValues(t,i){w.isNumber(t.pp1)&&(i.pp1=t.pp1),w.isNumber(t.pp2)&&(i.pp2=t.pp2),w.isNumber(t.pp3)&&(i.pp3=t.pp3),w.isNumber(t.pp4)&&(i.pp4=t.pp4)}setForecastValues(t,i){w.isNumber(t.fc1)&&(i.fc1=t.fc1),w.isNumber(t.fc2)&&(i.fc2=t.fc2),w.isNumber(t.fc3)&&(i.fc3=t.fc3),w.isNumber(t.fc4)&&(i.fc4=t.fc4)}}class Q{constructor(t,i,s,h,e,n){this.scaleFactors=t,this.fontStyles=i,this.axisStyles=s,this.barStyles=h,this.varianceStyles=e,this.padding=n,this.pattern=new Map}}class J{constructor(t,i,s,h,e){this.scaleFactorsStructureChartAdapter=t,this.fontStyleAdapter=i,this.svgStyleGroupAdapter=s,this.svgVariancesStyleGroupAdapter=h,this.paddingadapter=e}adapt(t){const i=new Q(this.scaleFactorsStructureChartAdapter.default(),this.fontStyleAdapter.default(),this.svgStyleGroupAdapter.default(),this.svgStyleGroupAdapter.default(),this.svgVariancesStyleGroupAdapter.default(),this.paddingadapter.default());return w.isExisting(t)&&(w.isExisting(t.scaleFactors)&&(i.scaleFactors=this.scaleFactorsStructureChartAdapter.adapt(t.scaleFactors)),w.isExisting(t.fontStyles)&&(i.fontStyles=this.fontStyleAdapter.adapt(t.fontStyles)),w.isExisting(t.axisStyles)&&(i.axisStyles=this.svgStyleGroupAdapter.adapt(t.axisStyles)),w.isExisting(t.barStyles)&&(i.barStyles=this.svgStyleGroupAdapter.adapt(t.barStyles)),w.isExisting(t.varianceStyles)&&(i.varianceStyles=this.svgVariancesStyleGroupAdapter.adapt(t.varianceStyles)),w.isExisting(t.padding)&&(i.padding=this.paddingadapter.adapt(t.padding)),i.pattern=new j(i.fontStyles.size).createPatternMapForStructureBar()),i}default(){return new Q(this.scaleFactorsStructureChartAdapter.default(),this.fontStyleAdapter.default(),this.svgStyleGroupAdapter.default(),this.svgStyleGroupAdapter.default(),this.svgVariancesStyleGroupAdapter.default(),this.paddingadapter.default())}}!function(t){t.AC1="ac1",t.PP1="pp1",t.FC1="fc1",t.PL1="pl1",t.AC2="ac2",t.PP2="pp2",t.FC2="fc2",t.PL2="pl2",t.AC3="ac3",t.PP3="pp3",t.FC3="fc3",t.PL3="pl3",t.AC4="ac4",t.PP4="pp4",t.FC4="fc4",t.PL4="pl4",t.POS="pos",t.NEG="neg",t.NEU="neu"}(G||(G={})),function(t){t.LIST="LIST",t.SUM="SUM",t.OPT="OPT"}(U||(U={}));class tt{constructor(t,i,s){this.ID_AXIS="axis",this.CSS_AXIS_TITLE="categories",this.scenarioType=t.scenarioType,this.labelText=t.labelText||null,this.isRelative=t.isRelative||!1,this.position=i,this.svgGroup=s.group().id(this.ID_AXIS)}drawAxisTitle(t,i){null==i&&(i=""),t.text(i).addClass(this.CSS_AXIS_TITLE).attr("text-anchor","middle").move(this.position.getAxisTitlePositionX(t),this.position.getAxisTitlePositionY(!0,this.isRelative))}draw(){return this.labelText&&this.drawAxisTitle(this.svgGroup,this.labelText),this.svgGroup.line(this.position.getAxisPositionX(),this.position.getAxisPositionY(this.isRelative),this.position.getAxisEndPositionX(),this.position.getAxisPositionY(this.isRelative)).addClass(this.ID_AXIS+"-"+this.convertScenarioType()),this}convertScenarioType(){return void 0===this.scenarioType||null==this.scenarioType?"default":`${this.scenarioType}`.slice(0,2)}}class it{constructor(t,i,s,h,e,n,r,o=null){this.ID_DATA_PREFIX="DATA",this.ID_SCENARIO_PREFIX="SCENARIO",this.ID_RECT="RECT",this.FALLBACK_COLOUR="#000000",this.label=null,this.scenarioLabel=null,this.isVarianceColumn=!1,this.overflowConfig=null,this.isOverflowing=!1,this.overdriveHeight=0,this.dimensions={columnLength:0,xPos:0,yPos:0,labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:!1},this.hasData=!1,this.dataPoint=s,this.index=h,this.isPrimaryColumn=e,this.position=t,this.columnBarStyles=i.barStyles,this.overflowConfig=o,this.scenarioGroup=n,this.styles=i,this.columnGroup=n.group().id(n.toString()+"_"+this.ID_RECT),!0!==(null==s?void 0:s.isEmpty())&&(this.hasData=!0,this.dimensions=this.createDimensions(s,h,e),this.label=this.getDataLabel(s),this.scenarioLabel=this.getScenarioLabel(r))}setAsVariance(){var t;return this.isVarianceColumn=!0,null===(t=this.label)||void 0===t||t.setToVarianceLabel(),this}updateLabelGroup(t){var i;return this.isEmpty()||null===(i=this.label)||void 0===i||i.updateGroup(t),this}draw(t={percent:2,decimal:1},i=new S){if(this.isEmpty())return this;const s=this.getScenarioStyle(),h=this.convertToSVGStyle(s,"stroke"),e=this.getFillStyle(s);null!=this.columnGroup&&(this.isOverflowing&&this.overflowConfig?this.drawOverdriveBar(e,h):this.columnGroup.rect(this.position.getColumnWidth(),this.dimensions.columnLength).fill(e).stroke(h).y(this.dimensions.yPos).cx(this.dimensions.xPos)),this.drawColumnDataLabel(t,i),this.drawScenarioLabel()}drawOverdriveBar(t,i){if(!this.columnGroup||!this.overflowConfig)return;const s=this.position.getColumnPositionY(),h=this.position.getColumnWidth(),e=this.dimensions.columnLength,{breakGap:n}=this.overflowConfig,r=s-e;this.columnGroup.rect(h,e).fill(t).stroke(i).y(r).cx(this.dimensions.xPos);const o=r-n-this.overdriveHeight;this.columnGroup.rect(h,this.overdriveHeight).fill(t).stroke(i).y(o).cx(this.dimensions.xPos),this.drawBreakIndicator(r,n)}drawBreakIndicator(t,i){if(!this.columnGroup)return;const s=this.position.getColumnWidth(),h=this.dimensions.xPos-s/2,e=t-i/2,n=.35*i,r=s/3;let o=`M ${h} ${e-n}`;for(let t=0;t<3;t++)o+=` L ${h+r*(t+.5)} ${e-n-.3*i} L ${h+r*(t+1)} ${e-n}`;let l=`M ${h} ${e+n}`;for(let t=0;t<3;t++)l+=` L ${h+r*(t+.5)} ${e+n+.3*i} L ${h+r*(t+1)} ${e+n}`;this.columnGroup.rect(s+2,i).fill("#ffffff").stroke("none").y(t-i).cx(this.dimensions.xPos),this.columnGroup.path(o).fill("none").stroke({color:"#000000",width:1}),this.columnGroup.path(l).fill("none").stroke({color:"#000000",width:1})}createDimensions(t,i,s){const h=t.getScaledUnit();if(this.overflowConfig&&h>0){const e="ac"===t.getScenario()?this.overflowConfig.cutHeight:this.overflowConfig.cutHeight-this.overflowConfig.scenarioCutOffset;if(h>e){this.isOverflowing=!0;const{breakGap:t,overdriveZoneHeight:n,maxOverflow:r}=this.overflowConfig;this.overdriveHeight=r>0?(h-e)/r*n:0;const o=e+t+this.overdriveHeight,l=this.position.getColumnPositionY();return{clipped:!1,columnLength:e,xPos:this.position.getColumnPositionX(i,s),yPos:l-e,labelYPos:l-o-this.position.spacings.labelToColumn,scenarioLabelXPos:this.position.getColumnPositionX(i,s)+this.position.getScenarioLabelPositionOffsetX(s),scenarioLabelYPos:l-.5*e}}}return h<0?{clipped:!1,columnLength:Math.abs(h),xPos:this.position.getColumnPositionX(i,s),yPos:this.position.getColumnPositionY(),labelYPos:this.position.getColumnDataLabelPositionY(h),scenarioLabelXPos:this.position.getColumnPositionX(i,s)+this.position.getScenarioLabelPositionOffsetX(s),scenarioLabelYPos:this.position.getColumnPositionY()+.5*Math.abs(h)}:{clipped:!1,columnLength:h,xPos:this.position.getColumnPositionX(i,s),yPos:this.position.getColumnPositionY()-h,labelYPos:this.position.getColumnDataLabelPositionY(h),scenarioLabelXPos:this.position.getColumnPositionX(i,s)+this.position.getScenarioLabelPositionOffsetX(s),scenarioLabelYPos:this.position.getColumnPositionY()-.5*Math.abs(h)}}getDataLabel(t){let i=X.Bottom;null!=t.value&&t.value<0&&(i=X.Top);const s=this.isOverflowing?this.dimensions.labelYPos:this.position.getColumnDataLabelPositionY(this.dataPoint.getScaledUnit());return new B(this.scenarioGroup,this.position.getColumnCenterPositionX(this.index),s,this.ID_DATA_PREFIX,t.value,this.styles,i,X.Center)}getScenarioLabel(t){return new B(this.scenarioGroup,-1,-1,this.ID_SCENARIO_PREFIX,t,this.styles,X.Center,this.isPrimaryColumn?X.Left:X.Right)}convertToSVGStyle(t,i){return null==t&&(t=[]),t.color=t[i]||this.FALLBACK_COLOUR,Object.assign({},t)}drawScenarioLabel(){null==this.scenarioLabel||this.scenarioLabel.isEmpty()||this.isVarianceColumn||this.scenarioLabel.setPos(this.dimensions.scenarioLabelXPos,this.dimensions.scenarioLabelYPos).draw(!0)}drawColumnDataLabel(t,i=new S){var s;null===(s=this.label)||void 0===s||s.draw(this.isPrimaryColumn,t,i)}getFillStyle(t){var i,s,h,e;const n=this.columnBarStyles[this.dataPoint.getScenario()];return(null==n?void 0:n.fillpattern)&&(null===(i=this.styles.pattern.get(n.fillpattern))||void 0===i?void 0:i.pattern)?null===(e=null===(h=null===(s=this.styles)||void 0===s?void 0:s.pattern)||void 0===h?void 0:h.get(n.fillpattern))||void 0===e?void 0:e.pattern:this.convertToSVGStyle(t,"fill")}getScenarioStyle(){var t;return this.isVarianceColumn?null===(t=this.styles)||void 0===t?void 0:t.varianceStyles.getSVGStyle(this.dataPoint.getVarianceStyle()):this.columnBarStyles[this.dataPoint.getScenario()]}isEmpty(){return!1===this.hasData||Number.isNaN(this.dataPoint.value)}}class st{constructor(t,i,s,h,e,n,r,o,l){this.ID_DATA_PREFIX="DATA",this.ID_SCENARIO_PREFIX="SCENARIO",this.FALLBACK_COLOUR="#000000",this.scenarioLabel=null,this._defaultMarkerPattern=null,this.dimensions={columnLength:0,xPos:0,yPos:0,labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:!1},this.hasData=!1,this.position=t,this.markerGroup=i||null,this.markerPattern=s||this._defaultMarkerPattern,this.styles=e,this.barStyles=e?e.barStyles:null,this.scenario=h,!0!==(null==n?void 0:n.isEmpty())&&(this.hasData=!0,this.dimensions=this.createMarkerDimensions(n,r,l),this.scenarioLabel=this.getScenarioLabel(o,e,l))}draw(){if(this.isEmpty())return this;const t=this.convertToSVGStyle(this.barStyles[this.getScenario()],"stroke");let i=this.convertToSVGStyle(this.barStyles[this.getScenario()],"fill");const s=this.barStyles[this.getScenario()];if(null!=s&&s.fillpattern){const t=this.styles.pattern.get(s.fillpattern);null!=t&&(i=t.pattern)}return this.markerGroup.polygon(this.markerPattern.background).fill("#ffffff").cy(this.dimensions.yPos-this.dimensions.columnLength).cx(this.dimensions.xPos),this.markerGroup.polygon(this.markerPattern.foreground).fill(i).stroke(t).cy(this.dimensions.yPos-this.dimensions.columnLength).cx(this.dimensions.xPos),null==this.scenarioLabel||this.scenarioLabel.isEmpty()||this.scenarioLabel.setPos(this.dimensions.scenarioLabelXPos,this.dimensions.scenarioLabelYPos).draw(),this}createMarkerDimensions(t,i,s){return t.getScaledUnit()<0?{clipped:!1,labelYPos:0,columnLength:t.getScaledUnit(),xPos:this.position.getMarkerPositionX(i,s),yPos:this.position.getMarkerPositionY(),scenarioLabelXPos:this.position.getMarkerPositionX(i,s)+this.position.getMarkerScenarioLabelPositionOffsetX(s),scenarioLabelYPos:this.position.getMarkerPositionY()+Math.abs(t.getScaledUnit())}:{clipped:!1,labelYPos:0,columnLength:t.getScaledUnit(),xPos:this.position.getMarkerPositionX(i,s),yPos:this.position.getMarkerPositionY(),scenarioLabelXPos:this.position.getMarkerPositionX(i,s)+this.position.getMarkerScenarioLabelPositionOffsetX(s),scenarioLabelYPos:this.position.getMarkerPositionY()-Math.abs(t.getScaledUnit())}}getScenarioLabel(t,i,s){return null==this.markerGroup?null:new B(this.markerGroup,-1,-1,this.ID_DATA_PREFIX,t,i,X.Center,s?X.Right:X.Left)}convertToSVGStyle(t,i){return null==t&&(t=[]),t.color=t[i]||this.FALLBACK_COLOUR,Object.assign({},t)}isEmpty(){return!1===this.hasData}getScenario(){var t;return null===(t=this.scenario)||void 0===t?void 0:t.slice(0,2)}}class ht{constructor(t,i,s,h,e){this.ID_DATA_PREFIX="DATA",this.ID_SCENARIO_PREFIX="SCENARIO",this.ID_RECT="RECT",this.FALLBACK_COLOUR="#000000",this.dataLabel=null,this.dimensions={columnLength:0,xPos:0,yPos:0,labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:!1},this.hasData=!1,this.dataPoint=s,this.index=h,this.position=t,this.barStyles=i.barStyles,this.scenarioGroup=e,this.styles=i,this.barGroup=e.group().id(e.toString()+"_"+this.ID_RECT),!0!==(null==s?void 0:s.isEmpty())&&(this.hasData=!0,this.dimensions=this.createDimensions(t,s,h),this.dataLabel=new B(this.scenarioGroup,this.position.getColumnCenterPositionX(this.index),this.position.getNeedleDataLabelPositionY(this.dataPoint.getScaledPercentUnit()),this.ID_DATA_PREFIX,s.value,this.styles,X.Center,X.Center),this.dataLabel.setToRelativeVarianceLabel())}updateLabelGroup(t){var i;return this.isEmpty()||null===(i=this.dataLabel)||void 0===i||i.updateGroup(t),this}draw(){var t;if(this.isEmpty())return this;const i=this.styles.varianceStyles[this.dataPoint.getVarianceStyle()],s=this.convertToSVGStyle(i,"stroke");let h=this.convertToSVGStyle(i,"fill");const e=this.convertToSVGStyle(this.styles.varianceStyles.ac,"stroke"),n=this.convertToSVGStyle(this.styles.varianceStyles.ac,"fill"),r=this.barStyles[this.dataPoint.getScenario()];if(null!=r&&r.fillpattern){const t=this.styles.pattern.get(r.fillpattern);null!=t&&(h=t.pattern)}this.dimensions.clipped?this.createClippedNeedleHead(h,s):this.createNeedleHead(e,n),this.barGroup.rect(this.position.getNeedleWidth(),this.dimensions.columnLength).cx(this.dimensions.xPos).y(this.dimensions.yPos).fill(h).stroke(s),null===(t=this.dataLabel)||void 0===t||t.draw()}createDimensions(t,i,s){return i.getScaledPercentUnit()<0?{labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,columnLength:Math.abs(i.getScaledPercentUnit()),xPos:t.getColumnCenterPositionX(s),yPos:t.getNeedlePositionY(),clipped:i.isClipped()}:{columnLength:i.getScaledPercentUnit(),xPos:t.getColumnCenterPositionX(s),yPos:t.getNeedlePositionY()-i.getScaledPercentUnit(),labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:i.isClipped()}}convertToSVGStyle(t,i){return null==t&&(t=[]),t.color=t[i]||this.FALLBACK_COLOUR,Object.assign({},t)}createClippedNeedleHead(t,i){const s=this.barGroup.polygon("0,0 5,9 -5,9 0,0 0,5 5,13 -5,13 0,5").fill(t).cx(this.dimensions.xPos).cy(this.getHeadYPosition()).fill(t).stroke(i);null!=this.dataPoint.value&&this.dataPoint.value<0&&s.flip("y")}createNeedleHead(t,i){this.barGroup.rect(2*this.position.getNeedleWidth(),this.position.getNeedleHeadWidth()).cx(this.dimensions.xPos).cy(this.getHeadYPosition()).fill(t).stroke(i)}isEmpty(){return!1===this.hasData||Number.isNaN(this.dataPoint.value)}getHeadYPosition(){let t=this.dimensions.yPos;return null!=this.dataPoint.value&&this.dataPoint.value<0&&(t+=this.dimensions.columnLength),t}}const et={ac:{markerFill:"#000000",markerStroke:"#000000",lineColor:"#000000"},pp:{markerFill:"#999999",markerStroke:"#999999",lineColor:"#999999"},fc:{markerFill:"#ffffff",markerStroke:"#000000",lineColor:"#000000",lineDashArray:"4,4"},pl:{markerFill:"#ffffff",markerStroke:"#000000",lineColor:"#000000"}};class nt{constructor(t,i,s,h,e,n,r,o,l=null){this.MARKER_SIZE=8,this.LINE_WIDTH=2,this.ID_LINE_PREFIX="LINE",this.ID_MARKER_PREFIX="MARKER",this.ID_LABEL_PREFIX="LABEL",this.ESTIMATED_LABEL_WIDTH=56,this.ESTIMATED_LABEL_HEIGHT=24,this.position=t,this.styles=i,this.dataPoints=s,this.scenarioGroup=h,this.labelGroup=e,this.scenarioName=n,this.scenarioLabel=r,this.collisionManager=l}draw(t={percent:2,decimal:1},i=new S){return this.drawGeometry(),this.drawLabels(t,i),this}drawGeometry(){if(0===this.dataPoints.length)return this;const t=this.getLineStyle();return this.drawLines(t),this.drawMarkers(t),this}drawLabels(t={percent:2,decimal:1},i=new S){return 0===this.dataPoints.length||(this.drawScenarioLabel(),this.drawValueLabels(t,i)),this}getLineStyle(){var t,i;const s=(null===(i=null===(t=this.scenarioName)||void 0===t?void 0:t.slice(0,2))||void 0===i?void 0:i.toLowerCase())||"ac";return et[s]||et.ac}getScenarioVariant(){var t;const i=parseInt((null===(t=this.scenarioName)||void 0===t?void 0:t.slice(-1))||"1",10);return isNaN(i)?1:Math.min(Math.max(i,1),4)}drawSquareMarker(t,i,s,h){const e=this.MARKER_SIZE/2;t.rect(this.MARKER_SIZE,this.MARKER_SIZE).fill(h.markerFill).stroke({color:h.markerStroke,width:1}).move(i-e,s-e)}drawCircleMarker(t,i,s,h){t.circle(this.MARKER_SIZE).fill(h.markerFill).stroke({color:h.markerStroke,width:1}).center(i,s)}drawTriangleMarker(t,i,s,h){const e=this.MARKER_SIZE/2;t.polygon(`${i},${s-e} ${i-e},${s+e} ${i+e},${s+e}`).fill(h.markerFill).stroke({color:h.markerStroke,width:1})}drawDiamondMarker(t,i,s,h){const e=this.MARKER_SIZE/2;t.polygon(`${i},${s-e} ${i+e},${s} ${i},${s+e} ${i-e},${s}`).fill(h.markerFill).stroke({color:h.markerStroke,width:1})}drawLines(t){const i=this.scenarioGroup.group().id(this.ID_LINE_PREFIX);for(let s=1;s<this.dataPoints.length;s++){const h=this.dataPoints[s-1],e=this.dataPoints[s];if(h.dataPoint.isEmpty()||e.dataPoint.isEmpty())continue;const n=this.position.getColumnCenterPositionX(h.index),r=this.position.getColumnPositionY()-h.dataPoint.getScaledUnit(),o=this.position.getColumnCenterPositionX(e.index),l=this.position.getColumnPositionY()-e.dataPoint.getScaledUnit(),a=i.line([[n,r],[o,l]]).stroke({color:t.lineColor,width:this.LINE_WIDTH,linecap:"round"}).fill("none");t.lineDashArray&&a.attr("stroke-dasharray",t.lineDashArray)}}drawMarkers(t){const i=this.scenarioGroup.group().id(this.ID_MARKER_PREFIX),s=this.getScenarioVariant();for(const h of this.dataPoints){if(h.dataPoint.isEmpty())continue;const e=this.position.getColumnCenterPositionX(h.index),n=this.position.getColumnPositionY()-h.dataPoint.getScaledUnit();switch(s){case 2:this.drawCircleMarker(i,e,n,t);break;case 3:this.drawTriangleMarker(i,e,n,t);break;case 4:this.drawDiamondMarker(i,e,n,t);break;default:this.drawSquareMarker(i,e,n,t)}}}getLabelPositionPriority(t){const i=this.dataPoints[t];let s=null;for(let i=t+1;i<this.dataPoints.length;i++)if(!this.dataPoints[i].dataPoint.isEmpty()){s=this.dataPoints[i];break}let h=null;for(let i=t-1;i>=0;i--)if(!this.dataPoints[i].dataPoint.isEmpty()){h=this.dataPoints[i];break}const e=i.dataPoint.getScaledUnit();return h&&s&&h.dataPoint.getScaledUnit()>e&&s.dataPoint.getScaledUnit()>e?[W.Below,W.Left,W.Right,W.Above]:[W.Above,W.Left,W.Right,W.Below]}getScenarioType(){var t,i;return(null===(i=null===(t=this.scenarioName)||void 0===t?void 0:t.slice(0,2))||void 0===i?void 0:i.toLowerCase())||"ac"}drawValueLabels(t,i){const s=this.getScenarioType();for(let h=0;h<this.dataPoints.length;h++){const e=this.dataPoints[h];if(e.dataPoint.isEmpty()||null===e.dataPoint.value)continue;const n=this.position.getColumnCenterPositionX(e.index),r=this.position.getColumnPositionY()-e.dataPoint.getScaledUnit();let o=n,l=r-this.MARKER_SIZE/2-2,a=X.Bottom,c=X.Center;if(this.collisionManager){const t=this.getLabelPositionPriority(h),i=this.collisionManager.getOptimalPlacement(n,r,this.ESTIMATED_LABEL_WIDTH,this.ESTIMATED_LABEL_HEIGHT,e.index,this.MARKER_SIZE,s,t);if(null===i)continue;o=i.labelX,l=i.labelY,a=i.verticalHook,c=i.horizontalHook;const u=Object.assign(Object.assign({},i.bounds),{scenarioType:s});this.collisionManager.register(u)}new B(this.labelGroup,o,l,this.ID_LABEL_PREFIX,e.dataPoint.value,this.styles,a,c).draw(!0,t,i)}}drawScenarioLabel(){if(!this.scenarioLabel)return;let t=null;for(let i=this.dataPoints.length-1;i>=0;i--)if(!this.dataPoints[i].dataPoint.isEmpty()){t=this.dataPoints[i];break}if(!t)return;const i=this.position.getColumnCenterPositionX(t.index)+this.MARKER_SIZE+4,s=this.position.getColumnPositionY()-t.dataPoint.getScaledUnit(),h=this.getScenarioType();if(this.collisionManager){if(this.collisionManager.shouldHideScenarioLabel(i,s,h))return;this.collisionManager.registerScenarioLabel(i,s,h)}new B(this.labelGroup,i,s,"SCENARIO_LABEL",this.scenarioLabel,this.styles,X.Center,X.Left).forceStringTypeDraw()}}class rt{constructor(t,i,s,h,e,n,r,o,l,a,c){this.hasData=!1,this.position=t,this.styles=i,this.dataPoint=s,this.index=h,this.baselineValue=e,this.segmentIndex=r,this.stackMode=o,this.totalValue=l,this.group=c,this.columnGroup=c.group().id(`stacked_col_${h}_seg_${r}`),!0!==(null==s?void 0:s.isEmpty())&&null!=s.value&&(this.hasData=!0)}draw(t={percent:2,decimal:1},i=new S){if(!this.hasData||null==this.dataPoint.value)return;const s=this.dataPoint.value,h=this.dataPoint.pixelPerUnit;let e,n;const l=this.position.getColumnPositionY();if(this.stackMode===M.RELATIVE){const t=h;e=(0!==this.totalValue?Math.abs(s)/Math.abs(this.totalValue):0)*t,n=l-this.baselineValue/Math.abs(this.totalValue)*t-e}else e=Math.abs(s*h),n=l-this.baselineValue*h-e;const a=this.position.getColumnCenterPositionX(this.index),c=this.position.getColumnWidth(),u=r(this.segmentIndex),d={color:u},f={color:o(this.segmentIndex),width:.5};if(this.columnGroup.rect(c,Math.max(e,.5)).fill(d).stroke(f).y(n).cx(a),e>=18){const h=n+e/2;if(this.stackMode===M.RELATIVE||this.stackMode===M.ABSOLUTE_RELATIVE){const i=(0!==this.totalValue?s/this.totalValue*100:0).toFixed(t.percent)+"%";new B(this.group,a,h,"STACK_SEG",i,this.styles,X.Center,X.Center).setSegmentFill(u).forceStringTypeDraw()}else new B(this.group,a,h,"STACK_SEG",s,this.styles,X.Center,X.Center).setSegmentFill(u).draw(!0,t,i)}}drawTotalLabel(t={percent:2,decimal:1},i=new S){if(this.stackMode===M.RELATIVE)return;const s=this.position.getColumnCenterPositionX(this.index),h=this.position.getColumnPositionY();new B(this.group,s,h-this.totalValue*this.dataPoint.pixelPerUnit-this.position.spacings.labelToColumn,"STACK_TOTAL",this.totalValue,this.styles,X.Bottom,X.Center).draw(!0,t,i)}}const ot={ac:{fill:"#000000",opacity:.3,lineColor:"#000000"},pp:{fill:"#999999",opacity:.3,lineColor:"#999999"},fc:{fill:"#000000",opacity:.2,lineColor:"#000000",dashArray:"4,4"},pl:{fill:"#000000",opacity:.1,lineColor:"#000000"}},lt=[{fill:"#000000",opacity:.3},{fill:"#555555",opacity:.25},{fill:"#999999",opacity:.2},{fill:"#bbbbbb",opacity:.15},{fill:"#dddddd",opacity:.1}];class at{constructor(t,i,s,h,e,n){this.group=t.group().id(`area_fill_${e}`),this.upperPoints=i,this.lowerPoints=s,this.scenarioType=h,this.segmentIndex=e,this.isScenarioStack=n}draw(){if(this.upperPoints.length<2||this.lowerPoints.length<2)return;let t,i,s=`M ${this.upperPoints[0].x},${this.upperPoints[0].y}`;for(let t=1;t<this.upperPoints.length;t++)s+=` L ${this.upperPoints[t].x},${this.upperPoints[t].y}`;for(let t=this.lowerPoints.length-1;t>=0;t--)s+=` L ${this.lowerPoints[t].x},${this.lowerPoints[t].y}`;if(s+=" Z",this.isScenarioStack&&this.scenarioType){const s=this.scenarioType.slice(0,2).toLowerCase(),h=ot[s]||ot.ac;t=h.fill,i=h.opacity}else{const s=Math.min(this.segmentIndex,lt.length-1);t=lt[s].fill,i=lt[s].opacity}this.group.path(s).fill(t).opacity(i).stroke("none")}drawBoundaryLine(){if(this.upperPoints.length<2)return;let t,i="#000000";if(this.isScenarioStack&&this.scenarioType){const s=this.scenarioType.slice(0,2).toLowerCase(),h=ot[s]||ot.ac;i=h.lineColor,t=h.dashArray}const s=this.group.polyline(this.upperPoints.map((t=>[t.x,t.y]))).fill("none").stroke({color:i,width:1.5});t&&s.attr("stroke-dasharray",t)}}class ct{constructor(t,i,s,h,e,n,r,o){this.ID_DATA_PREFIX="DATA",this.ID_SCENARIO_PREFIX="SCENARIO",this.ID_RECT="RECT",this.FALLBACK_COLOUR="#000000",this.label=null,this.scenarioLabel=null,this.isVarianceLine=!1,this.dimensions={columnLength:0,xPos:0,yPos:0,labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:!1},this.previousDimensions={columnLength:0,xPos:0,yPos:0,labelYPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:!1},this.hasData=!1,this.dataPoint=s,this.index=e,this.isPrimaryLine=n,this.position=t,this.LineBarStyles=i.barStyles,this.scenarioGroup=r,this.styles=i,this.LineGroup=r.group().id(r.toString()+"_"+this.ID_RECT),!0!==(null==s?void 0:s.isEmpty())&&(this.hasData=!0,this.dimensions=this.createDimensions(s,e,n),this.label=this.getDataLabel(s),this.scenarioLabel=this.getScenarioLabel(o)),this.previousDimensions=this.createDimensions(h,e-1,n)}setAsVariance(){var t;return this.isVarianceLine=!0,null===(t=this.label)||void 0===t||t.setToVarianceLabel(),this}updateLabelGroup(t){var i;return this.isEmpty()||null===(i=this.label)||void 0===i||i.updateGroup(t),this}draw(t={percent:2,decimal:1},i=new S){if(this.isEmpty())return this;const s=this.getScenarioStyle(),h=this.getFillStyle(s);null!=this.LineGroup&&this.LineGroup.line([[this.previousDimensions.xPos,this.previousDimensions.yPos],[this.dimensions.xPos,this.dimensions.yPos]]).fill(h).stroke({color:"#f06",width:3,linecap:"round"}),this.drawLineDataLabel(t,i),this.drawScenarioLabel()}createDimensions(t,i,s){return{clipped:!1,columnLength:t.getScaledUnit(),xPos:this.position.getColumnPositionX(i,s),yPos:this.position.getColumnPositionY()-t.getScaledUnit(),labelYPos:this.position.getColumnDataLabelPositionY(t.getScaledUnit()),scenarioLabelXPos:this.position.getColumnPositionX(i,s)+this.position.getScenarioLabelPositionOffsetX(s),scenarioLabelYPos:this.position.getColumnPositionY()-t.getScaledUnit()}}getDataLabel(t){let i=X.Bottom;return null!=t.value&&t.value<0&&(i=X.Top),new B(this.scenarioGroup,this.position.getColumnCenterPositionX(this.index),this.position.getColumnDataLabelPositionY(this.dataPoint.getScaledUnit()),this.ID_DATA_PREFIX,t.value,this.styles,i,X.Center)}getScenarioLabel(t){return new B(this.scenarioGroup,0,0,this.ID_SCENARIO_PREFIX,t,this.styles,X.Bottom,X.Left)}convertToSVGStyle(t,i){return null==t&&(t=[]),t.color=t[i]||this.FALLBACK_COLOUR,Object.assign({},t)}drawScenarioLabel(){null==this.scenarioLabel||this.scenarioLabel.isEmpty()||this.isVarianceLine||this.scenarioLabel.setPos(this.dimensions.scenarioLabelXPos,this.dimensions.scenarioLabelYPos).draw(!0)}drawLineDataLabel(t,i=new S){var s;null===(s=this.label)||void 0===s||s.draw(this.isPrimaryLine,t,i)}getFillStyle(t){var i,s,h,e;const n=this.LineBarStyles[this.dataPoint.getScenario()];return(null==n?void 0:n.fillpattern)&&(null===(i=this.styles.pattern.get(n.fillpattern))||void 0===i?void 0:i.pattern)?null===(e=null===(h=null===(s=this.styles)||void 0===s?void 0:s.pattern)||void 0===h?void 0:h.get(n.fillpattern))||void 0===e?void 0:e.pattern:this.convertToSVGStyle(t,"fill")}getScenarioStyle(){var t;return this.isVarianceLine?null===(t=this.styles)||void 0===t?void 0:t.varianceStyles.getSVGStyle(this.dataPoint.getVarianceStyle()):this.LineBarStyles[this.dataPoint.getScenario()]}isEmpty(){return!1===this.hasData||Number.isNaN(this.dataPoint.value)}}class ut{constructor(t,i,s,h,e){this.pixelPerUnit=1,this.collisionManager=null,this.overflowConfig=null,this.i18n=e;const n=i.group().id("Scenario1"),r=i.group().id("Scenario2").insertBefore(n);this.svgGroups={parent:i,scenario1:n,scenario2:r,scenario3:i.group().id("Scenario3"),scenario4:i.group().id("Scenario4"),scenario1Label:i.group().id("label")},this.styles=s,this.position=t,this.elementCnt=h}setOverflowConfig(t){this.overflowConfig=t}createLine(t,i,s,h){const e=this.svgGroups.scenario1.group().id(""+h),n=this.svgGroups.scenario1Label.group().id(""+h);let r=null;return this.isLastDataPoint(h-1)&&(r=t),new ct(this.position,this.styles,i,s,h,!1,e,r).updateLabelGroup(n)}createPrimaryBar(t,i){const s=this.svgGroups.scenario1.group().id(""+i),h=this.svgGroups.scenario1Label.group().id(""+i);let e=null;return this.isLastDataPoint(i)&&(e=`${this.i18n.get(t.scenario)||t.scenario}`),new it(this.position,this.styles,t,i,!0,s,e,this.overflowConfig).updateLabelGroup(h)}createVarianceBar(t,i){const s=this.svgGroups.scenario1.group().id(""+i),h=this.svgGroups.scenario1Label.group().id(""+i);let e=null;return this.isLastDataPoint(i)&&(e=`${this.i18n.get(t.scenario)||t.scenario}`),new it(this.position,this.styles,t,i,!0,s,e,this.overflowConfig).updateLabelGroup(h).setAsVariance()}createRelativeVarianceBar(t,i){const s=this.svgGroups.scenario1.group().id(""+i),h=this.svgGroups.scenario1Label.group().id(""+i);return new ht(this.position,this.styles,t,i,s).updateLabelGroup(h)}createSecondaryBar(t,i){const s=this.svgGroups.scenario2.group().id(""+i);let h=null;return this.isFirstDataPoint(i)&&(h=`${this.i18n.get(t.scenario)||t.scenario}`),new it(this.position,this.styles,t,i,!1,s,h,this.overflowConfig)}createPrimaryMarker(t,i){const s=this.svgGroups.scenario3.group().id(""+i),h=this.styles.pattern.get("marker-right")||{foreground:"#000000",background:"#ffffff",bgOffset:0};let e=null;return this.isFirstDataPoint(i)&&(e=`${this.i18n.get(t.scenario)||t.scenario}`),new st(this.position,s,h,t.scenario,this.styles,t,i,e,!0)}createSecondaryMarker(t,i){const s=this.svgGroups.scenario4.group().id(""+i),h=this.styles.pattern.get("marker-left")||{foreground:"#000000",background:"#ffffff",bgOffset:0};let e=null;return this.isLastDataPoint(i)&&(e=`${this.i18n.get(t.scenario)||t.scenario}`),new st(this.position,s,h,t.scenario,this.styles,t,i,e,!1)}isLastDataPoint(t){return this.elementCnt-1===t}isFirstDataPoint(t){return 0===t}setCollisionManager(t){this.collisionManager=t}moveLabelsToFront(){this.svgGroups.scenario1Label.front()}createLineSeries(t,i){const s=this.svgGroups.parent.group().id("LineSeries_"+i),h=this.svgGroups.scenario1Label.group().id("LineSeries_Label_"+i),e=`${this.i18n.get(i)||i}`;return new nt(this.position,this.styles,t,s,h,i,e,this.i18n,this.collisionManager)}}var dt,ft;!function(t){t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.DIRTY=1]="DIRTY"}(dt||(dt={})),function(t){t.RELATIVE="dr",t.ABSOLUTE="d",t.NONE=""}(ft||(ft={}));class pt{constructor(t,i,s,h=0){this.CSS_CATEGORIES="categories",this.dataModel=[],this.variancesDataModel=[],this.title="",this.smallestDataPointValue=new q(0,G.AC1,1,G.NEU),this.highestDataPointValue=new q(0,G.AC1,1,G.NEU),this.smallestVarianceDataPointValue=new q(0,G.AC1,1,G.NEU),this.highestVarianceDataPointValue=new q(0,G.AC1,1,G.NEU),this.pixelPerUnit=1,this.pixelPerPercentage=1,this.hideAxisLabels=!1,this.axisScenario=G.AC1,this.preparedDataSet=[],this.axisCategoryArea={width:0,height:0},this.scenariosArea={width:0,height:0},this.state=dt.DIRTY,this.i18n=new Map,this.leftSideOffsetForHorizontalSync=-1,this.dateInterval=_.DAY,this.locale="de",this.axisLabelsMode=C.SMART,this.intervalSpanLimit=32,this.measureScale=new S,this.measureUnit="",this.dataFormatDigits={percent:2,decimal:1},this.showOverlayMedian=!1,this.showOverlayAvg=!1,this.chartMode=x.BAR,this.maxBars=28,this.stackConfig=null,this.lineFullWidth=!0,this.availableWidth=0,this.overflowConfig=null,this.lastScenarios=[],this.initSQLFunctions(),this.ruleSet=t||new E,this.i18n=this.createI18n(new Map),this.styles=s,this.availableWidth=h,this.setConfig(i),this.position=this.createElementPosition(i.scenarios)}updatePosition(t){this.position=this.createElementPosition(t)}initSQLFunctions(){T.fn.transformOperator=function(t){return"-"===t?-1:1},T.fn.normalizeDate=function(t,i){if(void 0!==t&&t.isValid)return t.startOf(i)}}setStyles(t){this.styles=t}setAvailableWidth(t){this.availableWidth=t}setAvailableHeight(t){this.pixelPerUnit<=0||t<=0?this.overflowConfig=null:null==this.stackConfig&&this.determineEffectiveChartMode()===x.BAR?(this.overflowConfig=this.calculateOverflowConfig(t),this.overflowConfig&&this.updatePosition(this.lastScenarios)):this.overflowConfig=null}calculateOverflowConfig(t){const i=(this.isVarianceChart()?this.highestVarianceDataPointValue:this.highestDataPointValue).getScaledUnit();if(i<=0)return null;const s=this.styles.fontStyles.size,h=1.5*s,e=.3*s,n=t-(this.position.dataLabelHeight+this.position.spacings.labelToColumn+this.position.padding.top+this.position.padding.bottom+this.position.spacings.labelToAxis+s)-h-e,r=.8*s;if(n<=r)return null;const o=n-r;return i<=o?null:{cutHeight:n,overdriveZoneHeight:h,breakGap:e,maxOverflow:i-o,scenarioCutOffset:r}}setConfig(t){var i;this.state=dt.DIRTY,this.sortScenariosbyVisualisationRules(t),this.setData([...t.data],t.filter),this.hideAxisLabels=t.hideAxisLabels||!1,this.pixelPerUnit=t.pixelPerUnit,this.pixelPerPercentage=t.pixelPerPercentage,this.axisLabelsMode=t.axisLabelsMode,this.intervalSpanLimit=t.intervalSpanLimit,this.dateInterval=this.findDateInterval(t.dateInterval),this.dataModel=this.populateModel(t.scenarios,this.dateInterval,t.level,t.sortOrder),this.variancesDataModel=this.populateVarianceModel(t.variances,this.dataModel),this.title=t.title||L.translateScenarioLabel(null===(i=null==t?void 0:t.variances)||void 0===i?void 0:i.toString(),this.i18n),this.smallestDataPointValue=this.findSmallestDataPointValue(this.dataModel),this.smallestVarianceDataPointValue=this.findSmallestDataPointValue(this.variancesDataModel),this.highestDataPointValue=this.findHighestDataPointValue(this.dataModel),this.highestVarianceDataPointValue=this.findHighestDataPointValue(this.variancesDataModel),this.axisScenario=this.setAxisScenario(t.variances),this.leftSideOffsetForHorizontalSync=t.leftSideOffsetForHorizontalSync,this.measureScale=t.measureScale,this.measureUnit=t.measureUnit,this.dataFormatDigits=t.dataFormatDigits,this.showOverlayMedian=t.showOverlayMedian,this.showOverlayAvg=t.showOverlayAvg,this.chartMode=t.chartMode,this.maxBars=t.maxBars,this.stackConfig=t.stackConfig,this.lineFullWidth=t.lineFullWidth,this.lastScenarios=t.scenarios,this.updatePosition(t.scenarios)}getFooter(){return 1===this.measureScale.value&&""===this.measureUnit?" ":L.translateScenarioLabel("in",this.i18n)+" "+this.measureScale.prefix+this.measureUnit}sortScenariosbyVisualisationRules(t){const i=this;t.scenarios.sort(((t,s)=>i.ruleSet.getScenarioSorIndex(t)-i.ruleSet.getScenarioSorIndex(s))).reverse()}setI18n(t){this.i18n=this.createI18n(t)}setData(t,i){if(null!=t)if(this.state=dt.DIRTY,this.preparedDataSet.length=0,null!=i&&i.length>0)try{this.preparedDataSet=T(`SELECT * FROM ? WHERE ${i}`,[t])}catch(s){console.error("TimeChart: filter query failed, using unfiltered data",i,s),this.preparedDataSet=t}else this.preparedDataSet=t}getAllocatedCanvasWidth(){const t=this.position.getAxisEndPositionX(),i=3*this.styles.fontStyles.size,s=Math.max(this.axisCategoryArea.width,this.scenariosArea.width);return Math.max(t+i,s>0?s+this.position.leftSideLabelLength:0)}getAllocatedCanvasHeight(){if(null==this.smallestVarianceDataPointValue.value||null==this.highestVarianceDataPointValue.value||null==this.smallestDataPointValue.value||null==this.highestDataPointValue.value)return 0;const t=this.isVarianceChart()&&this.variancesDataModel.some((t=>t.type===ft.RELATIVE)),i=this.position.getAxisPositionY(t),s=this.position.spacings.labelToAxis+this.position.dataLabelHeight+this.styles.padding.bottom;let h;if(this.isOnSameAxisSide())h=i+s;else{const t=this.isVarianceChart()?this.smallestVarianceDataPointValue:this.smallestDataPointValue;h=i+Math.abs(t.getScaledUnit())+this.position.spacings.labelToColumn+this.position.dataLabelHeight+s}const e=this.isOnSameAxisSide();return Math.max(h,e?this.axisCategoryArea.height+this.scenariosArea.height:this.scenariosArea.height)}toString(){const t=new e;return this.draw(t),t.id("drawCanvas"),t.width(this.getAllocatedCanvasWidth()),t.height(this.getAllocatedCanvasHeight()),t.attr("overflow","visible"),t.svg()}draw(t){this.cleanSVGforRedraw(t),this.state===dt.DIRTY&&(this.state=dt.UP_TO_DATE),this.isVarianceChart()?(this.drawVarianceScenario(this.variancesDataModel,t),this.drawAxisAndLabels(this.variancesDataModel,t)):null!=this.stackConfig?this.determineEffectiveChartMode()===x.LINE?(this.drawStackedAreaScenarios(this.dataModel,t),this.drawAxisAndLabelsForLineChart(this.dataModel,t)):(this.drawStackedScenarios(this.dataModel,t),this.drawStackedHeaders(this.dataModel,t),this.drawAxisAndLabels(this.dataModel,t)):this.determineEffectiveChartMode()===x.LINE?(this.drawLineScenarios(this.dataModel,t),this.drawAxisAndLabelsForLineChart(this.dataModel,t)):(this.drawScenarios(this.dataModel,t),this.drawOverlayLayer(this.dataModel,t),this.drawAxisAndLabels(this.dataModel,t))}determineEffectiveChartMode(){return this.chartMode===x.LINE||this.chartMode===x.AUTO&&this.dataModel.length>this.maxBars?x.LINE:x.BAR}setPattern(t,i){this.styles.pattern.set(t,i)}hasNoData(){return 0===this.dataModel.length}isOnSameAxisSide(){return null!=this.smallestVarianceDataPointValue.value&&null!=this.highestVarianceDataPointValue.value&&null!=this.smallestDataPointValue.value&&null!=this.highestDataPointValue.value&&(this.isVarianceChart()?Math.sign(this.smallestVarianceDataPointValue.value)===Math.sign(this.highestVarianceDataPointValue.value)||0===this.smallestDataPointValue.value&&1===Math.sign(this.highestDataPointValue.value):Math.sign(this.smallestDataPointValue.value)===Math.sign(this.highestDataPointValue.value)||0===this.smallestDataPointValue.value&&1===Math.sign(this.highestDataPointValue.value))}createI18n(t){this.state=dt.DIRTY;const i=new Map([["SEPERATOR_WS",", "],["in","in"],["ORDER_asc","↑"],["ORDER_desc","↓"],["ac1","AC"],["pp1","PY"],["fc1","FC"],["pl1","PL"],["ac2","AC2"],["pp2","PY2"],["fc2","FC2"],["pl2","PL2"],["ac3","AC3"],["pp3","PY3"],["fc3","FC3"],["pl3","PL3"],["ac4","AC4"],["pp4","PY4"],["fc4","FC4"],["pl4","PL4"],["category"," "],["operation"," "],["there_of","davon"],["part_of","in % von"],["ibcssymbol_delta_ac","Δ{%}"],["ibcssymbol_delta_generic","Δ({%})"],["ibcssymbol_delta_ac_relative","Δ{%}%"],["ibcssymbol_delta_generic_relative","Δ({%})%"],["SUM_TOTAL","❖"]]);return new Map([...i,...t])}createElementPosition(t){let i;const s=m(t.filter(((t,i)=>1===i||2===i)).map((t=>L.translateScenarioLabel(t,this.i18n))).reduce(((t,i)=>t.length<i.length?i:t),""),{font:this.styles.fontStyles.font,fontSize:this.styles.fontStyles.size+"px"}).width,h=this.calculateTitleLength(this.leftSideOffsetForHorizontalSync);let e,n;if(i=s>h?s:h,null!=this.position&&(i+=this.position.spacings.labelToColumn),this.leftSideOffsetForHorizontalSync>-1&&(i=this.leftSideOffsetForHorizontalSync),this.isVarianceChart()?(e=this.smallestVarianceDataPointValue,n=this.highestVarianceDataPointValue):(e=this.smallestDataPointValue,n=this.highestDataPointValue),this.overflowConfig){const{cutHeight:t,overdriveZoneHeight:i,breakGap:s}=this.overflowConfig;n=new q(t+i+s,n.scenario,1,n.variance)}let r=this.styles.scaleFactors;const o=this.determineEffectiveChartMode();if(this.lineFullWidth&&this.availableWidth>0&&this.dataModel.length>0&&!this.isVarianceChart()&&o===x.LINE){const t=this.styles.fontStyles.size,s=this.styles.padding,h=this.styles.scaleFactors,e=this.availableWidth-(s.left+s.right+t*h.scenarioOffset+i+t*h.columnWidth);if(e>0){const i=Math.max(e/this.dataModel.length/t,1.2*h.columnWidth),s=new N;Object.assign(s,h),s.categoryWidth=i,r=s}}return new F(new H(this.styles.padding),r,this.styles.fontStyles,e,n,this.dataModel.length,i)}calculateTitleLength(t){let i="_______";i.length<this.title.length&&(i=this.title);const s=m(i,{font:this.styles.fontStyles.font,fontSize:this.styles.fontStyles.size+"px"}).width;return s<t?t:s}setAxisScenario(t){let i=G.AC1;if(null!=t&&t.length>0){const s=new P(t.toString());s.isValid&&(i=s.delta)}return null===i&&(i=G.AC1),i}populateModel(t,i,s,h){var e;if(0===(null===(e=this.preparedDataSet)||void 0===e?void 0:e.length))return[];let n=this.queryDataSet(i,"","");return this.detectNaNCells(t,n),n=this.leftOuterJoinDates(n,i),this.createDataRows(n,t)}detectNaNCells(t,i){i.forEach((i=>(t.forEach((t=>{const s=new P(t);!0===s.isValid?0!==i[s.base+"_cnt"]&&0!==i[s.delta+"_cnt"]||(i[t]=Number.NaN):0===i[t+"_cnt"]&&(i[t]=Number.NaN)})),i)))}findDateInterval(t){var i,s,h;if(t!==_.AUTO)return t;const e=this.queryMinMaxDates();let n=_.DAY;return null!=(null===(i=e[0])||void 0===i?void 0:i.mindate)&&(n=(new D).calculateDistanceType(null===(s=e[0])||void 0===s?void 0:s.mindate,null===(h=e[0])||void 0===h?void 0:h.maxdate,this.intervalSpanLimit)),n}queryMinMaxDates(){var t,i,s,h;const e=T("SELECT MAX(date) as maxdate, MIN(date) as mindate FROM ?",[this.preparedDataSet]);return null!=(null===(t=e[0])||void 0===t?void 0:t.mindate)&&(e[0].mindate=$.fromMillis(null===(i=e[0])||void 0===i?void 0:i.mindate)),null!=(null===(s=e[0])||void 0===s?void 0:s.maxdate)&&(e[0].maxdate=$.fromMillis(null===(h=e[0])||void 0===h?void 0:h.maxdate)),e}queryDataSet(t,i,s){const h=`normalizeDate([date], '${t}' , '${this.locale}') as calcdate`;return T(`SELECT p.calcdate ${i},\n ${["ac1","ac2","ac3","ac4","pp1","pp2","pp3","pp4","fc1","fc2","fc3","fc4","pl1","pl2","pl3","pl4"].map((t=>`SUM(${t} * transformOperator(operation)) as ${t}, COUNT(ISNULL(${t})) as ${t}_cnt`)).join(",")} \n \n FROM (SELECT ${h} ${i},\n ac1,\n ac2,\n ac3,\n ac4,\n pp1,\n pp2,\n pp3,\n pp4,\n fc1,\n fc2,\n fc3,\n fc4,\n pl1,\n pl2,\n pl3,\n pl4\n FROM ?) as p\n GROUP BY calcdate ${s}\n ORDER BY calcdate asc`,[this.preparedDataSet])}createDataRows(t,i){const s=[];return t.forEach(((t,h)=>{s.push({id:h,category:t.category,type:ft.NONE,date:t.calcdate,scenario1:new q(t[i[0]],i[0],this.pixelPerUnit,G.NEU),scenario2:new q(t[i[1]],i[1],this.pixelPerUnit,G.NEU),scenario3:new q(t[i[2]],i[2],this.pixelPerUnit,G.NEU),scenario4:new q(t[i[3]],i[3],this.pixelPerUnit,G.NEU)})})),s}findSmallestDataPointValue(t){const i=this.isVarianceChart()?this.pixelPerPercentage:this.pixelPerUnit;let s=new q(0,"default",i,G.NEU);for(const i of t)for(const t of[i.scenario1,i.scenario2,i.scenario3,i.scenario4])t&&null!=t.value&&t.value<Number(s.value)&&(s=t);return s}findHighestDataPointValue(t){const i=this.isVarianceChart()?this.pixelPerPercentage:this.pixelPerUnit;let s=new q(0,"default",i,G.NEU);for(const i of t)for(const t of[i.scenario1,i.scenario2,i.scenario3,i.scenario4])null!=t&&t.value>Number(s.value)&&(s=t);return s}populateVarianceModel(t,i){const s=[];if(null==t||0===t.length)return s;let h=null;null!=i&&i.length>0&&(h=i[0]);for(const e in t){const n=new P(t[e]);if(n.isValid){const t=this.mapScenarios(n,h),e=n.direction,r="dr"===n.type?this.pixelPerPercentage:this.pixelPerUnit;for(const h in i)s.push({id:Number(h),category:i[h].category,type:"dr"===n.type?ft.RELATIVE:ft.ABSOLUTE,date:i[h].date,scenario1:new q(this.calculateVariance(n,i[h],t),n.delta,r,e),scenario2:new q(null,null,null,null),scenario3:new q(null,null,null,null),scenario4:new q(null,null,null,null)})}}return s}calculateVariance(t,i,s){const h=s.get(t.base),e=s.get(t.delta);return null==h||null==e||null==i[h].value||null==i[e].value?null:t.type===ft.RELATIVE?(i[h].value-i[e].value)/i[e].value:i[h].value-i[e].value}mapScenarios(t,i){const s=new Map;return null==i||["scenario1","scenario2","scenario3","scenario4"].forEach((h=>{i[h].scenario===t.delta?s.set(t.delta,h):i[h].scenario===t.base&&s.set(t.base,h)})),s}cleanSVGforRedraw(t){t.clear()}isVarianceChart(){return this.variancesDataModel&&this.variancesDataModel.length>0}createDateFactory(){return new D}drawAxisAndLabels(t,i){const s=this.createDateFactory(),h=i.group().id("AxisAndDateLables");let e=!1;if(!1===this.hideAxisLabels)t.forEach(((t,i)=>{let n=X.Top,r=this.position.spacings.labelToAxis;t.scenario1.value<0&&(n=X.Bottom,r*=-1),t.type===ft.RELATIVE&&(e=!0);let o=s.getDateString(t.date,this.dateInterval);this.axisLabelsMode===C.SMART?(o=s.getSmartDateString(t.date,this.dateInterval),0===i&&this.dateInterval!==_.YEAR&&(o=s.getShortDateString(t.date,this.dateInterval))):this.axisLabelsMode===C.SHORT&&(o=s.getShortDateString(t.date,this.dateInterval)),new B(h,this.position.getColumnCenterPositionX(i),this.position.getAxisPositionY(e)+r,"",o,this.styles,n,X.Center).forceStringTypeDraw()}));else{const i=null==t?void 0:t[0];i&&i.type===ft.RELATIVE&&(e=!0)}new tt({scenarioType:this.axisScenario,labelText:this.title,isRelative:e},this.position,h).draw(),this.axisCategoryArea={height:h.height(),width:h.width()}}drawScenarios(t,i){const s=i.group().id("Scenarios"),h=new ut(this.position,s,this.styles,t.length,this.i18n);h.setOverflowConfig(this.overflowConfig);let e=!1;t.forEach(((t,i)=>{h.createPrimaryBar(t.scenario1,i).draw(this.dataFormatDigits,this.measureScale),h.createSecondaryBar(t.scenario2,i).draw(),h.createPrimaryMarker(t.scenario3,i).draw(),h.createSecondaryMarker(t.scenario4,i).draw(),!1===t.scenario1.isEmpty()&&(e=!0)}));let n=0;!1===e&&(n=this.isOnSameAxisSide()?this.position.dataLabelHeight:2*this.position.dataLabelHeight),this.scenariosArea={height:s.height()+this.styles.padding.top+this.styles.padding.bottom+n,width:s.width()+this.position.spacings.columnWidth}}drawLineScenarios(t,i){var s,h;const e=i.group().id("LineScenarios"),n=new z,r=new ut(this.position,e,this.styles,t.length,this.i18n);r.setCollisionManager(n);const o=["ac1","pp1","fc1","pl1"],l=[[],[],[],[]];t.forEach(((t,i)=>{["scenario1","scenario2","scenario3","scenario4"].forEach(((s,h)=>{t[s]&&l[h].push({dataPoint:t[s],index:i})}))}));const a=[];for(let t=0;t<l.length;t++){const i=l[t];if(i.length>0&&i.some((t=>!t.dataPoint.isEmpty()))){const e=(null===(h=null===(s=i[0])||void 0===s?void 0:s.dataPoint)||void 0===h?void 0:h.scenario)||o[t],n=e.slice(0,2).toLowerCase();a.push({points:i,scenarioName:e,scenarioType:n})}}a.sort(((t,i)=>(I[i.scenarioType]||99)-(I[t.scenarioType]||99)));const c=[];for(const t of a){const i=r.createLineSeries(t.points,t.scenarioName);c.push({series:i,scenarioType:t.scenarioType})}for(const t of c)t.series.drawGeometry();r.moveLabelsToFront();const u=[...c].sort(((t,i)=>(I[t.scenarioType]||99)-(I[i.scenarioType]||99)));for(const t of u)t.series.drawLabels(this.dataFormatDigits,this.measureScale);const d=this.position.getColumnPositionY();this.scenariosArea={height:Math.max(e.height()+this.styles.padding.top,d)+this.styles.padding.bottom,width:e.width()+this.position.spacings.columnWidth}}drawAxisAndLabelsForLineChart(t,i){const s=this.createDateFactory(),h=i.group().id("AxisAndDateLabelsLine"),e=!1,n=t.length-1;!1===this.hideAxisLabels&&t.forEach(((i,r)=>{if(!this.shouldShowLineChartAxisLabel(t,r))return;let o,l=X.Top,a=this.position.spacings.labelToAxis;i.scenario1.value<0&&(l=X.Bottom,a*=-1),this.lineFullWidth&&this.availableWidth>0?this.axisLabelsMode===C.SMART?(o=s.getSmartDateString(i.date,this.dateInterval),0===r&&this.dateInterval!==_.YEAR&&(o=s.getShortDateString(i.date,this.dateInterval))):o=this.axisLabelsMode===C.SHORT?s.getShortDateString(i.date,this.dateInterval):s.getDateString(i.date,this.dateInterval):o=s.getShortDateString(i.date,this.dateInterval),new B(h,this.position.getColumnCenterPositionX(r),this.position.getAxisPositionY(e)+a,"",o,this.styles,l,X.Center).forceStringTypeDraw(),r>0&&r<n&&this.isYearChange(t,r)&&this.drawYearSeparatorLine(h,r,e)})),new tt({scenarioType:this.axisScenario,labelText:this.title,isRelative:e},this.position,h).draw(),this.axisCategoryArea={height:h.height(),width:h.width()}}shouldShowLineChartAxisLabel(t,i){return!!(this.lineFullWidth&&this.availableWidth>0)||(0===i||i===t.length-1||this.isYearChange(t,i))}isYearChange(t,i){var s,h;if(0===i)return!1;const e=null===(s=t[i])||void 0===s?void 0:s.date,n=null===(h=t[i-1])||void 0===h?void 0:h.date;return!(!e||!n)&&e.year!==n.year}drawYearSeparatorLine(t,i,s){const h=this.position.getColumnCenterPositionX(i)-this.position.spacings.columnWidth/2,e=this.position.columnValue.max.getScaledUnit()+this.position.dataLabelHeight,n=this.position.getAxisPositionY(s)-e,r=this.position.getAxisPositionY(s);t.line([[h,n],[h,r]]).stroke({color:"#999999",width:1,dasharray:"4,4"}).attr("stroke-dasharray","4,4")}drawVarianceScenario(t,i){const s=i.group().id("Scenarios"),h=new ut(this.position,s,this.styles,t.length,this.i18n);return h.setOverflowConfig(this.overflowConfig),t.forEach(((t,i)=>{t.type===ft.RELATIVE?h.createRelativeVarianceBar(t.scenario1,i).draw():h.createVarianceBar(t.scenario1,i).draw(this.dataFormatDigits,this.measureScale)})),this.scenariosArea={height:s.height()+this.styles.padding.top+this.styles.padding.bottom,width:s.width()+this.position.spacings.columnWidth},s}drawStackedScenarios(t,i){if(!this.stackConfig)return;const s=i.group().id("StackedScenarios"),h=this.stackConfig.by===A.SCENARIO;t.forEach(((t,i)=>{const e=["scenario1","scenario2","scenario3","scenario4"],n=[];if(h)for(const i of e){const s=t[i];s&&!s.isEmpty()&&null!=s.value&&n.push({value:s.value,scenario:s.scenario,dataPoint:s})}else{const i=t.scenario1;i&&!i.isEmpty()&&null!=i.value&&n.push({value:i.value,scenario:i.scenario,dataPoint:i})}if(0!==n.length)if((h?new Set(n.map((t=>l(t.scenario)))):new Set).size>1){const t=new Map;for(const i of n){const s=l(i.scenario);t.has(s)||t.set(s,[]),t.get(s).push(i)}const h=[];for(const i of a)t.has(i)&&(h.push({prefix:i,segments:t.get(i)}),t.delete(i));for(const[i,s]of t)h.push({prefix:i,segments:s});h.forEach(((t,e)=>{const n=t.segments.reduce(((t,i)=>t+Math.abs(i.value)),0),r=h.length-1-e;let o=0,l=null;t.segments.forEach((t=>{const h=new rt(this.position,this.styles,t.dataPoint,i,o,t.scenario,r,this.stackConfig.mode,n,!0,s);h.draw(this.dataFormatDigits,this.measureScale),o+=Math.abs(t.value),l=h})),l&&l.drawTotalLabel(this.dataFormatDigits,this.measureScale)}))}else{"asc"===this.stackConfig.order?n.sort(((t,i)=>t.value-i.value)):"desc"===this.stackConfig.order&&n.sort(((t,i)=>i.value-t.value));const t=n.reduce(((t,i)=>t+Math.abs(i.value)),0);let e=0,r=null;n.forEach(((n,o)=>{const l=new rt(this.position,this.styles,n.dataPoint,i,e,n.scenario,o,this.stackConfig.mode,t,h,s);l.draw(this.dataFormatDigits,this.measureScale),e+=Math.abs(n.value),r=l})),r&&r.drawTotalLabel(this.dataFormatDigits,this.measureScale)}})),this.scenariosArea={height:s.height()+this.styles.padding.top+this.styles.padding.bottom,width:s.width()+this.position.spacings.columnWidth}}drawStackedHeaders(t,i){if(!this.stackConfig||0===t.length)return;if(this.stackConfig.by!==A.SCENARIO)return;const s=i.group().id("StackedHeaders"),h=t[0],e=["scenario1","scenario2","scenario3","scenario4"],n=[];for(const t of e){const i=h[t];i&&!i.isEmpty()&&null!=i.value&&n.push({value:i.value,scenario:i.scenario,dataPoint:i})}if(0===n.length)return;const r=new Set(n.map((t=>l(t.scenario)))),o=this.position.getColumnPositionY(),c=this.position.getColumnCenterPositionX(0)-this.position.getColumnWidth()/2-this.position.spacings.labelToColumn;if(r.size>1){const t=new Map;for(const i of n){const s=l(i.scenario);t.has(s)||t.set(s,[]),t.get(s).push(i)}const i=[];for(const s of a)t.has(s)&&(i.push({prefix:s,segments:t.get(s)}),t.delete(s));for(const[s,h]of t)i.push({prefix:s,segments:h});i.forEach((t=>{const i=t.segments.reduce(((t,i)=>t+Math.abs(i.value)),0),h=t.segments[0].dataPoint.pixelPerUnit,e=o-(this.stackConfig.mode===M.RELATIVE?h:i*h)/2,n=this.i18n.get(t.prefix+"1")||t.prefix.toUpperCase();new B(s,c,e,"STACK_HEADER",n,this.styles,X.Center,X.Right).forceStringTypeDraw()}))}else{"asc"===this.stackConfig.order?n.sort(((t,i)=>t.value-i.value)):"desc"===this.stackConfig.order&&n.sort(((t,i)=>i.value-t.value));const t=n.reduce(((t,i)=>t+Math.abs(i.value)),0),i=n[0].dataPoint.pixelPerUnit;let h=0;n.forEach((e=>{let n;n=this.stackConfig.mode===M.RELATIVE?(0!==t?Math.abs(e.value)/t:0)*i:Math.abs(e.value*i);const r=o-h-n/2,l=this.i18n.get(e.scenario)||e.scenario;new B(s,c,r,"STACK_HEADER",l,this.styles,X.Center,X.Right).forceStringTypeDraw(),h+=n}))}}drawStackedAreaScenarios(t,i){if(!this.stackConfig)return;const s=i.group().id("StackedAreaScenarios"),h=this.stackConfig.by===A.SCENARIO,e=this.stackConfig.mode,n=["scenario1","scenario2","scenario3","scenario4"];if(0===(h?n.filter((i=>t.some((t=>t[i]&&!t[i].isEmpty())))).length:1))return;const r=[],o=[],l=[];for(const i of n)t.some((t=>t[i]&&!t[i].isEmpty()))&&l.push(i);for(let i=0;i<l.length;i++){const s=l[i],h=[];for(let n=0;n<t.length;n++){const o=t[n][s],a=o&&!o.isEmpty()&&null!=o.value?o.value:0,c=i>0?r[i-1][n]:0;if(e===M.RELATIVE){const i=l.reduce(((i,s)=>{const h=t[n][s];return i+(h&&!h.isEmpty()&&null!=h.value?Math.abs(h.value):0)}),0),s=0!==i?Math.abs(a)/i:0;h.push(c+s)}else h.push(c+a)}r.push(h);const n=t[0][s];o.push((null==n?void 0:n.scenario)||"ac1")}const a=this.position.getColumnPositionY(),c=this.pixelPerUnit,u=t=>t.map(((t,i)=>({x:this.position.getColumnCenterPositionX(i),y:a-t*c}))),d=t.map(((t,i)=>({x:this.position.getColumnCenterPositionX(i),y:a})));for(let t=0;t<r.length;t++){const i=u(r[t]),e=0===t?d:u(r[t-1]),n=new at(s,i,e,h?o[t]:null,t,h);n.draw(),n.drawBoundaryLine()}this.scenariosArea={height:s.height()+this.styles.padding.top+this.styles.padding.bottom,width:s.width()+this.position.spacings.columnWidth}}drawOverlayLayer(t,i){const s=i.group().id("Overlay"),h=new ut(this.position,s,this.styles,t.length,this.i18n);if(!0===this.showOverlayAvg){let i=null;const s=function(t){const i=t.reduce(((t,i)=>{var s;return t+((null===(s=i.scenario1)||void 0===s?void 0:s.value)||0)}),0),s=t.filter((t=>{var i;return void 0!==(null===(i=t.scenario1)||void 0===i?void 0:i.value)})).length,h=s>0?i/s:0,e=Object.assign(Object.assign({},t[0]),{scenario1:new q(h,t[0].scenario1.scenario,t[0].scenario1.pixelPerUnit,t[0].scenario1.variance)}),n=Object.assign(Object.assign({},t[t.length-1]),{scenario1:new q(h,t[t.length-1].scenario1.scenario,t[t.length-1].scenario1.pixelPerUnit,t[t.length-1].scenario1.variance)});return[e,...t.map((t=>Object.assign(Object.assign({},t),{scenario1:new q(h,t.scenario1.scenario,t.scenario1.pixelPerUnit,t.scenario1.variance)}))),n]}(t);s.forEach(((t,s)=>{null!=i&&h.createLine(`Ø ${this.i18n.get(t.scenario1.scenario)||t.scenario1.scenario}`,t.scenario1,i,s-1).draw(this.dataFormatDigits,this.measureScale),i=t.scenario1}))}if(!0===this.showOverlayMedian){let i=null;const s=function(t){const i=t.map((t=>{var i;return null===(i=t.scenario1)||void 0===i?void 0:i.value})).filter((t=>void 0!==t)).sort(((t,i)=>t-i)),s=i.length%2==0?(i[i.length/2-1]+i[i.length/2])/2:i[Math.floor(i.length/2)],h=Object.assign(Object.assign({},t[0]),{scenario1:new q(s,t[0].scenario1.scenario,t[0].scenario1.pixelPerUnit,t[0].scenario1.variance)}),e=Object.assign(Object.assign({},t[t.length-1]),{scenario1:new q(s,t[t.length-1].scenario1.scenario,t[t.length-1].scenario1.pixelPerUnit,t[t.length-1].scenario1.variance)});return[h,...t.map((t=>Object.assign(Object.assign({},t),{scenario1:new q(s,t.scenario1.scenario,t.scenario1.pixelPerUnit,t.scenario1.variance)}))),e]}(t);s.forEach(((t,s)=>{null!=i&&h.createLine(`Mdn ${this.i18n.get(t.scenario1.scenario)||t.scenario1.scenario}`,t.scenario1,i,s-1).draw(this.dataFormatDigits,this.measureScale),i=t.scenario1}))}}leftOuterJoinDates(t,i){const s=$.max(...t.map((function(t){return t.calcdate}))),h=$.min(...t.map((function(t){return t.calcdate}))),e=(new D).datesBetween(h,s,i,this.intervalSpanLimit),n=new Map;return e.forEach(((t,i)=>{n.set(t.toISO(),{id:i,calcdate:t,category:null,ac1:null,ac2:null,ac3:null,ac4:null,pp1:null,pp2:null,pp3:null,pp4:null,fc1:null,fc2:null,fc3:null,fc4:null,pl1:null,pl2:null,pl3:null,pl4:null,isEmpty:!0})})),t.forEach((t=>{const i=t.calcdate.toISO(),s=n.get(i);s&&s.isEmpty&&n.set(i,{id:s.id,calcdate:t.calcdate,category:t.category,ac1:t.ac1,ac2:t.ac2,ac3:t.ac3,ac4:t.ac4,pp1:t.pp1,pp2:t.pp2,pp3:t.pp3,pp4:t.pp4,fc1:t.fc1,fc2:t.fc2,fc3:t.fc3,fc4:t.fc4,pl1:t.pl1,pl2:t.pl2,pl3:t.pl3,pl4:t.pl4,isEmpty:!1})})),Array.from(n.values())}}class wt{constructor(t,i){this.data=t,this.scenarios=i,this.variances=[],this.title="",this.hideAxisLabels=!1,this.pixelPerUnit=10,this.pixelPerPercentage=50,this.limit=0,this.sortOrder=new b(new Y).default(),this.level=O.CATEGORY,this.leftSideOffsetForHorizontalSync=-1,this.dateInterval=_.AUTO,this.axisLabelsMode=C.SMART,this.intervalSpanLimit=28,this.filter="",this.measureScale=new S,this.measureUnit="",this.showMeasureScale=!0,this.dataFormatDigits={decimal:1,percent:2},this.showOverlayMedian=!0,this.showOverlayAvg=!0,this.chartMode=x.BAR,this.maxBars=28,this.stackConfig=null,this.lineFullWidth=!0}}class vt{constructor(t,i,s,h,e){this.dataRowAdapter=t,this.orderAdapter=i,this.stringAdapter=s,this.dataFormatDigitsAdapter=h,this.dataSet=e}adapt(t){const i=v.adaptArray(t.data,this.dataRowAdapter),s=v.adaptArray(t.scenarios,this.stringAdapter),h=new wt(i,s);return w.isArray(t.variances)&&(h.variances=v.adaptArray(t.variances,this.stringAdapter)),w.isString(t.title)&&(h.title=t.title),w.isBoolean(t.hideAxisLabels)&&(h.hideAxisLabels=t.hideAxisLabels),w.isNumber(t.pixelPerUnit)&&(h.pixelPerUnit=t.pixelPerUnit),w.isNumber(t.pixelPerPercentage)&&(h.pixelPerPercentage=t.pixelPerPercentage),w.isNumber(t.limit)&&(h.limit=t.limit),w.isExisting(t.sortOrder)&&(h.sortOrder=this.orderAdapter.adapt(t.sortOrder)),w.isExisting(t.level)&&(h.level=t.level),w.isExisting(t.dateInterval)&&(h.dateInterval=t.dateInterval),w.isExisting(t.axisLabelsMode)&&(h.axisLabelsMode=t.axisLabelsMode),w.isNumber(t.leftSideOffsetForHorizontalSync)&&(h.leftSideOffsetForHorizontalSync=t.leftSideOffsetForHorizontalSync),w.isNumber(t.intervalSpanLimit)&&(h.intervalSpanLimit=t.intervalSpanLimit),w.isString(t.filter)&&(h.filter=t.filter),w.isExisting(t.measureScale)&&(h.measureScale=y.calculateMeasureScale(this.dataSet,h.scenarios,t.measureScale)),w.isString(t.measureUnit)&&(h.measureUnit=t.measureUnit),w.isBoolean(t.showMeasureScale)&&(h.showMeasureScale=t.showMeasureScale),w.isExisting(t.dataFormatDigits)&&(h.dataFormatDigits=this.dataFormatDigitsAdapter.adapt(t.dataFormatDigits)),w.isBoolean(t.showOverlayAvg)&&(h.showOverlayAvg=t.showOverlayAvg),w.isBoolean(t.showOverlayMedian)&&(h.showOverlayMedian=t.showOverlayMedian),w.isExisting(t.chartMode)&&(h.chartMode=t.chartMode),w.isNumber(t.maxBars)&&(h.maxBars=t.maxBars),w.isExisting(t.stackConfig)&&(h.stackConfig=t.stackConfig),w.isBoolean(t.lineFullWidth)&&(h.lineFullWidth=t.lineFullWidth),h}default(){return new wt([],[])}}const bt=class{constructor(i){t(this,i),this.data=[],this.scenarios=[],this.variances=[],this.hideAxisLabels=!1,this.pixelPerUnit=2,this.pixelPerPercentage=50,this.limit=0,this.leftSideOffsetForHorizontalSync=-1,this.i18n=new Map,this.order={hierarchy:[],direction:g.ASC},this.level=O.CATEGORY,this.dateInterval=_.AUTO,this.intervalSpanLimit=28,this.axisLabelsMode=C.SMART,this.filter="",this.measureScale="_",this.measureUnit="",this.showMeasureScale=!0,this.showOverlayMedian=!1,this.showOverlayAvg=!1,this.chartMode=x.BAR,this.maxBars=28,this.stackConfig=null,this.lineFullWidth=!0,this.containerWidth=0,this.dataFormatDigits={percent:2,decimal:1},this.parentDimensions={width:0,height:0}}render(){var t,h,e;if(void 0===this.chart)return i(s,null);if(this.chart.hasNoData()){const t=this.i18n.get("NO_DATA")||"==No Data==";return i(s,null,i("p",{class:"warning"},t))}return i(s,null,i("div",{innerHTML:null===(t=this.pattern)||void 0===t?void 0:t.toString(),class:"hidePatternContainer"}),i("div",{class:this.showMeasureScale?"footer":"footer-hide"},null===(h=this.chart)||void 0===h?void 0:h.getFooter()),i("div",{innerHTML:null===(e=this.chart)||void 0===e?void 0:e.toString()}))}async componentWillLoad(){var t;const i=this.prepareConfig(),s=this.prepareStyle(),h=this.containerWidth||0;this.chart=new pt(new E,i,s,h),this.chart.setI18n(this.i18n),this.autoFitScaling(i,s),this.chart.setAvailableHeight((null===(t=this.parentDimensions)||void 0===t?void 0:t.height)||0),this.pattern=new V(this.chart.styles),this.chart.setPattern("fc",this.pattern.getFCPolygonPattern())}async componentWillUpdate(){var t;if(null==this.chart)return;const i=this.prepareConfig(),s=this.prepareStyle();this.chart.setI18n(this.i18n),this.chart.setStyles(s),this.chart.setAvailableWidth(this.containerWidth||0),this.chart.setConfig(i),this.autoFitScaling(i,s),this.chart.setAvailableHeight((null===(t=this.parentDimensions)||void 0===t?void 0:t.height)||0),this.pattern=new V(this.chart.styles),this.chart.setPattern("fc",this.pattern.getFCPolygonPattern())}autoFitScaling(t,i){var s;if(t.pixelPerUnit>0)return;const h=null===(s=this.parentDimensions)||void 0===s?void 0:s.height,e=this.containerWidth||0;if(!h||h<=0)return t.pixelPerUnit=1,this.chart=new pt(new E,t,i,e),void this.chart.setI18n(this.i18n);t.pixelPerUnit=1,this.chart=new pt(new E,t,i,e),this.chart.setI18n(this.i18n),this.chart.toString();const n=this.chart.getAllocatedCanvasHeight();n<=0||(t.pixelPerUnit=.9*h/n,this.chart=new pt(new E,t,i,e),this.chart.setI18n(this.i18n))}async componentWillRender(){}componentDidLoad(){}componentDidUpdate(){}prepareConfig(){return new vt(new Z,new b(new Y),new Y,new k,this.data).adapt({data:this.data,scenarios:this.scenarios,variances:this.variances,title:this.chartTitle,hideAxisLabels:this.hideAxisLabels,pixelPerUnit:this.pixelPerUnit,pixelPerPercentage:this.pixelPerPercentage,level:this.level,dateInterval:this.dateInterval,axisLabelsMode:this.axisLabelsMode,limit:this.limit,sortOrder:this.order,leftSideOffsetForHorizontalSync:this.leftSideOffsetForHorizontalSync,intervalSpanLimit:this.intervalSpanLimit,filter:this.filter,measureScale:this.measureScale,measureUnit:this.measureUnit,showMeasureScale:this.showMeasureScale,dataFormatDigits:this.dataFormatDigits,showOverlayMedian:this.showOverlayMedian,showOverlayAvg:this.showOverlayAvg,chartMode:this.chartMode,maxBars:this.maxBars,stackConfig:this.stackConfig,lineFullWidth:this.lineFullWidth})}prepareStyle(){return new J(new R,new c,new u(new d),new f(new d),new p).adapt(this.styles)}get element(){return h(this)}};bt.style=':host{position:relative;display:inline-block}.categories{text-align:right;font-size:var(--bn-font-size, 1em);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.label-bg{fill:var(--bn-font-background, white);opacity:0.7}.label-text{text-align:right;font-size:var(--bn-font-size, 1em);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.axis-title{text-align:center;font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.axis-default{stroke:black;stroke-width:0.1em}.axis-ac{stroke:black;stroke-width:0.1em}.axis-pp{stroke:grey;stroke-width:0.1em}.axis-fc{stroke:black;stroke-dasharray:2;stroke-width:0.1em}.axis-pl{stroke:white;stroke-width:0.1em;outline-offset:0em;outline:0.1em solid black}canvas{image-rendering:-moz-crisp-edges;image-rendering:-webkit-crisp-edges;image-rendering:pixelated;image-rendering:crisp-edges}.measure{font-weight:bold}span{display:inline-block}.hidePatternContainer{height:0;width:0}div{float:left}.hide{opacity:0}.footer{margin:0.2em;font-size:0.6em}.footer-hide{margin:0.2em;font-size:0.6em;opacity:0}';export{bt as ibcs_chart_time}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-B27Ax6P_.js";import{A as r,I as t,T as c}from"./p-kMyLevYy.js";import{O as i,a as s}from"./p-B79VcHiT.js";import"./p-DbyXf6dF.js";const o=class{constructor(a){e(this,a)}render(){return a("div",{key:"e21f394ec62bf5444da864b00860270551a18879"},a("ibcs-card",{key:"db1d071ffd4c72dd0c5b173b739bc33a7f6826d9",title:"Eintracht Frankfurt",image:"debug/concordia.png",showBorder:!1},a("ibcs-title",{key:"bb49cdd2edc75f889d0e99b7bd010a692770ef8a",businessUnit:"Test Cars",measures:[{name:"Bruttoumsatz",unit:"mEUR"},{name:"Bruttoumsatz2",unit:"mDollar"}],scenarios:["ac","py","dpy_ac_pos"]})),a("ibcs-card",{key:"4a643bbd44b7e0cb90ed304939c423c602462957",title:"Nintendo",image:"https://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Nintendo_red_logo.svg/1280px-Nintendo_red_logo.svg.png",showBorder:!0},a("ibcs-table",{key:"d83c0e84abc29d3305a8cdac0e6c84c6cca31099","table-title":"😎Sven ist der Papa von Phineas und Max",scenarios:["ac","py"],"scenarios-unit-type":"decimal",grouped:!0,type:c.OPT,"i18n-mode":t.META,showGroupTitle:!0,data:[],"there-of":[{rowGroup:"Umsatz",category:"Applications",subCategory:"",partOf:"category"}]})),a("ibcs-card",{key:"a3049a945b3cad596adc062c2ad1ef22521efc39",title:"Eintracht Frankfurt",image:"debug/concordia.png",showBorder:!0},a("ibcs-chart-structure",{key:"98298c085685f28a704cbcaa372e1b320c50283d",data:[],scenarios:["ac","fc","py","pl"],variances:["dac_fc_pos"],hideCategories:!1,pixelPerUnit:15,chartTitle:void 0,styles:void 0,i18n:void 0,level:r.CATEGORY,order:{hierarchy:[s.CATEGORY],direction:i.DESC}})))}};export{o as test_runner_card}
@@ -1 +0,0 @@
1
- import{r as t,d as e,h as i,H as o}from"./p-B27Ax6P_.js";import{a}from"./p-BtVfu16B.js";var n=36e5,l=864e5,r=new L.Icon.Default,s={startIcon:r,endIcon:r,wptIcons:{"":r},wptTypeIcons:{"":r},pointMatchers:[]},h={iconSize:[33,45],iconAnchor:[16,45],clickable:!1},p={color:"blue"},f={parseElements:["track","route","waypoint"],joinTrackSegments:!0};L.GPX=L.FeatureGroup.extend({initialize:function(t,e){e.max_point_interval=e.max_point_interval||15e3,e.markers=this._merge_objs(s,e.markers||{}),e.marker_options=this._merge_objs(h,e.marker_options||{}),e.polyline_options=e.polyline_options||[],e.gpx_options=this._merge_objs(f,e.gpx_options||{}),L.Util.setOptions(this,e),L.GPXTrackIcon=L.Icon.extend({options:e.marker_options}),this._gpx=t,this._layers={},this._prepare_markers(e.markers),this._init_info(),t&&this._parse(t,e,this.options.async)},get_duration_string:function(t,e){var i="";t>=l&&(i+=Math.floor(t/l)+"d ",t%=l),t>=n&&(i+=Math.floor(t/n)+":",t%=n);var o=Math.floor(t/6e4);t%=6e4,o<10&&(i+="0"),i+=o+"'";var a=Math.floor(t/1e3);return t%=1e3,a<10&&(i+="0"),(i+=a)+(!e&&t>0?"."+Math.round(1e3*Math.floor(t))/1e3:'"')},get_duration_string_iso:function(t,e){return this.get_duration_string(t,e).replace("'",":").replace('"',"")},_toFixed_helper:function(t,e=0){return"number"==typeof t?t.toFixed(e):"?"},to_miles:function(t){return t/1.60934},to_ft:function(t){return 3.28084*t},m_to_km:function(t){return t/1e3},m_to_mi:function(t){return t/1609.34},ms_to_kmh:function(t){return 3.6*t},ms_to_mih:function(t){return t/1609.34*3600},get_name:function(){return this._info.name},get_desc:function(){return this._info.desc},get_author:function(){return this._info.author},get_copyright:function(){return this._info.copyright},get_distance:function(){return this._info.length},get_distance_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))},get_start_time:function(){return this._info.duration.start},get_end_time:function(){return this._info.duration.end},get_moving_time:function(){return this._info.duration.moving},get_total_time:function(){return this._info.duration.total},get_moving_pace:function(){return this.get_moving_time()/this.m_to_km(this.get_distance())},get_moving_pace_imp:function(){return this.get_moving_time()/this.get_distance_imp()},get_moving_speed:function(){return this.m_to_km(this.get_distance())/(this.get_moving_time()/36e5)},get_moving_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_moving_time()/36e5)},get_total_speed:function(){return this.m_to_km(this.get_distance())/(this.get_total_time()/36e5)},get_total_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_total_time()/36e5)},get_elevation_gain:function(){return this._info.elevation.gain},get_elevation_loss:function(){return this._info.elevation.loss},get_elevation_gain_imp:function(){return this.to_ft(this.get_elevation_gain())},get_elevation_loss_imp:function(){return this.to_ft(this.get_elevation_loss())},get_elevation_data:function(){var t=this;return this._info.elevation._points.map((function(e){return t._prepare_data_point(e,t.m_to_km,null,(function(e,i){return t._toFixed_helper(e,2)+" km, "+t._toFixed_helper(i,0)+" m"}))}))},get_elevation_data_imp:function(){var t=this;return this._info.elevation._points.map((function(e){return t._prepare_data_point(e,t.m_to_mi,t.to_ft,(function(e,i){return t._toFixed_helper(e,2)+" mi, "+t._toFixed_helper(i,0)+" ft"}))}))},get_elevation_max:function(){return this._info.elevation.max},get_elevation_min:function(){return this._info.elevation.min},get_elevation_max_imp:function(){return this.to_ft(this.get_elevation_max())},get_elevation_min_imp:function(){return this.to_ft(this.get_elevation_min())},get_speed_data:function(){var t=this;return this._info.speed._points.map((function(e){return t._prepare_data_point(e,t.m_to_km,t.ms_to_kmh,(function(e,i){return t._toFixed_helper(e,2)+" km, "+t._toFixed_helper(i,2)+" km/h"}))}))},get_speed_data_imp:function(){var t=this;return this._info.speed._points.map((function(e){return t._prepare_data_point(e,t.m_to_mi,t.ms_to_mih,(function(e,i){return t._toFixed_helper(e,2)+" mi, "+t._toFixed_helper(i,2)+" mi/h"}))}))},get_speed_max:function(){return 3600*this.m_to_km(this._info.speed.max)},get_speed_max_imp:function(){return this.to_miles(this.get_speed_max())},get_average_hr:function(){return this._info.hr.avg},get_average_temp:function(){return this._info.atemp.avg},get_average_cadence:function(){return this._info.cad.avg},get_heartrate_data:function(){var t=this;return this._info.hr._points.map((function(e){return t._prepare_data_point(e,t.m_to_km,null,(function(e,i){return t._toFixed_helper(e,2)+" km, "+t._toFixed_helper(i,0)+" bpm"}))}))},get_heartrate_data_imp:function(){var t=this;return this._info.hr._points.map((function(e){return t._prepare_data_point(e,t.m_to_mi,null,(function(e,i){return t._toFixed_helper(e,2)+" mi, "+t._toFixed_helper(i,0)+" bpm"}))}))},get_cadence_data:function(){var t=this;return this._info.cad._points.map((function(e){return t._prepare_data_point(e,t.m_to_km,null,(function(e,i){return t._toFixed_helper(e,2)+" km, "+t._toFixed_helper(i,0)+" rpm"}))}))},get_temp_data:function(){var t=this;return this._info.atemp._points.map((function(e){return t._prepare_data_point(e,t.m_to_km,null,(function(e,i){return t._toFixed_helper(e,2)+" km, "+t._toFixed_helper(i,0)+" degrees"}))}))},get_cadence_data_imp:function(){var t=this;return this._info.cad._points.map((function(e){return t._prepare_data_point(e,t.m_to_mi,null,(function(e,i){return t._toFixed_helper(e,2)+" mi, "+t._toFixed_helper(i,0)+" rpm"}))}))},get_temp_data_imp:function(){var t=this;return this._info.atemp._points.map((function(e){return t._prepare_data_point(e,t.m_to_mi,null,(function(e,i){return t._toFixed_helper(e,2)+" mi, "+t._toFixed_helper(i,0)+" degrees"}))}))},reload:function(){this._init_info(),this.clearLayers(),this._parse(this._gpx,this.options,this.options.async)},_merge_objs:function(t,e){var i={};for(var o in t)i[o]=t[o];for(var o in e)i[o]=e[o];return i},_prepare_data_point:function(t,e,i,o){var a=[e&&e(t[0])||t[0],i&&i(t[1])||t[1]];return a.push(o&&o(a[0],a[1])||a[0]+": "+a[1]),a},_prepare_markers:function(t){function e(t){return new L.GPXTrackIcon({iconUrl:t})}return Object.entries(t).forEach((([i,o])=>{"wptIcons"===i||"wptTypeIcons"===i?t[i]=this._prepare_markers(o):"pointMatchers"===i?t[i]=o.map((t=>("string"==typeof t.icon&&(t.icon=e(t.icon)),t))):"string"==typeof o?t[i]=e(o):"object"==typeof o&&null!==o&&(t[i]=o)})),t},_init_info:function(){this._info={name:null,length:0,elevation:{gain:0,loss:0,max:0,min:1/0,_points:[]},speed:{max:0,_points:[]},hr:{avg:0,_total:0,_points:[]},duration:{start:null,end:null,moving:0,total:0},atemp:{avg:0,_total:0,_points:[]},cad:{avg:0,_total:0,_points:[]}}},_load_xml:function(t,e,i,o){null==o&&(o=this.options.async),null==i&&(i=this.options);var a=this,n=new window.XMLHttpRequest;n.open("GET",t,o);try{n.overrideMimeType("text/xml")}catch(t){}n.onloadend=function(){200==n.status?e(n.responseXML,i):a.fire("error",{err:"Error fetching resource: "+t})},n.send(null)},_parse:function(t,e,i){var o=this,a=function(t,e){var i=o._parse_gpx_data(t,e);i?(o.addLayer(i),o.fire("loaded",{layers:i,element:t})):o.fire("error",{err:"No parseable layers of type(s) "+JSON.stringify(e.gpx_options.parseElements)})};if("<"===t.substr(0,1)){var n=new DOMParser;i?setTimeout((function(){a(n.parseFromString(t,"text/xml"),e)})):a(n.parseFromString(t,"text/xml"),e)}else this._load_xml(t,a,e,i)},_parse_gpx_data:function(t,e){var i,o,a=[];(b=t.getElementsByTagName("name")).length>0&&(this._info.name=b[0].textContent),(_=t.getElementsByTagName("desc")).length>0&&(this._info.desc=_[0].textContent);var n=t.getElementsByTagName("author");n.length>0&&(this._info.author=n[0].textContent);var l=t.getElementsByTagName("copyright");l.length>0&&(this._info.copyright=l[0].textContent);var r=e.gpx_options.parseElements;if(r.indexOf("route")>-1){var s=t.getElementsByTagName("rte");for(i=0;i<s.length;i++){var h=this._extract_styling(s[i]),p=this._get_polyline_options(e.polyline_options,i);a=a.concat(this._parse_segment(s[i],e,h,p,"rtept"))}}if(r.indexOf("track")>-1){var f=t.getElementsByTagName("trk");for(i=0;i<f.length;i++){var c=f[i];if(h=this._extract_styling(c),p=this._get_polyline_options(e.polyline_options,i),e.gpx_options.joinTrackSegments)a=a.concat(this._parse_segment(c,e,h,p,"trkpt"));else{var u=c.getElementsByTagName("trkseg");for(O=0;O<u.length;O++)a=a.concat(this._parse_segment(u[O],e,h,p,"trkpt"))}}}if(this._info.hr.avg=Math.round(this._info.hr._total/this._info.hr._points.length),this._info.cad.avg=Math.round(this._info.cad._total/this._info.cad._points.length),this._info.atemp.avg=Math.round(this._info.atemp._total/this._info.atemp._points.length),r.indexOf("waypoint")>-1)for(o=t.getElementsByTagName("wpt"),i=0;i<o.length;i++){var d,g=new L.LatLng(o[i].getAttribute("lat"),o[i].getAttribute("lon")),m=o[i].getElementsByTagName("name"),b=m.length>0?m[0].textContent:"",x=o[i].getElementsByTagName("desc"),_=x.length>0?x[0].textContent:"",v=o[i].getElementsByTagName("sym"),y=v.length>0?v[0].textContent:null,w=o[i].getElementsByTagName("type"),k=w.length>0?w[0].textContent:null,z=e.markers.wptIcons,M=e.markers.wptTypeIcons,S=e.markers.pointMatchers||[];if(z&&y&&z[y])d=z[y];else if(M&&k&&M[k])d=M[k];else if(S.length>0){for(var O=0;O<S.length;O++)if(S[O].regex.test(b)){d=S[O].icon;break}}else z&&z[""]&&(d=z[""]);if(d){var N=new L.Marker(g,{clickable:e.marker_options.clickable,title:b,icon:d,type:"waypoint"});N.bindPopup("<b>"+b+"</b>"+(_.length>0?"<br>"+_:"")).openPopup(),this.fire("addpoint",{point:N,point_type:"waypoint",element:o[i]}),a.push(N)}else console.log("No waypoint icon could be matched for symKey=%s,typeKey=%s,name=%s on waypoint %o",y,k,b,o[i])}return a.length>1?new L.FeatureGroup(a):1==a.length?a[0]:void 0},_parse_segment:function(t,e,i,o,a){var n=t.getElementsByTagName(a);if(!n.length)return[];for(var l=[],r=[],s=[],h=null,p=0;p<n.length;p++){var f,c=new L.LatLng(n[p].getAttribute("lat"),n[p].getAttribute("lon"));c.meta={time:null,ele:null,hr:null,cad:null,atemp:null,speed:null},f=n[p].getElementsByTagName("time"),c.meta.time=f.length>0?new Date(Date.parse(f[0].textContent)):new Date("1970-01-01T00:00:00");var u=null!=h?Math.abs(c.meta.time-h.meta.time):0;f=n[p].getElementsByTagName("ele"),c.meta.ele=f.length>0?parseFloat(f[0].textContent):null!=h?h.meta.ele:null;var d=null!=h?c.meta.ele-h.meta.ele:0,g=null!=h?this._dist3d(h,c):0;if(f=n[p].getElementsByTagName("speed"),c.meta.speed=f.length>0?parseFloat(f[0].textContent):u>0?1e3*g/u:0,(f=n[p].getElementsByTagName("name")).length>0)for(var m=f[0].textContent,b=e.markers.pointMatchers||[],x=0;x<b.length;x++)if(b[x].regex.test(m)){r.push({label:m,coords:c,icon:b[x].icon,element:n[p]});break}this._info.length+=g,(f=n[p].getElementsByTagNameNS("*","hr")).length>0&&(c.meta.hr=parseInt(f[0].textContent),this._info.hr._points.push([this._info.length,c.meta.hr]),this._info.hr._total+=c.meta.hr),(f=n[p].getElementsByTagNameNS("*","cad")).length>0&&(c.meta.cad=parseInt(f[0].textContent),this._info.cad._points.push([this._info.length,c.meta.cad]),this._info.cad._total+=c.meta.cad),(f=n[p].getElementsByTagNameNS("*","atemp")).length>0&&(c.meta.atemp=parseInt(f[0].textContent),this._info.atemp._points.push([this._info.length,c.meta.atemp]),this._info.atemp._total+=c.meta.atemp),c.meta.ele>this._info.elevation.max&&(this._info.elevation.max=c.meta.ele),c.meta.ele<this._info.elevation.min&&(this._info.elevation.min=c.meta.ele),this._info.elevation._points.push([this._info.length,c.meta.ele]),c.meta.speed>this._info.speed.max&&(this._info.speed.max=c.meta.speed),this._info.speed._points.push([this._info.length,c.meta.speed]),null==h&&null==this._info.duration.start&&(this._info.duration.start=c.meta.time),this._info.duration.end=c.meta.time,this._info.duration.total+=u,u<e.max_point_interval&&(this._info.duration.moving+=u),d>0?this._info.elevation.gain+=d:this._info.elevation.loss+=Math.abs(d),h=c,l.push(c)}var _=new L.Polyline(l,this._extract_styling(t,i,o));if(this.fire("addline",{line:_,element:t}),s.push(_),e.markers.startIcon){var v=new L.Marker(l[0],{clickable:e.marker_options.clickable,icon:e.markers.startIcon});this.fire("addpoint",{point:v,point_type:"start",element:n[0],line:t}),s.push(v)}for(e.markers.endIcon&&(v=new L.Marker(l[l.length-1],{clickable:e.marker_options.clickable,icon:e.markers.endIcon}),this.fire("addpoint",{point:v,point_type:"end",element:n[n.length-1],line:t}),s.push(v)),p=0;p<r.length;p++)v=new L.Marker(r[p].coords,{clickable:e.marker_options.clickable,title:r[p].label,icon:r[p].icon}),this.fire("addpoint",{point:v,point_type:"label",element:r[p].element}),s.push(v);return s},_get_polyline_options:function(t,e){return Array.isArray(t)?t[e]||{}:t},_extract_styling:function(t,e,i){var o,a=this._merge_objs(p,e),n=t.getElementsByTagNameNS("http://www.topografix.com/GPX/gpx_style/0/2","line");return n.length>0&&((o=n[0].getElementsByTagName("color")).length>0&&(a.color="#"+o[0].textContent),(o=n[0].getElementsByTagName("opacity")).length>0&&(a.opacity=o[0].textContent),(o=n[0].getElementsByTagName("weight")).length>0&&(a.weight=o[0].textContent),(o=n[0].getElementsByTagName("linecap")).length>0&&(a.lineCap=o[0].textContent),(o=n[0].getElementsByTagName("linejoin")).length>0&&(a.lineJoin=o[0].textContent),(o=n[0].getElementsByTagName("dasharray")).length>0&&(a.dashArray=o[0].textContent),(o=n[0].getElementsByTagName("dashoffset")).length>0&&(a.dashOffset=o[0].textContent)),this._merge_objs(a,i)},_dist2d:function(t,e){var i=this._deg2rad(e.lat-t.lat),o=this._deg2rad(e.lng-t.lng),a=Math.sin(i/2)*Math.sin(i/2)+Math.cos(this._deg2rad(t.lat))*Math.cos(this._deg2rad(e.lat))*Math.sin(o/2)*Math.sin(o/2);return 2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))*6371e3},_dist3d:function(t,e){var i=this._dist2d(t,e),o=Math.abs(e.meta.ele-t.meta.ele);return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))},_deg2rad:function(t){return t*Math.PI/180}});const c=class{constructor(i){t(this,i),this.stateUpdated=e(this,"stateUpdated",7),this.dragZoomEnded=e(this,"dragZoomEnded",7),this._tileLayer="http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",this.tileLayer=this._tileLayer,this._manualPosOverride=!0,this.manualPosOverride=this._manualPosOverride,this._latitude=50.137634,this.latitude=this._latitude,this._longitude=8.679129,this.longitude=this._longitude,this._scale=11,this.scale=this._scale,this._customView=!1,this.customView=this._customView,this._showScale=!1,this.showScale=this._showScale,this._showZoom=!1,this.showZoom=this._showZoom,this._attribution="",this.attribution=this._attribution,this._gpxs=[],this.gpxs=this._gpxs,this._markers=[],this.markers=this._markers,this._geojsons=[],this.geojsons=this._geojsons,this.lmap=null,this.gpxLayer=[],this.mapMarker=[],this.geoJsonLayer=[],this.scaleControl=(void 0).scale(),this.zoomControl=(void 0).zoom(),this.tileLayerControl=(void 0)(this._tileLayer),this.cumlatedBounds={northEast:null,southWest:null}}async setProps(t){Object.keys(t).forEach((e=>{this[e]=t[e]}))}async unSetProps(t){Object.keys(t).forEach((t=>{this[t]=void 0}))}parseTileLayer(t){this._tileLayer=t}parseManualPosOverride(t){this._manualPosOverride=JSON.parse(t)}parseLatitude(t){this._latitude=Number(t)}parseLongitude(t){this._longitude=Number(t)}parseScale(t){this._scale=Number(t)}parseCustomView(t){this._customView=JSON.parse(t)}parseShowScale(t){this._showScale=JSON.parse(t)}parseShowZoom(t){this._showZoom=JSON.parse(t)}parseAttribution(t){this._attribution=t}parseGpxLayers(t){this._gpxs="string"==typeof t?JSON.parse(t):t,this.gpxLayerUpdate(this._gpxs)}parseMarkers(t){this._markers="string"==typeof t?JSON.parse(t):t,this.mapMarkerUpdate(this._markers)}parseGeoJson(t){this._geojsons="string"==typeof t?JSON.parse(t):t,this.geoJsonUpdate(this._geojsons)}render(){return i(o,{key:"955a4572190c7e73f4dd654e42814a260f6e4062"},i("div",{key:"ca831888a3202fe8877dd98a00042be6ae58903f",ref:t=>this.drawElement=t,id:"map",class:"map"}))}gpxLayerUpdate(t){this.gpxLayer.forEach((t=>{t.remove()})),this.gpxLayer=[];for(const e of t){if(void 0===e)continue;let t=e.file;if(/^data:application\/octet-stream;/.test(e.file)){const i=e.file.split(",")[1];t=atob(i)}this.gpxLayer.push(new(void 0)(t,{async:!0,marker_options:{startIconUrl:e.startIconUrl,endIconUrl:e.endIconUrl,shadowUrl:e.shadowUrl},polyline_options:{color:e.color,opacity:e.opacity,lineCap:e.lineCap,weight:e.weight}}).on("loaded",(t=>{this.updateCumulatedBounds(t),!1===this._manualPosOverride&&this.lmap.fitBounds([this.cumlatedBounds.northEast,this.cumlatedBounds.southWest]),this.stateUpdated.emit(a.SUCCESSFUL)})))}}updateCumulatedBounds(t){null==this.cumlatedBounds.northEast&&(this.cumlatedBounds.northEast={lat:t.target.getBounds().getNorthEast().lat,lng:t.target.getBounds().getNorthEast().lng}),null==this.cumlatedBounds.southWest&&(this.cumlatedBounds.southWest={lat:t.target.getBounds().getSouthWest().lat,lng:t.target.getBounds().getSouthWest().lng}),t.target.getBounds().getNorthEast().lat>this.cumlatedBounds.northEast.lat&&(this.cumlatedBounds.northEast.lat=t.target.getBounds().getNorthEast().lat),t.target.getBounds().getNorthEast().lng>this.cumlatedBounds.northEast.lng&&(this.cumlatedBounds.northEast.lng=t.target.getBounds().getNorthEast().lng),t.target.getBounds().getSouthWest().lat<this.cumlatedBounds.southWest.lat&&(this.cumlatedBounds.southWest.lat=t.target.getBounds().getSouthWest().lat),t.target.getBounds().getSouthWest().lng<this.cumlatedBounds.southWest.lng&&(this.cumlatedBounds.southWest.lng=t.target.getBounds().getSouthWest().lng)}mapMarkerUpdate(t){this.mapMarker.forEach((t=>{t.remove()})),this.mapMarker=[];for(const e of t){const t=(void 0)({iconUrl:e.iconUrl,iconSize:[e.iconWidth,e.iconHeight]});this.mapMarker.push((void 0)([e.latitude,e.longitude],{title:e.title,icon:t}))}}geoJsonUpdate(t){this.geoJsonLayer.forEach((t=>{t.remove()})),this.geoJsonLayer=[];for(const e of t){const t={style:{color:e.color,weight:e.weight,opacity:e.opacity,lineCap:e.lineCap}};this.geoJsonLayer.push((void 0)(DataUriUtil.dataURItoObject(e.file),t))}}componentWillLoad(){this.stateUpdated.emit(a.RUNNING),this.parseMarkers(this.markers),this.parseGeoJson(this.geojsons),this.parseGpxLayers(this.gpxs),this.parseAttribution(this.attribution),this.parseShowZoom(this.showZoom),this.parseShowScale(this.showScale),this.parseScale(this.scale),this.parseLongitude(this.longitude),this.parseLatitude(this.latitude),this.parseTileLayer(this.tileLayer)}componentDidLoad(){null!=this.drawElement&&(this.lmap=(void 0)(this.drawElement,{zoomControl:!1}),this.setView(),this.setTileLayer(),this.setGeoJsonLayer(),this.setGPXLayer(),this.setMarker(),this.setShowScale(),this.setShowZoom(),this.setAttribution(),this.lmap.addEventListener("dragend",this.dragZoomEnd.bind(this)),this.lmap.addEventListener("zoomend",this.dragZoomEnd.bind(this)))}disconnectedCallback(){this.lmap.removeEventListener("dragend",this.dragZoomEnd.bind(this)),this.lmap.removeEventListener("zoomend",this.dragZoomEnd.bind(this))}componentDidUpdate(){null!=this.drawElement&&(this.setView(),this.setTileLayer(),this.setGeoJsonLayer(),this.setGPXLayer(),this.setMarker(),this.setShowScale(),this.setShowZoom(),this.setAttribution())}dragZoomEnd(){const{lat:t,lng:e}=this.lmap.getCenter(),i=this.lmap.getZoom();this.dragZoomEnded.emit({longitude:e,latitude:t,scale:i})}setView(){this.lmap.setView([this._latitude,this._longitude],this._scale)}setTileLayer(){this.tileLayerControl.setUrl(this._tileLayer,!0),this.tileLayerControl.addTo(this.lmap)}setAttribution(){this.lmap.attributionControl.setPrefix(this._attribution)}setShowScale(){this.scaleControl.remove(),!0===this._showScale&&this.scaleControl.addTo(this.lmap)}setShowZoom(){this.zoomControl.remove(),!0===this._showZoom&&this.zoomControl.addTo(this.lmap)}setGPXLayer(){this.gpxLayer.forEach((t=>{try{t.addTo(this.lmap)}catch(t){console.error("gpxLayer",t)}}))}setMarker(){this.mapMarker.forEach((t=>{try{t.addTo(this.lmap)}catch(t){console.error("markerLayer",t)}}))}setGeoJsonLayer(){this.geoJsonLayer.forEach((t=>{try{t.addTo(this.lmap)}catch(t){console.error("gpxLayer",t)}}))}static get assetsDirs(){return["assets"]}static get watchers(){return{tileLayer:[{parseTileLayer:0}],manualPosOverride:[{parseManualPosOverride:0}],latitude:[{parseLatitude:0}],longitude:[{parseLongitude:0}],scale:[{parseScale:0}],customView:[{parseCustomView:0}],showScale:[{parseShowScale:0}],showZoom:[{parseShowZoom:0}],attribution:[{parseAttribution:0}],gpxs:[{parseGpxLayers:0}],markers:[{parseMarkers:0}],geojsons:[{parseGeoJson:0}]}}};c.style='.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0,0,0.25,1);-moz-transition:-moz-transform 0.25s cubic-bezier(0,0,0.25,1);transition:transform 0.25s cubic-bezier(0,0,0.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px rgba(0,0,0,0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px \'Lucida Console\', Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px rgba(0,0,0,0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px rgba(0,0,0,0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px rgba(0,0,0,0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}:host{position:relative;display:block}.map{display:block;width:100%;height:100%;min-width:100px;min-height:100px}';export{c as ibcs_map}
@@ -1 +0,0 @@
1
- import{r as s,h as t,H as r,g as i}from"./p-B27Ax6P_.js";import{w as o}from"./p-BFatTBqh.js";import{g as a}from"./p-CnI71OA9.js";import{w as e}from"./p-BQp6ZPYW.js";import{w as h}from"./p-CY1RzLjU.js";import"./p-BtVfu16B.js";const p=class{constructor(t){s(this,t),o(this),this.errors=h(this),e(this,(s=>{this.stores||(this.stores=a(this.element));try{const t=s.replace(/\s/g,"");this.stores.assets.set(this.name,t)}catch(t){console.error("Error parsing asset",t,s),this.stores.assets.set(this.name,void 0)}}))}render(){return t(r,{key:"dfec9f90136278bddab194479301aa3fa5bc1e72"})}get element(){return i(this)}};p.style=":host{display:none}";export{p as bn_asset}
@@ -1 +0,0 @@
1
- import{r as e,h as r}from"./p-B27Ax6P_.js";import{O as o}from"./p-B79VcHiT.js";import{A as p}from"./p-kMyLevYy.js";import"./p-DbyXf6dF.js";const c=class{constructor(r){e(this,r)}render(){const e={font:"13.3333px 'Noto Sans'",size:13.3333},c=[{operation:"+",rowGroup:"Afrika",rowGroupIndex:1,category:"I",categoryIndex:1,subCategory:"Question Mark",subCategoryIndex:1,columnGroup:null,columnGroupIndex:null,columnSubGroup:null,columnSubGroupIndex:null,pp1:1267,ac1:1267,pl1:900,fc1:33500,ac2:1,pp2:7,fc2:7,pl2:4,ac3:1,pp3:7,fc3:7,pl3:4,ac4:1,pp4:7,fc4:7,pl4:4},{operation:"+",rowGroup:"Amerika",rowGroupIndex:2,category:"II",categoryIndex:2,subCategory:"Stars",subCategoryIndex:2,columnGroup:null,columnGroupIndex:null,columnSubGroup:null,columnSubGroupIndex:null,pp1:1201,ac1:1209,pl1:1209,fc1:1009,ac2:1,pp2:7,fc2:7,pl2:4,ac3:1,pp3:7,fc3:7,pl3:4,ac4:1,pp4:7,fc4:7,pl4:4},{operation:"+",rowGroup:"Asien",rowGroupIndex:3,category:"III",categoryIndex:3,subCategory:"Cash Cows",subCategoryIndex:3,columnGroup:null,columnGroupIndex:null,columnSubGroup:null,columnSubGroupIndex:null,pp1:835,ac1:965,pl1:955,fc1:965,ac2:1,pp2:7,fc2:7,pl2:4,ac3:1,pp3:7,fc3:7,pl3:4,ac4:1,pp4:7,fc4:7,pl4:4},{operation:"+",rowGroup:"Europa",rowGroupIndex:4,category:"Produktgrupppe IV",categoryIndex:4,subCategory:"Poor Dogs",subCategoryIndex:4,columnGroup:null,columnGroupIndex:null,columnSubGroup:null,columnSubGroupIndex:null,pp1:423,ac1:741,pl1:641,fc1:741,ac2:1,pp2:7,fc2:7,pl2:4,ac3:1,pp3:7,fc3:7,pl3:4,ac4:1,pp4:7,fc4:7,pl4:4},{operation:"+",rowGroup:"Rest",rowGroupIndex:5,category:"Rest",categoryIndex:5,subCategory:"Rest",subCategoryIndex:5,columnGroup:null,columnGroupIndex:null,columnSubGroup:null,columnSubGroupIndex:null,pp1:4460,ac1:-9e3,pl1:110,fc1:30900,ac2:1,pp2:7,fc2:7,pl2:4,ac3:1,pp3:7,fc3:7,pl3:4,ac4:1,pp4:7,fc4:7,pl4:4}];return r("div",{key:"f3b7d2f45acd857164a11f3d983e94bfe5503ecd"},r("div",{key:"7b64c1d3b85fd6c0a338c30e4adb2df81e657c58",style:{fontFamily:e.font,fontSize:e.size+"px"}},r("div",{key:"d65b87475cf0aa7ebd328e2d058eea88ae710f30"},"T-7b Variances Absolute"),r("ibcs-chart-structure",{key:"fa98bdf12c0b3584d6894109420ea0e77e98a43f",data:c,scenarios:["pp1","ac1","pl1"],variances:[],hideCategories:!1,pixelPerUnit:.01,chartTitle:"Test",filter:"",measureScale:"k",measureUnit:"EUR",showMeasureScale:!0,dataFormatDigits:{percent:1,decimal:1},level:p.ROWGROUP,order:{hierarchy:["rowGroupIndex"],direction:o.ASC}}),r("ibcs-chart-structure",{key:"c484d5026bae14ab25046ceb0de654ee6cdb3b11",data:c,scenarios:["pp1","ac1","pl1"],variances:["drac_pp1_neu"],hideCategories:!1,pixelPerUnit:.01,chartTitle:"",filter:"",measureScale:"k",measureUnit:"EUR",showMeasureScale:!1,dataFormatDigits:{percent:1,decimal:1},level:p.ROWGROUP,order:{hierarchy:["rowGroupIndex"],direction:o.ASC}})))}};export{c as test_runner_chart}
@@ -1 +0,0 @@
1
- import{r as t,h as s,H as e,g as a}from"./p-B27Ax6P_.js";import{w as r}from"./p-BFatTBqh.js";import{w as c}from"./p-CY1RzLjU.js";import"./p-BtVfu16B.js";const o=class{constructor(s){t(this,s),r(this),this.errors=c(this)}render(){return s(e,{key:"0631cee9bc39ad92a09f85eba7c3baa1e680bcd8"},s("slot",{key:"97677ca91f2c193b7ac3f3c3e897a5c89e93f565"}))}get element(){return a(this)}};export{o as bn_template}