@luzmo/analytics-components-kit 1.0.1-alpha.3 → 1.0.1-alpha.5

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 (349) hide show
  1. package/LICENSE +18 -0
  2. package/components/area-chart-slots.config-BLxiYX05.cjs +20 -0
  3. package/components/area-chart-slots.config-C0c2ZzBh.js +52 -0
  4. package/components/async-directive-FGzMycjH-Bgeca09f.js +152 -0
  5. package/components/async-directive-FGzMycjH-CeG35vZ3.cjs +56 -0
  6. package/components/bar-chart-slots.config-GSSL7XVA.js +47 -0
  7. package/components/bar-chart-slots.config-Jx1PveTM.cjs +20 -0
  8. package/components/bar-chart.config-B57geUzJ.cjs +20 -0
  9. package/components/bar-chart.config-CQ6HAvs2.js +153 -0
  10. package/components/bar-chart.en-BqYbiHO3.cjs +20 -0
  11. package/components/bar-chart.en-FwT00qdU.js +69 -0
  12. package/components/bar-chart.fr-DGx9smEh.cjs +20 -0
  13. package/components/bar-chart.fr-DbxKiM0j.js +44 -0
  14. package/components/bar-chart.nl-BYzVExsz.cjs +20 -0
  15. package/components/bar-chart.nl-ahX1ARpH.js +44 -0
  16. package/components/base-BjTwmyRF.cjs +24 -0
  17. package/components/base-D76d76ww-BiajPmzU.cjs +40 -0
  18. package/components/base-D76d76ww-gf0ESLsU.js +45 -0
  19. package/components/base-D76d76ww.js +28 -0
  20. package/components/button-base-CDLQV7Vk-BXgdcJZo.cjs +43 -0
  21. package/components/button-base-CDLQV7Vk-C_3zTrbV.js +161 -0
  22. package/components/checkbox-mixin-DXUIwtea-DNISZS47.cjs +45 -0
  23. package/components/checkbox-mixin-DXUIwtea-wiCZr_KI.js +88 -0
  24. package/components/column-chart.config-B57geUzJ.cjs +20 -0
  25. package/components/column-chart.config-C9hP0kX7.js +153 -0
  26. package/components/cs-DVZ0Tapy.js +89 -0
  27. package/components/cs-I9E81keK.cjs +20 -0
  28. package/components/da-DHy05oSR.js +97 -0
  29. package/components/da-QkdvupDg.cjs +20 -0
  30. package/components/de-Dn5mUzha.cjs +20 -0
  31. package/components/de-iM39JlAt.js +109 -0
  32. package/components/decompose-numeric-format-B3rVVHpO.cjs +20 -0
  33. package/components/decompose-numeric-format-BuZcjH2k.js +39 -0
  34. package/components/directive-helpers-BLDZnGQv-DYFfxaqA.cjs +80 -0
  35. package/components/directive-helpers-BLDZnGQv-oKMCBvb2.js +115 -0
  36. package/components/display-settings/display-settings.d.ts +70 -0
  37. package/components/display-settings/index.cjs +105 -0
  38. package/components/display-settings/index.d.ts +7 -0
  39. package/components/display-settings/index.js +238 -0
  40. package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
  41. package/components/display-settings-binning/index.cjs +51 -0
  42. package/components/display-settings-binning/index.d.ts +7 -0
  43. package/components/display-settings-binning/index.js +137 -0
  44. package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
  45. package/components/display-settings-datetime/index.cjs +20 -0
  46. package/components/display-settings-datetime/index.d.ts +7 -0
  47. package/components/display-settings-datetime/index.js +30 -0
  48. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +30 -0
  49. package/components/display-settings-grand-totals/index.cjs +41 -0
  50. package/components/display-settings-grand-totals/index.d.ts +7 -0
  51. package/components/display-settings-grand-totals/index.js +115 -0
  52. package/components/display-settings-numeric/display-settings-numeric.d.ts +73 -0
  53. package/components/display-settings-numeric/helpers/constants.d.ts +17 -0
  54. package/components/display-settings-numeric/index.cjs +146 -0
  55. package/components/display-settings-numeric/index.d.ts +7 -0
  56. package/components/display-settings-numeric/index.js +452 -0
  57. package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +44 -0
  58. package/components/display-settings-period-over-period/helpers/constants.d.ts +33 -0
  59. package/components/display-settings-period-over-period/index.cjs +103 -0
  60. package/components/display-settings-period-over-period/index.d.ts +7 -0
  61. package/components/display-settings-period-over-period/index.js +308 -0
  62. package/components/divider.module-DwOuLGU3-B19eHVg2.js +40 -0
  63. package/components/divider.module-DwOuLGU3-Bg8RrFkc.cjs +36 -0
  64. package/components/donut-chart-slots.config-BEwhfq27.js +39 -0
  65. package/components/donut-chart-slots.config-DIp-24lO.cjs +20 -0
  66. package/components/donut-chart.config-3DhKiSSM.js +177 -0
  67. package/components/donut-chart.config-DLWJUlHx.cjs +20 -0
  68. package/components/donut-chart.en-Blb9oSdU.cjs +20 -0
  69. package/components/donut-chart.en-CzjT4-XN.js +85 -0
  70. package/components/donut-chart.fr-BeTVa2wh.cjs +20 -0
  71. package/components/donut-chart.fr-DftPrKbG.js +39 -0
  72. package/components/donut-chart.nl-D9YGbOce.cjs +20 -0
  73. package/components/donut-chart.nl-NMatXfhK.js +39 -0
  74. package/components/draggable-data-item/draggable-data-item.d.ts +25 -0
  75. package/components/draggable-data-item/index.cjs +55 -0
  76. package/components/draggable-data-item/index.d.ts +7 -0
  77. package/components/draggable-data-item/index.js +140 -0
  78. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +29 -0
  79. package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +2 -0
  80. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +1 -0
  81. package/components/draggable-data-item-level/index.cjs +36 -0
  82. package/components/draggable-data-item-level/index.d.ts +7 -0
  83. package/components/draggable-data-item-level/index.js +293 -0
  84. package/components/droppable-slot/droppable-slot.d.ts +49 -0
  85. package/components/droppable-slot/index.cjs +69 -0
  86. package/components/droppable-slot/index.d.ts +7 -0
  87. package/components/droppable-slot/index.js +255 -0
  88. package/components/droppable-slot/item-slots-configs/area-chart-slots.config.d.ts +44 -0
  89. package/components/droppable-slot/item-slots-configs/bar-chart-slots.config.d.ts +24 -0
  90. package/components/droppable-slot/item-slots-configs/donut-chart-slots.config.d.ts +20 -0
  91. package/components/edit-item/edit-item.d.ts +50 -0
  92. package/components/edit-item/index.cjs +85 -0
  93. package/components/edit-item/index.d.ts +7 -0
  94. package/components/edit-item/index.js +333 -0
  95. package/components/edit-option/edit-option.d.ts +22 -0
  96. package/components/edit-option/helpers/control-markup.d.ts +14 -0
  97. package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +2 -0
  98. package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +2 -0
  99. package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +8 -0
  100. package/components/edit-option/helpers/control-templates/number-field-template.d.ts +2 -0
  101. package/components/edit-option/helpers/control-templates/picker-template.d.ts +2 -0
  102. package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +2 -0
  103. package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +2 -0
  104. package/components/edit-option/helpers/control-templates/slider-template.d.ts +2 -0
  105. package/components/edit-option/helpers/control-templates/switch-template.d.ts +2 -0
  106. package/components/edit-option/helpers/control-templates/text-field-template.d.ts +7 -0
  107. package/components/edit-option/helpers/generate-callback.d.ts +1 -0
  108. package/components/edit-option/helpers/get-control-by-key.d.ts +1 -0
  109. package/components/edit-option/helpers/get-extra-label-values.d.ts +7 -0
  110. package/components/edit-option/helpers/get-value-by-key.d.ts +1 -0
  111. package/components/edit-option/index.cjs +176 -0
  112. package/components/edit-option/index.d.ts +7 -0
  113. package/components/edit-option/index.js +507 -0
  114. package/components/edit-option/item-configs/bar-chart.config.d.ts +108 -0
  115. package/components/edit-option/item-configs/column-chart.config.d.ts +108 -0
  116. package/components/edit-option/item-configs/donut-chart.config.d.ts +102 -0
  117. package/components/edit-option/item-configs/imageobject.config.d.ts +128 -0
  118. package/components/edit-option/item-configs/line-chart.config.d.ts +96 -0
  119. package/components/edit-option/item-configs/textobject.config.d.ts +13 -0
  120. package/components/edit-option/item-translations/bar-chart.en.d.ts +48 -0
  121. package/components/edit-option/item-translations/bar-chart.fr.d.ts +23 -0
  122. package/components/edit-option/item-translations/bar-chart.nl.d.ts +23 -0
  123. package/components/edit-option/item-translations/donut-chart.en.d.ts +64 -0
  124. package/components/edit-option/item-translations/donut-chart.fr.d.ts +18 -0
  125. package/components/edit-option/item-translations/donut-chart.nl.d.ts +18 -0
  126. package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +27 -0
  127. package/components/edit-option-action-button-group/index.cjs +44 -0
  128. package/components/edit-option-action-button-group/index.d.ts +7 -0
  129. package/components/edit-option-action-button-group/index.js +144 -0
  130. package/components/edit-option-base/edit-option-base.d.ts +22 -0
  131. package/components/edit-option-base-DnrerC_T.cjs +53 -0
  132. package/components/edit-option-base-oIvlolV9.js +120 -0
  133. package/components/edit-option-color-picker/edit-option-color-picker.d.ts +23 -0
  134. package/components/edit-option-color-picker/index.cjs +472 -0
  135. package/components/edit-option-color-picker/index.d.ts +7 -0
  136. package/components/edit-option-color-picker/index.js +2553 -0
  137. package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +15 -0
  138. package/components/edit-option-multi-language-field/index.cjs +31 -0
  139. package/components/edit-option-multi-language-field/index.d.ts +7 -0
  140. package/components/edit-option-multi-language-field/index.js +102 -0
  141. package/components/edit-option-number-field/edit-option-number-field.d.ts +19 -0
  142. package/components/edit-option-number-field/index.cjs +32 -0
  143. package/components/edit-option-number-field/index.d.ts +7 -0
  144. package/components/edit-option-number-field/index.js +115 -0
  145. package/components/edit-option-picker/edit-option-picker.d.ts +22 -0
  146. package/components/edit-option-picker/index.cjs +35 -0
  147. package/components/edit-option-picker/index.d.ts +7 -0
  148. package/components/edit-option-picker/index.js +106 -0
  149. package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +28 -0
  150. package/components/edit-option-positions-number-field/index.cjs +42 -0
  151. package/components/edit-option-positions-number-field/index.d.ts +7 -0
  152. package/components/edit-option-positions-number-field/index.js +170 -0
  153. package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +18 -0
  154. package/components/edit-option-radio-button-group/index.cjs +36 -0
  155. package/components/edit-option-radio-button-group/index.d.ts +7 -0
  156. package/components/edit-option-radio-button-group/index.js +113 -0
  157. package/components/edit-option-slider/edit-option-slider.d.ts +15 -0
  158. package/components/edit-option-slider/index.cjs +48 -0
  159. package/components/edit-option-slider/index.d.ts +7 -0
  160. package/components/edit-option-slider/index.js +1253 -0
  161. package/components/edit-option-switch/edit-option-switch.d.ts +11 -0
  162. package/components/edit-option-switch/index.cjs +50 -0
  163. package/components/edit-option-switch/index.d.ts +7 -0
  164. package/components/edit-option-switch/index.js +171 -0
  165. package/components/edit-option-text-field/edit-option-text-field.d.ts +15 -0
  166. package/components/edit-option-text-field/index.cjs +31 -0
  167. package/components/edit-option-text-field/index.d.ts +7 -0
  168. package/components/edit-option-text-field/index.js +100 -0
  169. package/components/element-resolution-FCUT-wql--7ctE626.js +163 -0
  170. package/components/element-resolution-FCUT-wql-DSTvdyds.cjs +68 -0
  171. package/components/en-BsAhbMzm.js +1979 -0
  172. package/components/en-CdROUdjt.cjs +202 -0
  173. package/components/en-GB-g8rSQSba.cjs +20 -0
  174. package/components/en-GB-qub-Kemt.js +28 -0
  175. package/components/es-CwyPlN5d.cjs +20 -0
  176. package/components/es-KhTq4jX8.js +305 -0
  177. package/components/fi-Dh_ebgpe.js +97 -0
  178. package/components/fi-rijeZE5V.cjs +20 -0
  179. package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +36 -0
  180. package/components/focus-group-DHeTq18L-rNUu13eb.js +237 -0
  181. package/components/fr-BcgE-6S_.cjs +20 -0
  182. package/components/fr-CU727YF1.js +305 -0
  183. package/components/get-css-variable-Bhbr-Kr1.js +1413 -0
  184. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  185. package/components/he-Au3xg6lR.js +89 -0
  186. package/components/he-O6Ih8Bqh.cjs +20 -0
  187. package/components/hu-BnZ8y3xQ.cjs +20 -0
  188. package/components/hu-DNJ-P_MW.js +97 -0
  189. package/components/if-defined-CYpcjGCb-Bzbg7zmM.cjs +60 -0
  190. package/components/if-defined-CYpcjGCb-tXzyj9Dq.js +95 -0
  191. package/components/if-defined-Ch2dtEOS.js +29 -0
  192. package/components/if-defined-DMSuo5Qx.cjs +24 -0
  193. package/components/imageobject.config-B7ld9bj3.cjs +20 -0
  194. package/components/imageobject.config-DZLp9Elq.js +127 -0
  195. package/components/index-3ewegRbb.cjs +67 -0
  196. package/components/index-B0cBkCaq.cjs +39 -0
  197. package/components/index-B2N_PZf3.js +164 -0
  198. package/components/index-B2z7i1-X.js +77 -0
  199. package/components/index-B5VaT0lQ.js +145 -0
  200. package/components/index-BC-nmKjU.js +104 -0
  201. package/components/index-BD3VxQBH.js +44 -0
  202. package/components/index-BGaxFTL4.js +299 -0
  203. package/components/index-BRk42NQn.js +3171 -0
  204. package/components/index-Bjs6Yqet.cjs +185 -0
  205. package/components/index-Bofs4Q2E.cjs +36 -0
  206. package/components/index-BqTdFs1o.js +77 -0
  207. package/components/index-C2qG2Sm8-BQUlk-w0.js +935 -0
  208. package/components/index-C2qG2Sm8-CbVWlbag.cjs +95 -0
  209. package/components/index-CTPox3yS.cjs +54 -0
  210. package/components/index-C_3Ak4MQ.cjs +59 -0
  211. package/components/index-CayjvyyX.cjs +95 -0
  212. package/components/index-CkDDDzuJ.js +744 -0
  213. package/components/index-Cp-lHUlX.js +137 -0
  214. package/components/index-CtHO6VyI.cjs +42 -0
  215. package/components/index-D4x-O9Uc.cjs +192 -0
  216. package/components/index-D9vzXhtJ.cjs +95 -0
  217. package/components/index-DQiQXn8N.cjs +36 -0
  218. package/components/index-DVaeDCbe.js +48 -0
  219. package/components/index-DskAouD-.js +317 -0
  220. package/components/index-DszPbTTD.js +810 -0
  221. package/components/index-EQldC-LR.js +175 -0
  222. package/components/index-ON4x-yZ7.cjs +36 -0
  223. package/components/index-gfU9TGd5.cjs +57 -0
  224. package/components/index-liTHhAef.cjs +36 -0
  225. package/components/index.cjs +20 -0
  226. package/components/index.js +74 -0
  227. package/components/it-Bh5U73z6.js +305 -0
  228. package/components/it-PshtLMkq.cjs +20 -0
  229. package/components/ja-CCcHUL61.js +89 -0
  230. package/components/ja-KIS2HdaG.cjs +20 -0
  231. package/components/ko--l4qmjLV.cjs +20 -0
  232. package/components/ko-DhapsZMM.js +89 -0
  233. package/components/language-resolution-8yZa5r_P-CTSmbE1U.js +161 -0
  234. package/components/language-resolution-8yZa5r_P-DQ3rZzW5.cjs +52 -0
  235. package/components/line-chart.config-BZcvfO2c.cjs +20 -0
  236. package/components/line-chart.config-CIVN6uLI.js +115 -0
  237. package/components/localize-B6AsX_Zv.js +52 -0
  238. package/components/localize-DbobqcKs.cjs +20 -0
  239. package/components/luzmo-icons-BrtBl3E5.cjs +31 -0
  240. package/components/luzmo-icons-CZEpXpvy.js +613 -0
  241. package/components/mk-B9HPSuKa.js +97 -0
  242. package/components/mk-DZlj-edb.cjs +20 -0
  243. package/components/nl-BKlDqOXb.cjs +20 -0
  244. package/components/nl-BwSt5Bf4.js +109 -0
  245. package/components/no-D-DofYnx.js +109 -0
  246. package/components/no-D_SzxhTu.cjs +20 -0
  247. package/components/observe-slot-text-BG0H7bQK-C0wmc4DO.js +221 -0
  248. package/components/observe-slot-text-BG0H7bQK-CrkAqUMj.cjs +86 -0
  249. package/components/pl-D_L_0Boq.js +97 -0
  250. package/components/pl-PIK23rK_.cjs +20 -0
  251. package/components/popover-bg0EQQ8p-D4-hrhIx.js +86 -0
  252. package/components/popover-bg0EQQ8p-Dha09dhV.cjs +48 -0
  253. package/components/property-CD3dwBJC.js +1447 -0
  254. package/components/property-Su1Q6aME.cjs +124 -0
  255. package/components/pt-B0BBS5VB.js +89 -0
  256. package/components/pt-Dqlu4MS5.cjs +20 -0
  257. package/components/query-D5qWDopr.cjs +24 -0
  258. package/components/query-Ddbd72Um.js +39 -0
  259. package/components/query-assigned-nodes-C76XVPWY-BcyGjObB.cjs +40 -0
  260. package/components/query-assigned-nodes-C76XVPWY-DPC6kOmH.js +55 -0
  261. package/components/roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs +36 -0
  262. package/components/roving-tabindex-DOg4z6ZU-dufnVmvL.js +85 -0
  263. package/components/ru-Vo-m3O_2.js +108 -0
  264. package/components/ru-zyNDTB04.cjs +20 -0
  265. package/components/sized-mixin-PyCYpyQq-B40Ek2UB.js +82 -0
  266. package/components/sized-mixin-PyCYpyQq-sKzDjc75.cjs +36 -0
  267. package/components/slot-menu/index.cjs +55 -0
  268. package/components/slot-menu/index.d.ts +7 -0
  269. package/components/slot-menu/index.js +188 -0
  270. package/components/slot-menu/slot-menu.d.ts +66 -0
  271. package/components/slot-menu-list/index.cjs +39 -0
  272. package/components/slot-menu-list/index.d.ts +7 -0
  273. package/components/slot-menu-list/index.js +351 -0
  274. package/components/slot-menu-list/slot-menu-list.d.ts +33 -0
  275. package/components/state-B1a8XIDm.js +31 -0
  276. package/components/state-ByiKNRhp.cjs +24 -0
  277. package/components/sv-1DPTltNQ.cjs +20 -0
  278. package/components/sv-CiozMaev.js +89 -0
  279. package/components/task-BPD0PyaQ.js +120 -0
  280. package/components/task-HFsHfTra.cjs +24 -0
  281. package/components/text-field-7ITo3Lac-CKXsSqJP.cjs +131 -0
  282. package/components/text-field-7ITo3Lac-DqVO04kR.js +412 -0
  283. package/components/textobject.config-C8opcGG4.js +52 -0
  284. package/components/textobject.config-DbAajFz8.cjs +20 -0
  285. package/components/tr-BkmWvOG2.cjs +20 -0
  286. package/components/tr-D_D4i5iv.js +109 -0
  287. package/components/utils.cjs +20 -0
  288. package/components/utils.js +20 -0
  289. package/components/when-CDK1Tt5Y-BN3qcTK0.cjs +40 -0
  290. package/components/when-CDK1Tt5Y-C6ViXC43.js +47 -0
  291. package/components/zh-CN-DTZ4OmdP.cjs +20 -0
  292. package/components/zh-CN-wsl7eFSd.js +89 -0
  293. package/components/zh-TW-DTZ4OmdP.cjs +20 -0
  294. package/components/zh-TW-wsl7eFSd.js +89 -0
  295. package/custom-elements.json +4228 -0
  296. package/index.d.ts +23 -0
  297. package/package.json +133 -14
  298. package/utils/formatter/calculate-duration.d.ts +2 -0
  299. package/utils/formatter/decompose-numeric-format.d.ts +11 -0
  300. package/utils/formatter/default-local-formats.d.ts +20 -0
  301. package/utils/formatter/formats/cs.d.ts +20 -0
  302. package/utils/formatter/formats/da.d.ts +20 -0
  303. package/utils/formatter/formats/de.d.ts +21 -0
  304. package/utils/formatter/formats/en-GB.d.ts +21 -0
  305. package/utils/formatter/formats/en-US.d.ts +1 -0
  306. package/utils/formatter/formats/en.d.ts +1 -0
  307. package/utils/formatter/formats/es.d.ts +54 -0
  308. package/utils/formatter/formats/fi.d.ts +20 -0
  309. package/utils/formatter/formats/fr.d.ts +54 -0
  310. package/utils/formatter/formats/he.d.ts +20 -0
  311. package/utils/formatter/formats/hu.d.ts +20 -0
  312. package/utils/formatter/formats/it.d.ts +54 -0
  313. package/utils/formatter/formats/ja.d.ts +20 -0
  314. package/utils/formatter/formats/ko.d.ts +20 -0
  315. package/utils/formatter/formats/mk.d.ts +20 -0
  316. package/utils/formatter/formats/nl.d.ts +21 -0
  317. package/utils/formatter/formats/no.d.ts +21 -0
  318. package/utils/formatter/formats/pl.d.ts +20 -0
  319. package/utils/formatter/formats/pt.d.ts +20 -0
  320. package/utils/formatter/formats/ru.d.ts +20 -0
  321. package/utils/formatter/formats/sv.d.ts +20 -0
  322. package/utils/formatter/formats/tr.d.ts +21 -0
  323. package/utils/formatter/formats/zh-CN.d.ts +20 -0
  324. package/utils/formatter/formats/zh-TW.d.ts +20 -0
  325. package/utils/formatter/formatter.d.ts +9 -0
  326. package/utils/formatter/localize.d.ts +3 -0
  327. package/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  328. package/utils/get-css-variable.d.ts +1 -0
  329. package/utils/index.d.ts +1 -0
  330. package/utils/time/formats.const.d.ts +8 -0
  331. package/utils/time/periods.const.d.ts +29 -0
  332. package/utils/types/column.types.d.ts +56 -0
  333. package/utils/types/type-check.d.ts +7 -0
  334. package/lib/37.js +0 -1
  335. package/lib/729.js +0 -1
  336. package/lib/common-31743c5a.js +0 -13
  337. package/lib/common-b02547a0.js +0 -1
  338. package/lib/common-b49d9a9d.js +0 -1
  339. package/lib/common-b5232813.js +0 -56
  340. package/lib/common-cefd4f4c.js +0 -1
  341. package/lib/common-d6cb565f.js +0 -1
  342. package/lib/common-fd868059.js +0 -1
  343. package/lib/common-fedaf338.js +0 -32
  344. package/lib/edit-option-picker/index.js +0 -314
  345. package/lib/edit-option-slider/index.js +0 -102
  346. package/lib/edit-option-toggle/index.js +0 -114
  347. package/lib/index.js +0 -346
  348. package/lib/vendors-93cc3efa.js +0 -1
  349. package/lib/vendors-bb3d84b5.js +0 -1
