@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 +1 @@
1
- import{S as e}from"./p-B27Ax6P_.js";const t=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys()){const o=e.get(t).filter((e=>{const t=e.deref();return t&&(!("isConnected"in(o=t))||o.isConnected);var o}));e.set(t,o)}})(...t)}),2e3)}})(),o=e.forceUpdate,n=e.getRenderingRef,i=(e,t)=>{const o=e.indexOf(t);o>=0&&(e[o]=e[e.length-1],e.length--)},r=(e,r)=>{const a=((e,t=(e,t)=>e!==t)=>{const o=()=>{return("function"==typeof(t=e)?t():t)??{};var t},n=o();let r=new Map(Object.entries(n));const a="undefined"!=typeof Proxy,s=a?null:{},l={dispose:[],get:[],set:[],reset:[]},f=new Map,c=()=>{r=new Map(Object.entries(o())),a||_(),l.reset.forEach((e=>e()))},d=e=>(l.get.forEach((t=>t(e))),r.get(e)),p=(e,o)=>{const n=r.get(e);t(o,n,e)&&(r.set(e,o),a||u(e),l.set.forEach((t=>t(e,o,n))))},b=a?new Proxy(n,{get:(e,t)=>d(t),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>r.has(t),set:(e,t,o)=>(p(t,o),!0)}):(_(),s),h=(e,t)=>(l[e].push(t),()=>{i(l[e],t)});function u(e){!a&&s&&(Object.prototype.hasOwnProperty.call(s,e)||Object.defineProperty(s,e,{configurable:!0,enumerable:!0,get:()=>d(e),set(t){p(e,t)}}))}function _(){if(a||!s)return;const e=new Set(r.keys());for(const t of Object.keys(s))e.has(t)||delete s[t];for(const t of e)u(t)}return{state:b,get:d,set:p,on:h,onChange:(e,t)=>{const n=(o,n)=>{o===e&&t(n)},i=()=>{const n=o();t(n[e])},r=h("set",n),a=h("reset",i);return f.set(t,{setHandler:n,resetHandler:i,propName:e}),()=>{r(),a(),f.delete(t)}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(h("set",t.set)),t.get&&e.push(h("get",t.get)),t.reset&&e.push(h("reset",t.reset)),t.dispose&&e.push(h("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{l.dispose.forEach((e=>e())),c()},reset:c,forceUpdate:e=>{const t=r.get(e);l.set.forEach((o=>o(e,t,t)))},removeListener:(e,t)=>{const o=f.get(t);o&&o.propName===e&&(i(l.set,o.setHandler),i(l.reset,o.resetHandler),f.delete(t))}}})(e,r);return a.use((()=>{if("function"!=typeof n||"function"!=typeof o)return{};const e=o,i=n,r=new Map;return{dispose:()=>r.clear(),get:e=>{const t=i();t&&((e,t,o)=>{let n=e.get(t);n||(n=[],e.set(t,n)),n.some((e=>e.deref()===o))||n.push(new WeakRef(o))})(r,e,t)},set:o=>{const n=r.get(o);if(n){const t=n.filter((t=>{const o=t.deref();return!!o&&e(o)}));r.set(o,t)}t(r)},reset:()=>{r.forEach((t=>{t.forEach((t=>{const o=t.deref();o&&e(o)}))})),t(r)}}})()),a},a={global:{fontFamily:"'Noto Sans', sans-serif",fontSizePx:13.3333,fontColor:"#000000",fontBackgroundColor:"#ffffff"},"bn-text":{},"bn-chart-time":{scaleFactors:{scenarioOffset:.3,scenarioLabelToColumn:.3,labelToColumn:.3,labelToAxis:.3,needleWidth:.3,needleHeadWidth:.6,columnWidth:2,varianceAxisLineWidth:.3,axisLineWidth:.1,auxiliaryLineWidth:.1,scenarioLineWidth:.2,markerWidth:.7,markerOffset:0,categoryWidth:3,axisTickLength:.3},axisStyles:{ac:{stroke:"#121212",fill:"#121212",width:.1},fc:{stroke:"#121212",fill:"#ffffff",width:.1,dasharray:"10 5 5 5"},pp:{stroke:"#606060",fill:"#606060",width:.1},pl:{stroke:"#121212",fill:"#ffffff",width:.1}},barStyles:{ac:{stroke:"#404040",fill:"#404040",width:.1},fc:{stroke:"#404040",fill:"#ffffff",width:.5,fillpattern:"fc"},pp:{stroke:"#A6A6A6",fill:"#A6A6A6",width:.1},pl:{stroke:"#404040",fill:"#ffffff",width:.1}},varianceStyles:{pos:{stroke:"#008f96",fill:"#008f96",width:.1},neg:{stroke:"#ff0000",fill:"#ff0000",width:.1},neu:{stroke:"#808080",fill:"#808080",width:.1}},padding:{top:10,left:10,right:10,bottom:10}},"bn-chart-structure":{scaleFactors:{scenarioOffset:.3,scenarioLabelToBar:.1,labelToBar:.3,labelToAxis:.3,needleWidth:.3,needleHeadWidth:.6,barWidth:1.2,varianceAxisLineWidth:.3,axisLineWidth:.1,auxiliaryLineWidth:.1,scenarioLineWidth:.2,markerWidth:.7,markerOffset:0,categoryWidth:1.9,axisTickLength:.3},axisStyles:{ac:{stroke:"#121212",fill:"#121212",width:.1},fc:{stroke:"#121212",fill:"#ffffff",width:.1,dasharray:"10 5 5 5"},pp:{stroke:"#606060",fill:"#606060",width:.1},pl:{stroke:"#121212",fill:"#ffffff",width:.1}},barStyles:{ac:{stroke:"#404040",fill:"#404040",width:.1},fc:{stroke:"#404040",fill:"#ffffff",width:.5,fillpattern:"fc"},pp:{stroke:"#A6A6A6",fill:"#A6A6A6",width:.1},pl:{stroke:"#404040",fill:"#ffffff",width:.1}},varianceStyles:{pos:{stroke:"#008f96",fill:"#008f96",width:.1},neg:{stroke:"#ff0000",fill:"#ff0000",width:.1},neu:{stroke:"#808080",fill:"#808080",width:.1}},padding:{top:10,left:10,right:10,bottom:10}},"bn-tree":{edgeColor:"#404040",edgeWidth:1,operatorCircleRadius:10,operatorFontSizeScale:.9,operatorColor:"#404040"},"bn-grid":{headerBackground:"transparent",borderColor:"#A6A6A6",borderWidth:1,cellPadding:4}};function s(e,t,o=null){o=o||{},t=t?t+".":"";for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&("object"==typeof e[n]&&null!==e[n]?s(e[n],t+n,o):o[t+n]=e[n]);return o}const l=["ORDER_asc","ORDER_desc","ac1","pp1","fc1","pl1","ac2","pp2","fc2","pl2","ac3","pp3","fc3","pl3","ac4","pp4","fc4","pl4","ibcssymbol_delta_ac","ibcssymbol_delta_generic","ibcssymbol_delta_ac_relative","ibcssymbol_delta_generic_relative"],f=s({global:{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",ORDER_asc:"↑",ORDER_desc:"↓",ibcssymbol_delta_ac:"Δ{%}",ibcssymbol_delta_generic:"Δ({%})",ibcssymbol_delta_ac_relative:"Δ{%}%",ibcssymbol_delta_generic_relative:"Δ({%})%"},"bn-title":{SEPERATOR_WS:", ",CONNECTOR_WS:" und ",in:"in"},"bn-chart":{},"bn-table":{in:"in",category:" ",operation:" ",there_of:"davon",part_of:"in % von",SUM_TOTAL:"❖",REST:"REST"}}),c=s({global:{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",ORDER_asc:"↑",ORDER_desc:"↓",ibcssymbol_delta_ac:"Δ{%}",ibcssymbol_delta_generic:"Δ({%})",ibcssymbol_delta_ac_relative:"Δ{%}%",ibcssymbol_delta_generic_relative:"Δ({%})%"},"bn-title":{SEPERATOR_WS:", ",CONNECTOR_WS:" and ",in:"in"},"bn-chart":{},"bn-table":{category:" ",operation:" ",there_of:"there of",part_of:"in % of",SUM_TOTAL:"❖",REST:"REST"}}),d=Object.keys(f||{}),p={_system:{de:f,en:c}},b=new WeakMap;function h(e){let t=b.get(e);return t||(t={datasources:r({}),datasets:r({}),datasetsMeta:r({}),componentStyles:r({_system:a}),internationalization:r(Object.assign({},p)),assets:r({}),context:r({locale:"en"})},b.set(e,t)),t}const u=new WeakMap;function _(e){const t=u.get(e);if(t)return t;const o=function(e){var t;let o=e.parentNode;for(;o;){if(o instanceof HTMLElement&&"bn-context"===(null===(t=o.nodeName)||void 0===t?void 0:t.toLowerCase()))return o;if(o.parentNode)o=o.parentNode;else{if(!(o instanceof ShadowRoot))break;o=o.host}}}(e);if(!o)throw new Error(`[bn] <${e.localName}> must be inside a <bn-context>. No ancestor <bn-context> found.`);const n=h(o);return u.set(e,n),n}function y(e){u.delete(e)}export{d as B,l as a,h as b,y as c,s as f,_ as g}
1
+ import{S as e}from"./p-JNHhIe7t.js";const t=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys()){const o=e.get(t).filter((e=>{const t=e.deref();return t&&(!("isConnected"in(o=t))||o.isConnected);var o}));e.set(t,o)}})(...t)}),2e3)}})(),o=e.forceUpdate,n=e.getRenderingRef,i=(e,t)=>{const o=e.indexOf(t);o>=0&&(e[o]=e[e.length-1],e.length--)},r=(e,r)=>{const a=((e,t=(e,t)=>e!==t)=>{const o=()=>{return("function"==typeof(t=e)?t():t)??{};var t},n=o();let r=new Map(Object.entries(n));const a="undefined"!=typeof Proxy,s=a?null:{},l={dispose:[],get:[],set:[],reset:[]},f=new Map,c=()=>{r=new Map(Object.entries(o())),a||_(),l.reset.forEach((e=>e()))},d=e=>(l.get.forEach((t=>t(e))),r.get(e)),p=(e,o)=>{const n=r.get(e);t(o,n,e)&&(r.set(e,o),a||u(e),l.set.forEach((t=>t(e,o,n))))},b=a?new Proxy(n,{get:(e,t)=>d(t),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>r.has(t),set:(e,t,o)=>(p(t,o),!0)}):(_(),s),h=(e,t)=>(l[e].push(t),()=>{i(l[e],t)});function u(e){!a&&s&&(Object.prototype.hasOwnProperty.call(s,e)||Object.defineProperty(s,e,{configurable:!0,enumerable:!0,get:()=>d(e),set(t){p(e,t)}}))}function _(){if(a||!s)return;const e=new Set(r.keys());for(const t of Object.keys(s))e.has(t)||delete s[t];for(const t of e)u(t)}return{state:b,get:d,set:p,on:h,onChange:(e,t)=>{const n=(o,n)=>{o===e&&t(n)},i=()=>{const n=o();t(n[e])},r=h("set",n),a=h("reset",i);return f.set(t,{setHandler:n,resetHandler:i,propName:e}),()=>{r(),a(),f.delete(t)}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(h("set",t.set)),t.get&&e.push(h("get",t.get)),t.reset&&e.push(h("reset",t.reset)),t.dispose&&e.push(h("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{l.dispose.forEach((e=>e())),c()},reset:c,forceUpdate:e=>{const t=r.get(e);l.set.forEach((o=>o(e,t,t)))},removeListener:(e,t)=>{const o=f.get(t);o&&o.propName===e&&(i(l.set,o.setHandler),i(l.reset,o.resetHandler),f.delete(t))}}})(e,r);return a.use((()=>{if("function"!=typeof n||"function"!=typeof o)return{};const e=o,i=n,r=new Map;return{dispose:()=>r.clear(),get:e=>{const t=i();t&&((e,t,o)=>{let n=e.get(t);n||(n=[],e.set(t,n)),n.some((e=>e.deref()===o))||n.push(new WeakRef(o))})(r,e,t)},set:o=>{const n=r.get(o);if(n){const t=n.filter((t=>{const o=t.deref();return!!o&&e(o)}));r.set(o,t)}t(r)},reset:()=>{r.forEach((t=>{t.forEach((t=>{const o=t.deref();o&&e(o)}))})),t(r)}}})()),a},a={global:{fontFamily:"'Noto Sans', sans-serif",fontSizePx:13.3333,fontColor:"#000000",fontBackgroundColor:"#ffffff"},"bn-text":{},"bn-chart-time":{scaleFactors:{scenarioOffset:.3,scenarioLabelToColumn:.3,labelToColumn:.3,labelToAxis:.3,needleWidth:.3,needleHeadWidth:.6,columnWidth:2,varianceAxisLineWidth:.3,axisLineWidth:.1,auxiliaryLineWidth:.1,scenarioLineWidth:.2,markerWidth:.7,markerOffset:0,categoryWidth:3,axisTickLength:.3},axisStyles:{ac:{stroke:"#121212",fill:"#121212",width:.1},fc:{stroke:"#121212",fill:"#ffffff",width:.1,dasharray:"10 5 5 5"},pp:{stroke:"#606060",fill:"#606060",width:.1},pl:{stroke:"#121212",fill:"#ffffff",width:.1}},barStyles:{ac:{stroke:"#404040",fill:"#404040",width:.1},fc:{stroke:"#404040",fill:"#ffffff",width:.5,fillpattern:"fc"},pp:{stroke:"#A6A6A6",fill:"#A6A6A6",width:.1},pl:{stroke:"#404040",fill:"#ffffff",width:.1}},varianceStyles:{pos:{stroke:"#008f96",fill:"#008f96",width:.1},neg:{stroke:"#ff0000",fill:"#ff0000",width:.1},neu:{stroke:"#808080",fill:"#808080",width:.1}},padding:{top:10,left:10,right:10,bottom:10}},"bn-chart-structure":{scaleFactors:{scenarioOffset:.3,scenarioLabelToBar:.1,labelToBar:.3,labelToAxis:.3,needleWidth:.3,needleHeadWidth:.6,barWidth:1.2,varianceAxisLineWidth:.3,axisLineWidth:.1,auxiliaryLineWidth:.1,scenarioLineWidth:.2,markerWidth:.7,markerOffset:0,categoryWidth:1.9,axisTickLength:.3},axisStyles:{ac:{stroke:"#121212",fill:"#121212",width:.1},fc:{stroke:"#121212",fill:"#ffffff",width:.1,dasharray:"10 5 5 5"},pp:{stroke:"#606060",fill:"#606060",width:.1},pl:{stroke:"#121212",fill:"#ffffff",width:.1}},barStyles:{ac:{stroke:"#404040",fill:"#404040",width:.1},fc:{stroke:"#404040",fill:"#ffffff",width:.5,fillpattern:"fc"},pp:{stroke:"#A6A6A6",fill:"#A6A6A6",width:.1},pl:{stroke:"#404040",fill:"#ffffff",width:.1}},varianceStyles:{pos:{stroke:"#008f96",fill:"#008f96",width:.1},neg:{stroke:"#ff0000",fill:"#ff0000",width:.1},neu:{stroke:"#808080",fill:"#808080",width:.1}},padding:{top:10,left:10,right:10,bottom:10}},"bn-tree":{edgeColor:"#404040",edgeWidth:1,operatorCircleRadius:10,operatorFontSizeScale:.9,operatorColor:"#404040"},"bn-grid":{headerBackground:"transparent",borderColor:"#A6A6A6",borderWidth:1,cellPadding:4}};function s(e,t,o=null){o=o||{},t=t?t+".":"";for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&("object"==typeof e[n]&&null!==e[n]?s(e[n],t+n,o):o[t+n]=e[n]);return o}const l=["ORDER_asc","ORDER_desc","ac1","pp1","fc1","pl1","ac2","pp2","fc2","pl2","ac3","pp3","fc3","pl3","ac4","pp4","fc4","pl4","ibcssymbol_delta_ac","ibcssymbol_delta_generic","ibcssymbol_delta_ac_relative","ibcssymbol_delta_generic_relative"],f=s({global:{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",ORDER_asc:"↑",ORDER_desc:"↓",ibcssymbol_delta_ac:"Δ{%}",ibcssymbol_delta_generic:"Δ({%})",ibcssymbol_delta_ac_relative:"Δ{%}%",ibcssymbol_delta_generic_relative:"Δ({%})%"},"bn-title":{SEPERATOR_WS:", ",CONNECTOR_WS:" und ",in:"in"},"bn-chart":{},"bn-table":{in:"in",category:" ",operation:" ",there_of:"davon",part_of:"in % von",SUM_TOTAL:"❖",REST:"REST"}}),c=s({global:{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",ORDER_asc:"↑",ORDER_desc:"↓",ibcssymbol_delta_ac:"Δ{%}",ibcssymbol_delta_generic:"Δ({%})",ibcssymbol_delta_ac_relative:"Δ{%}%",ibcssymbol_delta_generic_relative:"Δ({%})%"},"bn-title":{SEPERATOR_WS:", ",CONNECTOR_WS:" and ",in:"in"},"bn-chart":{},"bn-table":{category:" ",operation:" ",there_of:"there of",part_of:"in % of",SUM_TOTAL:"❖",REST:"REST"}}),d=Object.keys(f||{}),p={_system:{de:f,en:c}},b=new WeakMap;function h(e){let t=b.get(e);return t||(t={datasources:r({}),datasets:r({}),datasetsMeta:r({}),componentStyles:r({_system:a}),internationalization:r(Object.assign({},p)),assets:r({}),context:r({locale:"en"})},b.set(e,t)),t}const u=new WeakMap;function _(e){const t=u.get(e);if(t)return t;const o=function(e){var t;let o=e.parentNode;for(;o;){if(o instanceof HTMLElement&&"bn-context"===(null===(t=o.nodeName)||void 0===t?void 0:t.toLowerCase()))return o;if(o.parentNode)o=o.parentNode;else{if(!(o instanceof ShadowRoot))break;o=o.host}}}(e);if(!o)throw new Error(`[bn] <${e.localName}> must be inside a <bn-context>. No ancestor <bn-context> found.`);const n=h(o);return u.set(e,n),n}function y(e){u.delete(e)}export{d as B,l as a,h as b,y as c,s as f,_ as g}
@@ -0,0 +1 @@
1
+ import{g as t,c as e}from"./p-DRikHQE-.js";import{r as s}from"./p-tzFCK9qn.js";import{g as a}from"./p-JNHhIe7t.js";const o=(t,e)=>{const s=[],a=[];for(const o of e)(t(o)?s:a).push(o);return[s,a]},r="WARN_use_dataset",n=(t,e)=>{const s=t.errors;if(s)if(e.length>0){const t=e.map((t=>t.substring(1))).join(", ");s.addOrReplace({id:r,type:"warning",message:`Using datasource(s) "${t}" directly. Prefer using a dataset (bn-dataset) for query support and metadata.`})}else s.remove(r)},i=(r,i,u)=>{let d,f,c,p,l=[],m=[];const g=t=>{if(u){const e=p.datasetsMeta.get(t);e&&u(t,e)}},h=new MutationObserver((t=>{t.forEach((t=>{"datasets"===t.attributeName&&([m,l]=o((t=>t.startsWith("$")),a(r).getAttribute("datasets").split(",")),n(r,m),l.forEach((t=>{i(t,p.datasets.get(t)),g(t)})),m.forEach((t=>{i(t,p.datasources.get(t.substring(1)))})))}))})),w=r.connectedCallback;r.connectedCallback=()=>{const e=a(r);p=t(e),[m,l]=o((t=>t.startsWith("$")),(e.getAttribute("datasets")||"").split(",")),n(r,m),l.forEach((t=>{i(t,p.datasets.get(t)),g(t)})),m.forEach((t=>{i(t,p.datasources.get(t.substring(1)))})),h.observe(e,{attributes:!0,attributeFilter:["datasets"]}),d=p.datasets.on("set",((t,e)=>{l.includes(t)&&i(t,e)})),f=p.datasources.on("set",((t,e)=>{m.includes("$"+t)&&i("$"+t,e)})),u&&(c=p.datasetsMeta.on("set",((t,e)=>{l.includes(t)&&u(t,e)}))),s(w,r)};const F=r.disconnectedCallback;return r.disconnectedCallback=()=>{h.disconnect(),s(d),s(f),s(c),e(a(r)),s(F,r)},t=>{l=t,t.forEach((t=>{i(t,p.datasets.get(t)),g(t)}))}};function u(t){const e=t.parentElement;if(!e)return{width:0,height:0};const s=getComputedStyle(e),a=e.clientWidth-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight),o=function(t){let e=t.parentElement;for(;e;){const t=getComputedStyle(e),s=t.overflowY;if("hidden"===s||"scroll"===s||"auto"===s)return e.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom);if("none"!==t.maxHeight){const s=parseFloat(t.maxHeight);if(!isNaN(s)&&s>0)return Math.min(s,e.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom))}e=e.parentElement}return"undefined"!=typeof window?window.innerHeight:0}(t);return{width:Math.max(0,a),height:Math.max(0,o)}}function d(t){if(null==t||""===t)return{mode:"empty"};if("none"===t)return{mode:"none"};if("auto"===t)return{mode:"auto"};const e=Number(t);return!isNaN(e)&&e>0?{mode:"factor",factor:e}:{mode:"empty"}}export{u as g,d as p,i as w}
@@ -0,0 +1 @@
1
+ import{f as t,g as n,T as r,h as s,i as e,a,O as o,M as i,j as u,A as c,c as l}from"./p-sqjrku2z.js";import{D as f,a as m}from"./p-B4ySv9KQ.js";import{f as d,g as N}from"./p-JNHhIe7t.js";import{r as p}from"./p-tzFCK9qn.js";function v(t){return null==t||""===t||"null"===t}function b(n){return v(n)||"auto"===n.trim().toLowerCase()?[]:h((null==n?void 0:n.split(",").filter((n=>!(n.toUpperCase().trim()in t)))).toString())}function h(r){return v(r)?[]:r.replace(";",",").split(",").filter((r=>{var s,e,a;const o=r.split("_"),i=null===(s=o[0])||void 0===s?void 0:s.replace(/^dr|^d/,"").toUpperCase().trim(),u=null===(e=o[1])||void 0===e?void 0:e.toUpperCase().trim(),c=null===(a=o[2])||void 0===a?void 0:a.toUpperCase().trim();return 3!==o.length||!(i in t)||!(u in t)||!(c in n)}))}function y(t){return v(t)||"auto"===t.trim().toLowerCase()?[]:h(t.split(",").filter((t=>!(t.toUpperCase()in a))).toString())}function g(t){return!v(t)&&Number.isInteger(Number(t))}function S(t){return!v(t)&&!Number.isNaN(Number(t))}function O(t){return!v(t)&&(null==t?void 0:t.toUpperCase())in o}function J(t){return"auto"===(null==t?void 0:t.toLowerCase())||(null==t?void 0:t.toUpperCase())in c}function w(t){if(v(t))return[];try{const n=JSON.parse(t);if(n instanceof Array)return n.filter((t=>!(t.hasOwnProperty("name")&&t.hasOwnProperty("unit"))))}catch(t){console.error("validateMeasureList: failed to parse JSON",t)}return["Invalid JSON structure"]}function j(t){const n=Date.parse(t);return Number.isInteger(n)}function k(t){return(null==t?void 0:t.toUpperCase())in m}function A(t){return(null==t?void 0:t.toUpperCase())in f}function $(t){return(null==t?void 0:t.toUpperCase())in l}function T(t){return!v(t)&&(null==t?void 0:t.toUpperCase())in s}function z(t){return!v(t)&&["true","false",!0,!1].some((n=>n===t))}function M(t){return!v(t)&&(null==t?void 0:t.toUpperCase())in e}function E(t){if(v(t))return[];try{const n=JSON.parse(t);if(n instanceof Array)return n.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 G(t){if(v(t))return[];try{const n=JSON.parse(t);if(n instanceof Array)return n.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category"))))}catch(t){console.error("validatePartOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function I(t){return(null==t?void 0:t.trim().toUpperCase())in i}function q(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 x(t){return(null==t?void 0:t.toUpperCase().trim())in u}function C(t){return(null==t?void 0:t.toUpperCase().trim())in r}function L(t){if(v(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 P(t){if(v(t))return[];try{const n=JSON.parse(t);if("object"!=typeof n||null===n||Array.isArray(n))return["stack: must be a JSON object"];const r=[];if(n.hasOwnProperty("by")){const t=["scenario","category","subcategory","rowgroup"];t.includes(n.by)||r.push(`stack: 'by' must be one of: ${t.join(", ")}`)}else r.push("stack: 'by' is required");if(n.hasOwnProperty("mode")){const t=["absolute","relative","absolute-relative"];t.includes(n.mode)||r.push(`stack: 'mode' must be one of: ${t.join(", ")}`)}if(n.hasOwnProperty("order")){const t=["asc","desc","dataset"];t.includes(n.order)||r.push(`stack: 'order' must be one of: ${t.join(", ")}`)}return r}catch(t){return["stack: invalid JSON"]}}class _{constructor(){this.cache=new Map,this.tag=_.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 D=new _,F=t=>S(t)?`${t}px`:t,K={width:{className:"w",cssName:"width",attrName:"width",transform:F},height:{className:"h",cssName:"height",attrName:"height",transform:F},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:F},right:{className:"rgt",cssName:"right",attrName:"right",transform:F},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:F},left:{className:"lft",cssName:"left",attrName:"left",transform:F},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:F},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},B=Object.keys(K);function H(t,n){const r=function(t,n){const r=function(t){for(var n,r=0,s=0,e=t.length;e>=4;++s,e-=4)n=1540483477*(65535&(n=255&t.charCodeAt(s)|(255&t.charCodeAt(++s))<<8|(255&t.charCodeAt(++s))<<16|(255&t.charCodeAt(++s))<<24))+(59797*(n>>>16)<<16),r=1540483477*(65535&(n^=n>>>24))+(59797*(n>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(e){case 3:r^=(255&t.charCodeAt(s+2))<<16;case 2:r^=(255&t.charCodeAt(s+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(s)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(n);return`bn-c-${t.className}_${r}`}(t,n),s=function(t,n,r){return`.${n} {${t.cssName}: ${r};}`}(t,r,n);return{className:r,style:s}}const Q=t=>{const n=new Map;return B.forEach((r=>{const s=t.getAttribute(r);s&&(["top","left","right","bottom"].includes(r)&&n.set("position",H(K.position,"absolute")),n.set(r,H(K[r],(K[r].transform||function(t){return t})(s))))})),n},R=new MutationObserver((t=>{for(const n of t){const t=n.target,r=Q(t);D.apply(r);const s=Array.from(r.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...s).join(" "),d(t)}})),Y=t=>{const n=t.connectedCallback,r=t.disconnectedCallback;t.connectedCallback=()=>{const r=N(t);if(!r)throw new Error("Can't find element field in component undefined");(t=>{const n=Q(t);D.apply(n);const r=Array.from(n.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...r).join(" "),R.observe(t,{attributes:!0,attributeFilter:B,childList:!1,subtree:!1})})(r),p(n,t)},t.disconnectedCallback=()=>{p(r,t)}};export{h as a,J as b,y as c,O as d,g as e,z as f,q as g,P as h,S as i,v as j,A as k,$ as l,w as m,j as n,k as o,C as p,T as q,M as r,E as s,G as t,I as u,b as v,Y as w,x,L as y}
@@ -0,0 +1,2 @@
1
+ const t="bn-template-engine",e={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,constructableCSS:!0,cssAnnotations:!0,deserializer:!1,devTools:!1,element:!1,event:!1,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!1,hostListenerTarget:!1,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!1,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!0,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propChangeCallback:!0,propMutable:!0,propNumber:!0,propString:!0,reflect:!0,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,serializer:!1,shadowDelegatesFocus:!1,shadowDom:!0,shadowSlotAssignmentManual:!1,slot:!0,slotChildNodesFix:!1,slotRelocation:!1,state:!0,style:!0,svg:!0,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,vdomXlink:!0};var n={isDev:!!e.isDev,isBrowser:!0,isServer:!1,isTesting:!!e.isTesting},o=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(o||{}),s=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(s||{}),r="type",i="value",l="serialized:";function c(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var a,u,f=(t,n)=>{var o;Object.entries(null!=(o=n.o.t)?o:{}).map((([o,[s]])=>{if((e.state||e.prop)&&(31&s||32&s)){const e=t[o],s=c(Object.getPrototypeOf(t),o,!0)||Object.getOwnPropertyDescriptor(t,o);s&&Object.defineProperty(t,o,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),n.i.has(o)?t[o]=n.i.get(o):void 0!==e&&(t[o]=e)}}))},d=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},h=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.l=t,512&n.o.u&&(e.state||e.prop)&&f(t,n))},p=(t,n)=>{const o={u:0,$hostElement$:t,o:n,i:new Map,p:new Map};e.isDev&&(o.m=0),e.method&&e.lazyLoad&&(o.v=new Promise((t=>o.$=t))),e.asyncLoading&&(o.S=new Promise((t=>o.j=t)),t["s-p"]=[],t["s-rc"]=[]),e.lazyLoad&&(o.O=[]);const s=o;return t.__stencil__getHostRef=()=>s,!e.lazyLoad&&512&n.u&&(e.state||e.prop)&&f(t,o),s},m=(t,e)=>e in t,v=(t,e)=>(a||console.error)(t,e),g=e.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],$=(...t)=>console.error(...g,...t),b=(...t)=>console.warn(...g,...t),y=(...t)=>console.info(...g,...t),S=new Map,w=(t,n,o)=>{const s=t.C.replace(/-/g,"_"),r=t._;if(e.isDev&&"string"!=typeof r)return void $(`Trying to lazily load component <${t.C}> with style mode "${n.N}", but it does not exist.`);if(!r)return;const i=!e.hotModuleReplacement&&S.get(r);return i?i[s]:import(`./${r}.entry.js${e.hotModuleReplacement&&o?"?s-hmr="+o:""}`).then((t=>(e.hotModuleReplacement||S.set(r,t),t[s])),(t=>{v(t,n.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},j=new Map,x=[],O="s-id",C="sty-id",_="c-id",E="_stencilDocData",N={hostIds:0,rootLevelIds:0,staticComponents:new Set},k="slot-fb{display:contents}slot-fb[hidden]{display:none}",T="http://www.w3.org/1999/xlink",L=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],R="undefined"!=typeof window?window:{},M=R.HTMLElement||class{},A={u:0,k:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},D=e.shadowDom,I=t=>Promise.resolve(t),H=!!e.constructableCSS&&(()=>{try{return!!R.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),F=!!H&&(()=>!!R.document&&Object.getOwnPropertyDescriptor(R.document.adoptedStyleSheets,"length").writable)(),P=0,U=!1,B=[],z=[],V=[],W=(t,e)=>n=>{t.push(n),U||(U=!0,e&&4&A.u?q(X):A.raf(X))},Y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){v(t)}t.length=0},J=(t,e)=>{let n=0,o=0;for(;n<t.length&&(o=performance.now())<e;)try{t[n++](o)}catch(t){v(t)}n===t.length?t.length=0:0!==n&&t.splice(0,n)},X=()=>{if(e.asyncQueue&&P++,Y(B),e.asyncQueue){const t=2==(6&A.u)?performance.now()+14*Math.ceil(.1*P):1/0;J(z,t),J(V,t),z.length>0&&(V.push(...z),z.length=0),(U=B.length+z.length+V.length>0)?A.raf(X):P=0}else Y(z),(U=B.length>0)&&A.raf(X)},q=t=>I().then(t),K=W(B,!1),Q=W(z,!0),G=t=>{const e=new URL(t,A.k);return e.origin!==R.location.origin?e.href:e.pathname};function Z(t){const n={mode:"open"};e.shadowDelegatesFocus&&(n.delegatesFocus=!!(16&t.u)),e.shadowSlotAssignmentManual&&1024&t.u&&(n.slotAssignment="manual");const o=this.attachShadow(n);void 0===u&&(u=null),u&&(F?o.adoptedStyleSheets.push(u):o.adoptedStyleSheets=[...o.adoptedStyleSheets,u])}var tt=t=>{const e=Tt(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&nt(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!ot(t,it(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&Tt(t,"childNodes").length&&tt(t)}},et=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function nt(t,e,n){let o,s=0,r=[];for(;s<t.length;s++){if(o=t[s],o["s-sr"]&&(!e||o["s-hn"]===e)&&(void 0===n||it(o)===n)&&(r.push(o),void 0!==n))return r;r=[...r,...nt(o.childNodes,e,n)]}return r}var ot=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let s=t;for(;s=s.nextSibling;)it(s)!==e||!n&&s["s-sr"]||o.push(s);return o},st=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,rt=(t,n,o,s)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const r=document.createTextNode("");if(r["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const i=n["s-cr"].parentNode,l=Tt(i,o?"prepend":"appendChild");if(e.hydrateClientSide&&void 0!==s){r["s-oo"]=s;const t=Tt(i,"childNodes"),e=[r];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>l.call(i,t)))}else l.call(i,r);t["s-ol"]=r,t["s-sh"]=n["s-hn"]},it=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function lt(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:et(s.childNodes)).forEach((t=>{o===it(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function ct(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function at(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=it(t)||"";return{slotNode:nt(Tt(e,"childNodes"),e.tagName,o)[0],slotName:o}}var ut=t=>{ft(t),dt(t),mt(t),pt(t),bt(t),vt(t),gt(t),$t(t),yt(t),St(t),ht(t)},ft=t=>{if(t.__cloneNode)return;const n=t.__cloneNode=t.cloneNode;t.cloneNode=function(t){const o=!!e.shadowDom&&this.shadowRoot&&D,s=n.call(this,!!o&&t);if(e.slot&&!o&&t){let t,n,o=0;const r=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],i=this.__childNodes||this.childNodes;for(;o<i.length;o++)t=i[o]["s-nr"],n=r.every((t=>!i[o][t])),t&&(e.appendChildSlotFix&&s.__appendChild?s.__appendChild(t.cloneNode(!0)):s.appendChild(t.cloneNode(!0))),n&&s.appendChild(i[o].cloneNode(!0))}return s}},dt=t=>{t.__appendChild||(t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:e,slotNode:n}=at(t,this);if(n){rt(t,n);const o=ot(n,e),s=o[o.length-1],r=Tt(s,"parentNode"),i=Tt(r,"insertBefore")(t,s.nextSibling);return ct(n),tt(this),i}return this.__appendChild(t)})},ht=t=>{t.__removeChild||(t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&nt(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void tt(this)):this.__removeChild(t)})},pt=t=>{t.__prepend||(t.__prepend=t.prepend,t.prepend=function(...e){e.forEach((e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e));const n=(e["s-sn"]=it(e))||"",o=nt(Tt(this,"childNodes"),this.tagName,n)[0];if(o){rt(e,o,!0);const t=ot(o,n)[0],s=Tt(t,"parentNode"),r=Tt(s,"insertBefore")(e,Tt(t,"nextSibling"));return ct(o),r}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.__prepend(e)}))})},mt=t=>{t.__append||(t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))})},vt=t=>{if(t.__insertAdjacentHTML)return;const e=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,n){if("afterbegin"!==t&&"beforeend"!==t)return e.call(this,t,n);const o=this.ownerDocument.createElement("_");let s;if(o.innerHTML=n,"afterbegin"===t)for(;s=o.firstChild;)this.prepend(s);else if("beforeend"===t)for(;s=o.firstChild;)this.append(s)}},gt=t=>{t.insertAdjacentText=function(t,e){this.insertAdjacentHTML(t,e)}},$t=t=>{t.__insertBefore||t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,e){const{slotName:n,slotNode:o}=at(t,this),s=this.__childNodes?this.childNodes:et(this.childNodes);if(o){let r=!1;if(s.forEach((s=>{if(s!==e&&null!==e);else{if(r=!0,null===e||n!==e["s-sn"])return void this.appendChild(t);if(n===e["s-sn"]){rt(t,o);const n=Tt(e,"parentNode");Tt(n,"insertBefore")(t,e),ct(o)}}})),r)return t}const r=null==e?void 0:e.__parentNode;return r&&!this.isSameNode(r)?this.appendChild(t):this.__insertBefore(t,e)})},bt=t=>{if(t.__insertAdjacentElement)return;const e=t.insertAdjacentElement;t.insertAdjacentElement=function(t,n){return"afterbegin"!==t&&"beforeend"!==t?e.call(this,t,n):"afterbegin"===t?(this.prepend(n),n):"beforeend"===t?(this.append(n),n):n}},yt=t=>{kt("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:et(this.childNodes)).forEach((e=>t+=e.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:et(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},St=t=>{class e extends Array{item(t){return this[t]}}kt("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),kt("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),kt("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),kt("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...et(this.__childNodes)),t}})},wt=t=>{t&&void 0===t.__nextSibling&&globalThis.Node&&(jt(t),Ot(t),_t(t),t.nodeType===Node.ELEMENT_NODE&&(xt(t),Ct(t)))},jt=t=>{t&&!t.__nextSibling&&(kt("nextSibling",t),Object.defineProperty(t,"nextSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n+1]:this.__nextSibling}}))},xt=t=>{t&&!t.__nextElementSibling&&(kt("nextElementSibling",t),Object.defineProperty(t,"nextElementSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.children,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n+1]:this.__nextElementSibling}}))},Ot=t=>{t&&!t.__previousSibling&&(kt("previousSibling",t),Object.defineProperty(t,"previousSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n-1]:this.__previousSibling}}))},Ct=t=>{t&&!t.__previousElementSibling&&(kt("previousElementSibling",t),Object.defineProperty(t,"previousElementSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.children,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n-1]:this.__previousElementSibling}}))},_t=t=>{t&&!t.__parentNode&&(kt("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},Et=["children","nextElementSibling","previousElementSibling"],Nt=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function kt(t,e){if(!globalThis.Node||!globalThis.Element)return;let n;Et.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):Nt.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function Tt(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var Lt=0,Rt=(t,n="")=>{if(e.profile&&performance.mark){const e=`st:${t}:${n}:${Lt++}`;return performance.mark(e),()=>performance.measure(`[Stencil] ${t}() <${n}>`,e)}return()=>{}};function Mt(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var At=new WeakMap,Dt=(t,e,n)=>{let o=j.get(t);H&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,j.set(t,o)},It=(t,n,o)=>{var s,r,i;const l=Ft(n,o),c=j.get(l);if(!e.attachStyles||!R.document)return l;if(t=11===t.nodeType?t:R.document,c)if("string"==typeof c){let o,i=At.get(t=t.head||t);i||At.set(t,i=new Set);const a=(e.hydrateClientSide||e.hotModuleReplacement)&&t.querySelector(`[${C}="${l}"]`);if(a)a.textContent=c;else if(!i.has(l)){o=R.document.createElement("style"),o.textContent=c;const a=null!=(s=A.T)?s:Mt(R.document);if(null!=a&&o.setAttribute("nonce",a),(e.hydrateServerSide||e.hotModuleReplacement)&&(2&n.u||128&n.u||1&n.u)&&o.setAttribute(C,l),!(1&n.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(H){const e=new(null!=(r=t.defaultView)?r:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(c),F?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n&&!e.hotModuleReplacement?n.textContent=c+n.textContent:t.prepend(o)}else t.append(o);1&n.u&&t.insertBefore(o,null),4&n.u&&(o.textContent+=k),i&&i.add(l)}}else if(e.constructableCSS){let n=At.get(t);if(n||At.set(t,n=new Set),!n.has(l)){const o=null!=(i=t.defaultView)?i:t.ownerDocument.defaultView;let s;if(c.constructor===o.CSSStyleSheet)s=c;else{s=new o.CSSStyleSheet;for(let t=0;t<c.cssRules.length;t++)s.insertRule(c.cssRules[t].cssText,t)}if(F?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s],n.add(l),e.hydrateClientSide&&"host"in t){const e=t.querySelector(`[${C}="${l}"]`);e&&Q((()=>e.remove()))}}}return l},Ht=t=>{const n=t.o,o=t.$hostElement$,s=n.u,r=Rt("attachStyles",n.C),i=It(e.shadowDom&&D&&o.shadowRoot?o.shadowRoot:o.getRootNode(),n,t.N);(e.shadowDom||e.scoped)&&e.cssAnnotations&&10&s&&(o["s-sc"]=i,o.classList.add(i+"-h")),r()},Ft=(t,n)=>"sc-"+(e.mode&&n&&32&t.u?t.C+"-"+n:t.C),Pt=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Ut=()=>{if(!R.document)return;const t=R.document.querySelectorAll(`[${C}]`);let e=0;for(;e<t.length;e++)Dt(t[e].getAttribute(C),Pt(t[e].innerHTML),!0)},Bt=t=>"object"==(t=typeof t)||"function"===t,zt=(t,n,...o)=>{"string"==typeof t&&(t=Qn(t));let s=null,r=null,i=null,l=!1,c=!1;const a=[],u=n=>{for(let o=0;o<n.length;o++)s=n[o],Array.isArray(s)?u(s):null!=s&&"boolean"!=typeof s&&((l="function"!=typeof t&&!Bt(s))?s+="":e.isDev&&"function"!=typeof t&&void 0===s.u&&$("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),l&&c?a[a.length-1].L+=s:a.push(l?Vt(null,s):s),c=l)};if(u(o),n&&(e.isDev&&"input"===t&&Kt(n),e.vdomKey&&n.key&&(r=n.key),e.slotRelocation&&n.name&&(i=n.name),e.vdomClass)){const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if(e.isDev&&a.some(Yt)&&$("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),e.vdomFunctional&&"function"==typeof t)return t(null===n?{}:n,a,Jt);const f=Vt(t,null);return f.R=n,a.length>0&&(f.M=a),e.vdomKey&&(f.A=r),e.slotRelocation&&(f.D=i),f},Vt=(t,n)=>{const o={u:0,I:t,L:null!=n?n:null,F:null,M:null};return e.vdomAttribute&&(o.R=null),e.vdomKey&&(o.A=null),e.slotRelocation&&(o.D=null),o},Wt={},Yt=t=>t&&t.I===Wt,Jt={forEach:(t,e)=>t.map(Xt).forEach(e),map:(t,e)=>t.map(Xt).map(e).map(qt)},Xt=t=>({vattrs:t.R,vchildren:t.M,vkey:t.A,vname:t.D,vtag:t.I,vtext:t.L}),qt=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),zt(t.vtag,e,...t.vchildren||[])}const e=Vt(t.vtag,t.vtext);return e.R=t.vattrs,e.M=t.vchildren,e.A=t.vkey,e.D=t.vname,e},Kt=t=>{const e=Object.keys(t),n=e.indexOf("value");if(-1===n)return;const o=e.indexOf("type"),s=e.indexOf("min"),r=e.indexOf("max"),i=e.indexOf("step");(n<o||n<s||n<r||n<i)&&b('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},Qt=(t,n,o,s,r,i,l,c=[])=>{let a,u,f,d;const h=r["s-sc"];if(1===i.nodeType){if(a=i.getAttribute(_),a&&(u=a.split("."),u[0]===l||"0"===u[0])){f=Zt({u:0,P:u[0],U:u[1],B:u[2],V:u[3],I:i.tagName.toLowerCase(),F:i,R:{class:i.className||""}}),n.push(f),i.removeAttribute(_),t.M||(t.M=[]),e.scoped&&h&&u[0]===l&&(i["s-si"]=h,f.R.class+=" "+h);const r=f.F.getAttribute("s-sn");"string"==typeof r&&("slot-fb"===f.I&&(te(r,u[2],f,i,t,n,o,s,c),e.scoped&&h&&i.classList.add(h)),f.F["s-sn"]=r,f.F.removeAttribute("s-sn")),void 0!==f.V&&(t.M[f.V]=f),t=f,s&&"0"===f.B&&(s[f.V]=f.F)}if(i.shadowRoot)for(d=i.shadowRoot.childNodes.length-1;d>=0;d--)Qt(t,n,o,s,r,i.shadowRoot.childNodes[d],l,c);const p=i.__childNodes||i.childNodes;for(d=p.length-1;d>=0;d--)Qt(t,n,o,s,r,p[d],l,c)}else if(8===i.nodeType)u=i.nodeValue.split("."),(u[1]===l||"0"===u[1])&&(a=u[0],f=Zt({P:u[1],U:u[2],B:u[3],V:u[4]||"0",F:i,R:null,M:null,A:null,D:null,I:null,L:null}),"t"===a?(f.F=re(i,3),f.F&&3===f.F.nodeType&&(f.L=f.F.textContent,n.push(f),i.remove(),l===f.P&&(t.M||(t.M=[]),t.M[f.V]=f),s&&"0"===f.B&&(s[f.V]=f.F))):"c"===a?(f.F=re(i,8),f.F&&8===f.F.nodeType&&(n.push(f),i.remove())):f.P===l&&("s"===a?te(i["s-sn"]=u[5]||"",u[2],f,i,t,n,o,s,c):"r"===a&&(e.shadowDom&&s?i.remove():e.slotRelocation&&(r["s-cr"]=i,i["s-cn"]=!0))));else if(t&&"style"===t.I){const e=Vt(null,i.textContent);e.F=i,e.V="0",t.M=[e]}return t},Gt=(t,e)=>{if(1===t.nodeType){const n=t[O]||t.getAttribute(O);n&&e.set(n,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)Gt(t.shadowRoot.childNodes[o],e);const s=t.__childNodes||t.childNodes;for(o=0;o<s.length;o++)Gt(s[o],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},Zt=t=>({u:0,P:null,U:null,B:null,V:"0",F:null,R:null,M:null,A:null,D:null,I:null,L:null,...t});function te(t,n,o,s,r,i,l,c,a){s["s-sr"]=!0,o.D=t||null,o.I="slot";const u=(null==r?void 0:r.F)?r.F["s-id"]||r.F.getAttribute("s-id"):"";if(e.shadowDom&&c&&R.document){const e=o.F=R.document.createElement(o.I);o.D&&o.F.setAttribute("name",t),r.F.shadowRoot&&u&&u!==o.P?Tt(r.F,"insertBefore")(e,Tt(r.F,"children")[0]):Tt(Tt(s,"parentNode"),"insertBefore")(e,s),se(a,n,t,s,o.P),s.remove(),"0"===o.B&&(c[o.V]=o.F)}else{const e=o.F,i=u&&u!==o.P&&r.F.shadowRoot;se(a,n,t,s,i?u:o.P),lt(s),i&&r.F.insertBefore(e,r.F.children[0])}i.push(o),l.push(o),r.M||(r.M=[]),r.M[o.V]=o}var ee,ne,oe,se=(t,e,n,o,s)=>{var r,i;let l=o.nextSibling;if(t[e]=t[e]||[],l&&!(null==(r=l.nodeValue)?void 0:r.startsWith("s.")))do{!l||(l.getAttribute&&l.getAttribute("slot")||l["s-sn"])!==n&&(""!==n||l["s-sn"]||l.getAttribute&&l.getAttribute("slot")||8!==l.nodeType&&3!==l.nodeType)||(l["s-sn"]=n,t[e].push({slot:o,node:l,hostId:s})),l=null==l?void 0:l.nextSibling}while(l&&!(null==(i=l.nodeValue)?void 0:i.startsWith("s.")))},re=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},ie=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),le="-shadowcsshost",ce="-shadowcssslotted",ae="-shadowcsscontext",ue=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",fe=RegExp("("+le+ue,"gim"),de=RegExp("("+ae+ue,"gim"),he=RegExp("("+ce+ue,"gim"),pe=le+"-no-combinator",me=/-shadowcsshost-no-combinator([^\s]*)/,ve=[/::shadow/g,/::content/g],ge=/__part-(\d+)__/g,$e=/-shadowcsshost/gim,be=t=>{const e=ie(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")},ye=/\/\*\s*[\s\S]*?\*\//g,Se=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,we=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,je=/([{}])/g,xe=/(^.*?[^\\])??((:+)(.*)|$)/,Oe="%BLOCK%",Ce=(t,e)=>{const n=_e(t);let o=0;return n.escapedString.replace(we,((...t)=>{const s=t[2];let r="",i=t[4],l="";i&&i.startsWith("{"+Oe)&&(r=n.blocks[o++],i=i.substring(8),l="{");const c=e({selector:s,content:r});return`${t[1]}${c.selector}${t[3]}${l}${c.content}${i}`}))},_e=t=>{const e=t.split(je),n=[],o=[];let s=0,r=[];for(let t=0;t<e.length;t++){const i=e[t];"}"===i&&s--,s>0?r.push(i):(r.length>0&&(o.push(r.join("")),n.push(Oe),r=[]),n.push(i)),"{"===i&&s++}return r.length>0&&(o.push(r.join("")),n.push(Oe)),{escapedString:n.join(""),blocks:o}},Ee=(t,e,n)=>t.replace(e,((...t)=>{if(t[2]){const e=t[2].split(","),o=[];for(let s=0;s<e.length;s++){const r=e[s].trim();if(!r)break;o.push(n(pe,r,t[3]))}return o.join(",")}return pe+t[3]})),Ne=(t,e,n)=>t+e.replace(le,"")+n,ke=(t,e,n)=>e.indexOf(le)>-1?Ne(t,e,n):t+e+n+", "+e+" "+t+n,Te=(t,e)=>t.replace(xe,((t,n="",o,s="",r="")=>n+e+s+r)),Le=(t,e,n,o)=>Ce(t,(t=>{let s=t.selector,r=t.content;return"@"!==t.selector[0]?s=((t,e,n,o)=>t.split(",").map((t=>o&&t.indexOf("."+o)>-1?t.trim():((t,e)=>!(t=>(t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),RegExp("^("+t+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(e).test(t))(t,e)?((t,e,n)=>{const o="."+(e=e.replace(/\[is=([^\]]*)\]/g,((t,...e)=>e[0]))),s=t=>{let s=t.trim();if(!s)return"";if(t.indexOf(pe)>-1)s=((t,e,n)=>{if($e.lastIndex=0,$e.test(t)){const e="."+n;return t.replace(me,((t,n)=>Te(n,e))).replace($e,e+" ")}return e+" "+t})(t,e,n);else{const e=t.replace($e,"");e.length>0&&(s=Te(e,o))}return s},r=(t=>{const e=[];let n=0;return{content:(t=(t=t.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g,((t,o)=>{const s=`__part-${n}__`;return e.push(o),n++,s}))).replace(/(\[[^\]]*\])/g,((t,o)=>{const s=`__ph-${n}__`;return e.push(o),n++,s}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((t,o,s)=>{const r=`__ph-${n}__`;return e.push(s),n++,o+r})),placeholders:e}})(t);let i,l="",c=0;const a=/( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;let u=!((t=r.content).indexOf(pe)>-1);for(;null!==(i=a.exec(t));){const e=i[1],n=t.slice(c,i.index).trim();u=u||n.indexOf(pe)>-1,l+=`${u?s(n):n} ${e} `,c=a.lastIndex}const f=t.substring(c);return u=!f.match(ge)&&(u||f.indexOf(pe)>-1),l+=u?s(f):f,((t,e)=>(e=e.replace(/__part-(\d+)__/g,((e,n)=>t[+n]))).replace(/__ph-(\d+)__/g,((e,n)=>t[+n])))(r.placeholders,l)})(t,e,n).trim():t.trim())).join(", "))(t.selector,e,n,o):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(r=Le(t.content,e,n,o)),{selector:s.replace(/\s{2,}/g," ").trim(),content:r}})),Re=(t,e)=>t.replace(/-shadowcsshost-no-combinator/g,"."+e),Me=(t,e)=>{const n=e+"-h",o=e+"-s",s=(t=>t.match(Se)||[])(t);t=(t=>t.replace(ye,""))(t);const r=[];{const e=t=>{const e=`/*!@___${r.length}___*/`;return r.push({placeholder:e,comment:`/*!@${t.selector}*/`}),t.selector=e+t.selector,t};t=Ce(t,(t=>"@"!==t.selector[0]?e(t):t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document")?(t.content=Ce(t.content,e),t):t))}const i=((t,e,n,o)=>{const s=((t,e)=>{const n="."+e+" > ",o=[];return t=t.replace(he,((...t)=>{if(t[2]){const e=t[2].trim(),s=n+e+t[3];let r="";for(let e=t[4]-1;e>=0;e--){const n=t[5][e];if("}"===n||","===n)break;r=n+r}const i=(r+s).trim(),l=`${r.trimEnd()}${s.trim()}`.trim();return i!==l&&o.push({orgSelector:i,updatedSelector:`${l}, ${i}`}),s}return pe+t[3]})),{selectors:o,cssText:t}})(t=(t=>Ee(t,de,ke))(t=(t=>Ee(t,fe,Ne))(t=(t=>{const e=[];t=t.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g,((t,n)=>{const o=`__supports_${e.length}__`;return e.push(n),`@supports selector(${o})`}));const n=be("::slotted"),o=be(":host"),s=be(":host-context");return t=t.replace(s,"$1"+ae).replace(o,"$1"+le).replace(n,"$1"+ce),e.forEach(((e,n)=>{t=t.replace(`__supports_${n}__`,e)})),t})(t))),o);return t=(t=>ve.reduce(((t,e)=>t.replace(e," ")),t))(t=s.cssText),e&&(t=Le(t,e,n,o)),{cssText:(t=(t=Re(t,n)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:s.selectors.map((t=>({orgSelector:Re(t.orgSelector,n),updatedSelector:Re(t.updatedSelector,n)})))}})(t,e,n,o);return t=[i.cssText,...s].join("\n"),r.forEach((({placeholder:e,comment:n})=>{t=t.replace(e,n)})),i.slottedSelectors.forEach((e=>{const n=RegExp(ie(e.orgSelector)+"(?=\\s*[,{]|$)","g");t=t.replace(n,e.updatedSelector)})),t=(t=>{const e=/([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;return Ce(t,(t=>{if("@"===t.selector[0])return t;const n=t.selector.split(",").map((n=>{const o=[n.trim()];let s;for(;null!==(s=e.exec(n));){const e=s[1].trimEnd(),r=s[2].trim().split(/\s+/),i=s[3]||"",l=r.flatMap((e=>t.selector.includes(`[part~="${e}"]`)?[]:[`[part~="${e}"]`])).join(""),c=`${e} ${l}${i}`;l&&c!==n.trim()&&o.push(c)}return o.join(", ")}));return t.selector=n.join(", "),t}))})(t)},Ae=t=>x.map((e=>e(t))).find((t=>!!t)),De=class t{static fromLocalValue(e){const n=e[r],o=i in e?e[i]:void 0;switch(n){case"string":case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return"NaN"===o?NaN:"-0"===o?-0:"Infinity"===o?1/0:"-Infinity"===o?-1/0:o;case"array":return o.map((e=>t.fromLocalValue(e)));case"date":return new Date(o);case"map":const e=new Map;for(const[n,s]of o){const o="object"==typeof n&&null!==n?t.fromLocalValue(n):n,r=t.fromLocalValue(s);e.set(o,r)}return e;case"object":const s={};for(const[e,n]of o)s[e]=t.fromLocalValue(n);return s;case"regexp":const{pattern:r,flags:i}=o;return RegExp(r,i);case"set":const l=new Set;for(const e of o)l.add(t.fromLocalValue(e));return l;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(r))return!1;const e=t[r];return!!Object.values({...o,...s}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(i))}},Ie=(t,n,o)=>(e.hydrateClientSide||e.hydrateServerSide)&&"string"==typeof t&&t.startsWith(l)?t=function(t){return"string"==typeof t&&t.startsWith(l)?De.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||Bt(t)?t:e.propBoolean&&4&n?(e.formAssociated&&o&&"string"==typeof t||"false"!==t)&&(""===t||!!t):e.propNumber&&2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:e.propString&&1&n?t+"":t,He=t=>{var n;return e.lazyLoad?null==(n=d(t))?void 0:n.$hostElement$:t},Fe=(t,e,n)=>{const o=A.ce(e,n);return t.dispatchEvent(o),o},Pe=(t,n,o,s,r,i,l)=>{if(o===s)return;let c=m(t,n),a=n.toLowerCase();if(e.vdomClass&&"class"===n){const n=t.classList,r=Be(o);let i=Be(s);if(e.hydrateClientSide&&(t["s-si"]||t["s-sc"])&&l){const e=t["s-sc"]||t["s-si"];i.push(e),r.forEach((t=>{t.startsWith(e)&&i.push(t)})),i=[...new Set(i)].filter((t=>t)),n.add(...i)}else n.remove(...r.filter((t=>t&&!i.includes(t)))),n.add(...i.filter((t=>t&&!r.includes(t))))}else if(e.vdomStyle&&"style"===n){if(e.updatable)for(const n in o)s&&null!=s[n]||(!e.hydrateServerSide&&n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in s)o&&s[n]===o[n]||(!e.hydrateServerSide&&n.includes("-")?t.style.setProperty(n,s[n]):t.style[n]=s[n])}else if(e.vdomKey&&"key"===n);else if(e.vdomRef&&"ref"===n)s&&fn(s,t);else if(!e.vdomListener||(e.lazyLoad?c:t.__lookupSetter__(n))||"o"!==n[0]||"n"!==n[1]){if(e.vdomPropOrAttr&&"a"===n[0]&&n.startsWith("attr:")){const o=n.slice(5);let r;if(e.member){const e=d(t);if(e&&e.o&&e.o.t){const t=e.o.t[o];t&&t[1]&&(r=t[1])}}return r||(r=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==s||!1===s?!1===s&&""!==t.getAttribute(r)||t.removeAttribute(r):t.setAttribute(r,!0===s?"":s))}if(e.vdomPropOrAttr&&"p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=s}catch(t){}return}if(e.vdomPropOrAttr){const l=Bt(s);if((c||l&&null!==s)&&!r)try{if(t.tagName.includes("-"))t[n]!==s&&(t[n]=s);else{const e=null==s?"":s;"list"===n?c=!1:null!=o&&t[n]===e||("function"==typeof t.__lookupSetter__(n)?t[n]=e:t.setAttribute(n,e))}}catch(t){}let u=!1;e.vdomXlink&&a!==(a=a.replace(/^xlink\:?/,""))&&(n=a,u=!0),null==s||!1===s?!1===s&&""!==t.getAttribute(n)||(e.vdomXlink&&u?t.removeAttributeNS(T,n):t.removeAttribute(n)):(!c||4&i||r)&&!l&&1===t.nodeType&&(s=!0===s?"":s,e.vdomXlink&&u?t.setAttributeNS(T,n,s):t.setAttribute(n,s))}}else if(n="-"===n[2]?n.slice(3):m(R,a)?a.slice(2):a[2]+n.slice(3),o||s){const e=n.endsWith(ze);n=n.replace(Ve,""),o&&A.rel(t,n,o,e),s&&A.ael(t,n,s,e)}},Ue=/\s/,Be=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Ue):[]),ze="Capture",Ve=RegExp(ze+"$"),We=(t,n,o,s)=>{const r=11===n.F.nodeType&&n.F.host?n.F.host:n.F,i=t&&t.R||{},l=n.R||{};if(e.updatable)for(const t of Ye(Object.keys(i)))t in l||Pe(r,t,i[t],void 0,o,n.u,s);for(const t of Ye(Object.keys(l)))Pe(r,t,i[t],l[t],o,n.u,s)};function Ye(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Je=!1,Xe=!1,qe=!1,Ke=!1,Qe=[],Ge=[],Ze=(t,n,o)=>{var s;const r=n.M[o];let i,l,c,a=0;if(e.slotRelocation&&!Je&&(qe=!0,"slot"===r.I&&(r.u|=r.M?2:1)),e.isDev&&r.F&&$(`The JSX ${null!==r.L?`"${r.L}" text`:`"${r.I}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),e.vdomText&&null!=r.L)i=r.F=R.document.createTextNode(r.L);else if(e.slotRelocation&&1&r.u)i=r.F=e.isDebug||e.hydrateServerSide?mn(r):R.document.createTextNode(""),e.vdomAttribute&&We(null,r,Ke);else{if(e.svg&&!Ke&&(Ke="svg"===r.I),!R.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=r.F=e.svg?R.document.createElementNS(Ke?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Je&&e.slotRelocation&&2&r.u?"slot-fb":r.I):R.document.createElement(!Je&&e.slotRelocation&&2&r.u?"slot-fb":r.I),e.svg&&Ke&&"foreignObject"===r.I&&(Ke=!1),e.vdomAttribute&&We(null,r,Ke),(e.scoped||e.hydrateServerSide)&&null!=ee&&void 0!==ee&&i["s-si"]!==ee&&i.classList.add(i["s-si"]=ee),r.M){const e="template"===r.I?i.content:i;for(a=0;a<r.M.length;++a)l=Ze(t,r,a),l&&e.appendChild(l)}e.svg&&("svg"===r.I?Ke=!1:"foreignObject"===i.tagName&&(Ke=!0))}return i["s-hn"]=oe,e.slotRelocation&&3&r.u&&(i["s-sr"]=!0,i["s-cr"]=ne,i["s-sn"]=r.D||"",i["s-rf"]=null==(s=r.R)?void 0:s.ref,lt(i),c=t&&t.M&&t.M[o],c&&c.I===r.I&&t.F&&tn(t.F),(e.scoped||e.hydrateServerSide)&&hn(ne,i,n.F,null==t?void 0:t.F)),i},tn=t=>{A.u|=1;const e=t.closest(oe.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(dn(e,t,null!=n?n:null),t["s-sh"]=void 0,qe=!0)}A.u&=-2},en=(t,e)=>{A.u|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===oe&&n.push(e)}for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==oe&&o["s-ol"]&&(dn(rn(o).parentNode,o,rn(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,qe=!0),e&&en(o,e)}A.u&=-2},nn=(t,n,o,s,r,i)=>{let l,c=e.slotRelocation&&t["s-cr"]&&t["s-cr"].parentNode||t;for(e.shadowDom&&c.shadowRoot&&c.tagName===oe&&(c=c.shadowRoot),"template"===o.I&&(c=c.content);r<=i;++r)s[r]&&(l=Ze(null,o,r),l&&(s[r].F=l,dn(c,l,e.slotRelocation?rn(n):n)))},on=(t,n,o)=>{for(let s=n;s<=o;++s){const n=t[s];if(n){const t=n.F;un(n),t&&(e.slotRelocation&&(Xe=!0,t["s-ol"]?t["s-ol"].remove():en(t,!0)),t.remove())}}},sn=(t,n,o=!1)=>t.I===n.I&&(e.slotRelocation&&"slot"===t.I?t.D===n.D:e.vdomKey&&!o?t.A===n.A:(o&&!t.A&&n.A&&(t.A=n.A),!0)),rn=t=>t&&t["s-ol"]||t,ln=(t,n,o=!1)=>{const s=n.F=t.F,r=t.M,i=n.M,l=n.I,c=n.L;let a;e.vdomText&&null!=c?e.vdomText&&e.slotRelocation&&(a=s["s-cr"])?a.parentNode.textContent=c:e.vdomText&&t.L!==c&&(s.data=c):(e.svg&&(Ke="svg"===l||"foreignObject"!==l&&Ke),(e.vdomAttribute||e.reflect)&&(e.slot&&"slot"===l&&!Je&&t.D!==n.D&&(n.F["s-sn"]=n.D||"",tn(n.F.parentElement)),We(t,n,Ke,o)),e.updatable&&null!==r&&null!==i?((t,n,o,s,r=!1)=>{let i,l,c=0,a=0,u=0,f=0,d=n.length-1,h=n[0],p=n[d],m=s.length-1,v=s[0],g=s[m];const $="template"===o.I?t.content:t;for(;c<=d&&a<=m;)if(null==h)h=n[++c];else if(null==p)p=n[--d];else if(null==v)v=s[++a];else if(null==g)g=s[--m];else if(sn(h,v,r))ln(h,v,r),h=n[++c],v=s[++a];else if(sn(p,g,r))ln(p,g,r),p=n[--d],g=s[--m];else if(sn(h,g,r))!e.slotRelocation||"slot"!==h.I&&"slot"!==g.I||en(h.F.parentNode,!1),ln(h,g,r),dn($,h.F,p.F.nextSibling),h=n[++c],g=s[--m];else if(sn(p,v,r))!e.slotRelocation||"slot"!==h.I&&"slot"!==g.I||en(p.F.parentNode,!1),ln(p,v,r),dn($,p.F,h.F),p=n[--d],v=s[++a];else{if(u=-1,e.vdomKey)for(f=c;f<=d;++f)if(n[f]&&null!==n[f].A&&n[f].A===v.A){u=f;break}e.vdomKey&&u>=0?(l=n[u],l.I!==v.I?i=Ze(n&&n[a],o,u):(ln(l,v,r),n[u]=void 0,i=l.F),v=s[++a]):(i=Ze(n&&n[a],o,a),v=s[++a]),i&&(e.slotRelocation?dn(rn(h.F).parentNode,i,rn(h.F)):dn(h.F.parentNode,i,h.F))}c>d?nn(t,null==s[m+1]?null:s[m+1].F,o,s,a,m):e.updatable&&a>m&&on(n,c,d)})(s,r,n,i,o):null!==i?(e.updatable&&e.vdomText&&null!==t.L&&(s.textContent=""),nn(s,null,n,i,0,i.length-1)):!o&&e.updatable&&null!==r?on(r,0,r.length-1):e.hydrateClientSide&&o&&e.updatable&&null!==r&&null===i&&(n.M=r),e.svg&&Ke&&"svg"===l&&(Ke=!1))},cn=[],an=t=>{let e,n,o;const s=t.__childNodes||t.childNodes;for(const t of s){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const s=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(st(e,s)){let n=cn.find((t=>t.W===e));Xe=!0,e["s-sn"]=e["s-sn"]||s,n?(n.W["s-sh"]=t["s-hn"],n.Y=t):(e["s-sh"]=t["s-hn"],cn.push({Y:t,W:e})),e["s-sr"]&&cn.map((t=>{st(t.W,e["s-sn"])&&(n=cn.find((t=>t.W===e)),n&&!t.Y&&(t.Y=n.Y))}))}else cn.some((t=>t.W===e))||cn.push({W:e})}1===t.nodeType&&an(t)}},un=t=>{e.vdomRef&&(t.R&&t.R.ref&&Qe.push((()=>t.R.ref(null))),t.M&&t.M.map(un))},fn=(t,n)=>{e.vdomRef&&Ge.push((()=>t(n)))},dn=(t,n,o,s)=>{if(e.slotRelocation)if(e.scoped&&"string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])hn(n["s-cr"],n,t,n.parentElement);else if("string"==typeof n["s-sn"]){e.experimentalSlotFixes&&11!==t.getRootNode().nodeType&&_t(n),t.insertBefore(n,o);const{slotNode:r}=at(n);return r&&!s&&ct(r),n}return t.__insertBefore?t.__insertBefore(n,o):null==t?void 0:t.insertBefore(n,o)};function hn(t,e,n,o){var s,r;let i;if(t&&"string"==typeof e["s-sn"]&&e["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(i=e["s-si"]||t.parentNode["s-sc"])){const t=e["s-sn"],l=e["s-hn"];if(null==(s=n.classList)||s.add(i+"-s"),o&&(null==(r=o.classList)?void 0:r.contains(i+"-s"))){let e=(o.__childNodes||o.childNodes)[0],n=!1;for(;e;){if(e["s-sn"]!==t&&e["s-hn"]===l&&e["s-sr"]){n=!0;break}e=e.nextSibling}n||o.classList.remove(i+"-s")}}}var pn=(t,n,o=!1)=>{var s,r,i,l,c;const a=t.$hostElement$,u=t.o,f=t.J||Vt(null,null),d=Yt(n)?n:zt(null,null,n);if(oe=a.tagName,e.isDev&&Array.isArray(n)&&n.some(Yt))throw Error(`The <Host> must be the single root component.\nLooks like the render() function of "${oe.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);if(e.reflect&&u.X&&(d.R=d.R||{},u.X.forEach((([n,o])=>{d.R[o]=e.serializer&&t.p.has(n)?t.p.get(n):a[n]}))),o&&d.R)for(const t of Object.keys(d.R))a.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.R[t]=a[t]);if(d.I=null,d.u|=4,t.J=d,d.F=f.F=e.shadowDom&&a.shadowRoot||a,(e.scoped||e.shadowDom)&&(ee=a["s-sc"]),Je=D&&!!(1&u.u)&&!(128&u.u),e.slotRelocation&&(ne=a["s-cr"],Xe=!1),ln(f,d,o),e.slotRelocation){if(A.u|=1,qe){an(d.F);for(const t of cn){const n=t.W;if(!n["s-ol"]&&R.document){const t=e.isDebug||e.hydrateServerSide?vn(n):R.document.createTextNode("");t["s-nr"]=n,dn(n.parentNode,n["s-ol"]=t,n,o)}}for(const t of cn){const n=t.W,c=t.Y;if(1===n.nodeType&&o&&(n["s-ih"]=null!=(s=n.hidden)&&s),c){const t=c.parentNode;let s=c.nextSibling;if(!e.hydrateServerSide&&s&&1===s.nodeType){let e=null==(r=n["s-ol"])?void 0:r.previousSibling;for(;e;){let o=null!=(i=e["s-nr"])?i:null;if(o&&o["s-sn"]===n["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===n||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){s=o;break}}e=e.previousSibling}}if((!s&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==s)&&n!==s){if(dn(t,n,s,o),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=R.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,dn(n.parentNode,t,n,o),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(l=n["s-ih"])&&l)}n&&"function"==typeof c["s-rf"]&&c["s-rf"](c)}else 1===n.nodeType&&(n.hidden=!0)}}Xe&&tt(d.F),A.u&=-2,cn.length=0}if(e.slotRelocation&&!Je&&!(1&u.u)&&a["s-cr"]){const t=d.F.__childNodes||d.F.childNodes;for(const e of t)if(e["s-hn"]!==oe&&!e["s-sh"])if(o&&null==e["s-ih"]&&(e["s-ih"]=null!=(c=e.hidden)&&c),1===e.nodeType)e.hidden=!0;else if(3===e.nodeType&&e.nodeValue.trim()){const t=R.document.createComment("s-nt-"+e.nodeValue);t["s-sn"]=e["s-sn"],dn(e.parentNode,t,e,o),e.parentNode.removeChild(e)}}ne=void 0,e.vdomRef&&(Qe.forEach((t=>t())),Qe.length=0,Ge.forEach((t=>t())),Ge.length=0)},mn=t=>{var e;return null==(e=R.document)?void 0:e.createComment(`<slot${t.D?' name="'+t.D+'"':""}> (host=${oe.toLowerCase()})`)},vn=t=>{var e;return null==(e=R.document)?void 0:e.createComment("org-location for "+(t.localName?`<${t.localName}> (host=${t["s-hn"]})`:`[${t.textContent}]`))},gn=(t,n)=>{if(e.asyncLoading&&n&&!t.q&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.q=()=>{n["s-p"].splice(e-1,1),o()})))}},$n=(t,n)=>{if(e.taskQueue&&e.updatable&&(t.u|=16),e.asyncLoading&&4&t.u)return void(t.u|=512);gn(t,t.K);const o=()=>bn(t,n);if(!n)return e.taskQueue?Q(o):o();queueMicrotask((()=>{o()}))},bn=(t,n)=>{const o=t.$hostElement$,s=Rt("scheduleUpdate",t.o.C),r=e.lazyLoad?t.l:o;if(!r)throw Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return n?(e.lazyLoad&&(e.slotRelocation&&t.G&&(t.G=!1,En(r,"connectedCallback",void 0,o)),e.hostListener&&(t.u|=256,t.Z&&(t.Z.map((([t,e])=>En(r,t,e,o))),t.Z=void 0)),t.O.length&&t.O.forEach((t=>t(o)))),Nn(o,"componentWillLoad"),i=En(r,"componentWillLoad",void 0,o)):(Nn(o,"componentWillUpdate"),i=En(r,"componentWillUpdate",void 0,o)),Nn(o,"componentWillRender"),i=yn(i,(()=>En(r,"componentWillRender",void 0,o))),s(),yn(i,(()=>wn(t,r,n)))},yn=(t,e)=>Sn(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Sn=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,wn=async(t,n,o)=>{var s;const r=t.$hostElement$,i=Rt("update",t.o.C),l=r["s-rc"];e.style&&o&&Ht(t);const c=Rt("render",t.o.C);if(e.isDev&&(t.u|=1024),e.hydrateServerSide?await xn(t,n,r,o):xn(t,n,r,o),e.isDev&&(t.m=void 0===t.m?1:t.m+1,t.u&=-1025),e.hydrateServerSide)try{Tn(r),o&&(1&t.o.u?r["s-en"]="":2&t.o.u&&(r["s-en"]="c"))}catch(t){v(t,r)}if(e.asyncLoading&&l&&(l.map((t=>t())),r["s-rc"]=void 0),c(),i(),e.asyncLoading){const e=null!=(s=r["s-p"])?s:[],n=()=>On(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}else On(t)},jn=null,xn=(t,n,o,s)=>{const r=!!e.allRenderFn,i=!!e.lazyLoad,l=!!e.taskQueue,c=!!e.updatable;try{if(jn=n,n=(r||n.render)&&n.render(),c&&l&&(t.u&=-17),(c||i)&&(t.u|=2),e.hasRenderFn||e.reflect)if(e.vdomRender||e.reflect){if(e.hydrateServerSide)return Promise.resolve(n).then((e=>pn(t,e,s)));pn(t,n,s)}else 1&t.o.u?o.shadowRoot.textContent=n:o.textContent=n}catch(e){v(e,t.$hostElement$)}return jn=null,null},On=t=>{const n=t.o.C,o=t.$hostElement$,s=Rt("postUpdate",n),r=e.lazyLoad?t.l:o,i=t.K;e.isDev&&(t.u|=1024),En(r,"componentDidRender",void 0,o),e.isDev&&(t.u&=-1025),Nn(o,"componentDidRender"),64&t.u?(e.isDev&&(t.u|=1024),En(r,"componentDidUpdate",void 0,o),e.isDev&&(t.u&=-1025),Nn(o,"componentDidUpdate"),s()):(t.u|=64,e.asyncLoading&&e.cssAnnotations&&kn(o),e.isDev&&(t.u|=2048),En(r,"componentDidLoad",void 0,o),e.isDev&&(t.u&=-2049),Nn(o,"componentDidLoad"),s(),e.asyncLoading&&(t.j(o),i||_n(n))),e.method&&e.lazyLoad&&t.$(o),e.asyncLoading&&(t.q&&(t.q(),t.q=void 0),512&t.u&&q((()=>$n(t,!1))),t.u&=-517)},Cn=t=>{var o;if(e.updatable&&(n.isBrowser||n.isTesting)){const e=d(t),n=null==(o=null==e?void 0:e.$hostElement$)?void 0:o.isConnected;return n&&2==(18&e.u)&&$n(e,!1),n}return!1},_n=n=>{var o;e.asyncQueue&&(A.u|=2),q((()=>Fe(R,"appload",{detail:{namespace:t}}))),e.hydrateClientSide&&(null==(o=A.tt)?void 0:o.size)&&A.tt.clear(),e.profile&&performance.measure&&performance.measure(`[Stencil] ${t} initial load (by ${n})`,"st:app:start")},En=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){v(t,o)}},Nn=(n,o)=>{e.lifecycleDOMEvents&&Fe(n,"stencil_"+o,{bubbles:!0,composed:!0,detail:{namespace:t}})},kn=t=>{var n,o;return e.hydratedClass?t.classList.add(null!=(n=e.hydratedSelectorName)?n:"hydrated"):e.hydratedAttribute?t.setAttribute(null!=(o=e.hydratedSelectorName)?o:"hydrated",""):void 0},Tn=t=>{const e=t.children;if(null!=e)for(let t=0,n=e.length;t<n;t++){const n=e[t];"function"==typeof n.connectedCallback&&n.connectedCallback(),Tn(n)}},Ln=(t,e)=>d(t).i.get(e),Rn=(t,n,o,s)=>{const r=d(t);if(!r)return;if(e.lazyLoad&&!r)throw Error(`Couldn't find host element for "${s.C}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);if(e.serializer&&r.p.has(n)&&r.p.get(n)===o)return;const i=e.lazyLoad?r.$hostElement$:t,l=r.i.get(n),c=r.u,a=e.lazyLoad?r.l:i;if(o=Ie(o,s.t[n][0],e.formAssociated&&!!(64&s.u)),!(e.lazyLoad&&8&c&&void 0!==l||o===l||Number.isNaN(l)&&Number.isNaN(o))){if(r.i.set(n,o),e.serializer&&e.reflect&&s.X&&s.et&&s.et[n]){const t=t=>{let e=o;for(const o of s.et[n]){const[[s]]=Object.entries(o);e=t[s](e,n)}r.p.set(n,e)};a?t(a):r.O.push((()=>{t(r.l)}))}if(e.isDev&&(1024&r.u?b(`The state/prop "${n}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",i,"\nNew value",o,"\nOld value",l):2048&r.u&&b(`The state/prop "${n}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",i,"\nNew value",o,"\nOld value",l)),e.propChangeCallback&&s.nt){const t=s.nt[n];t&&t.map((t=>{try{const[[e,s]]=Object.entries(t);(128&c||1&s)&&(a?a[e](o,l,n):r.O.push((()=>{r.l[e](o,l,n)})))}catch(t){v(t,i)}}))}if(e.updatable&&2&c){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,l,n)&&!(16&c))return;16&c||$n(r,!1)}}},Mn=(t,n,o)=>{var s,r;const i=t.prototype;if(e.isTesting){if(i.__stencilAugmented)return;i.__stencilAugmented=!0}if(e.formAssociated&&64&n.u&&1&o&&L.forEach((t=>{const n=i[t];Object.defineProperty(i,t,{value(...o){var s;const r=d(this),i=e.lazyLoad?null==r?void 0:r.l:this;if(i){const s=e.lazyLoad?i[t]:n;"function"==typeof s&&s.call(i,...o)}else null==(s=null==r?void 0:r.S)||s.then((e=>{const n=e[t];"function"==typeof n&&n.call(e,...o)}))}})})),e.member&&n.t||e.propChangeCallback){e.propChangeCallback&&(t.watchers&&!n.nt&&(n.nt=t.watchers),t.deserializers&&!n.ot&&(n.ot=t.deserializers),t.serializers&&!n.et&&(n.et=t.serializers));const l=Object.entries(null!=(s=n.t)?s:{});if(l.map((([t,[s]])=>{if((e.prop||e.state)&&(31&s||(!e.lazyLoad||2&o)&&32&s)){const{get:r,set:l}=c(i,t)||{};r&&(n.t[t][0]|=2048),l&&(n.t[t][0]|=4096),(1&o||!r)&&Object.defineProperty(i,t,{get(){if(e.lazyLoad){if(!(2048&n.t[t][0]))return Ln(this,t);const e=d(this),o=e?e.l:i;if(!o)return;return o[t]}if(!e.lazyLoad)return r?r.apply(this):Ln(this,t)},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(r){const i=d(this);if(i){if(e.isDev&&(1&o||4096&n.t[t][0]||0!==(i&&8&i.u)||!(31&s)||1024&s||b(`@Prop() "${t}" on <${n.C}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)),l)return void 0===(32&s?this[t]:i.$hostElement$[t])&&i.i.get(t)&&(r=i.i.get(t)),l.call(this,Ie(r,s,e.formAssociated&&!!(64&n.u))),void Rn(this,t,r=32&s?this[t]:i.$hostElement$[t],n);if(e.lazyLoad){if(e.lazyLoad){if(!(1&o&&4096&n.t[t][0]))return Rn(this,t,r,n),void(1&o&&!i.l&&i.O.push((()=>{4096&n.t[t][0]&&i.l[t]!==i.i.get(t)&&(i.l[t]=r)})));const l=()=>{const o=i.l[t];!i.i.get(t)&&o&&i.i.set(t,o),i.l[t]=Ie(r,s,e.formAssociated&&!!(64&n.u)),Rn(this,t,i.l[t],n)};i.l?l():i.O.push((()=>{l()}))}}else Rn(this,t,r,n)}}})}else e.lazyLoad&&e.method&&1&o&&64&s&&Object.defineProperty(i,t,{value(...e){var n;const o=d(this);return null==(n=null==o?void 0:o.v)?void 0:n.then((()=>{var n;return null==(n=o.l)?void 0:n[t](...e)}))}})})),e.observeAttribute&&(!e.lazyLoad||1&o)){const o=new Map;i.attributeChangedCallback=function(t,s,r){A.jmp((()=>{var c;const a=o.get(t),u=d(this);if(e.serializer&&u.p.has(a)&&u.p.get(a)===r)return;if(this.hasOwnProperty(a)&&e.lazyLoad&&(r=this[a],delete this[a]),e.deserializer&&n.ot&&n.ot[a]){const t=(t,e)=>{const n=null==e?void 0:e[t](r,a);n!==this[a]&&(this[a]=n)};for(const o of n.ot[a]){const[[n]]=Object.entries(o);e.lazyLoad?u.l?t(n,u.l):u.O.push((()=>{t(n,u.l)})):t(n,this)}return}if(i.hasOwnProperty(a)&&"number"==typeof this[a]&&this[a]==r)return;if(null==a){const o=null==u?void 0:u.u;if(u&&o&&!(8&o)&&r!==s){const i=e.lazyLoad?u.l:e.lazyLoad?u.$hostElement$:this,l=null==(c=n.nt)?void 0:c[t];null==l||l.forEach((e=>{const[[n,l]]=Object.entries(e);null!=i[n]&&(128&o||1&l)&&i[n].call(i,r,s,t)}))}return}const f=l.find((([t])=>t===a));f&&4&f[1][0]&&(r=null!==r&&"false"!==r);const h=Object.getOwnPropertyDescriptor(i,a);r==this[a]||h.get&&!h.set||(this[a]=r)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=n.nt)?r:{}),...l.filter((([t,e])=>31&e[0])).map((([t,s])=>{var r;const i=s[1]||t;return o.set(i,t),e.reflect&&512&s[0]&&(null==(r=n.X)||r.push([t,i])),i}))]))}}return t},An=async(t,n,o,s)=>{let r;try{if(!(32&n.u)){if(n.u|=32,e.lazyLoad&&o._){const i=w(o,n,s);if(i&&"then"in i){const t=((t,n)=>e.profile&&performance.mark?(0===performance.getEntriesByName(t,"mark").length&&performance.mark(t),()=>{0===performance.getEntriesByName(n,"measure").length&&performance.measure(n,t)}):()=>{})(`st:load:${o.C}:${n.N}`,`[Stencil] Load module for <${o.C}>`);r=await i,t()}else r=i;if(!r)throw Error(`Constructor for "${o.C}#${n.N}" was not found`);e.member&&!r.isProxied&&(e.propChangeCallback&&(o.nt=r.watchers,o.et=r.serializers,o.ot=r.deserializers),Mn(r,o,2),r.isProxied=!0);const l=Rt("createInstance",o.C);e.member&&(n.u|=8);try{new r(n)}catch(e){v(e,t)}e.member&&(n.u&=-9),e.propChangeCallback&&(n.u|=128),l(),e.slotRelocation&&4&o.u?n.G=!0:Dn(n.l,t)}else r=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(e.style&&r&&r.style){let i;"string"==typeof r.style?i=r.style:e.mode&&"string"!=typeof r.style&&(n.N=Ae(t),n.N&&(i=r.style[n.N]),e.hydrateServerSide&&n.N&&t.setAttribute("s-mode",n.N));const l=Ft(o,n.N);if(!j.has(l)||e.hotModuleReplacement&&s){const t=Rt("registerStyles",o.C);e.hydrateServerSide&&e.shadowDom&&128&o.u&&(i=Me(i,l)),Dt(l,i,!!(1&o.u)),t()}}}const i=n.K,l=()=>$n(n,!0);e.asyncLoading&&i&&i["s-rc"]?i["s-rc"].push(l):l()}catch(o){v(o,t),e.asyncLoading&&n.q&&(n.q(),n.q=void 0),e.asyncLoading&&n.j&&n.j(t)}},Dn=(t,n)=>{e.lazyLoad&&En(t,"connectedCallback",void 0,n)},In=t=>{if(!(1&A.u)){const n=d(t);if(!n)return;const o=n.o,s=Rt("connectedCallback",o.C);if(e.hostListenerTargetParent&&Vn(t,n,o.st,!0),1&n.u)Vn(t,n,o.st,!1),(null==n?void 0:n.l)?Dn(n.l,t):(null==n?void 0:n.S)&&n.S.then((()=>Dn(n.l,t)));else{let s;if(n.u|=1,e.hydrateClientSide&&(s=t.getAttribute(O),s)){if(e.shadowDom&&D&&1&o.u){const n=e.mode?It(t.shadowRoot,o,t.getAttribute("s-mode")):It(t.shadowRoot,o);t.classList.remove(n+"-h",n+"-s")}else if(e.scoped&&2&o.u){const n=Ft(o,e.mode?t.getAttribute("s-mode"):void 0);t["s-sc"]=n}((t,n,o,s)=>{var r,i,l,c;const a=Rt("hydrateClient",n),u=t.shadowRoot,f=[],h=[],p=[],m=e.shadowDom&&u?[]:null,v=Vt(n,null);let g;if(v.F=t,e.scoped){const e=s.o;e&&10&e.u&&t["s-sc"]?(g=t["s-sc"],t.classList.add(g+"-h")):t["s-sc"]&&delete t["s-sc"]}!R.document||A.tt&&A.tt.size||Gt(R.document.body,A.tt=new Map),t[O]=o,t.removeAttribute(O),s.J=Qt(v,f,h,m,t,t,o,p);let $=0;const b=f.length;let y;for(;$<b;$++){y=f[$];const o=y.P+"."+y.U,s=A.tt.get(o),i=y.F;if(u){if((null==(r=y.I)?void 0:(""+r).includes("-"))&&"slot-fb"!==y.I&&!y.F.shadowRoot){const t=d(y.F);if(t){const n=Ft(t.o,e.mode?y.F.getAttribute("s-mode"):void 0),o=R.document.querySelector(`style[sty-id="${n}"]`);o&&m.unshift(o.cloneNode(!0))}}}else i["s-hn"]=Qn(n).toUpperCase(),"slot"===y.I&&(i["s-cr"]=t["s-cr"]);"slot"===y.I&&(y.D=y.F["s-sn"]||y.F.name||null,y.M?(y.u|=2,y.F.childNodes.length||y.M.forEach((t=>{y.F.appendChild(t.F)}))):y.u|=1),s&&s.isConnected&&(s.parentElement.shadowRoot&&""===s["s-en"]&&s.parentNode.insertBefore(i,s.nextSibling),s.parentNode.removeChild(s),u||(i["s-oo"]=parseInt(y.U))),s&&!s["s-id"]&&A.tt.delete(o)}const S=[],w=p.length;let j,x,C,_,E=0,N=0;for(;E<w;E++)if(j=p[E],j&&j.length)for(C=j.length,x=0;x<C;x++){if(_=j[x],S[_.hostId]||(S[_.hostId]=A.tt.get(_.hostId)),!S[_.hostId])continue;const t=S[_.hostId];t.shadowRoot&&_.node.parentElement!==t&&t.insertBefore(_.node,null==(l=null==(i=j[x-1])?void 0:i.node)?void 0:l.nextSibling),t.shadowRoot&&u||(_.slot["s-cr"]||(_.slot["s-cr"]=t["s-cr"],_.slot["s-cr"]=!_.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),rt(_.node,_.slot,!1,_.node["s-oo"]||N),(null==(c=_.node.parentElement)?void 0:c.shadowRoot)&&_.node.getAttribute&&_.node.getAttribute("slot")&&_.node.removeAttribute("slot"),e.experimentalSlotFixes&&wt(_.node)),N=(_.node["s-oo"]||N)+1}if(e.scoped&&g&&h.length&&h.forEach((t=>{t.F.parentElement.classList.add(g+"-s")})),e.shadowDom&&u&&!u.childNodes.length){let e=0;const n=m.length;if(n){for(;e<n;e++){const t=m[e];t&&u.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}s.$hostElement$=t,a()})(t,o.C,s,n)}if(e.slotRelocation&&!s&&(e.hydrateServerSide||(e.slot||e.shadowDom)&&12&o.u)&&Hn(t),e.asyncLoading){let o=t;for(;o=o.parentNode||o.host;)if(e.hydrateClientSide&&1===o.nodeType&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){gn(n,n.K=o);break}}e.prop&&!e.hydrateServerSide&&o.t&&Object.entries(o.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),e.initializeNextTick?q((()=>An(t,n,o))):An(t,n,o)}s()}},Hn=t=>{if(!R.document)return;const n=t["s-cr"]=R.document.createComment(e.isDebug?`content-ref (host=${t.localName})`:"");n["s-cn"]=!0,dn(t,n,t.firstChild)},Fn=(t,n)=>{e.lazyLoad&&En(t,"disconnectedCallback",void 0,n||t)},Pn=async t=>{if(!(1&A.u)){const n=d(t);e.hostListener&&(null==n?void 0:n.rt)&&(n.rt.map((t=>t())),n.rt=void 0),e.lazyLoad?(null==n?void 0:n.l)?Fn(n.l,t):(null==n?void 0:n.S)&&n.S.then((()=>Fn(n.l,t))):Fn(t)}At.has(t)&&At.delete(t),t.shadowRoot&&At.has(t.shadowRoot)&&At.delete(t.shadowRoot)},Un=(t,n)=>{const o={u:n[0],C:n[1]};try{e.member&&(o.t=n[2]),e.hostListener&&(o.st=n[3]),e.propChangeCallback&&(o.nt=t.nt,o.ot=t.ot,o.et=t.et),e.reflect&&(o.X=[]),e.shadowDom&&!D&&1&o.u&&(o.u|=8),!(1&o.u)&&256&o.u?e.experimentalSlotFixes?ut(t.prototype):(e.slotChildNodesFix&&St(t.prototype),e.cloneNodeFix&&ft(t.prototype),e.appendChildSlotFix&&dt(t.prototype),e.scopedSlotTextContentFix&&2&o.u&&yt(t.prototype)):e.cloneNodeFix&&ft(t.prototype),e.hydrateClientSide&&e.shadowDom&&Ut();const s=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){p(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const t=d(this);if(!t)return;Vn(this,t,o.st,!1),this.__hasHostListenerAttached=!0}In(this),s&&s.call(this)},disconnectedCallback(){Pn(this),r&&r.call(this)},__attachShadow(){if(D)if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.C}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Z.call(this,o);else this.shadowRoot=this}}),Object.defineProperty(t,"is",{value:o.C,configurable:!0}),Mn(t,o,3)}catch(e){return v(e),t}},Bn=(t,n={})=>{var o;if(e.profile&&performance.mark&&performance.mark("st:app:start"),(()=>{if(e.devTools){const t=R.stencil=R.stencil||{},e=t.inspect;t.inspect=t=>{let n=(t=>{const e=d(t);if(!e)return;const n=e.u,o=e.$hostElement$;return{renderCount:e.m,flags:{hasRendered:!!(2&n),hasConnected:!!(1&n),isWaitingForChildren:!!(4&n),isConstructingInstance:!!(8&n),isQueuedForUpdate:!!(16&n),hasInitializedComponent:!!(32&n),hasLoadedComponent:!!(64&n),isWatchReady:!!(128&n),isListenReady:!!(256&n),needsRerender:!!(512&n)},instanceValues:e.i,serializerValues:e.p,ancestorComponent:e.K,hostElement:o,lazyInstance:e.l,vnode:e.J,modeName:e.N,fetchedCbList:e.O,onReadyPromise:e.S,onReadyResolve:e.j,onInstancePromise:e.v,onInstanceResolve:e.$,onRenderResolve:e.q,queuedListeners:e.Z,rmListeners:e.rt,"s-id":o["s-id"],"s-cr":o["s-cr"],"s-lr":o["s-lr"],"s-p":o["s-p"],"s-rc":o["s-rc"],"s-sc":o["s-sc"]}})(t);return n||"function"!=typeof e||(n=e(t)),n}}})(),!R.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const s=Rt("bootstrapLazy"),r=[],i=n.exclude||[],l=R.customElements,c=R.document.head,a=c.querySelector("meta[charset]"),u=R.document.createElement("style"),f=[];let h,m=!0;Object.assign(A,n),A.k=new URL(n.resourcesUrl||"./",R.document.baseURI).href,e.asyncQueue&&n.syncQueue&&(A.u|=4),e.hydrateClientSide&&(A.u|=2),e.hydrateClientSide&&e.shadowDom&&Ut();let v=!1;if(t.map((t=>{t[1].map((o=>{var s,c,a;const u={u:o[0],C:o[1],t:o[2],st:o[3]};4&u.u&&(v=!0),e.member&&(u.t=o[2]),e.hostListener&&(u.st=o[3]),e.reflect&&(u.X=[]),e.propChangeCallback&&(u.nt=null!=(s=o[4])?s:{},u.et=null!=(c=o[5])?c:{},u.ot=null!=(a=o[6])?a:{}),e.shadowDom&&!D&&1&u.u&&(u.u|=8);const g=e.transformTagName&&n.transformTagName?n.transformTagName(u.C):Qn(u.C),$=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),p(t=this,u),e.shadowDom&&1&u.u)if(D)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${u.C}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Z.call(t,u);else e.hydrateServerSide||"shadowRoot"in t||(t.shadowRoot=t)}connectedCallback(){const t=d(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Vn(this,t,u.st,!1)),h&&(clearTimeout(h),h=null),m?f.push(this):A.jmp((()=>In(this))))}disconnectedCallback(){A.jmp((()=>Pn(this))),A.raf((()=>{var t;const e=d(this);if(!e)return;const n=f.findIndex((t=>t===this));n>-1&&f.splice(n,1),(null==(t=null==e?void 0:e.J)?void 0:t.F)instanceof Node&&!e.J.F.isConnected&&delete e.J.F}))}componentOnReady(){var t;return null==(t=d(this))?void 0:t.S}};!(1&u.u)&&256&u.u?e.experimentalSlotFixes?ut($.prototype):(e.slotChildNodesFix&&St($.prototype),e.cloneNodeFix&&ft($.prototype),e.appendChildSlotFix&&dt($.prototype),e.scopedSlotTextContentFix&&2&u.u&&yt($.prototype)):e.cloneNodeFix&&ft($.prototype),e.formAssociated&&64&u.u&&($.formAssociated=!0),e.hotModuleReplacement&&($.prototype["s-hmr"]=function(t){((t,e,n)=>{const o=d(t);o&&(o.u=1,An(t,o,e,n))})(this,u,t)}),u._=t[0],i.includes(g)||l.get(g)||(r.push(g),l.define(g,Mn($,u,1)))}))})),r.length>0&&(e.slotRelocation&&v&&(u.textContent+=k),e.invisiblePrehydration&&(e.hydratedClass||e.hydratedAttribute)&&(u.textContent+=r.sort()+"{visibility:hidden}.hydrated{visibility:inherit}"),u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(o=A.T)?o:Mt(R.document);null!=t&&u.setAttribute("nonce",t),c.insertBefore(u,a?a.nextSibling:c.firstChild)}m=!1,f.length?f.map((t=>t.connectedCallback())):A.jmp(e.profile?()=>h=setTimeout(_n,30,"timeout"):()=>h=setTimeout(_n,30)),s()},zn=(t,e)=>e,Vn=(t,n,o,s)=>{e.hostListener&&o&&R.document&&(e.hostListenerTargetParent&&(o=o.filter(s?([t])=>32&t:([t])=>!(32&t))),o.map((([o,s,r])=>{const i=e.hostListenerTarget?Yn(R.document,t,o):t,l=Wn(n,r),c=Jn(o);A.ael(i,s,l,c),(n.rt=n.rt||[]).push((()=>A.rel(i,s,l,c)))})))},Wn=(t,n)=>o=>{var s;try{e.lazyLoad?256&t.u?null==(s=t.l)||s[n](o):(t.Z=t.Z||[]).push([n,o]):t.$hostElement$[n](o)}catch(e){v(e,t.$hostElement$)}},Yn=(t,n,o)=>e.hostListenerTargetDocument&&4&o?t:e.hostListenerTargetWindow&&8&o?R:e.hostListenerTargetBody&&16&o?t.body:e.hostListenerTargetParent&&32&o&&n.parentElement?n.parentElement:n,Jn=t=>({passive:!!(1&t),capture:!!(2&t)}),Xn=e.lazyLoad?class{}:globalThis.HTMLElement||class{},qn=t=>A.T=t,Kn=void 0;function Qn(t){return Kn?Kn(t):t}function Gn(t,e,n){const o=e||{},{children:s,...r}=o;let i=r;return void 0===n||"key"in r||(i={...r,key:n}),i&&0===Object.keys(i).length&&(i=null),void 0!==s?Array.isArray(s)?zt(t,i,...s):zt(t,i,s):zt(t,i)}var Zn=(t,e,n,o)=>{var s;null!=e&&(null!=e["s-nr"]&&o.push(e),1===e.nodeType)&&[...Array.from(e.childNodes),...Array.from((null==(s=e.shadowRoot)?void 0:s.childNodes)||[])].forEach((e=>{const s=d(e);null==s||n.staticComponents.has(e.nodeName.toLowerCase())||to(t,e,s.J,n,{nodeIds:0}),Zn(t,e,n,o)}))},to=(t,e,n,o,s)=>{if(null!=n){const r=++o.hostIds;if(e.setAttribute(O,r),null!=e["s-cr"]&&(e["s-cr"].nodeValue="r."+r),null!=n.M){const e=0;n.M.forEach(((n,o)=>{eo(t,n,s,r,e,o)}))}if(e&&n&&n.F&&!e.hasAttribute(_)){const t=e.parentElement;if(t&&t.childNodes){const o=Array.from(t.childNodes),s=o.find((t=>8===t.nodeType&&t["s-sr"]));if(s){const t=o.indexOf(e)-1;n.F.setAttribute(_,`${s["s-host-id"]}.${s["s-node-id"]}.0.${t}`)}}}}},eo=(t,e,n,o,s,r)=>{const i=e.F;if(null==i)return;const l=n.nodeIds++,c=`${o}.${l}.${s}.${r}`;if(i["s-host-id"]=o,i["s-node-id"]=l,1===i.nodeType)i.setAttribute(_,c),"string"!=typeof i["s-sn"]||i.getAttribute("slot")||i.setAttribute("s-sn",i["s-sn"]);else if(3===i.nodeType){const e=i.parentNode,n=null==e?void 0:e.nodeName;if("STYLE"!==n&&"SCRIPT"!==n){const n=t.createComment("t."+c);dn(e,n,i)}}else 8===i.nodeType&&i["s-sr"]&&(i.nodeValue=`s.${c}.${i["s-sn"]||""}`);if(null!=e.M){const r=s+1;e.M.forEach(((e,s)=>{eo(t,e,n,o,r,s)}))}},no=Object.freeze({__proto__:null,BUILD:e,Build:n,Env:{},Fragment:zn,H:M,HTMLElement:M,HYDRATED_STYLE_ID:C,Host:Wt,Mixin:function(...t){return t.reduceRight(((t,e)=>e(t)),Xn)},NAMESPACE:t,STENCIL_DEV_MODE:g,addHostEventListeners:Vn,bootstrapLazy:Bn,cmpModules:S,connectedCallback:In,consoleDevError:$,consoleDevInfo:y,consoleDevWarn:b,consoleError:v,createEvent:(t,n,o)=>{const s=He(t);return{emit:t=>(e.isDev&&!s.isConnected&&b(`The "${n}" event was emitted, but the dispatcher node is no longer connected to the dom.`),Fe(s,n,{bubbles:!!(4&o),composed:!!(2&o),cancelable:!!(1&o),detail:t}))}},defineCustomElement:(t,e)=>{customElements.define(Qn(e[1]),Un(t,e))},disconnectedCallback:Pn,forceModeUpdate:t=>{if(e.style&&e.mode&&!e.lazyLoad){const e=Ae(t),n=d(t);if(n&&n.N!==e){const o=n.o,s=t["s-sc"],r=Ft(o,e),i=t.constructor.style[e],l=o.u;i&&(j.has(r)||Dt(r,i,!!(1&l)),n.N=e,t.classList.remove(s+"-h",s+"-s"),Ht(n),Cn(t))}}},forceUpdate:Cn,getAssetPath:G,getElement:He,getHostRef:d,getMode:t=>{var e;return null==(e=d(t))?void 0:e.N},getRenderingRef:()=>jn,getValue:Ln,h:zt,insertVdomAnnotations:(t,e)=>{if(null!=t){const n=E in t?t[E]:{...N};n.staticComponents=new Set(e);const o=[];Zn(t,t.body,n,o),o.forEach((e=>{var o;if(null!=e&&e["s-nr"]){const s=e["s-nr"];let r=s["s-host-id"],i=s["s-node-id"],l=`${r}.${i}`;if(null==r)if(r=0,n.rootLevelIds++,i=n.rootLevelIds,l=`${r}.${i}`,1===s.nodeType)s.setAttribute(_,l),"string"!=typeof s["s-sn"]||s.getAttribute("slot")||s.setAttribute("s-sn",s["s-sn"]);else if(3===s.nodeType){if(0===r&&""===(null==(o=s.nodeValue)?void 0:o.trim()))return void e.remove();const n=t.createComment(l);n.nodeValue="t."+l,dn(s.parentNode,n,s)}else if(8===s.nodeType){const e=t.createComment(l);e.nodeValue="c."+l,s.parentNode.insertBefore(e,s)}let c="o."+l;const a=e.parentElement;a&&(""===a["s-en"]?c+=".":"c"===a["s-en"]&&(c+=".c")),e.nodeValue=c}}))}},isMemberInElement:m,jsx:Gn,jsxDEV:function(t,e,n){const o=e||{},{children:s,...r}=o;let i=r;return void 0===n||"key"in r||(i={...r,key:n}),i&&0===Object.keys(i).length&&(i=null),void 0!==s?Array.isArray(s)?zt(t,i,...s):zt(t,i,s):zt(t,i)},jsxs:function(t,e,n){return Gn(t,e,n)},loadModule:w,modeResolutionChain:x,needsScopedSSR:()=>!1,nextTick:q,parsePropertyValue:Ie,plt:A,postUpdateComponent:On,promiseResolve:I,proxyComponent:Mn,proxyCustomElement:Un,readTask:K,registerHost:p,registerInstance:h,render:function(t,e){pn({o:{u:0,C:e.tagName},$hostElement$:e},t)},renderVdom:pn,setAssetPath:t=>A.k=t,setErrorHandler:t=>a=t,setMode:t=>x.push(t),setNonce:qn,setPlatformHelpers:t=>{Object.assign(A,t)},setPlatformOptions:t=>Object.assign(A,t),setScopedSSR:()=>{},setTagTransformer:function(t){Kn&&console.warn("\n A tagTransformer has already been set. \n Overwriting it may lead to error and unexpected results if your components have already been defined.\n "),Kn=t},setValue:Rn,styles:j,supportsConstructableStylesheets:H,supportsListenerOptions:!0,supportsMutableAdoptedStyleSheets:F,supportsShadow:D,transformTag:Qn,win:R,writeTask:Q});export{e as B,zn as F,Wt as H,t as N,no as S,M as a,Bn as b,y as c,G as d,Cn as f,He as g,zt as h,I as p,h as r,qn as s,R as w}
@@ -0,0 +1 @@
1
+ import{r as i,h as t,H as e,g as s}from"./p-JNHhIe7t.js";import{v as a,a as n,i as r,b as o,c as l,d as h,e as d,f as c,g as p,h as u,w as v,j as g}from"./p-DtdQCMzj.js";import{w as m,g as f,p as y}from"./p-DVMu6dEy.js";import{w as b}from"./p-CYjZRKdI.js";import{w as S}from"./p-CRLgp9-v.js";import{a as w}from"./p-DRikHQE-.js";import{w as O}from"./p-BSfqOkN_.js";import{w as k}from"./p-tzFCK9qn.js";import{A as R,O as x,a as _,S as T,b as A}from"./p-sqjrku2z.js";import"./p-B4ySv9KQ.js";const E=class{validateScenario(i){const t=a(i),e="ERR_scenarios";t.length>0?this.errors.addOrReplace({id:e,type:"warning",message:"scenarios: invalid value(s) '"+JSON.stringify(t)+"' are not supported."}):this.errors.remove(e)}validateVariances(i){const t="ERR_variances",e=n(i);e.length>0?this.errors.addOrReplace({id:t,type:"warning",message:"variances: invalid value(s) '"+JSON.stringify(e)+"' are not supported."}):this.errors.remove(t)}validateUnitScaling(i){const t="ERR_unitScaling";r(i)||this.pixelPerUnitGroupMap.has(i)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"unitScaling: invalid value(s) '"+i+"' are not supported."})}validatePercentageScaling(i){const t="ERR_percentageScaling";r(i)||this.pixelPerUnitGroupMap.has(i)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"percentageScaling: invalid value(s) '"+i+"' are not supported."})}validateLevel(i){const t="ERR_level";o(i)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"level: invalid value(s) '"+i+"' are not supported."})}validateOrderList(i){const t=l(i),e="ERR_order";t.length>0?this.errors.addOrReplace({id:e,type:"warning",message:"order: invalid value(s) '"+JSON.stringify(t)+"' are not supported."}):this.errors.remove(e)}validateOrderDirection(i){const t="ERR_orderDirection";h(i)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"orderDirection: invalid value '"+(null==i?void 0:i.toString())+"' is not supported."})}validateLimit(i){const t="ERR_limit";d(i)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"limit: invalid value '"+(null==i?void 0:i.toString())+"' is not supported."})}validateShowCategories(i){const t="ERR_showCategories";c(i)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"showCategories: invalid value(s) '"+(null==i?void 0:i.toString())+"' are not supported."})}validateMeasureScale(i){const t="ERR_measureScale";p(i)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"measureScale: invalid value '"+(null==i?void 0:i.toString())+"' is not supported."})}validateShowMeasureScale(i){const t="ERR_grouped";c(i)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:"showMeasureScale: invalid value(s) '"+(null==i?void 0:i.toString())+"' are not supported."})}validateStack(i){const t="ERR_stack",e=u(i);e.length>0?this.errors.addOrReplace({id:t,type:"warning",message:e.join("; ")}):this.errors.remove(t)}validateScaling(i){if(null==i||""===i||"none"===i||"auto"===i)return void this.errors.remove("ERR_scale");const t=Number(i);isNaN(t)||t<=0?this.errors.addOrReplace({id:"ERR_scale",type:"warning",message:`Invalid scale value: "${i}". Use "none", "auto", or a positive number.`}):this.errors.remove("ERR_scale")}constructor(t){i(this,t),this.data=[],this.datasetMeta=null,this.appliedScaleFactor=1,this.chartTitle="",this.filter="",this.limit=0,this.showCategories="true",this.measureScale="greatest",this.showMeasureScale="false",this.measureUnit="",this.stack="",this.scenariosArray=[""],this.pixelPerUnitGroupMap=new Map,this._autoScaleGuard=!1,v(this),b(this),m(this,((i,t)=>{this.data=t||[]}),((i,t)=>{this.datasetMeta=t})),this.chartTemplate=this.chartTemplate.bind(this),this.errors=k(this),this.componentStyle=O(this),this.t=S(this).t}componentWillLoad(){this.validateScenario(this.scenarios),this.validateVariances(this.variances),this.validateUnitScaling(this.unitScaling),this.validateLevel(this.level),this.validateOrderDirection(this.orderDirection),this.validateOrderList(this.order),this.validateShowCategories(this.showCategories),this.validateMeasureScale(this.measureScale),this.validateShowMeasureScale(this.showMeasureScale),this.validateStack(this.stack),this.validateScaling(this.scale)}componentDidRender(){var i,t;const{mode:e}=y(this.scale);if("auto"!==e&&"empty"!==e){this._autoScaleGuard=!1;const i=f(this.element),t="WARN_overflow";return void(i.width>0&&this.element.scrollWidth>i.width+1?this.errors.addOrReplace({id:t,type:"warning",message:"Chart exceeds available space and will be cut off. Check unit-scaling value."}):this.errors.remove(t))}if(this._autoScaleGuard)return void(this._autoScaleGuard=!1);const s=this.element,{height:a}=f(s);if(a<=0)return;const n=this.componentStyle((i=>{var t;return(null===(t=i.global)||void 0===t?void 0:t.fontSizePx)||13.3333}));s.style.setProperty("--bn-font-size",`${n}px`);const r=null===(i=s.shadowRoot)||void 0===i?void 0:i.querySelector(".container"),o=null!==(t=null==r?void 0:r.scrollHeight)&&void 0!==t?t:s.scrollHeight;if(o<=a+1)return this.errors.remove("AUTO_scale"),void(1!==this.appliedScaleFactor&&(this._autoScaleGuard=!0,this.appliedScaleFactor=1));const l=(a-1)/o;s.style.setProperty("--bn-font-size",n*l+"px"),"empty"===e?this.errors.addOrReplace({id:"AUTO_scale",type:"warning",message:`Auto-scaled chart by factor ${l.toFixed(3)}`}):this.errors.remove("AUTO_scale"),Math.abs(l-this.appliedScaleFactor)>.001&&(this._autoScaleGuard=!0,this.appliedScaleFactor=l)}prepareDimension(){const i=f(this.element);return this.canvasWidthSegmented=i.width/this.scenariosArray.length,{width:this.canvasWidthSegmented,height:i.height}}prepareScenarios(){var i,t,e,s;const a="auto"===(null===(i=this.scenarios)||void 0===i?void 0:i.trim().toLowerCase());return g(this.scenarios)||a?(null===(e=null===(t=this.datasetMeta)||void 0===t?void 0:t.availableScenarios)||void 0===e?void 0:e.length)>0?(a?this.errors.remove("AUTO_scenarios"):this.errors.addOrReplace({id:"AUTO_scenarios",type:"warning",message:`scenarios: not set, auto-detected: ${this.datasetMeta.availableScenarios.join(",")}`}),this.datasetMeta.availableScenarios):[]:(this.errors.remove("AUTO_scenarios"),null===(s=this.scenarios)||void 0===s?void 0:s.split(",").map((i=>i.trim())))}prepareVariances(){var i;return g(this.variances)?[]:null===(i=this.variances)||void 0===i?void 0:i.split(",").map((i=>i.trim()))}prepareHideCategories(i){return i>=1||"true"!==this.showCategories}prepareI18n(){const i=w,t=new Map([].map((i=>[i,this.t(".".concat(i))]))),e=new Map(i.map((i=>[i,this.t("global.".concat(i))])));return new Map([...e.entries(),...t.entries()])}preparePixelPerUnit(){var i;if(this.pixelPerUnitGroupMap.has(this.unitScaling))return this.errors.remove("AUTO_unitScaling"),this.pixelPerUnitGroupMap.get(this.unitScaling);if("auto"===(null===(i=this.unitScaling)||void 0===i?void 0:i.toString().trim().toLowerCase()))return this.errors.remove("AUTO_unitScaling"),0;const t=Number(this.unitScaling);return!isNaN(t)&&t>0?(this.errors.remove("AUTO_unitScaling"),t):(this.errors.addOrReplace({id:"AUTO_unitScaling",type:"warning",message:"unit-scaling: not set, auto-calculated to fit available space."}),0)}preparePixelPerPercentage(){return this.pixelPerUnitGroupMap.has(this.percentageScaling)?this.pixelPerUnitGroupMap.get(this.percentageScaling):100*Number(this.percentageScaling)}prepareLevel(){var i,t,e;const s="auto"===(null===(i=this.level)||void 0===i?void 0:i.trim().toLowerCase());return g(this.level)||s?(null===(t=this.datasetMeta)||void 0===t?void 0:t.suggestedLevel)?(s?this.errors.remove("AUTO_level"):this.errors.addOrReplace({id:"AUTO_level",type:"warning",message:`level: not set, auto-detected: ${this.datasetMeta.suggestedLevel}`}),R[this.datasetMeta.suggestedLevel.toUpperCase()]):void 0:(this.errors.remove("AUTO_level"),R[null===(e=this.level)||void 0===e?void 0:e.toUpperCase()])}prepareOrder(){var i,t,e;const s="auto"===(null===(i=this.order)||void 0===i?void 0:i.trim().toLowerCase());let a;return g(this.order)||s?(null===(t=this.datasetMeta)||void 0===t?void 0:t.suggestedOrder)?(s?this.errors.remove("AUTO_order"):this.errors.addOrReplace({id:"AUTO_order",type:"warning",message:`order: not set, auto-detected: ${this.datasetMeta.suggestedOrder}`}),a=this.datasetMeta.suggestedOrder):a=this.order:(this.errors.remove("AUTO_order"),a=this.order),{hierarchy:null==a?void 0:a.split(",").map((i=>_[null==i?void 0:i.toUpperCase()])),direction:x[null===(e=this.orderDirection)||void 0===e?void 0:e.toUpperCase()]}}prepareStyle(){const i=this.getEffectiveScaleFactor();return this.componentStyle((t=>{const e=t.global.fontSizePx*i;return{scaleFactors:{scenarioOffset:t["bn-chart-structure"].scaleFactors.scenarioOffset,scenarioLabelToBar:t["bn-chart-structure"].scaleFactors.scenarioLabelToBar,labelToBar:t["bn-chart-structure"].scaleFactors.labelToBar,labelToAxis:t["bn-chart-structure"].scaleFactors.labelToAxis,needleWidth:t["bn-chart-structure"].scaleFactors.needleWidth,needleHeadWidth:t["bn-chart-structure"].scaleFactors.needleHeadWidth,barWidth:t["bn-chart-structure"].scaleFactors.barWidth,varianceAxisLineWidth:t["bn-chart-structure"].scaleFactors.varianceAxisLineWidth,axisLineWidth:t["bn-chart-structure"].scaleFactors.axisLineWidth,auxiliaryLineWidth:t["bn-chart-structure"].scaleFactors.auxiliaryLineWidth,scenarioLineWidth:t["bn-chart-structure"].scaleFactors.scenarioLineWidth,markerWidth:t["bn-chart-structure"].scaleFactors.markerWidth,markerOffset:t["bn-chart-structure"].scaleFactors.markerOffset,categoryWidth:t["bn-chart-structure"].scaleFactors.categoryWidth,axisTickLength:t["bn-chart-structure"].scaleFactors.axisTickLength},fontStyles:{font:`${e}px ${t.global.fontFamily}`,size:e,color:t.global.fontColor,background:t.global.fontBackgroundColor,leading:1.8},axisStyles:t["bn-chart-structure"].axisStyles,barStyles:t["bn-chart-structure"].barStyles,varianceStyles:t["bn-chart-structure"].varianceStyles,padding:t["bn-chart-structure"].padding,pattern:null}}))}prepareChartTitle(i){return i>=1?"":this.chartTitle}prepareStackConfig(){if(g(this.stack))return null;try{const i=JSON.parse(this.stack);return{by:i.by,mode:i.mode||A.ABSOLUTE,order:i.order||T.DATASET}}catch(i){return null}}prepareFilter(){return 0===this.filter.length?"":this.filter}prepareLimit(){return Math.floor(Number(this.limit)||0)}getDataStructure(){return{IStructureChartDataRow:{operation:{type:"string",isOptional:!1,description:""},rowGroup:{type:"string",isOptional:!1,description:""},rowGroupIndex:{type:"number",isOptional:!1,description:""},category:{type:"string",isOptional:!1,description:""},categoryIndex:{type:"number",isOptional:!1,description:""},subCategory:{type:"string",isOptional:!1,description:""},subCategoryIndex:{type:"number",isOptional:!1,description:""},columnGroup:{type:"string",isOptional:!1,description:""},columnGroupIndex:{type:"number",isOptional:!1,description:""},columnSubGroup:{type:"string",isOptional:!1,description:""},columnSubGroupIndex:{type:"number",isOptional:!1,description:""},ac1:{type:"number",isOptional:!1,description:""},ac2:{type:"number",isOptional:!1,description:""},ac3:{type:"number",isOptional:!1,description:""},ac4:{type:"number",isOptional:!1,description:""},pp1:{type:"number",isOptional:!1,description:""},pp2:{type:"number",isOptional:!1,description:""},pp3:{type:"number",isOptional:!1,description:""},pp4:{type:"number",isOptional:!1,description:""},fc1:{type:"number",isOptional:!1,description:""},fc2:{type:"number",isOptional:!1,description:""},fc3:{type:"number",isOptional:!1,description:""},fc4:{type:"number",isOptional:!1,description:""},pl1:{type:"number",isOptional:!1,description:""},pl2:{type:"number",isOptional:!1,description:""},pl3:{type:"number",isOptional:!1,description:""},pl4:{type:"number",isOptional:!1,description:""}}}}prepareMeasureScale(){return g(this.measureScale)?"GREATEST":["_","k","M","G","T","P","E","Z","Y","m","μ","n","p","P","f","a","z","y"].includes(this.measureScale.trim())||"LEAST"===this.measureScale.trim().toUpperCase()?this.measureScale.trim():"GREATEST"}prepareShowMeasureScale(i){return 0===i&&"true"===this.showMeasureScale}prepareMeasureUnit(){return""===this.measureUnit||null==this.measureUnit?"":this.measureUnit}chartTemplate(i,e){const s=this.getEffectiveScaleFactor(),a=this.preparePixelPerUnit(),n=this.preparePixelPerPercentage();return t("ibcs-chart-structure",{data:this.data,chartTitle:this.prepareChartTitle(e),scenarios:this.prepareScenarios(),variances:[i],hideCategories:this.prepareHideCategories(e),pixelPerUnit:a>0?a*s:0,pixelPerPercentage:n>0?n*s:0,limit:this.prepareLimit(),styles:this.prepareStyle(),i18n:this.prepareI18n(),order:this.prepareOrder(),level:this.prepareLevel(),filter:this.prepareFilter(),"measure-scale":this.prepareMeasureScale(),"measure-unit":this.prepareMeasureUnit(),showMeasureScale:this.prepareShowMeasureScale(e),stackConfig:this.prepareStackConfig(),parentDimensions:this.prepareDimension()})}getEffectiveScaleFactor(){const{mode:i,factor:t}=y(this.scale);return"factor"===i?t:"auto"===i||"empty"===i?this.appliedScaleFactor:1}getFontStyles(){const i=this.getEffectiveScaleFactor();return this.componentStyle((t=>{var e,s,a,n;const r=(null===(e=t.global)||void 0===e?void 0:e.fontSizePx)||13.3333;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":r*i+"px","--bn-font-color":(null===(a=t.global)||void 0===a?void 0:a.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}render(){let i=[""];const s=this.prepareVariances();s.length>0&&(i=[...i,...s]);const a=this.getFontStyles();return t(e,{key:"c8ad939fbe92ab4a01af1e5ce17e097dbb5eab56",style:a},t("div",{key:"d786c49dd808c2dd9093ede7100e16ac52f50689",class:"container"},i.map(this.chartTemplate)))}get element(){return s(this)}static get watchers(){return{scenarios:[{validateScenario:0}],variances:[{validateVariances:0}],unitScaling:[{validateUnitScaling:0}],percentageScaling:[{validatePercentageScaling:0}],level:[{validateLevel:0}],order:[{validateOrderList:0}],orderDirection:[{validateOrderDirection:0}],limit:[{validateLimit:0}],showCategories:[{validateShowCategories:0}],measureScale:[{validateMeasureScale:0}],showMeasureScale:[{validateShowMeasureScale:0}],stack:[{validateStack:0}],scale:[{validateScaling:0}]}}};E.style=':host{display:inline-block;position:relative;overflow:hidden}.container{display:flex;flex-direction:row}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}.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-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}.warning{font-size:0.8em;font-style:italic}.footer{margin:0.2em;font-size:0.6em}.footer-hide{margin:0.2em;font-size:0.6em;opacity:0}';export{E as bn_chart_structure}
@@ -0,0 +1 @@
1
+ import{g as t,r as s,h as a,H as e}from"./p-JNHhIe7t.js";import{g as o,c as n}from"./p-DRikHQE-.js";import{r,w as i}from"./p-tzFCK9qn.js";import{w as c}from"./p-DG-1MR_T.js";import{a as u}from"./p-BYmPQYxx.js";import{w as l}from"./p-CYjZRKdI.js";import"./p-BFTU3MAI.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}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as r,g as s}from"./p-JNHhIe7t.js";import{f as i,w as o}from"./p-DtdQCMzj.js";import{w as n}from"./p-CYjZRKdI.js";import{w as a}from"./p-BSfqOkN_.js";import{w as d}from"./p-tzFCK9qn.js";import"./p-sqjrku2z.js";import"./p-B4ySv9KQ.js";import"./p-DRikHQE-.js";function l(t){if(!t||""===t.trim()||"[]"===t)return[];try{const e=JSON.parse(t);return Array.isArray(e)?e.map(((t,e)=>{var r,s,i;return"string"==typeof t?{label:t,id:String(e)}:"object"==typeof t&&null!==t?{label:null!==(s=null!==(r=t.label)&&void 0!==r?r:t.name)&&void 0!==s?s:String(e),id:null!==(i=t.id)&&void 0!==i?i:String(e)}:{label:String(t),id:String(e)}})):[]}catch(t){return console.error("parseHeaders: failed to parse JSON",t),[]}}function h(t){if(!t||""===t.trim()||"[]"===t)return[];try{const e=JSON.parse(t);if(!Array.isArray(e))return["Headers must be an array"];const r=[],s=new Set;return e.forEach(((t,e)=>{"object"==typeof t&&null!==t&&void 0!==t.id&&("string"!=typeof t.id?r.push(`Header[${e}]: 'id' must be a string`):s.has(t.id)?r.push(`Header[${e}]: duplicate id '${t.id}'`):s.add(t.id),void 0!==t.label&&"string"!=typeof t.label&&r.push(`Header[${e}]: 'label' must be a string`))})),r}catch(t){return console.error("validateHeadersJson: failed to parse JSON",t),["Invalid JSON structure"]}}const u=class{validateRowHeaders(t){const e="ERR_rowHeaders",r=h(t);r.length>0?this.errors.addOrReplace({id:e,type:"error",message:`row-headers: ${r.join("; ")}`}):this.errors.remove(e),this.updateGridConfig()}validateColumnHeaders(t){const e="ERR_columnHeaders",r=h(t);r.length>0?this.errors.addOrReplace({id:e,type:"error",message:`column-headers: ${r.join("; ")}`}):this.errors.remove(e),this.updateGridConfig()}validateShowRowHeaders(t){const e="ERR_showRowHeaders";i(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:`show-row-headers: invalid value '${t}', must be 'true' or 'false'`})}validateShowColumnHeaders(t){const e="ERR_showColumnHeaders";i(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:`show-column-headers: invalid value '${t}', must be 'true' or 'false'`})}validateShowBorders(t){const e="ERR_showBorders";i(t)?this.errors.remove(e):this.errors.addOrReplace({id:e,type:"warning",message:`show-borders: invalid value '${t}', must be 'true' or 'false'`})}constructor(e){t(this,e),this.gridConfig={rows:[],columns:[]},this.chartTitle="",this.rowHeaders="[]",this.columnHeaders="[]",this.showRowHeaders="true",this.showColumnHeaders="true",this.showBorders="true",this.rowHeaderWidth="auto",this.cellGap="0px",o(this),n(this),this.errors=d(this),this.componentStyle=a(this)}getGridStyle(){return this.componentStyle((t=>t["bn-grid"]))}componentWillLoad(){this.validateRowHeaders(this.rowHeaders),this.validateColumnHeaders(this.columnHeaders),this.validateShowRowHeaders(this.showRowHeaders),this.validateShowColumnHeaders(this.showColumnHeaders),this.validateShowBorders(this.showBorders)}updateGridConfig(){var t;this.gridConfig=(t=this.columnHeaders,{rows:l(this.rowHeaders),columns:l(t)})}shouldShowRowHeaders(){return"true"===this.showRowHeaders&&this.gridConfig.rows.length>0}shouldShowColumnHeaders(){return"true"===this.showColumnHeaders&&this.gridConfig.columns.length>0}shouldShowBorders(){return"true"===this.showBorders}getGridTemplateColumns(){const t=[];this.shouldShowRowHeaders()&&t.push(this.rowHeaderWidth);const e=this.gridConfig.columns.length||1;for(let r=0;r<e;r++)t.push("auto");return t.join(" ")}getGridTemplateRows(){const t=[];this.chartTitle&&t.push("auto"),this.shouldShowColumnHeaders()&&t.push("auto");const e=this.gridConfig.rows.length||1;for(let r=0;r<e;r++)t.push("auto");return t.join(" ")}renderTitle(){if(!this.chartTitle)return null;const t=(this.shouldShowRowHeaders()?1:0)+this.gridConfig.columns.length;return e("div",{class:"grid-title",style:{"grid-column":`1 / span ${t}`,"grid-row":"1"}},this.chartTitle)}renderColumnHeaders(){if(!this.shouldShowColumnHeaders())return null;const t=this.getGridStyle(),r=this.shouldShowBorders()?`${t.borderWidth}px solid ${t.borderColor}`:"none",s=this.shouldShowRowHeaders()?2:1,i=this.chartTitle?2:1;return this.gridConfig.columns.map(((o,n)=>{const a=n>0;return e("div",{key:`col-header-${o.id}`,class:"grid-header grid-header-col",style:{"grid-column":String(s+n),"grid-row":String(i),"border-left":a?r:"none",padding:`${t.cellPadding}px`,"padding-left":a?`${t.cellPadding+4}px`:`${t.cellPadding}px`}},o.label)}))}renderDataCells(){const t=this.getGridStyle(),r=this.shouldShowBorders()?`${t.borderWidth}px solid ${t.borderColor}`:"none",s=this.shouldShowRowHeaders()?2:1,i=(this.chartTitle?1:0)+(this.shouldShowColumnHeaders()?1:0)+1,o=[];return this.gridConfig.rows.length>0&&this.gridConfig.columns.length>0&&this.gridConfig.rows.forEach(((n,a)=>{if(this.shouldShowRowHeaders()){const s=a>0;o.push(e("div",{key:`row-header-${n.id}`,class:"grid-header grid-header-row",style:{"grid-column":"1","grid-row":String(i+a),"border-top":s?r:"none",padding:`${t.cellPadding}px`,"padding-top":s?`${t.cellPadding+4}px`:`${t.cellPadding}px`}},n.label))}this.gridConfig.columns.forEach(((d,l)=>{const h=function(t,e){return`${t.id}-${e.id}`}(n,d),u=l>0,c=a>0;o.push(e("div",{key:`cell-${h}`,class:"grid-cell",style:{"grid-column":String(s+l),"grid-row":String(i+a),"border-left":u?r:"none","border-top":c?r:"none","padding-left":u?`${t.cellPadding+4}px`:"0","padding-top":c?`${t.cellPadding+4}px`:"0"}},e("slot",{name:h})))}))})),o}getFontStyles(){return this.componentStyle((t=>{var e,r,s,i;return{"--bn-font-family":(null===(e=t.global)||void 0===e?void 0:e.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(r=t.global)||void 0===r?void 0:r.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(s=t.global)||void 0===s?void 0:s.fontColor)||"#000000","--bn-font-background":(null===(i=t.global)||void 0===i?void 0:i.fontBackgroundColor)||"#ffffff"}}))}render(){const t={display:"inline-grid","grid-template-columns":this.getGridTemplateColumns(),"grid-template-rows":this.getGridTemplateRows(),gap:this.cellGap};return e(r,{key:"e84402bafd778e7069cd17bd86687a6648dbafe0",style:this.getFontStyles()},e("div",{key:"91941a42bc41fbbaf53c66551035bf97765a9f88",class:"grid-container",style:t},this.renderTitle(),this.renderColumnHeaders(),this.renderDataCells()),e("slot",{key:"349958090f4bf35b9ec768c8994bdf5a96636a36"}))}get element(){return s(this)}static get watchers(){return{rowHeaders:[{validateRowHeaders:0}],columnHeaders:[{validateColumnHeaders:0}],showRowHeaders:[{validateShowRowHeaders:0}],showColumnHeaders:[{validateShowColumnHeaders:0}],showBorders:[{validateShowBorders:0}]}}};u.style=':host{display:inline-block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.grid-container{display:inline-grid;box-sizing:border-box}.grid-title{font-weight:normal;padding-bottom:8px}.grid-header{display:flex;align-items:flex-end;box-sizing:border-box}.grid-header-row{justify-content:flex-end;padding-right:8px}.grid-header-col{white-space:nowrap;justify-content:flex-start}.grid-cell{position:relative;box-sizing:border-box}';export{u as bn_grid}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as s,g as h}from"./p-JNHhIe7t.js";import{S as e,g as n,a as r,b as o,c as a,I as l,F as c,d as u,e as d,f,P as p}from"./p-C0yAPzJz.js";import{d as v,e as g,k as w,A as b,b as P,l as m,a as S,O as y}from"./p-sqjrku2z.js";import{D as L,S as x,b as M}from"./p-BL8gyUwE.js";import{F as k,C as T,V as C}from"./p-1jFf17Vj.js";import{a as A}from"./p-BYmPQYxx.js";import{S as $,I as _}from"./p-8tsCnxIz.js";import"./p-BFTU3MAI.js";class O{constructor(t,i,s,h,e,n,r,o){this.categoryPosition={x:0,y:0},this.spacings={scenarioOffset:0,markerOffset:0,scenarioLabelToBar:0,labelToBar:0,labelToAxis:0,needleWidth:0,needleHeadWidth:0,barWidth:0,varianceAxisLineWidth:0,axisLineWidth:0,auxiliaryLineWidth:0,scenarioLineWidth:0,markerWidth:0,categoryWidth:0,axisTickLength:0},this.categoriesBoxOffset={width:0,height:0},this.padding=t,this.scaleFactors=i,this.fontSize=s,this.axisPosition={x:0,y:0},this.numberOfColumns=h,this.leftSideLengthSync=e,this.topSideLabelHeight=n>0?this.fontSize:0,this.leftSideLabelLength=this.calculateSideLabelLength(n,r,o),this.calculateSpacings(),this.calculateCategoryPosition(),this.calculateAxisPosition()}getBarPositionX(){return this.axisPosition.x}getBarCenterPositionY(t){return this.categoryPosition.y+this.spacings.scenarioOffset+t*this.spacings.categoryWidth}getBarPositionY(t,i){return i?this.getBarCenterPositionY(t):this.getBarCenterPositionY(t)-this.spacings.scenarioOffset}getCategoryPositionX(t){let i=this.spacings.labelToAxis;return t&&(i=-this.spacings.labelToAxis),this.getAxisPositionX()+i}getAxisTitlePositionX(){return this.axisPosition.x}getAxisTitlePositionY(){return this.axisPosition.y-this.spacings.labelToAxis}getNeedleWidth(){return this.spacings.needleWidth}getAxisPositionX(){return this.leftSideLabelLength+this.padding.left+this.spacings.labelToAxis}getAxisPositionY(){return this.padding.top+this.getAxisTitleOffset()}loadCategoriesBox(t){this.categoriesBoxOffset=t,this.calculateAxisPosition()}addOffsetByNegativeDataPoints(t,i,s,h){null!=t&&null!=t.value&&t.value<0&&(s&&t.isClipped()?this.axisPosition.x+=Math.abs(t.getClippedValue()*t.pixelPerUnit):this.axisPosition.x+=Math.abs(t.value*t.pixelPerUnit),this.axisPosition.x+=i,this.axisPosition.x+=this.spacings.labelToBar),this.axisPosition.x<h/2&&(this.axisPosition.x=h/2+this.spacings.labelToBar)}getLabelPositionX(t){let i=this.spacings.labelToBar;return t<0&&(i*=-1),this.axisPosition.x+t+i}getLabelPositionY(t){return this.axisPosition.y+t+this.spacings.labelToBar}getCategoryToAxisSpaceing(){return this.spacings.labelToAxis}getCategoryToTopSpaceing(){return this.spacings.scenarioOffset}getCategoryToBottomSpaceing(){return this.spacings.scenarioOffset}getAxisEndPositionY(){return this.getAxisPositionY()+(this.numberOfColumns+.5)*this.spacings.categoryWidth}getScenarioLabelPositionOffsetY(t){return t?.5*this.getBarWidth()+this.spacings.scenarioLabelToBar:-(.5*this.getBarWidth()+this.spacings.scenarioLabelToBar)}getBarWidth(){return this.spacings.barWidth}getMarkerPositionY(t,i){return i?this.getBarCenterPositionY(t)-this.spacings.markerOffset-.5*this.getBarWidth():this.getBarCenterPositionY(t)+this.spacings.markerOffset+.5*this.getBarWidth()}getMarkerPositionX(){return this.getBarPositionX()}getMarkerScenarioLabelPositionOffsetY(t){return t?-(.5*this.spacings.markerWidth+this.spacings.scenarioLabelToBar):this.spacings.scenarioLabelToBar+.5*this.spacings.markerWidth}getAxisEndPositionX(){return this.getAxisPositionX()}calculateSpacings(){this.spacings={scenarioOffset:this.fontSize*this.scaleFactors.scenarioOffset,markerOffset:this.fontSize*this.scaleFactors.markerOffset,scenarioLabelToBar:this.fontSize*this.scaleFactors.scenarioLabelToBar,labelToBar:this.fontSize*this.scaleFactors.labelToBar,labelToAxis:this.fontSize*this.scaleFactors.labelToAxis,needleWidth:this.fontSize*this.scaleFactors.needleWidth,needleHeadWidth:this.fontSize*this.scaleFactors.needleHeadWidth,barWidth:this.fontSize*this.scaleFactors.barWidth,varianceAxisLineWidth:this.fontSize*this.scaleFactors.varianceAxisLineWidth,axisLineWidth:this.fontSize*this.scaleFactors.axisLineWidth,auxiliaryLineWidth:this.fontSize*this.scaleFactors.auxiliaryLineWidth,scenarioLineWidth:this.fontSize*this.scaleFactors.scenarioLineWidth,markerWidth:this.fontSize*this.scaleFactors.markerWidth,categoryWidth:this.fontSize*this.scaleFactors.categoryWidth,axisTickLength:this.fontSize*this.scaleFactors.axisTickLength}}calculateCategoryPosition(){this.categoryPosition={x:this.padding.left,y:this.getAxisPositionY()+.5*this.spacings.categoryWidth}}calculateAxisPosition(){this.axisPosition={x:this.getAxisPositionX(),y:this.getAxisPositionY()}}recalculatePositions(){this.calculateCategoryPosition(),this.calculateAxisPosition()}getAxisTitleOffset(){return this.topSideLabelHeight}calculateSideLabelLength(t,i,s){if(this.leftSideLengthSync)return this.leftSideLengthSync;const h=t/2;let e=i;return h>e&&(e=h),s>e&&(e=s),e}}class E{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 R{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"}}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}}createPatternMapForStructureBar(){const t=new Map;return t.set("marker-up",this.upMarkerPatternStrings()),t.set("marker-down",this.downMarkerPatternStrings()),t}}class W{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-structure-fc")}getFCPolygonPattern(){return{background:"",foreground:"",bgOffset:0,pattern:this.pattern}}toString(){return this.container.svg()}}var D,B,N,X,Y;!function(t){t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.DIRTY=1]="DIRTY"}(D||(D={})),function(t){t.RELATIVE="dr",t.ABSOLUTE="d",t.NONE=""}(B||(B={}));class V{constructor(t,i){this.data=t,this.scenarios=i,this.variances=[],this.title="",this.hideCategories=!1,this.pixelPerUnit=10,this.pixelPerPercentage=50,this.limit=0,this.sortOrder=new w(new $).default(),this.level=b.CATEGORY,this.filter="",this.measureScale=new x,this.measureUnit="",this.showMeasureScale=!0,this.dataFormatDigits={decimal:1,percent:2},this.stackConfig=null}}class F{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 V(i,s);return g.isArray(t.variances)&&(h.variances=v.adaptArray(t.variances,this.stringAdapter)),g.isString(t.title)&&(h.title=t.title),g.isBoolean(t.hideCategories)&&(h.hideCategories=t.hideCategories),g.isNumber(t.pixelPerUnit)&&(h.pixelPerUnit=t.pixelPerUnit),g.isNumber(t.pixelPerPercentage)&&(h.pixelPerPercentage=t.pixelPerPercentage),g.isNumber(t.limit)&&(h.limit=t.limit),g.isExisting(t.sortOrder)&&(h.sortOrder=this.orderAdapter.adapt(t.sortOrder)),g.isExisting(t.level)&&(h.level=t.level),g.isString(t.filter)&&(h.filter=t.filter.trim()),g.isExisting(t.measureScale)&&(h.measureScale=L.calculateMeasureScale(this.dataSet,h.scenarios,t.measureScale)),g.isString(t.measureUnit)&&(h.measureUnit=t.measureUnit),g.isBoolean(t.showMeasureScale)&&(h.showMeasureScale=t.showMeasureScale),g.isExisting(t.dataFormatDigits)&&(h.dataFormatDigits=this.dataFormatDigitsAdapter.adapt(t.dataFormatDigits)),g.isExisting(t.stackConfig)&&(h.stackConfig=t.stackConfig),h}default(){return new V([],[])}}class H{constructor(t,i,s,h){this.value=t,this.scenario=i,this.pixelPerUnit=s||1,this.variance="neg"===h||h===N.NEG?N.NEG:"pos"===h||h===N.POS?N.POS:N.NEU}isEmpty(){return null==this.value||null==this.scenario}getScaledUnit(){return null==this.value?0:this.value*this.pixelPerUnit}getScaledPercentUnit(){return null==this.value?0:Math.abs(this.value)>1.45?this.value>=0?1.45*this.pixelPerUnit:-1.45*this.pixelPerUnit:this.value*this.pixelPerUnit}getVarianceStyle(){return null==this.value||this.value>=0?this.variance:N.NEU===this.variance?N.NEU:N.POS===this.variance?N.NEG:N.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 G{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 G;return g.isOperator(t.operation)&&(i.operation=t.operation),g.isNumber(t.rowGroupIndex)&&g.isString(t.rowGroup)&&i.addRowGroup(t.rowGroup,t.rowGroupIndex),g.isNumber(t.categoryIndex)&&g.isString(t.category)&&i.addCategory(t.category,t.categoryIndex),g.isNumber(t.subCategoryIndex)&&g.isString(t.subCategory)&&i.addSubCategory(t.subCategory,t.subCategoryIndex),g.isNumber(t.columnGroupIndex)&&g.isString(t.columnGroup)&&i.addColumnGroup(t.columnGroup,t.columnGroupIndex),g.isNumber(t.columnSubGroupIndex)&&g.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}default(){return new G}setActualValues(t,i){g.isNumber(t.ac1)&&(i.ac1=t.ac1),g.isNumber(t.ac2)&&(i.ac2=t.ac2),g.isNumber(t.ac3)&&(i.ac3=t.ac3),g.isNumber(t.ac4)&&(i.ac4=t.ac4)}setPlanValues(t,i){g.isNumber(t.pl1)&&(i.pl1=t.pl1),g.isNumber(t.pl2)&&(i.pl2=t.pl2),g.isNumber(t.pl3)&&(i.pl3=t.pl3),g.isNumber(t.pl4)&&(i.pl4=t.pl4)}setPreviousPeriodValues(t,i){g.isNumber(t.pp1)&&(i.pp1=t.pp1),g.isNumber(t.pp2)&&(i.pp2=t.pp2),g.isNumber(t.pp3)&&(i.pp3=t.pp3),g.isNumber(t.pp4)&&(i.pp4=t.pp4)}setForecastValues(t,i){g.isNumber(t.fc1)&&(i.fc1=t.fc1),g.isNumber(t.fc2)&&(i.fc2=t.fc2),g.isNumber(t.fc3)&&(i.fc3=t.fc3),g.isNumber(t.fc4)&&(i.fc4=t.fc4)}}class U{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 I{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 U(this.scaleFactorsStructureChartAdapter.default(),this.fontStyleAdapter.default(),this.svgStyleGroupAdapter.default(),this.svgStyleGroupAdapter.default(),this.svgVariancesStyleGroupAdapter.default(),this.paddingadapter.default());return g.isExisting(t)&&(g.isExisting(t.scaleFactors)&&(i.scaleFactors=this.scaleFactorsStructureChartAdapter.adapt(t.scaleFactors)),g.isExisting(t.fontStyles)&&(i.fontStyles=this.fontStyleAdapter.adapt(t.fontStyles)),g.isExisting(t.axisStyles)&&(i.axisStyles=this.svgStyleGroupAdapter.adapt(t.axisStyles)),g.isExisting(t.barStyles)&&(i.barStyles=this.svgStyleGroupAdapter.adapt(t.barStyles)),g.isExisting(t.varianceStyles)&&(i.varianceStyles=this.svgVariancesStyleGroupAdapter.adapt(t.varianceStyles)),g.isExisting(t.padding)&&(i.padding=this.paddingadapter.adapt(t.padding)),i.pattern=new R(i.fontStyles.size).createPatternMapForStructureBar()),i}default(){return new U(this.scaleFactorsStructureChartAdapter.default(),this.fontStyleAdapter.default(),this.svgStyleGroupAdapter.default(),this.svgStyleGroupAdapter.default(),this.svgVariancesStyleGroupAdapter.default(),this.paddingadapter.default())}}class j{constructor(){this.scenarioOffset=.3,this.scenarioLabelToBar=.1,this.labelToBar=.3,this.labelToAxis=.3,this.needleWidth=.3,this.needleHeadWidth=.6,this.barWidth=1.2,this.varianceAxisLineWidth=.3,this.axisLineWidth=.1,this.auxiliaryLineWidth=.1,this.scenarioLineWidth=.2,this.markerWidth=.7,this.markerOffset=0,this.categoryWidth=1.9,this.axisTickLength=.3}}class K{adapt(t){const i=new j;return g.isNumber(t.scenarioOffset)&&(i.scenarioOffset=t.scenarioOffset),g.isNumber(t.scenarioLabelToBar)&&(i.scenarioLabelToBar=t.scenarioLabelToBar),g.isNumber(t.labelToBar)&&(i.labelToBar=t.labelToBar),g.isNumber(t.labelToAxis)&&(i.labelToAxis=t.labelToAxis),g.isNumber(t.needleWidth)&&(i.needleWidth=t.needleWidth),g.isNumber(t.needleHeadWidth)&&(i.needleHeadWidth=t.needleHeadWidth),g.isNumber(t.barWidth)&&(i.barWidth=t.barWidth),g.isNumber(t.varianceAxisLineWidth)&&(i.varianceAxisLineWidth=t.varianceAxisLineWidth),g.isNumber(t.axisLineWidth)&&(i.axisLineWidth=t.axisLineWidth),g.isNumber(t.auxiliaryLineWidth)&&(i.auxiliaryLineWidth=t.auxiliaryLineWidth),g.isNumber(t.scenarioLineWidth)&&(i.scenarioLineWidth=t.scenarioLineWidth),g.isNumber(t.markerWidth)&&(i.markerWidth=t.markerWidth),g.isNumber(t.markerOffset)&&(i.markerOffset=t.markerOffset),g.isNumber(t.categoryWidth)&&(i.categoryWidth=t.categoryWidth),g.isNumber(t.axisTickLength)&&(i.axisTickLength=t.axisTickLength),i}default(){return new j}}!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"}(N||(N={})),function(t){t.LIST="LIST",t.SUM="SUM",t.OPT="OPT"}(X||(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"}(Y||(Y={}));class q{constructor(t,i,s,h,e,n,r,o){this.group=null,this.segmentFillColor=null,this.ID_SCENARIOLABEL="Label",this.CSS_CATEGORIES="categories",this.x=i,this.y=s,this.value=e,null!=t&&(this.group=t.group().id(this.createElementID(t.toString(),h))),this.styles=n,this.isVarianceLabel=!1,this.isRelativeLabel=!1,this.verticalHookLocation=r||Y.Top,this.horizontalHookLocation=o||Y.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}createElementID(t,i){return t+"_"+i+"_"+this.ID_SCENARIOLABEL}draw(t={percent:2,decimal:1},i=new x){if(this.isEmpty())return this;const s=this.group;let h;const e=this.styles.fontStyles.background||"#ffffff";let r="",o="start";if(!1===Number.isNaN(Number(this.value))){let s=t.percent,e=t.percent,n=1,a="percent";!1===this.isRelativeLabel&&(s=t.decimal,e=t.decimal,n=i.value,a="decimal"),h=k.number(Number(this.value),a,s,e,n),Number(this.value)<0&&(o="end"),this.isVarianceLabel&&Number(this.value)>=0&&(r="+")}else h=""+this.value,o="start";const a=s.text(r+h);a.move(this.x,this.y);const l=a.bbox().w,c=a.bbox().h;return this.horizontalHookLocation===Y.Right?(o="end",a.move(a.x()-a.length(),a.y())):this.horizontalHookLocation===Y.Center&&(o="middle",a.move(a.x()-a.length()/2,a.y())),this.verticalHookLocation===Y.Center?a.move(a.x(),a.y()-c/2):this.verticalHookLocation===Y.Bottom&&a.move(a.x(),a.y()-c),a.font({anchor:o}),null!=this.segmentFillColor?a.fill(n(this.segmentFillColor)):null==s||s.rect(l,.9*c).stroke(e).fill(e).opacity(.7).move(a.x(),a.y()+.1*c).insertBefore(a),this}isEmpty(){return null==this.value||""===this.value}setPos(t,i){return this.x=t,this.y=i,this}}class Z{constructor(t,i,s,h){this.height=0,this.ID_AXIS="axis",this.ID_AXIS_TITLE="axis-title",this.CSS_AXIS_TITLE="categories",this.scenarioType=t.scenarioType,this.labelText=t.labelText||null,this.position=i,this.style=h,this.label=new q(s,this.position.getAxisTitlePositionX(),this.position.getAxisTitlePositionY(),this.ID_AXIS_TITLE,this.labelText,this.style,Y.Bottom,Y.Center),this.svgGroup=s.group().id(this.ID_AXIS)}draw(){return this.labelText&&this.label.draw(),this.svgGroup.line(this.position.getAxisPositionX(),this.position.getAxisPositionY(),this.position.getAxisEndPositionX(),this.position.getAxisEndPositionY()).addClass(this.ID_AXIS+"-"+this.convertScenarioType()),this.height=this.svgGroup.height(),this}convertScenarioType(){return void 0===this.scenarioType||null==this.scenarioType?"default":`${this.scenarioType}`.slice(0,2)}}class J{constructor(t,i,s,h,e,n,r,o=null){if(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.barGroup=null,this.isVarianceBar=!1,this.overflowConfig=null,this.isOverflowing=!1,this.overdriveWidth=0,this.dimensions={barLength:0,xPos:0,yPos:0,labelXPos:0,scenarioLabelXPos:0,scenarioLabelYPos:0,clipped:!1},this.hasData=!1,this.dataPoint=s,this.index=h,this.isPrimaryBar=e,this.position=t,this.barStyles=i.barStyles,this.overflowConfig=o,this.scenarioGroup=n,this.styles=i,null!=n&&(this.barGroup=n.group().id(n.toString()+"_"+this.ID_RECT)),!0!==(null==s?void 0:s.isEmpty())&&null!=s.value){this.hasData=!0;let i=Y.Left;s.value<0&&(i=Y.Right),this.dimensions=this.createDimensions(t,s,h,e),this.label=new q(this.scenarioGroup,this.dimensions.labelXPos,this.dimensions.yPos,this.ID_DATA_PREFIX,s.value,this.styles,Y.Center,i),this.scenarioLabel=this.getScenarioLabel(r)}}setAsVariance(){var t;return this.isVarianceBar=!0,null===(t=this.label)||void 0===t||t.setToVarianceLabel(),this}isRelativeVariance(){var t;return this.isVarianceBar=!0,null===(t=this.label)||void 0===t||t.setToRelativeVarianceLabel(),this}updateLabelGroup(t){var i;return this.isEmpty()||null==t||null===(i=this.label)||void 0===i||i.updateGroup(t),this}draw(t={percent:2,decimal:1},i=new x){if(this.isEmpty()||null==this.dataPoint.getScenario())return this;let s=this.barStyles.getSVGStyle(this.dataPoint.getScenario());this.isVarianceBar&&(s=this.styles.varianceStyles.getSVGStyle(this.dataPoint.getVarianceStyle()));const h=this.convertToSVGStyle(s,"stroke");let e=this.convertToSVGStyle(s,"fill");const n=this.barStyles.getSVGStyle(this.dataPoint.getScenario()).fillpattern;if(null!=n){const t=this.styles.pattern.get(n);null!=t&&(e=t.pattern)}null!=this.barGroup&&(this.isOverflowing&&this.overflowConfig?this.drawOverdriveBar(e,h):this.barGroup.rect(this.dimensions.barLength,this.position.getBarWidth()).fill(e).stroke(h).cy(this.dimensions.yPos).x(this.dimensions.xPos)),this.drawBarDataLabel(t,i),this.drawScenarioLabel()}drawOverdriveBar(t,i){if(!this.barGroup||!this.overflowConfig)return;const s=this.position.getBarPositionX(),h=this.position.getBarWidth(),e=this.dimensions.barLength,{breakGap:n}=this.overflowConfig;this.dataPoint.getScaledUnit()<0?(this.barGroup.rect(e,h).fill(t).stroke(i).x(s-e).cy(this.dimensions.yPos),this.barGroup.rect(this.overdriveWidth,h).fill(t).stroke(i).x(s-e-n-this.overdriveWidth).cy(this.dimensions.yPos),this.drawBreakIndicator(s-e-n,n)):(this.barGroup.rect(e,h).fill(t).stroke(i).x(s).cy(this.dimensions.yPos),this.barGroup.rect(this.overdriveWidth,h).fill(t).stroke(i).x(s+e+n).cy(this.dimensions.yPos),this.drawBreakIndicator(s+e,n))}drawBreakIndicator(t,i){if(!this.barGroup)return;const s=this.position.getBarWidth(),h=this.dimensions.yPos-s/2,e=t+i/2,n=.35*i,r=s/3;let o=`M ${e-n} ${h}`;for(let t=0;t<3;t++)o+=` L ${e-n-.3*i} ${h+r*(t+.5)} L ${e-n} ${h+r*(t+1)}`;let a=`M ${e+n} ${h}`;for(let t=0;t<3;t++)a+=` L ${e+n+.3*i} ${h+r*(t+.5)} L ${e+n} ${h+r*(t+1)}`;this.barGroup.rect(i,s+2).fill("#ffffff").stroke("none").x(t).cy(this.dimensions.yPos),this.barGroup.path(o).fill("none").stroke({color:"#000000",width:1}),this.barGroup.path(a).fill("none").stroke({color:"#000000",width:1})}createDimensions(t,i,s,h){const e=i.getScaledUnit(),n=Math.abs(e);if(this.overflowConfig&&n>0){const r="ac"===i.getScenario()?this.overflowConfig.cutWidth:this.overflowConfig.cutWidth-this.overflowConfig.scenarioCutOffset;if(n>r){this.isOverflowing=!0;const{breakGap:i,overdriveZoneWidth:o,maxOverflow:a}=this.overflowConfig;this.overdriveWidth=a>0?(n-r)/a*o:0;const l=r+i+this.overdriveWidth;return e<0?{clipped:!1,barLength:r,xPos:t.getBarPositionX()-r,yPos:t.getBarPositionY(s,h),labelXPos:t.getLabelPositionX(-l),scenarioLabelXPos:t.getBarPositionX()-.5*r,scenarioLabelYPos:t.getBarPositionY(s,h)+t.getScenarioLabelPositionOffsetY(h)}:{clipped:!1,barLength:r,xPos:t.getBarPositionX(),yPos:t.getBarPositionY(s,h),labelXPos:t.getLabelPositionX(l),scenarioLabelXPos:t.getBarPositionX()+.5*r,scenarioLabelYPos:t.getBarPositionY(s,h)+t.getScenarioLabelPositionOffsetY(h)}}}return e<0?{clipped:!1,barLength:n,xPos:t.getBarPositionX()+e,yPos:t.getBarPositionY(s,h),labelXPos:this.position.getLabelPositionX(e),scenarioLabelXPos:this.position.getBarPositionX()-.5*n,scenarioLabelYPos:this.position.getBarPositionY(s,h)+this.position.getScenarioLabelPositionOffsetY(h)}:{clipped:!1,barLength:e,xPos:t.getBarPositionX(),yPos:t.getBarPositionY(s,h),labelXPos:this.position.getLabelPositionX(e),scenarioLabelXPos:this.position.getBarPositionX()+.5*n,scenarioLabelYPos:this.position.getBarPositionY(s,h)+this.position.getScenarioLabelPositionOffsetY(h)}}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.isVarianceBar||this.scenarioLabel.setPos(this.dimensions.scenarioLabelXPos,this.dimensions.scenarioLabelYPos).draw()}drawBarDataLabel(t,i=new x){var s;this.isPrimaryBar&&(null===(s=this.label)||void 0===s||s.draw(t,i))}isEmpty(){return!1===this.hasData||Number.isNaN(this.dataPoint.value)}getScenarioLabel(t){return new q(this.scenarioGroup,-1,-1,this.ID_SCENARIO_PREFIX,t,this.styles,this.isPrimaryBar?Y.Top:Y.Bottom,Y.Center)}}class Q{constructor(t,i,s,h,e,n,r,o,a){this.ID_DATA_PREFIX="DATA",this.ID_SCENARIO_PREFIX="SCENARIO",this.FALLBACK_COLOUR="#000000",this.scenarioLabel=null,this._defaultMarkerPattern=null,this.dimensions={barLength:0,xPos:0,yPos:0,labelXPos: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,a),this.scenarioLabel=this.getScenarioLabel(o,e,a))}createMarkerDimensions(t,i,s){return t.getScaledUnit()<0?{clipped:!1,labelXPos:0,barLength:Math.abs(t.getScaledUnit()),xPos:this.position.getMarkerPositionX()-Math.abs(t.getScaledUnit()),yPos:this.position.getMarkerPositionY(i,s),scenarioLabelXPos:this.position.getMarkerPositionX()-Math.abs(t.getScaledUnit()),scenarioLabelYPos:this.position.getMarkerPositionY(i,s)+this.position.getMarkerScenarioLabelPositionOffsetY(s)}:{clipped:!1,labelXPos:0,barLength:t.getScaledUnit(),xPos:this.position.getMarkerPositionX()+t.getScaledUnit(),yPos:this.position.getMarkerPositionY(i,s),scenarioLabelXPos:this.position.getMarkerPositionX()+t.getScaledUnit(),scenarioLabelYPos:this.position.getMarkerPositionY(i,s)+this.position.getMarkerScenarioLabelPositionOffsetY(s)}}getScenarioLabel(t,i,s){return null==this.markerGroup?null:new q(this.markerGroup,-1,-1,this.ID_DATA_PREFIX,t,i,s?Y.Bottom:Y.Top,Y.Center)}convertToSVGStyle(t,i){return null==t&&(t=[]),t.color=t[i]||this.FALLBACK_COLOUR,Object.assign({},t)}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).cx(this.dimensions.xPos),this.markerGroup.polygon(this.markerPattern.foreground).fill(i).stroke(t).cy(this.dimensions.yPos).cx(this.dimensions.xPos),null==this.scenarioLabel||this.scenarioLabel.isEmpty()||this.scenarioLabel.setPos(this.dimensions.scenarioLabelXPos,this.dimensions.scenarioLabelYPos).draw(),this}isEmpty(){return!1===this.hasData}getScenario(){var t;return null===(t=this.scenario)||void 0===t?void 0:t.slice(0,2)}}class tt{constructor(t,i,s,h,e){if(this.ID_DATA_PREFIX="DATA",this.ID_SCENARIO_PREFIX="SCENARIO",this.ID_RECT="RECT",this.FALLBACK_COLOUR="#000000",this.label=null,this.dimensions={barLength:0,xPos:0,yPos:0,labelXPos: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())&&null!=s.value){this.hasData=!0,this.dimensions=this.createDimensions(t,s,h);let i=Y.Left;s.value<0&&(i=Y.Right),this.label=new q(this.scenarioGroup,this.dimensions.labelXPos,this.dimensions.yPos,this.ID_DATA_PREFIX,s.value,this.styles,Y.Center,i),this.label.setToRelativeVarianceLabel()}}updateLabelGroup(t){var i;return this.isEmpty()||null==t||null===(i=this.label)||void 0===i||i.updateGroup(t),this}draw(){var t;if(this.isEmpty())return this;if(null==this.dimensions)return this;const i=this.styles.varianceStyles.getSVGStyle(this.dataPoint.getVarianceStyle()),s=i.stroke;let h=i.fill;const e=this.barStyles[this.dataPoint.getScenario()];if(null!=e&&e.fillpattern){const t=this.styles.pattern.get(e.fillpattern);null!=t&&null!=t.pattern&&(h=t.pattern)}this.drawNeedleHead(h,s),this.barGroup.rect(this.dimensions.barLength,this.position.getNeedleWidth()).fill(h).stroke(s).cy(this.dimensions.yPos).x(this.dimensions.xPos),null===(t=this.label)||void 0===t||t.draw()}createDimensions(t,i,s){return i.getScaledPercentUnit()<0?{barLength:Math.abs(i.getScaledPercentUnit()),xPos:t.getBarPositionX()+i.getScaledPercentUnit(),yPos:t.getBarCenterPositionY(s),labelXPos:this.position.getLabelPositionX(i.getScaledPercentUnit()-this.position.getNeedleWidth()),clipped:i.isClipped(),scenarioLabelXPos:0,scenarioLabelYPos:0}:{barLength:i.getScaledPercentUnit(),xPos:t.getBarPositionX(),yPos:t.getBarCenterPositionY(s),labelXPos:this.position.getLabelPositionX(i.getScaledPercentUnit()+this.position.getNeedleWidth()),clipped:i.isClipped(),scenarioLabelXPos:0,scenarioLabelYPos:0}}drawNeedleHead(t,i){if(null===this.dimensions)return;const s=this.styles.varianceStyles.needleHeadColour,h=this.styles.varianceStyles.needleHeadColour;if(this.dimensions.clipped){let s="13,0 4,-5 4,5 13,0 8,0 0,-5 0,5 8,0";null!=this.dataPoint.value&&this.dataPoint.value<0&&(s="0,0 9,-5 9,5 0,0 5,0 13,-5 13,5 5,0"),this.barGroup.polygon(s).fill(t).cx(this.getHeadXPosition()).cy(this.dimensions.yPos).fill(t).stroke(i)}else this.barGroup.rect(2*this.position.getNeedleWidth(),2*this.position.getNeedleWidth()).cx(this.getHeadXPosition()).cy(this.dimensions.yPos).fill(s).stroke(h)}isEmpty(){return!1===this.hasData||Number.isNaN(this.dataPoint.value)}getHeadXPosition(){let t=this.dimensions.xPos;return null!=this.dataPoint.value&&this.dataPoint.value>0&&(t+=this.dimensions.barLength),t}}class it{constructor(t,i,s,h,e,n,r,o,a,l,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=a,this.group=c,this.barGroup=c.group().id(`stacked_bar_${h}_seg_${r}`),!0!==(null==s?void 0:s.isEmpty())&&null!=s.value&&(this.hasData=!0)}draw(t={percent:2,decimal:1},i=new x){if(!this.hasData||null==this.dataPoint.value)return;const s=this.dataPoint.value,h=this.dataPoint.pixelPerUnit,e=this.position.getBarPositionX(),n=this.position.getBarWidth();let a,l;if(this.stackMode===P.RELATIVE){const t=h;a=(0!==this.totalValue?Math.abs(s)/Math.abs(this.totalValue):0)*t,l=e+this.baselineValue/Math.abs(this.totalValue)*t}else a=Math.abs(s*h),l=e+this.baselineValue*h;const c=this.position.getBarPositionY(this.index,!0),u=r(this.segmentIndex),d={color:u},f={color:o(this.segmentIndex),width:.5};if(this.barGroup.rect(Math.max(a,.5),n).fill(d).stroke(f).cy(c).x(l),a>=30){const h=l+a/2;if(this.stackMode===P.RELATIVE||this.stackMode===P.ABSOLUTE_RELATIVE){const i=(0!==this.totalValue?s/this.totalValue*100:0).toFixed(t.percent)+"%";new q(this.group,h,c,"STACK_SEG",i,this.styles,Y.Center,Y.Center).setSegmentFill(u).draw()}else new q(this.group,h,c,"STACK_SEG",s,this.styles,Y.Center,Y.Center).setSegmentFill(u).draw(t,i)}}drawTotalLabel(t={percent:2,decimal:1},i=new x){if(this.stackMode===P.RELATIVE)return;const s=this.position.getBarPositionX()+this.totalValue*this.dataPoint.pixelPerUnit+this.position.spacings.labelToBar,h=this.position.getBarPositionY(this.index,!0);new q(this.group,s,h,"STACK_TOTAL",this.totalValue,this.styles,Y.Center,Y.Left).draw(t,i)}}class st{constructor(t,i,s,h,e){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}isLastDataPoint(t){return this.elementCnt-1===t}isFirsttDataPoint(t){return 0===t}createPrimaryBar(t,i){var s,h,e,n;const r=null===(h=null===(s=this.svgGroups)||void 0===s?void 0:s.scenario1)||void 0===h?void 0:h.group().id(""+i),o=null===(n=null===(e=this.svgGroups)||void 0===e?void 0:e.scenario1Label)||void 0===n?void 0:n.group().id(""+i);let a=null;return this.isLastDataPoint(i)&&(a=`${this.i18n.get(t.scenario)||t.scenario}`),new J(this.position,this.styles,t,i,!0,r,a,this.overflowConfig).updateLabelGroup(o)}createVarianceBar(t,i){var s,h,e,n;const r=null===(h=null===(s=this.svgGroups)||void 0===s?void 0:s.scenario1)||void 0===h?void 0:h.group().id(""+i),o=null===(n=null===(e=this.svgGroups)||void 0===e?void 0:e.scenario1Label)||void 0===n?void 0:n.group().id(""+i);let a=null;return this.isLastDataPoint(i)&&(a=`${this.i18n.get(t.scenario)||t.scenario}`),new J(this.position,this.styles,t,i,!0,r,a,this.overflowConfig).updateLabelGroup(o).setAsVariance()}createRelativeVarianceBar(t,i){var s,h,e,n;const r=null===(h=null===(s=this.svgGroups)||void 0===s?void 0:s.scenario1)||void 0===h?void 0:h.group().id(""+i),o=null===(n=null===(e=this.svgGroups)||void 0===e?void 0:e.scenario1Label)||void 0===n?void 0:n.group().id(""+i);return new tt(this.position,this.styles,t,i,r).updateLabelGroup(o)}createSecondaryBar(t,i){var s,h;const e=null===(h=null===(s=this.svgGroups)||void 0===s?void 0:s.scenario2)||void 0===h?void 0:h.group().id(""+i);let n=null;return this.isFirsttDataPoint(i)&&(n=`${this.i18n.get(t.scenario)||t.scenario}`),new J(this.position,this.styles,t,i,!1,e,n,this.overflowConfig)}createPrimaryMarker(t,i){var s,h;const e=null===(h=null===(s=this.svgGroups)||void 0===s?void 0:s.scenario3)||void 0===h?void 0:h.group().id(""+i),n=this.styles.pattern.get("marker-down")||{foreground:"0,0 1,0 1,1 0,1",background:"0,0 1,0 1,1 0,1",bgOffset:0};let r=null;return this.isFirstDataPoint(i)&&(r=`${this.i18n.get(t.scenario)||t.scenario}`),new Q(this.position,e,n,t.scenario,this.styles,t,i,r,!0)}createSecondaryMarker(t,i){var s,h;const e=null===(h=null===(s=this.svgGroups)||void 0===s?void 0:s.scenario4)||void 0===h?void 0:h.group().id(""+i),n=this.styles.pattern.get("marker-up")||{foreground:"0,0 1,0 1,1 0,1",background:"0,0 1,0 1,1 0,1",bgOffset:0};let r=null;return this.isLastDataPoint(i)&&(r=`${this.i18n.get(t.scenario)||t.scenario}`),new Q(this.position,e,n,t.scenario,this.styles,t,i,r,!1)}isFirstDataPoint(t){return 0===t}}class ht{constructor(t,i,s){this.dataModel=[],this.variancesDataModel=[],this.title="",this.smallestDataPointValue=new H(0,N.AC1,1,N.NEU),this.highestDataPointValue=new H(0,N.AC1,1,N.NEU),this.smallestVarianceDataPointValue=new H(0,N.AC1,1,N.NEU),this.highestVarianceDataPointValue=new H(0,N.AC1,1,N.NEU),this.pixelPerUnit=1,this.pixelPerPercentage=1,this.hideCategories=!1,this.axisScenario=N.AC1,this.CSS_CATEGORIES="categories",this.preparedDataSet=[],this.state=D.DIRTY,this.titleLength=0,this.leftSideOffsetForHorizontalSync=0,this.limit=0,this.measureScale=new x,this.measureUnit="",this.dataFormatDigits={percent:2,decimal:1},this.stackConfig=null,this.overflowConfig=null,this.initSQLFunctions(),this.ruleSet=t||new _,this.i18n=this.createI18n(new Map),this.styles=s,this.setConfig(i),this.position=this.createElementPosition()}updatePosition(){this.position=this.createElementPosition()}createElementPosition(){this.titleLength=this.calculateTitleLength(0);let t=this.calculateLeftSideWidth(this.getVarianceType());const i=this.calculateCategoryWidth();return this.titleLength>t&&(t=this.titleLength),new O(new E(this.styles.padding),this.styles.scaleFactors,this.styles.fontStyles.size,this.dataModel.length,this.leftSideOffsetForHorizontalSync,this.titleLength,t,i)}initSQLFunctions(){A.fn.transformOperator=function(t){return"-"===t?-1:1}}setStyles(t){this.styles=t}setConfig(t){var i;this.state=D.DIRTY,this.sortScenariosbyVisualisationRules(t),this.hideCategories=t.hideCategories||!1,this.limit=t.limit,this.pixelPerUnit=t.pixelPerUnit||1,this.pixelPerPercentage=t.pixelPerPercentage||100,this.setData([...t.data],t.filter),this.dataModel=this.populateModel(t.scenarios,t.level,t.sortOrder),t.stackConfig&&t.stackConfig.by!==m.SCENARIO&&this.populateDimensionStackSegments(t.scenarios,t.stackConfig,t.level),this.variancesDataModel=this.populateVarianceModel(t.variances,this.dataModel),this.title=t.title||k.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.measureScale=t.measureScale,this.measureUnit=t.measureUnit,this.dataFormatDigits=t.dataFormatDigits,this.stackConfig=t.stackConfig,this.updatePosition()}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)}createI18n(t){this.state=D.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])}setData(t,i){if(null!=t)if(this.state=D.DIRTY,this.preparedDataSet.length=0,null!=i&&i.length>0)try{this.preparedDataSet=A(`SELECT * FROM ? WHERE ${i}`,[t])}catch(s){console.error("StructureChart: filter query failed, using unfiltered data",i,s),this.preparedDataSet=t}else this.preparedDataSet=t}getAllocatedCanvasWidth(){const t=this.position.getAxisPositionX(),i=this.calculateRightSideWidth(this.getVarianceType());let s=t+i+ +this.styles.padding.left+this.styles.padding.right;return i<this.titleLength/2&&(s+=this.titleLength/2),t<this.titleLength/2&&(s+=this.titleLength/2),s}getAllocatedCanvasHeight(){return(this.dataModel.length+1)*this.position.spacings.categoryWidth+this.styles.padding.top+this.styles.padding.bottom}patternToString(){return"<svg></svg>"}toString(){const t=new e;return this.draw(t),t.id("drawCanvas"),t.width(this.getAllocatedCanvasWidth()),t.height(this.getAllocatedCanvasHeight()),t.svg()}draw(t){this.cleanSVGforRedraw(t),this.state===D.DIRTY&&(this.state=D.UP_TO_DATE),this.variancesDataModel&&this.variancesDataModel.length>0?(this.drawVarianceScenario(this.variancesDataModel,t),this.drawAxisAndLabels(this.variancesDataModel,t)):null!=this.stackConfig?(this.drawStackedScenarios(this.dataModel,t),this.drawStackedHeaders(this.dataModel,t),this.drawAxisAndLabels(this.dataModel,t)):(this.drawScenarios(this.dataModel,t),this.drawAxisAndLabels(this.dataModel,t))}setPattern(t,i){this.styles.pattern.set(t,i)}calculateTitleLength(t){const i=T(this.title.length>7?this.title:"_______",{font:this.styles.fontStyles.font,fontSize:this.styles.fontStyles.size+"px"}).width;return i<t?t:i/2}getFooter(){return 1===this.measureScale.value&&""===this.measureUnit?" ":k.translateScenarioLabel("in",this.i18n)+" "+this.measureScale.prefix+this.measureUnit}setAxisScenario(t){let i=N.AC1;if(null!=t&&t.length>0){const s=new C(t.toString());s.isValid&&(i=s.delta)}return null===i&&(i=N.AC1),i}populateModel(t,i,s){var h;if(0===(null===(h=this.preparedDataSet)||void 0===h?void 0:h.length))return[];const e=[],n=this.createOrderStr(i,s),r=this.createSelectString(i,s),o=this.createGroupByStr(i,s),a=A(`SELECT ${r} ${t.length>0?","+t.map((t=>`SUM(${t} * transformOperator(operation)) as ${t}, COUNT(ISNULL(${t})) as ${t}_cnt`)).join(","):""} \n FROM ?\n GROUP BY ${o}\n ORDER BY ${n}`,[this.preparedDataSet]);return this.detectNaNCells(t,a),this.createDataRows(a,e,t),this.crateRESTRow(a,t,e),e}detectNaNCells(t,i){i.forEach((i=>(t.forEach((t=>{const s=new C(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)))}crateRESTRow(t,i,s){if(0===this.limit||this.limit>t.length)return;const h=[],e=t.slice(this.limit,t.length);this.createDataRows(e,h,i);const n=h.reduce((function(t,s){return{id:t.id,category:t.category,type:t.type,scenario1:new H(t.scenario1.value+s.scenario1.value,i[0],t.scenario1.pixelPerUnit,N.NEU),scenario2:new H(t.scenario2.value+s.scenario2.value,i[1],t.scenario2.pixelPerUnit,N.NEU),scenario3:new H(t.scenario3.value+s.scenario3.value,i[2],t.scenario3.pixelPerUnit,N.NEU),scenario4:new H(t.scenario4.value+s.scenario4.value,i[3],t.scenario4.pixelPerUnit,N.NEU)}}),{id:9999,category:"REST",type:B.NONE,scenario1:new H(0,i[0],this.pixelPerUnit,N.NEU),scenario2:new H(0,i[1],this.pixelPerUnit,N.NEU),scenario3:new H(0,i[2],this.pixelPerUnit,N.NEU),scenario4:new H(0,i[3],this.pixelPerUnit,N.NEU)});s.push(n)}createDataRows(t,i,s){let h=t;this.limit>0&&(h=t.slice(0,this.limit)),h.forEach(((t,h)=>{i.push({id:h,category:t.category,type:B.NONE,scenario1:new H(t[s[0]],s[0],this.pixelPerUnit,N.NEU),scenario2:new H(t[s[1]],s[1],this.pixelPerUnit,N.NEU),scenario3:new H(t[s[2]],s[2],this.pixelPerUnit,N.NEU),scenario4:new H(t[s[3]],s[3],this.pixelPerUnit,N.NEU)})}))}createOrderStr(t,i){let s=`${t.toLowerCase()}`;return i.hierarchy.length>=1&&(s=`${i.hierarchy.toString()} ${null==i?void 0:i.direction}`),s}createSelectString(t,i){return t===b.CATEGORY&&i.hierarchy.includes(S.CATEGORYINDEX)?`${S.CATEGORYINDEX}, ${b.CATEGORY} as category`:t===b.ROWGROUP&&i.hierarchy.includes(S.ROWGROUPINDEX)?`${S.ROWGROUPINDEX}, ${b.ROWGROUP} as category`:t===b.SUBCATEGORY&&i.hierarchy.includes(S.SUBCATEGORYINDEX)?`${S.SUBCATEGORYINDEX}, ${b.SUBCATEGORY} as category`:`${t.toString()} as category`}createGroupByStr(t,i){return t===b.CATEGORY&&i.hierarchy.includes(S.CATEGORYINDEX)?`${S.CATEGORYINDEX}, ${b.CATEGORY}`:t===b.ROWGROUP&&i.hierarchy.includes(S.ROWGROUPINDEX)?`${S.ROWGROUPINDEX}, ${b.ROWGROUP}`:t===b.SUBCATEGORY&&i.hierarchy.includes(S.SUBCATEGORYINDEX)?`${S.SUBCATEGORYINDEX}, ${b.SUBCATEGORY}`:`${t.toString()}`}calculateCategoryWidth(){if(this.hideCategories)return 5;let t=0;for(const i of this.dataModel){const s=T(i.category,{font:this.styles.fontStyles.font,fontSize:this.styles.fontStyles.size+"px"});s.width>t&&(t=s.width)}return 1.1125*t}findSmallestDataPointValue(t){let i=new H(0,"default",this.pixelPerUnit,null);for(const s of t)for(const t of[s.scenario1,s.scenario2,s.scenario3,s.scenario4])null!=t&&null!=i.value&&t.value<i.value&&(i=t);return i}findHighestDataPointValue(t){let i=new H(0,"default",this.pixelPerUnit,null);for(const s of t)for(const t of[s.scenario1,s.scenario2,s.scenario3,s.scenario4])null!=t&&null!=i.value&&t.value>i.value&&(i=t);return i}populateVarianceModel(t,i){const s=[];if(0===t.length)return s;let h=null;null!=i&&i.length>0&&(h=i[0]);for(const e in t){const n=new C(t[e]);if(n.isValid){const t=this.mapScenarios(n,h),e=n.direction;let r=this.pixelPerUnit;"dr"===n.type&&(r=this.pixelPerPercentage);for(const h in i)s.push({id:Number(h),category:i[h].category,type:"dr"===n.type?B.RELATIVE:B.ABSOLUTE,scenario1:new H(this.calculateVariance(n,i[h],t),n.base,r,e),scenario2:new H(null,null,null,null),scenario3:new H(null,null,null,null),scenario4:new H(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:t.type===B.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}calculateTextBoxWidth(t){return T(k.number(t,"decimal",1,0),{font:this.styles.fontStyles.font,fontSize:this.styles.fontStyles.size+"px"}).width}calculatePercentageTextBoxWidth(t){let i=0;return t>=0&&(i+=T("+",{font:this.styles.fontStyles.font,fontSize:this.styles.fontStyles.size+"px"}).width),i+=T(" %",{font:this.styles.fontStyles.font,fontSize:this.styles.fontStyles.size+"px"}).width,T(k.number(t,"decimal",1,1),{font:this.styles.fontStyles.font,fontSize:this.styles.fontStyles.size+"px"}).width+i+i}cleanSVGforRedraw(t){t.clear()}drawAxisAndLabels(t,i){const s=i.group().id("AxisAndDateLables");let h=!1;this.hideCategories||t.forEach(((t,i)=>{t.type===B.RELATIVE&&(h=!0);let e=Y.Right,n=!0;t.scenario1.value<0&&(e=Y.Left,n=!1),new q(s,this.position.getCategoryPositionX(n),this.position.getBarCenterPositionY(i),"",t.category,this.styles,Y.Center,e).draw()})),new Z({scenarioType:this.axisScenario,labelText:this.title,isRelative:h},this.position,s,this.styles).draw()}drawScenarios(t,i){const s=i.group().id("Scenarios"),h=new st(this.position,s,this.styles,t.length,this.i18n);h.setOverflowConfig(this.overflowConfig),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()}))}drawVarianceScenario(t,i){const s=i.group().id("Scenarios"),h=new st(this.position,s,this.styles,t.length,this.i18n);return h.setOverflowConfig(this.overflowConfig),t.forEach(((t,i)=>{t.type===B.RELATIVE?h.createRelativeVarianceBar(t.scenario1,i).draw():h.createVarianceBar(t.scenario1,i).draw(this.dataFormatDigits,this.measureScale)})),s}drawStackedScenarios(t,i){if(!this.stackConfig)return;const s=i.group().id("StackedScenarios"),h=this.stackConfig.by===m.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=>a(t.scenario)))):new Set).size>1){const t=new Map;for(const i of n){const s=a(i.scenario);t.has(s)||t.set(s,[]),t.get(s).push(i)}const h=[];for(const i of l)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,a=null;t.segments.forEach((t=>{const h=new it(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),a=h})),a&&a.drawTotalLabel(this.dataFormatDigits,this.measureScale)}))}else{let e=n;!h&&t.stackSegments&&t.stackSegments.length>0&&(e=t.stackSegments.map((t=>({value:t.value,scenario:t.label,dataPoint:t.dataPoint})))),"asc"===this.stackConfig.order?e.sort(((t,i)=>t.value-i.value)):"desc"===this.stackConfig.order&&e.sort(((t,i)=>i.value-t.value));const r=e.reduce(((t,i)=>t+Math.abs(i.value)),0);let o=0,a=null;e.forEach(((t,e)=>{const n=new it(this.position,this.styles,t.dataPoint,i,o,t.scenario,e,this.stackConfig.mode,r,h,s);n.draw(this.dataFormatDigits,this.measureScale),o+=Math.abs(t.value),a=n})),a&&a.drawTotalLabel(this.dataFormatDigits,this.measureScale)}}))}drawStackedHeaders(t,i){if(!this.stackConfig||0===t.length)return;const s=this.stackConfig.by===m.SCENARIO,h=i.group().id("StackedHeaders"),e=t[0];if(!s){const t=e.stackSegments;if(!t||0===t.length)return;const i=[...t];"asc"===this.stackConfig.order?i.sort(((t,i)=>t.value-i.value)):"desc"===this.stackConfig.order&&i.sort(((t,i)=>i.value-t.value));const s=i.reduce(((t,i)=>t+Math.abs(i.value)),0),n=this.position.getBarPositionX(),r=this.position.getAxisTitlePositionY();let o=0;return void i.forEach((t=>{const i=t.dataPoint.pixelPerUnit;let e;e=this.stackConfig.mode===P.RELATIVE?(0!==s?Math.abs(t.value)/s:0)*i:Math.abs(t.value*i);const a=n+o+e/2,l=this.i18n.get(t.label)||t.label;new q(h,a,r,"STACK_HEADER",l,this.styles,Y.Bottom,Y.Center).draw(),o+=e}))}const n=["scenario1","scenario2","scenario3","scenario4"],r=[];for(const t of n){const i=e[t];i&&!i.isEmpty()&&null!=i.value&&r.push({value:i.value,scenario:i.scenario,dataPoint:i})}if(0===r.length)return;const o=new Set(r.map((t=>a(t.scenario)))),c=this.position.getBarPositionX(),u=this.position.getAxisTitlePositionY();if(o.size>1){const t=new Map;for(const i of r){const s=a(i.scenario);t.has(s)||t.set(s,[]),t.get(s).push(i)}const i=[];for(const s of l)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),s=t.segments[0].dataPoint.pixelPerUnit,e=c+(this.stackConfig.mode===P.RELATIVE?s:i*s)/2,n=this.i18n.get(t.prefix+"1")||t.prefix.toUpperCase();new q(h,e,u,"STACK_HEADER",n,this.styles,Y.Bottom,Y.Center).draw()}))}else{"asc"===this.stackConfig.order?r.sort(((t,i)=>t.value-i.value)):"desc"===this.stackConfig.order&&r.sort(((t,i)=>i.value-t.value));const t=r.reduce(((t,i)=>t+Math.abs(i.value)),0);let i=0;r.forEach((s=>{const e=s.dataPoint.pixelPerUnit;let n;n=this.stackConfig.mode===P.RELATIVE?(0!==t?Math.abs(s.value)/t:0)*e:Math.abs(s.value*e);const r=c+i+n/2,o=this.i18n.get(s.scenario)||s.scenario;new q(h,r,u,"STACK_HEADER",o,this.styles,Y.Bottom,Y.Center).draw(),i+=n}))}}getVarianceType(){return this.variancesDataModel.length>0?this.variancesDataModel[0].type:B.NONE}calculateLeftSideWidth(t){var i,s,h;let e=0;const n=this.styles.fontStyles.size*this.styles.scaleFactors.labelToBar;if(B.NONE===t&&null!=(null===(i=this.smallestDataPointValue)||void 0===i?void 0:i.value)&&this.smallestDataPointValue.value<0){const t=this.calculateTextBoxWidth(this.smallestDataPointValue.value);e=Math.abs(this.smallestDataPointValue.getScaledUnit())+n+t}else if(B.RELATIVE===t&&null!=(null===(s=this.smallestVarianceDataPointValue)||void 0===s?void 0:s.value)&&this.smallestVarianceDataPointValue.value<0){const t=this.calculatePercentageTextBoxWidth(this.smallestVarianceDataPointValue.value);e=Math.abs(this.smallestVarianceDataPointValue.getScaledPercentUnit())+n+t}else if(B.ABSOLUTE===t&&null!=(null===(h=this.smallestVarianceDataPointValue)||void 0===h?void 0:h.value)&&this.smallestVarianceDataPointValue.value<0){const t=this.calculateTextBoxWidth(this.smallestVarianceDataPointValue.value);e=Math.abs(this.smallestVarianceDataPointValue.getScaledUnit())+n+t}return e<=this.titleLength?this.titleLength:e}calculateRightSideWidth(t){var i,s,h;let e=0;const n=this.styles.fontStyles.size*this.styles.scaleFactors.labelToBar;if(B.NONE===t&&null!=(null===(i=this.highestDataPointValue)||void 0===i?void 0:i.value)&&this.highestDataPointValue.value>=0){const t=this.calculateTextBoxWidth(this.highestDataPointValue.value);e=Math.abs(this.highestDataPointValue.getScaledUnit())+n+t}else if(B.RELATIVE===t&&null!=(null===(s=this.highestVarianceDataPointValue)||void 0===s?void 0:s.value)&&this.highestVarianceDataPointValue.value>=0){const t=this.calculatePercentageTextBoxWidth(this.highestVarianceDataPointValue.value);e=Math.abs(this.highestVarianceDataPointValue.getScaledPercentUnit())+n+t}else if(B.ABSOLUTE===t&&null!=(null===(h=this.highestVarianceDataPointValue)||void 0===h?void 0:h.value)&&this.highestVarianceDataPointValue.value>=0){const t=this.calculateTextBoxWidth(this.highestVarianceDataPointValue.value);e=Math.abs(this.highestVarianceDataPointValue.getScaledUnit())+n+t}return e<=this.titleLength?this.titleLength:e}populateDimensionStackSegments(t,i,s){var h;if(0===(null===(h=this.preparedDataSet)||void 0===h?void 0:h.length)||0===t.length)return;const e={[m.CATEGORY]:"category",[m.SUBCATEGORY]:"subCategory",[m.ROWGROUP]:"rowGroup"}[i.by];if(!e)return;const n=s.toString(),r=t[0],o=A(`SELECT [${n}] as displayGroup, [${e}] as stackLabel, SUM([${r}] * transformOperator(operation)) as stackValue FROM ? GROUP BY [${n}], [${e}]`,[this.preparedDataSet]),a=new Map;for(const t of o){const i=t.displayGroup;a.has(i)||a.set(i,[]),null!=t.stackValue&&null!=t.stackLabel&&a.get(i).push({label:t.stackLabel,value:t.stackValue})}for(const t of this.dataModel){const i=a.get(t.category);t.stackSegments=i&&i.length>0?i.map((t=>({label:t.label,value:t.value,dataPoint:new H(t.value,r,this.pixelPerUnit,N.NEU)}))):[]}}hasNoData(){return 0===this.dataModel.length}setAvailableWidth(t){if(this.pixelPerUnit<=0||t<=0)this.overflowConfig=null;else if(null==this.stackConfig){if(this.overflowConfig=this.calculateOverflowConfig(t),this.overflowConfig){const{cutWidth:t,overdriveZoneWidth:i,breakGap:s}=this.overflowConfig,h=t+i+s;this.variancesDataModel&&this.variancesDataModel.length>0?(this.highestVarianceDataPointValue.getScaledUnit()>t&&(this.highestVarianceDataPointValue=new H(h,this.highestVarianceDataPointValue.scenario,1,this.highestVarianceDataPointValue.variance)),null!=this.smallestVarianceDataPointValue.value&&Math.abs(this.smallestVarianceDataPointValue.getScaledUnit())>t&&(this.smallestVarianceDataPointValue=new H(-h,this.smallestVarianceDataPointValue.scenario,1,this.smallestVarianceDataPointValue.variance))):(this.highestDataPointValue.getScaledUnit()>t&&(this.highestDataPointValue=new H(h,this.highestDataPointValue.scenario,1,this.highestDataPointValue.variance)),null!=this.smallestDataPointValue.value&&Math.abs(this.smallestDataPointValue.getScaledUnit())>t&&(this.smallestDataPointValue=new H(-h,this.smallestDataPointValue.scenario,1,this.smallestDataPointValue.variance))),this.updatePosition()}}else this.overflowConfig=null}calculateOverflowConfig(t){const i=this.variancesDataModel&&this.variancesDataModel.length>0;if(this.getVarianceType()===B.RELATIVE)return null;const s=i?this.highestVarianceDataPointValue:this.highestDataPointValue,h=i?this.smallestVarianceDataPointValue:this.smallestDataPointValue,e=s.getScaledUnit(),n=null!=h.value?Math.abs(h.getScaledUnit()):0,r=Math.max(e,n);if(r<=0)return null;const o=this.styles.fontStyles.size,a=o*this.styles.scaleFactors.labelToBar,l=1.5*o,c=.3*o,u=.8*o,d=t-this.position.getAxisPositionX()-this.styles.padding.left-this.styles.padding.right-a-this.calculateTextBoxWidth(s.value||0)-l-c;if(d<=u)return null;const f=d-u;return r<=f?null:{cutWidth:d,overdriveZoneWidth:l,breakGap:c,maxOverflow:r-f,scenarioCutOffset:u}}}const et=class{constructor(i){t(this,i),this.data=[],this.chartTitle="",this.scenarios=[],this.variances=[],this.hideCategories=!1,this.pixelPerUnit=10,this.pixelPerPercentage=50,this.limit=0,this.i18n=new Map,this.order={hierarchy:[],direction:y.ASC},this.level=b.CATEGORY,this.filter="",this.measureScale="_",this.measureUnit="",this.showMeasureScale=!0,this.dataFormatDigits={percent:2,decimal:1},this.stackConfig=null,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();this.chart=new ht(new _,i,s),this.chart.setI18n(this.i18n),this.autoFitScaling(i,s),this.chart.setAvailableWidth((null===(t=this.parentDimensions)||void 0===t?void 0:t.width)||0),this.pattern=new W(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.setConfig(i),this.autoFitScaling(i,s),this.chart.setAvailableWidth((null===(t=this.parentDimensions)||void 0===t?void 0:t.width)||0),this.pattern=new W(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.width;if(!h||h<=0)return t.pixelPerUnit=1,this.chart=new ht(new _,t,i),void this.chart.setI18n(this.i18n);t.pixelPerUnit=1,this.chart=new ht(new _,t,i),this.chart.setI18n(this.i18n),this.chart.toString();const e=this.chart.getAllocatedCanvasWidth();e<=0||(t.pixelPerUnit=.9*h/e,this.chart=new ht(new _,t,i),this.chart.setI18n(this.i18n))}async componentWillRender(){}componentDidLoad(){}componentDidUpdate(){}prepareConfig(){return new F(new z,new w(new $),new $,new M,this.data).adapt({data:this.data,scenarios:this.scenarios,variances:this.variances,title:this.chartTitle,hideCategories:this.hideCategories,pixelPerUnit:this.pixelPerUnit,pixelPerPercentage:this.pixelPerPercentage,level:this.level,limit:this.limit,sortOrder:this.order,filter:this.filter,measureScale:this.measureScale,measureUnit:this.measureUnit,showMeasureScale:this.showMeasureScale,dataFormatDigits:this.dataFormatDigits,stackConfig:this.stackConfig})}prepareStyle(){return new I(new K,new c,new u(new d),new f(new d),new p).adapt(this.styles)}get element(){return h(this)}};et.style=':host{display:inline-block;position:relative;overflow:hidden}.container{display:flex;flex-direction:row}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}.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-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}.warning{font-size:0.8em;font-style:italic}.footer{margin:0.2em;font-size:0.6em}.footer-hide{margin:0.2em;font-size:0.6em;opacity:0}';export{et as ibcs_chart_structure}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,H as i,g as o}from"./p-JNHhIe7t.js";import{w as r}from"./p-DtdQCMzj.js";import{w as n}from"./p-CYjZRKdI.js";import{w as e}from"./p-BSfqOkN_.js";import{g as a}from"./p-DRikHQE-.js";import{w as f}from"./p-tzFCK9qn.js";import"./p-sqjrku2z.js";import"./p-B4ySv9KQ.js";const l=class{constructor(s){t(this,s),r(this),n(this),this.errors=f(this),this.componentStyle=e(this)}connectedCallback(){this.stores=a(this.element)}getFontStyles(){return this.componentStyle((t=>{var s,i,o,r;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(o=t.global)||void 0===o?void 0:o.fontColor)||"#000000","--bn-font-background":(null===(r=t.global)||void 0===r?void 0:r.fontBackgroundColor)||"#ffffff"}}))}prepareAssetUrl(t){if(null==t||""===t)return"";const s=this.stores.assets.state;return t.startsWith("asset:")?s[t.substring(6)]:s[t]||t}render(){return s(i,{key:"656f301d5fb1a7650f4c7d0cbb3fe1ef15b8ae92",style:this.getFontStyles()},null!=this.source&&""!==this.source?s("img",{src:this.prepareAssetUrl(this.source)}):"")}get element(){return o(this)}};l.style=":host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}";export{l as bn_image}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as s,g as r}from"./p-JNHhIe7t.js";import{w as o}from"./p-CYjZRKdI.js";import{w as a}from"./p-tzFCK9qn.js";const b=class{constructor(e){t(this,e),o(this),this.errors=a(this)}render(){return e(s,{key:"ef4bc925d3e711445f9533e0b1e59a8942700283"},e("slot",{key:"c338dd99289b256bab83240cf923b23fd62b4ef1"}))}get element(){return r(this)}};export{b as bn_template}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,H as i,g as e,d as n}from"./p-JNHhIe7t.js";import{w as a}from"./p-CYjZRKdI.js";import{w as r}from"./p-BSfqOkN_.js";import{w as o}from"./p-tzFCK9qn.js";import{w as d,v as l,a as h,c,d as u,m as p,n as f,j as v,k as b,o as m}from"./p-DtdQCMzj.js";import{I as g,O as y,D as w,e as R,d as _,k as S}from"./p-sqjrku2z.js";import{w as k}from"./p-CRLgp9-v.js";import{a as E}from"./p-DRikHQE-.js";import{a as x,D,b as O}from"./p-B4ySv9KQ.js";import{F as z}from"./p-1jFf17Vj.js";import{I as C,S as j}from"./p-8tsCnxIz.js";import"./p-BFTU3MAI.js";const M=class{constructor(s){t(this,s),a(this),this.errors=o(this),this.componentStyle=r(this)}getFontStyles(){return this.componentStyle((t=>{var s,i,e,n;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(e=t.global)||void 0===e?void 0:e.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}render(){return s(i,{key:"f43978af1c6658c6fa165093c3ada6b5f3b5986d",style:this.getFontStyles()},s("slot",{key:"b9c97432089676fc373b1d5ee59573ef5681a5c5"}))}get element(){return e(this)}};M.style=':host{flex:1;position:relative;overflow:hidden;display:block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}';const F=class{constructor(s){t(this,s),this.pageNumber=null,this.displayPageNumber=!0,a(this),this.errors=o(this),this.componentStyle=r(this)}getFontStyles(){return this.componentStyle((t=>{var s,i,e,n;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(e=t.global)||void 0===e?void 0:e.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}isValidHttpUrl(t){let s;try{s=new URL(t)}catch(t){return!1}return"http:"===s.protocol||"https:"===s.protocol}prepareAssetUrl(t){return this.isValidHttpUrl(t)?t:`./assets/${t}.png`}render(){return s(i,{key:"c445ca8c8abde56b46564932a6fcd079aa1e640d",id:this.displayPageNumber||this.text||this.code?"container-page-footer":"container",style:this.getFontStyles()},s("div",{key:"2e5829597d228c78acbbbf130bfc440092456cb4",id:"footer-text"},null!=this.text?s("span",{class:"note"},this.text):""),s("div",{key:"a2c98bf85fc41fa0aebc35fded0528cd8ba4948f",id:"code"},null!=this.code?s("img",{class:"image",src:n(`${this.prepareAssetUrl(this.code)}`)}):""),s("div",{key:"e879c6ed16996d8b505d64426e2253f3057863f5",id:"page-number"},this.displayPageNumber?s("span",{class:"page"},this.pageNumber):""))}static get assetsDirs(){return["assets"]}get element(){return e(this)}};F.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-footer){box-sizing:border-box;-webkit-box-sizing:border-box;border-top:0.1em solid #ddd}div#footer-text{font-size:0.6em;display:inline}div#code{flex:1;display:inline;text-align:right;padding-right:1em}div#page-number{font-size:0.6em;display:inline}.image{z-index:2;background-color:transparent;border:transparent;height:1.2em;width:auto}';const N=class{constructor(s){t(this,s),this.businessUnit="",this.order="category",this.orderDirection="asc",this.dateFormat="none",this.dateLink="none",d(this),a(this),this.t=k(this).t,this.errors=o(this),this.componentStyle=r(this)}validateScenario(t){const s="ERR_scenarios",i=l(t);i.length>0?this.errors.addOrReplace({id:s,type:"warning",message:"scenarios: invalid value(s) '"+(null==i?void 0:i.toString())+"' are not supported."}):this.errors.remove(s)}validateVariances(t){const s="ERR_variances",i=h(t);i.length>0?this.errors.addOrReplace({id:s,type:"warning",message:"variances: invalid value(s) '"+(null==i?void 0:i.toString())+"' are not supported."}):this.errors.remove(s)}validateOrder(t){const s=c(t),i="ERR_order";s.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"order: invalid value(s) '"+(null==s?void 0:s.toString())+"' are not supported."}):this.errors.remove(i)}validateOrderDirection(t){const s="ERR_orderDirection";u(t)?this.errors.remove(s):this.errors.addOrReplace({id:s,type:"warning",message:"orderDirection: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}validateMeasures(t){const s="ERR_measures",i=p(t);i.length>0?this.errors.addOrReplace({id:s,type:"warning",message:"measures: invalid value(s) '"+(null==i?void 0:i.toString())+'\' are not supported. Valid format example: [{"name": "Bruttoumsatz", "unit": "mEUR"}]'}):this.errors.remove(s)}validateDateStart(t){const s="ERR_dateStart";f(t)||v(t)?this.errors.remove(s):this.errors.addOrReplace({id:s,type:"warning",message:"dateStart: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}validateDateEnd(t){const s="ERR_dateEnd";f(t)||v(t)?this.errors.remove(s):this.errors.addOrReplace({id:s,type:"warning",message:"dateStart: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}validateDateFormat(t){const s="ERR_dateFormat";b(t)||v(t)?this.errors.remove(s):this.errors.addOrReplace({id:s,type:"warning",message:"dateFormat: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}validateDateLink(t){const s="ERR_dateLink";m(t)||v(t)?this.errors.remove(s):this.errors.addOrReplace({id:s,type:"warning",message:"dateLink: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}componentWillLoad(){this.validateScenario(this.scenarios),this.validateVariances(this.variances),this.validateMeasures(this.measures),this.validateDateStart(this.dateStart),this.validateDateEnd(this.dateEnd),this.validateDateFormat(this.dateFormat),this.validateDateLink(this.dateLink),this.validateOrderDirection(this.orderDirection),this.validateOrder(this.order)}prepareI18n(){const t=E,s=new Map(["SEPERATOR_WS","in","CONNECTOR_WS"].map((t=>[t,this.t(".".concat(t))]))),i=new Map(t.map((t=>[t,this.t("global.".concat(t))])));return new Map([...i.entries(),...s.entries()])}prepareI18nMode(){return g.META}prepareTitleOrder(){var t;return v(this.order)||v(this.orderDirection)?null:{hierarchy:this.order.split(",").map((t=>t.trim())),direction:y[null===(t=this.orderDirection)||void 0===t?void 0:t.toUpperCase()]}}prepareTitleTimePeriod(){var t,s;return v(this.dateStart)&&v(this.dateEnd)||v(this.dateLink)?null:{start:w.fromISO(this.dateStart),end:w.fromISO(this.dateEnd),format:D[null===(t=this.dateFormat)||void 0===t?void 0:t.toUpperCase()],link:x[null===(s=this.dateLink)||void 0===s?void 0:s.toUpperCase()]}}prepareMeasures(){return v(this.measures)?[]:JSON.parse(this.measures)}prepareScenarios(){var t,s,i,e;if(v(this.scenarios)&&v(this.variances))return[];let n=[];return(null===(t=this.scenarios)||void 0===t?void 0:t.trim().length)>0&&(n=n.concat(null===(s=this.scenarios)||void 0===s?void 0:s.split(","))),(null===(i=this.variances)||void 0===i?void 0:i.trim().length)>0&&(n=n.concat(null===(e=this.variances)||void 0===e?void 0:e.split(","))),n.map((t=>t.trim()))}prepareBusinessUnit(){return v(this.businessUnit)||"null"===this.businessUnit?null:this.businessUnit}getFontStyles(){return this.componentStyle((t=>{var s,i,e,n;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(e=t.global)||void 0===e?void 0:e.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}render(){const t=this.getFontStyles();return s(i,{key:"029abd8096c5274f94123da2dc1c1e88e76be922",style:t},s("ibcs-title",{key:"c8b128a6ea36d44d8a0730898b35fa3f944e23ae",businessUnit:this.prepareBusinessUnit(),scenarios:this.prepareScenarios(),measures:this.prepareMeasures(),timeperiod:this.prepareTitleTimePeriod(),order:this.prepareTitleOrder(),i18n:this.prepareI18n(),"i18n-mode":this.prepareI18nMode()}))}get element(){return e(this)}static get watchers(){return{scenarios:[{validateScenario:0}],variances:[{validateVariances:0}],order:[{validateOrder:0}],orderDirection:[{validateOrderDirection:0}],measures:[{validateMeasures:0}],dateStart:[{validateDateStart:0}],dateEnd:[{validateDateEnd:0}],dateFormat:[{validateDateFormat:0}],dateLink:[{validateDateLink:0}]}}};N.style=':host{padding:0.5em;margin-bottom:0.5em;box-sizing:border-box;-webkit-box-sizing:border-box;width:100%;display:block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}';class T{constructor(){}createMeasures(t,s,i){if(this.allMeasuresUseSameUnit(t)){const e=t.length;let n="",a="";for(let r=0;r<e;r++){let o="";r>0&&(o=s.get("SEPERATOR_WS")),e>1&&r===e-1&&(o=s.get("CONNECTOR_WS")),i===g.ALL?(n=(s.get(n)||n)+o+(s.get(t[r].name)||t[r].name),a=s.get(t[r].unit)||t[r].unit):(n=n+o+t[r].name,a=t[r].unit)}return[{name:n,unit:a}]}return t}createDimension(t,s,i,e,n){let a="";return void 0!==s&&(a=(new O).getDateLinkString(s.start,s.end,s.link,s.format,n)),a+t.map((t=>{let s="";return null!=i&&null!=i.hierarchy&&i.hierarchy.find((s=>s===t))&&(s=e.get("asc"===i.direction?"ORDER_asc":"ORDER_desc")),"".concat(" ",z.translateScenarioLabel(t,e),s)})).toString()}allMeasuresUseSameUnit(t){const s=new Map;return t.forEach((function(t){s.set(t.unit,!0)})),1===s.size}}class L{constructor(){this.businessunit="",this.measures=[],this.scenarios=[],this.i18nMode=g.ALL,this.intervalSpanLimit=32}}class P{constructor(t,s,i,e){this.measureEntryAdapter=t,this.timePeriodAdapter=s,this.orderAdapter=i,this.stringAdapter=e}adapt(t){const s=new L;return R.isString(t.businessunit)&&(s.businessunit=t.businessunit),R.isArray(t.measures)&&(s.measures=_.adaptArray(t.measures,this.measureEntryAdapter)),R.isArray(t.scenarios)&&(s.scenarios=_.adaptArray(t.scenarios,this.stringAdapter)),R.isExisting(t.timeperiod)&&(s.timeperiod=this.timePeriodAdapter.adapt(t.timeperiod)),R.isNumber(t.intervalSpanLimit)&&(s.intervalSpanLimit=t.intervalSpanLimit),R.isExisting(t.i18nMode)&&(s.i18nMode=t.i18nMode),R.isExisting(t.order)&&(s.order=this.orderAdapter.adapt(t.order)),s}default(){return new L}}var U;!function(t){t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.DIRTY=1]="DIRTY"}(U||(U={}));class A{constructor(t){this.i18n=new Map,this.unit="",this.measures=[],this.dimension="",this.config=new L,this.state=U.DIRTY,this.ruleSet=t||new C,this.dataSetFactory=new T,this.state=U.DIRTY,this.setI18n(new Map)}setI18n(t){this.state=U.DIRTY;const s=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"],["pp3","PL3"],["ac4","AC4"],["py4","PY4"],["fc4","FC4"],["pp4","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","❖"],["CONNECTOR_WS"," und "]]);this.i18n=new Map([...s,...t||new Map])}update(){return U.DIRTY===this.state&&(this.unit=this.config.businessunit,this.measures=this.dataSetFactory.createMeasures(this.config.measures,this.i18n,this.config.i18nMode),this.dimension=this.dataSetFactory.createDimension(this.config.scenarios,this.config.timeperiod,this.config.order,this.i18n,this.config.intervalSpanLimit),this.state=U.UP_TO_DATE),this}setConfig(t){this.config=this.initConfig(t)}initConfig(t){this.state=U.DIRTY;const s=t,i=this;return t.scenarios.sort(((t,s)=>i.ruleSet.getScenarioSorIndex(t)-i.ruleSet.getScenarioSorIndex(s))),s}}class W{constructor(t="",s=""){this.name=t,this.unit=s}}class I{construnctor(){}adapt(t){const s=new W;return R.isString(t.name)&&(s.name=t.name),R.isString(t.unit)&&(s.unit=t.unit),s}default(){return new W("","")}}class B{constructor(t=w.now(),s=w.now(),i=D.AUTO,e=x.AUTO){this.start=t,this.end=s,this.format=i,this.link=e}}class Y{construnctor(){}adapt(t){const s=new B;return R.isDate(t.start)&&(s.start=t.start),R.isDate(t.end)&&(s.end=t.end),R.isExisting(t.format)&&(s.format=t.format),R.isExisting(t.link)&&(s.link=t.link),s}default(){return new B}}const V=class{constructor(s){t(this,s),this.businessUnit="",this.scenarios=[],this.measures=[],this.intervalSpanLimit=28,this.order={hierarchy:[],direction:y.ASC},this.i18n=new Map,this.i18nMode=g.ALL,this.title=new A(new C)}async setBusinessUnit(t){this.businessUnit=t}async setProps(t){Object.keys(t).forEach((s=>{this[s]=t[s]}))}render(){return s("div",{key:"08439c867ae47a9ee17ef8280801896a823c8826"},s("div",{key:"bb5b7325de2ae2f2e0bdba8d7f7f36511835efa9"},this.title.unit),s("div",{key:"3edb730c95280ca0c47db70e32dd8e471747d989"},this.title.measures.map(((t,i)=>s("span",null,this.isFirstElement(i)?this.title.i18n.get("SEPERATOR_WS"):"",s("span",{class:"measure"},t.name)," ",t.unit?this.title.i18n.get("in"):""," ",t.unit)))),s("div",{key:"3bae51f2fddef6b2195d1c24915512b6255c9a75"},this.title.dimension))}componentWillLoad(){const t=this.prepareConfig();this.title=new A(new C),this.title.setI18n(this.i18n),this.title.setConfig(t)}componentWillUpdate(){const t=this.prepareConfig();this.title.setI18n(this.i18n),this.title.setConfig(t)}componentWillRender(){this.title.update()}isFirstElement(t){return 0!==t}prepareConfig(){return new P(new I,new Y,new S(new j),new j).adapt({businessunit:this.businessUnit,measures:this.measures,scenarios:this.scenarios,timeperiod:this.timeperiod,intervalSpanLimit:this.intervalSpanLimit,i18nMode:this.i18nMode,order:this.order})}};V.style=':host{display:block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.measure{font-weight:bold}div{background-color:var(--bn-font-background, white);color:var(--bn-font-color, black)}';export{M as bn_body,F as bn_footer,N as bn_title,V as ibcs_title}