@luzmo/analytics-components-kit 1.0.1-alpha.1 → 1.0.1-alpha.10

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