@public-ui/components 1.6.1 → 1.6.2

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 (508) hide show
  1. package/custom-elements.json +2 -2
  2. package/dist/cjs/{a11y.tipps-16aa154f.js → a11y.tipps-e20a1d51.js} +1 -1
  3. package/dist/cjs/{a11y.tipps-16aa154f.js.map → a11y.tipps-e20a1d51.js.map} +1 -1
  4. package/dist/cjs/align-8c115f0a.js +4 -0
  5. package/dist/cjs/{align-586041f5.js.map → align-8c115f0a.js.map} +1 -1
  6. package/dist/cjs/{alignment-75e80272.js → alignment-103fb41f.js} +1 -1
  7. package/dist/cjs/{alignment-75e80272.js.map → alignment-103fb41f.js.map} +1 -1
  8. package/dist/cjs/{alternative-button-link-role-60d7ab6e.js → alternative-button-link-role-0eb4d44a.js} +1 -1
  9. package/dist/cjs/{alternative-button-link-role-60d7ab6e.js.map → alternative-button-link-role-0eb4d44a.js.map} +1 -1
  10. package/dist/cjs/{app-globals-b799a4bd.js → app-globals-d92a56c6.js} +1 -1
  11. package/dist/cjs/{app-globals-b799a4bd.js.map → app-globals-d92a56c6.js.map} +1 -1
  12. package/dist/cjs/{associated.controller-99bc08ae.js → associated.controller-0bfb25df.js} +1 -1
  13. package/dist/cjs/{associated.controller-99bc08ae.js.map → associated.controller-0bfb25df.js.map} +1 -1
  14. package/dist/cjs/{color-38223330.js → color-c58c1f85.js} +1 -1
  15. package/dist/cjs/{color-38223330.js.map → color-c58c1f85.js.map} +1 -1
  16. package/dist/cjs/{controller-4eb70639.js → controller-0fe313aa.js} +1 -1
  17. package/dist/cjs/{controller-4eb70639.js.map → controller-0fe313aa.js.map} +1 -1
  18. package/dist/cjs/{controller-2eb9fb38.js → controller-74f1ad1e.js} +1 -1
  19. package/dist/cjs/{controller-2eb9fb38.js.map → controller-74f1ad1e.js.map} +1 -1
  20. package/dist/cjs/{controller-3e2c5a85.js → controller-d7bdeccb.js} +1 -1
  21. package/dist/cjs/{controller-3e2c5a85.js.map → controller-d7bdeccb.js.map} +1 -1
  22. package/dist/cjs/controller-da3f301c.js +4 -0
  23. package/dist/cjs/{controller-0e69dbb2.js.map → controller-da3f301c.js.map} +1 -1
  24. package/dist/cjs/{controller-eec65537.js → controller-f9d2f23f.js} +1 -1
  25. package/dist/cjs/{controller-eec65537.js.map → controller-f9d2f23f.js.map} +1 -1
  26. package/dist/cjs/{controller-icon-b2adb41f.js → controller-icon-5557e764.js} +1 -1
  27. package/dist/cjs/{controller-icon-b2adb41f.js.map → controller-icon-5557e764.js.map} +1 -1
  28. package/dist/cjs/{custom-class-21ff3afb.js → custom-class-56e5662f.js} +1 -1
  29. package/dist/cjs/{custom-class-21ff3afb.js.map → custom-class-56e5662f.js.map} +1 -1
  30. package/dist/cjs/{dev.utils-d13975a9.js → dev.utils-8e23d9dd.js} +1 -1
  31. package/dist/cjs/{dev.utils-d13975a9.js.map → dev.utils-8e23d9dd.js.map} +1 -1
  32. package/dist/cjs/{devtools-38f857d8.js → devtools-70a57ea1.js} +1 -1
  33. package/dist/cjs/{devtools-38f857d8.js.map → devtools-70a57ea1.js.map} +1 -1
  34. package/dist/cjs/has-closer-8b034d42.js +4 -0
  35. package/dist/cjs/{has-closer-100a47c2.js.map → has-closer-8b034d42.js.map} +1 -1
  36. package/dist/cjs/hide-label-a577fab3.js +4 -0
  37. package/dist/cjs/{hide-label-6723b5b2.js.map → hide-label-a577fab3.js.map} +1 -1
  38. package/dist/cjs/{i18n-eba54a7b.js → i18n-159f0944.js} +1 -1
  39. package/dist/cjs/{i18n-eba54a7b.js.map → i18n-159f0944.js.map} +1 -1
  40. package/dist/cjs/{icon-0f3a69be.js → icon-7d2fc1c2.js} +1 -1
  41. package/dist/cjs/{icon-0f3a69be.js.map → icon-7d2fc1c2.js.map} +1 -1
  42. package/dist/cjs/image-source-f0b80952.js +4 -0
  43. package/dist/cjs/{image-source-1983e735.js.map → image-source-f0b80952.js.map} +1 -1
  44. package/dist/cjs/{index-6a24b8dc.js → index-51c274b1.js} +1 -1
  45. package/dist/cjs/index-51c274b1.js.map +1 -0
  46. package/dist/cjs/{index-68e17b5d.js → index-f4a3c106.js} +1 -1
  47. package/dist/cjs/{index-68e17b5d.js.map → index-f4a3c106.js.map} +1 -1
  48. package/dist/cjs/index.cjs.js +1 -1
  49. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-alert-wc_2.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-alert-wc_2.cjs.entry.js.map +1 -1
  53. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  57. package/dist/cjs/kol-button-wc_2.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  60. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  67. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  82. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  88. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-popover.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-span-wc_2.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  117. package/dist/cjs/kolibri.cjs.js +1 -1
  118. package/dist/cjs/{label-d9a9a6f4.js → label-cecc9db2.js} +1 -1
  119. package/dist/cjs/{label-d9a9a6f4.js.map → label-cecc9db2.js.map} +1 -1
  120. package/dist/cjs/loader.cjs.js +1 -1
  121. package/dist/cjs/open-e1bebca6.js +4 -0
  122. package/dist/cjs/{open-52eaa417.js.map → open-e1bebca6.js.map} +1 -1
  123. package/dist/cjs/{prop.validators-39b64779.js → prop.validators-479e4ee4.js} +1 -1
  124. package/dist/cjs/{prop.validators-39b64779.js.map → prop.validators-479e4ee4.js.map} +1 -1
  125. package/dist/cjs/rows-6391f6db.js +4 -0
  126. package/dist/cjs/{rows-e8b15d1e.js.map → rows-6391f6db.js.map} +1 -1
  127. package/dist/cjs/show-a32da08d.js +4 -0
  128. package/dist/cjs/{show-6594fa81.js.map → show-a32da08d.js.map} +1 -1
  129. package/dist/cjs/suggestions-a336a4b9.js +4 -0
  130. package/dist/cjs/{suggestions-31e0f03d.js.map → suggestions-a336a4b9.js.map} +1 -1
  131. package/dist/cjs/{tab-index-35c6760c.js → tab-index-fd5180e7.js} +1 -1
  132. package/dist/cjs/{tab-index-35c6760c.js.map → tab-index-fd5180e7.js.map} +1 -1
  133. package/dist/cjs/tooltip-align-109e6d2d.js +4 -0
  134. package/dist/cjs/{tooltip-align-1d0ca98b.js.map → tooltip-align-109e6d2d.js.map} +1 -1
  135. package/dist/cjs/unique-nav-labels-9784a4c5.js +4 -0
  136. package/dist/cjs/unique-nav-labels-9784a4c5.js.map +1 -0
  137. package/dist/cjs/{validation-bdafce0a.js → validation-b21d3d8a.js} +1 -1
  138. package/dist/cjs/{validation-bdafce0a.js.map → validation-b21d3d8a.js.map} +1 -1
  139. package/dist/cjs/validation-c19be532.js +4 -0
  140. package/dist/cjs/{validation-0b5d9cb4.js.map → validation-c19be532.js.map} +1 -1
  141. package/dist/components/component13.js +1 -1
  142. package/dist/components/component13.js.map +1 -1
  143. package/dist/components/component14.js +1 -1
  144. package/dist/components/component14.js.map +1 -1
  145. package/dist/components/component15.js +1 -1
  146. package/dist/components/component15.js.map +1 -1
  147. package/dist/components/component16.js +1 -1
  148. package/dist/components/component16.js.map +1 -1
  149. package/dist/components/kol-breadcrumb.js +1 -1
  150. package/dist/components/kol-breadcrumb.js.map +1 -1
  151. package/dist/components/kol-card.js +1 -1
  152. package/dist/components/kol-card.js.map +1 -1
  153. package/dist/components/kol-input-checkbox.js +1 -1
  154. package/dist/components/kol-input-checkbox.js.map +1 -1
  155. package/dist/components/kol-input-color.js +1 -1
  156. package/dist/components/kol-input-color.js.map +1 -1
  157. package/dist/components/kol-input-date.js +1 -1
  158. package/dist/components/kol-input-date.js.map +1 -1
  159. package/dist/components/kol-input-email.js +1 -1
  160. package/dist/components/kol-input-email.js.map +1 -1
  161. package/dist/components/kol-input-file.js +1 -1
  162. package/dist/components/kol-input-file.js.map +1 -1
  163. package/dist/components/kol-input-number.js +1 -1
  164. package/dist/components/kol-input-number.js.map +1 -1
  165. package/dist/components/kol-input-password.js +1 -1
  166. package/dist/components/kol-input-password.js.map +1 -1
  167. package/dist/components/kol-input-range.js +1 -1
  168. package/dist/components/kol-input-range.js.map +1 -1
  169. package/dist/components/kol-input-text.js +1 -1
  170. package/dist/components/kol-input-text.js.map +1 -1
  171. package/dist/components/kol-kolibri.js +1 -1
  172. package/dist/components/kol-kolibri.js.map +1 -1
  173. package/dist/components/kol-link-group.js +1 -1
  174. package/dist/components/kol-link-group.js.map +1 -1
  175. package/dist/components/kol-logo.js +1 -1
  176. package/dist/components/kol-logo.js.map +1 -1
  177. package/dist/components/kol-nav.js +1 -1
  178. package/dist/components/kol-nav.js.map +1 -1
  179. package/dist/components/kol-skip-nav.js +1 -1
  180. package/dist/components/kol-skip-nav.js.map +1 -1
  181. package/dist/components/kol-split-button.js.map +1 -1
  182. package/dist/components/kol-textarea.js +1 -1
  183. package/dist/components/kol-textarea.js.map +1 -1
  184. package/dist/components/prop.validators.js +1 -1
  185. package/dist/components/prop.validators.js.map +1 -1
  186. package/dist/components/unique-nav-labels.js +4 -0
  187. package/dist/components/unique-nav-labels.js.map +1 -0
  188. package/dist/esm/{a11y.tipps-3205ae7d.js → a11y.tipps-5ae09962.js} +1 -1
  189. package/dist/esm/{a11y.tipps-3205ae7d.js.map → a11y.tipps-5ae09962.js.map} +1 -1
  190. package/dist/esm/{align-c3f25b15.js → align-b2d5d00a.js} +1 -1
  191. package/dist/esm/{align-c3f25b15.js.map → align-b2d5d00a.js.map} +1 -1
  192. package/dist/esm/{alignment-c3101451.js → alignment-9a3f2940.js} +1 -1
  193. package/dist/esm/{alignment-c3101451.js.map → alignment-9a3f2940.js.map} +1 -1
  194. package/dist/esm/{alternative-button-link-role-3ee6a8a7.js → alternative-button-link-role-ff6376ca.js} +1 -1
  195. package/dist/esm/{alternative-button-link-role-3ee6a8a7.js.map → alternative-button-link-role-ff6376ca.js.map} +1 -1
  196. package/dist/esm/app-globals-60e47707.js +4 -0
  197. package/dist/esm/{app-globals-d2864967.js.map → app-globals-60e47707.js.map} +1 -1
  198. package/dist/esm/{associated.controller-e261bc1a.js → associated.controller-a89d0769.js} +1 -1
  199. package/dist/esm/{associated.controller-e261bc1a.js.map → associated.controller-a89d0769.js.map} +1 -1
  200. package/dist/esm/{color-e03668b8.js → color-4cb6f54c.js} +1 -1
  201. package/dist/esm/{color-e03668b8.js.map → color-4cb6f54c.js.map} +1 -1
  202. package/dist/esm/{controller-b538f5cd.js → controller-2f2e8f1f.js} +1 -1
  203. package/dist/esm/{controller-b538f5cd.js.map → controller-2f2e8f1f.js.map} +1 -1
  204. package/dist/esm/{controller-dc4b7a0e.js → controller-5b6e0719.js} +1 -1
  205. package/dist/esm/{controller-dc4b7a0e.js.map → controller-5b6e0719.js.map} +1 -1
  206. package/dist/esm/{controller-ac00e430.js → controller-6b466028.js} +1 -1
  207. package/dist/esm/{controller-ac00e430.js.map → controller-6b466028.js.map} +1 -1
  208. package/dist/esm/{controller-c37fdd5f.js → controller-8ea0f9de.js} +1 -1
  209. package/dist/esm/{controller-c37fdd5f.js.map → controller-8ea0f9de.js.map} +1 -1
  210. package/dist/esm/{controller-04ef05b8.js → controller-a77e29e7.js} +1 -1
  211. package/dist/esm/{controller-04ef05b8.js.map → controller-a77e29e7.js.map} +1 -1
  212. package/dist/esm/{controller-icon-caaea418.js → controller-icon-fa98d9e4.js} +1 -1
  213. package/dist/esm/{controller-icon-caaea418.js.map → controller-icon-fa98d9e4.js.map} +1 -1
  214. package/dist/esm/{custom-class-fc81ab83.js → custom-class-28d7fc7e.js} +1 -1
  215. package/dist/esm/{custom-class-fc81ab83.js.map → custom-class-28d7fc7e.js.map} +1 -1
  216. package/dist/esm/{dev.utils-c0c1c4e5.js → dev.utils-6b0ea1ed.js} +1 -1
  217. package/dist/esm/{dev.utils-c0c1c4e5.js.map → dev.utils-6b0ea1ed.js.map} +1 -1
  218. package/dist/esm/{devtools-2bc3c829.js → devtools-e5d21088.js} +1 -1
  219. package/dist/esm/{devtools-2bc3c829.js.map → devtools-e5d21088.js.map} +1 -1
  220. package/dist/esm/{has-closer-f435688d.js → has-closer-1778d617.js} +1 -1
  221. package/dist/esm/{has-closer-f435688d.js.map → has-closer-1778d617.js.map} +1 -1
  222. package/dist/esm/{hide-label-7ff2d26a.js → hide-label-e859160b.js} +1 -1
  223. package/dist/esm/{hide-label-7ff2d26a.js.map → hide-label-e859160b.js.map} +1 -1
  224. package/dist/esm/{i18n-45aa3c6d.js → i18n-ddf139c5.js} +1 -1
  225. package/dist/esm/{i18n-45aa3c6d.js.map → i18n-ddf139c5.js.map} +1 -1
  226. package/dist/esm/{icon-995dad86.js → icon-d8996885.js} +1 -1
  227. package/dist/esm/{icon-995dad86.js.map → icon-d8996885.js.map} +1 -1
  228. package/dist/esm/{image-source-67fe13cc.js → image-source-1414809f.js} +1 -1
  229. package/dist/esm/{image-source-67fe13cc.js.map → image-source-1414809f.js.map} +1 -1
  230. package/dist/esm/{index-d8ac1088.js → index-2bab8f5e.js} +1 -1
  231. package/dist/esm/{index-d8ac1088.js.map → index-2bab8f5e.js.map} +1 -1
  232. package/dist/esm/{index-37b5cbcf.js → index-accc567c.js} +1 -1
  233. package/dist/esm/index-accc567c.js.map +1 -0
  234. package/dist/esm/index.js +1 -1
  235. package/dist/esm/kol-abbr.entry.js +1 -1
  236. package/dist/esm/kol-accordion.entry.js +1 -1
  237. package/dist/esm/kol-alert-wc_2.entry.js +1 -1
  238. package/dist/esm/kol-alert-wc_2.entry.js.map +1 -1
  239. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  240. package/dist/esm/kol-badge.entry.js +1 -1
  241. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  242. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  243. package/dist/esm/kol-button-wc_2.entry.js +1 -1
  244. package/dist/esm/kol-card.entry.js +1 -1
  245. package/dist/esm/kol-card.entry.js.map +1 -1
  246. package/dist/esm/kol-details.entry.js +1 -1
  247. package/dist/esm/kol-form.entry.js +1 -1
  248. package/dist/esm/kol-icon.entry.js +1 -1
  249. package/dist/esm/kol-image.entry.js +1 -1
  250. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  251. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  252. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  253. package/dist/esm/kol-input-color.entry.js +1 -1
  254. package/dist/esm/kol-input-color.entry.js.map +1 -1
  255. package/dist/esm/kol-input-date.entry.js +1 -1
  256. package/dist/esm/kol-input-date.entry.js.map +1 -1
  257. package/dist/esm/kol-input-email.entry.js +1 -1
  258. package/dist/esm/kol-input-email.entry.js.map +1 -1
  259. package/dist/esm/kol-input-file.entry.js +1 -1
  260. package/dist/esm/kol-input-file.entry.js.map +1 -1
  261. package/dist/esm/kol-input-number.entry.js +1 -1
  262. package/dist/esm/kol-input-number.entry.js.map +1 -1
  263. package/dist/esm/kol-input-password.entry.js +1 -1
  264. package/dist/esm/kol-input-password.entry.js.map +1 -1
  265. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  266. package/dist/esm/kol-input-radio.entry.js +1 -1
  267. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  268. package/dist/esm/kol-input-range.entry.js +1 -1
  269. package/dist/esm/kol-input-range.entry.js.map +1 -1
  270. package/dist/esm/kol-input-text.entry.js +1 -1
  271. package/dist/esm/kol-input-text.entry.js.map +1 -1
  272. package/dist/esm/kol-kolibri.entry.js +1 -1
  273. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  274. package/dist/esm/kol-link-button.entry.js +1 -1
  275. package/dist/esm/kol-link-group.entry.js +1 -1
  276. package/dist/esm/kol-link-group.entry.js.map +1 -1
  277. package/dist/esm/kol-link-wc.entry.js +1 -1
  278. package/dist/esm/kol-logo.entry.js +1 -1
  279. package/dist/esm/kol-logo.entry.js.map +1 -1
  280. package/dist/esm/kol-modal.entry.js +1 -1
  281. package/dist/esm/kol-nav.entry.js +1 -1
  282. package/dist/esm/kol-nav.entry.js.map +1 -1
  283. package/dist/esm/kol-pagination.entry.js +1 -1
  284. package/dist/esm/kol-pagination.entry.js.map +1 -1
  285. package/dist/esm/kol-popover.entry.js +1 -1
  286. package/dist/esm/kol-progress.entry.js +1 -1
  287. package/dist/esm/kol-quote.entry.js +1 -1
  288. package/dist/esm/kol-select.entry.js +1 -1
  289. package/dist/esm/kol-select.entry.js.map +1 -1
  290. package/dist/esm/kol-skip-nav.entry.js +1 -1
  291. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  292. package/dist/esm/kol-span-wc_2.entry.js +1 -1
  293. package/dist/esm/kol-spin.entry.js +1 -1
  294. package/dist/esm/kol-split-button.entry.js +1 -1
  295. package/dist/esm/kol-split-button.entry.js.map +1 -1
  296. package/dist/esm/kol-symbol.entry.js +1 -1
  297. package/dist/esm/kol-table.entry.js +1 -1
  298. package/dist/esm/kol-tabs.entry.js +1 -1
  299. package/dist/esm/kol-textarea.entry.js +1 -1
  300. package/dist/esm/kol-textarea.entry.js.map +1 -1
  301. package/dist/esm/kol-toast.entry.js +1 -1
  302. package/dist/esm/kol-version.entry.js +1 -1
  303. package/dist/esm/kolibri.js +1 -1
  304. package/dist/esm/{label-f1600f9b.js → label-57657308.js} +1 -1
  305. package/dist/esm/{label-f1600f9b.js.map → label-57657308.js.map} +1 -1
  306. package/dist/esm/loader.js +1 -1
  307. package/dist/esm/{open-696153d1.js → open-95995897.js} +1 -1
  308. package/dist/esm/{open-696153d1.js.map → open-95995897.js.map} +1 -1
  309. package/dist/esm/{prop.validators-fba03cca.js → prop.validators-4c3b89f9.js} +1 -1
  310. package/dist/esm/{prop.validators-fba03cca.js.map → prop.validators-4c3b89f9.js.map} +1 -1
  311. package/dist/esm/{rows-4f484519.js → rows-06127010.js} +1 -1
  312. package/dist/esm/{rows-4f484519.js.map → rows-06127010.js.map} +1 -1
  313. package/dist/esm/{show-7c8e9658.js → show-e89cd97c.js} +1 -1
  314. package/dist/esm/{show-7c8e9658.js.map → show-e89cd97c.js.map} +1 -1
  315. package/dist/esm/{suggestions-ec4c5896.js → suggestions-27213630.js} +1 -1
  316. package/dist/esm/{suggestions-ec4c5896.js.map → suggestions-27213630.js.map} +1 -1
  317. package/dist/esm/{tab-index-047d5fa8.js → tab-index-56c7ad59.js} +1 -1
  318. package/dist/esm/{tab-index-047d5fa8.js.map → tab-index-56c7ad59.js.map} +1 -1
  319. package/dist/esm/tooltip-align-80a13b20.js +4 -0
  320. package/dist/esm/{tooltip-align-059bc525.js.map → tooltip-align-80a13b20.js.map} +1 -1
  321. package/dist/esm/unique-nav-labels-c6750f60.js +4 -0
  322. package/dist/esm/unique-nav-labels-c6750f60.js.map +1 -0
  323. package/dist/esm/validation-b1a3ffba.js +4 -0
  324. package/dist/esm/{validation-e77a4410.js.map → validation-b1a3ffba.js.map} +1 -1
  325. package/dist/esm/validation-fb2d63bd.js +4 -0
  326. package/dist/esm/{validation-5a1145b4.js.map → validation-fb2d63bd.js.map} +1 -1
  327. package/dist/kolibri/{a11y.tipps-3205ae7d.js → a11y.tipps-5ae09962.js} +1 -1
  328. package/dist/kolibri/align-b2d5d00a.js +4 -0
  329. package/dist/kolibri/alignment-9a3f2940.js +4 -0
  330. package/dist/kolibri/{alternative-button-link-role-3ee6a8a7.js → alternative-button-link-role-ff6376ca.js} +1 -1
  331. package/dist/kolibri/app-globals-60e47707.js +4 -0
  332. package/dist/kolibri/{app-globals-d2864967.js.map → app-globals-60e47707.js.map} +1 -1
  333. package/dist/kolibri/{associated.controller-e261bc1a.js → associated.controller-a89d0769.js} +1 -1
  334. package/dist/kolibri/{color-e03668b8.js → color-4cb6f54c.js} +1 -1
  335. package/dist/kolibri/{controller-b538f5cd.js → controller-2f2e8f1f.js} +1 -1
  336. package/dist/kolibri/{controller-dc4b7a0e.js → controller-5b6e0719.js} +1 -1
  337. package/dist/kolibri/controller-6b466028.js +4 -0
  338. package/dist/kolibri/{controller-ac00e430.js.map → controller-6b466028.js.map} +1 -1
  339. package/dist/kolibri/{controller-c37fdd5f.js → controller-8ea0f9de.js} +1 -1
  340. package/dist/kolibri/{controller-04ef05b8.js → controller-a77e29e7.js} +1 -1
  341. package/dist/kolibri/controller-icon-fa98d9e4.js +4 -0
  342. package/dist/kolibri/{custom-class-fc81ab83.js → custom-class-28d7fc7e.js} +1 -1
  343. package/dist/kolibri/{dev.utils-c0c1c4e5.js → dev.utils-6b0ea1ed.js} +1 -1
  344. package/dist/kolibri/{dev.utils-c0c1c4e5.js.map → dev.utils-6b0ea1ed.js.map} +1 -1
  345. package/dist/kolibri/{devtools-2bc3c829.js → devtools-e5d21088.js} +1 -1
  346. package/dist/kolibri/has-closer-1778d617.js +4 -0
  347. package/dist/kolibri/{has-closer-f435688d.js.map → has-closer-1778d617.js.map} +1 -1
  348. package/dist/kolibri/hide-label-e859160b.js +4 -0
  349. package/dist/kolibri/{i18n-45aa3c6d.js → i18n-ddf139c5.js} +1 -1
  350. package/dist/kolibri/{icon-995dad86.js → icon-d8996885.js} +1 -1
  351. package/dist/kolibri/image-source-1414809f.js +4 -0
  352. package/dist/kolibri/{index-d8ac1088.js → index-2bab8f5e.js} +1 -1
  353. package/dist/kolibri/{index-37b5cbcf.js → index-accc567c.js} +1 -1
  354. package/dist/kolibri/index-accc567c.js.map +1 -0
  355. package/dist/kolibri/index.esm.js +1 -1
  356. package/dist/kolibri/kol-abbr.entry.js +1 -1
  357. package/dist/kolibri/kol-accordion.entry.js +1 -1
  358. package/dist/kolibri/kol-alert-wc_2.entry.js +1 -1
  359. package/dist/kolibri/kol-alert-wc_2.entry.js.map +1 -1
  360. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  361. package/dist/kolibri/kol-badge.entry.js +1 -1
  362. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  363. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  364. package/dist/kolibri/kol-button-wc_2.entry.js +1 -1
  365. package/dist/kolibri/kol-card.entry.js +1 -1
  366. package/dist/kolibri/kol-card.entry.js.map +1 -1
  367. package/dist/kolibri/kol-details.entry.js +1 -1
  368. package/dist/kolibri/kol-form.entry.js +1 -1
  369. package/dist/kolibri/kol-icon.entry.js +1 -1
  370. package/dist/kolibri/kol-image.entry.js +1 -1
  371. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  372. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  373. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  374. package/dist/kolibri/kol-input-color.entry.js +1 -1
  375. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  376. package/dist/kolibri/kol-input-date.entry.js +1 -1
  377. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  378. package/dist/kolibri/kol-input-email.entry.js +1 -1
  379. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  380. package/dist/kolibri/kol-input-file.entry.js +1 -1
  381. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  382. package/dist/kolibri/kol-input-number.entry.js +1 -1
  383. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  384. package/dist/kolibri/kol-input-password.entry.js +1 -1
  385. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  386. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  387. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  388. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  389. package/dist/kolibri/kol-input-range.entry.js +1 -1
  390. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  391. package/dist/kolibri/kol-input-text.entry.js +1 -1
  392. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  393. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  394. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  395. package/dist/kolibri/kol-link-button.entry.js +1 -1
  396. package/dist/kolibri/kol-link-group.entry.js +1 -1
  397. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  398. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  399. package/dist/kolibri/kol-logo.entry.js +1 -1
  400. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  401. package/dist/kolibri/kol-modal.entry.js +1 -1
  402. package/dist/kolibri/kol-nav.entry.js +1 -1
  403. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  404. package/dist/kolibri/kol-pagination.entry.js +1 -1
  405. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  406. package/dist/kolibri/kol-popover.entry.js +1 -1
  407. package/dist/kolibri/kol-progress.entry.js +1 -1
  408. package/dist/kolibri/kol-quote.entry.js +1 -1
  409. package/dist/kolibri/kol-select.entry.js +1 -1
  410. package/dist/kolibri/kol-select.entry.js.map +1 -1
  411. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  412. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  413. package/dist/kolibri/kol-span-wc_2.entry.js +1 -1
  414. package/dist/kolibri/kol-spin.entry.js +1 -1
  415. package/dist/kolibri/kol-split-button.entry.js +1 -1
  416. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  417. package/dist/kolibri/kol-symbol.entry.js +1 -1
  418. package/dist/kolibri/kol-table.entry.js +1 -1
  419. package/dist/kolibri/kol-tabs.entry.js +1 -1
  420. package/dist/kolibri/kol-textarea.entry.js +1 -1
  421. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  422. package/dist/kolibri/kol-toast.entry.js +1 -1
  423. package/dist/kolibri/kol-version.entry.js +1 -1
  424. package/dist/kolibri/kolibri.esm.js +1 -1
  425. package/dist/kolibri/label-57657308.js +4 -0
  426. package/dist/kolibri/open-95995897.js +4 -0
  427. package/dist/kolibri/{open-696153d1.js.map → open-95995897.js.map} +1 -1
  428. package/dist/kolibri/{prop.validators-fba03cca.js → prop.validators-4c3b89f9.js} +1 -1
  429. package/dist/kolibri/rows-06127010.js +4 -0
  430. package/dist/kolibri/show-e89cd97c.js +4 -0
  431. package/dist/kolibri/{show-7c8e9658.js.map → show-e89cd97c.js.map} +1 -1
  432. package/dist/kolibri/{suggestions-ec4c5896.js → suggestions-27213630.js} +1 -1
  433. package/dist/kolibri/tab-index-56c7ad59.js +4 -0
  434. package/dist/kolibri/{tab-index-047d5fa8.js.map → tab-index-56c7ad59.js.map} +1 -1
  435. package/dist/kolibri/tooltip-align-80a13b20.js +4 -0
  436. package/dist/kolibri/unique-nav-labels-c6750f60.js +4 -0
  437. package/dist/kolibri/unique-nav-labels-c6750f60.js.map +1 -0
  438. package/dist/kolibri/validation-b1a3ffba.js +4 -0
  439. package/dist/kolibri/validation-fb2d63bd.js +4 -0
  440. package/dist/types/components/breadcrumb/component.d.ts +2 -1
  441. package/dist/types/components/link-group/component.d.ts +2 -1
  442. package/dist/types/components/nav/component.d.ts +1 -1
  443. package/dist/types/components/pagination/component.d.ts +2 -1
  444. package/dist/types/components/pagination/types.d.ts +2 -2
  445. package/dist/types/components/skip-nav/component.d.ts +2 -1
  446. package/dist/types/utils/unique-nav-labels.d.ts +2 -0
  447. package/doc/split-button.md +7 -11
  448. package/jest-test-results.json +1 -1
  449. package/package.json +1 -1
  450. package/dist/cjs/align-586041f5.js +0 -4
  451. package/dist/cjs/controller-0e69dbb2.js +0 -4
  452. package/dist/cjs/has-closer-100a47c2.js +0 -4
  453. package/dist/cjs/hide-label-6723b5b2.js +0 -4
  454. package/dist/cjs/image-source-1983e735.js +0 -4
  455. package/dist/cjs/index-6a24b8dc.js.map +0 -1
  456. package/dist/cjs/open-52eaa417.js +0 -4
  457. package/dist/cjs/rows-e8b15d1e.js +0 -4
  458. package/dist/cjs/show-6594fa81.js +0 -4
  459. package/dist/cjs/suggestions-31e0f03d.js +0 -4
  460. package/dist/cjs/tooltip-align-1d0ca98b.js +0 -4
  461. package/dist/cjs/validation-0b5d9cb4.js +0 -4
  462. package/dist/esm/app-globals-d2864967.js +0 -4
  463. package/dist/esm/index-37b5cbcf.js.map +0 -1
  464. package/dist/esm/tooltip-align-059bc525.js +0 -4
  465. package/dist/esm/validation-5a1145b4.js +0 -4
  466. package/dist/esm/validation-e77a4410.js +0 -4
  467. package/dist/kolibri/align-c3f25b15.js +0 -4
  468. package/dist/kolibri/alignment-c3101451.js +0 -4
  469. package/dist/kolibri/app-globals-d2864967.js +0 -4
  470. package/dist/kolibri/controller-ac00e430.js +0 -4
  471. package/dist/kolibri/controller-icon-caaea418.js +0 -4
  472. package/dist/kolibri/has-closer-f435688d.js +0 -4
  473. package/dist/kolibri/hide-label-7ff2d26a.js +0 -4
  474. package/dist/kolibri/image-source-67fe13cc.js +0 -4
  475. package/dist/kolibri/index-37b5cbcf.js.map +0 -1
  476. package/dist/kolibri/label-f1600f9b.js +0 -4
  477. package/dist/kolibri/open-696153d1.js +0 -4
  478. package/dist/kolibri/rows-4f484519.js +0 -4
  479. package/dist/kolibri/show-7c8e9658.js +0 -4
  480. package/dist/kolibri/tab-index-047d5fa8.js +0 -4
  481. package/dist/kolibri/tooltip-align-059bc525.js +0 -4
  482. package/dist/kolibri/validation-5a1145b4.js +0 -4
  483. package/dist/kolibri/validation-e77a4410.js +0 -4
  484. /package/dist/kolibri/{a11y.tipps-3205ae7d.js.map → a11y.tipps-5ae09962.js.map} +0 -0
  485. /package/dist/kolibri/{align-c3f25b15.js.map → align-b2d5d00a.js.map} +0 -0
  486. /package/dist/kolibri/{alignment-c3101451.js.map → alignment-9a3f2940.js.map} +0 -0
  487. /package/dist/kolibri/{alternative-button-link-role-3ee6a8a7.js.map → alternative-button-link-role-ff6376ca.js.map} +0 -0
  488. /package/dist/kolibri/{associated.controller-e261bc1a.js.map → associated.controller-a89d0769.js.map} +0 -0
  489. /package/dist/kolibri/{color-e03668b8.js.map → color-4cb6f54c.js.map} +0 -0
  490. /package/dist/kolibri/{controller-b538f5cd.js.map → controller-2f2e8f1f.js.map} +0 -0
  491. /package/dist/kolibri/{controller-dc4b7a0e.js.map → controller-5b6e0719.js.map} +0 -0
  492. /package/dist/kolibri/{controller-c37fdd5f.js.map → controller-8ea0f9de.js.map} +0 -0
  493. /package/dist/kolibri/{controller-04ef05b8.js.map → controller-a77e29e7.js.map} +0 -0
  494. /package/dist/kolibri/{controller-icon-caaea418.js.map → controller-icon-fa98d9e4.js.map} +0 -0
  495. /package/dist/kolibri/{custom-class-fc81ab83.js.map → custom-class-28d7fc7e.js.map} +0 -0
  496. /package/dist/kolibri/{devtools-2bc3c829.js.map → devtools-e5d21088.js.map} +0 -0
  497. /package/dist/kolibri/{hide-label-7ff2d26a.js.map → hide-label-e859160b.js.map} +0 -0
  498. /package/dist/kolibri/{i18n-45aa3c6d.js.map → i18n-ddf139c5.js.map} +0 -0
  499. /package/dist/kolibri/{icon-995dad86.js.map → icon-d8996885.js.map} +0 -0
  500. /package/dist/kolibri/{image-source-67fe13cc.js.map → image-source-1414809f.js.map} +0 -0
  501. /package/dist/kolibri/{index-d8ac1088.js.map → index-2bab8f5e.js.map} +0 -0
  502. /package/dist/kolibri/{label-f1600f9b.js.map → label-57657308.js.map} +0 -0
  503. /package/dist/kolibri/{prop.validators-fba03cca.js.map → prop.validators-4c3b89f9.js.map} +0 -0
  504. /package/dist/kolibri/{rows-4f484519.js.map → rows-06127010.js.map} +0 -0
  505. /package/dist/kolibri/{suggestions-ec4c5896.js.map → suggestions-27213630.js.map} +0 -0
  506. /package/dist/kolibri/{tooltip-align-059bc525.js.map → tooltip-align-80a13b20.js.map} +0 -0
  507. /package/dist/kolibri/{validation-e77a4410.js.map → validation-b1a3ffba.js.map} +0 -0
  508. /package/dist/kolibri/{validation-5a1145b4.js.map → validation-fb2d63bd.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{S as t,r as e}from"./index-37b5cbcf.js";const i={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class s{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||i,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,s,n){return n&&!this.debug?null:("string"==typeof t[0]&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[e](t))}create(t){return new s(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new s(this.logger,t)}}var n=new s;class r{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach((t=>{this.observers[t]=this.observers[t]||[],this.observers[t].push(e)})),this}off(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter((t=>t!==e)):delete this.observers[t])}emit(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),n=1;n<e;n++)s[n-1]=arguments[n];if(this.observers[t]){[].concat(this.observers[t]).forEach((t=>{t(...s)}))}if(this.observers["*"]){[].concat(this.observers["*"]).forEach((e=>{e.apply(e,[t,...s])}))}}}function f(){let t,e;const s=new Promise(((s,n)=>{t=s,e=n}));return s.resolve=t,s.reject=e,s}function o(t){return null==t?"":""+t}function u(t,e,s){t.forEach((t=>{e[t]&&(s[t]=e[t])}))}function h(t,e,s){function n(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function i(){return!t||"string"==typeof t}const o="string"!=typeof e?[].concat(e):e.split(".");for(;o.length>1;){if(i())return{};const e=n(o.shift());!t[e]&&s&&(t[e]=new s),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{}}return i()?{}:{obj:t,k:n(o.shift())}}function a(t,e,s){const{obj:n,k:i}=h(t,e,Object);n[i]=s}function l(t,e,s,n){const{obj:i,k:o}=h(t,e,Object);i[o]=i[o]||[],n&&(i[o]=i[o].concat(s)),n||i[o].push(s)}function c(t,e){const{obj:s,k:n}=h(t,e);if(s)return s[n]}function d(t,e,s){const n=c(t,s);return void 0!==n?n:c(e,s)}function g(t,e,s){for(const n in e)"__proto__"!==n&&"constructor"!==n&&(n in t?"string"==typeof t[n]||t[n]instanceof String||"string"==typeof e[n]||e[n]instanceof String?s&&(t[n]=e[n]):g(t[n],e[n],s):t[n]=e[n]);return t}function p(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function m(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(t=>y[t])):t}const b=[" ",",","?","!",";"];function $(t,e,s){e=e||"",s=s||"";const n=b.filter((t=>e.indexOf(t)<0&&s.indexOf(t)<0));if(0===n.length)return!0;const i=new RegExp(`(${n.map((t=>"?"===t?"\\?":t)).join("|")})`);let o=!i.test(t);if(!o){const e=t.indexOf(s);e>0&&!i.test(t.substring(0,e))&&(o=!0)}return o}function v(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const n=e.split(s);let i=t;for(let t=0;t<n.length;++t){if(!i)return;if("string"==typeof i[n[t]]&&t+1<n.length)return;if(void 0===i[n[t]]){let o=2,r=n.slice(t,t+o).join(s),a=i[r];for(;void 0===a&&n.length>t+o;)o++,r=n.slice(t,t+o).join(s),a=i[r];if(void 0===a)return;if(null===a)return null;if(e.endsWith(r)){if("string"==typeof a)return a;if(r&&"string"==typeof a[r])return a[r]}const l=n.slice(t+o).join(s);return l?v(a,l,s):void 0}i=i[n[t]]}return i}function w(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class N extends r{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let r=[t,e];s&&"string"!=typeof s&&(r=r.concat(s)),s&&"string"==typeof s&&(r=r.concat(i?s.split(i):s)),t.indexOf(".")>-1&&(r=t.split("."));const a=c(this.data,r);return a||!o||"string"!=typeof s?a:v(this.data&&this.data[t]&&this.data[t][e],s,i)}addResource(t,e,s,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let r=[t,e];s&&(r=r.concat(o?s.split(o):s)),t.indexOf(".")>-1&&(r=t.split("."),n=e,e=r[1]),this.addNamespaces(e),a(this.data,r,n),i.silent||this.emit("added",t,e,s,n)}addResources(t,e,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const n in s)"string"!=typeof s[n]&&"[object Array]"!==Object.prototype.toString.apply(s[n])||this.addResource(t,e,n,s[n],{silent:!0});n.silent||this.emit("added",t,e,s)}addResourceBundle(t,e,s,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},r=[t,e];t.indexOf(".")>-1&&(r=t.split("."),n=s,s=e,e=r[1]),this.addNamespaces(e);let l=c(this.data,r)||{};n?g(l,s,i):l={...l,...s},a(this.data,r,l),o.silent||this.emit("added",t,e,s)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var j={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,s,n,i){return t.forEach((t=>{this.processors[t]&&(e=this.processors[t].process(e,s,n,i))})),e}};const k={};class x extends r{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),u(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=n.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const s=this.resolve(t,e);return s&&void 0!==s.res}extractFromKey(t,e){let s=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===s&&(s=":");const n=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let i=e.ns||this.options.defaultNS||[];const o=s&&t.indexOf(s)>-1,r=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||$(t,s,n));if(o&&!r){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:i};const o=t.split(s);(s!==n||s===n&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),t=o.join(n)}return"string"==typeof i&&(i=[i]),{key:t,namespaces:i}}translate(t,e,s){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const n=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:o,namespaces:r}=this.extractFromKey(t[t.length-1],e),a=r[r.length-1],l=e.lng||this.language,u=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const t=e.nsSeparator||this.options.nsSeparator;return n?{res:`${a}${t}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a}:`${a}${t}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a}:o}const h=this.resolve(t,e);let c=h&&h.res;const p=h&&h.usedKey||o,g=h&&h.exactUsedKey||o,d=Object.prototype.toString.apply(c),f=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&c&&("string"!=typeof c&&"boolean"!=typeof c&&"number"!=typeof c)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(d)<0&&("string"!=typeof f||"[object Array]"!==d)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,c,{...e,ns:r}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(h.res=t,h):t}if(i){const t="[object Array]"===d,s=t?[]:{},n=t?g:p;for(const t in c)if(Object.prototype.hasOwnProperty.call(c,t)){const o=`${n}${i}${t}`;s[t]=this.translate(o,{...e,joinArrays:!1,ns:r}),s[t]===o&&(s[t]=c[t])}c=s}}else if(m&&"string"==typeof f&&"[object Array]"===d)c=c.join(f),c&&(c=this.extendTranslation(c,t,e,s));else{let n=!1,r=!1;const u=void 0!==e.count&&"string"!=typeof e.count,p=x.hasDefaultValue(e),g=u?this.pluralResolver.getSuffix(l,e.count,e):"",d=e.ordinal&&u?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",f=e[`defaultValue${g}`]||e[`defaultValue${d}`]||e.defaultValue;!this.isValidLookup(c)&&p&&(n=!0,c=f),this.isValidLookup(c)||(r=!0,c=o);const m=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:c,y=p&&f!==c&&this.options.updateMissing;if(r||n||y){if(this.logger.log(y?"updateKey":"missingKey",l,a,o,y?f:c),i){const t=this.resolve(o,{...e,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[];const s=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&s&&s[0])for(let e=0;e<s.length;e++)t.push(s[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(e.lng||this.language):t.push(e.lng||this.language);const n=(t,s,n)=>{const i=p&&n!==c?n:m;this.options.missingKeyHandler?this.options.missingKeyHandler(t,a,s,i,y,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,a,s,i,y,e),this.emit("missingKey",t,a,s,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?t.forEach((t=>{this.pluralResolver.getSuffixes(t,e).forEach((s=>{n([t],o+s,e[`defaultValue${s}`]||f)}))})):n(t,o,f))}c=this.extendTranslation(c,t,e,h,s),r&&c===o&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${o}`),(r||n)&&this.options.parseMissingKeyHandler&&(c="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,n?c:void 0):this.options.parseMissingKeyHandler(c))}return n?(h.res=c,h):c}extendTranslation(t,e,s,n,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const r="string"==typeof t&&(s&&s.interpolation&&void 0!==s.interpolation.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(r){const e=t.match(this.interpolator.nestingRegexp);a=e&&e.length}let l=s.replace&&"string"!=typeof s.replace?s.replace:s;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,s.lng||this.language,s),r){const e=t.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(s.nest=!1)}!s.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(s.lng=n.usedLng),!1!==s.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i&&i[0]===n[0]&&!s.context?(o.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${e[0]}`),null):o.translate(...n,e)}),s)),s.interpolation&&this.interpolator.reset()}const r=s.postProcess||this.options.postProcess,a="string"==typeof r?[r]:r;return null!=t&&a&&a.length&&!1!==s.applyPostProcessor&&(t=j.handle(a,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:n,...s}:s,this)),t}resolve(t){let e,s,n,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((t=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(t,r),l=a.key;s=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const h=void 0!==r.count&&"string"!=typeof r.count,c=h&&!r.ordinal&&0===r.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==r.context&&("string"==typeof r.context||"number"==typeof r.context)&&""!==r.context,g=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);u.forEach((t=>{this.isValidLookup(e)||(o=t,!k[`${g[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(k[`${g[0]}-${t}`]=!0,this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach((s=>{if(this.isValidLookup(e))return;i=s;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,s,t,r);else{let t;h&&(t=this.pluralResolver.getSuffix(s,r.count,r));const e=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(o.push(l+t),r.ordinal&&0===t.indexOf(n)&&o.push(l+t.replace(n,this.options.pluralSeparator)),c&&o.push(l+e)),p){const s=`${l}${this.options.contextSeparator}${r.context}`;o.push(s),h&&(o.push(s+t),r.ordinal&&0===t.indexOf(n)&&o.push(s+t.replace(n,this.options.pluralSeparator)),c&&o.push(s+e))}}let a;for(;a=o.pop();)this.isValidLookup(e)||(n=a,e=this.getResource(s,t,a,r))})))}))})),{res:e,usedKey:s,exactUsedKey:n,usedLng:i,usedNS:o}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,s,n):this.resourceStore.getResource(t,e,s,n)}static hasDefaultValue(t){const e="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e===s.substring(0,12)&&void 0!==t[s])return!0;return!1}}function O(t){return t.charAt(0).toUpperCase()+t.slice(1)}class S{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=n.create("languageUtils")}getScriptPartFromCode(t){if(!(t=w(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=w(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if("string"==typeof t&&t.indexOf("-")>-1){const e=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map((t=>t.toLowerCase())):2===s.length?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),e.indexOf(s[1].toLowerCase())>-1&&(s[1]=O(s[1].toLowerCase()))):3===s.length&&(s[0]=s[0].toLowerCase(),2===s[1].length&&(s[1]=s[1].toUpperCase()),"sgn"!==s[0]&&2===s[2].length&&(s[2]=s[2].toUpperCase()),e.indexOf(s[1].toLowerCase())>-1&&(s[1]=O(s[1].toLowerCase())),e.indexOf(s[2].toLowerCase())>-1&&(s[2]=O(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const s=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(s)||(e=s)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const s=this.getLanguagePartFromCode(t);if(this.isSupportedCode(s))return e=s;e=this.options.supportedLngs.find((t=>t===s?t:t.indexOf("-")<0&&s.indexOf("-")<0?void 0:0===t.indexOf(s)?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];let s=t[e];return s||(s=t[this.getScriptPartFromCode(e)]),s||(s=t[this.formatLanguageCode(e)]),s||(s=t[this.getLanguagePartFromCode(e)]),s||(s=t.default),s||[]}toResolveHierarchy(t,e){const s=this.getFallbackCodes(e||this.options.fallbackLng||[],t),n=[],i=t=>{t&&(this.isSupportedCode(t)?n.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return"string"==typeof t&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(t))):"string"==typeof t&&i(this.formatLanguageCode(t)),s.forEach((t=>{n.indexOf(t)<0&&i(this.formatLanguageCode(t))})),n}}let R=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],L={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};const P=["v1","v2","v3"],A=["v4"],I={zero:0,one:1,two:2,few:3,many:4,other:5};function C(){const t={};return R.forEach((e=>{e.lngs.forEach((s=>{t[s]={numbers:e.nr,plurals:L[e.fc]}}))})),t}class E{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=n.create("pluralResolver"),this.options.compatibilityJSON&&!A.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=C()}addRule(t,e){this.rules[t]=e}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(w(t),{type:e.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=this.getRule(t,e);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,s).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=this.getRule(t,e);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort(((t,e)=>I[t]-I[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):s.numbers.map((s=>this.getSuffix(t,s,e))):[]}getSuffix(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getRule(t,s);return n?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${n.select(e)}`:this.getSuffixRetroCompatible(n,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const s=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let n=t.numbers[s];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===n?n="plural":1===n&&(n=""));const i=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?i():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!P.includes(this.options.compatibilityJSON)}}function B(t,e,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=d(t,e,s);return!o&&i&&"string"==typeof s&&(o=v(t,s,n),void 0===o&&(o=v(e,s,n))),o}class K{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=n.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const e=t.interpolation;this.escape=void 0!==e.escape?e.escape:m,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?p(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?p(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?p(e.nestingPrefix):e.nestingPrefixEscaped||p("$t("),this.nestingSuffix=e.nestingSuffix?p(e.nestingSuffix):e.nestingSuffixEscaped||p(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const e=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(e,"g");const s=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(s,"g")}interpolate(t,e,s,n){let i,r,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(t){return t.replace(/\$/g,"$$$$")}const h=t=>{if(t.indexOf(this.formatSeparator)<0){const i=B(e,l,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,s,{...n,...e,interpolationkey:t}):i}const i=t.split(this.formatSeparator),o=i.shift().trim(),r=i.join(this.formatSeparator).trim();return this.format(B(e,l,o,this.options.keySeparator,this.options.ignoreJSONStructure),r,s,{...n,...e,interpolationkey:o})};this.resetRegExp();const c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,p=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:t=>u(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?u(this.escape(t)):u(t)}];return g.forEach((e=>{for(a=0;i=e.regex.exec(t);){const s=i[1].trim();if(r=h(s),void 0===r)if("function"==typeof c){const e=c(t,i,n);r="string"==typeof e?e:""}else if(n&&Object.prototype.hasOwnProperty.call(n,s))r="";else{if(p){r=i[0];continue}this.logger.warn(`missed to pass in variable ${s} for interpolating ${t}`),r=""}else"string"==typeof r||this.useRawValueToEscape||(r=o(r));const l=e.safeValue(r);if(t=t.replace(i[0],l),p?(e.regex.lastIndex+=r.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),t}nest(t,e){let s,n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(t,e){const s=this.nestingOptionsSeparator;if(t.indexOf(s)<0)return t;const n=t.split(new RegExp(`${s}[ ]*{`));let o=`{${n[1]}`;t=n[0],o=this.interpolate(o,i);const r=o.match(/'/g),a=o.match(/"/g);(r&&r.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),e&&(i={...e,...i})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${s}${o}`}return delete i.defaultValue,t}for(;s=this.nestingRegexp.exec(t);){let l=[];i={...r},i=i.replace&&"string"!=typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(-1!==s[0].indexOf(this.formatSeparator)&&!/{.*}/.test(s[1])){const t=s[1].split(this.formatSeparator).map((t=>t.trim()));s[1]=t.shift(),l=t,u=!0}if(n=e(a.call(this,s[1].trim(),i),i),n&&s[0]===t&&"string"!=typeof n)return n;"string"!=typeof n&&(n=o(n)),n||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),n=""),u&&(n=l.reduce(((t,e)=>this.format(t,e,r.lng,{...r,interpolationkey:s[1].trim()})),n.trim())),t=t.replace(s[0],n),this.regexp.lastIndex=0}return t}}function T(t){let e=t.toLowerCase().trim();const s={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);if("currency"===e&&i.indexOf(":")<0)s.currency||(s.currency=i.trim());else if("relativetime"===e&&i.indexOf(":")<0)s.range||(s.range=i.trim());else{i.split(";").forEach((t=>{if(!t)return;const[e,...n]=t.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,"");s[e.trim()]||(s[e.trim()]=i),"false"===i&&(s[e.trim()]=!1),"true"===i&&(s[e.trim()]=!0),isNaN(i)||(s[e.trim()]=parseInt(i,10))}))}}return{formatName:e,formatOptions:s}}function z(t){const e={};return function(s,n,i){const o=n+JSON.stringify(i);let r=e[o];return r||(r=t(w(n),i),e[o]=r),r(s)}}class F{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=n.create("formatter"),this.options=t,this.formats={number:z(((t,e)=>{const s=new Intl.NumberFormat(t,{...e});return t=>s.format(t)})),currency:z(((t,e)=>{const s=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>s.format(t)})),datetime:z(((t,e)=>{const s=new Intl.DateTimeFormat(t,{...e});return t=>s.format(t)})),relativetime:z(((t,e)=>{const s=new Intl.RelativeTimeFormat(t,{...e});return t=>s.format(t,e.range||"day")})),list:z(((t,e)=>{const s=new Intl.ListFormat(t,{...e});return t=>s.format(t)}))},this.init(t)}init(t){const e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=z(e)}format(t,e,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=e.split(this.formatSeparator).reduce(((t,e)=>{const{formatName:i,formatOptions:o}=T(e);if(this.formats[i]){let e=t;try{const r=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=r.locale||r.lng||n.locale||n.lng||s;e=this.formats[i](t,a,{...o,...n,...r})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${i}`),t}),t);return i}}function V(t,e){void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)}class _ extends r{constructor(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=n.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,i.backend,i)}queueLoad(t,e,s,n){const i={},o={},r={},a={};return t.forEach((t=>{let n=!0;e.forEach((e=>{const r=`${t}|${e}`;!s.reload&&this.store.hasResourceBundle(t,e)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===o[r]&&(o[r]=!0):(this.state[r]=1,n=!1,void 0===o[r]&&(o[r]=!0),void 0===i[r]&&(i[r]=!0),void 0===a[e]&&(a[e]=!0)))})),n||(r[t]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(a)}}loaded(t,e,s){const n=t.split("|"),i=n[0],o=n[1];e&&this.emit("failedLoading",i,o,e),s&&this.store.addResourceBundle(i,o,s),this.state[t]=e?-1:2;const r={};this.queue.forEach((s=>{l(s.loaded,[i],o),V(s,t),e&&s.errors.push(e),0!==s.pendingCount||s.done||(Object.keys(s.loaded).forEach((t=>{r[t]||(r[t]={});const e=s.loaded[t];e.length&&e.forEach((e=>{void 0===r[t][e]&&(r[t][e]=!0)}))})),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())})),this.emit("loaded",r),this.queue=this.queue.filter((t=>!t.done))}read(t,e,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:s,tried:n,wait:i,callback:o});this.readingCalls++;const r=(r,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}r&&a&&n<this.maxRetries?setTimeout((()=>{this.read.call(this,t,e,s,n+1,2*i,o)}),i):o(r,a)},a=this.backend[s].bind(this.backend);if(2!==a.length)return a(t,e,r);try{const s=a(t,e);s&&"function"==typeof s.then?s.then((t=>r(null,t))).catch(r):r(null,s)}catch(t){r(t)}}prepareLoading(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);const i=this.queueLoad(t,e,s,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,s){this.prepareLoading(t,e,{},s)}reload(t,e,s){this.prepareLoading(t,e,{reload:!0},s)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const s=t.split("|"),n=s[0],i=s[1];this.read(n,i,"read",void 0,void 0,((s,o)=>{s&&this.logger.warn(`${e}loading namespace ${i} for language ${n} failed`,s),!s&&o&&this.logger.log(`${e}loaded namespace ${i} for language ${n}`,o),this.loaded(t,s,o)}))}saveMissing(t,e,s,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${s}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=s&&""!==s){if(this.backend&&this.backend.create){const a={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(t,e,s,n,a):l(t,e,s,n),i&&"function"==typeof i.then?i.then((t=>r(null,t))).catch(r):r(null,i)}catch(t){r(t)}else l(t,e,s,n,r,a)}t&&t[0]&&this.store.addResource(t[0],e,s,n)}}}function M(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let e={};if("object"==typeof t[1]&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const s=t[3]||t[2];Object.keys(s).forEach((t=>{e[t]=s[t]}))}return e},interpolation:{escapeValue:!0,format:(t,e,s,n)=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function D(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function J(){}function U(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((e=>{"function"==typeof t[e]&&(t[e]=t[e].bind(t))}))}class W extends r{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(super(),this.options=D(t),this.services={},this.logger=n,this.modules={external:[]},U(this),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(s=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=M();function o(t){return t?"function"==typeof t?new t:t:null}if(this.options={...i,...this.options,...D(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){let e;this.modules.logger?n.init(o(this.modules.logger),this.options):n.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=F);const s=new S(this.options);this.store=new N(this.options.resources,this.options);const r=this.services;r.logger=n,r.resourceStore=this.store,r.languageUtils=s,r.pluralResolver=new E(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(r.formatter=o(e),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new K(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new _(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(function(e){for(var s=arguments.length,n=new Array(s>1?s-1:0),i=1;i<s;i++)n[i-1]=arguments[i];t.emit(e,...n)})),this.modules.languageDetector&&(r.languageDetector=o(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=o(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new x(this.services,this.options),this.translator.on("*",(function(e){for(var s=arguments.length,n=new Array(s>1?s-1:0),i=1;i<s;i++)n[i-1]=arguments[i];t.emit(e,...n)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,s||(s=J),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return t.store[e](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return t.store[e](...arguments),t}}));const r=f(),a=()=>{const t=(t,e)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(e),s(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),r}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J;const s="string"==typeof t?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&"cimode"===s.toLowerCase())return e();const t=[],n=e=>{if(!e)return;this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{t.indexOf(e)<0&&t.push(e)}))};if(s)n(s);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>n(t)))}this.options.preload&&this.options.preload.forEach((t=>n(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,e,s){const n=f();return t||(t=this.languages),e||(e=this.options.ns),s||(s=J),this.services.backendConnector.reload(t,e,(t=>{n.resolve(),s(t)})),n}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&j.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var s=this;this.isLanguageChangingTo=t;const n=f();this.emit("languageChanging",t);const i=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},o=(t,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,n.resolve((function(){return s.t(...arguments)})),e&&e(t,(function(){return s.t(...arguments)}))},r=e=>{t||e||!this.services.languageDetector||(e=[]);const s="string"==typeof e?e:this.services.languageUtils.getBestMatchFromCodes(e);s&&(this.language||i(s),this.translator.language||this.translator.changeLanguage(s),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(s)),this.loadResources(s,(t=>{o(t,s)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(t):r(this.services.languageDetector.detect()),n}getFixedT(t,e,s){var n=this;const i=function(t,e){let o;if("object"!=typeof e){for(var r=arguments.length,a=new Array(r>2?r-2:0),l=2;l<r;l++)a[l-2]=arguments[l];o=n.options.overloadTranslationOptionHandler([t,e].concat(a))}else o={...e};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||s||i.keyPrefix;const u=n.options.keySeparator||".";let h;return h=o.keyPrefix&&Array.isArray(t)?t.map((t=>`${o.keyPrefix}${u}${t}`)):o.keyPrefix?`${o.keyPrefix}${u}${t}`:t,n.t(h,o)};return"string"==typeof t?i.lng=t:i.lngs=t,i.ns=e,i.keyPrefix=s,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=e.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;const o=(t,e)=>{const s=this.services.backendConnector.state[`${t}|${e}`];return-1===s||2===s};if(e.precheck){const t=e.precheck(this,o);if(void 0!==t)return t}return!!this.hasResourceBundle(s,t)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(s,t)||n&&!o(i,t)))}loadNamespaces(t,e){const s=f();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{s.resolve(),e&&e(t)})),s):(e&&e(),Promise.resolve())}loadLanguages(t,e){const s=f();"string"==typeof t&&(t=[t]);const n=this.options.preload||[],i=t.filter((t=>n.indexOf(t)<0));return i.length?(this.options.preload=n.concat(i),this.loadResources((t=>{s.resolve(),e&&e(t)})),s):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new S(M());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new W(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const n={...this.options,...t,isClone:!0},i=new W(n);void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t));return["store","services","language"].forEach((t=>{i[t]=this[t]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},s&&(i.store=new N(this.store.data,n),i.services.resourceStore=i.store),i.translator=new x(i.services,n),i.translator.on("*",(function(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),n=1;n<e;n++)s[n-1]=arguments[n];i.emit(t,...s)})),i.init(n,e),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const q=W.createInstance();q.createInstance=W.createInstance;class H{constructor(t,e){this.i18next=q,Array.isArray(e)?e=new Set(e):"function"==typeof e&&(e=new Set([e])),this.i18next.isInitialized||this.i18next.init({lng:t}),void 0!==e&&e.forEach((t=>t(((t,e)=>(this.addResourceBundle(t,e),t)))))}addResourceBundle(t,e){this.i18next.addResourceBundle(t,"translation",e,!0)}translate(t,e){return this.i18next.t(t,Object.assign({count:null==e?void 0:e.count},null==e?void 0:e.placeholders))}}const Y=(s,n,i)=>{var o,r;try{void 0===t.I18n&&Object.defineProperty(t,"I18n",{value:new H(null!==(r=null===(o=null==i?void 0:i.translation)||void 0===o?void 0:o.name)&&void 0!==r?r:"de",null==i?void 0:i.translations),writable:!1})}catch(t){}return e(s,n,i)},G=()=>null==t?void 0:t.I18n;export{G as g,Y as r};
4
+ import{S as t,r as e}from"./index-accc567c.js";const i={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class s{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||i,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,s,n){return n&&!this.debug?null:("string"==typeof t[0]&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[e](t))}create(t){return new s(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new s(this.logger,t)}}var n=new s;class r{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach((t=>{this.observers[t]=this.observers[t]||[],this.observers[t].push(e)})),this}off(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter((t=>t!==e)):delete this.observers[t])}emit(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),n=1;n<e;n++)s[n-1]=arguments[n];if(this.observers[t]){[].concat(this.observers[t]).forEach((t=>{t(...s)}))}if(this.observers["*"]){[].concat(this.observers["*"]).forEach((e=>{e.apply(e,[t,...s])}))}}}function f(){let t,e;const s=new Promise(((s,n)=>{t=s,e=n}));return s.resolve=t,s.reject=e,s}function o(t){return null==t?"":""+t}function u(t,e,s){t.forEach((t=>{e[t]&&(s[t]=e[t])}))}function h(t,e,s){function n(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function i(){return!t||"string"==typeof t}const o="string"!=typeof e?[].concat(e):e.split(".");for(;o.length>1;){if(i())return{};const e=n(o.shift());!t[e]&&s&&(t[e]=new s),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{}}return i()?{}:{obj:t,k:n(o.shift())}}function a(t,e,s){const{obj:n,k:i}=h(t,e,Object);n[i]=s}function l(t,e,s,n){const{obj:i,k:o}=h(t,e,Object);i[o]=i[o]||[],n&&(i[o]=i[o].concat(s)),n||i[o].push(s)}function c(t,e){const{obj:s,k:n}=h(t,e);if(s)return s[n]}function d(t,e,s){const n=c(t,s);return void 0!==n?n:c(e,s)}function g(t,e,s){for(const n in e)"__proto__"!==n&&"constructor"!==n&&(n in t?"string"==typeof t[n]||t[n]instanceof String||"string"==typeof e[n]||e[n]instanceof String?s&&(t[n]=e[n]):g(t[n],e[n],s):t[n]=e[n]);return t}function p(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function m(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(t=>y[t])):t}const b=[" ",",","?","!",";"];function $(t,e,s){e=e||"",s=s||"";const n=b.filter((t=>e.indexOf(t)<0&&s.indexOf(t)<0));if(0===n.length)return!0;const i=new RegExp(`(${n.map((t=>"?"===t?"\\?":t)).join("|")})`);let o=!i.test(t);if(!o){const e=t.indexOf(s);e>0&&!i.test(t.substring(0,e))&&(o=!0)}return o}function v(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const n=e.split(s);let i=t;for(let t=0;t<n.length;++t){if(!i)return;if("string"==typeof i[n[t]]&&t+1<n.length)return;if(void 0===i[n[t]]){let o=2,r=n.slice(t,t+o).join(s),a=i[r];for(;void 0===a&&n.length>t+o;)o++,r=n.slice(t,t+o).join(s),a=i[r];if(void 0===a)return;if(null===a)return null;if(e.endsWith(r)){if("string"==typeof a)return a;if(r&&"string"==typeof a[r])return a[r]}const l=n.slice(t+o).join(s);return l?v(a,l,s):void 0}i=i[n[t]]}return i}function w(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class N extends r{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let r=[t,e];s&&"string"!=typeof s&&(r=r.concat(s)),s&&"string"==typeof s&&(r=r.concat(i?s.split(i):s)),t.indexOf(".")>-1&&(r=t.split("."));const a=c(this.data,r);return a||!o||"string"!=typeof s?a:v(this.data&&this.data[t]&&this.data[t][e],s,i)}addResource(t,e,s,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let r=[t,e];s&&(r=r.concat(o?s.split(o):s)),t.indexOf(".")>-1&&(r=t.split("."),n=e,e=r[1]),this.addNamespaces(e),a(this.data,r,n),i.silent||this.emit("added",t,e,s,n)}addResources(t,e,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const n in s)"string"!=typeof s[n]&&"[object Array]"!==Object.prototype.toString.apply(s[n])||this.addResource(t,e,n,s[n],{silent:!0});n.silent||this.emit("added",t,e,s)}addResourceBundle(t,e,s,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},r=[t,e];t.indexOf(".")>-1&&(r=t.split("."),n=s,s=e,e=r[1]),this.addNamespaces(e);let l=c(this.data,r)||{};n?g(l,s,i):l={...l,...s},a(this.data,r,l),o.silent||this.emit("added",t,e,s)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var j={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,s,n,i){return t.forEach((t=>{this.processors[t]&&(e=this.processors[t].process(e,s,n,i))})),e}};const k={};class x extends r{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),u(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=n.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const s=this.resolve(t,e);return s&&void 0!==s.res}extractFromKey(t,e){let s=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===s&&(s=":");const n=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let i=e.ns||this.options.defaultNS||[];const o=s&&t.indexOf(s)>-1,r=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||$(t,s,n));if(o&&!r){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:i};const o=t.split(s);(s!==n||s===n&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),t=o.join(n)}return"string"==typeof i&&(i=[i]),{key:t,namespaces:i}}translate(t,e,s){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const n=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:o,namespaces:r}=this.extractFromKey(t[t.length-1],e),a=r[r.length-1],l=e.lng||this.language,u=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const t=e.nsSeparator||this.options.nsSeparator;return n?{res:`${a}${t}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a}:`${a}${t}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a}:o}const h=this.resolve(t,e);let c=h&&h.res;const p=h&&h.usedKey||o,g=h&&h.exactUsedKey||o,d=Object.prototype.toString.apply(c),f=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&c&&("string"!=typeof c&&"boolean"!=typeof c&&"number"!=typeof c)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(d)<0&&("string"!=typeof f||"[object Array]"!==d)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,c,{...e,ns:r}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(h.res=t,h):t}if(i){const t="[object Array]"===d,s=t?[]:{},n=t?g:p;for(const t in c)if(Object.prototype.hasOwnProperty.call(c,t)){const o=`${n}${i}${t}`;s[t]=this.translate(o,{...e,joinArrays:!1,ns:r}),s[t]===o&&(s[t]=c[t])}c=s}}else if(m&&"string"==typeof f&&"[object Array]"===d)c=c.join(f),c&&(c=this.extendTranslation(c,t,e,s));else{let n=!1,r=!1;const u=void 0!==e.count&&"string"!=typeof e.count,p=x.hasDefaultValue(e),g=u?this.pluralResolver.getSuffix(l,e.count,e):"",d=e.ordinal&&u?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",f=e[`defaultValue${g}`]||e[`defaultValue${d}`]||e.defaultValue;!this.isValidLookup(c)&&p&&(n=!0,c=f),this.isValidLookup(c)||(r=!0,c=o);const m=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:c,y=p&&f!==c&&this.options.updateMissing;if(r||n||y){if(this.logger.log(y?"updateKey":"missingKey",l,a,o,y?f:c),i){const t=this.resolve(o,{...e,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[];const s=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&s&&s[0])for(let e=0;e<s.length;e++)t.push(s[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(e.lng||this.language):t.push(e.lng||this.language);const n=(t,s,n)=>{const i=p&&n!==c?n:m;this.options.missingKeyHandler?this.options.missingKeyHandler(t,a,s,i,y,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,a,s,i,y,e),this.emit("missingKey",t,a,s,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?t.forEach((t=>{this.pluralResolver.getSuffixes(t,e).forEach((s=>{n([t],o+s,e[`defaultValue${s}`]||f)}))})):n(t,o,f))}c=this.extendTranslation(c,t,e,h,s),r&&c===o&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${o}`),(r||n)&&this.options.parseMissingKeyHandler&&(c="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,n?c:void 0):this.options.parseMissingKeyHandler(c))}return n?(h.res=c,h):c}extendTranslation(t,e,s,n,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const r="string"==typeof t&&(s&&s.interpolation&&void 0!==s.interpolation.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(r){const e=t.match(this.interpolator.nestingRegexp);a=e&&e.length}let l=s.replace&&"string"!=typeof s.replace?s.replace:s;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,s.lng||this.language,s),r){const e=t.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(s.nest=!1)}!s.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(s.lng=n.usedLng),!1!==s.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i&&i[0]===n[0]&&!s.context?(o.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${e[0]}`),null):o.translate(...n,e)}),s)),s.interpolation&&this.interpolator.reset()}const r=s.postProcess||this.options.postProcess,a="string"==typeof r?[r]:r;return null!=t&&a&&a.length&&!1!==s.applyPostProcessor&&(t=j.handle(a,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:n,...s}:s,this)),t}resolve(t){let e,s,n,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((t=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(t,r),l=a.key;s=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const h=void 0!==r.count&&"string"!=typeof r.count,c=h&&!r.ordinal&&0===r.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==r.context&&("string"==typeof r.context||"number"==typeof r.context)&&""!==r.context,g=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);u.forEach((t=>{this.isValidLookup(e)||(o=t,!k[`${g[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(k[`${g[0]}-${t}`]=!0,this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach((s=>{if(this.isValidLookup(e))return;i=s;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,s,t,r);else{let t;h&&(t=this.pluralResolver.getSuffix(s,r.count,r));const e=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(o.push(l+t),r.ordinal&&0===t.indexOf(n)&&o.push(l+t.replace(n,this.options.pluralSeparator)),c&&o.push(l+e)),p){const s=`${l}${this.options.contextSeparator}${r.context}`;o.push(s),h&&(o.push(s+t),r.ordinal&&0===t.indexOf(n)&&o.push(s+t.replace(n,this.options.pluralSeparator)),c&&o.push(s+e))}}let a;for(;a=o.pop();)this.isValidLookup(e)||(n=a,e=this.getResource(s,t,a,r))})))}))})),{res:e,usedKey:s,exactUsedKey:n,usedLng:i,usedNS:o}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,s,n):this.resourceStore.getResource(t,e,s,n)}static hasDefaultValue(t){const e="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e===s.substring(0,12)&&void 0!==t[s])return!0;return!1}}function O(t){return t.charAt(0).toUpperCase()+t.slice(1)}class S{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=n.create("languageUtils")}getScriptPartFromCode(t){if(!(t=w(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=w(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if("string"==typeof t&&t.indexOf("-")>-1){const e=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map((t=>t.toLowerCase())):2===s.length?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),e.indexOf(s[1].toLowerCase())>-1&&(s[1]=O(s[1].toLowerCase()))):3===s.length&&(s[0]=s[0].toLowerCase(),2===s[1].length&&(s[1]=s[1].toUpperCase()),"sgn"!==s[0]&&2===s[2].length&&(s[2]=s[2].toUpperCase()),e.indexOf(s[1].toLowerCase())>-1&&(s[1]=O(s[1].toLowerCase())),e.indexOf(s[2].toLowerCase())>-1&&(s[2]=O(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const s=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(s)||(e=s)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const s=this.getLanguagePartFromCode(t);if(this.isSupportedCode(s))return e=s;e=this.options.supportedLngs.find((t=>t===s?t:t.indexOf("-")<0&&s.indexOf("-")<0?void 0:0===t.indexOf(s)?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];let s=t[e];return s||(s=t[this.getScriptPartFromCode(e)]),s||(s=t[this.formatLanguageCode(e)]),s||(s=t[this.getLanguagePartFromCode(e)]),s||(s=t.default),s||[]}toResolveHierarchy(t,e){const s=this.getFallbackCodes(e||this.options.fallbackLng||[],t),n=[],i=t=>{t&&(this.isSupportedCode(t)?n.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return"string"==typeof t&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(t))):"string"==typeof t&&i(this.formatLanguageCode(t)),s.forEach((t=>{n.indexOf(t)<0&&i(this.formatLanguageCode(t))})),n}}let R=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],L={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};const P=["v1","v2","v3"],A=["v4"],I={zero:0,one:1,two:2,few:3,many:4,other:5};function C(){const t={};return R.forEach((e=>{e.lngs.forEach((s=>{t[s]={numbers:e.nr,plurals:L[e.fc]}}))})),t}class E{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=n.create("pluralResolver"),this.options.compatibilityJSON&&!A.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=C()}addRule(t,e){this.rules[t]=e}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(w(t),{type:e.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=this.getRule(t,e);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,s).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=this.getRule(t,e);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort(((t,e)=>I[t]-I[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):s.numbers.map((s=>this.getSuffix(t,s,e))):[]}getSuffix(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getRule(t,s);return n?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${n.select(e)}`:this.getSuffixRetroCompatible(n,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const s=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let n=t.numbers[s];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===n?n="plural":1===n&&(n=""));const i=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?i():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!P.includes(this.options.compatibilityJSON)}}function B(t,e,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=d(t,e,s);return!o&&i&&"string"==typeof s&&(o=v(t,s,n),void 0===o&&(o=v(e,s,n))),o}class K{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=n.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const e=t.interpolation;this.escape=void 0!==e.escape?e.escape:m,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?p(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?p(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?p(e.nestingPrefix):e.nestingPrefixEscaped||p("$t("),this.nestingSuffix=e.nestingSuffix?p(e.nestingSuffix):e.nestingSuffixEscaped||p(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const e=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(e,"g");const s=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(s,"g")}interpolate(t,e,s,n){let i,r,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(t){return t.replace(/\$/g,"$$$$")}const h=t=>{if(t.indexOf(this.formatSeparator)<0){const i=B(e,l,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,s,{...n,...e,interpolationkey:t}):i}const i=t.split(this.formatSeparator),o=i.shift().trim(),r=i.join(this.formatSeparator).trim();return this.format(B(e,l,o,this.options.keySeparator,this.options.ignoreJSONStructure),r,s,{...n,...e,interpolationkey:o})};this.resetRegExp();const c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,p=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:t=>u(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?u(this.escape(t)):u(t)}];return g.forEach((e=>{for(a=0;i=e.regex.exec(t);){const s=i[1].trim();if(r=h(s),void 0===r)if("function"==typeof c){const e=c(t,i,n);r="string"==typeof e?e:""}else if(n&&Object.prototype.hasOwnProperty.call(n,s))r="";else{if(p){r=i[0];continue}this.logger.warn(`missed to pass in variable ${s} for interpolating ${t}`),r=""}else"string"==typeof r||this.useRawValueToEscape||(r=o(r));const l=e.safeValue(r);if(t=t.replace(i[0],l),p?(e.regex.lastIndex+=r.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),t}nest(t,e){let s,n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(t,e){const s=this.nestingOptionsSeparator;if(t.indexOf(s)<0)return t;const n=t.split(new RegExp(`${s}[ ]*{`));let o=`{${n[1]}`;t=n[0],o=this.interpolate(o,i);const r=o.match(/'/g),a=o.match(/"/g);(r&&r.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),e&&(i={...e,...i})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${s}${o}`}return delete i.defaultValue,t}for(;s=this.nestingRegexp.exec(t);){let l=[];i={...r},i=i.replace&&"string"!=typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(-1!==s[0].indexOf(this.formatSeparator)&&!/{.*}/.test(s[1])){const t=s[1].split(this.formatSeparator).map((t=>t.trim()));s[1]=t.shift(),l=t,u=!0}if(n=e(a.call(this,s[1].trim(),i),i),n&&s[0]===t&&"string"!=typeof n)return n;"string"!=typeof n&&(n=o(n)),n||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),n=""),u&&(n=l.reduce(((t,e)=>this.format(t,e,r.lng,{...r,interpolationkey:s[1].trim()})),n.trim())),t=t.replace(s[0],n),this.regexp.lastIndex=0}return t}}function T(t){let e=t.toLowerCase().trim();const s={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);if("currency"===e&&i.indexOf(":")<0)s.currency||(s.currency=i.trim());else if("relativetime"===e&&i.indexOf(":")<0)s.range||(s.range=i.trim());else{i.split(";").forEach((t=>{if(!t)return;const[e,...n]=t.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,"");s[e.trim()]||(s[e.trim()]=i),"false"===i&&(s[e.trim()]=!1),"true"===i&&(s[e.trim()]=!0),isNaN(i)||(s[e.trim()]=parseInt(i,10))}))}}return{formatName:e,formatOptions:s}}function z(t){const e={};return function(s,n,i){const o=n+JSON.stringify(i);let r=e[o];return r||(r=t(w(n),i),e[o]=r),r(s)}}class F{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=n.create("formatter"),this.options=t,this.formats={number:z(((t,e)=>{const s=new Intl.NumberFormat(t,{...e});return t=>s.format(t)})),currency:z(((t,e)=>{const s=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>s.format(t)})),datetime:z(((t,e)=>{const s=new Intl.DateTimeFormat(t,{...e});return t=>s.format(t)})),relativetime:z(((t,e)=>{const s=new Intl.RelativeTimeFormat(t,{...e});return t=>s.format(t,e.range||"day")})),list:z(((t,e)=>{const s=new Intl.ListFormat(t,{...e});return t=>s.format(t)}))},this.init(t)}init(t){const e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=z(e)}format(t,e,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=e.split(this.formatSeparator).reduce(((t,e)=>{const{formatName:i,formatOptions:o}=T(e);if(this.formats[i]){let e=t;try{const r=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=r.locale||r.lng||n.locale||n.lng||s;e=this.formats[i](t,a,{...o,...n,...r})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${i}`),t}),t);return i}}function V(t,e){void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)}class _ extends r{constructor(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=n.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,i.backend,i)}queueLoad(t,e,s,n){const i={},o={},r={},a={};return t.forEach((t=>{let n=!0;e.forEach((e=>{const r=`${t}|${e}`;!s.reload&&this.store.hasResourceBundle(t,e)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===o[r]&&(o[r]=!0):(this.state[r]=1,n=!1,void 0===o[r]&&(o[r]=!0),void 0===i[r]&&(i[r]=!0),void 0===a[e]&&(a[e]=!0)))})),n||(r[t]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(a)}}loaded(t,e,s){const n=t.split("|"),i=n[0],o=n[1];e&&this.emit("failedLoading",i,o,e),s&&this.store.addResourceBundle(i,o,s),this.state[t]=e?-1:2;const r={};this.queue.forEach((s=>{l(s.loaded,[i],o),V(s,t),e&&s.errors.push(e),0!==s.pendingCount||s.done||(Object.keys(s.loaded).forEach((t=>{r[t]||(r[t]={});const e=s.loaded[t];e.length&&e.forEach((e=>{void 0===r[t][e]&&(r[t][e]=!0)}))})),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())})),this.emit("loaded",r),this.queue=this.queue.filter((t=>!t.done))}read(t,e,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:s,tried:n,wait:i,callback:o});this.readingCalls++;const r=(r,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}r&&a&&n<this.maxRetries?setTimeout((()=>{this.read.call(this,t,e,s,n+1,2*i,o)}),i):o(r,a)},a=this.backend[s].bind(this.backend);if(2!==a.length)return a(t,e,r);try{const s=a(t,e);s&&"function"==typeof s.then?s.then((t=>r(null,t))).catch(r):r(null,s)}catch(t){r(t)}}prepareLoading(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);const i=this.queueLoad(t,e,s,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,s){this.prepareLoading(t,e,{},s)}reload(t,e,s){this.prepareLoading(t,e,{reload:!0},s)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const s=t.split("|"),n=s[0],i=s[1];this.read(n,i,"read",void 0,void 0,((s,o)=>{s&&this.logger.warn(`${e}loading namespace ${i} for language ${n} failed`,s),!s&&o&&this.logger.log(`${e}loaded namespace ${i} for language ${n}`,o),this.loaded(t,s,o)}))}saveMissing(t,e,s,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${s}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=s&&""!==s){if(this.backend&&this.backend.create){const a={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(t,e,s,n,a):l(t,e,s,n),i&&"function"==typeof i.then?i.then((t=>r(null,t))).catch(r):r(null,i)}catch(t){r(t)}else l(t,e,s,n,r,a)}t&&t[0]&&this.store.addResource(t[0],e,s,n)}}}function M(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let e={};if("object"==typeof t[1]&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const s=t[3]||t[2];Object.keys(s).forEach((t=>{e[t]=s[t]}))}return e},interpolation:{escapeValue:!0,format:(t,e,s,n)=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function D(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function J(){}function U(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((e=>{"function"==typeof t[e]&&(t[e]=t[e].bind(t))}))}class W extends r{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(super(),this.options=D(t),this.services={},this.logger=n,this.modules={external:[]},U(this),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(s=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=M();function o(t){return t?"function"==typeof t?new t:t:null}if(this.options={...i,...this.options,...D(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){let e;this.modules.logger?n.init(o(this.modules.logger),this.options):n.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=F);const s=new S(this.options);this.store=new N(this.options.resources,this.options);const r=this.services;r.logger=n,r.resourceStore=this.store,r.languageUtils=s,r.pluralResolver=new E(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(r.formatter=o(e),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new K(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new _(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(function(e){for(var s=arguments.length,n=new Array(s>1?s-1:0),i=1;i<s;i++)n[i-1]=arguments[i];t.emit(e,...n)})),this.modules.languageDetector&&(r.languageDetector=o(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=o(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new x(this.services,this.options),this.translator.on("*",(function(e){for(var s=arguments.length,n=new Array(s>1?s-1:0),i=1;i<s;i++)n[i-1]=arguments[i];t.emit(e,...n)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,s||(s=J),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return t.store[e](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return t.store[e](...arguments),t}}));const r=f(),a=()=>{const t=(t,e)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(e),s(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),r}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J;const s="string"==typeof t?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&"cimode"===s.toLowerCase())return e();const t=[],n=e=>{if(!e)return;this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{t.indexOf(e)<0&&t.push(e)}))};if(s)n(s);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>n(t)))}this.options.preload&&this.options.preload.forEach((t=>n(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,e,s){const n=f();return t||(t=this.languages),e||(e=this.options.ns),s||(s=J),this.services.backendConnector.reload(t,e,(t=>{n.resolve(),s(t)})),n}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&j.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var s=this;this.isLanguageChangingTo=t;const n=f();this.emit("languageChanging",t);const i=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},o=(t,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,n.resolve((function(){return s.t(...arguments)})),e&&e(t,(function(){return s.t(...arguments)}))},r=e=>{t||e||!this.services.languageDetector||(e=[]);const s="string"==typeof e?e:this.services.languageUtils.getBestMatchFromCodes(e);s&&(this.language||i(s),this.translator.language||this.translator.changeLanguage(s),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(s)),this.loadResources(s,(t=>{o(t,s)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(t):r(this.services.languageDetector.detect()),n}getFixedT(t,e,s){var n=this;const i=function(t,e){let o;if("object"!=typeof e){for(var r=arguments.length,a=new Array(r>2?r-2:0),l=2;l<r;l++)a[l-2]=arguments[l];o=n.options.overloadTranslationOptionHandler([t,e].concat(a))}else o={...e};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||s||i.keyPrefix;const u=n.options.keySeparator||".";let h;return h=o.keyPrefix&&Array.isArray(t)?t.map((t=>`${o.keyPrefix}${u}${t}`)):o.keyPrefix?`${o.keyPrefix}${u}${t}`:t,n.t(h,o)};return"string"==typeof t?i.lng=t:i.lngs=t,i.ns=e,i.keyPrefix=s,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=e.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;const o=(t,e)=>{const s=this.services.backendConnector.state[`${t}|${e}`];return-1===s||2===s};if(e.precheck){const t=e.precheck(this,o);if(void 0!==t)return t}return!!this.hasResourceBundle(s,t)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(s,t)||n&&!o(i,t)))}loadNamespaces(t,e){const s=f();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{s.resolve(),e&&e(t)})),s):(e&&e(),Promise.resolve())}loadLanguages(t,e){const s=f();"string"==typeof t&&(t=[t]);const n=this.options.preload||[],i=t.filter((t=>n.indexOf(t)<0));return i.length?(this.options.preload=n.concat(i),this.loadResources((t=>{s.resolve(),e&&e(t)})),s):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new S(M());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new W(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const n={...this.options,...t,isClone:!0},i=new W(n);void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t));return["store","services","language"].forEach((t=>{i[t]=this[t]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},s&&(i.store=new N(this.store.data,n),i.services.resourceStore=i.store),i.translator=new x(i.services,n),i.translator.on("*",(function(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),n=1;n<e;n++)s[n-1]=arguments[n];i.emit(t,...s)})),i.init(n,e),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const q=W.createInstance();q.createInstance=W.createInstance;class H{constructor(t,e){this.i18next=q,Array.isArray(e)?e=new Set(e):"function"==typeof e&&(e=new Set([e])),this.i18next.isInitialized||this.i18next.init({lng:t}),void 0!==e&&e.forEach((t=>t(((t,e)=>(this.addResourceBundle(t,e),t)))))}addResourceBundle(t,e){this.i18next.addResourceBundle(t,"translation",e,!0)}translate(t,e){return this.i18next.t(t,Object.assign({count:null==e?void 0:e.count},null==e?void 0:e.placeholders))}}const Y=(s,n,i)=>{var o,r;try{void 0===t.I18n&&Object.defineProperty(t,"I18n",{value:new H(null!==(r=null===(o=null==i?void 0:i.translation)||void 0===o?void 0:o.name)&&void 0!==r?r:"de",null==i?void 0:i.translations),writable:!1})}catch(t){}return e(s,n,i)},G=()=>null==t?void 0:t.I18n;export{G as g,Y as r};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,o){return e(o={path:t,exports:{},require:function(e,t){return n()}},o.exports),o.exports}function n(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var o=t((function(t){!function(e,o){t.exports?t.exports=o():e.log=o()}(e,(function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function r(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function l(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?l:void 0!==console[n]?r(console,n):void 0!==console.log?r(console,"log"):e)}function i(t,o){for(var r=0;r<n.length;r++){var l=n[r];this[l]=r<t?e:this.methodFactory(l,t,o)}this.log=this.debug}function a(e,o,n){return function(){typeof console!==t&&(i.call(this,o,n),this[e].apply(this,arguments))}}function c(e,t,o){return s(e)||a.apply(this,arguments)}function y(e,o,r){var l,s=this;o=null==o?"WARN":o;var a="loglevel";function y(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&a){try{return void(window.localStorage[a]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"="+o+";"}catch(e){}}}function f(){var e;if(typeof window!==t&&a){try{e=window.localStorage[a]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=o.indexOf(encodeURIComponent(a)+"=");-1!==n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}return void 0===s.levels[e]&&(e=void 0),e}}"string"==typeof e?a+=":"+e:"symbol"==typeof e&&(a=void 0),s.name=e,s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=r||c,s.getLevel=function(){return l},s.setLevel=function(o,n){if("string"==typeof o&&void 0!==s.levels[o.toUpperCase()]&&(o=s.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(l=o,!1!==n&&y(o),i.call(s,o,e),typeof console===t&&o<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){o=e,f()||s.setLevel(e,!1)},s.resetLevel=function(){s.setLevel(o,!1),function(){if(typeof window!==t&&a){try{return void window.localStorage.removeItem(a)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var h=f();null==h&&(h=o),s.setLevel(h,!1)}var f=new y,h={};f.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=h[e];return t||(t=h[e]=new y(e,f.getLevel(),f.methodFactory)),t};var u=typeof window!==t?window.log:void 0;return f.noConflict=function(){return typeof window!==t&&window.log===f&&(window.log=u),f},f.getLoggers=function(){return h},f.default=f,f}))}));const r="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let i=!0,l=!1;const f=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,c=e=>"string"==typeof e&&f.test(e),s=e=>{if(!1===c(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},u=(e,t,n)=>{s(e),!0===i&&!1===l&&(l=!0,o.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLElement | null = document.querySelector<HTMLElement>('#my-app');\n if (htmlDivElement instanceof HTMLElement) {\n const root = createRoot(htmlDivElement);\n root.render(<App />);\n }\n })\n .catch(console.warn);`)),"object"==typeof r.A11yUi&&null!==r.A11yUi||(r.A11yUi={}),"object"!=typeof r.A11yUi||null===r.A11yUi||"object"==typeof r.A11yUi.Themes&&null!==r.A11yUi.Themes||(r.A11yUi.Themes={}),"object"!=typeof r.A11yUi||null===r.A11yUi||"object"!=typeof r.A11yUi.Themes||null===r.A11yUi.Themes||"object"==typeof r.A11yUi.Themes[e]&&null!==r.A11yUi.Themes[e]||(r.A11yUi.Themes[e]={}),"object"==typeof r.A11yUi&&null!==r.A11yUi&&"object"==typeof r.A11yUi.Themes&&null!==r.A11yUi.Themes&&"object"==typeof r.A11yUi.Themes[e]&&null!==r.A11yUi.Themes[e]&&(r.A11yUi.Themes[e][t]=n)},a=(e,t)=>(s(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((o=>{const n=t[o];"string"==typeof n&&n.length>0&&u(e,o,n)})),e),y=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return y(t)}}return null},p=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},d=()=>"object"==typeof r.A11yUi&&null!==r.A11yUi&&"object"==typeof r.A11yUi.Theme&&null!==r.A11yUi.Theme&&"boolean"==typeof r.A11yUi.Theme.cache&&"object"==typeof r.A11yUi.Theme.encroachCss&&null!==typeof r.A11yUi.Theme.encroachCss&&"string"==typeof r.A11yUi.Theme.encroachCss.mode&&"string"==typeof r.A11yUi.Theme.name,h=e=>{if(d())return r.A11yUi.Theme;{const t={cache:!0,encroachCss:p(),loglevel:"silent",name:null},o=y(e);return o instanceof HTMLElement&&(t.cache="false"!==o.dataset.themeCache,t.encroachCss=p(o.dataset),t.loglevel="debug"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:"silent",t.name=o.dataset.theme||null),t}},w=(e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",name:"string"==typeof t.name?t.name:e}),m=(e,t)=>{!1!==d()||0!=("object"==typeof r.A11yUi&&null!==r.A11yUi)&&0!=("object"==typeof r.A11yUi.Theme&&null!==r.A11yUi.Theme)&&"default"===r.A11yUi.Theme.name||"object"==typeof t&&null!==t&&("fixed"===(t=w(e,t)).detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&("object"==typeof r.A11yUi&&null!==r.A11yUi||(r.A11yUi={}),r.A11yUi.Theme=t,o.info(`[Theming] Theme "${e}" was set as default theme.`))):o.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode."))};let b=!1;const g=(e,t,n={})=>{!1===b&&(b=!0,i=!1),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?m(e(a),{cache:n.theme?.cache,detect:n.theme?.detect,encroachCss:n.theme?.encroachCss,name:n.theme?.name}):o.error("[Theming] Es wurde versucht eine nicht kompatibles Theme zu laden.")})),i=!0,"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const r=[];return t.forEach((e=>r.push(e()))),Promise.all(r)},T=new Map,v=[],E=new Set,j=new Map,S=/--[^;]+/g,A=/:/;"object"==typeof r.A11yUi&&null!==r.A11yUi||(r.A11yUi={CSS_STYLE_CACHE:j,HYDRATED_HISTORY:v,STYLING_TASK_QUEUE:T});const L=(e,t)=>{let o=t.match(S);if(Array.isArray(o)){o=o.filter((e=>A.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t)}E.add(e)},R=(e,t)=>"object"==typeof r.A11yUi&&null!==r.A11yUi&&"object"==typeof r.A11yUi.Themes&&null!==r.A11yUi.Themes&&"object"==typeof r.A11yUi.Themes[e]&&null!==r.A11yUi.Themes[e]&&"string"==typeof r.A11yUi.Themes[e][t]?r.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",C=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},D=(e,t)=>{try{const o=[];t.forEach((e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)})),e.adoptedStyleSheets=o}catch(o){t.reverse().forEach((t=>{const o=document.createElement("style");o.innerHTML=t,e.insertBefore(o,e.firstChild)}))}},M=(e,t,o)=>{if(!1!==o){const n=[...Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];let r;try{r=[...Array.from(e.adoptedStyleSheets)]}catch(e){r=[]}"before"===o?.mode?(n.reverse().forEach((e=>t.unshift(e.innerHTML))),r.reverse().forEach((e=>t.unshift(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))):"after"===o?.mode&&(n.forEach((e=>t.push(e.innerHTML))),r.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join("")))))}},H=(e,t,o)=>{const n=t.name||"default";let r;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");r=e.shadowRoot}catch(t){r=e}if(j.get(n)?.has(e.tagName))I(e,r,j.get(n)?.get(e.tagName),o);else{const l=R(n,"PROPERTIES"),s=R(n,"GLOBAL"),i=R(n,e.tagName);!1===E.has(n)&&L(n,s);const a=[l,s,i];M(r,a,t.encroachCss),"debug"===t.loglevel&&console.log(e.tagName,a),!0===t.cache&&(!1===j.has(n)&&j.set(n,new Map),j.get(n)?.set(e.tagName,a)),I(e,r,a,o)}},I=(e,t,o,n)=>{C(t),D(t,o),e.style.display=n},$=e=>{"debug"===e.loglevel&&v.push({timestamp:Date.now(),numberOfTasks:T.size})},O=(e,t)=>{T.set(e,{styleDisplay:e.style.display?`${e.style.display}`:null,themeDetails:t})},z=(e,t)=>{O(e,t),$(t)},U=e=>{T.delete(e)},Y=(e,t)=>{U(e),$(t)},x=e=>{const t=setTimeout((()=>{if(clearTimeout(t),T.has(e)&&e.classList.contains("hydrated")){const{styleDisplay:t,themeDetails:o}=T.get(e);H(e,o,t),Y(e,o)}else x(e)}),25)},N=e=>{for(const t of e)if(T.has(t.target)&&t.target.classList.contains("hydrated")){const{styleDisplay:e,themeDetails:o}=T.get(t.target);H(t.target,o,e),Y(t.target,o)}},F={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1};let _;try{_=new MutationObserver(N)}catch(e){_=null}const k=(e,t)=>{z(e,t),_?_.observe(e,F):x(e),e.style.display="none"};export{r as S,u as a,h as g,a as p,g as r,k as s};
4
+ var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,o){return e(o={path:t,exports:{},require:function(e,t){return n()}},o.exports),o.exports}function n(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var o=t((function(t){!function(e,o){t.exports?t.exports=o():e.log=o()}(e,(function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function r(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?s:void 0!==console[n]?r(console,n):void 0!==console.log?r(console,"log"):e)}function i(t,o){for(var r=0;r<n.length;r++){var s=n[r];this[s]=r<t?e:this.methodFactory(s,t,o)}this.log=this.debug}function a(e,o,n){return function(){typeof console!==t&&(i.call(this,o,n),this[e].apply(this,arguments))}}function c(e,t,o){return l(e)||a.apply(this,arguments)}function y(e,o,r){var s,l=this;o=null==o?"WARN":o;var a="loglevel";function y(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&a){try{return void(window.localStorage[a]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"="+o+";"}catch(e){}}}function f(){var e;if(typeof window!==t&&a){try{e=window.localStorage[a]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=o.indexOf(encodeURIComponent(a)+"=");-1!==n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}return void 0===l.levels[e]&&(e=void 0),e}}"string"==typeof e?a+=":"+e:"symbol"==typeof e&&(a=void 0),l.name=e,l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=r||c,l.getLevel=function(){return s},l.setLevel=function(o,n){if("string"==typeof o&&void 0!==l.levels[o.toUpperCase()]&&(o=l.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=l.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(s=o,!1!==n&&y(o),i.call(l,o,e),typeof console===t&&o<l.levels.SILENT)return"No console available for logging"},l.setDefaultLevel=function(e){o=e,f()||l.setLevel(e,!1)},l.resetLevel=function(){l.setLevel(o,!1),function(){if(typeof window!==t&&a){try{return void window.localStorage.removeItem(a)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},l.enableAll=function(e){l.setLevel(l.levels.TRACE,e)},l.disableAll=function(e){l.setLevel(l.levels.SILENT,e)};var h=f();null==h&&(h=o),l.setLevel(h,!1)}var f=new y,h={};f.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=h[e];return t||(t=h[e]=new y(e,f.getLevel(),f.methodFactory)),t};var u=typeof window!==t?window.log:void 0;return f.noConflict=function(){return typeof window!==t&&window.log===f&&(window.log=u),f},f.getLoggers=function(){return h},f.default=f,f}))}));const r="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let i=!0,l=!1;const f=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,s=e=>"string"==typeof e&&f.test(e),c=e=>{if(!1===s(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},u=(e,t,n)=>{c(e),!0===i&&!1===l&&(l=!0,o.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLElement | null = document.querySelector<HTMLElement>('#my-app');\n if (htmlDivElement instanceof HTMLElement) {\n const root = createRoot(htmlDivElement);\n root.render(<App />);\n }\n })\n .catch(console.warn);`)),"object"==typeof r.A11yUi&&null!==r.A11yUi||(r.A11yUi={}),"object"!=typeof r.A11yUi||null===r.A11yUi||"object"==typeof r.A11yUi.Themes&&null!==r.A11yUi.Themes||(r.A11yUi.Themes={}),"object"!=typeof r.A11yUi||null===r.A11yUi||"object"!=typeof r.A11yUi.Themes||null===r.A11yUi.Themes||"object"==typeof r.A11yUi.Themes[e]&&null!==r.A11yUi.Themes[e]||(r.A11yUi.Themes[e]={}),"object"==typeof r.A11yUi&&null!==r.A11yUi&&"object"==typeof r.A11yUi.Themes&&null!==r.A11yUi.Themes&&"object"==typeof r.A11yUi.Themes[e]&&null!==r.A11yUi.Themes[e]&&(r.A11yUi.Themes[e][t]=n)},a=(e,t)=>(c(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((o=>{const n=t[o];"string"==typeof n&&n.length>0&&u(e,o,n)})),e),y=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return y(t)}}return null},p=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},d=()=>"object"==typeof r.A11yUi&&null!==r.A11yUi&&"object"==typeof r.A11yUi.Theme&&null!==r.A11yUi.Theme&&"boolean"==typeof r.A11yUi.Theme.cache&&"object"==typeof r.A11yUi.Theme.encroachCss&&null!==typeof r.A11yUi.Theme.encroachCss&&"string"==typeof r.A11yUi.Theme.encroachCss.mode&&"string"==typeof r.A11yUi.Theme.name,h=e=>{if(d())return r.A11yUi.Theme;{const t={cache:!0,encroachCss:p(),loglevel:"silent",name:null},o=y(e);return o instanceof HTMLElement&&(t.cache="false"!==o.dataset.themeCache,t.encroachCss=p(o.dataset),t.loglevel="debug"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:"silent",t.name=o.dataset.theme||null),t}},m=(e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",name:"string"==typeof t.name?t.name:e}),w=(e,t)=>{!1!==d()||0!=("object"==typeof r.A11yUi&&null!==r.A11yUi)&&0!=("object"==typeof r.A11yUi.Theme&&null!==r.A11yUi.Theme)&&"default"===r.A11yUi.Theme.name||"object"==typeof t&&null!==t&&("fixed"===(t=m(e,t)).detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&("object"==typeof r.A11yUi&&null!==r.A11yUi||(r.A11yUi={}),r.A11yUi.Theme=t,o.info(`[Theming] Theme "${e}" was set as default theme.`))):o.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode."))};let b=!1;const g=(e,t,n={})=>{!1===b&&(b=!0,i=!1),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?w(e(a),{cache:n.theme?.cache,detect:n.theme?.detect,encroachCss:n.theme?.encroachCss,name:n.theme?.name}):o.error("[Theming] Es wurde versucht eine nicht kompatibles Theme zu laden.")})),i=!0,"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const r=[];return t.forEach((e=>r.push(e()))),Promise.all(r)};var v=Object.defineProperty,T=(e,t,o)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,E=(e,t,o)=>(T(e,"symbol"!=typeof t?t+"":t,o),o);const j=class e{constructor(e,t){E(this,"store"),this.store=this.createStore(e,t)}static getInstance(t,o){let n=e.instances.get(t);return void 0===n&&(n=new e(o,t),e.instances.set(t,n)),n}createStore(e,t){return Object.defineProperty(e,t,{enumerable:!1,value:{},writable:!1}),e[t]}recursiveSetItem(t,o,n,r=e.options){let s="object"==typeof n&&null!==n?{}:n;if(Object.defineProperty(t,o,{enumerable:!0===r.enumerable,get:()=>s,set:!0===r.immutable?void 0:e=>s=e}),"object"==typeof n&&null!==n)for(const[e,s]of Object.entries(n))this.recursiveSetItem(t[o],e,s,r)}setItem(t,o,n=e.options){return this.recursiveSetItem(this.store,t,o,n),this}getItem(e){return Array.isArray(e)?e.map((e=>this.getItem(e))):this.store[e]}};E(j,"options",{enumerable:!1,immutable:!1}),E(j,"instances",new Map);const S=new Map,A=[],L=new Set,R=new Map,M=/--[^;]+/g,C=/:/;"object"==typeof r.A11yUi&&null!==r.A11yUi||(r.A11yUi={CSS_STYLE_CACHE:R,HYDRATED_HISTORY:A,STYLING_TASK_QUEUE:S});const D=(e,t)=>{let o=t.match(M);if(Array.isArray(o)){o=o.filter((e=>C.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t)}L.add(e)},I=(e,t)=>"object"==typeof r.A11yUi&&null!==r.A11yUi&&"object"==typeof r.A11yUi.Themes&&null!==r.A11yUi.Themes&&"object"==typeof r.A11yUi.Themes[e]&&null!==r.A11yUi.Themes[e]&&"string"==typeof r.A11yUi.Themes[e][t]?r.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",H=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},O=(e,t)=>{try{const o=[];t.forEach((e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)})),e.adoptedStyleSheets=o}catch(o){t.reverse().forEach((t=>{const o=document.createElement("style");o.innerHTML=t,e.insertBefore(o,e.firstChild)}))}},$=(e,t,o)=>{if(!1!==o){const n=[...Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];let r;try{r=[...Array.from(e.adoptedStyleSheets)]}catch(e){r=[]}"before"===o?.mode?(n.reverse().forEach((e=>t.unshift(e.innerHTML))),r.reverse().forEach((e=>t.unshift(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))):"after"===o?.mode&&(n.forEach((e=>t.push(e.innerHTML))),r.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join("")))))}},z=(e,t,o)=>{const n=t.name||"default";let r;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");r=e.shadowRoot}catch(t){r=e}if(R.get(n)?.has(e.tagName))U(e,r,R.get(n)?.get(e.tagName),o);else{const s=I(n,"PROPERTIES"),l=I(n,"GLOBAL"),i=I(n,e.tagName);!1===L.has(n)&&D(n,l);const a=[s,l,i];$(r,a,t.encroachCss),"debug"===t.loglevel&&console.log(e.tagName,a),!0===t.cache&&(!1===R.has(n)&&R.set(n,new Map),R.get(n)?.set(e.tagName,a)),U(e,r,a,o)}},U=(e,t,o,n)=>{H(t),O(t,o),e.style.display=n},Y=e=>{"debug"===e.loglevel&&A.push({timestamp:Date.now(),numberOfTasks:S.size})},x=(e,t)=>{S.set(e,{styleDisplay:e.style.display?`${e.style.display}`:null,themeDetails:t})},N=(e,t)=>{x(e,t),Y(t)},F=e=>{S.delete(e)},_=(e,t)=>{F(e),Y(t)},k=e=>{const t=setTimeout((()=>{if(clearTimeout(t),S.has(e)&&e.classList.contains("hydrated")){const{styleDisplay:t,themeDetails:o}=S.get(e);z(e,o,t),_(e,o)}else k(e)}),25)},P=e=>{for(const t of e)if(S.has(t.target)&&t.target.classList.contains("hydrated")){const{styleDisplay:e,themeDetails:o}=S.get(t.target);z(t.target,o,e),_(t.target,o)}},q={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1};let G;try{G=new MutationObserver(P)}catch(e){G=null}const B=(e,t)=>{N(e,t),G?G.observe(e,q):k(e),e.style.display="none"};export{r as S,u as a,h as g,a as p,g as r,B as s};
@@ -0,0 +1 @@
1
+ {"version":3,"names":["root","definition","module","exports","log","this","noop","undefinedType","isIE","window","navigator","test","userAgent","logMethods","bindMethod","obj","methodName","method","bind","Function","prototype","call","e","apply","arguments","traceForIE","console","trace","realMethod","undefined","replaceLoggingMethods","level","loggerName","i","length","methodFactory","debug","enableLoggingWhenConsoleArrives","defaultMethodFactory","Logger","name","defaultLevel","factory","self","currentLevel","storageKey","persistLevelIfPossible","levelNum","levelName","toUpperCase","localStorage","ignore","document","cookie","encodeURIComponent","getPersistedLevel","storedLevel","location","indexOf","exec","slice","levels","clearPersistedLevel","removeItem","TRACE","DEBUG","INFO","WARN","ERROR","SILENT","getLevel","setLevel","persist","setDefaultLevel","resetLevel","enableAll","disableAll","initialLevel","defaultLogger","_loggersByName","getLogger","TypeError","logger","_log","noConflict","getLoggers","STORE","global","lockThemePatching","warrentyWarning","THEME_NAME_PATTERN","isThemeNameValid","validateThemeName","Error","patchThemeTag","t","o","warn","A11yUi","Themes","patchTheme","Object","getOwnPropertyNames","forEach","s","getThemeNode","HTMLElement","dataset","theme","parentNode","ShadowRoot","host","getEncroachCss","themeEncroachCss","themeReset","mode","themeEncroachCssMode","isTheCurrentThemeConfigValid","Theme","cache","encroachCss","getThemeDetails","loglevel","themeCache","themeLoglevel","getThemeOptionDefaults","detect","setConfigureTheme","info","registered","register","Set","Array","isArray","error","push","Promise","all","__defProp$1","defineProperty","__defNormalProp$1","enumerable","configurable","writable","value","__publicField$1","_RobustStore","constructor","store","createStore","getInstance","instances","get","set","recursiveSetItem","r","options","a","immutable","entries","setItem","getItem","map","Map","STYLING_TASK_QUEUE","HYDRATED_HISTORY","CSS_PROPERTIES_REGISTERED","CSS_STYLE_CACHE","REGEX_CSS_PROPERTIES","REGEX_SPLIT_CSS_PROPERTY","extractProperties","match","filter","createElement","innerHTML","join","querySelector","appendChild","add","getCssStyle","replace","removeStyle","from","childNodes","HTMLStyleElement","tagName","removeChild","patchStyle","CSSStyleSheet","replaceSync","adoptedStyleSheets","reverse","insertBefore","firstChild","encroachStyles","unshift","cssRules","cssText","setThemeStyleAfterHydrated","shadowRoot","has","switchStyle","n","l","style","display","logHydratedHistory","timestamp","Date","now","numberOfTasks","size","pushToDoTask","styleDisplay","themeDetails","loggedPushToDoTask","deleteDoneTask","delete","loggedDeleteDoneTask","waitForHydrated","setTimeout","clearTimeout","classList","contains","observerCallback","target","observerOptions","attributes","attributeFilter","childList","subtree","observer","MutationObserver","setThemeStyle","observe"],"sources":["node_modules/loglevel/lib/loglevel.js","node_modules/adopted-style-sheets/dist/index.mjs"],"sourcesContent":["/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n \"use strict\";\n if (typeof define === 'function' && define.amd) {\n define(definition);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = definition();\n } else {\n root.log = definition();\n }\n}(this, function () {\n \"use strict\";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = \"undefined\";\n var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (\n /Trident\\/|MSIE /.test(window.navigator.userAgent)\n );\n\n var logMethods = [\n \"trace\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\"\n ];\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === 'function') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Trace() doesn't print the message in IE, so for that case we need to wrap it\n function traceForIE() {\n if (console.log) {\n if (console.log.apply) {\n console.log.apply(console, arguments);\n } else {\n // In old IE, native console methods themselves don't have apply().\n Function.prototype.apply.apply(console.log, [console, arguments]);\n }\n }\n if (console.trace) console.trace();\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === 'debug') {\n methodName = 'log';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (methodName === 'trace' && isIE) {\n return traceForIE;\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, 'log');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods(level, loggerName) {\n /*jshint validthis:true */\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, loggerName);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n }\n\n // In old IE versions, the console isn't present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this, level, loggerName);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, level, loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, defaultLevel, factory) {\n var self = this;\n var currentLevel;\n defaultLevel = defaultLevel == null ? \"WARN\" : defaultLevel;\n\n var storageKey = \"loglevel\";\n if (typeof name === \"string\") {\n storageKey += \":\" + name;\n } else if (typeof name === \"symbol\") {\n storageKey = undefined;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType || !storageKey) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var location = cookie.indexOf(\n encodeURIComponent(storageKey) + \"=\");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n function clearPersistedLevel() {\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage.removeItem(storageKey);\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=; expires=Thu, 01 Jan 1970 00:00:00 UTC\";\n } catch (ignore) {}\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n \"ERROR\": 4, \"SILENT\": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n return currentLevel;\n };\n\n self.setLevel = function (level, persist) {\n if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n currentLevel = level;\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(level);\n }\n replaceLoggingMethods.call(self, level, name);\n if (typeof console === undefinedType && level < self.levels.SILENT) {\n return \"No console available for logging\";\n }\n } else {\n throw \"log.setLevel() called with invalid level: \" + level;\n }\n };\n\n self.setDefaultLevel = function (level) {\n defaultLevel = level;\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.resetLevel = function () {\n self.setLevel(defaultLevel, false);\n clearPersistedLevel();\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n // Initialize with the right level\n var initialLevel = getPersistedLevel();\n if (initialLevel == null) {\n initialLevel = defaultLevel;\n }\n self.setLevel(initialLevel, false);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n var defaultLogger = new Logger();\n\n var _loggersByName = {};\n defaultLogger.getLogger = function getLogger(name) {\n if ((typeof name !== \"symbol\" && typeof name !== \"string\") || name === \"\") {\n throw new TypeError(\"You must supply a name when creating a logger.\");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n // ES6 default export, for compatibility\n defaultLogger['default'] = defaultLogger;\n\n return defaultLogger;\n}));\n","import log from\"loglevel\";const createTranslation=(e,t)=>o=>o(e,t),createTheme=(e,t)=>o=>o(e,t),STORE=\"object\"==typeof window?window:\"object\"==typeof global?global:\"object\"==typeof self?self:{};let lockThemePatching=!0,warrentyWarning=!1;const THEME_NAME_PATTERN=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,isThemeNameValid=e=>\"string\"==typeof e&&THEME_NAME_PATTERN.test(e),validateThemeName=e=>{if(!1===isThemeNameValid(e))throw new Error(`[Theming] The theme identifier \"${\"string\"==typeof e?e:\"\"}\" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},patchThemeTag=(e,t,o)=>{validateThemeName(e),!0===lockThemePatching&&!1===warrentyWarning&&(warrentyWarning=!0,log.warn(`[Theming] The theme process is locked. This means that the theme \"${e}\" should not be patched.\\n\\nimport { register } from '@a11y-ui/core';\\nimport { defineCustomElements } from '...';\\nimport { THEME } from '...';\\n\\nregister(THEME, defineCustomElements)\\n\\t.then(() => {\\n\\t\\tconst htmlDivElement: HTMLElement | null = document.querySelector<HTMLElement>('#my-app');\\n if (htmlDivElement instanceof HTMLElement) {\\n const root = createRoot(htmlDivElement);\\n root.render(<App />);\\n }\\n })\\n .catch(console.warn);`)),\"object\"==typeof STORE.A11yUi&&null!==STORE.A11yUi||(STORE.A11yUi={}),\"object\"!=typeof STORE.A11yUi||null===STORE.A11yUi||\"object\"==typeof STORE.A11yUi.Themes&&null!==STORE.A11yUi.Themes||(STORE.A11yUi.Themes={}),\"object\"!=typeof STORE.A11yUi||null===STORE.A11yUi||\"object\"!=typeof STORE.A11yUi.Themes||null===STORE.A11yUi.Themes||\"object\"==typeof STORE.A11yUi.Themes[e]&&null!==STORE.A11yUi.Themes[e]||(STORE.A11yUi.Themes[e]={}),\"object\"==typeof STORE.A11yUi&&null!==STORE.A11yUi&&\"object\"==typeof STORE.A11yUi.Themes&&null!==STORE.A11yUi.Themes&&\"object\"==typeof STORE.A11yUi.Themes[e]&&null!==STORE.A11yUi.Themes[e]&&(STORE.A11yUi.Themes[e][t]=o)},patchTheme=(e,t)=>{if(validateThemeName(e),\"object\"==typeof t&&null!==t){Object.getOwnPropertyNames(t).forEach((o=>{const s=t[o];\"string\"==typeof s&&s.length>0&&patchThemeTag(e,o,s)}))}return e},getThemeNode=e=>{if(e instanceof HTMLElement){if(\"string\"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return getThemeNode(t)}}return null},getEncroachCss=(e={})=>\"false\"!==e.themeEncroachCss&&\"true\"!==e.themeReset&&{mode:\"after\"===e.themeEncroachCssMode||\"before\"===e.themeEncroachCssMode?e.themeEncroachCssMode:\"before\"},isTheCurrentThemeConfigValid=()=>\"object\"==typeof STORE.A11yUi&&null!==STORE.A11yUi&&\"object\"==typeof STORE.A11yUi.Theme&&null!==STORE.A11yUi.Theme&&\"boolean\"==typeof STORE.A11yUi.Theme.cache&&\"object\"==typeof STORE.A11yUi.Theme.encroachCss&&null!==typeof STORE.A11yUi.Theme.encroachCss&&\"string\"==typeof STORE.A11yUi.Theme.encroachCss.mode&&\"string\"==typeof STORE.A11yUi.Theme.name,isTheCurrentThemeNotDefault=()=>!1==(\"object\"==typeof STORE.A11yUi&&null!==STORE.A11yUi)||!1==(\"object\"==typeof STORE.A11yUi.Theme&&null!==STORE.A11yUi.Theme)||\"default\"!==STORE.A11yUi.Theme.name,getThemeDetails=e=>{if(isTheCurrentThemeConfigValid())return STORE.A11yUi.Theme;{const t={cache:!0,encroachCss:getEncroachCss(),loglevel:\"silent\",name:null},o=getThemeNode(e);return o instanceof HTMLElement&&(t.cache=\"false\"!==o.dataset.themeCache,t.encroachCss=getEncroachCss(o.dataset),t.loglevel=\"debug\"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:\"silent\",t.name=o.dataset.theme||null),t}},getTheme=e=>getThemeDetails(e).name,getThemeOptionDefaults=(e,t)=>({cache:!1!==t.cache,detect:\"auto\"===t.detect?\"auto\":\"fixed\",encroachCss:!1!==t.encroachCss&&(\"object\"!=typeof t.encroachCss||null==t.encroachCss||\"after\"!==t.encroachCss.mode&&\"before\"!==t.encroachCss.mode?{mode:\"before\"}:t.encroachCss),loglevel:\"debug\"===t.loglevel?t.loglevel:\"silent\",name:\"string\"==typeof t.name?t.name:e}),setConfigureTheme=(e,t)=>{!1!==isTheCurrentThemeConfigValid()||0!=(\"object\"==typeof STORE.A11yUi&&null!==STORE.A11yUi)&&0!=(\"object\"==typeof STORE.A11yUi.Theme&&null!==STORE.A11yUi.Theme)&&\"default\"===STORE.A11yUi.Theme.name||\"object\"==typeof t&&null!==t&&(\"fixed\"===(t=getThemeOptionDefaults(e,t)).detect?(null===t.name&&\"string\"==typeof e&&(t.name=e),e===t.name&&(\"object\"==typeof STORE.A11yUi&&null!==STORE.A11yUi||(STORE.A11yUi={}),STORE.A11yUi.Theme=t,log.info(`[Theming] Theme \"${e}\" was set as default theme.`))):log.warn(\"[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.\"))};let registered=!1;const register=(e,t,o={})=>{!1===registered&&(registered=!0,lockThemePatching=!1),\"function\"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{\"function\"==typeof e&&1===e.length?setConfigureTheme(e(patchTheme),{cache:o.theme?.cache,detect:o.theme?.detect,encroachCss:o.theme?.encroachCss,name:o.theme?.name}):log.error(\"[Theming] Es wurde versucht eine nicht kompatibles Theme zu laden.\")})),lockThemePatching=!0,\"function\"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const s=[];return t.forEach((e=>s.push(e()))),Promise.all(s)};var __defProp$1=Object.defineProperty,__defNormalProp$1=(e,t,o)=>t in e?__defProp$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,__publicField$1=(e,t,o)=>(__defNormalProp$1(e,\"symbol\"!=typeof t?t+\"\":t,o),o);const _RobustStore=class e{constructor(e,t){__publicField$1(this,\"store\"),this.store=this.createStore(e,t)}static getInstance(t,o){let s=e.instances.get(t);return void 0===s&&(s=new e(o,t),e.instances.set(t,s)),s}createStore(e,t){return Object.defineProperty(e,t,{enumerable:!1,value:{},writable:!1}),e[t]}recursiveSetItem(t,o,s,r=e.options){let a=\"object\"==typeof s&&null!==s?{}:s;if(Object.defineProperty(t,o,{enumerable:!0===r.enumerable,get:()=>a,set:!0===r.immutable?void 0:e=>a=e}),\"object\"==typeof s&&null!==s)for(const[e,a]of Object.entries(s))this.recursiveSetItem(t[o],e,a,r)}setItem(t,o,s=e.options){return this.recursiveSetItem(this.store,t,o,s),this}getItem(e){return Array.isArray(e)?e.map((e=>this.getItem(e))):this.store[e]}};__publicField$1(_RobustStore,\"options\",{enumerable:!1,immutable:!1}),__publicField$1(_RobustStore,\"instances\",new Map);let RobustStore=_RobustStore;const STYLING_TASK_QUEUE=new Map,HYDRATED_HISTORY=[],CSS_PROPERTIES_REGISTERED=new Set,CSS_STYLE_CACHE=new Map,REGEX_CSS_PROPERTIES=/--[^;]+/g,REGEX_SPLIT_CSS_PROPERTY=/:/;\"object\"==typeof STORE.A11yUi&&null!==STORE.A11yUi||(STORE.A11yUi={CSS_STYLE_CACHE:CSS_STYLE_CACHE,HYDRATED_HISTORY:HYDRATED_HISTORY,STYLING_TASK_QUEUE:STYLING_TASK_QUEUE});const extractProperties=(e,t)=>{let o=t.match(REGEX_CSS_PROPERTIES);if(Array.isArray(o)){o=o.filter((e=>REGEX_SPLIT_CSS_PROPERTY.test(e)));const t=document.createElement(\"style\");t.innerHTML=`.${e} {${o.join(\";\")}}`,document.querySelector(\"head\")?.appendChild(t)}CSS_PROPERTIES_REGISTERED.add(e)},getCssStyle=(e,t)=>\"object\"==typeof STORE.A11yUi&&null!==STORE.A11yUi&&\"object\"==typeof STORE.A11yUi.Themes&&null!==STORE.A11yUi.Themes&&\"object\"==typeof STORE.A11yUi.Themes[e]&&null!==STORE.A11yUi.Themes[e]&&\"string\"==typeof STORE.A11yUi.Themes[e][t]?STORE.A11yUi.Themes[e][t].replace(/\\r?\\n/g,\"\"):\"\",removeStyle=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&\"STYLE\"===t.tagName))break;e.removeChild(t)}},patchStyle=(e,t)=>{try{const o=[];t.forEach((e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)})),e.adoptedStyleSheets=o}catch(o){t.reverse().forEach((t=>{const o=document.createElement(\"style\");o.innerHTML=t,e.insertBefore(o,e.firstChild)}))}},encroachStyles=(e,t,o)=>{if(!1!==o){const s=[...Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&\"STYLE\"===e.tagName))];let r;try{r=[...Array.from(e.adoptedStyleSheets)]}catch(e){r=[]}\"before\"===o?.mode?(s.reverse().forEach((e=>t.unshift(e.innerHTML))),r.reverse().forEach((e=>t.unshift(Array.from(e.cssRules).map((e=>e.cssText)).join(\"\"))))):\"after\"===o?.mode&&(s.forEach((e=>t.push(e.innerHTML))),r.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join(\"\")))))}},setThemeStyleAfterHydrated=(e,t,o)=>{const s=t.name||\"default\";let r;try{if(null===e.shadowRoot)throw new Error(\"ShadowRoot is null\");r=e.shadowRoot}catch(t){r=e}if(CSS_STYLE_CACHE.get(s)?.has(e.tagName))switchStyle(e,r,CSS_STYLE_CACHE.get(s)?.get(e.tagName),o);else{const a=getCssStyle(s,\"PROPERTIES\"),n=getCssStyle(s,\"GLOBAL\"),l=getCssStyle(s,e.tagName);!1===CSS_PROPERTIES_REGISTERED.has(s)&&extractProperties(s,n);const i=[a,n,l];encroachStyles(r,i,t.encroachCss),\"debug\"===t.loglevel&&console.log(e.tagName,i),!0===t.cache&&(!1===CSS_STYLE_CACHE.has(s)&&CSS_STYLE_CACHE.set(s,new Map),CSS_STYLE_CACHE.get(s)?.set(e.tagName,i)),switchStyle(e,r,i,o)}},switchStyle=(e,t,o,s)=>{removeStyle(t),patchStyle(t,o),e.style.display=s},logHydratedHistory=e=>{\"debug\"===e.loglevel&&HYDRATED_HISTORY.push({timestamp:Date.now(),numberOfTasks:STYLING_TASK_QUEUE.size})},pushToDoTask=(e,t)=>{STYLING_TASK_QUEUE.set(e,{styleDisplay:e.style.display?`${e.style.display}`:null,themeDetails:t})},loggedPushToDoTask=(e,t)=>{pushToDoTask(e,t),logHydratedHistory(t)},deleteDoneTask=e=>{STYLING_TASK_QUEUE.delete(e)},loggedDeleteDoneTask=(e,t)=>{deleteDoneTask(e),logHydratedHistory(t)},waitForHydrated=e=>{const t=setTimeout((()=>{if(clearTimeout(t),STYLING_TASK_QUEUE.has(e)&&e.classList.contains(\"hydrated\")){const{styleDisplay:t,themeDetails:o}=STYLING_TASK_QUEUE.get(e);setThemeStyleAfterHydrated(e,o,t),loggedDeleteDoneTask(e,o)}else waitForHydrated(e)}),25)},observerCallback=e=>{for(const t of e)if(STYLING_TASK_QUEUE.has(t.target)&&t.target.classList.contains(\"hydrated\")){const{styleDisplay:e,themeDetails:o}=STYLING_TASK_QUEUE.get(t.target);setThemeStyleAfterHydrated(t.target,o,e),loggedDeleteDoneTask(t.target,o)}},observerOptions={attributes:!0,attributeFilter:[\"class\"],childList:!1,subtree:!1};let observer;try{observer=new MutationObserver(observerCallback)}catch(e){observer=null}const setThemeStyle=(e,t)=>{loggedPushToDoTask(e,t),observer?observer.observe(e,observerOptions):waitForHydrated(e),e.style.display=\"none\"};var __defProp=Object.defineProperty,__defNormalProp=(e,t,o)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,__publicField=(e,t,o)=>(__defNormalProp(e,\"symbol\"!=typeof t?t+\"\":t,o),o);class Theme{constructor(e,t,o){__publicField(this,\"Prefix\"),__publicField(this,\"Key\"),__publicField(this,\"Tag\"),__publicField(this,\"createTheme\",((e,t)=>createTheme(e,t))),__publicField(this,\"createTranslation\",((e,t)=>createTranslation(e,t))),this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(o)}}export{RobustStore,STORE,Theme,getTheme,getThemeDetails,patchTheme,patchThemeTag,register,setThemeStyle};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
3
  */
4
- export{r as register}from"./index-d8ac1088.js";export{c as BUNDESAEMTER,e as BUNDESANSTALTEN,a as BUNDESMINISTERIEN,f as BUND_LOGO_TEXT_MAP,b as Bundesamt,d as Bundesanstalt,B as Bundesministerium}from"./bund-056aa89a.js";export{t as translations}from"./i18n-45aa3c6d.js";export{c as configKoliBri}from"./dev.utils-c0c1c4e5.js";export{K as KoliBriDevHelper}from"./prop.validators-fba03cca.js";import"./index-37b5cbcf.js";import"./a11y.tipps-3205ae7d.js";import"./reuse-c2156413.js";class s{constructor(t){this.document=t,this.queue=new Set,this.isOpen=!1,this.toastElement=this.document.createElement("kol-toast"),this.toastElement.setAttribute("_level","0"),this.toastElement.setAttribute("_show","false"),this.toastElement.setAttribute("_show-duration","-1"),this.toastElement.setAttribute("_has-closer","true"),this.toastElement._on={onClose:()=>{const t=this.queue.values().next();t.value?(this.queue.delete(t.value),setTimeout((()=>{this.showToast(t.value)}),200)):this.isOpen=!1}},this.document.body.insertBefore(this.toastElement,this.document.body.firstChild)}static getInstance(t){let e=this.instances.get(t);return e||(e=new s(t),this.instances.set(t,e)),e}dispose(){const t=this.toastElement;if(t){this.toastElement=void 0,this.queue.clear(),t.remove();const e=t._on;e&&e.onClose&&e.onClose(new Event("dispose"))}else console.warn("Toaster service is already disposed.")}enqueue(t){this.isOpen?this.queue.add(t):this.showToast(t)}showToast(t){const e=t.label||t.heading;if(void 0===e)throw new Error("Toast requires a label.");this.toastElement?(this.toastElement.setAttribute("_label",e),this.toastElement.setAttribute("_show","true"),this.toastElement.setAttribute("_type",t.type),this.toastElement.innerText=t.description,this.isOpen=!0):console.warn("Tried to show a new toast at a disposed toaster service!")}}s.instances=new Map;export{s as ToasterService};
4
+ export{r as register}from"./index-2bab8f5e.js";export{c as BUNDESAEMTER,e as BUNDESANSTALTEN,a as BUNDESMINISTERIEN,f as BUND_LOGO_TEXT_MAP,b as Bundesamt,d as Bundesanstalt,B as Bundesministerium}from"./bund-056aa89a.js";export{t as translations}from"./i18n-ddf139c5.js";export{c as configKoliBri}from"./dev.utils-6b0ea1ed.js";export{K as KoliBriDevHelper}from"./prop.validators-4c3b89f9.js";import"./index-accc567c.js";import"./a11y.tipps-5ae09962.js";import"./reuse-c2156413.js";class s{constructor(t){this.document=t,this.queue=new Set,this.isOpen=!1,this.toastElement=this.document.createElement("kol-toast"),this.toastElement.setAttribute("_level","0"),this.toastElement.setAttribute("_show","false"),this.toastElement.setAttribute("_show-duration","-1"),this.toastElement.setAttribute("_has-closer","true"),this.toastElement._on={onClose:()=>{const t=this.queue.values().next();t.value?(this.queue.delete(t.value),setTimeout((()=>{this.showToast(t.value)}),200)):this.isOpen=!1}},this.document.body.insertBefore(this.toastElement,this.document.body.firstChild)}static getInstance(t){let e=this.instances.get(t);return e||(e=new s(t),this.instances.set(t,e)),e}dispose(){const t=this.toastElement;if(t){this.toastElement=void 0,this.queue.clear(),t.remove();const e=t._on;e&&e.onClose&&e.onClose(new Event("dispose"))}else console.warn("Toaster service is already disposed.")}enqueue(t){this.isOpen?this.queue.add(t):this.showToast(t)}showToast(t){const e=t.label||t.heading;if(void 0===e)throw new Error("Toast requires a label.");this.toastElement?(this.toastElement.setAttribute("_label",e),this.toastElement.setAttribute("_show","true"),this.toastElement.setAttribute("_type",t.type),this.toastElement.innerText=t.description,this.isOpen=!0):console.warn("Tried to show a new toast at a disposed toaster service!")}}s.instances=new Map;export{s as ToasterService};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t,h as i,H as e}from"./index-5ab2ea42.js";import{v as a}from"./label-f1600f9b.js";import{n as o}from"./dev.utils-c0c1c4e5.js";import{v as n}from"./tooltip-align-059bc525.js";import"./a11y.tipps-3205ae7d.js";import"./prop.validators-fba03cca.js";import"./index-37b5cbcf.js";import"./reuse-c2156413.js";import"./alignment-c3101451.js";const s=":host{--a11y-min-size:44px;font-size:inherit}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}:host>abbr{cursor:help}",l=class{constructor(i){t(this,i),this.nonce=o(),this._label=void 0,this._tooltipAlign="top",this._title=void 0,this.state={_label:"…",_tooltipAlign:"top"}}render(){return i(e,null,i("abbr",{"aria-labelledby":this.nonce,role:"definition",tabindex:"0",title:this.state._label},i("span",{title:""},i("slot",null))),i("kol-tooltip-wc",{_align:this.state._tooltipAlign,_id:this.nonce,_label:this.state._label}))}validateLabel(t){a(this,t)}validateTitle(t){this.validateLabel(t)}validateTooltipAlign(t){n(this,t)}componentWillLoad(){this.validateLabel(this._label||this._title),this.validateTooltipAlign(this._tooltipAlign)}static get watchers(){return{_label:["validateLabel"],_title:["validateTitle"],_tooltipAlign:["validateTooltipAlign"]}}};l.style={default:s};export{l as kol_abbr};
4
+ import{r as t,h as i,H as e}from"./index-5ab2ea42.js";import{v as a}from"./label-57657308.js";import{n as o}from"./dev.utils-6b0ea1ed.js";import{v as n}from"./tooltip-align-80a13b20.js";import"./a11y.tipps-5ae09962.js";import"./prop.validators-4c3b89f9.js";import"./index-accc567c.js";import"./reuse-c2156413.js";import"./alignment-9a3f2940.js";const s=":host{--a11y-min-size:44px;font-size:inherit}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}:host>abbr{cursor:help}",l=class{constructor(i){t(this,i),this.nonce=o(),this._label=void 0,this._tooltipAlign="top",this._title=void 0,this.state={_label:"…",_tooltipAlign:"top"}}render(){return i(e,null,i("abbr",{"aria-labelledby":this.nonce,role:"definition",tabindex:"0",title:this.state._label},i("span",{title:""},i("slot",null))),i("kol-tooltip-wc",{_align:this.state._tooltipAlign,_id:this.nonce,_label:this.state._label}))}validateLabel(t){a(this,t)}validateTitle(t){this.validateLabel(t)}validateTooltipAlign(t){n(this,t)}componentWillLoad(){this.validateLabel(this._label||this._title),this.validateTooltipAlign(this._tooltipAlign)}static get watchers(){return{_label:["validateLabel"],_title:["validateTitle"],_tooltipAlign:["validateTooltipAlign"]}}};l.style={default:s};export{l as kol_abbr};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t,h as i,H as e}from"./index-5ab2ea42.js";import{v as n}from"./label-f1600f9b.js";import{v as s}from"./open-696153d1.js";import{f as o}from"./a11y.tipps-3205ae7d.js";import{n as a}from"./dev.utils-c0c1c4e5.js";import{s as r}from"./prop.validators-fba03cca.js";import{p as l}from"./reuse-c2156413.js";import{w as h}from"./validation-5a1145b4.js";import"./index-37b5cbcf.js";const d=":host{--a11y-min-size:44px;font-size:inherit}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}:host{display:block}.accordion kol-heading-wc kol-button-wc button kol-span-wc{justify-items:start}.content{inset:0 0 auto 0;width:100%}.transition{transition:height 0.3s ease-in-out}@media (prefers-reduced-motion){.transition{transition-duration:0s}}";o("[KolAccordion] Anfrage nach einer KolAccordionGroup bei dem immer nur ein Accordion geöffnet ist.\n\n- onClick auf der KolAccordion anwenden\n- Click-Event prüft den _open-Status der Accordions\n- Logik Öffnet und Schließt entsprechend"),o("[KolAccordion] Tab-Sperre des Inhalts im geschlossenen Zustand.");const c=class{constructor(e){t(this,e),this.nonce=a(),this.contentElement=null,this.contentWrapperElement=null,this.contentObserver=null,this.transition=!1,this.catchContentElement=t=>{t&&(this.contentElement=t)},this.catchContentWrapperElement=t=>{t&&(this.contentWrapperElement=t)},this.onClick=t=>{this._open=!this._open,setTimeout((()=>{var e;"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onClick)&&this.state._on.onClick(t,!0===this._open)}))},this._heading=void 0,this._label=void 0,this._level=1,this._on=void 0,this._open=!1,this.state={_label:"…",_level:1}}resizeWrapper(t){const e=this.contentElement,n=this.contentWrapperElement,i=this.contentObserver;e&&n&&i&&(this._open?(n.style.display="block",setTimeout((()=>{var t;n.style.height=`${null!==(t=null==e?void 0:e.clientHeight)&&void 0!==t?t:0}px`})),t||i.observe(e),n.addEventListener("transitionend",(()=>{n.style.overflow=""}),{once:!0})):(n.style.overflow="hidden",i.unobserve(e),n.style.height="0",this.transition?n.addEventListener("transitionend",(()=>{n.style.display="none"}),{once:!0}):n.style.display="none"))}render(){return i(e,null,i("div",{class:{accordion:!0,open:!0===this.state._open,close:!0!==this.state._open}},i("kol-heading-wc",{_label:"",_level:this.state._level},i("kol-button-wc",{_ariaControls:this.nonce,_ariaExpanded:this.state._open,_icon:this.state._open?"codicon codicon-remove":"codicon codicon-add",_label:this.state._label,_on:{onClick:this.onClick}})),i("div",{class:"header"},i("slot",{name:"header"})),i("div",{ref:this.catchContentWrapperElement,class:{wrapper:!0,transition:this.transition}},i("div",{ref:this.catchContentElement,"aria-hidden":!1===this.state._open?"true":void 0,class:"content",id:this.nonce},i("slot",{name:"content"})," ",i("slot",null)))))}validateHeading(t){this.validateLabel(t)}validateLabel(t){n(this,t)}validateLevel(t){h(this,t)}validateOn(t){"object"==typeof t&&null!==t&&"function"==typeof t.onClick&&r(this,"_on",t)}validateOpen(t){s(this,t,{hooks:{afterPatch:()=>{this.resizeWrapper()}}})}componentWillLoad(){this.validateLabel(this._label||this._heading),this.validateLevel(this._level),this.validateOn(this._on),this.validateOpen(this._open),"test"!==l&&(this.contentObserver=new ResizeObserver(this.resizeWrapper.bind(this))),setTimeout((()=>{this.contentObserver&&this.contentElement&&this.contentObserver.observe(this.contentElement)})),setTimeout((()=>{this.transition=!0}),200)}static get watchers(){return{_heading:["validateHeading"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_open:["validateOpen"]}}};c.style={default:d};export{c as kol_accordion};
4
+ import{r as t,h as i,H as e}from"./index-5ab2ea42.js";import{v as n}from"./label-57657308.js";import{v as s}from"./open-95995897.js";import{f as o}from"./a11y.tipps-5ae09962.js";import{n as a}from"./dev.utils-6b0ea1ed.js";import{s as r}from"./prop.validators-4c3b89f9.js";import{p as l}from"./reuse-c2156413.js";import{w as h}from"./validation-fb2d63bd.js";import"./index-accc567c.js";const d=":host{--a11y-min-size:44px;font-size:inherit}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}:host{display:block}.accordion kol-heading-wc kol-button-wc button kol-span-wc{justify-items:start}.content{inset:0 0 auto 0;width:100%}.transition{transition:height 0.3s ease-in-out}@media (prefers-reduced-motion){.transition{transition-duration:0s}}";o("[KolAccordion] Anfrage nach einer KolAccordionGroup bei dem immer nur ein Accordion geöffnet ist.\n\n- onClick auf der KolAccordion anwenden\n- Click-Event prüft den _open-Status der Accordions\n- Logik Öffnet und Schließt entsprechend"),o("[KolAccordion] Tab-Sperre des Inhalts im geschlossenen Zustand.");const c=class{constructor(e){t(this,e),this.nonce=a(),this.contentElement=null,this.contentWrapperElement=null,this.contentObserver=null,this.transition=!1,this.catchContentElement=t=>{t&&(this.contentElement=t)},this.catchContentWrapperElement=t=>{t&&(this.contentWrapperElement=t)},this.onClick=t=>{this._open=!this._open,setTimeout((()=>{var e;"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onClick)&&this.state._on.onClick(t,!0===this._open)}))},this._heading=void 0,this._label=void 0,this._level=1,this._on=void 0,this._open=!1,this.state={_label:"…",_level:1}}resizeWrapper(t){const e=this.contentElement,n=this.contentWrapperElement,i=this.contentObserver;e&&n&&i&&(this._open?(n.style.display="block",setTimeout((()=>{var t;n.style.height=`${null!==(t=null==e?void 0:e.clientHeight)&&void 0!==t?t:0}px`})),t||i.observe(e),n.addEventListener("transitionend",(()=>{n.style.overflow=""}),{once:!0})):(n.style.overflow="hidden",i.unobserve(e),n.style.height="0",this.transition?n.addEventListener("transitionend",(()=>{n.style.display="none"}),{once:!0}):n.style.display="none"))}render(){return i(e,null,i("div",{class:{accordion:!0,open:!0===this.state._open,close:!0!==this.state._open}},i("kol-heading-wc",{_label:"",_level:this.state._level},i("kol-button-wc",{_ariaControls:this.nonce,_ariaExpanded:this.state._open,_icon:this.state._open?"codicon codicon-remove":"codicon codicon-add",_label:this.state._label,_on:{onClick:this.onClick}})),i("div",{class:"header"},i("slot",{name:"header"})),i("div",{ref:this.catchContentWrapperElement,class:{wrapper:!0,transition:this.transition}},i("div",{ref:this.catchContentElement,"aria-hidden":!1===this.state._open?"true":void 0,class:"content",id:this.nonce},i("slot",{name:"content"})," ",i("slot",null)))))}validateHeading(t){this.validateLabel(t)}validateLabel(t){n(this,t)}validateLevel(t){h(this,t)}validateOn(t){"object"==typeof t&&null!==t&&"function"==typeof t.onClick&&r(this,"_on",t)}validateOpen(t){s(this,t,{hooks:{afterPatch:()=>{this.resizeWrapper()}}})}componentWillLoad(){this.validateLabel(this._label||this._heading),this.validateLevel(this._level),this.validateOn(this._on),this.validateOpen(this._open),"test"!==l&&(this.contentObserver=new ResizeObserver(this.resizeWrapper.bind(this))),setTimeout((()=>{this.contentObserver&&this.contentElement&&this.contentObserver.observe(this.contentElement)})),setTimeout((()=>{this.transition=!0}),200)}static get watchers(){return{_heading:["validateHeading"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_open:["validateOpen"]}}};c.style={default:d};export{c as kol_accordion};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as i,h as t,H as s,F as e}from"./index-5ab2ea42.js";import{a}from"./i18n-45aa3c6d.js";import{v as o}from"./has-closer-f435688d.js";import{v as l}from"./label-f1600f9b.js";import{L as n}from"./dev.utils-c0c1c4e5.js";import{a as r,s as h,w as c}from"./prop.validators-fba03cca.js";import{w as d}from"./validation-5a1145b4.js";import"./index-d8ac1088.js";import"./index-37b5cbcf.js";import"./a11y.tipps-3205ae7d.js";import"./reuse-c2156413.js";const u=i=>t("kol-icon",{class:"heading-icon",_ariaLabel:"string"==typeof i.label&&i.label.length>0?"":i.ariaLabel,_icon:i.icon}),f=i=>{switch(i.type){case"error":return t(u,{ariaLabel:a("kol-error"),icon:"codicon codicon-error",label:i.label});case"info":return t(u,{ariaLabel:a("kol-info"),icon:"codicon codicon-info",label:i.label});case"warning":return t(u,{ariaLabel:a("kol-warning"),icon:"codicon codicon-warning",label:i.label});case"success":return t(u,{ariaLabel:a("kol-success"),icon:"codicon codicon-pass",label:i.label});default:return t(u,{ariaLabel:a("kol-message"),icon:"codicon codicon-comment",label:i.label})}},v=class{constructor(t){i(this,t),this.close=()=>{var t;void 0!==(null===(t=this._on)||void 0===t?void 0:t.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClick:this.close},this.validateOnValue=t=>"object"==typeof t&&null!==t&&"function"==typeof t.onClose,this._alert=!1,this._hasCloser=!1,this._label=void 0,this._level=1,this._on=void 0,this._type="default",this._variant="msg",this.state={_level:1}}render(){var i;if(this.state._alert){try{n.debug(["Navigator should vibrate ...",navigator.vibrate([100,75,100,75,100])])}catch(i){n.debug("Navigator does not support vibration.")}setTimeout((()=>{this.validateAlert(!1)}),1e4)}return t(s,{class:{[this.state._type]:!0,[this.state._variant]:!0,hasCloser:!!this.state._hasCloser},role:this.state._alert?"alert":void 0},t("div",{class:"heading"},t(f,{label:this.state._label,type:this.state._type}),t("div",null,"string"==typeof this.state._label&&(null===(i=this.state._label)||void 0===i?void 0:i.length)>0&&t("kol-heading-wc",{_label:this.state._label,_level:this.state._level}),"msg"===this._variant&&t("div",{class:"content"},t("slot",null))),this.state._hasCloser&&t("kol-button-wc",{class:"close",_hideLabel:!0,_icon:{left:{icon:"codicon codicon-close"}},_label:a("kol-close"),_on:this.on,_tooltipAlign:"left"})),"card"===this._variant&&t("div",{class:"content"},t("slot",null)))}validateAlert(t){r(this,"_alert",t)}validateHasCloser(t){o(this,t)}validateLabel(t){l(this,t)}validateLevel(t){d(this,t)}validateOn(t){this.validateOnValue(t)&&h(this,"_on",{onClose:t.onClose})}validateType(t){c(this,"_type",(t=>"string"==typeof t&&("default"===t||"error"===t||"info"===t||"success"===t||"warning"===t)),new Set("String {success, info, warning, error}"),t)}validateVariant(t){c(this,"_variant",(t=>"card"===t||"msg"===t),new Set("AlertVariant {card, msg}"),t)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateType(this._type),this.validateVariant(this._variant)}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}},p=class{constructor(t){i(this,t),this._alert=!0,this._currentLength=void 0,this._disabled=!1,this._error="",this._hasCounter=void 0,this._hideLabel=!1,this._hint="",this._icon=void 0,this._id=void 0,this._maxLength=void 0,this._readOnly=!1,this._renderNoLabel=!1,this._required=!1,this._slotName=void 0,this._suggestions=void 0,this._smartButton=void 0,this._touched=!1}render(){var i,l,o,r;const n="string"==typeof this._error&&this._error.length>0&&!0===this._touched,h="string"==typeof this._hint&&this._hint.length>0,_=this._slotName?this._slotName:"input";return t(s,{class:{disabled:!0===this._disabled,error:!0===n,"read-only":!0===this._readOnly,required:!0===this._required,touched:!0===this._touched}},!1===this._renderNoLabel&&t("label",{id:`${this._id}-label`,hidden:this._hideLabel,htmlFor:this._id},t("span",null,t("slot",{name:"label"}))),h&&t("span",{class:"hint",id:`${this._id}-hint`},this._hint),t("div",{class:{input:!0,"icon-left":"object"==typeof(null===(i=this._icon)||void 0===i?void 0:i.left),"icon-right":"object"==typeof(null===(l=this._icon)||void 0===l?void 0:l.right)}},(null===(o=this._icon)||void 0===o?void 0:o.left)&&t("kol-icon",{_ariaLabel:"",_icon:this._icon.left.icon}),t("slot",{name:_}),"object"==typeof this._smartButton&&null!==this._smartButton&&t("kol-button-wc",{_customClass:this._smartButton._customClass,_disabled:this._smartButton._disabled,_icon:this._smartButton._icon,_hideLabel:!0,_id:this._smartButton._id,_label:this._smartButton._label,_on:this._smartButton._on,_tooltipAlign:this._smartButton._tooltipAlign,_variant:this._smartButton._variant}),(null===(r=this._icon)||void 0===r?void 0:r.right)&&t("kol-icon",{_ariaLabel:"",_icon:this._icon.right.icon})),n&&t("kol-alert",{class:"error",id:`${this._id}-error`,_alert:this._alert,_type:"error",_variant:"msg"},this._error),Array.isArray(this._suggestions)&&this._suggestions.length>0&&t("datalist",{id:`${this._id}-list`},this._suggestions.map((i=>t("option",{value:i})))),this._hasCounter&&t("span",{"aria-atomic":"true","aria-live":"polite"},this._currentLength,this._maxLength&&t(e,null,t("span",{"aria-label":a("kol-of"),role:"img"},"/"),this._maxLength)," ",t("span",null,a("kol-characters"))))}};export{v as kol_alert_wc,p as kol_input};
4
+ import{r as i,h as t,H as s,F as e}from"./index-5ab2ea42.js";import{a}from"./i18n-ddf139c5.js";import{v as o}from"./has-closer-1778d617.js";import{v as l}from"./label-57657308.js";import{L as n}from"./dev.utils-6b0ea1ed.js";import{a as r,s as h,w as c}from"./prop.validators-4c3b89f9.js";import{w as d}from"./validation-fb2d63bd.js";import"./index-2bab8f5e.js";import"./index-accc567c.js";import"./a11y.tipps-5ae09962.js";import"./reuse-c2156413.js";const u=i=>t("kol-icon",{class:"heading-icon",_ariaLabel:"string"==typeof i.label&&i.label.length>0?"":i.ariaLabel,_icon:i.icon}),f=i=>{switch(i.type){case"error":return t(u,{ariaLabel:a("kol-error"),icon:"codicon codicon-error",label:i.label});case"info":return t(u,{ariaLabel:a("kol-info"),icon:"codicon codicon-info",label:i.label});case"warning":return t(u,{ariaLabel:a("kol-warning"),icon:"codicon codicon-warning",label:i.label});case"success":return t(u,{ariaLabel:a("kol-success"),icon:"codicon codicon-pass",label:i.label});default:return t(u,{ariaLabel:a("kol-message"),icon:"codicon codicon-comment",label:i.label})}},v=class{constructor(t){i(this,t),this.close=()=>{var t;void 0!==(null===(t=this._on)||void 0===t?void 0:t.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClick:this.close},this.validateOnValue=t=>"object"==typeof t&&null!==t&&"function"==typeof t.onClose,this._alert=!1,this._hasCloser=!1,this._label=void 0,this._level=1,this._on=void 0,this._type="default",this._variant="msg",this.state={_level:1}}render(){var i;if(this.state._alert){try{n.debug(["Navigator should vibrate ...",navigator.vibrate([100,75,100,75,100])])}catch(i){n.debug("Navigator does not support vibration.")}setTimeout((()=>{this.validateAlert(!1)}),1e4)}return t(s,{class:{[this.state._type]:!0,[this.state._variant]:!0,hasCloser:!!this.state._hasCloser},role:this.state._alert?"alert":void 0},t("div",{class:"heading"},t(f,{label:this.state._label,type:this.state._type}),t("div",null,"string"==typeof this.state._label&&(null===(i=this.state._label)||void 0===i?void 0:i.length)>0&&t("kol-heading-wc",{_label:this.state._label,_level:this.state._level}),"msg"===this._variant&&t("div",{class:"content"},t("slot",null))),this.state._hasCloser&&t("kol-button-wc",{class:"close",_hideLabel:!0,_icon:{left:{icon:"codicon codicon-close"}},_label:a("kol-close"),_on:this.on,_tooltipAlign:"left"})),"card"===this._variant&&t("div",{class:"content"},t("slot",null)))}validateAlert(t){r(this,"_alert",t)}validateHasCloser(t){o(this,t)}validateLabel(t){l(this,t)}validateLevel(t){d(this,t)}validateOn(t){this.validateOnValue(t)&&h(this,"_on",{onClose:t.onClose})}validateType(t){c(this,"_type",(t=>"string"==typeof t&&("default"===t||"error"===t||"info"===t||"success"===t||"warning"===t)),new Set("String {success, info, warning, error}"),t)}validateVariant(t){c(this,"_variant",(t=>"card"===t||"msg"===t),new Set("AlertVariant {card, msg}"),t)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateType(this._type),this.validateVariant(this._variant)}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}},p=class{constructor(t){i(this,t),this._alert=!0,this._currentLength=void 0,this._disabled=!1,this._error="",this._hasCounter=void 0,this._hideLabel=!1,this._hint="",this._icon=void 0,this._id=void 0,this._maxLength=void 0,this._readOnly=!1,this._renderNoLabel=!1,this._required=!1,this._slotName=void 0,this._suggestions=void 0,this._smartButton=void 0,this._touched=!1}render(){var i,l,o,r;const n="string"==typeof this._error&&this._error.length>0&&!0===this._touched,h="string"==typeof this._hint&&this._hint.length>0,_=this._slotName?this._slotName:"input";return t(s,{class:{disabled:!0===this._disabled,error:!0===n,"read-only":!0===this._readOnly,required:!0===this._required,touched:!0===this._touched}},!1===this._renderNoLabel&&t("label",{id:`${this._id}-label`,hidden:this._hideLabel,htmlFor:this._id},t("span",null,t("slot",{name:"label"}))),h&&t("span",{class:"hint",id:`${this._id}-hint`},this._hint),t("div",{class:{input:!0,"icon-left":"object"==typeof(null===(i=this._icon)||void 0===i?void 0:i.left),"icon-right":"object"==typeof(null===(l=this._icon)||void 0===l?void 0:l.right)}},(null===(o=this._icon)||void 0===o?void 0:o.left)&&t("kol-icon",{_ariaLabel:"",_icon:this._icon.left.icon}),t("slot",{name:_}),"object"==typeof this._smartButton&&null!==this._smartButton&&t("kol-button-wc",{_customClass:this._smartButton._customClass,_disabled:this._smartButton._disabled,_icon:this._smartButton._icon,_hideLabel:!0,_id:this._smartButton._id,_label:this._smartButton._label,_on:this._smartButton._on,_tooltipAlign:this._smartButton._tooltipAlign,_variant:this._smartButton._variant}),(null===(r=this._icon)||void 0===r?void 0:r.right)&&t("kol-icon",{_ariaLabel:"",_icon:this._icon.right.icon})),n&&t("kol-alert",{class:"error",id:`${this._id}-error`,_alert:this._alert,_type:"error",_variant:"msg"},this._error),Array.isArray(this._suggestions)&&this._suggestions.length>0&&t("datalist",{id:`${this._id}-list`},this._suggestions.map((i=>t("option",{value:i})))),this._hasCounter&&t("span",{class:"counter","aria-atomic":"true","aria-live":"polite"},this._currentLength,this._maxLength&&t(e,null,t("span",{"aria-label":a("kol-of"),role:"img"},"/"),this._maxLength)," ",t("span",null,a("kol-characters"))))}};export{v as kol_alert_wc,p as kol_input};