@luzmo/analytics-components-kit 1.0.1-alpha.85 → 1.0.1-alpha.86

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 (251) hide show
  1. package/angular/README.md +1 -0
  2. package/angular/components/ai-interaction-textarea.component.ts +2 -0
  3. package/angular/components/dataset-icon.component.ts +21 -0
  4. package/angular/components/dataset-selector-row.component.ts +2 -0
  5. package/angular/esm/components/ai-interaction-textarea.component.d.ts +2 -1
  6. package/angular/esm/components/ai-interaction-textarea.component.js +7 -2
  7. package/angular/esm/components/dataset-icon.component.d.ts +9 -0
  8. package/angular/esm/components/dataset-icon.component.js +36 -0
  9. package/angular/esm/components/dataset-selector-row.component.d.ts +2 -1
  10. package/angular/esm/components/dataset-selector-row.component.js +7 -2
  11. package/angular/esm/index.d.ts +3 -1
  12. package/angular/esm/index.js +3 -0
  13. package/angular/esm/types.d.ts +14 -0
  14. package/angular/index.ts +3 -0
  15. package/angular/types.ts +13 -0
  16. package/components/ai-chat-messages-container/index.cjs +1 -1
  17. package/components/ai-chat-messages-container/index.js +2 -2
  18. package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +7 -1
  19. package/components/ai-interaction-textarea/index.cjs +32 -28
  20. package/components/ai-interaction-textarea/index.js +62 -49
  21. package/components/area-chart-options.config-C7sMAHco.cjs +20 -0
  22. package/components/{area-chart-options.config-u8itidsi.js → area-chart-options.config-_J0sG4NF.js} +26 -14
  23. package/components/{bar-chart-options.config-DIirbAJ0.js → bar-chart-options.config-D1mb5TDl.js} +35 -21
  24. package/components/bar-chart-options.config-DcxEkOT5.cjs +20 -0
  25. package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
  26. package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js} +88 -52
  27. package/components/{bubble-chart-options.config-4QD8VPhU.js → bubble-chart-options.config-BacgXkJ_.js} +18 -9
  28. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +20 -0
  29. package/components/{bullet-chart-options.config-3bH7uekx.js → bullet-chart-options.config-CDPpX1yc.js} +1 -1
  30. package/components/{bullet-chart-options.config-tWb6Fio-.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
  31. package/components/calculate-data-item-icon-DZDqb3xu.js +139 -0
  32. package/components/{calculate-data-item-icon-CX4VW9Km.cjs → calculate-data-item-icon-DjW1_RI1.cjs} +1 -1
  33. package/components/{choropleth-map-options.config-CMxx3ORp.js → choropleth-map-options.config-B_W9-rhe.js} +84 -63
  34. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
  35. package/components/{circular-gauge-options.config-DhIKn44k.js → circular-gauge-options.config-DAIjz4Rl.js} +36 -23
  36. package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
  37. package/components/color-B6LaL8qz.cjs +20 -0
  38. package/components/{color-B7m0j8lX.js → color-DuJ4-73S.js} +950 -941
  39. package/components/{color-range-utils-BSfqtB3A.js → color-range-utils-Bvo9sm5A.js} +32 -31
  40. package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
  41. package/components/{column-chart-options.config-D5-yR7iq.js → column-chart-options.config-B5SjBVdy.js} +37 -27
  42. package/components/column-chart-options.config-BjDvA7i9.cjs +20 -0
  43. package/components/{conditional-number-options.config-DPYsdML5.js → conditional-number-options.config-BCEpSK9J.js} +40 -24
  44. package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
  45. package/components/dataset-icon/dataset-icon.d.ts +45 -0
  46. package/components/dataset-icon/index.cjs +60 -0
  47. package/components/dataset-icon/index.d.ts +7 -0
  48. package/components/dataset-icon/index.js +167 -0
  49. package/components/dataset-selector-list/dataset-selector-list.d.ts +1 -0
  50. package/components/dataset-selector-list/index.cjs +10 -8
  51. package/components/dataset-selector-list/index.js +68 -68
  52. package/components/dataset-selector-row/dataset-selector-row.d.ts +7 -0
  53. package/components/dataset-selector-row/index.cjs +21 -18
  54. package/components/dataset-selector-row/index.js +63 -57
  55. package/components/{date-comparison-filter-options.config-QaoWaFUn.cjs → date-comparison-filter-options.config-DAVncmi0.cjs} +1 -1
  56. package/components/{date-comparison-filter-options.config-CSwGyuBg.js → date-comparison-filter-options.config-JA_yYpJa.js} +6 -3
  57. package/components/{date-filter-options.config-n-zhWaYa.cjs → date-filter-options.config-CWPMtA18.cjs} +1 -1
  58. package/components/{date-filter-options.config-BTVyHRkp.js → date-filter-options.config-DBRxlTWy.js} +6 -3
  59. package/components/display-settings/index.cjs +1 -1
  60. package/components/display-settings/index.js +1 -1
  61. package/components/display-settings-binning/index.cjs +5 -5
  62. package/components/display-settings-binning/index.js +30 -29
  63. package/components/display-settings-datetime/index.cjs +29 -29
  64. package/components/display-settings-datetime/index.js +120 -112
  65. package/components/display-settings-grand-totals/index.cjs +4 -4
  66. package/components/display-settings-grand-totals/index.js +24 -23
  67. package/components/display-settings-numeric/index.cjs +48 -48
  68. package/components/display-settings-numeric/index.js +211 -194
  69. package/components/display-settings-period-over-period/index.cjs +16 -16
  70. package/components/display-settings-period-over-period/index.js +97 -91
  71. package/components/{donut-chart-options.config-3ZqX8Cbb.js → donut-chart-options.config-BulUEiaH.js} +37 -21
  72. package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
  73. package/components/draggable-data-item/index.cjs +8 -8
  74. package/components/draggable-data-item/index.js +45 -44
  75. package/components/draggable-data-item-level/index.cjs +11 -11
  76. package/components/draggable-data-item-level/index.js +92 -89
  77. package/components/{dropdown-filter-options.config-CGJTtgAX.js → dropdown-filter-options.config-D9dvPypF.js} +10 -7
  78. package/components/{dropdown-filter-options.config-DJvfCTk7.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
  79. package/components/droppable-slot/index.cjs +20 -20
  80. package/components/droppable-slot/index.js +181 -167
  81. package/components/edit-item/index.cjs +9 -9
  82. package/components/edit-item/index.js +119 -116
  83. package/components/edit-option/index.cjs +1 -1
  84. package/components/edit-option/index.js +1 -1
  85. package/components/edit-option-action-button-group/index.cjs +8 -8
  86. package/components/edit-option-action-button-group/index.js +53 -52
  87. package/components/{edit-option-base-Bh29-Cak.js → edit-option-base-DIc7iC-b.js} +1 -1
  88. package/components/{edit-option-base-tFr8Qg2B.cjs → edit-option-base-VhTih9T1.cjs} +1 -1
  89. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  90. package/components/edit-option-color-palette-picker/index.js +1 -1
  91. package/components/edit-option-color-picker/index.cjs +1 -1
  92. package/components/edit-option-color-picker/index.js +1 -1
  93. package/components/edit-option-color-range/index.cjs +19 -19
  94. package/components/edit-option-color-range/index.js +117 -106
  95. package/components/edit-option-multi-language-field/index.cjs +3 -3
  96. package/components/edit-option-multi-language-field/index.js +27 -26
  97. package/components/edit-option-number-field/index.cjs +1 -1
  98. package/components/edit-option-number-field/index.js +1 -1
  99. package/components/edit-option-picker/index.cjs +5 -5
  100. package/components/edit-option-picker/index.js +7 -7
  101. package/components/edit-option-position-picker/index.cjs +4 -4
  102. package/components/edit-option-position-picker/index.js +25 -21
  103. package/components/edit-option-positions-number-field/index.cjs +9 -9
  104. package/components/edit-option-positions-number-field/index.js +81 -76
  105. package/components/edit-option-radio-button-group/index.cjs +6 -6
  106. package/components/edit-option-radio-button-group/index.js +22 -21
  107. package/components/edit-option-slider/index.cjs +1 -1
  108. package/components/edit-option-slider/index.js +1 -1
  109. package/components/edit-option-switch/index.cjs +1 -1
  110. package/components/edit-option-switch/index.js +1 -1
  111. package/components/edit-option-text-field/index.cjs +2 -2
  112. package/components/edit-option-text-field/index.js +23 -22
  113. package/components/en-BKBhKBXY.cjs +20 -0
  114. package/components/en-BOTjhwEc.js +1488 -0
  115. package/components/{en-GB-CbNfyZMo.js → en-GB-CEHEs8F2.js} +1 -1
  116. package/components/{en-GB-CXVKFWyH.cjs → en-GB-DG6uS3sM.cjs} +1 -1
  117. package/components/{evolution-number-options.config-Bc9eKYnn.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
  118. package/components/{evolution-number-options.config-BIPO_4n3.js → evolution-number-options.config-DzkfeoIN.js} +14 -11
  119. package/components/{extrapolate-color-C0n1UDs-.cjs → extrapolate-color-0j_AeYkz.cjs} +1 -1
  120. package/components/{extrapolate-color-v1PimdQr.js → extrapolate-color-CC9CURf6.js} +1 -1
  121. package/components/filter-data-item-picker/index.cjs +7 -7
  122. package/components/filter-data-item-picker/index.js +86 -85
  123. package/components/filter-expression-picker/index.cjs +1 -1
  124. package/components/filter-expression-picker/index.js +1 -1
  125. package/components/filter-item/index.cjs +6 -6
  126. package/components/filter-item/index.js +119 -109
  127. package/components/filter-value-picker/index.cjs +2 -2
  128. package/components/filter-value-picker/index.js +36 -34
  129. package/components/filter-value-picker-datetime/index.cjs +8 -8
  130. package/components/filter-value-picker-datetime/index.js +71 -56
  131. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  132. package/components/filter-value-picker-hierarchy/index.js +124 -113
  133. package/components/filter-value-picker-numeric/index.cjs +8 -8
  134. package/components/filter-value-picker-numeric/index.js +110 -101
  135. package/components/focusable-B3E_hQmm.cjs +20 -0
  136. package/components/{focusable-BS2pbY7w.js → focusable-DCIFkpiW.js} +26 -24
  137. package/components/{funnel-chart-options.config-CrJy2U7_.js → funnel-chart-options.config-C_VjTOvD.js} +20 -5
  138. package/components/funnel-chart-options.config-D7H7gFcx.cjs +20 -0
  139. package/components/{get-css-variable-CuDaWSjr.cjs → get-css-variable-DLiZYZEi.cjs} +2 -2
  140. package/components/{get-css-variable-DEf4GhTH.js → get-css-variable-YlLiVgo8.js} +4 -4
  141. package/components/grid/index.cjs +46 -46
  142. package/components/grid/index.js +1873 -2612
  143. package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js} +41 -35
  144. package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
  145. package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
  146. package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js} +88 -60
  147. package/components/helpers-DXQwEH1P.cjs +20 -0
  148. package/components/helpers-v1bPALRP.js +91 -0
  149. package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
  150. package/components/{hexbin-map-options.config-BguV1w8q.js → hexbin-map-options.config-F-7uCqxb.js} +38 -20
  151. package/components/index-BPN3bG9X.js +1733 -0
  152. package/components/{index-BNAmjOkm.cjs → index-BPNsFiyq.cjs} +4 -4
  153. package/components/index-CQ9ck-BO.cjs +249 -0
  154. package/components/index-CXn67vdn.cjs +121 -0
  155. package/components/{index-haa7WNrl.js → index-CdIUfo-L.js} +481 -453
  156. package/components/{index-3WsfvkZF.js → index-Do7O9azB.js} +123 -112
  157. package/components/{index-BDFBUGBc.js → index-PMDgRSzR.js} +104 -94
  158. package/components/index-cfj52IbK.cjs +20 -0
  159. package/components/index.cjs +1 -1
  160. package/components/index.js +90 -88
  161. package/components/item-options-configs.cjs +1 -1
  162. package/components/item-options-configs.js +37 -37
  163. package/components/{line-chart-options.config-BhirTGqD.js → line-chart-options.config-DB3IsXXr.js} +28 -13
  164. package/components/line-chart-options.config-DSugoe0t.cjs +20 -0
  165. package/components/{localize-CcDpq940.js → localize-BX7q0S0M.js} +10 -10
  166. package/components/{localize-C4zNlrwK.cjs → localize-r7ALOUy_.cjs} +1 -1
  167. package/components/{marker-map-options.config-Bx17jmiq.js → marker-map-options.config-DPJ955tt.js} +1 -1
  168. package/components/{marker-map-options.config-CvhCylSC.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
  169. package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
  170. package/components/{pivot-table-options.config-CFc7y0IT.js → pivot-table-options.config-DNK_AIG7.js} +24 -15
  171. package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
  172. package/components/{pyramid-chart-options.config-2Waxb11l.js → pyramid-chart-options.config-CcVMatYx.js} +43 -29
  173. package/components/{radar-chart-options.config-CPN5fOl8.js → radar-chart-options.config-CUZn_3Fd.js} +23 -11
  174. package/components/radar-chart-options.config-EqQu6PTh.cjs +20 -0
  175. package/components/{regular-table-options.config-CFKCJQK1.js → regular-table-options.config-BoLZsBry.js} +23 -17
  176. package/components/{regular-table-options.config-YRuoijIk.cjs → regular-table-options.config-DTx3RTnS.cjs} +1 -1
  177. package/components/{route-map-options.config-CyolTJfK.js → route-map-options.config-CN86T7c0.js} +109 -87
  178. package/components/route-map-options.config-D7NJePTu.cjs +20 -0
  179. package/components/{sankey-diagram-options.config-D7OSvSqm.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
  180. package/components/{sankey-diagram-options.config-Ldjk84ro.js → sankey-diagram-options.config-tVLKy_Zn.js} +10 -7
  181. package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
  182. package/components/{scatter-plot-options.config-CfxEfkQ1.js → scatter-plot-options.config-Corlzno1.js} +86 -56
  183. package/components/{search-filter-options.config-Oqco9BKj.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
  184. package/components/{search-filter-options.config-C0syQmP4.js → search-filter-options.config-BE3JhR-F.js} +6 -3
  185. package/components/{set-locale-nv7fWEtl.js → set-locale-B-Tz2sdI.js} +8 -1
  186. package/components/{slicer-filter-options.config-DmOe3440.js → slicer-filter-options.config-3JZZcw5C.js} +18 -9
  187. package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
  188. package/components/{slider-filter-options.config-B1M8RcDs.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
  189. package/components/{slider-filter-options.config-k45I-t6G.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
  190. package/components/slot-contents-picker/index.cjs +33 -33
  191. package/components/slot-contents-picker/index.js +205 -194
  192. package/components/slot-menu/index.cjs +12 -12
  193. package/components/slot-menu/index.js +184 -171
  194. package/components/slot-menu-list/index.cjs +3 -3
  195. package/components/slot-menu-list/index.js +103 -97
  196. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
  197. package/components/{speedometer-chart-options.config-CzOmuEF8.js → speedometer-chart-options.config-SL581yOa.js} +53 -31
  198. package/components/{spike-map-options.config-Cbt1YUw6.js → spike-map-options.config-C5KewecZ.js} +122 -91
  199. package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
  200. package/components/{sunburst-chart-options.config-Yrxc2i57.cjs → sunburst-chart-options.config-AbNjWS6t.cjs} +1 -1
  201. package/components/{sunburst-chart-options.config-_dyLQxPJ.js → sunburst-chart-options.config-CNauGQJv.js} +20 -9
  202. package/components/{symbol-map-options.config-BORL1NSU.js → symbol-map-options.config-DdDA4aa7.js} +20 -11
  203. package/components/symbol-map-options.config-m-lwLTtu.cjs +20 -0
  204. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +20 -0
  205. package/components/{treemap-chart-options.config-B9i9qIm_.js → treemap-chart-options.config-D5AJaF_u.js} +37 -20
  206. package/components/utils.cjs +1 -1
  207. package/components/utils.js +65 -64
  208. package/components/{video-options.config-B0asgYt8.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
  209. package/components/{video-options.config-UX-9MDfS.js → video-options.config-Dk36zJ1B.js} +10 -7
  210. package/components/{wordcloud-chart-options.config-BKtJT8Va.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
  211. package/components/{wordcloud-chart-options.config-BoB_KuhA.js → wordcloud-chart-options.config-w2NUIWVA.js} +7 -4
  212. package/custom-elements.json +154 -20
  213. package/index.d.ts +1 -0
  214. package/package.json +6 -1
  215. package/types.d.ts +14 -0
  216. package/components/area-chart-options.config-Bl8bhhOo.cjs +0 -20
  217. package/components/bar-chart-options.config-CePAqM83.cjs +0 -20
  218. package/components/box-plot-options.config-BVNrV2eD.cjs +0 -20
  219. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +0 -20
  220. package/components/calculate-data-item-icon-C8CbsMQf.js +0 -139
  221. package/components/choropleth-map-options.config-CWJACFd0.cjs +0 -20
  222. package/components/circular-gauge-options.config-BMxgq3zH.cjs +0 -20
  223. package/components/color-Czp4Im5q.cjs +0 -20
  224. package/components/color-range-utils-DYYR-iwx.cjs +0 -20
  225. package/components/column-chart-options.config-BV9R3ssH.cjs +0 -20
  226. package/components/conditional-number-options.config-Co099Qfm.cjs +0 -20
  227. package/components/donut-chart-options.config-BQyPgnC9.cjs +0 -20
  228. package/components/en--a5SfjnM.cjs +0 -20
  229. package/components/en-CtCctD2c.js +0 -1483
  230. package/components/focusable-QLh-LlNt.cjs +0 -20
  231. package/components/funnel-chart-options.config-DrP4AFgk.cjs +0 -20
  232. package/components/heat-map-options.config-CIHnPdYE.cjs +0 -20
  233. package/components/heat-table-options.config-DTlZRc_i.cjs +0 -20
  234. package/components/helpers-9I0oLoUB.cjs +0 -20
  235. package/components/helpers-bR8Ibjqh.js +0 -79
  236. package/components/hexbin-map-options.config-CKnn3VAB.cjs +0 -20
  237. package/components/index-BGb_wRRW.js +0 -1766
  238. package/components/index-BUal0r_D.cjs +0 -121
  239. package/components/index-D1Y5TRsH.cjs +0 -20
  240. package/components/index-DvkzMbLt.cjs +0 -249
  241. package/components/line-chart-options.config-Cqwou5u6.cjs +0 -20
  242. package/components/pivot-table-options.config-uZDAertf.cjs +0 -20
  243. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +0 -20
  244. package/components/radar-chart-options.config-CtNUMN1l.cjs +0 -20
  245. package/components/route-map-options.config-CVTk5RVL.cjs +0 -20
  246. package/components/scatter-plot-options.config-5gN7pMTm.cjs +0 -20
  247. package/components/slicer-filter-options.config-CrusP6a0.cjs +0 -20
  248. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +0 -20
  249. package/components/spike-map-options.config-BkkDqb4g.cjs +0 -20
  250. package/components/symbol-map-options.config-NpBKm64d.cjs +0 -20
  251. package/components/treemap-chart-options.config-x4J54WSw.cjs +0 -20
@@ -1,20 +0,0 @@
1
- /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Luzmo web components (“Luzmo Web Components”)
6
- * must be used according to the Luzmo Terms of Service.
7
- * This license allows users with a current active Luzmo account
8
- * to use the Luzmo Web Components. This license terminates
9
- * automatically if a user no longer has an active Luzmo account.
10
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
- *
12
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- * SOFTWARE.
19
- * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"donut",enum:["donut","pie"]}},{key:"slices.half",control:{type:"picker",default:"full",enum:["full","half"],parseValue:e=>e?"half":"full",toValue:e=>e==="half"}},{type:"divider"},{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0,calculateValue:({options:e})=>e?.display?.legend!==!1||e?.display?.categoryLabels===!0,toOptions:({options:e,value:t})=>({...e,display:{...e.display,legend:t,categoryLabels:!1}})}},{key:"display.categoryLabels",control:{type:"radio-button-group",enum:["list","labels"],parseValue:e=>e?"labels":"list",toOptions:({options:e,value:t})=>({...e,display:{...e.display,categoryLabels:t==="labels",legend:t!=="labels"}})},visibleIf:({options:e})=>e?.display?.legend!==!1||e?.display?.categoryLabels===!0}]},{key:"slices",type:"group",open:!0,children:[{key:"sort.by",control:{type:"picker",default:"measure",enum:["measure","category"]}},{key:"display.values",control:{type:"picker",default:"none",enum:["none","absolute","percentage"]}},{key:"slices.width",control:{type:"slider",default:.35,min:.05,max:.9,step:.01}},{key:"slices.maxNumber",control:{type:"number-field",default:12,min:0,max:50,step:1}},{key:"slices.minPercentage",control:{type:"number-field",default:3,min:0,max:100,step:1}},{key:"slices.roundedCorners",control:{type:"slider",default:8,min:0,max:24,step:1,extraLabel:({options:e,theme:t})=>{if(typeof t?.itemSpecific?.rounding=="number")return typeof e?.slices?.roundedCorners!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:t})=>!(typeof t?.itemSpecific?.rounding!="number"||typeof e?.slices?.roundedCorners!="number"),extraLabelClickAction:({options:e})=>{const t={...e};return t?.slices?.roundedCorners!==void 0&&delete t.slices.roundedCorners,{value:null,options:t}}}},{key:"slices.padding",control:{type:"slider",default:5,min:0,max:20,step:1,extraLabel:({options:e,theme:t})=>{if(typeof t?.itemSpecific?.padding=="number")return typeof e?.slices?.padding!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:t})=>!(typeof t?.itemSpecific?.padding!="number"||typeof e?.slices?.padding!="number"),extraLabelClickAction:({options:e})=>{const t={...e};return t?.slices?.padding!==void 0&&delete t.slices.padding,{value:null,options:t}}}}]}];exports.default=l;
@@ -1,20 +0,0 @@
1
- /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Luzmo web components (“Luzmo Web Components”)
6
- * must be used according to the Luzmo Terms of Service.
7
- * This license allows users with a current active Luzmo account
8
- * to use the Luzmo Web Components. This license terminates
9
- * automatically if a user no longer has an active Luzmo account.
10
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
- *
12
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- * SOFTWARE.
19
- * */
20
- "use strict";const L=require("./localize-C4zNlrwK.cjs"),st=require("./decompose-numeric-format-B3rVVHpO.cjs");function mt(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function se(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ct(e){return e=se(Math.abs(e)),e?e[1]:NaN}function ft(e,t){return function(r,n){for(var l=r.length,o=[],s=0,M=e[0],Y=0;l>0&&M>0&&(Y+M+1>n&&(M=Math.max(1,n-Y)),o.push(r.substring(l-=M,l+M)),!((Y+=M+1)>n));)M=e[s=(s+1)%e.length];return o.reverse().join(t)}}function ht(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var yt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pe(e){if(!(t=yt.exec(e)))throw new Error("invalid format: "+e);var t;return new Se({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}pe.prototype=Se.prototype;function Se(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Se.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function gt(e){e:for(var t=e.length,r=1,n=-1,l;r<t;++r)switch(e[r]){case".":n=l=r;break;case"0":n===0&&(n=r),l=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(l+1):e}var Ve;function dt(e,t){var r=se(e,t);if(!r)return e+"";var n=r[0],l=r[1],o=l-(Ve=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,s=n.length;return o===s?n:o>s?n+new Array(o-s+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+se(e,Math.max(0,t+o-1))[0]}function be(e,t){var r=se(e,t);if(!r)return e+"";var n=r[0],l=r[1];return l<0?"0."+new Array(-l).join("0")+n:n.length>l+1?n.slice(0,l+1)+"."+n.slice(l+1):n+new Array(l-n.length+2).join("0")}const we={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:mt,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>be(e*100,t),r:be,s:dt,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Fe(e){return e}var ke=Array.prototype.map,xe=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mt(e){var t=e.grouping===void 0||e.thousands===void 0?Fe:ft(ke.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?Fe:ht(ke.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",M=e.minus===void 0?"−":e.minus+"",Y=e.nan===void 0?"NaN":e.nan+"";function m(u){u=pe(u);var y=u.fill,f=u.align,g=u.sign,c=u.symbol,U=u.zero,F=u.width,W=u.comma,T=u.precision,C=u.trim,k=u.type;k==="n"?(W=!0,k="g"):we[k]||(T===void 0&&(T=12),C=!0,k="g"),(U||y==="0"&&f==="=")&&(U=!0,y="0",f="=");var O=c==="$"?r:c==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",ue=c==="$"?n:/[%p]/.test(k)?s:"",R=we[k],ye=/[defgprs%]/.test(k);T=T===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function ie(d){var q=O,x=ue,I,le,Z;if(k==="c")x=R(d)+x,d="";else{d=+d;var j=d<0||1/d<0;if(d=isNaN(d)?Y:R(Math.abs(d),T),C&&(d=gt(d)),j&&+d==0&&g!=="+"&&(j=!1),q=(j?g==="("?g:M:g==="-"||g==="("?"":g)+q,x=(k==="s"?xe[8+Ve/3]:"")+x+(j&&g==="("?")":""),ye){for(I=-1,le=d.length;++I<le;)if(Z=d.charCodeAt(I),48>Z||Z>57){x=(Z===46?l+d.slice(I+1):d.slice(I))+x,d=d.slice(0,I);break}}}W&&!U&&(d=t(d,1/0));var B=q.length+d.length+x.length,H=B<F?new Array(F-B+1).join(y):"";switch(W&&U&&(d=t(H+d,H.length?F-x.length:1/0),H=""),f){case"<":d=q+d+x+H;break;case"=":d=q+H+d+x;break;case"^":d=H.slice(0,B=H.length>>1)+q+d+x+H.slice(B);break;default:d=H+q+d+x;break}return o(d)}return ie.toString=function(){return u+""},ie}function S(u,y){var f=m((u=pe(u),u.type="f",u)),g=Math.max(-8,Math.min(8,Math.floor(ct(y)/3)))*3,c=Math.pow(10,-g),U=xe[8+g/3];return function(F){return f(c*F)+U}}return{format:m,formatPrefix:S}}const ge=new Date,de=new Date;function w(e,t,r,n){function l(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return l.floor=o=>(e(o=new Date(+o)),o),l.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),l.round=o=>{const s=l(o),M=l.ceil(o);return o-s<M-o?s:M},l.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),l.range=(o,s,M)=>{const Y=[];if(o=l.ceil(o),M=M==null?1:Math.floor(M),!(o<s)||!(M>0))return Y;let m;do Y.push(m=new Date(+o)),t(o,M),e(o);while(m<o&&o<s);return Y},l.filter=o=>w(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,M)=>{if(s>=s)if(M<0)for(;++M<=0;)for(;t(s,-1),!o(s););else for(;--M>=0;)for(;t(s,1),!o(s););}),r&&(l.count=(o,s)=>(ge.setTime(+o),de.setTime(+s),e(ge),e(de),Math.floor(r(ge,de))),l.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?l.filter(n?s=>n(s)%o===0:s=>l.count(0,s)%o===0):l)),l}const ne=1e3,V=ne*60,ae=V*60,oe=ae*24,Qe=oe*7,Re=w(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ne)},(e,t)=>(t-e)/ne,e=>e.getUTCSeconds());Re.range;const $e=w(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ne)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getMinutes());$e.range;const Tt=w(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getUTCMinutes());Tt.range;const ze=w(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ne-e.getMinutes()*V)},(e,t)=>{e.setTime(+e+t*ae)},(e,t)=>(t-e)/ae,e=>e.getHours());ze.range;const pt=w(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ae)},(e,t)=>(t-e)/ae,e=>e.getUTCHours());pt.range;const fe=w(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*V)/oe,e=>e.getDate()-1);fe.range;const De=w(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/oe,e=>e.getUTCDate()-1);De.range;const vt=w(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/oe,e=>Math.floor(e/oe));vt.range;function G(e){return w(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*V)/Qe)}const Ce=G(0),me=G(1),Yt=G(2),St=G(3),X=G(4),Dt=G(5),Ct=G(6);Ce.range;me.range;Yt.range;St.range;X.range;Dt.range;Ct.range;function P(e){return w(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Qe)}const Ge=P(0),ce=P(1),Ut=P(2),bt=P(3),K=P(4),wt=P(5),Ft=P(6);Ge.range;ce.range;Ut.range;bt.range;K.range;wt.range;Ft.range;const Pe=w(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Pe.range;const kt=w(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());kt.range;const Q=w(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Q.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:w(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Q.range;const z=w(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());z.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:w(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});z.range;function Me(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Te(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ee(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function ve(e){var t=e.dateTime,r=e.date,n=e.time,l=e.periods,o=e.days,s=e.shortDays,M=e.months,Y=e.shortMonths,m=te(l),S=re(l),u=te(o),y=re(o),f=te(s),g=re(s),c=te(M),U=re(M),F=te(Y),W=re(Y),T={a:j,A:B,b:H,B:et,c:null,d:He,e:He,f:Xt,g:lr,G:mr,H:jt,I:Bt,j:Jt,L:Ze,m:Kt,M:er,p:tt,q:rt,Q:Ee,s:Ie,S:tr,u:rr,U:nr,V:ar,w:or,W:ur,x:null,X:null,y:ir,Y:sr,Z:cr,"%":qe},C={a:nt,A:at,b:ot,B:ut,c:null,d:Oe,e:Oe,f:gr,g:Ur,G:wr,H:fr,I:hr,j:yr,L:Be,m:dr,M:Mr,p:it,q:lt,Q:Ee,s:Ie,S:Tr,u:pr,U:vr,V:Yr,w:Sr,W:Dr,x:null,X:null,y:Cr,Y:br,Z:Fr,"%":qe},k={a:ie,A:d,b:q,B:x,c:I,d:Ne,e:Ne,f:zt,g:_e,G:We,H:Le,I:Le,j:Vt,L:$t,m:It,M:Qt,p:ye,q:Et,Q:Pt,s:Zt,S:Rt,u:Nt,U:Lt,V:Ht,w:_t,W:Ot,x:le,X:Z,y:_e,Y:We,Z:qt,"%":Gt};T.x=O(r,T),T.X=O(n,T),T.c=O(t,T),C.x=O(r,C),C.X=O(n,C),C.c=O(t,C);function O(i,h){return function(p){var a=[],A=-1,D=0,_=i.length,N,$,Ue;for(p instanceof Date||(p=new Date(+p));++A<_;)i.charCodeAt(A)===37&&(a.push(i.slice(D,A)),($=Ae[N=i.charAt(++A)])!=null?N=i.charAt(++A):$=N==="e"?" ":"0",(Ue=h[N])&&(N=Ue(p,$)),a.push(N),D=A+1);return a.push(i.slice(D,A)),a.join("")}}function ue(i,h){return function(p){var a=ee(1900,void 0,1),A=R(a,i,p+="",0),D,_;if(A!=p.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(a.s*1e3+("L"in a?a.L:0));if(h&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+a.p*12),a.m===void 0&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(D=Te(ee(a.y,0,1)),_=D.getUTCDay(),D=_>4||_===0?ce.ceil(D):ce(D),D=De.offset(D,(a.V-1)*7),a.y=D.getUTCFullYear(),a.m=D.getUTCMonth(),a.d=D.getUTCDate()+(a.w+6)%7):(D=Me(ee(a.y,0,1)),_=D.getDay(),D=_>4||_===0?me.ceil(D):me(D),D=fe.offset(D,(a.V-1)*7),a.y=D.getFullYear(),a.m=D.getMonth(),a.d=D.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),_="Z"in a?Te(ee(a.y,0,1)).getUTCDay():Me(ee(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+a.W*7-(_+5)%7:a.w+a.U*7-(_+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Te(a)):Me(a)}}function R(i,h,p,a){for(var A=0,D=h.length,_=p.length,N,$;A<D;){if(a>=_)return-1;if(N=h.charCodeAt(A++),N===37){if(N=h.charAt(A++),$=k[N in Ae?h.charAt(A++):N],!$||(a=$(i,p,a))<0)return-1}else if(N!=p.charCodeAt(a++))return-1}return a}function ye(i,h,p){var a=m.exec(h.slice(p));return a?(i.p=S.get(a[0].toLowerCase()),p+a[0].length):-1}function ie(i,h,p){var a=f.exec(h.slice(p));return a?(i.w=g.get(a[0].toLowerCase()),p+a[0].length):-1}function d(i,h,p){var a=u.exec(h.slice(p));return a?(i.w=y.get(a[0].toLowerCase()),p+a[0].length):-1}function q(i,h,p){var a=F.exec(h.slice(p));return a?(i.m=W.get(a[0].toLowerCase()),p+a[0].length):-1}function x(i,h,p){var a=c.exec(h.slice(p));return a?(i.m=U.get(a[0].toLowerCase()),p+a[0].length):-1}function I(i,h,p){return R(i,t,h,p)}function le(i,h,p){return R(i,r,h,p)}function Z(i,h,p){return R(i,n,h,p)}function j(i){return s[i.getDay()]}function B(i){return o[i.getDay()]}function H(i){return Y[i.getMonth()]}function et(i){return M[i.getMonth()]}function tt(i){return l[+(i.getHours()>=12)]}function rt(i){return 1+~~(i.getMonth()/3)}function nt(i){return s[i.getUTCDay()]}function at(i){return o[i.getUTCDay()]}function ot(i){return Y[i.getUTCMonth()]}function ut(i){return M[i.getUTCMonth()]}function it(i){return l[+(i.getUTCHours()>=12)]}function lt(i){return 1+~~(i.getUTCMonth()/3)}return{format:function(i){var h=O(i+="",T);return h.toString=function(){return i},h},parse:function(i){var h=ue(i+="",!1);return h.toString=function(){return i},h},utcFormat:function(i){var h=O(i+="",C);return h.toString=function(){return i},h},utcParse:function(i){var h=ue(i+="",!0);return h.toString=function(){return i},h}}}var Ae={"-":"",_:" ",0:"0"},b=/^\s*\d+/,xt=/^%/,At=/[\\^$*+?|[\]().{}]/g;function v(e,t,r){var n=e<0?"-":"",l=(n?-e:e)+"",o=l.length;return n+(o<r?new Array(r-o+1).join(t)+l:l)}function Wt(e){return e.replace(At,"\\$&")}function te(e){return new RegExp("^(?:"+e.map(Wt).join("|")+")","i")}function re(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function _t(e,t,r){var n=b.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Nt(e,t,r){var n=b.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Lt(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Ht(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Ot(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function We(e,t,r){var n=b.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function _e(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function qt(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Et(e,t,r){var n=b.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function It(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Ne(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Vt(e,t,r){var n=b.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Le(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Qt(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Rt(e,t,r){var n=b.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function $t(e,t,r){var n=b.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function zt(e,t,r){var n=b.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Gt(e,t,r){var n=xt.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Pt(e,t,r){var n=b.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Zt(e,t,r){var n=b.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function He(e,t){return v(e.getDate(),t,2)}function jt(e,t){return v(e.getHours(),t,2)}function Bt(e,t){return v(e.getHours()%12||12,t,2)}function Jt(e,t){return v(1+fe.count(Q(e),e),t,3)}function Ze(e,t){return v(e.getMilliseconds(),t,3)}function Xt(e,t){return Ze(e,t)+"000"}function Kt(e,t){return v(e.getMonth()+1,t,2)}function er(e,t){return v(e.getMinutes(),t,2)}function tr(e,t){return v(e.getSeconds(),t,2)}function rr(e){var t=e.getDay();return t===0?7:t}function nr(e,t){return v(Ce.count(Q(e)-1,e),t,2)}function je(e){var t=e.getDay();return t>=4||t===0?X(e):X.ceil(e)}function ar(e,t){return e=je(e),v(X.count(Q(e),e)+(Q(e).getDay()===4),t,2)}function or(e){return e.getDay()}function ur(e,t){return v(me.count(Q(e)-1,e),t,2)}function ir(e,t){return v(e.getFullYear()%100,t,2)}function lr(e,t){return e=je(e),v(e.getFullYear()%100,t,2)}function sr(e,t){return v(e.getFullYear()%1e4,t,4)}function mr(e,t){var r=e.getDay();return e=r>=4||r===0?X(e):X.ceil(e),v(e.getFullYear()%1e4,t,4)}function cr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+v(t/60|0,"0",2)+v(t%60,"0",2)}function Oe(e,t){return v(e.getUTCDate(),t,2)}function fr(e,t){return v(e.getUTCHours(),t,2)}function hr(e,t){return v(e.getUTCHours()%12||12,t,2)}function yr(e,t){return v(1+De.count(z(e),e),t,3)}function Be(e,t){return v(e.getUTCMilliseconds(),t,3)}function gr(e,t){return Be(e,t)+"000"}function dr(e,t){return v(e.getUTCMonth()+1,t,2)}function Mr(e,t){return v(e.getUTCMinutes(),t,2)}function Tr(e,t){return v(e.getUTCSeconds(),t,2)}function pr(e){var t=e.getUTCDay();return t===0?7:t}function vr(e,t){return v(Ge.count(z(e)-1,e),t,2)}function Je(e){var t=e.getUTCDay();return t>=4||t===0?K(e):K.ceil(e)}function Yr(e,t){return e=Je(e),v(K.count(z(e),e)+(z(e).getUTCDay()===4),t,2)}function Sr(e){return e.getUTCDay()}function Dr(e,t){return v(ce.count(z(e)-1,e),t,2)}function Cr(e,t){return v(e.getUTCFullYear()%100,t,2)}function Ur(e,t){return e=Je(e),v(e.getUTCFullYear()%100,t,2)}function br(e,t){return v(e.getUTCFullYear()%1e4,t,4)}function wr(e,t){var r=e.getUTCDay();return e=r>=4||r===0?K(e):K.ceil(e),v(e.getUTCFullYear()%1e4,t,4)}function Fr(){return"+0000"}function qe(){return"%"}function Ee(e){return+e}function Ie(e){return Math.floor(+e/1e3)}var J,E;kr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function kr(e){return J=ve(e),E=J.format,J.parse,J.utcFormat,J.utcParse,J}const Ye=[[1,4,12,52,365,365*24,365*24*60,365*24*60*60,365*24*60*60*1e3],[1/4,1,3,13,91,91*24,91*24*60,91*24*60*60,91*24*60*60*1e3],[1/12,1/3,1,4,30,30*24,30*24*60,30*24*60*60,30*24*60*60*1e3],[1/52,1/13,1/4,1,7,7*24,7*24*60,7*24*60*60,7*24*60*60*1e3],[1/365,1/91,1/30,1/7,1,24,24*60,24*60*60,24*60*60*1e3],[1/(365*24),1/(91*24),1/(30*24),1/(7*24),1/24,1,60,60*60,60*60*1e3],[1/(365*24*60),1/(91*24*60),1/(30*24*60),1/(7*24*60),1/(24*60),1/60,1,60,60*1e3],[1/(365*24*60*60),1/(91*24*60*60),1/(30*24*60*60),1/(7*24*60*60),1/(24*60*60),1/(60*60),1/60,1,1e3],[1/(365*24*60*60*1e3),1/(91*24*60*60*1e3),1/(30*24*60*60*1e3),1/(7*24*60*60*1e3),1/(24*60*60*1e3),1/(60*60*1e3),1/(60*1e3),1/1e3,1]];function xr(e,t,r){if(L.isEmpty(e))return;if(!t||!r||t===r)return e;const n=Ye[t-1][r-1];if(n)return e*n}function Ar(e,t,r,n){if(L.isEmpty(e)||!t.lowestLevel||r.length===0)return"";const l=[];let o=0,s=Math.round(e*Ye[t.lowestLevel-1][8]);const M=9;for(const[,m]of r.entries())if(e){s=s-o;const S=Ye[m-1][M-1],u=Math.floor(s/S);o=u*S,l.push({level:m,value:u})}else l.push({level:m,value:0});let Y="";for(const[m,S]of l.entries())if(t.duration.format==="time"){let u=S.value;[6,7,8].includes(S.level)&&S.value<10?u="0"+S.value.toString():S.level===9&&S.value<10?u="00"+S.value.toString():S.level===9&&S.value<100&&(u="0"+S.value.toString()),Y+=(m===0?"":S.level===9?".":":")+u}else if(t.duration.format==="long"){const u=n.durationLongSuffix;Y+=S.value+" "+u[S.level]+(m===l.length-1?"":" ")}else{const u=n.durationShortSuffix;Y+=S.value+""+u[S.level]+(m===l.length-1?"":" ")}return Y}const he={decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",dateSeparator:"/",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],levels:["All","Year","Quarter","Month","Week","Date","Hour","Minute","Second","Millisecond"],shortLevels:["All","Yr","Qtr","Mth","Wk","Date","Hr","Min","Sec","Msec"],durationLongSuffix:["","years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],durationShortSuffix:["","y","q","mo","w","d","h","m","s","ms"],multi:[".%L",":%S","%I:%M","%I %p","%a %d","W%G","%b %d","%B","%Y"]},Xe="%d-%m-%Y",Ke=[{key:"%a %e %b %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%b %Y",lev4:"Wk %V-%G",lev5:"%a %e %b %Y",monthType:"name",longText:!1,weekday:!0},{key:"%e %b %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%b %Y",lev4:"Wk %V-%G",lev5:"%e %b %Y",monthType:"name",longText:!1,weekday:!1},{key:"%a %e %B %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%B %Y",lev4:"Week %V, %G",lev5:"%a %e %B %Y",monthType:"name",longText:!0,weekday:!0},{key:"%e %B %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%B %Y",lev4:"Week %V, %G",lev5:"%e %B %Y",monthType:"name",longText:!0,weekday:!1},{key:"%d/%m/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"W%V/%G",lev5:"%d/%m/%Y",monthType:"number",mmdd:!1,separator:"/"},{key:"%d-%m-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"W%V-%G",lev5:"%d-%m-%Y",monthType:"number",mmdd:!1,separator:"-"},{key:"%d.%m.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"W%V.%G",lev5:"%d.%m.%Y",monthType:"number",mmdd:!1,separator:"."},{key:"%d~%m~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"W%V~%G",lev5:"%d~%m~%Y",monthType:"number",mmdd:!1,separator:"~"},{key:"%m/%d/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"%G/W%V",lev5:"%m/%d/%Y",monthType:"number",mmdd:!0,separator:"/"},{key:"%m-%d-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"%G-W%V",lev5:"%m-%d-%Y",monthType:"number",mmdd:!0,separator:"-"},{key:"%m.%d.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"%G.W%V",lev5:"%m.%d.%Y",monthType:"number",mmdd:!0,separator:"."},{key:"%m~%d~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"%G~W%V",lev5:"%m~%d~%Y",monthType:"number",mmdd:!0,separator:"~"},{key:"%amd/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"%G/W%V",lev5:"%amd/%Y",monthType:"number",mmdd:null,separator:"/"},{key:"%amd-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"%G-W%V",lev5:"%amd-%Y",monthType:"number",mmdd:null,separator:"-"},{key:"%amd.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"%G.W%V",lev5:"%amd.%Y",monthType:"number",mmdd:null,separator:"."},{key:"%amd~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"%G~W%V",lev5:"%amd~%Y",monthType:"number",mmdd:null,separator:"~"}],Wr=[{key:"%H:%M:%S.%L",lev6:"%H:00",lev7:"%H:%M",lev8:"%H:%M:%S",lev9:"%H:%M:%S.%L",ampm:!1},{key:"%I:%M:%S.%L %p",lev6:"%I:00 %p",lev7:"%I:%M %p",lev8:"%I:%M:%S %p",lev9:"%I:%M:%S.%L %p",ampm:!0}];function _r(e,t){t=t||{};const r=t.localFormats||he;let n,l,o,s=[],M=[],Y="datetime",m;t&&t.multi&&(Y="datetime"),(!e||!e.format)&&(Y="hierarchy"),e&&e.type&&(Y=e.type),e&&e.format?m=e.format:Y==="numeric"?m=",.0f":Y==="datetime"?m=Xe:m="";const S=st.decomposeNumericFormat(m);switch(S.precision&&S.typeFormat&&(Y="numeric"),Y){case"numeric":{if(e.subtype==="duration"&&e.duration&&e.duration.levels&&e.duration.levels.length>1&&!t.hideDuration)n=u=>L.isEmpty(u)?"":Ar(u,e,e.duration.levels,r);else{const u={...r};let y=S.typeFormat,f=!1;switch(y.length===2&&y.startsWith("a")&&(f=!0,y=y.slice(1,2),m=m.replace(/a/,"")),f?(u.decimal=r.decimal,u.thousands=r.thousands):["z","y","w"].includes(y)?(u.decimal=",",u.thousands="."):(u.decimal=".",u.thousands=","),y){case"z":{m=m.replace("z","f");break}case"y":{m=m.replace("y","%");break}case"w":{m=m.replace("w","s");break}}if(e?.subtype==="currency"&&e.currency){const c=" ",U=u.currency.findIndex(C=>C.length>0),F=u.currency[U].startsWith(c),W=u.currency[U].endsWith(c),T=`${F?c:""}${e.currency}${W?c:""}`;u.currency[U]=T}const g=Mt(u);y!=="%"&&e?.subtype==="currency"&&e.currency&&u.currency&&!t?.hideCurrency&&!["count","distinctcount"].includes(e.aggregationFunc)&&!(e.aggregationFunc==="rate"&&e.aggregationWeight?.columnSubType==="currency")&&e.periodOverPeriod?.type!=="percentageChange"&&(m="$"+m),t?.trimZero&&["y","%"].includes(y)&&u.decimal===","?l=c=>g.format(m)(c).replace(/(,\d*?)0+%$/,"$1%").replace(/,%$/,"%"):t?.trimZero&&["y","%"].includes(y)&&u.decimal==="."?l=c=>g.format(m)(c).replace(/(\.\d*?)0+%$/,"$1%").replace(/\.%$/,"%"):t?.trimZero&&["z","f"].includes(y)&&u.decimal===","?l=c=>g.format(m)(c).replace(/(,\d*?)0+$/,"$1").replace(/,$/,""):t?.trimZero&&["z","f"].includes(y)&&u.decimal==="."?l=c=>g.format(m)(c).replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""):e?.subtype==="currency"&&e.currency&&u.currency&&y==="s"?l=c=>g.format(m)(c).replace(/G/,"B"):l=L.isEmpty(S.precision)?g.format(",.0f"):g.format(m),n=c=>{if(L.isEmpty(c))return"";if(e.subtype==="duration"&&e.duration&&!t.hideDuration){const U=e.duration.levels?e.duration.levels[0]:e.lowestLevel;return U!==e.lowestLevel&&(c=xr(c,e.lowestLevel,U)),l(c)+r?.durationShortSuffix?.[U]}return l(c)}}break}case"datetime":{if(s=r?.smartDateFormats??Ke,M=r?.smartTimeFormats??Wr,L.isEmpty(e.datetimeDisplayMode)){if(t?.level){const u=t.level,y=s.find(W=>m.includes(W.key)),f=M.find(W=>m.includes(W.key)),g=y?y["lev"+Math.min(u,5)]:s[0]["lev"+Math.min(u,5)],c=u>5?f?f["lev"+u]:M[0]["lev"+u]:"";m=u>5?g+", "+c:g;const U=m.includes("%amd")&&t.level>=5,F=y?t.level>=2&&y.separator==="~":!1;U?m=F?m.replaceAll(new RegExp(/%amd[.~\/-]%Y/g),r.date.slice(0,8)):m.replaceAll(new RegExp(/%amd[.~\/-]%Y/g),r.date.slice(0,8).replaceAll(new RegExp(/[.~\/-]/g),y.separator)):m=F?m.replaceAll(new RegExp(/[~]/g),r.dateSeparator):m}if(t?.multi){const u=E(r.multi[0]),y=E(r.multi[1]),f=E(r.multi[2]),g=E(r.multi[3]),c=E(r.multi[4]),U=E(r.multi[6]),F=E(r.multi[7]),W=E(r.multi[8]);o=T=>{let C;return Re(T)<T?C=u:$e(T)<T?C=y:ze(T)<T?C=f:fe(T)<T?C=g:Pe(T)<T?C=Ce(T)<T?c:U:Q(T)<T?C=F:C=W,C(T)}}else o=ve(r).format(m)}else{const u={quarter_number:{min:1,max:4},month_name:{min:1,max:12},month_number:{min:1,max:12},week_number:{min:1,max:53},day_in_month:{min:1,max:31},day_in_year:{min:1,max:366},weekday_name:{min:0,max:7},weekday_number:{min:0,max:7},hour_in_day:{min:0,max:23},minute_in_hour:{min:0,max:59},second_in_minute:{min:0,max:59}},y=(f,g,c)=>g==="letter"?f.shortNames?.length>0&&f.shortNames[c]?.length>0?f.shortNames[c]?.charAt(0):"N/A":g==="short"?f.shortNames?.length>0&&f.shortNames[c]?f.shortNames[c]:"N/A":f.longNames?.length>0&&f.longNames[c]?f.longNames[c]:"N/A";["quarter_number","month_number","week_number","day_in_month","day_in_year","weekday_number","hour_in_day","minute_in_hour","second_in_minute"].includes(e.datetimeDisplayMode)?o=f=>L.isNumeric(f)&&f>=u[e.datetimeDisplayMode].min&&f<=u[e.datetimeDisplayMode].max?f:"N/A":e.datetimeDisplayMode==="month_name"?o=f=>{const g=[...r.shortMonths],c=[...r.months];return L.isNumeric(f)&&f>=u[e.datetimeDisplayMode].min&&f<=u[e.datetimeDisplayMode].max?y({shortNames:g,longNames:c},e.monthNameFormat,f-1):"N/A"}:e.datetimeDisplayMode==="weekday_name"?o=f=>{const g=[...r.shortDays],c=[...r.days];return e.weekStart==="monday"&&(g.push(g.shift()??""),c.push(c.shift()??"")),L.isNumeric(f)&&f>=u[e.datetimeDisplayMode].min&&f<=u[e.datetimeDisplayMode].max?y({shortNames:g,longNames:c},e.weekDayNameFormat,f-1):"N/A"}:o=ve(r).format(m)}n=u=>{if(L.isEmpty(u))return"";const y=o(u);return L.isString(y)?y.trim():y};break}case"hierarchy":{n=u=>L.localize(u,t?t.locale:void 0);break}default:{n=u=>u;break}}return n}const Nr=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"})),Lr=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"}));exports.DEFAULT_DATETIME_FORMAT=Xe;exports.DEFAULT_LOCAL_FORMATS=he;exports.SMART_DATE_FORMATS=Ke;exports.en=Lr;exports.enUS=Nr;exports.formatter=_r;