@@ -0,0 +1,1979 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 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
+ import { h as St } from "./task-BPD0PyaQ.js";
21
+ import "./index-EQldC-LR.js";
22
+ import "./index-BGaxFTL4.js";
23
+ import "./index-B5VaT0lQ.js";
24
+ import "./index-BC-nmKjU.js";
25
+ import "./index-DszPbTTD.js";
26
+ import "./index-CkDDDzuJ.js";
27
+ import "./index-Cp-lHUlX.js";
28
+ import { I as bt, r as kt, x as D, n as ge } from "./property-CD3dwBJC.js";
29
+ import { m as wt, d as Tt } from "./sized-mixin-PyCYpyQq-B40Ek2UB.js";
30
+ import { C as ve, h as Me } from "./luzmo-icons-CZEpXpvy.js";
31
+ import { i as R, l as Ft, a as zt, b as Se } from "./localize-B6AsX_Zv.js";
32
+ import { d as Dt } from "./decompose-numeric-format-BuZcjH2k.js";
33
+ import { e as I } from "./query-Ddbd72Um.js";
34
+ function Yt(e) {
35
+ return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
36
+ }
37
+ function ce(e, t) {
38
+ if ((r = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e")) < 0) return null;
39
+ var r, n = e.slice(0, r);
40
+ return [
41
+ n.length > 1 ? n[0] + n.slice(2) : n,
42
+ +e.slice(r + 1)
43
+ ];
44
+ }
45
+ function Ct(e) {
46
+ return e = ce(Math.abs(e)), e ? e[1] : NaN;
47
+ }
48
+ function xt(e, t) {
49
+ return function(r, n) {
50
+ for (var i = r.length, a = [], l = 0, _ = e[0], k = 0; i > 0 && _ > 0 && (k + _ + 1 > n && (_ = Math.max(1, n - k)), a.push(r.substring(i -= _, i + _)), !((k += _ + 1) > n)); )
51
+ _ = e[l = (l + 1) % e.length];
52
+ return a.reverse().join(t);
53
+ };
54
+ }
55
+ function Ut(e) {
56
+ return function(t) {
57
+ return t.replace(/[0-9]/g, function(r) {
58
+ return e[+r];
59
+ });
60
+ };
61
+ }
62
+ var At = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
63
+ function De(e) {
64
+ if (!(t = At.exec(e))) throw new Error("invalid format: " + e);
65
+ var t;
66
+ return new Ue({
67
+ fill: t[1],
68
+ align: t[2],
69
+ sign: t[3],
70
+ symbol: t[4],
71
+ zero: t[5],
72
+ width: t[6],
73
+ comma: t[7],
74
+ precision: t[8] && t[8].slice(1),
75
+ trim: t[9],
76
+ type: t[10]
77
+ });
78
+ }
79
+ De.prototype = Ue.prototype;
80
+ function Ue(e) {
81
+ 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 + "";
82
+ }
83
+ Ue.prototype.toString = function() {
84
+ 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;
85
+ };
86
+ function Lt(e) {
87
+ e: for (var t = e.length, r = 1, n = -1, i; r < t; ++r)
88
+ switch (e[r]) {
89
+ case ".":
90
+ n = i = r;
91
+ break;
92
+ case "0":
93
+ n === 0 && (n = r), i = r;
94
+ break;
95
+ default:
96
+ if (!+e[r]) break e;
97
+ n > 0 && (n = 0);
98
+ break;
99
+ }
100
+ return n > 0 ? e.slice(0, n) + e.slice(i + 1) : e;
101
+ }
102
+ var tt;
103
+ function $t(e, t) {
104
+ var r = ce(e, t);
105
+ if (!r) return e + "";
106
+ var n = r[0], i = r[1], a = i - (tt = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, l = n.length;
107
+ return a === l ? n : a > l ? n + new Array(a - l + 1).join("0") : a > 0 ? n.slice(0, a) + "." + n.slice(a) : "0." + new Array(1 - a).join("0") + ce(e, Math.max(0, t + a - 1))[0];
108
+ }
109
+ function We(e, t) {
110
+ var r = ce(e, t);
111
+ if (!r) return e + "";
112
+ var n = r[0], i = r[1];
113
+ return i < 0 ? "0." + new Array(-i).join("0") + n : n.length > i + 1 ? n.slice(0, i + 1) + "." + n.slice(i + 1) : n + new Array(i - n.length + 2).join("0");
114
+ }
115
+ const Ee = {
116
+ "%": (e, t) => (e * 100).toFixed(t),
117
+ b: (e) => Math.round(e).toString(2),
118
+ c: (e) => e + "",
119
+ d: Yt,
120
+ e: (e, t) => e.toExponential(t),
121
+ f: (e, t) => e.toFixed(t),
122
+ g: (e, t) => e.toPrecision(t),
123
+ o: (e) => Math.round(e).toString(8),
124
+ p: (e, t) => We(e * 100, t),
125
+ r: We,
126
+ s: $t,
127
+ X: (e) => Math.round(e).toString(16).toUpperCase(),
128
+ x: (e) => Math.round(e).toString(16)
129
+ };
130
+ function He(e) {
131
+ return e;
132
+ }
133
+ var Ie = Array.prototype.map, Oe = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
134
+ function Nt(e) {
135
+ var t = e.grouping === void 0 || e.thousands === void 0 ? He : xt(Ie.call(e.grouping, Number), e.thousands + ""), r = e.currency === void 0 ? "" : e.currency[0] + "", n = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? He : Ut(Ie.call(e.numerals, String)), l = e.percent === void 0 ? "%" : e.percent + "", _ = e.minus === void 0 ? "−" : e.minus + "", k = e.nan === void 0 ? "NaN" : e.nan + "";
136
+ function u(y) {
137
+ y = De(y);
138
+ var H = y.fill, m = y.align, c = y.sign, d = y.symbol, S = y.zero, h = y.width, Y = y.comma, b = y.precision, z = y.trim, g = y.type;
139
+ g === "n" ? (Y = !0, g = "g") : Ee[g] || (b === void 0 && (b = 12), z = !0, g = "g"), (S || H === "0" && m === "=") && (S = !0, H = "0", m = "=");
140
+ var F = d === "$" ? r : d === "#" && /[boxX]/.test(g) ? "0" + g.toLowerCase() : "", ue = d === "$" ? n : /[%p]/.test(g) ? l : "", G = Ee[g], _e = /[defgprs%]/.test(g);
141
+ b = b === void 0 ? 6 : /[gprs]/.test(g) ? Math.max(1, Math.min(21, b)) : Math.max(0, Math.min(20, b));
142
+ function he(p) {
143
+ var O = F, A = ue, Q, de, X;
144
+ if (g === "c")
145
+ A = G(p) + A, p = "";
146
+ else {
147
+ p = +p;
148
+ var K = p < 0 || 1 / p < 0;
149
+ if (p = isNaN(p) ? k : G(Math.abs(p), b), z && (p = Lt(p)), K && +p == 0 && c !== "+" && (K = !1), O = (K ? c === "(" ? c : _ : c === "-" || c === "(" ? "" : c) + O, A = (g === "s" ? Oe[8 + tt / 3] : "") + A + (K && c === "(" ? ")" : ""), _e) {
150
+ for (Q = -1, de = p.length; ++Q < de; )
151
+ if (X = p.charCodeAt(Q), 48 > X || X > 57) {
152
+ A = (X === 46 ? i + p.slice(Q + 1) : p.slice(Q)) + A, p = p.slice(0, Q);
153
+ break;
154
+ }
155
+ }
156
+ }
157
+ Y && !S && (p = t(p, 1 / 0));
158
+ var ee = O.length + p.length + A.length, E = ee < h ? new Array(h - ee + 1).join(H) : "";
159
+ switch (Y && S && (p = t(E + p, E.length ? h - A.length : 1 / 0), E = ""), m) {
160
+ case "<":
161
+ p = O + p + A + E;
162
+ break;
163
+ case "=":
164
+ p = O + E + p + A;
165
+ break;
166
+ case "^":
167
+ p = E.slice(0, ee = E.length >> 1) + O + p + A + E.slice(ee);
168
+ break;
169
+ default:
170
+ p = E + O + p + A;
171
+ break;
172
+ }
173
+ return a(p);
174
+ }
175
+ return he.toString = function() {
176
+ return y + "";
177
+ }, he;
178
+ }
179
+ function w(y, H) {
180
+ var m = u((y = De(y), y.type = "f", y)), c = Math.max(-8, Math.min(8, Math.floor(Ct(H) / 3))) * 3, d = Math.pow(10, -c), S = Oe[8 + c / 3];
181
+ return function(h) {
182
+ return m(d * h) + S;
183
+ };
184
+ }
185
+ return {
186
+ format: u,
187
+ formatPrefix: w
188
+ };
189
+ }
190
+ const be = /* @__PURE__ */ new Date(), ke = /* @__PURE__ */ new Date();
191
+ function x(e, t, r, n) {
192
+ function i(a) {
193
+ return e(a = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+a)), a;
194
+ }
195
+ return i.floor = (a) => (e(a = /* @__PURE__ */ new Date(+a)), a), i.ceil = (a) => (e(a = new Date(a - 1)), t(a, 1), e(a), a), i.round = (a) => {
196
+ const l = i(a), _ = i.ceil(a);
197
+ return a - l < _ - a ? l : _;
198
+ }, i.offset = (a, l) => (t(a = /* @__PURE__ */ new Date(+a), l == null ? 1 : Math.floor(l)), a), i.range = (a, l, _) => {
199
+ const k = [];
200
+ if (a = i.ceil(a), _ = _ == null ? 1 : Math.floor(_), !(a < l) || !(_ > 0)) return k;
201
+ let u;
202
+ do
203
+ k.push(u = /* @__PURE__ */ new Date(+a)), t(a, _), e(a);
204
+ while (u < a && a < l);
205
+ return k;
206
+ }, i.filter = (a) => x((l) => {
207
+ if (l >= l) for (; e(l), !a(l); ) l.setTime(l - 1);
208
+ }, (l, _) => {
209
+ if (l >= l)
210
+ if (_ < 0) for (; ++_ <= 0; )
211
+ for (; t(l, -1), !a(l); )
212
+ ;
213
+ else for (; --_ >= 0; )
214
+ for (; t(l, 1), !a(l); )
215
+ ;
216
+ }), r && (i.count = (a, l) => (be.setTime(+a), ke.setTime(+l), e(be), e(ke), Math.floor(r(be, ke))), i.every = (a) => (a = Math.floor(a), !isFinite(a) || !(a > 0) ? null : a > 1 ? i.filter(n ? (l) => n(l) % a === 0 : (l) => i.count(0, l) % a === 0) : i)), i;
217
+ }
218
+ const se = 1e3, V = se * 60, le = V * 60, me = le * 24, rt = me * 7, nt = x((e) => {
219
+ e.setTime(e - e.getMilliseconds());
220
+ }, (e, t) => {
221
+ e.setTime(+e + t * se);
222
+ }, (e, t) => (t - e) / se, (e) => e.getUTCSeconds());
223
+ nt.range;
224
+ const at = x((e) => {
225
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * se);
226
+ }, (e, t) => {
227
+ e.setTime(+e + t * V);
228
+ }, (e, t) => (t - e) / V, (e) => e.getMinutes());
229
+ at.range;
230
+ const Wt = x((e) => {
231
+ e.setUTCSeconds(0, 0);
232
+ }, (e, t) => {
233
+ e.setTime(+e + t * V);
234
+ }, (e, t) => (t - e) / V, (e) => e.getUTCMinutes());
235
+ Wt.range;
236
+ const ot = x((e) => {
237
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * se - e.getMinutes() * V);
238
+ }, (e, t) => {
239
+ e.setTime(+e + t * le);
240
+ }, (e, t) => (t - e) / le, (e) => e.getHours());
241
+ ot.range;
242
+ const Et = x((e) => {
243
+ e.setUTCMinutes(0, 0, 0);
244
+ }, (e, t) => {
245
+ e.setTime(+e + t * le);
246
+ }, (e, t) => (t - e) / le, (e) => e.getUTCHours());
247
+ Et.range;
248
+ const pe = x(
249
+ (e) => e.setHours(0, 0, 0, 0),
250
+ (e, t) => e.setDate(e.getDate() + t),
251
+ (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * V) / me,
252
+ (e) => e.getDate() - 1
253
+ );
254
+ pe.range;
255
+ const Ae = x((e) => {
256
+ e.setUTCHours(0, 0, 0, 0);
257
+ }, (e, t) => {
258
+ e.setUTCDate(e.getUTCDate() + t);
259
+ }, (e, t) => (t - e) / me, (e) => e.getUTCDate() - 1);
260
+ Ae.range;
261
+ const Ht = x((e) => {
262
+ e.setUTCHours(0, 0, 0, 0);
263
+ }, (e, t) => {
264
+ e.setUTCDate(e.getUTCDate() + t);
265
+ }, (e, t) => (t - e) / me, (e) => Math.floor(e / me));
266
+ Ht.range;
267
+ function B(e) {
268
+ return x((t) => {
269
+ t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
270
+ }, (t, r) => {
271
+ t.setDate(t.getDate() + r * 7);
272
+ }, (t, r) => (r - t - (r.getTimezoneOffset() - t.getTimezoneOffset()) * V) / rt);
273
+ }
274
+ const Le = B(0), fe = B(1), It = B(2), Ot = B(3), re = B(4), qt = B(5), Qt = B(6);
275
+ Le.range;
276
+ fe.range;
277
+ It.range;
278
+ Ot.range;
279
+ re.range;
280
+ qt.range;
281
+ Qt.range;
282
+ function J(e) {
283
+ return x((t) => {
284
+ t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
285
+ }, (t, r) => {
286
+ t.setUTCDate(t.getUTCDate() + r * 7);
287
+ }, (t, r) => (r - t) / rt);
288
+ }
289
+ const it = J(0), ye = J(1), Vt = J(2), Pt = J(3), ne = J(4), Gt = J(5), jt = J(6);
290
+ it.range;
291
+ ye.range;
292
+ Vt.range;
293
+ Pt.range;
294
+ ne.range;
295
+ Gt.range;
296
+ jt.range;
297
+ const st = x((e) => {
298
+ e.setDate(1), e.setHours(0, 0, 0, 0);
299
+ }, (e, t) => {
300
+ e.setMonth(e.getMonth() + t);
301
+ }, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
302
+ st.range;
303
+ const Rt = x((e) => {
304
+ e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
305
+ }, (e, t) => {
306
+ e.setUTCMonth(e.getUTCMonth() + t);
307
+ }, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
308
+ Rt.range;
309
+ const P = x((e) => {
310
+ e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
311
+ }, (e, t) => {
312
+ e.setFullYear(e.getFullYear() + t);
313
+ }, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
314
+ P.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : x((t) => {
315
+ t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
316
+ }, (t, r) => {
317
+ t.setFullYear(t.getFullYear() + r * e);
318
+ });
319
+ P.range;
320
+ const Z = x((e) => {
321
+ e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
322
+ }, (e, t) => {
323
+ e.setUTCFullYear(e.getUTCFullYear() + t);
324
+ }, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
325
+ Z.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : x((t) => {
326
+ t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
327
+ }, (t, r) => {
328
+ t.setUTCFullYear(t.getUTCFullYear() + r * e);
329
+ });
330
+ Z.range;
331
+ function we(e) {
332
+ if (0 <= e.y && e.y < 100) {
333
+ var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
334
+ return t.setFullYear(e.y), t;
335
+ }
336
+ return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
337
+ }
338
+ function Te(e) {
339
+ if (0 <= e.y && e.y < 100) {
340
+ var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
341
+ return t.setUTCFullYear(e.y), t;
342
+ }
343
+ return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
344
+ }
345
+ function ae(e, t, r) {
346
+ return { y: e, m: t, d: r, H: 0, M: 0, S: 0, L: 0 };
347
+ }
348
+ function Ye(e) {
349
+ var t = e.dateTime, r = e.date, n = e.time, i = e.periods, a = e.days, l = e.shortDays, _ = e.months, k = e.shortMonths, u = oe(i), w = ie(i), y = oe(a), H = ie(a), m = oe(l), c = ie(l), d = oe(_), S = ie(_), h = oe(k), Y = ie(k), b = {
350
+ a: K,
351
+ A: ee,
352
+ b: E,
353
+ B: dt,
354
+ c: null,
355
+ d: je,
356
+ e: je,
357
+ f: pr,
358
+ g: zr,
359
+ G: Yr,
360
+ H: fr,
361
+ I: yr,
362
+ j: gr,
363
+ L: lt,
364
+ m: _r,
365
+ M: vr,
366
+ p: ct,
367
+ q: ft,
368
+ Q: Be,
369
+ s: Je,
370
+ S: Mr,
371
+ u: Sr,
372
+ U: br,
373
+ V: kr,
374
+ w: wr,
375
+ W: Tr,
376
+ x: null,
377
+ X: null,
378
+ y: Fr,
379
+ Y: Dr,
380
+ Z: Cr,
381
+ "%": Ze
382
+ }, z = {
383
+ a: yt,
384
+ A: gt,
385
+ b: pt,
386
+ B: _t,
387
+ c: null,
388
+ d: Re,
389
+ e: Re,
390
+ f: Lr,
391
+ g: Vr,
392
+ G: Gr,
393
+ H: xr,
394
+ I: Ur,
395
+ j: Ar,
396
+ L: ut,
397
+ m: $r,
398
+ M: Nr,
399
+ p: vt,
400
+ q: Mt,
401
+ Q: Be,
402
+ s: Je,
403
+ S: Wr,
404
+ u: Er,
405
+ U: Hr,
406
+ V: Ir,
407
+ w: Or,
408
+ W: qr,
409
+ x: null,
410
+ X: null,
411
+ y: Qr,
412
+ Y: Pr,
413
+ Z: jr,
414
+ "%": Ze
415
+ }, g = {
416
+ a: he,
417
+ A: p,
418
+ b: O,
419
+ B: A,
420
+ c: Q,
421
+ d: Pe,
422
+ e: Pe,
423
+ f: ur,
424
+ g: Ve,
425
+ G: Qe,
426
+ H: Ge,
427
+ I: Ge,
428
+ j: ir,
429
+ L: mr,
430
+ m: or,
431
+ M: sr,
432
+ p: _e,
433
+ q: ar,
434
+ Q: dr,
435
+ s: cr,
436
+ S: lr,
437
+ u: Kt,
438
+ U: er,
439
+ V: tr,
440
+ w: Xt,
441
+ W: rr,
442
+ x: de,
443
+ X,
444
+ y: Ve,
445
+ Y: Qe,
446
+ Z: nr,
447
+ "%": hr
448
+ };
449
+ b.x = F(r, b), b.X = F(n, b), b.c = F(t, b), z.x = F(r, z), z.X = F(n, z), z.c = F(t, z);
450
+ function F(s, f) {
451
+ return function(v) {
452
+ var o = [], L = -1, T = 0, N = s.length, W, j, Ne;
453
+ for (v instanceof Date || (v = /* @__PURE__ */ new Date(+v)); ++L < N; )
454
+ s.charCodeAt(L) === 37 && (o.push(s.slice(T, L)), (j = qe[W = s.charAt(++L)]) != null ? W = s.charAt(++L) : j = W === "e" ? " " : "0", (Ne = f[W]) && (W = Ne(v, j)), o.push(W), T = L + 1);
455
+ return o.push(s.slice(T, L)), o.join("");
456
+ };
457
+ }
458
+ function ue(s, f) {
459
+ return function(v) {
460
+ var o = ae(1900, void 0, 1), L = G(o, s, v += "", 0), T, N;
461
+ if (L != v.length) return null;
462
+ if ("Q" in o) return new Date(o.Q);
463
+ if ("s" in o) return new Date(o.s * 1e3 + ("L" in o ? o.L : 0));
464
+ if (f && !("Z" in o) && (o.Z = 0), "p" in o && (o.H = o.H % 12 + o.p * 12), o.m === void 0 && (o.m = "q" in o ? o.q : 0), "V" in o) {
465
+ if (o.V < 1 || o.V > 53) return null;
466
+ "w" in o || (o.w = 1), "Z" in o ? (T = Te(ae(o.y, 0, 1)), N = T.getUTCDay(), T = N > 4 || N === 0 ? ye.ceil(T) : ye(T), T = Ae.offset(T, (o.V - 1) * 7), o.y = T.getUTCFullYear(), o.m = T.getUTCMonth(), o.d = T.getUTCDate() + (o.w + 6) % 7) : (T = we(ae(o.y, 0, 1)), N = T.getDay(), T = N > 4 || N === 0 ? fe.ceil(T) : fe(T), T = pe.offset(T, (o.V - 1) * 7), o.y = T.getFullYear(), o.m = T.getMonth(), o.d = T.getDate() + (o.w + 6) % 7);
467
+ } else ("W" in o || "U" in o) && ("w" in o || (o.w = "u" in o ? o.u % 7 : "W" in o ? 1 : 0), N = "Z" in o ? Te(ae(o.y, 0, 1)).getUTCDay() : we(ae(o.y, 0, 1)).getDay(), o.m = 0, o.d = "W" in o ? (o.w + 6) % 7 + o.W * 7 - (N + 5) % 7 : o.w + o.U * 7 - (N + 6) % 7);
468
+ return "Z" in o ? (o.H += o.Z / 100 | 0, o.M += o.Z % 100, Te(o)) : we(o);
469
+ };
470
+ }
471
+ function G(s, f, v, o) {
472
+ for (var L = 0, T = f.length, N = v.length, W, j; L < T; ) {
473
+ if (o >= N) return -1;
474
+ if (W = f.charCodeAt(L++), W === 37) {
475
+ if (W = f.charAt(L++), j = g[W in qe ? f.charAt(L++) : W], !j || (o = j(s, v, o)) < 0) return -1;
476
+ } else if (W != v.charCodeAt(o++))
477
+ return -1;
478
+ }
479
+ return o;
480
+ }
481
+ function _e(s, f, v) {
482
+ var o = u.exec(f.slice(v));
483
+ return o ? (s.p = w.get(o[0].toLowerCase()), v + o[0].length) : -1;
484
+ }
485
+ function he(s, f, v) {
486
+ var o = m.exec(f.slice(v));
487
+ return o ? (s.w = c.get(o[0].toLowerCase()), v + o[0].length) : -1;
488
+ }
489
+ function p(s, f, v) {
490
+ var o = y.exec(f.slice(v));
491
+ return o ? (s.w = H.get(o[0].toLowerCase()), v + o[0].length) : -1;
492
+ }
493
+ function O(s, f, v) {
494
+ var o = h.exec(f.slice(v));
495
+ return o ? (s.m = Y.get(o[0].toLowerCase()), v + o[0].length) : -1;
496
+ }
497
+ function A(s, f, v) {
498
+ var o = d.exec(f.slice(v));
499
+ return o ? (s.m = S.get(o[0].toLowerCase()), v + o[0].length) : -1;
500
+ }
501
+ function Q(s, f, v) {
502
+ return G(s, t, f, v);
503
+ }
504
+ function de(s, f, v) {
505
+ return G(s, r, f, v);
506
+ }
507
+ function X(s, f, v) {
508
+ return G(s, n, f, v);
509
+ }
510
+ function K(s) {
511
+ return l[s.getDay()];
512
+ }
513
+ function ee(s) {
514
+ return a[s.getDay()];
515
+ }
516
+ function E(s) {
517
+ return k[s.getMonth()];
518
+ }
519
+ function dt(s) {
520
+ return _[s.getMonth()];
521
+ }
522
+ function ct(s) {
523
+ return i[+(s.getHours() >= 12)];
524
+ }
525
+ function ft(s) {
526
+ return 1 + ~~(s.getMonth() / 3);
527
+ }
528
+ function yt(s) {
529
+ return l[s.getUTCDay()];
530
+ }
531
+ function gt(s) {
532
+ return a[s.getUTCDay()];
533
+ }
534
+ function pt(s) {
535
+ return k[s.getUTCMonth()];
536
+ }
537
+ function _t(s) {
538
+ return _[s.getUTCMonth()];
539
+ }
540
+ function vt(s) {
541
+ return i[+(s.getUTCHours() >= 12)];
542
+ }
543
+ function Mt(s) {
544
+ return 1 + ~~(s.getUTCMonth() / 3);
545
+ }
546
+ return {
547
+ format: function(s) {
548
+ var f = F(s += "", b);
549
+ return f.toString = function() {
550
+ return s;
551
+ }, f;
552
+ },
553
+ parse: function(s) {
554
+ var f = ue(s += "", !1);
555
+ return f.toString = function() {
556
+ return s;
557
+ }, f;
558
+ },
559
+ utcFormat: function(s) {
560
+ var f = F(s += "", z);
561
+ return f.toString = function() {
562
+ return s;
563
+ }, f;
564
+ },
565
+ utcParse: function(s) {
566
+ var f = ue(s += "", !0);
567
+ return f.toString = function() {
568
+ return s;
569
+ }, f;
570
+ }
571
+ };
572
+ }
573
+ var qe = { "-": "", _: " ", 0: "0" }, C = /^\s*\d+/, Zt = /^%/, Bt = /[\\^$*+?|[\]().{}]/g;
574
+ function M(e, t, r) {
575
+ var n = e < 0 ? "-" : "", i = (n ? -e : e) + "", a = i.length;
576
+ return n + (a < r ? new Array(r - a + 1).join(t) + i : i);
577
+ }
578
+ function Jt(e) {
579
+ return e.replace(Bt, "\\$&");
580
+ }
581
+ function oe(e) {
582
+ return new RegExp("^(?:" + e.map(Jt).join("|") + ")", "i");
583
+ }
584
+ function ie(e) {
585
+ return new Map(e.map((t, r) => [t.toLowerCase(), r]));
586
+ }
587
+ function Xt(e, t, r) {
588
+ var n = C.exec(t.slice(r, r + 1));
589
+ return n ? (e.w = +n[0], r + n[0].length) : -1;
590
+ }
591
+ function Kt(e, t, r) {
592
+ var n = C.exec(t.slice(r, r + 1));
593
+ return n ? (e.u = +n[0], r + n[0].length) : -1;
594
+ }
595
+ function er(e, t, r) {
596
+ var n = C.exec(t.slice(r, r + 2));
597
+ return n ? (e.U = +n[0], r + n[0].length) : -1;
598
+ }
599
+ function tr(e, t, r) {
600
+ var n = C.exec(t.slice(r, r + 2));
601
+ return n ? (e.V = +n[0], r + n[0].length) : -1;
602
+ }
603
+ function rr(e, t, r) {
604
+ var n = C.exec(t.slice(r, r + 2));
605
+ return n ? (e.W = +n[0], r + n[0].length) : -1;
606
+ }
607
+ function Qe(e, t, r) {
608
+ var n = C.exec(t.slice(r, r + 4));
609
+ return n ? (e.y = +n[0], r + n[0].length) : -1;
610
+ }
611
+ function Ve(e, t, r) {
612
+ var n = C.exec(t.slice(r, r + 2));
613
+ return n ? (e.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3), r + n[0].length) : -1;
614
+ }
615
+ function nr(e, t, r) {
616
+ var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r, r + 6));
617
+ return n ? (e.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), r + n[0].length) : -1;
618
+ }
619
+ function ar(e, t, r) {
620
+ var n = C.exec(t.slice(r, r + 1));
621
+ return n ? (e.q = n[0] * 3 - 3, r + n[0].length) : -1;
622
+ }
623
+ function or(e, t, r) {
624
+ var n = C.exec(t.slice(r, r + 2));
625
+ return n ? (e.m = n[0] - 1, r + n[0].length) : -1;
626
+ }
627
+ function Pe(e, t, r) {
628
+ var n = C.exec(t.slice(r, r + 2));
629
+ return n ? (e.d = +n[0], r + n[0].length) : -1;
630
+ }
631
+ function ir(e, t, r) {
632
+ var n = C.exec(t.slice(r, r + 3));
633
+ return n ? (e.m = 0, e.d = +n[0], r + n[0].length) : -1;
634
+ }
635
+ function Ge(e, t, r) {
636
+ var n = C.exec(t.slice(r, r + 2));
637
+ return n ? (e.H = +n[0], r + n[0].length) : -1;
638
+ }
639
+ function sr(e, t, r) {
640
+ var n = C.exec(t.slice(r, r + 2));
641
+ return n ? (e.M = +n[0], r + n[0].length) : -1;
642
+ }
643
+ function lr(e, t, r) {
644
+ var n = C.exec(t.slice(r, r + 2));
645
+ return n ? (e.S = +n[0], r + n[0].length) : -1;
646
+ }
647
+ function mr(e, t, r) {
648
+ var n = C.exec(t.slice(r, r + 3));
649
+ return n ? (e.L = +n[0], r + n[0].length) : -1;
650
+ }
651
+ function ur(e, t, r) {
652
+ var n = C.exec(t.slice(r, r + 6));
653
+ return n ? (e.L = Math.floor(n[0] / 1e3), r + n[0].length) : -1;
654
+ }
655
+ function hr(e, t, r) {
656
+ var n = Zt.exec(t.slice(r, r + 1));
657
+ return n ? r + n[0].length : -1;
658
+ }
659
+ function dr(e, t, r) {
660
+ var n = C.exec(t.slice(r));
661
+ return n ? (e.Q = +n[0], r + n[0].length) : -1;
662
+ }
663
+ function cr(e, t, r) {
664
+ var n = C.exec(t.slice(r));
665
+ return n ? (e.s = +n[0], r + n[0].length) : -1;
666
+ }
667
+ function je(e, t) {
668
+ return M(e.getDate(), t, 2);
669
+ }
670
+ function fr(e, t) {
671
+ return M(e.getHours(), t, 2);
672
+ }
673
+ function yr(e, t) {
674
+ return M(e.getHours() % 12 || 12, t, 2);
675
+ }
676
+ function gr(e, t) {
677
+ return M(1 + pe.count(P(e), e), t, 3);
678
+ }
679
+ function lt(e, t) {
680
+ return M(e.getMilliseconds(), t, 3);
681
+ }
682
+ function pr(e, t) {
683
+ return lt(e, t) + "000";
684
+ }
685
+ function _r(e, t) {
686
+ return M(e.getMonth() + 1, t, 2);
687
+ }
688
+ function vr(e, t) {
689
+ return M(e.getMinutes(), t, 2);
690
+ }
691
+ function Mr(e, t) {
692
+ return M(e.getSeconds(), t, 2);
693
+ }
694
+ function Sr(e) {
695
+ var t = e.getDay();
696
+ return t === 0 ? 7 : t;
697
+ }
698
+ function br(e, t) {
699
+ return M(Le.count(P(e) - 1, e), t, 2);
700
+ }
701
+ function mt(e) {
702
+ var t = e.getDay();
703
+ return t >= 4 || t === 0 ? re(e) : re.ceil(e);
704
+ }
705
+ function kr(e, t) {
706
+ return e = mt(e), M(re.count(P(e), e) + (P(e).getDay() === 4), t, 2);
707
+ }
708
+ function wr(e) {
709
+ return e.getDay();
710
+ }
711
+ function Tr(e, t) {
712
+ return M(fe.count(P(e) - 1, e), t, 2);
713
+ }
714
+ function Fr(e, t) {
715
+ return M(e.getFullYear() % 100, t, 2);
716
+ }
717
+ function zr(e, t) {
718
+ return e = mt(e), M(e.getFullYear() % 100, t, 2);
719
+ }
720
+ function Dr(e, t) {
721
+ return M(e.getFullYear() % 1e4, t, 4);
722
+ }
723
+ function Yr(e, t) {
724
+ var r = e.getDay();
725
+ return e = r >= 4 || r === 0 ? re(e) : re.ceil(e), M(e.getFullYear() % 1e4, t, 4);
726
+ }
727
+ function Cr(e) {
728
+ var t = e.getTimezoneOffset();
729
+ return (t > 0 ? "-" : (t *= -1, "+")) + M(t / 60 | 0, "0", 2) + M(t % 60, "0", 2);
730
+ }
731
+ function Re(e, t) {
732
+ return M(e.getUTCDate(), t, 2);
733
+ }
734
+ function xr(e, t) {
735
+ return M(e.getUTCHours(), t, 2);
736
+ }
737
+ function Ur(e, t) {
738
+ return M(e.getUTCHours() % 12 || 12, t, 2);
739
+ }
740
+ function Ar(e, t) {
741
+ return M(1 + Ae.count(Z(e), e), t, 3);
742
+ }
743
+ function ut(e, t) {
744
+ return M(e.getUTCMilliseconds(), t, 3);
745
+ }
746
+ function Lr(e, t) {
747
+ return ut(e, t) + "000";
748
+ }
749
+ function $r(e, t) {
750
+ return M(e.getUTCMonth() + 1, t, 2);
751
+ }
752
+ function Nr(e, t) {
753
+ return M(e.getUTCMinutes(), t, 2);
754
+ }
755
+ function Wr(e, t) {
756
+ return M(e.getUTCSeconds(), t, 2);
757
+ }
758
+ function Er(e) {
759
+ var t = e.getUTCDay();
760
+ return t === 0 ? 7 : t;
761
+ }
762
+ function Hr(e, t) {
763
+ return M(it.count(Z(e) - 1, e), t, 2);
764
+ }
765
+ function ht(e) {
766
+ var t = e.getUTCDay();
767
+ return t >= 4 || t === 0 ? ne(e) : ne.ceil(e);
768
+ }
769
+ function Ir(e, t) {
770
+ return e = ht(e), M(ne.count(Z(e), e) + (Z(e).getUTCDay() === 4), t, 2);
771
+ }
772
+ function Or(e) {
773
+ return e.getUTCDay();
774
+ }
775
+ function qr(e, t) {
776
+ return M(ye.count(Z(e) - 1, e), t, 2);
777
+ }
778
+ function Qr(e, t) {
779
+ return M(e.getUTCFullYear() % 100, t, 2);
780
+ }
781
+ function Vr(e, t) {
782
+ return e = ht(e), M(e.getUTCFullYear() % 100, t, 2);
783
+ }
784
+ function Pr(e, t) {
785
+ return M(e.getUTCFullYear() % 1e4, t, 4);
786
+ }
787
+ function Gr(e, t) {
788
+ var r = e.getUTCDay();
789
+ return e = r >= 4 || r === 0 ? ne(e) : ne.ceil(e), M(e.getUTCFullYear() % 1e4, t, 4);
790
+ }
791
+ function jr() {
792
+ return "+0000";
793
+ }
794
+ function Ze() {
795
+ return "%";
796
+ }
797
+ function Be(e) {
798
+ return +e;
799
+ }
800
+ function Je(e) {
801
+ return Math.floor(+e / 1e3);
802
+ }
803
+ var te, q;
804
+ Rr({
805
+ dateTime: "%x, %X",
806
+ date: "%-m/%-d/%Y",
807
+ time: "%-I:%M:%S %p",
808
+ periods: ["AM", "PM"],
809
+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
810
+ shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
811
+ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
812
+ shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
813
+ });
814
+ function Rr(e) {
815
+ return te = Ye(e), q = te.format, te.parse, te.utcFormat, te.utcParse, te;
816
+ }
817
+ const Ce = [
818
+ // YEAR
819
+ [
820
+ 1,
821
+ // years
822
+ 4,
823
+ // quarters
824
+ 12,
825
+ // months
826
+ 52,
827
+ // weeks
828
+ 365,
829
+ // days
830
+ 365 * 24,
831
+ // hours
832
+ 365 * 24 * 60,
833
+ // minutes
834
+ 365 * 24 * 60 * 60,
835
+ // seconds
836
+ 365 * 24 * 60 * 60 * 1e3
837
+ // milliseconds
838
+ ],
839
+ // QUARTERS
840
+ [
841
+ 1 / 4,
842
+ // year
843
+ 1,
844
+ // quarters
845
+ 3,
846
+ // months
847
+ 13,
848
+ // weeks
849
+ 91,
850
+ // days
851
+ 91 * 24,
852
+ // hours
853
+ 91 * 24 * 60,
854
+ // minutes
855
+ 91 * 24 * 60 * 60,
856
+ // seconds
857
+ 91 * 24 * 60 * 60 * 1e3
858
+ // milliseconds
859
+ ],
860
+ // MONTHS
861
+ [
862
+ 1 / 12,
863
+ // year
864
+ 1 / 3,
865
+ // quarters
866
+ 1,
867
+ // months
868
+ 4,
869
+ // weeks
870
+ 30,
871
+ // days
872
+ 30 * 24,
873
+ // hours
874
+ 30 * 24 * 60,
875
+ // minutes
876
+ 30 * 24 * 60 * 60,
877
+ // seconds
878
+ 30 * 24 * 60 * 60 * 1e3
879
+ // milliseconds
880
+ ],
881
+ // WEEKS
882
+ [
883
+ 1 / 52,
884
+ // year
885
+ 1 / 13,
886
+ // quarters
887
+ 1 / 4,
888
+ // months
889
+ 1,
890
+ // weeks
891
+ 7,
892
+ // days
893
+ 7 * 24,
894
+ // hours
895
+ 7 * 24 * 60,
896
+ // minutes
897
+ 7 * 24 * 60 * 60,
898
+ // seconds
899
+ 7 * 24 * 60 * 60 * 1e3
900
+ // milliseconds
901
+ ],
902
+ // DAYS
903
+ [
904
+ 1 / 365,
905
+ // year
906
+ 1 / 91,
907
+ // quarters
908
+ 1 / 30,
909
+ // months
910
+ 1 / 7,
911
+ // weeks
912
+ 1,
913
+ // days
914
+ 24,
915
+ // hours
916
+ 24 * 60,
917
+ // minutes
918
+ 24 * 60 * 60,
919
+ // seconds
920
+ 24 * 60 * 60 * 1e3
921
+ // milliseconds
922
+ ],
923
+ // HOURS
924
+ [
925
+ 1 / (365 * 24),
926
+ // year
927
+ 1 / (91 * 24),
928
+ // quarters
929
+ 1 / (30 * 24),
930
+ // months
931
+ 1 / (7 * 24),
932
+ // weeks
933
+ 1 / 24,
934
+ // days
935
+ 1,
936
+ // hours
937
+ 60,
938
+ // minutes
939
+ 60 * 60,
940
+ // seconds
941
+ 60 * 60 * 1e3
942
+ // milliseconds
943
+ ],
944
+ // MINUTES
945
+ [
946
+ 1 / (365 * 24 * 60),
947
+ // year
948
+ 1 / (91 * 24 * 60),
949
+ // quarters
950
+ 1 / (30 * 24 * 60),
951
+ // months
952
+ 1 / (7 * 24 * 60),
953
+ // weeks
954
+ 1 / (24 * 60),
955
+ // days
956
+ 1 / 60,
957
+ // hours
958
+ 1,
959
+ // minutes
960
+ 60,
961
+ // seconds
962
+ 60 * 1e3
963
+ // milliseconds
964
+ ],
965
+ // SECONDS
966
+ [
967
+ 1 / (365 * 24 * 60 * 60),
968
+ // year
969
+ 1 / (91 * 24 * 60 * 60),
970
+ // quarters
971
+ 1 / (30 * 24 * 60 * 60),
972
+ // months
973
+ 1 / (7 * 24 * 60 * 60),
974
+ // weeks
975
+ 1 / (24 * 60 * 60),
976
+ // days
977
+ 1 / (60 * 60),
978
+ // hours
979
+ 1 / 60,
980
+ // minutes
981
+ 1,
982
+ // seconds
983
+ 1e3
984
+ // milliseconds
985
+ ],
986
+ // MILLISECONDS
987
+ [
988
+ 1 / (365 * 24 * 60 * 60 * 1e3),
989
+ // year
990
+ 1 / (91 * 24 * 60 * 60 * 1e3),
991
+ // quarters
992
+ 1 / (30 * 24 * 60 * 60 * 1e3),
993
+ // months
994
+ 1 / (7 * 24 * 60 * 60 * 1e3),
995
+ // weeks
996
+ 1 / (24 * 60 * 60 * 1e3),
997
+ // days
998
+ 1 / (60 * 60 * 1e3),
999
+ // hours
1000
+ 1 / (60 * 1e3),
1001
+ // minutes
1002
+ 1 / 1e3,
1003
+ // seconds
1004
+ 1
1005
+ // milliseconds
1006
+ ]
1007
+ ];
1008
+ function Zr(e, t, r) {
1009
+ if (R(e))
1010
+ return;
1011
+ if (!t || !r || t === r)
1012
+ return e;
1013
+ const n = Ce[t - 1][r - 1];
1014
+ if (n)
1015
+ return e * n;
1016
+ }
1017
+ function Br(e, t, r, n) {
1018
+ if (R(e) || !t.lowestLevel || r.length === 0)
1019
+ return "";
1020
+ const i = [];
1021
+ let a = 0, l = Math.round(
1022
+ e * Ce[t.lowestLevel - 1][8]
1023
+ );
1024
+ const _ = 9;
1025
+ for (const [, u] of r.entries())
1026
+ if (e) {
1027
+ l = l - a;
1028
+ const w = Ce[u - 1][_ - 1], y = Math.floor(l / w);
1029
+ a = y * w, i.push({ level: u, value: y });
1030
+ } else
1031
+ i.push({ level: u, value: 0 });
1032
+ let k = "";
1033
+ for (const [u, w] of i.entries())
1034
+ if (t.duration.format === "time") {
1035
+ let y = w.value;
1036
+ [6, 7, 8].includes(w.level) && w.value < 10 ? y = "0" + w.value.toString() : w.level === 9 && w.value < 10 ? y = "00" + w.value.toString() : w.level === 9 && w.value < 100 && (y = "0" + w.value.toString()), k += (u === 0 ? "" : w.level === 9 ? "." : ":") + y;
1037
+ } else if (t.duration.format === "long") {
1038
+ const y = n.durationLongSuffix;
1039
+ k += w.value + " " + y[w.level] + (u === i.length - 1 ? "" : " ");
1040
+ } else {
1041
+ const y = n.durationShortSuffix;
1042
+ k += w.value + "" + y[w.level] + (u === i.length - 1 ? "" : " ");
1043
+ }
1044
+ return k;
1045
+ }
1046
+ const $e = {
1047
+ decimal: ".",
1048
+ thousands: ",",
1049
+ grouping: [3],
1050
+ currency: ["$", ""],
1051
+ dateTime: "%a %b %e %X %Y",
1052
+ date: "%m/%d/%Y",
1053
+ dateSeparator: "/",
1054
+ time: "%H:%M:%S",
1055
+ periods: ["AM", "PM"],
1056
+ days: [
1057
+ "Sunday",
1058
+ "Monday",
1059
+ "Tuesday",
1060
+ "Wednesday",
1061
+ "Thursday",
1062
+ "Friday",
1063
+ "Saturday"
1064
+ ],
1065
+ shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1066
+ months: [
1067
+ "January",
1068
+ "February",
1069
+ "March",
1070
+ "April",
1071
+ "May",
1072
+ "June",
1073
+ "July",
1074
+ "August",
1075
+ "September",
1076
+ "October",
1077
+ "November",
1078
+ "December"
1079
+ ],
1080
+ shortMonths: [
1081
+ "Jan",
1082
+ "Feb",
1083
+ "Mar",
1084
+ "Apr",
1085
+ "May",
1086
+ "Jun",
1087
+ "Jul",
1088
+ "Aug",
1089
+ "Sep",
1090
+ "Oct",
1091
+ "Nov",
1092
+ "Dec"
1093
+ ],
1094
+ levels: [
1095
+ "All",
1096
+ "Year",
1097
+ "Quarter",
1098
+ "Month",
1099
+ "Week",
1100
+ "Date",
1101
+ "Hour",
1102
+ "Minute",
1103
+ "Second",
1104
+ "Millisecond"
1105
+ ],
1106
+ shortLevels: [
1107
+ "All",
1108
+ "Yr",
1109
+ "Qtr",
1110
+ "Mth",
1111
+ "Wk",
1112
+ "Date",
1113
+ "Hr",
1114
+ "Min",
1115
+ "Sec",
1116
+ "Msec"
1117
+ ],
1118
+ durationLongSuffix: [
1119
+ "",
1120
+ "years",
1121
+ "quarters",
1122
+ "months",
1123
+ "weeks",
1124
+ "days",
1125
+ "hours",
1126
+ "minutes",
1127
+ "seconds",
1128
+ "milliseconds"
1129
+ ],
1130
+ durationShortSuffix: ["", "y", "q", "mo", "w", "d", "h", "m", "s", "ms"],
1131
+ multi: [".%L", ":%S", "%I:%M", "%I %p", "%a %d", "W%G", "%b %d", "%B", "%Y"]
1132
+ }, Jr = "%d-%m-%Y", xe = [
1133
+ {
1134
+ key: "%a %e %b %Y",
1135
+ lev1: "%Y",
1136
+ lev2: "Q%q-%Y",
1137
+ lev3: "%b %Y",
1138
+ lev4: "Wk %V-%G",
1139
+ lev5: "%a %e %b %Y",
1140
+ monthType: "name",
1141
+ longText: !1,
1142
+ weekday: !0
1143
+ },
1144
+ {
1145
+ key: "%e %b %Y",
1146
+ lev1: "%Y",
1147
+ lev2: "Q%q-%Y",
1148
+ lev3: "%b %Y",
1149
+ lev4: "Wk %V-%G",
1150
+ lev5: "%e %b %Y",
1151
+ monthType: "name",
1152
+ longText: !1,
1153
+ weekday: !1
1154
+ },
1155
+ {
1156
+ key: "%a %e %B %Y",
1157
+ lev1: "%Y",
1158
+ lev2: "Q%q-%Y",
1159
+ lev3: "%B %Y",
1160
+ lev4: "Week %V, %G",
1161
+ lev5: "%a %e %B %Y",
1162
+ monthType: "name",
1163
+ longText: !0,
1164
+ weekday: !0
1165
+ },
1166
+ {
1167
+ key: "%e %B %Y",
1168
+ lev1: "%Y",
1169
+ lev2: "Q%q-%Y",
1170
+ lev3: "%B %Y",
1171
+ lev4: "Week %V, %G",
1172
+ lev5: "%e %B %Y",
1173
+ monthType: "name",
1174
+ longText: !0,
1175
+ weekday: !1
1176
+ },
1177
+ {
1178
+ key: "%d/%m/%Y",
1179
+ lev1: "%Y",
1180
+ lev2: "Q%q/%Y",
1181
+ lev3: "%m/%Y",
1182
+ lev4: "W%V/%G",
1183
+ lev5: "%d/%m/%Y",
1184
+ monthType: "number",
1185
+ mmdd: !1,
1186
+ separator: "/"
1187
+ },
1188
+ {
1189
+ key: "%d-%m-%Y",
1190
+ lev1: "%Y",
1191
+ lev2: "Q%q-%Y",
1192
+ lev3: "%m-%Y",
1193
+ lev4: "W%V-%G",
1194
+ lev5: "%d-%m-%Y",
1195
+ monthType: "number",
1196
+ mmdd: !1,
1197
+ separator: "-"
1198
+ },
1199
+ {
1200
+ key: "%d.%m.%Y",
1201
+ lev1: "%Y",
1202
+ lev2: "Q%q.%Y",
1203
+ lev3: "%m.%Y",
1204
+ lev4: "W%V.%G",
1205
+ lev5: "%d.%m.%Y",
1206
+ monthType: "number",
1207
+ mmdd: !1,
1208
+ separator: "."
1209
+ },
1210
+ {
1211
+ key: "%d~%m~%Y",
1212
+ lev1: "%Y",
1213
+ lev2: "Q%q~%Y",
1214
+ lev3: "%m~%Y",
1215
+ lev4: "W%V~%G",
1216
+ lev5: "%d~%m~%Y",
1217
+ monthType: "number",
1218
+ mmdd: !1,
1219
+ separator: "~"
1220
+ },
1221
+ {
1222
+ key: "%m/%d/%Y",
1223
+ lev1: "%Y",
1224
+ lev2: "Q%q/%Y",
1225
+ lev3: "%m/%Y",
1226
+ lev4: "%G/W%V",
1227
+ lev5: "%m/%d/%Y",
1228
+ monthType: "number",
1229
+ mmdd: !0,
1230
+ separator: "/"
1231
+ },
1232
+ {
1233
+ key: "%m-%d-%Y",
1234
+ lev1: "%Y",
1235
+ lev2: "Q%q-%Y",
1236
+ lev3: "%m-%Y",
1237
+ lev4: "%G-W%V",
1238
+ lev5: "%m-%d-%Y",
1239
+ monthType: "number",
1240
+ mmdd: !0,
1241
+ separator: "-"
1242
+ },
1243
+ {
1244
+ key: "%m.%d.%Y",
1245
+ lev1: "%Y",
1246
+ lev2: "Q%q.%Y",
1247
+ lev3: "%m.%Y",
1248
+ lev4: "%G.W%V",
1249
+ lev5: "%m.%d.%Y",
1250
+ monthType: "number",
1251
+ mmdd: !0,
1252
+ separator: "."
1253
+ },
1254
+ {
1255
+ key: "%m~%d~%Y",
1256
+ lev1: "%Y",
1257
+ lev2: "Q%q~%Y",
1258
+ lev3: "%m~%Y",
1259
+ lev4: "%G~W%V",
1260
+ lev5: "%m~%d~%Y",
1261
+ monthType: "number",
1262
+ mmdd: !0,
1263
+ separator: "~"
1264
+ },
1265
+ {
1266
+ key: "%amd/%Y",
1267
+ lev1: "%Y",
1268
+ lev2: "Q%q/%Y",
1269
+ lev3: "%m/%Y",
1270
+ lev4: "%G/W%V",
1271
+ lev5: "%amd/%Y",
1272
+ monthType: "number",
1273
+ mmdd: null,
1274
+ separator: "/"
1275
+ },
1276
+ {
1277
+ key: "%amd-%Y",
1278
+ lev1: "%Y",
1279
+ lev2: "Q%q-%Y",
1280
+ lev3: "%m-%Y",
1281
+ lev4: "%G-W%V",
1282
+ lev5: "%amd-%Y",
1283
+ monthType: "number",
1284
+ mmdd: null,
1285
+ separator: "-"
1286
+ },
1287
+ {
1288
+ key: "%amd.%Y",
1289
+ lev1: "%Y",
1290
+ lev2: "Q%q.%Y",
1291
+ lev3: "%m.%Y",
1292
+ lev4: "%G.W%V",
1293
+ lev5: "%amd.%Y",
1294
+ monthType: "number",
1295
+ mmdd: null,
1296
+ separator: "."
1297
+ },
1298
+ {
1299
+ key: "%amd~%Y",
1300
+ lev1: "%Y",
1301
+ lev2: "Q%q~%Y",
1302
+ lev3: "%m~%Y",
1303
+ lev4: "%G~W%V",
1304
+ lev5: "%amd~%Y",
1305
+ monthType: "number",
1306
+ mmdd: null,
1307
+ separator: "~"
1308
+ }
1309
+ ], Xr = [
1310
+ {
1311
+ key: "%H:%M:%S.%L",
1312
+ lev6: "%H:00",
1313
+ lev7: "%H:%M",
1314
+ lev8: "%H:%M:%S",
1315
+ lev9: "%H:%M:%S.%L",
1316
+ ampm: !1
1317
+ },
1318
+ {
1319
+ key: "%I:%M:%S.%L %p",
1320
+ lev6: "%I:00 %p",
1321
+ lev7: "%I:%M %p",
1322
+ lev8: "%I:%M:%S %p",
1323
+ lev9: "%I:%M:%S.%L %p",
1324
+ ampm: !0
1325
+ }
1326
+ ];
1327
+ function Fe(e, t) {
1328
+ var y, H;
1329
+ t = t || {};
1330
+ const r = t.localFormats || $e;
1331
+ let n, i, a, l = [], _ = [], k = "datetime", u;
1332
+ t && t.multi && (k = "datetime"), (!e || !e.format) && (k = "hierarchy"), e && e.type && (k = e.type), e && e.format ? u = e.format : k === "numeric" ? u = ",.0f" : k === "datetime" ? u = Jr : u = "";
1333
+ const w = Dt(u);
1334
+ switch (w.precision && w.typeFormat && (k = "numeric"), k) {
1335
+ case "numeric": {
1336
+ if (e.subtype === "duration" && e.duration && e.duration.levels && e.duration.levels.length > 1 && !t.hideDuration)
1337
+ n = (m) => R(m) ? "" : Br(
1338
+ m,
1339
+ e,
1340
+ e.duration.levels,
1341
+ r
1342
+ );
1343
+ else {
1344
+ const m = { ...r };
1345
+ let c = w.typeFormat, d = !1;
1346
+ switch (c.length === 2 && c.startsWith("a") && (d = !0, c = c.slice(1, 2), u = u.replace(/a/, "")), d ? (m.decimal = r.decimal, m.thousands = r.thousands) : ["z", "y", "w"].includes(c) ? (m.decimal = ",", m.thousands = ".") : (m.decimal = ".", m.thousands = ","), c) {
1347
+ case "z": {
1348
+ u = u.replace("z", "f");
1349
+ break;
1350
+ }
1351
+ case "y": {
1352
+ u = u.replace("y", "%");
1353
+ break;
1354
+ }
1355
+ case "w": {
1356
+ u = u.replace("w", "s");
1357
+ break;
1358
+ }
1359
+ }
1360
+ if ((e == null ? void 0 : e.subtype) === "currency" && e.currency) {
1361
+ const h = " ", Y = m.currency.findIndex(
1362
+ (F) => F.length > 0
1363
+ ), b = m.currency[Y].startsWith(h), z = m.currency[Y].endsWith(h), g = `${b ? h : ""}${e.currency}${z ? h : ""}`;
1364
+ m.currency[Y] = g;
1365
+ }
1366
+ const S = Nt(m);
1367
+ c !== "%" && (e == null ? void 0 : e.subtype) === "currency" && e.currency && m.currency && !(t != null && t.hideCurrency) && !["count", "distinctcount"].includes(e.aggregationFunc) && !(e.aggregationFunc === "rate" && ((y = e.aggregationWeight) == null ? void 0 : y.columnSubType) === "currency") && ((H = e.periodOverPeriod) == null ? void 0 : H.type) !== "percentageChange" && (u = "$" + u), t != null && t.trimZero && ["y", "%"].includes(c) && m.decimal === "," ? i = (h) => S.format(u)(h).replace(/(,\d*?)0+%$/, "$1%").replace(/,%$/, "%") : t != null && t.trimZero && ["y", "%"].includes(c) && m.decimal === "." ? i = (h) => S.format(u)(h).replace(/(\.\d*?)0+%$/, "$1%").replace(/\.%$/, "%") : t != null && t.trimZero && ["z", "f"].includes(c) && m.decimal === "," ? i = (h) => S.format(u)(h).replace(/(,\d*?)0+$/, "$1").replace(/,$/, "") : t != null && t.trimZero && ["z", "f"].includes(c) && m.decimal === "." ? i = (h) => S.format(u)(h).replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "") : (e == null ? void 0 : e.subtype) === "currency" && e.currency && m.currency && c === "s" ? i = (h) => S.format(u)(h).replace(/G/, "B") : i = R(w.precision) ? S.format(",.0f") : S.format(u), n = (h) => {
1368
+ var Y;
1369
+ if (R(h))
1370
+ return "";
1371
+ if (e.subtype === "duration" && e.duration && !t.hideDuration) {
1372
+ const b = e.duration.levels ? e.duration.levels[0] : e.lowestLevel;
1373
+ return b !== e.lowestLevel && (h = Zr(h, e.lowestLevel, b)), i(h) + ((Y = r == null ? void 0 : r.durationShortSuffix) == null ? void 0 : Y[b]);
1374
+ }
1375
+ return i(h);
1376
+ };
1377
+ }
1378
+ break;
1379
+ }
1380
+ case "datetime": {
1381
+ if (l = (r == null ? void 0 : r.smartDateFormats) ?? xe, _ = (r == null ? void 0 : r.smartTimeFormats) ?? Xr, R(e.datetimeDisplayMode)) {
1382
+ if (t != null && t.level) {
1383
+ const m = t.level, c = l.find(
1384
+ (z) => u.includes(z.key)
1385
+ ), d = _.find(
1386
+ (z) => u.includes(z.key)
1387
+ ), S = c ? c["lev" + Math.min(m, 5)] : l[0]["lev" + Math.min(m, 5)], h = m > 5 ? d ? d["lev" + m] : _[0]["lev" + m] : "";
1388
+ u = m > 5 ? S + ", " + h : S;
1389
+ const Y = u.includes("%amd") && t.level >= 5, b = c ? t.level >= 2 && c.separator === "~" : !1;
1390
+ Y ? u = b ? (
1391
+ // Fully use the date format defined in the locale JSON, including its separators.
1392
+ u.replaceAll(
1393
+ new RegExp(/%amd[.~\/-]%Y/g),
1394
+ r.date.slice(0, 8)
1395
+ )
1396
+ ) : (
1397
+ // Use the date format defined in the locale JSON, but replace the seperators to the hardcoded separator configured in the slot menu.
1398
+ u.replaceAll(
1399
+ new RegExp(/%amd[.~\/-]%Y/g),
1400
+ r.date.slice(0, 8).replaceAll(
1401
+ new RegExp(/[.~\/-]/g),
1402
+ c.separator
1403
+ )
1404
+ )
1405
+ ) : u = b ? (
1406
+ // No locale aware date format but locale aware separator: replace locale aware '~' separator by correct separator from locale JSON.
1407
+ u.replaceAll(
1408
+ new RegExp(/[~]/g),
1409
+ r.dateSeparator
1410
+ )
1411
+ ) : (
1412
+ // No locale aware format and no locale aware separator: no action required.
1413
+ u
1414
+ );
1415
+ }
1416
+ if (t != null && t.multi) {
1417
+ const m = q(r.multi[0]), c = q(r.multi[1]), d = q(r.multi[2]), S = q(r.multi[3]), h = q(r.multi[4]), Y = q(r.multi[6]), b = q(r.multi[7]), z = q(r.multi[8]);
1418
+ a = (g) => {
1419
+ let F;
1420
+ return nt(g) < g ? F = m : at(g) < g ? F = c : ot(g) < g ? F = d : pe(g) < g ? F = S : st(g) < g ? F = Le(g) < g ? h : Y : P(g) < g ? F = b : F = z, F(g);
1421
+ };
1422
+ } else
1423
+ a = Ye(r).format(u);
1424
+ } else {
1425
+ const m = {
1426
+ quarter_number: { min: 1, max: 4 },
1427
+ month_name: { min: 1, max: 12 },
1428
+ month_number: { min: 1, max: 12 },
1429
+ week_number: { min: 1, max: 53 },
1430
+ day_in_month: { min: 1, max: 31 },
1431
+ day_in_year: { min: 1, max: 366 },
1432
+ weekday_name: { min: 0, max: 7 },
1433
+ weekday_number: { min: 0, max: 7 },
1434
+ hour_in_day: { min: 0, max: 23 },
1435
+ minute_in_hour: { min: 0, max: 59 },
1436
+ second_in_minute: { min: 0, max: 59 }
1437
+ }, c = (d, S, h) => {
1438
+ var Y, b, z, g, F;
1439
+ return S === "letter" ? ((Y = d.shortNames) == null ? void 0 : Y.length) > 0 && ((b = d.shortNames[h]) == null ? void 0 : b.length) > 0 ? (z = d.shortNames[h]) == null ? void 0 : z.charAt(0) : "N/A" : S === "short" ? ((g = d.shortNames) == null ? void 0 : g.length) > 0 && d.shortNames[h] ? d.shortNames[h] : "N/A" : ((F = d.longNames) == null ? void 0 : F.length) > 0 && d.longNames[h] ? d.longNames[h] : "N/A";
1440
+ };
1441
+ [
1442
+ "quarter_number",
1443
+ "month_number",
1444
+ "week_number",
1445
+ "day_in_month",
1446
+ "day_in_year",
1447
+ "weekday_number",
1448
+ "hour_in_day",
1449
+ "minute_in_hour",
1450
+ "second_in_minute"
1451
+ ].includes(e.datetimeDisplayMode) ? a = (d) => Se(d) && d >= m[e.datetimeDisplayMode].min && d <= m[e.datetimeDisplayMode].max ? d : "N/A" : e.datetimeDisplayMode === "month_name" ? a = (d) => {
1452
+ const S = [...r.shortMonths], h = [...r.months];
1453
+ return Se(d) && d >= m[e.datetimeDisplayMode].min && d <= m[e.datetimeDisplayMode].max ? c(
1454
+ { shortNames: S, longNames: h },
1455
+ e.monthNameFormat,
1456
+ d - 1
1457
+ ) : "N/A";
1458
+ } : e.datetimeDisplayMode === "weekday_name" ? a = (d) => {
1459
+ const S = [...r.shortDays], h = [...r.days];
1460
+ return e.weekStart === "monday" && (S.push(S.shift() ?? ""), h.push(h.shift() ?? "")), Se(d) && d >= m[e.datetimeDisplayMode].min && d <= m[e.datetimeDisplayMode].max ? c(
1461
+ { shortNames: S, longNames: h },
1462
+ e.weekDayNameFormat,
1463
+ d - 1
1464
+ ) : "N/A";
1465
+ } : a = Ye(r).format(u);
1466
+ }
1467
+ n = (m) => {
1468
+ if (R(m))
1469
+ return "";
1470
+ const c = a(m);
1471
+ return zt(c) ? c.trim() : c;
1472
+ };
1473
+ break;
1474
+ }
1475
+ case "hierarchy": {
1476
+ n = (m) => Ft(m, t ? t.locale : void 0);
1477
+ break;
1478
+ }
1479
+ default: {
1480
+ n = (m) => m;
1481
+ break;
1482
+ }
1483
+ }
1484
+ return n;
1485
+ }
1486
+ const Xe = {
1487
+ "~": "Auto",
1488
+ "/": "/",
1489
+ "-": "-",
1490
+ ".": "."
1491
+ }, ze = {
1492
+ level2: [
1493
+ { key: "default", label: "Default" },
1494
+ { key: "quarter_number", label: "Quarter numbers" }
1495
+ ],
1496
+ level3: [
1497
+ { key: "default", label: "Default" },
1498
+ { key: "month_in_year", label: "Month number" }
1499
+ ],
1500
+ level4: [
1501
+ { key: "default", label: "Default" },
1502
+ { key: "week_number", label: "Week number" }
1503
+ ],
1504
+ level5: [
1505
+ { key: "default", label: "Default" },
1506
+ { key: "day_in_week", label: "Day in week" },
1507
+ { key: "day_in_month", label: "Day in month" },
1508
+ { key: "day_in_year", label: "Day in year" }
1509
+ ],
1510
+ level6: [
1511
+ { key: "default", label: "Default" },
1512
+ { key: "hour_in_day", label: "Hour in day" }
1513
+ ],
1514
+ level7: [
1515
+ { key: "default", label: "Default" },
1516
+ { key: "minute_in_hour", label: "Minute in hour" }
1517
+ ],
1518
+ level8: [
1519
+ { key: "default", label: "Default" },
1520
+ { key: "second_in_minute", label: "Second in minute" }
1521
+ ]
1522
+ }, Ke = {
1523
+ number: "Number",
1524
+ letter: "Letter",
1525
+ short: "Short",
1526
+ long: "Long"
1527
+ }, et = {
1528
+ sunday: "Sunday",
1529
+ monday: "Monday"
1530
+ }, Kr = ":host{font-family:var(--luzmo-display-settings-datetime-font-family, var(--luzmo-font-family))}:host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap, var(--display-settings-datetime-gap))}:host .example-container{line-height:var(--luzmo-display-settings-datetime-example-height, var(--display-settings-datetime-example-height));font-size:var(--luzmo-display-settings-datetime-example-font-size, var(--display-settings-datetime-example-font-size));color:var(--luzmo-display-settings-datetime-example-color, var(--display-settings-datetime-example-color))}:host .example-container .example-label{font-weight:var(--luzmo-display-settings-datetime-example-label-font-weight, var(--display-settings-datetime-example-label-font-weight));color:var(--luzmo-display-settings-datetime-example-label-color, var(--display-settings-datetime-example-label-color))}:host .example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-datetime-example-language-color, var(--display-settings-datetime-example-language-color))}:host{--display-settings-datetime-example-font-size: var(--luzmo-font-size);--display-settings-datetime-example-color: var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight: bold;--display-settings-datetime-example-label-color: var(--luzmo-primary);--display-settings-datetime-example-language-color: var(--luzmo-primary)}:host{--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=s]){--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height-s);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap: var(--luzmo-spacing-4);--display-settings-datetime-example-height: var(--luzmo-component-height-l);--display-settings-datetime-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap: var(--luzmo-spacing-5);--display-settings-datetime-example-height: var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size: var(--luzmo-font-size-l)}";
1531
+ var en = Object.defineProperty, $ = (e, t, r, n) => {
1532
+ for (var i = void 0, a = e.length - 1, l; a >= 0; a--)
1533
+ (l = e[a]) && (i = l(t, r, i) || i);
1534
+ return i && en(t, r, i), i;
1535
+ };
1536
+ class U extends wt(bt, {
1537
+ validSizes: Object.values(Tt)
1538
+ }) {
1539
+ constructor() {
1540
+ super(...arguments), this._loadLocaleFormatsConfig = new St(this, {
1541
+ task: async ([t]) => {
1542
+ if (t && t !== this._contentLanguageLoaded) {
1543
+ const r = /* @__PURE__ */ Object.assign({
1544
+ "../../utils/formatter/formats/cs.ts": () => import("./cs-DVZ0Tapy.js"),
1545
+ "../../utils/formatter/formats/da.ts": () => import("./da-DHy05oSR.js"),
1546
+ "../../utils/formatter/formats/de.ts": () => import("./de-iM39JlAt.js"),
1547
+ "../../utils/formatter/formats/en-GB.ts": () => import("./en-GB-qub-Kemt.js"),
1548
+ "../../utils/formatter/formats/en-US.ts": () => Promise.resolve().then(() => tn),
1549
+ "../../utils/formatter/formats/en.ts": () => Promise.resolve().then(() => rn),
1550
+ "../../utils/formatter/formats/es.ts": () => import("./es-KhTq4jX8.js"),
1551
+ "../../utils/formatter/formats/fi.ts": () => import("./fi-Dh_ebgpe.js"),
1552
+ "../../utils/formatter/formats/fr.ts": () => import("./fr-CU727YF1.js"),
1553
+ "../../utils/formatter/formats/he.ts": () => import("./he-Au3xg6lR.js"),
1554
+ "../../utils/formatter/formats/hu.ts": () => import("./hu-DNJ-P_MW.js"),
1555
+ "../../utils/formatter/formats/it.ts": () => import("./it-Bh5U73z6.js"),
1556
+ "../../utils/formatter/formats/ja.ts": () => import("./ja-CCcHUL61.js"),
1557
+ "../../utils/formatter/formats/ko.ts": () => import("./ko-DhapsZMM.js"),
1558
+ "../../utils/formatter/formats/mk.ts": () => import("./mk-B9HPSuKa.js"),
1559
+ "../../utils/formatter/formats/nl.ts": () => import("./nl-BwSt5Bf4.js"),
1560
+ "../../utils/formatter/formats/no.ts": () => import("./no-D-DofYnx.js"),
1561
+ "../../utils/formatter/formats/pl.ts": () => import("./pl-D_L_0Boq.js"),
1562
+ "../../utils/formatter/formats/pt.ts": () => import("./pt-B0BBS5VB.js"),
1563
+ "../../utils/formatter/formats/ru.ts": () => import("./ru-Vo-m3O_2.js"),
1564
+ "../../utils/formatter/formats/sv.ts": () => import("./sv-CiozMaev.js"),
1565
+ "../../utils/formatter/formats/tr.ts": () => import("./tr-D_D4i5iv.js"),
1566
+ "../../utils/formatter/formats/zh-CN.ts": () => import("./zh-CN-wsl7eFSd.js"),
1567
+ "../../utils/formatter/formats/zh-TW.ts": () => import("./zh-TW-wsl7eFSd.js")
1568
+ });
1569
+ if (r[`../../utils/formatter/formats/${t}.ts`]) {
1570
+ const n = await r[`../../utils/formatter/formats/${t}.ts`]();
1571
+ this._localeFormats = (n == null ? void 0 : n.default) ?? {};
1572
+ }
1573
+ return this._localeFormats;
1574
+ }
1575
+ },
1576
+ args: () => [this.contentLanguage]
1577
+ }), this.language = "en", this.contentLanguage = "en", this.size = "m", this.slotContent = {}, this._dateLevel = 5, this._displayAs = "default", this._weekStart = "monday", this._weekDayAndMonthInYearFormat = "long", this._dateFormat = "auto", this._dateSeparator = "~", this._sendEvent = () => {
1578
+ this._calculateSlotContent(), this.dispatchEvent(
1579
+ new CustomEvent("slot-content-changed", {
1580
+ bubbles: !0,
1581
+ composed: !0,
1582
+ cancelable: !0,
1583
+ detail: {
1584
+ slotContent: this._currentSlotContent
1585
+ }
1586
+ })
1587
+ );
1588
+ };
1589
+ }
1590
+ static get styles() {
1591
+ return [kt(Kr)];
1592
+ }
1593
+ _parseSlotContent() {
1594
+ var t, r;
1595
+ this._dateLevel = this.slotContent.level ?? ((t = this.slotContent) == null ? void 0 : t.lowestLevel) ?? 5, this._displayAs = ((r = this.slotContent) == null ? void 0 : r.datetimeDisplayMode) ?? "default", this._displayAs === "weekday_number" && (this._displayAs = "day_in_week", this._weekDayAndMonthInYearFormat = "number"), this._displayAs === "weekday_name" && (this._displayAs = "day_in_week"), this._displayAs === "month_number" && (this._displayAs = "month_in_year", this._weekDayAndMonthInYearFormat = "number"), this._displayAs === "month_name" && (this._displayAs = "month_in_year");
1596
+ }
1597
+ _calculateFormat() {
1598
+ var n;
1599
+ let t;
1600
+ const r = ((n = this._localeFormats) == null ? void 0 : n.smartDateFormats) ?? xe;
1601
+ this._monthName ? (t = r.filter(
1602
+ (i) => i.monthType === "name" && i.longText === (this._monthNameFormat === "long") && i.weekday === this._weekDay
1603
+ ), t.length > 0 ? this._format = t[0].key : (this._weekDayAndMonthInYearFormat = "short", this._weekDay = !0, this._format = "%a %e %B %Y")) : (t = this._dateLevel && this._dateLevel === 4 ? r.filter(
1604
+ (i) => i.monthType === "number" && i.mmdd === (this._weekFormat === "mmdd" ? !0 : this._weekFormat === "ddmm" ? !1 : null) && i.separator === this._dateSeparator
1605
+ ) : r.filter(
1606
+ (i) => i.monthType === "number" && i.mmdd === (this._dateFormat === "mmdd" ? !0 : this._dateFormat === "ddmm" ? !1 : null) && i.separator === this._dateSeparator
1607
+ ), this._dateFormat === "auto" && this._dateLevel && this._dateLevel !== 4 ? this._format = "%amd" + this._dateSeparator + "%Y" : t.length > 0 ? this._format = t[0].key : (this._dateFormat = "ddmm", this._dateSeparator = "/", this._format = "%d/%m/%Y")), this._dateLevel && this._dateLevel > 5 && (this._format += this._24hFormat ? " %H:%M:%S.%L" : " %I:%M:%S.%L %p");
1608
+ }
1609
+ _setWeekStartsOn() {
1610
+ this._weekStart = this._weekStartElement.value, this._sendEvent(), this.requestUpdate();
1611
+ }
1612
+ _setDisplayAs() {
1613
+ this._displayAs = this._displayAsElement.value, this._sendEvent(), this.requestUpdate();
1614
+ }
1615
+ _setWeekdayAndMonthInYearFormat() {
1616
+ var t;
1617
+ this._weekDayAndMonthInYearFormat = ((t = this._weekDayAndMonthInYearFormatElement.selected) == null ? void 0 : t[0]) ?? "long", this._sendEvent(), this.requestUpdate();
1618
+ }
1619
+ _setMonthNameFormat() {
1620
+ var t;
1621
+ this._monthNameFormat = (t = this._monthNameFormatElement.selected) == null ? void 0 : t[0], this._sendEvent(), this.requestUpdate();
1622
+ }
1623
+ _setMonthName() {
1624
+ this._monthName = this._monthNameElement.selected, this._sendEvent(), this.requestUpdate();
1625
+ }
1626
+ _setWeekFormat() {
1627
+ var t;
1628
+ this._weekFormat = (t = this._weekFormatElement.selected) == null ? void 0 : t[0], this._sendEvent(), this.requestUpdate();
1629
+ }
1630
+ _setDateFormat() {
1631
+ this._dateFormat = this._dateFormatElement.value, this._sendEvent(), this.requestUpdate();
1632
+ }
1633
+ _setDateSeparator() {
1634
+ this._dateSeparator = this._dateSeparatorElement.value, this._sendEvent(), this.requestUpdate();
1635
+ }
1636
+ _set24hFormat() {
1637
+ this._24hFormat = this._format24hElement.selected, this._sendEvent(), this.requestUpdate();
1638
+ }
1639
+ _setWeekday() {
1640
+ this._weekDay = this._weekDayElement.selected, this._sendEvent(), this.requestUpdate();
1641
+ }
1642
+ _calculateSlotContent() {
1643
+ this._currentSlotContent = { ...this.slotContent }, this._calculateFormat(), this._currentSlotContent.format = this._format, this._displayAs === "default" ? delete this._currentSlotContent.datetimeDisplayMode : (this._currentSlotContent.datetimeDisplayMode = this._displayAs, this._displayAs === "week_in_year" ? this._currentSlotContent.datetimeDisplayMode = this._weekDayAndMonthInYearFormat === "number" ? "week_number" : "week_name" : this._displayAs === "month_in_year" ? this._currentSlotContent.datetimeDisplayMode = this._weekDayAndMonthInYearFormat === "number" ? "month_number" : "month_name" : this._displayAs === "day_in_week" && (this._currentSlotContent.datetimeDisplayMode = this._weekDayAndMonthInYearFormat === "number" ? "weekday_number" : "weekday_name", this._currentSlotContent.weekStart = this._weekStart), this._weekDayAndMonthInYearFormat && (this._dateLevel === 3 ? this._currentSlotContent.monthNameFormat = this._weekDayAndMonthInYearFormat : this._dateLevel === 5 && (this._currentSlotContent.weekDayNameFormat = this._weekDayAndMonthInYearFormat)));
1644
+ }
1645
+ willUpdate(t) {
1646
+ t.has("slotContent") && (this._parseSlotContent(), this._calculateSlotContent());
1647
+ }
1648
+ _renderDisplaySettings() {
1649
+ var r;
1650
+ const t = (r = ze == null ? void 0 : ze[`level${this._dateLevel ?? 0}`]) == null ? void 0 : r.map(
1651
+ (n) => D`<luzmo-menu-item value=${n.key}>
1652
+ ${n.label}
1653
+ </luzmo-menu-item>`
1654
+ );
1655
+ return D`<div class="setting">
1656
+ <luzmo-field-label for="display-as">Display</luzmo-field-label>
1657
+ <luzmo-picker
1658
+ id="display-as"
1659
+ size=${this.size}
1660
+ variant="highlight"
1661
+ value=${this._displayAs ?? "default"}
1662
+ @change=${this._setDisplayAs}
1663
+ >
1664
+ ${t}
1665
+ </luzmo-picker>
1666
+ </div>`;
1667
+ }
1668
+ _renderWeekDayAndMonthNameFormatSettings() {
1669
+ const t = Object.keys(
1670
+ Ke
1671
+ ).map((r) => D`<luzmo-action-button value=${r}>
1672
+ ${Ke[r]}
1673
+ </luzmo-action-button>`);
1674
+ return D` <div class="setting">
1675
+ <luzmo-field-label for="weekday-and-month-in-year-format"
1676
+ >Format</luzmo-field-label
1677
+ >
1678
+ <luzmo-action-group
1679
+ emphasized
1680
+ id="weekday-and-month-in-year-format"
1681
+ size=${this.size}
1682
+ compact
1683
+ .selected=${[this._weekDayAndMonthInYearFormat ?? "short"]}
1684
+ selects="single"
1685
+ @change=${this._setWeekdayAndMonthInYearFormat}
1686
+ >
1687
+ ${t}
1688
+ </luzmo-action-group>
1689
+ </div>`;
1690
+ }
1691
+ _renderMonthNameFormatSettings() {
1692
+ return D` <div class="setting">
1693
+ <luzmo-field-label for="month-name-format">Format</luzmo-field-label>
1694
+ <luzmo-action-group
1695
+ emphasized
1696
+ id="month-name-format"
1697
+ size=${this.size}
1698
+ compact
1699
+ .selected=${[this._monthNameFormat ?? "long"]}
1700
+ selects="single"
1701
+ @change=${this._setMonthNameFormat}
1702
+ >
1703
+ <luzmo-action-button value="short">Short</luzmo-action-button>
1704
+ <luzmo-action-button value="long">Long</luzmo-action-button>
1705
+ </luzmo-action-group>
1706
+ </div>`;
1707
+ }
1708
+ _renderWeekFormatSettings() {
1709
+ var i;
1710
+ const t = ((i = this._localeFormats) == null ? void 0 : i.smartDateFormats) ?? xe, r = t.find(
1711
+ (a) => a.mmdd === !0 && a.separator === this._dateSeparator && a.monthType === "number"
1712
+ ), n = t.find(
1713
+ (a) => a.mmdd === !1 && a.separator === this._dateSeparator && a.monthType === "number"
1714
+ );
1715
+ return D` <div class="setting">
1716
+ <luzmo-field-label for="week-format">Format</luzmo-field-label>
1717
+ <luzmo-action-group
1718
+ emphasized
1719
+ id="week-format"
1720
+ size=${this.size}
1721
+ compact
1722
+ .selected=${[this._weekFormat ?? "ddmm"]}
1723
+ selects="single"
1724
+ @change=${this._setWeekFormat}
1725
+ >
1726
+ <luzmo-action-button value="ddmm">
1727
+ ${Fe(
1728
+ {
1729
+ ...this._currentSlotContent,
1730
+ type: "datetime",
1731
+ format: n == null ? void 0 : n.key
1732
+ },
1733
+ {
1734
+ localFormats: this._localeFormats,
1735
+ level: this._dateLevel
1736
+ }
1737
+ )(/* @__PURE__ */ new Date())}
1738
+ </luzmo-action-button>
1739
+ <luzmo-action-button value="mmdd"
1740
+ >${Fe(
1741
+ {
1742
+ ...this._currentSlotContent,
1743
+ type: "datetime",
1744
+ format: r == null ? void 0 : r.key
1745
+ },
1746
+ {
1747
+ localFormats: this._localeFormats,
1748
+ level: this._dateLevel
1749
+ }
1750
+ )(/* @__PURE__ */ new Date())}</luzmo-action-button
1751
+ >
1752
+ </luzmo-action-group>
1753
+ </div>`;
1754
+ }
1755
+ _renderWeekStartsOnSettings() {
1756
+ const t = Object.keys(et).map(
1757
+ (r) => D`<luzmo-menu-item value=${r}>
1758
+ ${et[r]}
1759
+ </luzmo-menu-item>`
1760
+ );
1761
+ return D`<div class="setting">
1762
+ <luzmo-field-label for="week-start">Week starts on</luzmo-field-label>
1763
+ <luzmo-picker
1764
+ id="week-start"
1765
+ size=${this.size}
1766
+ variant="highlight"
1767
+ value=${this._weekStart ?? "Auto"}
1768
+ @change=${this._setWeekStartsOn}
1769
+ >
1770
+ ${t}
1771
+ </luzmo-picker>
1772
+ </div>`;
1773
+ }
1774
+ _renderMonthNameSettings() {
1775
+ return D`<div class="settings-">
1776
+ <luzmo-field-label for="month-name">Month</luzmo-field-label>
1777
+ <luzmo-action-button
1778
+ id="month-name"
1779
+ emphasized
1780
+ toggles
1781
+ .size=${this.size}
1782
+ ?selected=${this._monthName}
1783
+ @change=${this._setMonthName}
1784
+ >
1785
+ <luzmo-icon
1786
+ slot="icon"
1787
+ .size=${this.size}
1788
+ .icon=${this._monthName ? ve : Me}
1789
+ ></luzmo-icon>
1790
+ Name
1791
+ </luzmo-action-button>
1792
+ </div>`;
1793
+ }
1794
+ _renderDateFormatSettings() {
1795
+ const t = this._dateSeparator === "~" ? "/" : this._dateSeparator;
1796
+ return D`<div class="setting">
1797
+ <luzmo-field-label for="date-format">Format</luzmo-field-label>
1798
+ <luzmo-picker
1799
+ id="date-format"
1800
+ size=${this.size}
1801
+ variant="highlight"
1802
+ value=${this._dateFormat ?? "Auto"}
1803
+ @change=${this._setDateFormat}
1804
+ >
1805
+ <luzmo-menu-item value="auto">Auto</luzmo-menu-item>
1806
+ <luzmo-menu-item value="mmdd">12${t}31</luzmo-menu-item>
1807
+ <luzmo-menu-item value="ddmm">31${t}12</luzmo-menu-item>
1808
+ </luzmo-picker>
1809
+ </div>`;
1810
+ }
1811
+ _renderSeparatorSettings() {
1812
+ const t = Object.keys(Xe).map(
1813
+ (r) => D`<luzmo-menu-item value=${r}>
1814
+ ${Xe[r]}
1815
+ </luzmo-menu-item>`
1816
+ );
1817
+ return D`<div class="setting">
1818
+ <luzmo-field-label for="date-separator">Separator</luzmo-field-label>
1819
+ <luzmo-picker
1820
+ id="date-separator"
1821
+ size=${this.size}
1822
+ variant="highlight"
1823
+ value=${this._dateSeparator ?? "~"}
1824
+ @change=${this._setDateSeparator}
1825
+ >
1826
+ ${t}
1827
+ </luzmo-picker>
1828
+ </div>`;
1829
+ }
1830
+ _render24hFormatSettings() {
1831
+ return D`<div class="settings-">
1832
+ <luzmo-field-label for="format-24h">24h</luzmo-field-label>
1833
+ <luzmo-action-button
1834
+ id="format-24h"
1835
+ emphasized
1836
+ toggles
1837
+ .size=${this.size}
1838
+ ?selected=${this._24hFormat}
1839
+ @change=${this._set24hFormat}
1840
+ >
1841
+ <luzmo-icon
1842
+ slot="icon"
1843
+ .size=${this.size}
1844
+ .icon=${this._24hFormat ? ve : Me}
1845
+ ></luzmo-icon>
1846
+ </luzmo-action-button>
1847
+ </div>`;
1848
+ }
1849
+ _renderWeekdaySettings() {
1850
+ return D`<div class="settings-">
1851
+ <luzmo-field-label for="weekday">Weekday</luzmo-field-label>
1852
+ <luzmo-action-button
1853
+ id="weekday"
1854
+ emphasized
1855
+ toggles
1856
+ .size=${this.size}
1857
+ ?selected=${this._weekDay}
1858
+ @change=${this._setWeekday}
1859
+ >
1860
+ <luzmo-icon
1861
+ slot="icon"
1862
+ .size=${this.size}
1863
+ .icon=${this._weekDay ? ve : Me}
1864
+ ></luzmo-icon>
1865
+ Show
1866
+ </luzmo-action-button>
1867
+ </div>`;
1868
+ }
1869
+ _renderExampleFormat() {
1870
+ return D`<span class="example">
1871
+ ${Fe(
1872
+ {
1873
+ ...this._currentSlotContent,
1874
+ type: "datetime"
1875
+ },
1876
+ {
1877
+ localFormats: this._localeFormats,
1878
+ level: this._dateLevel
1879
+ }
1880
+ )(!this._displayAs || this._displayAs === "default" ? /* @__PURE__ */ new Date() : 1)}
1881
+ </span>
1882
+ ${(this._dateSeparator === "~" || this._dateFormat === "auto") && !this._monthName ? D`<span class="example-language">
1883
+ (${this.contentLanguage})
1884
+ </span>` : ""}`;
1885
+ }
1886
+ _renderAllSettings() {
1887
+ return D`<div class="settings-container">
1888
+ ${this._dateLevel && ![1, 9].includes(this._dateLevel) ? D` <div class="settings-row">
1889
+ ${this._renderDisplaySettings()}
1890
+ ${this._dateLevel && this._dateLevel >= 5 && this._displayAs === "day_in_week" ? this._renderWeekStartsOnSettings() : ""}
1891
+ </div>` : ""}
1892
+ ${["month_in_year", "day_in_week"].includes(this._displayAs ?? "") ? D` <div class="settings-row">
1893
+ ${this._renderWeekDayAndMonthNameFormatSettings()}
1894
+ </div>` : ""}
1895
+ ${this._dateLevel && this._dateLevel > 1 && this._displayAs === "default" ? D` <div class="settings-row">
1896
+ ${this._dateLevel && this._dateLevel !== 4 && this._dateLevel !== 2 ? this._renderMonthNameSettings() : ""}
1897
+ ${this._dateLevel && this._dateLevel !== 4 && this._dateLevel > 2 && this._monthName ? this._renderMonthNameFormatSettings() : ""}
1898
+ ${this._dateLevel && this._dateLevel === 4 && !this._monthName ? this._renderWeekFormatSettings() : ""}
1899
+ ${this._dateLevel && this._dateLevel >= 5 && !this._monthName ? this._renderDateFormatSettings() : ""}
1900
+ ${this._dateLevel && this._dateLevel > 1 && !this._monthName ? this._renderSeparatorSettings() : ""}
1901
+ ${this._dateLevel && this._dateLevel >= 5 && this._monthName ? this._renderWeekdaySettings() : ""}
1902
+ ${this._dateLevel && this._dateLevel > 5 ? this._render24hFormatSettings() : ""}
1903
+ </div>` : ""}
1904
+ <div class="settings-row">
1905
+ <div class="example-container">
1906
+ <span class="example-label">Example:</span>
1907
+ ${this._renderExampleFormat()}
1908
+ </div>
1909
+ </div>
1910
+ </div>`;
1911
+ }
1912
+ render() {
1913
+ return this._loadLocaleFormatsConfig.render({
1914
+ pending: () => D`<luzmo-progress-circle
1915
+ indeterminate
1916
+ .size=${this.size}
1917
+ ></luzmo-progress-circle>`,
1918
+ complete: () => this._renderAllSettings(),
1919
+ error: () => this._renderAllSettings()
1920
+ });
1921
+ }
1922
+ }
1923
+ $([
1924
+ ge({ type: String })
1925
+ ], U.prototype, "language");
1926
+ $([
1927
+ ge({ type: String })
1928
+ ], U.prototype, "contentLanguage");
1929
+ $([
1930
+ ge({ type: String })
1931
+ ], U.prototype, "size");
1932
+ $([
1933
+ ge({ type: Object, reflect: !1 })
1934
+ ], U.prototype, "slotContent");
1935
+ $([
1936
+ I("#display-as")
1937
+ ], U.prototype, "_displayAsElement");
1938
+ $([
1939
+ I("#week-start")
1940
+ ], U.prototype, "_weekStartElement");
1941
+ $([
1942
+ I("#weekday-and-month-in-year-format")
1943
+ ], U.prototype, "_weekDayAndMonthInYearFormatElement");
1944
+ $([
1945
+ I("#month-name-format")
1946
+ ], U.prototype, "_monthNameFormatElement");
1947
+ $([
1948
+ I("#month-name")
1949
+ ], U.prototype, "_monthNameElement");
1950
+ $([
1951
+ I("#week-format")
1952
+ ], U.prototype, "_weekFormatElement");
1953
+ $([
1954
+ I("#date-format")
1955
+ ], U.prototype, "_dateFormatElement");
1956
+ $([
1957
+ I("#date-separator")
1958
+ ], U.prototype, "_dateSeparatorElement");
1959
+ $([
1960
+ I("#weekday")
1961
+ ], U.prototype, "_weekDayElement");
1962
+ $([
1963
+ I("#format-24h")
1964
+ ], U.prototype, "_format24hElement");
1965
+ customElements.get("luzmo-display-settings-datetime") || customElements.define(
1966
+ "luzmo-display-settings-datetime",
1967
+ U
1968
+ );
1969
+ const tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1970
+ __proto__: null,
1971
+ default: $e
1972
+ }, Symbol.toStringTag, { value: "Module" })), rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1973
+ __proto__: null,
1974
+ default: $e
1975
+ }, Symbol.toStringTag, { value: "Module" }));
1976
+ export {
1977
+ $e as D,
1978
+ U as L
1979
+ };