@fink-ui/components 0.0.0-stage → 0.1.0

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 (1109) hide show
  1. package/LICENSE +287 -0
  2. package/README.md +57 -2
  3. package/dist/cjs/Heading-foerLIu9-QKM3M64_.js +40 -0
  4. package/dist/cjs/access-and-short-key-BTEwnScd-CasZf-uj.js +15 -0
  5. package/dist/cjs/api-Ba9FNPRn-rTHkYZEI.js +434 -0
  6. package/dist/cjs/app-globals-BQaqIleT.js +28 -0
  7. package/dist/cjs/aria-current-service-4eUMzpeO-emhsMPL3.js +30 -0
  8. package/dist/cjs/aria-labelledby-C4wUnR-v-CxE6OTWv.js +31 -0
  9. package/dist/cjs/base-AKIr0rpk-bPbfzUAQ.js +142 -0
  10. package/dist/cjs/base-C7nTPc7u-BhwWFb1q.js +1093 -0
  11. package/dist/cjs/base-CpUNedp9-XUSugrQg.js +165 -0
  12. package/dist/cjs/base-D7qItqyf-BbbOTUbw.js +214 -0
  13. package/dist/cjs/base-web-component-B3wi5eWH-DYRp0_Cp.js +67 -0
  14. package/dist/cjs/base-web-component-BpL_hXcg-Drs4AWKT.js +197 -0
  15. package/dist/cjs/base-web-component-DorOeD_U-DGNc9bak.js +234 -0
  16. package/dist/cjs/behavior-D9BHiFnH-DQyuXsUx.js +224 -0
  17. package/dist/cjs/behavior-DDo87iUM-DfnNkRgJ.js +1909 -0
  18. package/dist/cjs/behavior-XAV9GSxI-DWZGwtl6.js +166 -0
  19. package/dist/cjs/bem-registry-CrZZQahR-Dsn0TBlY.js +619 -0
  20. package/dist/cjs/bootstrap-Cz7Iq2I2-Bcg6Ig6g.js +58 -0
  21. package/dist/cjs/color-CnVBqZd5-Bat4Qm2q.js +60 -0
  22. package/dist/cjs/component-0npqUhj2-qp7pd5wT.js +141 -0
  23. package/dist/cjs/component-BCKsZOoB-D3_uvry6.js +23 -0
  24. package/dist/cjs/component-BZjDp_Lf-85vhAON7.js +20 -0
  25. package/dist/cjs/component-CjdTbGlP-Y_6DLMyJ.js +178 -0
  26. package/dist/cjs/component-Cn693XeT-D2RHI-mG.js +53 -0
  27. package/dist/cjs/component-Cvd5HXbX-D-tGBgwx.js +66 -0
  28. package/dist/cjs/component-CvdxCpjC-A5gOfnw4.js +49 -0
  29. package/dist/cjs/component-DFhRTaqb-CKItH_ej.js +127 -0
  30. package/dist/cjs/component-DP_p5few-B5O6gbGq.js +100 -0
  31. package/dist/cjs/component-DlROeCCe-DPm6I-PP.js +92 -0
  32. package/dist/cjs/component-names-DzmdvSkQ-CGSrl0lP.js +122 -0
  33. package/dist/cjs/contrast-BHjNzQvB-bpMVkXiN.js +67 -0
  34. package/dist/cjs/controller-DYkXzFqc-DWdZzY6f.js +117 -0
  35. package/dist/cjs/dev.utils-BgFDROtc-DkabL34N.js +84 -0
  36. package/dist/cjs/devtools-B6h2bVMJ-CtxQrosK.js +100 -0
  37. package/dist/cjs/disabled-BZIZZ6wy-DIculoOg.js +12 -0
  38. package/dist/cjs/element-focus-C0L8NWU8-C65ZOrOV.js +157 -0
  39. package/dist/cjs/element-interaction-B3GEli6r-ByFTg4X5.js +101 -0
  40. package/dist/cjs/events-DdfMb1U7-CnoJDEJq.js +55 -0
  41. package/dist/cjs/field-control-QF0yTcyb-BkxThVwi.js +31 -0
  42. package/dist/cjs/fink-app-shell.cjs.entry.js +133 -0
  43. package/dist/cjs/fink-avatar-group.cjs.entry.js +62 -0
  44. package/dist/cjs/fink-back-to-top.cjs.entry.js +52 -0
  45. package/dist/cjs/fink-bar-chart.cjs.entry.js +50 -0
  46. package/dist/cjs/fink-bottom-nav.cjs.entry.js +50 -0
  47. package/dist/cjs/fink-calendar.cjs.entry.js +150 -0
  48. package/dist/cjs/fink-carousel.cjs.entry.js +103 -0
  49. package/dist/cjs/fink-chip.cjs.entry.js +76 -0
  50. package/dist/cjs/fink-code-block.cjs.entry.js +171 -0
  51. package/dist/cjs/fink-consent-banner.cjs.entry.js +88 -0
  52. package/dist/cjs/fink-divider.cjs.entry.js +33 -0
  53. package/dist/cjs/fink-empty-state.cjs.entry.js +26 -0
  54. package/dist/cjs/fink-fab.cjs.entry.js +59 -0
  55. package/dist/cjs/fink-feedback.cjs.entry.js +41 -0
  56. package/dist/cjs/fink-file-upload.cjs.entry.js +114 -0
  57. package/dist/cjs/fink-footer.cjs.entry.js +37 -0
  58. package/dist/cjs/fink-grid.cjs.entry.js +23 -0
  59. package/dist/cjs/fink-image-list.cjs.entry.js +65 -0
  60. package/dist/cjs/fink-infinite-scroll.cjs.entry.js +73 -0
  61. package/dist/cjs/fink-kbd.cjs.entry.js +27 -0
  62. package/dist/cjs/fink-list.cjs.entry.js +77 -0
  63. package/dist/cjs/fink-logo.cjs.entry.js +29 -0
  64. package/dist/cjs/fink-menu.cjs.entry.js +141 -0
  65. package/dist/cjs/fink-otp-input.cjs.entry.js +111 -0
  66. package/dist/cjs/fink-page-header_4.cjs.entry.js +176 -0
  67. package/dist/cjs/fink-panel.cjs.entry.js +26 -0
  68. package/dist/cjs/fink-popconfirm.cjs.entry.js +61 -0
  69. package/dist/cjs/fink-range-slider.cjs.entry.js +80 -0
  70. package/dist/cjs/fink-rating.cjs.entry.js +64 -0
  71. package/dist/cjs/fink-result.cjs.entry.js +49 -0
  72. package/dist/cjs/fink-segmented.cjs.entry.js +51 -0
  73. package/dist/cjs/fink-selection-bar.cjs.entry.js +36 -0
  74. package/dist/cjs/fink-skeleton.cjs.entry.js +33 -0
  75. package/dist/cjs/fink-sparkline.cjs.entry.js +77 -0
  76. package/dist/cjs/fink-splitter.cjs.entry.js +84 -0
  77. package/dist/cjs/fink-stack.cjs.entry.js +35 -0
  78. package/dist/cjs/fink-stat-card.cjs.entry.js +58 -0
  79. package/dist/cjs/fink-summary-list.cjs.entry.js +29 -0
  80. package/dist/cjs/fink-tag-input.cjs.entry.js +113 -0
  81. package/dist/cjs/fink-timeline.cjs.entry.js +35 -0
  82. package/dist/cjs/fink-toc.cjs.entry.js +83 -0
  83. package/dist/cjs/fink-tour.cjs.entry.js +126 -0
  84. package/dist/cjs/fink-transfer-list.cjs.entry.js +101 -0
  85. package/dist/cjs/fink-virtual-list.cjs.entry.js +99 -0
  86. package/dist/cjs/fink.cjs.js +25 -0
  87. package/dist/cjs/group-8Me6YSO8-KMX-J6Nw.js +161 -0
  88. package/dist/cjs/has-closer-B-uYNNCw-BMi7yDrc.js +12 -0
  89. package/dist/cjs/href-DKPJq0Rh-Br0Co0Hf.js +12 -0
  90. package/dist/cjs/i18n-TlIXBsgS-tXG7od7W.js +227 -0
  91. package/dist/cjs/i18n-Uze_l4Ts-KcllxhQ3.js +17 -0
  92. package/dist/cjs/id-CkUYl2hO-aN84VRbL.js +12 -0
  93. package/dist/cjs/index-BnPDz_vB.js +5029 -0
  94. package/dist/cjs/index-C5tkyUxS.js +45 -0
  95. package/dist/cjs/index-CNO6HyrP.js +2004 -0
  96. package/dist/cjs/index-TsgAqj51.js +254 -0
  97. package/dist/cjs/index-xQL8L4ZS.js +2544 -0
  98. package/dist/cjs/index.cjs.js +33 -0
  99. package/dist/cjs/info-tuXhkPMr-F7Nn80k7.js +5590 -0
  100. package/dist/cjs/input-DwlolkOG-ZSHXWVxw.js +19 -0
  101. package/dist/cjs/input-container-DC3x4oGg-_Z5rQyil.js +102 -0
  102. package/dist/cjs/item-DThxrTZc-CDeyfJAJ.js +527 -0
  103. package/dist/cjs/item-cArH2C6l-3XgvOwr_.js +93 -0
  104. package/dist/cjs/item-pool-D4qvvY-S-152khmPs.js +46 -0
  105. package/dist/cjs/item-uC3h4pj3-CWCiuOrw.js +178 -0
  106. package/dist/cjs/item-zPmzbSvE-Cio4UhtM.js +88 -0
  107. package/dist/cjs/keyboard-DzlBdECG-HWqF6kPw.js +46 -0
  108. package/dist/cjs/kol-abbr.entry-vXy8tkfC.js +49 -0
  109. package/dist/cjs/kol-accordion.entry-DlfL8K5B.js +130 -0
  110. package/dist/cjs/kol-alert.entry-BSoN_9JY.js +190 -0
  111. package/dist/cjs/kol-avatar.entry-BTWt7leQ.js +100 -0
  112. package/dist/cjs/kol-badge.entry-iHLDICRD.js +176 -0
  113. package/dist/cjs/kol-breadcrumb.entry-Cjli4lJk.js +220 -0
  114. package/dist/cjs/kol-button-link.entry-D0tpwXhh.js +231 -0
  115. package/dist/cjs/kol-button.entry-PJhmI8Sb.js +241 -0
  116. package/dist/cjs/kol-card.entry-DICGVwpp.js +159 -0
  117. package/dist/cjs/kol-combobox.entry-knkAeqUE.js +549 -0
  118. package/dist/cjs/kol-details.entry-D0e4DD0G.js +130 -0
  119. package/dist/cjs/kol-dialog.entry-Dl1tatrP.js +132 -0
  120. package/dist/cjs/kol-drawer.entry-B5bf_Ygn.js +276 -0
  121. package/dist/cjs/kol-form.entry-DzeQve42.js +189 -0
  122. package/dist/cjs/kol-heading.entry-CwqmgXUS.js +83 -0
  123. package/dist/cjs/kol-icon.entry-CXVnSfdK.js +61 -0
  124. package/dist/cjs/kol-image.entry-2UshvJbB.js +114 -0
  125. package/dist/cjs/kol-input-checkbox.entry-DuxJ4K37.js +413 -0
  126. package/dist/cjs/kol-input-color.entry-2P1VK_Nn.js +319 -0
  127. package/dist/cjs/kol-input-date.entry-1oMHl1vG.js +534 -0
  128. package/dist/cjs/kol-input-email.entry-CxKE1-QV.js +351 -0
  129. package/dist/cjs/kol-input-file.entry-T5K_9_NM.js +384 -0
  130. package/dist/cjs/kol-input-number.entry-DSEAmFMI.js +440 -0
  131. package/dist/cjs/kol-input-password.entry-CVy2U3X0.js +375 -0
  132. package/dist/cjs/kol-input-radio.entry-CAuQGZYt.js +396 -0
  133. package/dist/cjs/kol-input-range.entry-DWH6ku6R.js +376 -0
  134. package/dist/cjs/kol-input-text.entry-ConfFR_K.js +439 -0
  135. package/dist/cjs/kol-kolibri.entry-CZVJE2wv.js +65 -0
  136. package/dist/cjs/kol-link-button.entry-CutGwpy4.js +223 -0
  137. package/dist/cjs/kol-link.entry-BGi6OGH-.js +210 -0
  138. package/dist/cjs/kol-meter.entry-DmZr5NfI.js +209 -0
  139. package/dist/cjs/kol-modal.entry-B-uPnZY7.js +123 -0
  140. package/dist/cjs/kol-nav.entry-D_Vzzpei.js +270 -0
  141. package/dist/cjs/kol-pagination.entry-DC6RnzZM.js +180 -0
  142. package/dist/cjs/kol-popover-button.entry-DCuMKVV1.js +251 -0
  143. package/dist/cjs/kol-progress.entry-CrVB7Lby.js +146 -0
  144. package/dist/cjs/kol-quote.entry-BoyX7ERY.js +84 -0
  145. package/dist/cjs/kol-select.entry-6Q7DoxPg.js +281 -0
  146. package/dist/cjs/kol-single-select.entry-SVOaIf8O.js +569 -0
  147. package/dist/cjs/kol-skip-nav.entry-D47uNPxq.js +198 -0
  148. package/dist/cjs/kol-spin.entry-UQi3gbnc.js +63 -0
  149. package/dist/cjs/kol-split-button.entry-iqGx05hp.js +277 -0
  150. package/dist/cjs/kol-table-stateful.entry-DqyiQJuV.js +685 -0
  151. package/dist/cjs/kol-table-stateless.entry-HO5w-yoL.js +189 -0
  152. package/dist/cjs/kol-tabs.entry-BLiZCkhW.js +466 -0
  153. package/dist/cjs/kol-textarea.entry--x3xgZUB.js +475 -0
  154. package/dist/cjs/kol-toast-container.entry-BLqOuOV3.js +117 -0
  155. package/dist/cjs/kol-toolbar.entry-DRKVAZ8i.js +299 -0
  156. package/dist/cjs/kol-tree-item.entry-By_K31wa.js +193 -0
  157. package/dist/cjs/kol-tree.entry-D8g1oLrh.js +279 -0
  158. package/dist/cjs/kol-version.entry-BPai8La9.js +66 -0
  159. package/dist/cjs/label-G82W4YoW-5k7AGiMy.js +16 -0
  160. package/dist/cjs/label-hints-DiRb_zIZ-D9E4Dp1C.js +23 -0
  161. package/dist/cjs/label-lang-segment-BSVexfSR-BtHMK8oV.js +15 -0
  162. package/dist/cjs/label-with-expert-slot-C1i0atAL-C5_JcNb3.js +16 -0
  163. package/dist/cjs/level-CWkPM-CS-CTFYyWv8.js +13 -0
  164. package/dist/cjs/link-target-B2OC2sZU-cBvae1pl.js +12 -0
  165. package/dist/cjs/links-CiNHSAYH-DQqGMQIz.js +16 -0
  166. package/dist/cjs/loader.cjs.js +13 -0
  167. package/dist/cjs/multiple-CuU2AuEM-SBTxcwlv.js +12 -0
  168. package/dist/cjs/number-value-adUq1zr1-CZd2xpDg.js +54 -0
  169. package/dist/cjs/open-DR8Z7RtS-DIQgjIv3.js +12 -0
  170. package/dist/cjs/open-items-cache-CS2mDRNB-DZu6FfYQ.js +25 -0
  171. package/dist/cjs/options-BDTJtk6H-Bb6AhJrA.js +31 -0
  172. package/dist/cjs/options-BPwcDIDO-DYAwq-lq.js +26 -0
  173. package/dist/cjs/orientation-BUPO9LJU-B7qzv8lO.js +21 -0
  174. package/dist/cjs/placeholder-BTFnryTd-BeG1x8J1.js +12 -0
  175. package/dist/cjs/props-from-config-DqFgiUwD-pOE_0hRW.js +2503 -0
  176. package/dist/cjs/read-only-DRmmHb2G-CnIJVzJD.js +12 -0
  177. package/dist/cjs/required-D4CdAA4s-3cwNsOi9.js +12 -0
  178. package/dist/cjs/resolve-color-aQz2CZ-X.js +78 -0
  179. package/dist/cjs/resolve-props-BAambGug-orZkBfeI.js +61 -0
  180. package/dist/cjs/resolve-props-Dpl38Wpe-358sX0ki.js +58 -0
  181. package/dist/cjs/rows-DRKSoawJ-ndIZla-m.js +12 -0
  182. package/dist/cjs/scroll-lock-C66lpb8L-CO9LVaJW.js +72 -0
  183. package/dist/cjs/shared-CMzQXmgd.js +26 -0
  184. package/dist/cjs/smart-button-BYEk3DzS-CEH1mbpj.js +19 -0
  185. package/dist/cjs/spell-check-DlQ_d2GL-TOFAGfnW.js +12 -0
  186. package/dist/cjs/src-Cikg9qhP-CLoB_Iqr.js +12 -0
  187. package/dist/cjs/step-C7WPZrUp-Bwzrsjv5.js +12 -0
  188. package/dist/cjs/suggestions-CotfxJG1-JyiUU_C5.js +25 -0
  189. package/dist/cjs/suggestions-qW9OdwO3-CupxEvYq.js +23 -0
  190. package/dist/cjs/test-component.entry-B_voa1f2.js +16 -0
  191. package/dist/cjs/theme-store-DroJsU6S-Cn_2BXeA.js +4476 -0
  192. package/dist/cjs/toggle-handler-BB_SIgS1-CGk_NFet.js +104 -0
  193. package/dist/cjs/tone-CbCEXb_l.js +6 -0
  194. package/dist/cjs/tooltip-open-tracking-CxHWKk8f-239HlKMW.js +26 -0
  195. package/dist/cjs/tslib.es6-QNbPBOk5-D6b02iQK.js +48 -0
  196. package/dist/cjs/unique-nav-labels-CQgKoOXd-CnxUuYe6.js +26 -0
  197. package/dist/cjs/unit-D2lG-lEM-CkwoMBFe.js +15 -0
  198. package/dist/cjs/validators-yh10eyXe-CsHQTosD.js +19 -0
  199. package/dist/cjs/value-string-DwEIOG1f-k1qSqkV7.js +12 -0
  200. package/dist/cjs/viewport-inset-Do_HqTBo.js +26 -0
  201. package/dist/cjs/width-xawzWTVW-AKH4gj28.js +32 -0
  202. package/dist/collection/assets/icon-fonts/codicons/codicon.css +805 -0
  203. package/dist/collection/assets/icon-fonts/codicons/codicon.csv +631 -0
  204. package/dist/collection/assets/icon-fonts/codicons/codicon.html +18216 -0
  205. package/dist/collection/assets/icon-fonts/codicons/codicon.svg +1 -0
  206. package/dist/collection/assets/icon-fonts/codicons/codicon.ttf +0 -0
  207. package/dist/collection/assets/icon-fonts/codicons/codiconsLibrary.ts +758 -0
  208. package/dist/collection/assets/icon-fonts/codicons/metadata.json +7235 -0
  209. package/dist/collection/assets/icon-fonts/fontawesome-free/css/all.css +7913 -0
  210. package/dist/collection/assets/icon-fonts/fontawesome-free/css/all.min.css +9 -0
  211. package/dist/collection/assets/icon-fonts/fontawesome-free/css/brands.css +1609 -0
  212. package/dist/collection/assets/icon-fonts/fontawesome-free/css/brands.min.css +6 -0
  213. package/dist/collection/assets/icon-fonts/fontawesome-free/css/fontawesome.css +6243 -0
  214. package/dist/collection/assets/icon-fonts/fontawesome-free/css/fontawesome.min.css +9 -0
  215. package/dist/collection/assets/icon-fonts/fontawesome-free/css/regular.css +19 -0
  216. package/dist/collection/assets/icon-fonts/fontawesome-free/css/regular.min.css +6 -0
  217. package/dist/collection/assets/icon-fonts/fontawesome-free/css/solid.css +19 -0
  218. package/dist/collection/assets/icon-fonts/fontawesome-free/css/solid.min.css +6 -0
  219. package/dist/collection/assets/icon-fonts/fontawesome-free/css/svg-with-js.css +461 -0
  220. package/dist/collection/assets/icon-fonts/fontawesome-free/css/svg-with-js.min.css +6 -0
  221. package/dist/collection/assets/icon-fonts/fontawesome-free/css/v4-font-face.css +26 -0
  222. package/dist/collection/assets/icon-fonts/fontawesome-free/css/v4-font-face.min.css +6 -0
  223. package/dist/collection/assets/icon-fonts/fontawesome-free/css/v4-shims.css +2194 -0
  224. package/dist/collection/assets/icon-fonts/fontawesome-free/css/v4-shims.min.css +6 -0
  225. package/dist/collection/assets/icon-fonts/fontawesome-free/css/v5-font-face.css +22 -0
  226. package/dist/collection/assets/icon-fonts/fontawesome-free/css/v5-font-face.min.css +6 -0
  227. package/dist/collection/assets/icon-fonts/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  228. package/dist/collection/assets/icon-fonts/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  229. package/dist/collection/assets/icon-fonts/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  230. package/dist/collection/assets/icon-fonts/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  231. package/dist/collection/assets/icon-fonts/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  232. package/dist/collection/assets/icon-fonts/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  233. package/dist/collection/assets/icon-fonts/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  234. package/dist/collection/assets/icon-fonts/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  235. package/dist/collection/assets/icon-fonts/icon-fonts.css +4 -0
  236. package/dist/collection/assets/icon-fonts/kolicons/kolicons.eot +0 -0
  237. package/dist/collection/assets/icon-fonts/kolicons/kolicons.json +31 -0
  238. package/dist/collection/assets/icon-fonts/kolicons/kolicons.svg +99 -0
  239. package/dist/collection/assets/icon-fonts/kolicons/kolicons.ttf +0 -0
  240. package/dist/collection/assets/icon-fonts/kolicons/kolicons.woff +0 -0
  241. package/dist/collection/assets/icon-fonts/kolicons/kolicons.woff2 +0 -0
  242. package/dist/collection/assets/icon-fonts/kolicons/style.css +51 -0
  243. package/dist/collection/assets/icon-fonts/manifest.json +14 -0
  244. package/dist/collection/collection-manifest.json +60 -0
  245. package/dist/collection/components/app-shell/app-shell.css +203 -0
  246. package/dist/collection/components/app-shell/app-shell.js +298 -0
  247. package/dist/collection/components/avatar-group/avatar-group.css +42 -0
  248. package/dist/collection/components/avatar-group/avatar-group.js +161 -0
  249. package/dist/collection/components/back-to-top/back-to-top.css +38 -0
  250. package/dist/collection/components/back-to-top/back-to-top.js +126 -0
  251. package/dist/collection/components/bar-chart/bar-chart.css +108 -0
  252. package/dist/collection/components/bar-chart/bar-chart.js +204 -0
  253. package/dist/collection/components/bottom-nav/bottom-nav.css +95 -0
  254. package/dist/collection/components/bottom-nav/bottom-nav.js +142 -0
  255. package/dist/collection/components/calendar/calendar.css +140 -0
  256. package/dist/collection/components/calendar/calendar.js +320 -0
  257. package/dist/collection/components/carousel/carousel.css +110 -0
  258. package/dist/collection/components/carousel/carousel.js +211 -0
  259. package/dist/collection/components/chip/chip.css +4 -0
  260. package/dist/collection/components/chip/chip.js +240 -0
  261. package/dist/collection/components/code-block/code-block.css +183 -0
  262. package/dist/collection/components/code-block/code-block.js +237 -0
  263. package/dist/collection/components/consent-banner/consent-banner.css +86 -0
  264. package/dist/collection/components/consent-banner/consent-banner.js +224 -0
  265. package/dist/collection/components/divider/divider.css +72 -0
  266. package/dist/collection/components/divider/divider.js +123 -0
  267. package/dist/collection/components/empty-state/empty-state.css +51 -0
  268. package/dist/collection/components/empty-state/empty-state.js +113 -0
  269. package/dist/collection/components/fab/fab.css +85 -0
  270. package/dist/collection/components/fab/fab.js +219 -0
  271. package/dist/collection/components/feedback/feedback.css +50 -0
  272. package/dist/collection/components/feedback/feedback.js +116 -0
  273. package/dist/collection/components/file-upload/file-upload.css +178 -0
  274. package/dist/collection/components/file-upload/file-upload.js +331 -0
  275. package/dist/collection/components/footer/footer.css +78 -0
  276. package/dist/collection/components/footer/footer.js +121 -0
  277. package/dist/collection/components/grid/grid.css +10 -0
  278. package/dist/collection/components/grid/grid.js +79 -0
  279. package/dist/collection/components/image-list/image-list.css +171 -0
  280. package/dist/collection/components/image-list/image-list.js +204 -0
  281. package/dist/collection/components/infinite-scroll/infinite-scroll.css +29 -0
  282. package/dist/collection/components/infinite-scroll/infinite-scroll.js +188 -0
  283. package/dist/collection/components/kbd/kbd.css +32 -0
  284. package/dist/collection/components/kbd/kbd.js +54 -0
  285. package/dist/collection/components/list/list.css +169 -0
  286. package/dist/collection/components/list/list.js +255 -0
  287. package/dist/collection/components/logo/logo.css +48 -0
  288. package/dist/collection/components/logo/logo.js +102 -0
  289. package/dist/collection/components/menu/menu.css +101 -0
  290. package/dist/collection/components/menu/menu.js +331 -0
  291. package/dist/collection/components/otp-input/otp-input.css +68 -0
  292. package/dist/collection/components/otp-input/otp-input.js +295 -0
  293. package/dist/collection/components/page-header/page-header.css +62 -0
  294. package/dist/collection/components/page-header/page-header.js +93 -0
  295. package/dist/collection/components/panel/panel.css +79 -0
  296. package/dist/collection/components/panel/panel.js +116 -0
  297. package/dist/collection/components/popconfirm/popconfirm.css +49 -0
  298. package/dist/collection/components/popconfirm/popconfirm.js +281 -0
  299. package/dist/collection/components/range-slider/range-slider.css +129 -0
  300. package/dist/collection/components/range-slider/range-slider.js +288 -0
  301. package/dist/collection/components/rating/rating.css +72 -0
  302. package/dist/collection/components/rating/rating.js +189 -0
  303. package/dist/collection/components/result/result.css +127 -0
  304. package/dist/collection/components/result/result.js +187 -0
  305. package/dist/collection/components/segmented/segmented.css +83 -0
  306. package/dist/collection/components/segmented/segmented.js +160 -0
  307. package/dist/collection/components/selection-bar/selection-bar.css +52 -0
  308. package/dist/collection/components/selection-bar/selection-bar.js +106 -0
  309. package/dist/collection/components/skeleton/skeleton.css +58 -0
  310. package/dist/collection/components/skeleton/skeleton.js +138 -0
  311. package/dist/collection/components/sparkline/sparkline.css +63 -0
  312. package/dist/collection/components/sparkline/sparkline.js +208 -0
  313. package/dist/collection/components/splitter/splitter.css +89 -0
  314. package/dist/collection/components/splitter/splitter.js +240 -0
  315. package/dist/collection/components/stack/stack.css +10 -0
  316. package/dist/collection/components/stack/stack.js +150 -0
  317. package/dist/collection/components/stat-card/stat-card.css +143 -0
  318. package/dist/collection/components/stat-card/stat-card.js +232 -0
  319. package/dist/collection/components/status/status.css +5 -0
  320. package/dist/collection/components/status/status.js +116 -0
  321. package/dist/collection/components/stepper/stepper.css +137 -0
  322. package/dist/collection/components/stepper/stepper.js +170 -0
  323. package/dist/collection/components/summary-list/summary-list.css +88 -0
  324. package/dist/collection/components/summary-list/summary-list.js +119 -0
  325. package/dist/collection/components/tag-input/tag-input.css +34 -0
  326. package/dist/collection/components/tag-input/tag-input.js +304 -0
  327. package/dist/collection/components/task-list/task-list.css +86 -0
  328. package/dist/collection/components/task-list/task-list.js +125 -0
  329. package/dist/collection/components/timeline/timeline.css +95 -0
  330. package/dist/collection/components/timeline/timeline.js +91 -0
  331. package/dist/collection/components/toc/toc.css +66 -0
  332. package/dist/collection/components/toc/toc.js +183 -0
  333. package/dist/collection/components/tour/tour.css +119 -0
  334. package/dist/collection/components/tour/tour.js +249 -0
  335. package/dist/collection/components/transfer-list/transfer-list.css +150 -0
  336. package/dist/collection/components/transfer-list/transfer-list.js +259 -0
  337. package/dist/collection/components/virtual-list/virtual-list.css +99 -0
  338. package/dist/collection/components/virtual-list/virtual-list.js +239 -0
  339. package/dist/collection/fink.css +13 -0
  340. package/dist/collection/fonts.css +6 -0
  341. package/dist/collection/global/script.js +21 -0
  342. package/dist/collection/i18n/index.js +53 -0
  343. package/dist/collection/i18n/locales.js +245 -0
  344. package/dist/collection/index.js +3 -0
  345. package/dist/collection/tokens.css +1307 -0
  346. package/dist/collection/utils/highlight.js +80 -0
  347. package/dist/collection/utils/resolve-color.js +72 -0
  348. package/dist/collection/utils/shared.js +21 -0
  349. package/dist/collection/utils/tone.js +2 -0
  350. package/dist/collection/utils/viewport-inset.js +22 -0
  351. package/dist/components/fink-app-shell.d.ts +11 -0
  352. package/dist/components/fink-app-shell.js +1 -0
  353. package/dist/components/fink-avatar-group.d.ts +11 -0
  354. package/dist/components/fink-avatar-group.js +1 -0
  355. package/dist/components/fink-back-to-top.d.ts +11 -0
  356. package/dist/components/fink-back-to-top.js +1 -0
  357. package/dist/components/fink-bar-chart.d.ts +11 -0
  358. package/dist/components/fink-bar-chart.js +1 -0
  359. package/dist/components/fink-bottom-nav.d.ts +11 -0
  360. package/dist/components/fink-bottom-nav.js +1 -0
  361. package/dist/components/fink-calendar.d.ts +11 -0
  362. package/dist/components/fink-calendar.js +1 -0
  363. package/dist/components/fink-carousel.d.ts +11 -0
  364. package/dist/components/fink-carousel.js +1 -0
  365. package/dist/components/fink-chip.d.ts +11 -0
  366. package/dist/components/fink-chip.js +1 -0
  367. package/dist/components/fink-code-block.d.ts +11 -0
  368. package/dist/components/fink-code-block.js +1 -0
  369. package/dist/components/fink-consent-banner.d.ts +11 -0
  370. package/dist/components/fink-consent-banner.js +1 -0
  371. package/dist/components/fink-divider.d.ts +11 -0
  372. package/dist/components/fink-divider.js +1 -0
  373. package/dist/components/fink-empty-state.d.ts +11 -0
  374. package/dist/components/fink-empty-state.js +1 -0
  375. package/dist/components/fink-fab.d.ts +11 -0
  376. package/dist/components/fink-fab.js +1 -0
  377. package/dist/components/fink-feedback.d.ts +11 -0
  378. package/dist/components/fink-feedback.js +1 -0
  379. package/dist/components/fink-file-upload.d.ts +11 -0
  380. package/dist/components/fink-file-upload.js +1 -0
  381. package/dist/components/fink-footer.d.ts +11 -0
  382. package/dist/components/fink-footer.js +1 -0
  383. package/dist/components/fink-grid.d.ts +11 -0
  384. package/dist/components/fink-grid.js +1 -0
  385. package/dist/components/fink-image-list.d.ts +11 -0
  386. package/dist/components/fink-image-list.js +1 -0
  387. package/dist/components/fink-infinite-scroll.d.ts +11 -0
  388. package/dist/components/fink-infinite-scroll.js +1 -0
  389. package/dist/components/fink-kbd.d.ts +11 -0
  390. package/dist/components/fink-kbd.js +1 -0
  391. package/dist/components/fink-list.d.ts +11 -0
  392. package/dist/components/fink-list.js +1 -0
  393. package/dist/components/fink-logo.d.ts +11 -0
  394. package/dist/components/fink-logo.js +1 -0
  395. package/dist/components/fink-menu.d.ts +11 -0
  396. package/dist/components/fink-menu.js +1 -0
  397. package/dist/components/fink-otp-input.d.ts +11 -0
  398. package/dist/components/fink-otp-input.js +1 -0
  399. package/dist/components/fink-page-header.d.ts +11 -0
  400. package/dist/components/fink-page-header.js +1 -0
  401. package/dist/components/fink-panel.d.ts +11 -0
  402. package/dist/components/fink-panel.js +1 -0
  403. package/dist/components/fink-popconfirm.d.ts +11 -0
  404. package/dist/components/fink-popconfirm.js +1 -0
  405. package/dist/components/fink-range-slider.d.ts +11 -0
  406. package/dist/components/fink-range-slider.js +1 -0
  407. package/dist/components/fink-rating.d.ts +11 -0
  408. package/dist/components/fink-rating.js +1 -0
  409. package/dist/components/fink-result.d.ts +11 -0
  410. package/dist/components/fink-result.js +1 -0
  411. package/dist/components/fink-segmented.d.ts +11 -0
  412. package/dist/components/fink-segmented.js +1 -0
  413. package/dist/components/fink-selection-bar.d.ts +11 -0
  414. package/dist/components/fink-selection-bar.js +1 -0
  415. package/dist/components/fink-skeleton.d.ts +11 -0
  416. package/dist/components/fink-skeleton.js +1 -0
  417. package/dist/components/fink-sparkline.d.ts +11 -0
  418. package/dist/components/fink-sparkline.js +1 -0
  419. package/dist/components/fink-splitter.d.ts +11 -0
  420. package/dist/components/fink-splitter.js +1 -0
  421. package/dist/components/fink-stack.d.ts +11 -0
  422. package/dist/components/fink-stack.js +1 -0
  423. package/dist/components/fink-stat-card.d.ts +11 -0
  424. package/dist/components/fink-stat-card.js +1 -0
  425. package/dist/components/fink-status.d.ts +11 -0
  426. package/dist/components/fink-status.js +1 -0
  427. package/dist/components/fink-stepper.d.ts +11 -0
  428. package/dist/components/fink-stepper.js +1 -0
  429. package/dist/components/fink-summary-list.d.ts +11 -0
  430. package/dist/components/fink-summary-list.js +1 -0
  431. package/dist/components/fink-tag-input.d.ts +11 -0
  432. package/dist/components/fink-tag-input.js +1 -0
  433. package/dist/components/fink-task-list.d.ts +11 -0
  434. package/dist/components/fink-task-list.js +1 -0
  435. package/dist/components/fink-timeline.d.ts +11 -0
  436. package/dist/components/fink-timeline.js +1 -0
  437. package/dist/components/fink-toc.d.ts +11 -0
  438. package/dist/components/fink-toc.js +1 -0
  439. package/dist/components/fink-tour.d.ts +11 -0
  440. package/dist/components/fink-tour.js +1 -0
  441. package/dist/components/fink-transfer-list.d.ts +11 -0
  442. package/dist/components/fink-transfer-list.js +1 -0
  443. package/dist/components/fink-virtual-list.d.ts +11 -0
  444. package/dist/components/fink-virtual-list.js +1 -0
  445. package/dist/components/index.d.ts +35 -0
  446. package/dist/components/index.js +1 -0
  447. package/dist/components/p--dluw9sU.js +4 -0
  448. package/dist/components/p-0q_cDiSu.js +1 -0
  449. package/dist/components/p-2G6i00Y4.js +4 -0
  450. package/dist/components/p-4VqUGnzw.js +4 -0
  451. package/dist/components/p-7b6zbUGV.js +4 -0
  452. package/dist/components/p-7pkFNJTS.js +4 -0
  453. package/dist/components/p-80r0hOg-.js +4 -0
  454. package/dist/components/p-9Omm5njj.js +4 -0
  455. package/dist/components/p-B-BbokvN.js +1 -0
  456. package/dist/components/p-B0rajiBV.js +4 -0
  457. package/dist/components/p-B1f-WAgD.js +4 -0
  458. package/dist/components/p-B4W2Axj0.js +4 -0
  459. package/dist/components/p-B55_WIt8.js +4 -0
  460. package/dist/components/p-B9vMUbQn.js +4 -0
  461. package/dist/components/p-BA22-sOe.js +4 -0
  462. package/dist/components/p-BCaU1mmT.js +4 -0
  463. package/dist/components/p-BDLnNXyN.js +4 -0
  464. package/dist/components/p-BMbOqdum.js +4 -0
  465. package/dist/components/p-BMikH-F1.js +4 -0
  466. package/dist/components/p-BNSBWfez.js +4 -0
  467. package/dist/components/p-BNeRxcyt.js +4 -0
  468. package/dist/components/p-BNv-BhuC.js +4 -0
  469. package/dist/components/p-BNxwDdo8.js +1 -0
  470. package/dist/components/p-BQcXMEDu.js +4 -0
  471. package/dist/components/p-BRzdX6D6.js +4 -0
  472. package/dist/components/p-BTYNOWWo.js +4 -0
  473. package/dist/components/p-BUaDrw6r.js +4 -0
  474. package/dist/components/p-BVEpQXTA.js +4 -0
  475. package/dist/components/p-BVQi1Qdz.js +4 -0
  476. package/dist/components/p-BVou7RHK.js +4 -0
  477. package/dist/components/p-BW20VO0z.js +4 -0
  478. package/dist/components/p-BXdJ0qF-.js +4 -0
  479. package/dist/components/p-BYjXAF2t.js +4 -0
  480. package/dist/components/p-BZeLdsTL.js +4 -0
  481. package/dist/components/p-BZrfikC0.js +1 -0
  482. package/dist/components/p-BbBslcM3.js +4 -0
  483. package/dist/components/p-BfVBCtH5.js +4 -0
  484. package/dist/components/p-BgDm6xES.js +4 -0
  485. package/dist/components/p-BgO3h-Rh.js +4 -0
  486. package/dist/components/p-Bjvj9BNg.js +4 -0
  487. package/dist/components/p-Bl_Mk897.js +4 -0
  488. package/dist/components/p-BmO5OHQt.js +4 -0
  489. package/dist/components/p-BmwSurIJ.js +4 -0
  490. package/dist/components/p-BpB6kJJx.js +4 -0
  491. package/dist/components/p-Bs6t0b4L.js +4 -0
  492. package/dist/components/p-BuQD3Teg.js +4 -0
  493. package/dist/components/p-BxOobhWU.js +4 -0
  494. package/dist/components/p-ByC9P8Tx.js +4 -0
  495. package/dist/components/p-ByLwbmoM.js +4 -0
  496. package/dist/components/p-C0XK-kqu.js +4 -0
  497. package/dist/components/p-C1p6UJUS.js +4 -0
  498. package/dist/components/p-C2-j2F3r.js +4 -0
  499. package/dist/components/p-C7SF5fdP.js +4 -0
  500. package/dist/components/p-C9aIBH9i.js +4 -0
  501. package/dist/components/p-C9u92OPr.js +4 -0
  502. package/dist/components/p-CAQo1RSU.js +4 -0
  503. package/dist/components/p-CBNHkhtz.js +4 -0
  504. package/dist/components/p-CFHGMm_k.js +4 -0
  505. package/dist/components/p-CFmh0GHK.js +4 -0
  506. package/dist/components/p-CGHkRu3d.js +4 -0
  507. package/dist/components/p-CIot44VN.js +4 -0
  508. package/dist/components/p-CJG_oJHT.js +4 -0
  509. package/dist/components/p-CP3Gtcwe.js +4 -0
  510. package/dist/components/p-CR_zYDd_.js +4 -0
  511. package/dist/components/p-CRjJqs7K.js +4 -0
  512. package/dist/components/p-CRwANbOQ.js +4 -0
  513. package/dist/components/p-CTQTxE7y.js +4 -0
  514. package/dist/components/p-CTRwSsSD.js +1 -0
  515. package/dist/components/p-CV_AyX-M.js +4 -0
  516. package/dist/components/p-CWjvhahm.js +4 -0
  517. package/dist/components/p-CWnmBc7G.js +4 -0
  518. package/dist/components/p-CYc4TCeV.js +4 -0
  519. package/dist/components/p-C_LpiLUG.js +4 -0
  520. package/dist/components/p-CcUOxrYJ.js +4 -0
  521. package/dist/components/p-CdR8DYRy.js +4 -0
  522. package/dist/components/p-ClV22d_I.js +4 -0
  523. package/dist/components/p-CldsZVVl.js +4 -0
  524. package/dist/components/p-CmiZqDhJ.js +4 -0
  525. package/dist/components/p-CmsrPPy-.js +4 -0
  526. package/dist/components/p-CnY1T61l.js +4 -0
  527. package/dist/components/p-CnhYWngh.js +4 -0
  528. package/dist/components/p-CsTpUjWf.js +4 -0
  529. package/dist/components/p-Ctrut-7c.js +4 -0
  530. package/dist/components/p-CutoC_Ty.js +4 -0
  531. package/dist/components/p-Cwa4hoGi.js +4 -0
  532. package/dist/components/p-CxpexqrH.js +4 -0
  533. package/dist/components/p-CzGozn0r.js +4 -0
  534. package/dist/components/p-D1t7yljW.js +4 -0
  535. package/dist/components/p-D7VQEFrw.js +4 -0
  536. package/dist/components/p-D9LQt7Zv.js +4 -0
  537. package/dist/components/p-DFunHW2N.js +4 -0
  538. package/dist/components/p-DGbq7kuL.js +4 -0
  539. package/dist/components/p-DGo_U0IH.js +4 -0
  540. package/dist/components/p-DIpAfGba.js +4 -0
  541. package/dist/components/p-DIuaKJuf.js +4 -0
  542. package/dist/components/p-DRJ_rivg.js +4 -0
  543. package/dist/components/p-DRbO95Y7.js +4 -0
  544. package/dist/components/p-DScJEdfZ.js +4 -0
  545. package/dist/components/p-DTrXC4SP.js +4 -0
  546. package/dist/components/p-DUNrULO-.js +4 -0
  547. package/dist/components/p-DVLI26JR.js +4 -0
  548. package/dist/components/p-DWjjqpdX.js +4 -0
  549. package/dist/components/p-DXuKrKOd.js +4 -0
  550. package/dist/components/p-DY84WS8v.js +1 -0
  551. package/dist/components/p-DYRYJXoR.js +4 -0
  552. package/dist/components/p-DYY8PIzp.js +4 -0
  553. package/dist/components/p-DZ_j7Hga.js +4 -0
  554. package/dist/components/p-DZcGWbYP.js +4 -0
  555. package/dist/components/p-D_7rD22W.js +4 -0
  556. package/dist/components/p-Dd10uxIT.js +4 -0
  557. package/dist/components/p-DddXRNAz.js +4 -0
  558. package/dist/components/p-DfxozzaL.js +4 -0
  559. package/dist/components/p-DgX1yjbX.js +4 -0
  560. package/dist/components/p-DjV0X18L.js +4 -0
  561. package/dist/components/p-DkAAPqJu.js +4 -0
  562. package/dist/components/p-Dkzm8mv-.js +4 -0
  563. package/dist/components/p-Dlbq4zit.js +4 -0
  564. package/dist/components/p-DlflLXmz.js +4 -0
  565. package/dist/components/p-Dn5a17Zr.js +4 -0
  566. package/dist/components/p-DofVp12C.js +4 -0
  567. package/dist/components/p-DoibTX8S.js +4 -0
  568. package/dist/components/p-DpxcjrYR.js +4 -0
  569. package/dist/components/p-DqC368cw.js +4 -0
  570. package/dist/components/p-DrNKkmSg.js +4 -0
  571. package/dist/components/p-Ds-2xh8j.js +1 -0
  572. package/dist/components/p-DscCDdM1.js +4 -0
  573. package/dist/components/p-DuXNDKoO.js +4 -0
  574. package/dist/components/p-DuiXatu0.js +4 -0
  575. package/dist/components/p-DvgUk4DC.js +4 -0
  576. package/dist/components/p-DwG3Skun.js +4 -0
  577. package/dist/components/p-KQw2tIyE.js +1 -0
  578. package/dist/components/p-L-QhVukf.js +4 -0
  579. package/dist/components/p-LEJbw36A.js +4 -0
  580. package/dist/components/p-Mm-C_T3m.js +4 -0
  581. package/dist/components/p-MzgCLtfB.js +4 -0
  582. package/dist/components/p-QNbPBOk5.js +4 -0
  583. package/dist/components/p-UchDDu0F.js +4 -0
  584. package/dist/components/p-YtlGjZiL.js +4 -0
  585. package/dist/components/p-Znyube6h.js +4 -0
  586. package/dist/components/p-cQxl99-m.js +4 -0
  587. package/dist/components/p-dzR6JR_Y.js +4 -0
  588. package/dist/components/p-f7FdbOPh.js +4 -0
  589. package/dist/components/p-gz-7919_.js +4 -0
  590. package/dist/components/p-kMjhJdnT.js +4 -0
  591. package/dist/components/p-kW0X7mcl.js +4 -0
  592. package/dist/components/p-llaYDFkW.js +4 -0
  593. package/dist/components/p-qd8DUvyj.js +10 -0
  594. package/dist/components/p-sXf51aB5.js +4 -0
  595. package/dist/components/p-vPCar92P.js +4 -0
  596. package/dist/components/p-vwEFyiVe.js +103 -0
  597. package/dist/components/p-xxBwAPx6.js +4 -0
  598. package/dist/components/p-zZKM-qT7.js +4 -0
  599. package/dist/docs.d.ts +480 -0
  600. package/dist/docs.json +8896 -0
  601. package/dist/esm/Heading-foerLIu9-BVbFegTw.js +37 -0
  602. package/dist/esm/access-and-short-key-BTEwnScd-CfAYtZGM.js +13 -0
  603. package/dist/esm/api-Ba9FNPRn-rdj2hyjm.js +425 -0
  604. package/dist/esm/app-globals-BnjNNhX0.js +26 -0
  605. package/dist/esm/aria-current-service-4eUMzpeO-CHrorN4F.js +27 -0
  606. package/dist/esm/aria-labelledby-C4wUnR-v-BgQ7JKmg.js +29 -0
  607. package/dist/esm/base-AKIr0rpk-CIl8tLMt.js +140 -0
  608. package/dist/esm/base-C7nTPc7u-DNu3y22x.js +1088 -0
  609. package/dist/esm/base-CpUNedp9-Bbxdff8P.js +163 -0
  610. package/dist/esm/base-D7qItqyf-coE87RLS.js +212 -0
  611. package/dist/esm/base-web-component-B3wi5eWH-BZD2AOtl.js +65 -0
  612. package/dist/esm/base-web-component-BpL_hXcg-B9B0wAg_.js +194 -0
  613. package/dist/esm/base-web-component-DorOeD_U-BEnunxBi.js +231 -0
  614. package/dist/esm/behavior-D9BHiFnH-Ci8duFrL.js +222 -0
  615. package/dist/esm/behavior-DDo87iUM-BWYM0j39.js +1903 -0
  616. package/dist/esm/behavior-XAV9GSxI-BRejClDx.js +164 -0
  617. package/dist/esm/bem-registry-CrZZQahR-C4GlllGk.js +616 -0
  618. package/dist/esm/bootstrap-Cz7Iq2I2-28vHQDC1.js +51 -0
  619. package/dist/esm/color-CnVBqZd5-D3QulmT5.js +58 -0
  620. package/dist/esm/component-0npqUhj2-BlizGX2j.js +123 -0
  621. package/dist/esm/component-BCKsZOoB-Cv8r2Vr8.js +21 -0
  622. package/dist/esm/component-BZjDp_Lf-olnyMgml.js +18 -0
  623. package/dist/esm/component-CjdTbGlP-BvyA2axC.js +173 -0
  624. package/dist/esm/component-Cn693XeT-CbzDb1Ts.js +48 -0
  625. package/dist/esm/component-Cvd5HXbX-CgWiDYTV.js +64 -0
  626. package/dist/esm/component-CvdxCpjC-Cc4AQcN4.js +44 -0
  627. package/dist/esm/component-DFhRTaqb-BuoAY7Hj.js +123 -0
  628. package/dist/esm/component-DP_p5few-C6hyGiFP.js +92 -0
  629. package/dist/esm/component-DlROeCCe-BFGwDGp8.js +85 -0
  630. package/dist/esm/component-names-DzmdvSkQ-BKy7HO6i.js +116 -0
  631. package/dist/esm/contrast-BHjNzQvB-Du_hfUqT.js +65 -0
  632. package/dist/esm/controller-DYkXzFqc-CsswmJRF.js +113 -0
  633. package/dist/esm/dev.utils-BgFDROtc-DvTVGlRQ.js +79 -0
  634. package/dist/esm/devtools-B6h2bVMJ-Dxl5yOJw.js +98 -0
  635. package/dist/esm/disabled-BZIZZ6wy-DS3OHEVQ.js +10 -0
  636. package/dist/esm/element-focus-C0L8NWU8-By17plAH.js +152 -0
  637. package/dist/esm/element-interaction-B3GEli6r-CDhfO5hL.js +93 -0
  638. package/dist/esm/events-DdfMb1U7-GmWu51Sq.js +52 -0
  639. package/dist/esm/field-control-QF0yTcyb-Bl8p9nHd.js +28 -0
  640. package/dist/esm/fink-app-shell.entry.js +131 -0
  641. package/dist/esm/fink-avatar-group.entry.js +60 -0
  642. package/dist/esm/fink-back-to-top.entry.js +50 -0
  643. package/dist/esm/fink-bar-chart.entry.js +48 -0
  644. package/dist/esm/fink-bottom-nav.entry.js +48 -0
  645. package/dist/esm/fink-calendar.entry.js +148 -0
  646. package/dist/esm/fink-carousel.entry.js +101 -0
  647. package/dist/esm/fink-chip.entry.js +74 -0
  648. package/dist/esm/fink-code-block.entry.js +169 -0
  649. package/dist/esm/fink-consent-banner.entry.js +86 -0
  650. package/dist/esm/fink-divider.entry.js +31 -0
  651. package/dist/esm/fink-empty-state.entry.js +24 -0
  652. package/dist/esm/fink-fab.entry.js +57 -0
  653. package/dist/esm/fink-feedback.entry.js +39 -0
  654. package/dist/esm/fink-file-upload.entry.js +112 -0
  655. package/dist/esm/fink-footer.entry.js +35 -0
  656. package/dist/esm/fink-grid.entry.js +21 -0
  657. package/dist/esm/fink-image-list.entry.js +63 -0
  658. package/dist/esm/fink-infinite-scroll.entry.js +71 -0
  659. package/dist/esm/fink-kbd.entry.js +25 -0
  660. package/dist/esm/fink-list.entry.js +75 -0
  661. package/dist/esm/fink-logo.entry.js +27 -0
  662. package/dist/esm/fink-menu.entry.js +139 -0
  663. package/dist/esm/fink-otp-input.entry.js +109 -0
  664. package/dist/esm/fink-page-header_4.entry.js +171 -0
  665. package/dist/esm/fink-panel.entry.js +24 -0
  666. package/dist/esm/fink-popconfirm.entry.js +59 -0
  667. package/dist/esm/fink-range-slider.entry.js +78 -0
  668. package/dist/esm/fink-rating.entry.js +62 -0
  669. package/dist/esm/fink-result.entry.js +47 -0
  670. package/dist/esm/fink-segmented.entry.js +49 -0
  671. package/dist/esm/fink-selection-bar.entry.js +34 -0
  672. package/dist/esm/fink-skeleton.entry.js +31 -0
  673. package/dist/esm/fink-sparkline.entry.js +75 -0
  674. package/dist/esm/fink-splitter.entry.js +82 -0
  675. package/dist/esm/fink-stack.entry.js +33 -0
  676. package/dist/esm/fink-stat-card.entry.js +56 -0
  677. package/dist/esm/fink-summary-list.entry.js +27 -0
  678. package/dist/esm/fink-tag-input.entry.js +111 -0
  679. package/dist/esm/fink-timeline.entry.js +33 -0
  680. package/dist/esm/fink-toc.entry.js +81 -0
  681. package/dist/esm/fink-tour.entry.js +124 -0
  682. package/dist/esm/fink-transfer-list.entry.js +99 -0
  683. package/dist/esm/fink-virtual-list.entry.js +97 -0
  684. package/dist/esm/fink.js +21 -0
  685. package/dist/esm/group-8Me6YSO8-xgnqIxjp.js +155 -0
  686. package/dist/esm/has-closer-B-uYNNCw-DLeh5-ue.js +10 -0
  687. package/dist/esm/href-DKPJq0Rh-DM0Q6H5W.js +10 -0
  688. package/dist/esm/i18n-TlIXBsgS-Ckx7Yn0p.js +224 -0
  689. package/dist/esm/i18n-Uze_l4Ts--j4pwklR.js +17 -0
  690. package/dist/esm/id-CkUYl2hO-DuOZaeSd.js +10 -0
  691. package/dist/esm/index-BCmY273s.js +43 -0
  692. package/dist/esm/index-CA3z5eXZ.js +1977 -0
  693. package/dist/esm/index-CUP9kM-6.js +233 -0
  694. package/dist/esm/index-CwRQlPpM.js +4994 -0
  695. package/dist/esm/index-KQw2tIyE.js +2536 -0
  696. package/dist/esm/index.js +2 -0
  697. package/dist/esm/info-tuXhkPMr-D_FS6tGD.js +5557 -0
  698. package/dist/esm/input-DwlolkOG-B7TsHjhS.js +17 -0
  699. package/dist/esm/input-container-DC3x4oGg-CsTswiL3.js +98 -0
  700. package/dist/esm/item-DThxrTZc-C5HcXoFS.js +523 -0
  701. package/dist/esm/item-cArH2C6l-Dq9QqqKe.js +91 -0
  702. package/dist/esm/item-pool-D4qvvY-S-vyDW-Elr.js +44 -0
  703. package/dist/esm/item-uC3h4pj3-OLJaTUoW.js +176 -0
  704. package/dist/esm/item-zPmzbSvE-CI7oup4J.js +86 -0
  705. package/dist/esm/keyboard-DzlBdECG-BZsM4cfK.js +46 -0
  706. package/dist/esm/kol-abbr.entry-mVk7ZlyC.js +47 -0
  707. package/dist/esm/kol-accordion.entry-DiJRyJ35.js +128 -0
  708. package/dist/esm/kol-alert.entry-DEVR2sW5.js +188 -0
  709. package/dist/esm/kol-avatar.entry-B-KpDJxv.js +98 -0
  710. package/dist/esm/kol-badge.entry-XHoji_MM.js +174 -0
  711. package/dist/esm/kol-breadcrumb.entry-BR_dd_-G.js +218 -0
  712. package/dist/esm/kol-button-link.entry-Cf4v9Bxb.js +229 -0
  713. package/dist/esm/kol-button.entry-BtahHzTC.js +239 -0
  714. package/dist/esm/kol-card.entry-385EbCW3.js +157 -0
  715. package/dist/esm/kol-combobox.entry-BTHmL7_r.js +547 -0
  716. package/dist/esm/kol-details.entry-hL20Taht.js +128 -0
  717. package/dist/esm/kol-dialog.entry-Bxg34kkN.js +130 -0
  718. package/dist/esm/kol-drawer.entry-CxSnfPVC.js +274 -0
  719. package/dist/esm/kol-form.entry-DejrJpT0.js +187 -0
  720. package/dist/esm/kol-heading.entry-DIdqX7hP.js +81 -0
  721. package/dist/esm/kol-icon.entry-Bs6D521h.js +59 -0
  722. package/dist/esm/kol-image.entry-B7XU15PX.js +112 -0
  723. package/dist/esm/kol-input-checkbox.entry-voVh9wes.js +411 -0
  724. package/dist/esm/kol-input-color.entry-BA8yNU-5.js +317 -0
  725. package/dist/esm/kol-input-date.entry-CbBHYGfW.js +532 -0
  726. package/dist/esm/kol-input-email.entry-B3TVS_jQ.js +349 -0
  727. package/dist/esm/kol-input-file.entry-Bw50xMG6.js +382 -0
  728. package/dist/esm/kol-input-number.entry-DEnhDS8m.js +438 -0
  729. package/dist/esm/kol-input-password.entry-C8KPPLGg.js +373 -0
  730. package/dist/esm/kol-input-radio.entry-VcGn4G2d.js +394 -0
  731. package/dist/esm/kol-input-range.entry-XW11xl8_.js +374 -0
  732. package/dist/esm/kol-input-text.entry-I_XonNty.js +437 -0
  733. package/dist/esm/kol-kolibri.entry-BkRAh6MS.js +63 -0
  734. package/dist/esm/kol-link-button.entry-Bi6SP1YP.js +221 -0
  735. package/dist/esm/kol-link.entry-BZgj_5kk.js +208 -0
  736. package/dist/esm/kol-meter.entry-DFA2MeTA.js +207 -0
  737. package/dist/esm/kol-modal.entry-DzEUIfdu.js +121 -0
  738. package/dist/esm/kol-nav.entry-BNYXkxiA.js +268 -0
  739. package/dist/esm/kol-pagination.entry-D1MJ1VbC.js +178 -0
  740. package/dist/esm/kol-popover-button.entry-BNWakgAm.js +249 -0
  741. package/dist/esm/kol-progress.entry-XBmRzcu8.js +144 -0
  742. package/dist/esm/kol-quote.entry-D_9Zd9-q.js +82 -0
  743. package/dist/esm/kol-select.entry-g6Yc_R0D.js +279 -0
  744. package/dist/esm/kol-single-select.entry-CaF22dl9.js +567 -0
  745. package/dist/esm/kol-skip-nav.entry-wsk5_hGJ.js +196 -0
  746. package/dist/esm/kol-spin.entry-D6P1QxzY.js +61 -0
  747. package/dist/esm/kol-split-button.entry-CRnZLU_m.js +275 -0
  748. package/dist/esm/kol-table-stateful.entry-YM1jEIqy.js +683 -0
  749. package/dist/esm/kol-table-stateless.entry-DkBXAO9-.js +187 -0
  750. package/dist/esm/kol-tabs.entry-CzQ9mDZZ.js +464 -0
  751. package/dist/esm/kol-textarea.entry-CYYwMkYK.js +473 -0
  752. package/dist/esm/kol-toast-container.entry-DsYUE5mI.js +115 -0
  753. package/dist/esm/kol-toolbar.entry-CRFOe4dW.js +297 -0
  754. package/dist/esm/kol-tree-item.entry-DQ8DqsBe.js +191 -0
  755. package/dist/esm/kol-tree.entry-Bahtftrl.js +277 -0
  756. package/dist/esm/kol-version.entry-DeW48JZE.js +64 -0
  757. package/dist/esm/label-G82W4YoW-DEpNTzZO.js +14 -0
  758. package/dist/esm/label-hints-DiRb_zIZ-CJOam2km.js +21 -0
  759. package/dist/esm/label-lang-segment-BSVexfSR-JER-6d7V.js +13 -0
  760. package/dist/esm/label-with-expert-slot-C1i0atAL-BSAWLh3g.js +14 -0
  761. package/dist/esm/level-CWkPM-CS-BOlL7OEL.js +11 -0
  762. package/dist/esm/link-target-B2OC2sZU-BWrqXOoq.js +10 -0
  763. package/dist/esm/links-CiNHSAYH-CQXX-pAH.js +14 -0
  764. package/dist/esm/loader.js +11 -0
  765. package/dist/esm/multiple-CuU2AuEM-BqD17udD.js +10 -0
  766. package/dist/esm/number-value-adUq1zr1-oKN9eTfJ.js +46 -0
  767. package/dist/esm/open-DR8Z7RtS-C3KbEQp0.js +10 -0
  768. package/dist/esm/open-items-cache-CS2mDRNB-Xn5hW3B2.js +21 -0
  769. package/dist/esm/options-BDTJtk6H-D5ALZvIK.js +28 -0
  770. package/dist/esm/options-BPwcDIDO-m3RdW12k.js +24 -0
  771. package/dist/esm/orientation-BUPO9LJU-BiIRydWE.js +18 -0
  772. package/dist/esm/placeholder-BTFnryTd-BtHUd-ck.js +10 -0
  773. package/dist/esm/props-from-config-DqFgiUwD-BlPibITX.js +2468 -0
  774. package/dist/esm/read-only-DRmmHb2G-BTfvM1cR.js +10 -0
  775. package/dist/esm/required-D4CdAA4s-DyfM1WRr.js +10 -0
  776. package/dist/esm/resolve-color-BNxwDdo8.js +74 -0
  777. package/dist/esm/resolve-props-BAambGug-BHQnawTz.js +59 -0
  778. package/dist/esm/resolve-props-Dpl38Wpe-BuuvHExk.js +56 -0
  779. package/dist/esm/rows-DRKSoawJ-2fa63Cts.js +10 -0
  780. package/dist/esm/scroll-lock-C66lpb8L-CMx_ouSD.js +68 -0
  781. package/dist/esm/shared-0q_cDiSu.js +23 -0
  782. package/dist/esm/smart-button-BYEk3DzS-CvOWdBHD.js +17 -0
  783. package/dist/esm/spell-check-DlQ_d2GL-BAXGFxfw.js +10 -0
  784. package/dist/esm/src-Cikg9qhP-B2f1J8RL.js +10 -0
  785. package/dist/esm/step-C7WPZrUp-BalvGjbu.js +10 -0
  786. package/dist/esm/suggestions-CotfxJG1-DR28Ni66.js +23 -0
  787. package/dist/esm/suggestions-qW9OdwO3-90-3oW4g.js +20 -0
  788. package/dist/esm/test-component.entry-Cw5NrX4A.js +14 -0
  789. package/dist/esm/theme-store-DroJsU6S-CNdF9au3.js +4398 -0
  790. package/dist/esm/toggle-handler-BB_SIgS1-CRNI-BeB.js +97 -0
  791. package/dist/esm/tone-B-BbokvN.js +4 -0
  792. package/dist/esm/tooltip-open-tracking-CxHWKk8f-z31IQ8je.js +21 -0
  793. package/dist/esm/tslib.es6-QNbPBOk5-QNbPBOk5.js +45 -0
  794. package/dist/esm/unique-nav-labels-CQgKoOXd-CVFPYOx_.js +23 -0
  795. package/dist/esm/unit-D2lG-lEM-D7zYiPWU.js +12 -0
  796. package/dist/esm/validators-yh10eyXe-w-ZzOFvZ.js +14 -0
  797. package/dist/esm/value-string-DwEIOG1f-B_-iiGJO.js +10 -0
  798. package/dist/esm/viewport-inset-DY84WS8v.js +24 -0
  799. package/dist/esm/width-xawzWTVW-D6a2C3pn.js +29 -0
  800. package/dist/fink/assets/icon-fonts/codicons/codicon.css +805 -0
  801. package/dist/fink/assets/icon-fonts/codicons/codicon.csv +631 -0
  802. package/dist/fink/assets/icon-fonts/codicons/codicon.html +18216 -0
  803. package/dist/fink/assets/icon-fonts/codicons/codicon.svg +1 -0
  804. package/dist/fink/assets/icon-fonts/codicons/codicon.ttf +0 -0
  805. package/dist/fink/assets/icon-fonts/codicons/codiconsLibrary.ts +758 -0
  806. package/dist/fink/assets/icon-fonts/codicons/metadata.json +7235 -0
  807. package/dist/fink/assets/icon-fonts/fontawesome-free/css/all.css +7913 -0
  808. package/dist/fink/assets/icon-fonts/fontawesome-free/css/all.min.css +9 -0
  809. package/dist/fink/assets/icon-fonts/fontawesome-free/css/brands.css +1609 -0
  810. package/dist/fink/assets/icon-fonts/fontawesome-free/css/brands.min.css +6 -0
  811. package/dist/fink/assets/icon-fonts/fontawesome-free/css/fontawesome.css +6243 -0
  812. package/dist/fink/assets/icon-fonts/fontawesome-free/css/fontawesome.min.css +9 -0
  813. package/dist/fink/assets/icon-fonts/fontawesome-free/css/regular.css +19 -0
  814. package/dist/fink/assets/icon-fonts/fontawesome-free/css/regular.min.css +6 -0
  815. package/dist/fink/assets/icon-fonts/fontawesome-free/css/solid.css +19 -0
  816. package/dist/fink/assets/icon-fonts/fontawesome-free/css/solid.min.css +6 -0
  817. package/dist/fink/assets/icon-fonts/fontawesome-free/css/svg-with-js.css +461 -0
  818. package/dist/fink/assets/icon-fonts/fontawesome-free/css/svg-with-js.min.css +6 -0
  819. package/dist/fink/assets/icon-fonts/fontawesome-free/css/v4-font-face.css +26 -0
  820. package/dist/fink/assets/icon-fonts/fontawesome-free/css/v4-font-face.min.css +6 -0
  821. package/dist/fink/assets/icon-fonts/fontawesome-free/css/v4-shims.css +2194 -0
  822. package/dist/fink/assets/icon-fonts/fontawesome-free/css/v4-shims.min.css +6 -0
  823. package/dist/fink/assets/icon-fonts/fontawesome-free/css/v5-font-face.css +22 -0
  824. package/dist/fink/assets/icon-fonts/fontawesome-free/css/v5-font-face.min.css +6 -0
  825. package/dist/fink/assets/icon-fonts/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  826. package/dist/fink/assets/icon-fonts/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  827. package/dist/fink/assets/icon-fonts/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  828. package/dist/fink/assets/icon-fonts/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  829. package/dist/fink/assets/icon-fonts/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  830. package/dist/fink/assets/icon-fonts/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  831. package/dist/fink/assets/icon-fonts/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  832. package/dist/fink/assets/icon-fonts/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  833. package/dist/fink/assets/icon-fonts/icon-fonts.css +4 -0
  834. package/dist/fink/assets/icon-fonts/kolicons/kolicons.eot +0 -0
  835. package/dist/fink/assets/icon-fonts/kolicons/kolicons.json +31 -0
  836. package/dist/fink/assets/icon-fonts/kolicons/kolicons.svg +99 -0
  837. package/dist/fink/assets/icon-fonts/kolicons/kolicons.ttf +0 -0
  838. package/dist/fink/assets/icon-fonts/kolicons/kolicons.woff +0 -0
  839. package/dist/fink/assets/icon-fonts/kolicons/kolicons.woff2 +0 -0
  840. package/dist/fink/assets/icon-fonts/kolicons/style.css +51 -0
  841. package/dist/fink/assets/icon-fonts/manifest.json +14 -0
  842. package/dist/fink/fink.css +13 -0
  843. package/dist/fink/fink.esm.js +1 -0
  844. package/dist/fink/fonts.css +6 -0
  845. package/dist/fink/index.esm.js +1 -0
  846. package/dist/fink/p-0480e0f4.entry.js +1 -0
  847. package/dist/fink/p-090bfc39.entry.js +1 -0
  848. package/dist/fink/p-0TbN8Xcp.js +4 -0
  849. package/dist/fink/p-0q_cDiSu.js +1 -0
  850. package/dist/fink/p-112a5699.entry.js +1 -0
  851. package/dist/fink/p-1KerVamE.js +4 -0
  852. package/dist/fink/p-26a83208.entry.js +1 -0
  853. package/dist/fink/p-271b0565.entry.js +1 -0
  854. package/dist/fink/p-31f2f199.entry.js +1 -0
  855. package/dist/fink/p-3364a6ba.entry.js +1 -0
  856. package/dist/fink/p-3870cd2f.entry.js +1 -0
  857. package/dist/fink/p-3TE1oVoK.js +4 -0
  858. package/dist/fink/p-46541968.entry.js +1 -0
  859. package/dist/fink/p-4ee67455.entry.js +1 -0
  860. package/dist/fink/p-5278d1ef.entry.js +1 -0
  861. package/dist/fink/p-531aeb01.entry.js +1 -0
  862. package/dist/fink/p-5b80b2bb.entry.js +1 -0
  863. package/dist/fink/p-61642130.entry.js +1 -0
  864. package/dist/fink/p-66abd1be.entry.js +1 -0
  865. package/dist/fink/p-6af256be.entry.js +1 -0
  866. package/dist/fink/p-6bd4ada5.entry.js +1 -0
  867. package/dist/fink/p-6cc33769.entry.js +1 -0
  868. package/dist/fink/p-70dFTErH.js +4 -0
  869. package/dist/fink/p-70e656ee.entry.js +1 -0
  870. package/dist/fink/p-73077f4d.entry.js +1 -0
  871. package/dist/fink/p-7a18b0e6.entry.js +1 -0
  872. package/dist/fink/p-7fEhncCi.js +4 -0
  873. package/dist/fink/p-7fe42ecb.entry.js +1 -0
  874. package/dist/fink/p-840e3c72.entry.js +1 -0
  875. package/dist/fink/p-87eb491f.entry.js +1 -0
  876. package/dist/fink/p-89305df2.entry.js +1 -0
  877. package/dist/fink/p-8JwsEQGN.js +4 -0
  878. package/dist/fink/p-8bd53685.entry.js +1 -0
  879. package/dist/fink/p-8ca103e0.entry.js +1 -0
  880. package/dist/fink/p-8mwEeVg6.js +4 -0
  881. package/dist/fink/p-92d27ed0.entry.js +1 -0
  882. package/dist/fink/p-93317eae.entry.js +1 -0
  883. package/dist/fink/p-95680148.entry.js +1 -0
  884. package/dist/fink/p-9PdC_fU3.js +4 -0
  885. package/dist/fink/p-B-BbokvN.js +1 -0
  886. package/dist/fink/p-B1WcEq4M.js +4 -0
  887. package/dist/fink/p-B1dsErUJ.js +4 -0
  888. package/dist/fink/p-B3PXhKe7.js +4 -0
  889. package/dist/fink/p-B6BCq5L_.js +4 -0
  890. package/dist/fink/p-B8h8QAF1.js +4 -0
  891. package/dist/fink/p-B99lWqPG.js +4 -0
  892. package/dist/fink/p-BELHU4Oh.js +4 -0
  893. package/dist/fink/p-BFH2qMqH.js +4 -0
  894. package/dist/fink/p-BFfPdbpO.js +4 -0
  895. package/dist/fink/p-BH1jSxUA.js +4 -0
  896. package/dist/fink/p-BHiLglB0.js +4 -0
  897. package/dist/fink/p-BI7oMr1i.js +4 -0
  898. package/dist/fink/p-BL9X5zek.js +4 -0
  899. package/dist/fink/p-BMCfojyI.js +4 -0
  900. package/dist/fink/p-BMThm7qP.js +4 -0
  901. package/dist/fink/p-BNhE7eEv.js +4 -0
  902. package/dist/fink/p-BNxwDdo8.js +1 -0
  903. package/dist/fink/p-BOb10H2H.js +4 -0
  904. package/dist/fink/p-BStBDK4A.js +4 -0
  905. package/dist/fink/p-BTXnk9VW.js +4 -0
  906. package/dist/fink/p-BZ1KhHjM.js +4 -0
  907. package/dist/fink/p-BZZL8GzL.js +4 -0
  908. package/dist/fink/p-B_MOrp32.js +4 -0
  909. package/dist/fink/p-BcjT_Ul9.js +4 -0
  910. package/dist/fink/p-Be6hdVUe.js +4 -0
  911. package/dist/fink/p-BeLAXkQ_.js +4 -0
  912. package/dist/fink/p-BhbkDlT6.js +4 -0
  913. package/dist/fink/p-BlHQE7rX.js +4 -0
  914. package/dist/fink/p-BnmxgsW3.js +4 -0
  915. package/dist/fink/p-BoBd56YG.js +4 -0
  916. package/dist/fink/p-BoFdMsuR.js +4 -0
  917. package/dist/fink/p-Bqv88WWu.js +4 -0
  918. package/dist/fink/p-BsI1j3fz.js +4 -0
  919. package/dist/fink/p-Bsfk4YTG.js +4 -0
  920. package/dist/fink/p-BspwltC5.js +4 -0
  921. package/dist/fink/p-BttTvdEQ.js +4 -0
  922. package/dist/fink/p-Bx-xqibH.js +4 -0
  923. package/dist/fink/p-BzL1oNYN.js +4 -0
  924. package/dist/fink/p-C-DwLmsA.js +4 -0
  925. package/dist/fink/p-C-azHf2V.js +4 -0
  926. package/dist/fink/p-C1wCww7h.js +4 -0
  927. package/dist/fink/p-C5PYMWXY.js +4 -0
  928. package/dist/fink/p-C5U6Ou_m.js +4 -0
  929. package/dist/fink/p-C6fVBlc3.js +4 -0
  930. package/dist/fink/p-C7MZ5AgA.js +4 -0
  931. package/dist/fink/p-C87U2c-7.js +4 -0
  932. package/dist/fink/p-C8kDLCRm.js +4 -0
  933. package/dist/fink/p-CA3z5eXZ.js +3 -0
  934. package/dist/fink/p-CGkH1ERn.js +4 -0
  935. package/dist/fink/p-CHcHrZ7t.js +4 -0
  936. package/dist/fink/p-CHh4VeAg.js +4 -0
  937. package/dist/fink/p-CI2CZWqQ.js +1 -0
  938. package/dist/fink/p-CIs6Z2-d.js +4 -0
  939. package/dist/fink/p-CJE8uX0Q.js +4 -0
  940. package/dist/fink/p-CMSO-w9a.js +4 -0
  941. package/dist/fink/p-CNMWZCgS.js +4 -0
  942. package/dist/fink/p-CPtPzcMd.js +103 -0
  943. package/dist/fink/p-CS2xG1nM.js +4 -0
  944. package/dist/fink/p-CSBkViMy.js +4 -0
  945. package/dist/fink/p-CSF7BClw.js +4 -0
  946. package/dist/fink/p-CU-RbAYO.js +4 -0
  947. package/dist/fink/p-CUv13haf.js +4 -0
  948. package/dist/fink/p-CbAhGd5i.js +4 -0
  949. package/dist/fink/p-CdwUYA3i.js +4 -0
  950. package/dist/fink/p-Ce_W3WN1.js +4 -0
  951. package/dist/fink/p-CehyH2nT.js +4 -0
  952. package/dist/fink/p-CfJQyoH8.js +4 -0
  953. package/dist/fink/p-CgF6yh1S.js +4 -0
  954. package/dist/fink/p-CgNGhcQs.js +4 -0
  955. package/dist/fink/p-Ck0btp3V.js +4 -0
  956. package/dist/fink/p-Co0vbYlR.js +4 -0
  957. package/dist/fink/p-CpihVFNc.js +4 -0
  958. package/dist/fink/p-CpznDFHA.js +4 -0
  959. package/dist/fink/p-CvbbJk36.js +4 -0
  960. package/dist/fink/p-CvwFII-2.js +4 -0
  961. package/dist/fink/p-CxQ_SYym.js +4 -0
  962. package/dist/fink/p-CxZaPFrj.js +4 -0
  963. package/dist/fink/p-CyNGdp_T.js +4 -0
  964. package/dist/fink/p-Cz415OSO.js +4 -0
  965. package/dist/fink/p-CzkGplcI.js +4 -0
  966. package/dist/fink/p-D3mf_zo7.js +4 -0
  967. package/dist/fink/p-D59FB9e8.js +4 -0
  968. package/dist/fink/p-DAZjslwm.js +4 -0
  969. package/dist/fink/p-DDYZfpJd.js +4 -0
  970. package/dist/fink/p-DEfik0Sc.js +4 -0
  971. package/dist/fink/p-DFSgV3oS.js +4 -0
  972. package/dist/fink/p-DGF6_bBS.js +4 -0
  973. package/dist/fink/p-DHDOsEqL.js +4 -0
  974. package/dist/fink/p-DJNlv0ul.js +4 -0
  975. package/dist/fink/p-DMXYSXQf.js +4 -0
  976. package/dist/fink/p-DOMW2BrQ.js +4 -0
  977. package/dist/fink/p-DR_ckP39.js +4 -0
  978. package/dist/fink/p-DViZw2gZ.js +4 -0
  979. package/dist/fink/p-DXfM3tgR.js +4 -0
  980. package/dist/fink/p-DY84WS8v.js +1 -0
  981. package/dist/fink/p-DZyAKosi.js +4 -0
  982. package/dist/fink/p-D_FS6tGD.js +1 -0
  983. package/dist/fink/p-D_gkogCg.js +4 -0
  984. package/dist/fink/p-Dceq1fzm.js +4 -0
  985. package/dist/fink/p-DdUwZDmy.js +4 -0
  986. package/dist/fink/p-Dejnw6f4.js +4 -0
  987. package/dist/fink/p-DfDJiEXh.js +4 -0
  988. package/dist/fink/p-DhOZwwQR.js +4 -0
  989. package/dist/fink/p-DipzsIhC.js +4 -0
  990. package/dist/fink/p-Dj0TiVc5.js +4 -0
  991. package/dist/fink/p-DjPa1etv.js +4 -0
  992. package/dist/fink/p-DjkJYi9k.js +4 -0
  993. package/dist/fink/p-DoV5EBlI.js +4 -0
  994. package/dist/fink/p-DpjLDYYz.js +4 -0
  995. package/dist/fink/p-DqHxO9Ai.js +4 -0
  996. package/dist/fink/p-DtLQQ-Zy.js +4 -0
  997. package/dist/fink/p-Dv-cCVAs.js +4 -0
  998. package/dist/fink/p-DvOdBkVD.js +4 -0
  999. package/dist/fink/p-DvVgajSv.js +4 -0
  1000. package/dist/fink/p-DvwUhb7u.js +4 -0
  1001. package/dist/fink/p-HweNbAoE.js +4 -0
  1002. package/dist/fink/p-K1VBgVLf.js +4 -0
  1003. package/dist/fink/p-KQw2tIyE.js +1 -0
  1004. package/dist/fink/p-N-AMA4lJ.js +4 -0
  1005. package/dist/fink/p-Q2WAPvCN.js +4 -0
  1006. package/dist/fink/p-QIOzy6bA.js +4 -0
  1007. package/dist/fink/p-QNbPBOk5.js +4 -0
  1008. package/dist/fink/p-SKB8cyRh.js +4 -0
  1009. package/dist/fink/p-TFNqVyc8.js +4 -0
  1010. package/dist/fink/p-TOjFVPBq.js +4 -0
  1011. package/dist/fink/p-VQnHXg90.js +10 -0
  1012. package/dist/fink/p-WNhmp88g.js +4 -0
  1013. package/dist/fink/p-Z5P1Ai79.js +4 -0
  1014. package/dist/fink/p-ZQRFMWFz.js +4 -0
  1015. package/dist/fink/p-a3104de5.entry.js +1 -0
  1016. package/dist/fink/p-a97e7116.entry.js +1 -0
  1017. package/dist/fink/p-c4e678e3.entry.js +1 -0
  1018. package/dist/fink/p-c5242603.entry.js +1 -0
  1019. package/dist/fink/p-c533dfa2.entry.js +1 -0
  1020. package/dist/fink/p-d5c95ced.entry.js +1 -0
  1021. package/dist/fink/p-d762d39e.entry.js +1 -0
  1022. package/dist/fink/p-d902ca46.entry.js +1 -0
  1023. package/dist/fink/p-daf169f0.entry.js +1 -0
  1024. package/dist/fink/p-e554b7c8.entry.js +1 -0
  1025. package/dist/fink/p-ea884d3f.entry.js +1 -0
  1026. package/dist/fink/p-ed015850.entry.js +1 -0
  1027. package/dist/fink/p-f11bb9d9.entry.js +1 -0
  1028. package/dist/fink/p-f4eaa2e1.entry.js +1 -0
  1029. package/dist/fink/p-gewKj316.js +4 -0
  1030. package/dist/fink/p-h-zEpgSf.js +4 -0
  1031. package/dist/fink/p-h0MkHAI2.js +4 -0
  1032. package/dist/fink/p-iRfN55aI.js +4 -0
  1033. package/dist/fink/p-mYbM3W7m.js +4 -0
  1034. package/dist/fink/p-nQx5E18t.js +4 -0
  1035. package/dist/fink/p-odJRQxye.js +4 -0
  1036. package/dist/fink/p-rg-RqOuE.js +4 -0
  1037. package/dist/fink/p-u0y0hYdm.js +4 -0
  1038. package/dist/fink/p-v7r1B6-8.js +4 -0
  1039. package/dist/fink/p-vwzbS2N4.js +4 -0
  1040. package/dist/fink/p-xiyZ-c0B.js +4 -0
  1041. package/dist/fink/p-xnteiQZA.js +4 -0
  1042. package/dist/fink/tokens.css +1307 -0
  1043. package/dist/index.cjs.js +1 -0
  1044. package/dist/index.js +1 -0
  1045. package/dist/loader/cdn.js +1 -0
  1046. package/dist/loader/index.cjs.js +1 -0
  1047. package/dist/loader/index.d.ts +24 -0
  1048. package/dist/loader/index.es2017.js +1 -0
  1049. package/dist/loader/index.js +2 -0
  1050. package/dist/types/components/app-shell/app-shell.d.ts +63 -0
  1051. package/dist/types/components/avatar-group/avatar-group.d.ts +33 -0
  1052. package/dist/types/components/back-to-top/back-to-top.d.ts +22 -0
  1053. package/dist/types/components/bar-chart/bar-chart.d.ts +34 -0
  1054. package/dist/types/components/bottom-nav/bottom-nav.d.ts +28 -0
  1055. package/dist/types/components/calendar/calendar.d.ts +43 -0
  1056. package/dist/types/components/carousel/carousel.d.ts +39 -0
  1057. package/dist/types/components/chip/chip.d.ts +38 -0
  1058. package/dist/types/components/code-block/code-block.d.ts +41 -0
  1059. package/dist/types/components/consent-banner/consent-banner.d.ts +40 -0
  1060. package/dist/types/components/divider/divider.d.ts +18 -0
  1061. package/dist/types/components/empty-state/empty-state.d.ts +16 -0
  1062. package/dist/types/components/fab/fab.d.ts +37 -0
  1063. package/dist/types/components/feedback/feedback.d.ts +25 -0
  1064. package/dist/types/components/file-upload/file-upload.d.ts +49 -0
  1065. package/dist/types/components/footer/footer.d.ts +28 -0
  1066. package/dist/types/components/grid/grid.d.ts +13 -0
  1067. package/dist/types/components/image-list/image-list.d.ts +40 -0
  1068. package/dist/types/components/infinite-scroll/infinite-scroll.d.ts +33 -0
  1069. package/dist/types/components/kbd/kbd.d.ts +9 -0
  1070. package/dist/types/components/list/list.d.ts +57 -0
  1071. package/dist/types/components/logo/logo.d.ts +21 -0
  1072. package/dist/types/components/menu/menu.d.ts +63 -0
  1073. package/dist/types/components/otp-input/otp-input.d.ts +41 -0
  1074. package/dist/types/components/page-header/page-header.d.ts +16 -0
  1075. package/dist/types/components/panel/panel.d.ts +19 -0
  1076. package/dist/types/components/popconfirm/popconfirm.d.ts +38 -0
  1077. package/dist/types/components/range-slider/range-slider.d.ts +39 -0
  1078. package/dist/types/components/rating/rating.d.ts +28 -0
  1079. package/dist/types/components/result/result.d.ts +28 -0
  1080. package/dist/types/components/segmented/segmented.d.ts +28 -0
  1081. package/dist/types/components/selection-bar/selection-bar.d.ts +20 -0
  1082. package/dist/types/components/skeleton/skeleton.d.ts +17 -0
  1083. package/dist/types/components/sparkline/sparkline.d.ts +27 -0
  1084. package/dist/types/components/splitter/splitter.d.ts +37 -0
  1085. package/dist/types/components/stack/stack.d.ts +19 -0
  1086. package/dist/types/components/stat-card/stat-card.d.ts +29 -0
  1087. package/dist/types/components/status/status.d.ts +23 -0
  1088. package/dist/types/components/stepper/stepper.d.ts +25 -0
  1089. package/dist/types/components/summary-list/summary-list.d.ts +24 -0
  1090. package/dist/types/components/tag-input/tag-input.d.ts +43 -0
  1091. package/dist/types/components/task-list/task-list.d.ts +28 -0
  1092. package/dist/types/components/timeline/timeline.d.ts +23 -0
  1093. package/dist/types/components/toc/toc.d.ts +36 -0
  1094. package/dist/types/components/tour/tour.d.ts +49 -0
  1095. package/dist/types/components/transfer-list/transfer-list.d.ts +45 -0
  1096. package/dist/types/components/virtual-list/virtual-list.d.ts +44 -0
  1097. package/dist/types/components.d.ts +4408 -0
  1098. package/dist/types/global/script.d.ts +2 -0
  1099. package/dist/types/i18n/index.d.ts +23 -0
  1100. package/dist/types/i18n/locales.d.ts +212 -0
  1101. package/dist/types/index.d.ts +28 -0
  1102. package/dist/types/kolibri.d.ts +15 -0
  1103. package/dist/types/stencil-public-runtime.d.ts +1879 -0
  1104. package/dist/types/utils/highlight.d.ts +6 -0
  1105. package/dist/types/utils/resolve-color.d.ts +16 -0
  1106. package/dist/types/utils/shared.d.ts +3 -0
  1107. package/dist/types/utils/tone.d.ts +4 -0
  1108. package/dist/types/utils/viewport-inset.d.ts +12 -0
  1109. package/package.json +50 -3
@@ -0,0 +1,4476 @@
1
+ 'use strict';
2
+
3
+ function _interopNamespace(e) {
4
+ if (e && e.__esModule) return e;
5
+ var n = Object.create(null);
6
+ if (e) {
7
+ Object.keys(e).forEach(function (k) {
8
+ if (k !== 'default') {
9
+ var d = Object.getOwnPropertyDescriptor(e, k);
10
+ Object.defineProperty(n, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: function () { return e[k]; }
13
+ });
14
+ }
15
+ });
16
+ }
17
+ n.default = e;
18
+ return Object.freeze(n);
19
+ }
20
+
21
+ /*!
22
+ * KoliBri - The accessible HTML-Standard
23
+ */
24
+ const NAMESPACE = 'kolibri';
25
+ const BUILD = /* kolibri */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
26
+ const Env = /* kolibri */ {"kolibriVersion":"5.0.0-beta.3"};
27
+
28
+ function getDefaultExportFromCjs (x) {
29
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
30
+ }
31
+
32
+ var loglevel$1 = {exports: {}};
33
+
34
+ /*
35
+ * loglevel - https://github.com/pimterry/loglevel
36
+ *
37
+ * Copyright (c) 2013 Tim Perry
38
+ * Licensed under the MIT license.
39
+ */
40
+ var loglevel = loglevel$1.exports;
41
+
42
+ var hasRequiredLoglevel;
43
+
44
+ function requireLoglevel () {
45
+ if (hasRequiredLoglevel) return loglevel$1.exports;
46
+ hasRequiredLoglevel = 1;
47
+ (function (module) {
48
+ (function (root, definition) {
49
+ if (module.exports) {
50
+ module.exports = definition();
51
+ } else {
52
+ root.log = definition();
53
+ }
54
+ }(loglevel, function () {
55
+
56
+ // Slightly dubious tricks to cut down minimized file size
57
+ var noop = function() {};
58
+ var undefinedType = "undefined";
59
+ var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (
60
+ /Trident\/|MSIE /.test(window.navigator.userAgent)
61
+ );
62
+
63
+ var logMethods = [
64
+ "trace",
65
+ "debug",
66
+ "info",
67
+ "warn",
68
+ "error"
69
+ ];
70
+
71
+ var _loggersByName = {};
72
+ var defaultLogger = null;
73
+
74
+ // Cross-browser bind equivalent that works at least back to IE6
75
+ function bindMethod(obj, methodName) {
76
+ var method = obj[methodName];
77
+ if (typeof method.bind === 'function') {
78
+ return method.bind(obj);
79
+ } else {
80
+ try {
81
+ return Function.prototype.bind.call(method, obj);
82
+ } catch (e) {
83
+ // Missing bind shim or IE8 + Modernizr, fallback to wrapping
84
+ return function() {
85
+ return Function.prototype.apply.apply(method, [obj, arguments]);
86
+ };
87
+ }
88
+ }
89
+ }
90
+
91
+ // Trace() doesn't print the message in IE, so for that case we need to wrap it
92
+ function traceForIE() {
93
+ if (console.log) {
94
+ if (console.log.apply) {
95
+ console.log.apply(console, arguments);
96
+ } else {
97
+ // In old IE, native console methods themselves don't have apply().
98
+ Function.prototype.apply.apply(console.log, [console, arguments]);
99
+ }
100
+ }
101
+ if (console.trace) console.trace();
102
+ }
103
+
104
+ // Build the best logging method possible for this env
105
+ // Wherever possible we want to bind, not wrap, to preserve stack traces
106
+ function realMethod(methodName) {
107
+ if (methodName === 'debug') {
108
+ methodName = 'log';
109
+ }
110
+
111
+ if (typeof console === undefinedType) {
112
+ return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives
113
+ } else if (methodName === 'trace' && isIE) {
114
+ return traceForIE;
115
+ } else if (console[methodName] !== undefined) {
116
+ return bindMethod(console, methodName);
117
+ } else if (console.log !== undefined) {
118
+ return bindMethod(console, 'log');
119
+ } else {
120
+ return noop;
121
+ }
122
+ }
123
+
124
+ // These private functions always need `this` to be set properly
125
+
126
+ function replaceLoggingMethods() {
127
+ /*jshint validthis:true */
128
+ var level = this.getLevel();
129
+
130
+ // Replace the actual methods.
131
+ for (var i = 0; i < logMethods.length; i++) {
132
+ var methodName = logMethods[i];
133
+ this[methodName] = (i < level) ?
134
+ noop :
135
+ this.methodFactory(methodName, level, this.name);
136
+ }
137
+
138
+ // Define log.log as an alias for log.debug
139
+ this.log = this.debug;
140
+
141
+ // Return any important warnings.
142
+ if (typeof console === undefinedType && level < this.levels.SILENT) {
143
+ return "No console available for logging";
144
+ }
145
+ }
146
+
147
+ // In old IE versions, the console isn't present until you first open it.
148
+ // We build realMethod() replacements here that regenerate logging methods
149
+ function enableLoggingWhenConsoleArrives(methodName) {
150
+ return function () {
151
+ if (typeof console !== undefinedType) {
152
+ replaceLoggingMethods.call(this);
153
+ this[methodName].apply(this, arguments);
154
+ }
155
+ };
156
+ }
157
+
158
+ // By default, we use closely bound real methods wherever possible, and
159
+ // otherwise we wait for a console to appear, and then try again.
160
+ function defaultMethodFactory(methodName, _level, _loggerName) {
161
+ /*jshint validthis:true */
162
+ return realMethod(methodName) ||
163
+ enableLoggingWhenConsoleArrives.apply(this, arguments);
164
+ }
165
+
166
+ function Logger(name, factory) {
167
+ // Private instance variables.
168
+ var self = this;
169
+ /**
170
+ * The level inherited from a parent logger (or a global default). We
171
+ * cache this here rather than delegating to the parent so that it stays
172
+ * in sync with the actual logging methods that we have installed (the
173
+ * parent could change levels but we might not have rebuilt the loggers
174
+ * in this child yet).
175
+ * @type {number}
176
+ */
177
+ var inheritedLevel;
178
+ /**
179
+ * The default level for this logger, if any. If set, this overrides
180
+ * `inheritedLevel`.
181
+ * @type {number|null}
182
+ */
183
+ var defaultLevel;
184
+ /**
185
+ * A user-specific level for this logger. If set, this overrides
186
+ * `defaultLevel`.
187
+ * @type {number|null}
188
+ */
189
+ var userLevel;
190
+
191
+ var storageKey = "loglevel";
192
+ if (typeof name === "string") {
193
+ storageKey += ":" + name;
194
+ } else if (typeof name === "symbol") {
195
+ storageKey = undefined;
196
+ }
197
+
198
+ function persistLevelIfPossible(levelNum) {
199
+ var levelName = (logMethods[levelNum] || 'silent').toUpperCase();
200
+
201
+ if (typeof window === undefinedType || !storageKey) return;
202
+
203
+ // Use localStorage if available
204
+ try {
205
+ window.localStorage[storageKey] = levelName;
206
+ return;
207
+ } catch (ignore) {}
208
+
209
+ // Use session cookie as fallback
210
+ try {
211
+ window.document.cookie =
212
+ encodeURIComponent(storageKey) + "=" + levelName + ";";
213
+ } catch (ignore) {}
214
+ }
215
+
216
+ function getPersistedLevel() {
217
+ var storedLevel;
218
+
219
+ if (typeof window === undefinedType || !storageKey) return;
220
+
221
+ try {
222
+ storedLevel = window.localStorage[storageKey];
223
+ } catch (ignore) {}
224
+
225
+ // Fallback to cookies if local storage gives us nothing
226
+ if (typeof storedLevel === undefinedType) {
227
+ try {
228
+ var cookie = window.document.cookie;
229
+ var cookieName = encodeURIComponent(storageKey);
230
+ var location = cookie.indexOf(cookieName + "=");
231
+ if (location !== -1) {
232
+ storedLevel = /^([^;]+)/.exec(
233
+ cookie.slice(location + cookieName.length + 1)
234
+ )[1];
235
+ }
236
+ } catch (ignore) {}
237
+ }
238
+
239
+ // If the stored level is not valid, treat it as if nothing was stored.
240
+ if (self.levels[storedLevel] === undefined) {
241
+ storedLevel = undefined;
242
+ }
243
+
244
+ return storedLevel;
245
+ }
246
+
247
+ function clearPersistedLevel() {
248
+ if (typeof window === undefinedType || !storageKey) return;
249
+
250
+ // Use localStorage if available
251
+ try {
252
+ window.localStorage.removeItem(storageKey);
253
+ } catch (ignore) {}
254
+
255
+ // Use session cookie as fallback
256
+ try {
257
+ window.document.cookie =
258
+ encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
259
+ } catch (ignore) {}
260
+ }
261
+
262
+ function normalizeLevel(input) {
263
+ var level = input;
264
+ if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {
265
+ level = self.levels[level.toUpperCase()];
266
+ }
267
+ if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
268
+ return level;
269
+ } else {
270
+ throw new TypeError("log.setLevel() called with invalid level: " + input);
271
+ }
272
+ }
273
+
274
+ /*
275
+ *
276
+ * Public logger API - see https://github.com/pimterry/loglevel for details
277
+ *
278
+ */
279
+
280
+ self.name = name;
281
+
282
+ self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3,
283
+ "ERROR": 4, "SILENT": 5};
284
+
285
+ self.methodFactory = factory || defaultMethodFactory;
286
+
287
+ self.getLevel = function () {
288
+ if (userLevel != null) {
289
+ return userLevel;
290
+ } else if (defaultLevel != null) {
291
+ return defaultLevel;
292
+ } else {
293
+ return inheritedLevel;
294
+ }
295
+ };
296
+
297
+ self.setLevel = function (level, persist) {
298
+ userLevel = normalizeLevel(level);
299
+ if (persist !== false) { // defaults to true
300
+ persistLevelIfPossible(userLevel);
301
+ }
302
+
303
+ // NOTE: in v2, this should call rebuild(), which updates children.
304
+ return replaceLoggingMethods.call(self);
305
+ };
306
+
307
+ self.setDefaultLevel = function (level) {
308
+ defaultLevel = normalizeLevel(level);
309
+ if (!getPersistedLevel()) {
310
+ self.setLevel(level, false);
311
+ }
312
+ };
313
+
314
+ self.resetLevel = function () {
315
+ userLevel = null;
316
+ clearPersistedLevel();
317
+ replaceLoggingMethods.call(self);
318
+ };
319
+
320
+ self.enableAll = function(persist) {
321
+ self.setLevel(self.levels.TRACE, persist);
322
+ };
323
+
324
+ self.disableAll = function(persist) {
325
+ self.setLevel(self.levels.SILENT, persist);
326
+ };
327
+
328
+ self.rebuild = function () {
329
+ if (defaultLogger !== self) {
330
+ inheritedLevel = normalizeLevel(defaultLogger.getLevel());
331
+ }
332
+ replaceLoggingMethods.call(self);
333
+
334
+ if (defaultLogger === self) {
335
+ for (var childName in _loggersByName) {
336
+ _loggersByName[childName].rebuild();
337
+ }
338
+ }
339
+ };
340
+
341
+ // Initialize all the internal levels.
342
+ inheritedLevel = normalizeLevel(
343
+ defaultLogger ? defaultLogger.getLevel() : "WARN"
344
+ );
345
+ var initialLevel = getPersistedLevel();
346
+ if (initialLevel != null) {
347
+ userLevel = normalizeLevel(initialLevel);
348
+ }
349
+ replaceLoggingMethods.call(self);
350
+ }
351
+
352
+ /*
353
+ *
354
+ * Top-level API
355
+ *
356
+ */
357
+
358
+ defaultLogger = new Logger();
359
+
360
+ defaultLogger.getLogger = function getLogger(name) {
361
+ if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {
362
+ throw new TypeError("You must supply a name when creating a logger.");
363
+ }
364
+
365
+ var logger = _loggersByName[name];
366
+ if (!logger) {
367
+ logger = _loggersByName[name] = new Logger(
368
+ name,
369
+ defaultLogger.methodFactory
370
+ );
371
+ }
372
+ return logger;
373
+ };
374
+
375
+ // Grab the current global log variable in case of overwrite
376
+ var _log = (typeof window !== undefinedType) ? window.log : undefined;
377
+ defaultLogger.noConflict = function() {
378
+ if (typeof window !== undefinedType &&
379
+ window.log === defaultLogger) {
380
+ window.log = _log;
381
+ }
382
+
383
+ return defaultLogger;
384
+ };
385
+
386
+ defaultLogger.getLoggers = function getLoggers() {
387
+ return _loggersByName;
388
+ };
389
+
390
+ // ES6 default export, for compatibility
391
+ defaultLogger['default'] = defaultLogger;
392
+
393
+ return defaultLogger;
394
+ }));
395
+ } (loglevel$1));
396
+ return loglevel$1.exports;
397
+ }
398
+
399
+ var loglevelExports = requireLoglevel();
400
+ var f$1 = /*@__PURE__*/getDefaultExportFromCjs(loglevelExports);
401
+
402
+ const k=(t,e)=>s=>s(t,e),G=(t,e,s)=>o=>o(t,e,{append:false},s),x=()=>{const t=typeof process<"u"&&process.env?process.env:{},e=t.NODE_ENV==="test",s="VITEST"in t,o="JEST_WORKER_ID"in t,a="PLAYWRIGHT_TEST_BASE_URL"in t,r=t.CI==="true",i=t.TEST==="true"||t.IS_TEST==="true",c=typeof navigator<"u"&&navigator.webdriver===true,m=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return e||s||o||a||r||i||c||m},n$1={A11yUi:{CSS_STYLE_CACHE:new Map,FEATURES:{},IS_TEST_ENVIRONMENT:x(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,THEME_FEATURES:{},showAverageTimes:()=>{const t={};for(const[s,o]of n$1.A11yUi.PERFORMANCE_MEASURES.entries())t[s]=[o.totalTime/o.count,o.count];const e=Object.entries(t).sort((s,o)=>o[1][0]-s[1][0]);return console.table(Object.fromEntries(e.map(([s,[o,a]])=>[s,{"avg (ms)":parseFloat(o.toFixed(2)),count:a}]))),t}}};let E=true,u$1=false;const K=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,B=t=>typeof t=="string"&&K.test(t),U=t=>{if(!B(t))throw new Error(`[Theming] The theme identifier "${typeof t=="string"?t:""}" (Type: ${typeof t}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},b=t=>t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),D=(t,e,s,o)=>p(t,e,s,o),p=(t,e,s,o)=>{o=o??{},o.append=o.append??false,U(t),E&&!u$1&&(u$1=true,f$1.warn(`[Theming] The theme process is locked. This means that the theme "${t}" should not be patched.
403
+
404
+ import { register } from 'adopted-style-sheets';
405
+ import { defineCustomElements } from '...';
406
+ import { THEME } from '...';
407
+
408
+ register(THEME, defineCustomElements)
409
+ .then(() => {
410
+ // run your app or website
411
+ })
412
+ .catch(console.warn);`));let a=n$1.A11yUi.THEMES.get(t);if(a||(a=new Map,n$1.A11yUi.THEMES.set(t,a)),o.append&&a.has(e)){const r=a.get(e);a.set(e,b(`${r}${s}`));}else a.set(e,b(s));},z=(t,e,s,o)=>g(t,e,s,o),g=(t,e,s,o)=>(U(t),typeof e=="object"&&e!==null&&Object.getOwnPropertyNames(e).forEach(a=>{const r=e[a],i=a.toLowerCase(),c=typeof o?.transformTagName=="function"&&!["GLOBAL","PROPERTIES"].includes(a)?o.transformTagName(i):a;typeof r=="string"&&r.length>0&&p(t,c.toUpperCase(),r,s);}),t),C=t=>{if(t instanceof HTMLElement){if(typeof t.dataset.theme=="string")return t;{let e=t.parentNode;for(;typeof ShadowRoot<"u"&&e instanceof ShadowRoot;)e=e.host;return C(e)}}else return null},M=(t={})=>t.themeEncroachCss==="false"||t.themeReset==="true"?false:{mode:t.themeEncroachCssMode==="after"||t.themeEncroachCssMode==="before"?t.themeEncroachCssMode:"before"},y=()=>typeof n$1.A11yUi.Theme=="object"&&n$1.A11yUi.Theme!==null&&typeof n$1.A11yUi.Theme.cache=="boolean"&&typeof n$1.A11yUi.Theme.encroachCss=="object"&&n$1.A11yUi.Theme.encroachCss!==null&&typeof n$1.A11yUi.Theme.encroachCss.mode=="string"&&typeof n$1.A11yUi.Theme.name=="string",Q=()=>!(typeof n$1.A11yUi.Theme=="object"&&n$1.A11yUi.Theme!==null)||n$1.A11yUi.Theme.name!=="default",w=t=>{if(y())return n$1.A11yUi.Theme;{const e={cache:true,encroachCss:M(),loglevel:"silent",mode:"csr",name:null},s=C(t);return s instanceof HTMLElement&&(e.cache=s.dataset.themeCache!=="false",e.encroachCss=M(s.dataset),e.loglevel=s.dataset.themeLoglevel==="debug"?s.dataset.themeLoglevel:"silent",e.mode=s.dataset.themeMode==="ssr"?s.dataset.themeMode:"csr",e.name=s.dataset.theme||null),e}},v=t=>w(t).name,R=()=>y()?n$1.A11yUi.Theme.name:null,W=(t,e)=>({cache:e.cache!==false,detect:e.detect==="auto"?"auto":"fixed",encroachCss:e.encroachCss===false?false:typeof e.encroachCss=="object"&&e.encroachCss!=null&&(e.encroachCss.mode==="after"||e.encroachCss.mode==="before")?e.encroachCss:{mode:"before"},loglevel:e.loglevel==="debug"?e.loglevel:"silent",mode:e.mode==="ssr"?e.mode:"csr",name:typeof e.name=="string"?e.name:t}),q=(t,e)=>{y()===false&&Q()&&typeof e=="object"&&e!==null&&(e=W(t,e),e.detect==="fixed"?(e.name===null&&typeof t=="string"&&(e.name=t),t===e.name&&(n$1.A11yUi.Theme=e,f$1.info(`[Theming] Theme "${t}" was set as default theme.`))):u$1||(u$1=true,f$1.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")));},A=(...t)=>{const e={};for(const s of t)s&&Object.assign(e,s);return e},X=(t,e)=>{const s=n$1.A11yUi.FEATURES[t];if(s!==void 0)return s;const o=v(e??null)??R();if(o!==null){const a=n$1.A11yUi.THEME_FEATURES[o];if(a&&a[t]!==void 0)return a[t]}};let N=false;const se=(t,e,s={})=>{N||(N=true,E=false,typeof window<"u"&&(window.A11yUi=n$1.A11yUi)),typeof t=="function"?t=new Set([t]):Array.isArray(t)&&(t=new Set(t)),t instanceof Set&&t.forEach(a=>{typeof a=="function"&&a.length===1?q(a((r,i,c,m)=>(m&&(n$1.A11yUi.THEME_FEATURES[r]=A(n$1.A11yUi.THEME_FEATURES[r],m)),g(r,i,c,s))),{cache:s.theme?.cache,detect:s.theme?.detect,encroachCss:s.theme?.encroachCss,mode:s.theme?.mode,name:s.theme?.name}):f$1.error("[Theming] An attempt was made to load an incompatible theme.");}),E=true,s.features&&(n$1.A11yUi.FEATURES=A(n$1.A11yUi.FEATURES,s.features)),typeof e=="function"?e=new Set([e]):Array.isArray(e)&&(e=new Set(e));const o=[];return e.forEach(a=>{const r=a();r instanceof Promise&&o.push(r);}),Promise.all(o)};const _=new Set,L=new Map,oe=/--[^;]+/g,ae=/:/,ne=typeof MutationObserver<"u";let F=25,H=()=>{F=Math.min(25+Math.log2(n$1.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250);};const re=(t,e)=>{let s=e.match(oe);if(Array.isArray(s)){s=s.filter(a=>ae.test(a));const o=document.createElement("style");o.innerHTML=`.${t} {${s.join(";")}}`,document.querySelector("head")?.appendChild(o);}_.add(t);},T=(t,e)=>{const s=n$1.A11yUi.THEMES.get(t);if(s instanceof Map){const o=s.get(e);if(o!==void 0)return o}return ""},ie=t=>{const e=t.firstChild;if(!(!(e instanceof HTMLStyleElement)||e.dataset.themingFallback!==void 0))for(const s of Array.from(t.childNodes))if(s instanceof HTMLStyleElement&&s.tagName==="STYLE"&&s.dataset.themingFallback===void 0)t.removeChild(s);else break},ce=(t,e)=>{try{if(n$1.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const s=e.filter(o=>typeof o=="string"&&o.length>0).map(o=>{let a=L.get(o);return a||(a=new CSSStyleSheet,a.replaceSync(o),L.set(o,a)),a});t.adoptedStyleSheets=s;}catch{for(let o=e.length-1;o>=0;o--){const a=e[o];if(typeof a!="string"||a.length===0)continue;const r=e.length-1-o,i=document.createElement("style");switch(i.dataset.themingFallback="",r){case 4:i.dataset.themingBaseA11y="";break;case 3:i.dataset.themingBaseGlobal="";break;case 2:i.dataset.themingBaseComponent="";break;case 1:i.dataset.themingCustomGlobal="";break;case 0:i.dataset.themingCustomComponent="";break;default:i.dataset.themingUnknown="";break}i.innerHTML=a,t.insertBefore(i,t.firstChild);}}},le=(t,e,s)=>{if(s===false||s?.mode!=="before"&&s?.mode!=="after")return;const o=Array.from(t.childNodes).filter(r=>r instanceof HTMLStyleElement&&r.tagName==="STYLE");let a;try{a=Array.from(t.adoptedStyleSheets);}catch{a=[];}if(!(o.length===0&&a.length===0))if(s.mode==="before"){const r=[...a.map(i=>Array.from(i.cssRules).map(c=>c.cssText).join("")),...o.map(i=>i.innerHTML)];e.unshift(...r);}else o.forEach(r=>e.push(r.innerHTML)),a.forEach(r=>e.push(Array.from(r.cssRules).map(i=>i.cssText).join("")));},me=(t,e,s)=>{const o=e.name||"default";let a;try{if(t.shadowRoot===null)throw new Error("ShadowRoot is null");a=t.shadowRoot;}catch{a=t;}const r=n$1.A11yUi.CSS_STYLE_CACHE.get(o)?.get(t.tagName);if(r)O(t,a,r,s);else {const i=T(o,"PROPERTIES"),c=T(o,"GLOBAL"),m=T(o,t.tagName);_.has(o)===false&&re(o,c);const d=[i,c,m];if(le(a,d,e.encroachCss),e.cache===true){let h=n$1.A11yUi.CSS_STYLE_CACHE.get(o);h||(h=new Map,n$1.A11yUi.CSS_STYLE_CACHE.set(o,h)),h.set(t.tagName,d);}O(t,a,d,s);}},O=(t,e,s,o)=>{const a=n$1.A11yUi.Theme?.loglevel==="debug",r=a?performance.now():0;if(ie(e),ce(e,s),Te(t),requestAnimationFrame(o),a){const i=performance.now()-r,c=n$1.A11yUi.PERFORMANCE_MEASURES.get(t.tagName);c?(c.count+=1,c.totalTime+=i):n$1.A11yUi.PERFORMANCE_MEASURES.set(t.tagName,{count:1,totalTime:i});}},I=t=>{const e=n$1.A11yUi.STYLING_TASK_QUEUE.get(t);if(e){const{resetCss:s,themeDetails:o}=e;me(t,o,s);}},he=100;let S=(t,e=0)=>{if(e>=he)return;const s=setTimeout(()=>{clearTimeout(s),t.classList.contains("hydrated")?I(t):S(t,e+1);},F);};const fe={attributes:true,attributeFilter:["class"],childList:false,subtree:false},ue={attributes:true,attributeFilter:[],childList:false,subtree:false},P=ne?new MutationObserver((t,e)=>{const s=[];for(const o of t){const a=o.target;a.classList.contains("hydrated")&&n$1.A11yUi.STYLING_TASK_QUEUE.has(a)&&(I(a),s.push(a));}for(const o of s)e.observe(o,ue);}):null;P&&(S=t=>P.observe(t,fe),H=()=>{});const $=new Map;let j=(t,e)=>{if(e){const a=$.get(e);if(a!==void 0)return a}const s=getComputedStyle(t).getPropertyValue("--theme-visibility-delay").trim();let o;if(s.endsWith("ms"))o=parseFloat(s);else if(s.endsWith("s"))o=parseFloat(s)*1e3;else {const a=parseFloat(s);o=isNaN(a)?0:a;}return e&&$.set(e,o),o};n$1.A11yUi.IS_TEST_ENVIRONMENT&&(j=()=>0);const Y=(t,e)=>{t.style.setProperty("visibility",e),t.dataset.themed="";},ye=(t,e)=>{const s=t.style.visibility||null,o=e.name||"default";n$1.A11yUi.STYLING_TASK_QUEUE.set(t,{resetCss:()=>{const a=j(t,o);a>0?setTimeout(()=>{Y(t,s);},a):Y(t,s);},themeDetails:e}),e.mode!=="ssr"&&t.style.setProperty("visibility","hidden","important"),S(t);},Te=t=>{n$1.A11yUi.STYLING_TASK_QUEUE.delete(t),H();},de=(t,e)=>{ye(t,{...n$1.A11yUi.Theme,...e});};class Ee{Prefix;Key;Tag;createTheme=(e,s,o)=>G(e,s,o);createTranslation=(e,s)=>k(e,s);constructor(e,s,o){this.Prefix=e,this.Key=Object.getOwnPropertyNames(s),this.Tag=Object.getOwnPropertyNames(o);}}
413
+
414
+ exports.KeyEnum = void 0;
415
+ (function (KeyEnum) {
416
+ KeyEnum[KeyEnum["action-done"] = 0] = "action-done";
417
+ KeyEnum[KeyEnum["action-running"] = 1] = "action-running";
418
+ KeyEnum[KeyEnum["avatar-alt"] = 2] = "avatar-alt";
419
+ KeyEnum[KeyEnum["character-counter-current"] = 3] = "character-counter-current";
420
+ KeyEnum[KeyEnum["character-counter-current-of-max"] = 4] = "character-counter-current-of-max";
421
+ KeyEnum[KeyEnum["character-counter-current-of-max-aria"] = 5] = "character-counter-current-of-max-aria";
422
+ KeyEnum[KeyEnum["character-counter-max-aria"] = 6] = "character-counter-max-aria";
423
+ KeyEnum[KeyEnum["character-limit-exceeded"] = 7] = "character-limit-exceeded";
424
+ KeyEnum[KeyEnum["character-limit-hint"] = 8] = "character-limit-hint";
425
+ KeyEnum[KeyEnum["character-limit-remaining"] = 9] = "character-limit-remaining";
426
+ KeyEnum[KeyEnum["clear-search"] = 10] = "clear-search";
427
+ KeyEnum[KeyEnum["close"] = 11] = "close";
428
+ KeyEnum[KeyEnum["close-alert"] = 12] = "close-alert";
429
+ KeyEnum[KeyEnum["data-browse-text"] = 13] = "data-browse-text";
430
+ KeyEnum[KeyEnum["delete-selection"] = 14] = "delete-selection";
431
+ KeyEnum[KeyEnum["entries-per-site"] = 15] = "entries-per-site";
432
+ KeyEnum[KeyEnum["error"] = 16] = "error";
433
+ KeyEnum[KeyEnum["error-list"] = 17] = "error-list";
434
+ KeyEnum[KeyEnum["error-list-message"] = 18] = "error-list-message";
435
+ KeyEnum[KeyEnum["filename-text"] = 19] = "filename-text";
436
+ KeyEnum[KeyEnum["form-description"] = 20] = "form-description";
437
+ KeyEnum[KeyEnum["hide-password"] = 21] = "hide-password";
438
+ KeyEnum[KeyEnum["info"] = 22] = "info";
439
+ KeyEnum[KeyEnum["kolibri-logo"] = 23] = "kolibri-logo";
440
+ KeyEnum[KeyEnum["live-value"] = 24] = "live-value";
441
+ KeyEnum[KeyEnum["live-value-bounded"] = 25] = "live-value-bounded";
442
+ KeyEnum[KeyEnum["message"] = 26] = "message";
443
+ KeyEnum[KeyEnum["meter-state-critical"] = 27] = "meter-state-critical";
444
+ KeyEnum[KeyEnum["meter-state-optimum"] = 28] = "meter-state-optimum";
445
+ KeyEnum[KeyEnum["meter-state-suboptimal"] = 29] = "meter-state-suboptimal";
446
+ KeyEnum[KeyEnum["nav-maximize"] = 30] = "nav-maximize";
447
+ KeyEnum[KeyEnum["nav-minimize"] = 31] = "nav-minimize";
448
+ KeyEnum[KeyEnum["new"] = 32] = "new";
449
+ KeyEnum[KeyEnum["no-entries"] = 33] = "no-entries";
450
+ KeyEnum[KeyEnum["no-results-message"] = 34] = "no-results-message";
451
+ KeyEnum[KeyEnum["open-link-in-tab"] = 35] = "open-link-in-tab";
452
+ KeyEnum[KeyEnum["page"] = 36] = "page";
453
+ KeyEnum[KeyEnum["page-back"] = 37] = "page-back";
454
+ KeyEnum[KeyEnum["page-first"] = 38] = "page-first";
455
+ KeyEnum[KeyEnum["page-last"] = 39] = "page-last";
456
+ KeyEnum[KeyEnum["page-next"] = 40] = "page-next";
457
+ KeyEnum[KeyEnum["pagination"] = 41] = "pagination";
458
+ KeyEnum[KeyEnum["pagination-position-bottom"] = 42] = "pagination-position-bottom";
459
+ KeyEnum[KeyEnum["pagination-position-top"] = 43] = "pagination-position-top";
460
+ KeyEnum[KeyEnum["progress"] = 44] = "progress";
461
+ KeyEnum[KeyEnum["readonly"] = 45] = "readonly";
462
+ KeyEnum[KeyEnum["show-password"] = 46] = "show-password";
463
+ KeyEnum[KeyEnum["show-suggestions"] = 47] = "show-suggestions";
464
+ KeyEnum[KeyEnum["sort"] = 48] = "sort";
465
+ KeyEnum[KeyEnum["split-button-dropdown-label-open"] = 49] = "split-button-dropdown-label-open";
466
+ KeyEnum[KeyEnum["success"] = 50] = "success";
467
+ KeyEnum[KeyEnum["table-data-loading"] = 51] = "table-data-loading";
468
+ KeyEnum[KeyEnum["table-data-loaded"] = 52] = "table-data-loaded";
469
+ KeyEnum[KeyEnum["table-pagination-label"] = 53] = "table-pagination-label";
470
+ KeyEnum[KeyEnum["table-selection"] = 54] = "table-selection";
471
+ KeyEnum[KeyEnum["table-selection-all"] = 55] = "table-selection-all";
472
+ KeyEnum[KeyEnum["table-selection-indeterminate"] = 56] = "table-selection-indeterminate";
473
+ KeyEnum[KeyEnum["table-selection-none"] = 57] = "table-selection-none";
474
+ KeyEnum[KeyEnum["table-settings"] = 58] = "table-settings";
475
+ KeyEnum[KeyEnum["table-settings-apply"] = 59] = "table-settings-apply";
476
+ KeyEnum[KeyEnum["table-settings-cancel"] = 60] = "table-settings-cancel";
477
+ KeyEnum[KeyEnum["table-settings-column-hidable"] = 61] = "table-settings-column-hidable";
478
+ KeyEnum[KeyEnum["table-settings-column-not-hidable"] = 62] = "table-settings-column-not-hidable";
479
+ KeyEnum[KeyEnum["table-settings-column-width"] = 63] = "table-settings-column-width";
480
+ KeyEnum[KeyEnum["table-settings-error-all-invisible"] = 64] = "table-settings-error-all-invisible";
481
+ KeyEnum[KeyEnum["table-settings-move-down"] = 65] = "table-settings-move-down";
482
+ KeyEnum[KeyEnum["table-settings-move-up"] = 66] = "table-settings-move-up";
483
+ KeyEnum[KeyEnum["table-settings-not-move"] = 67] = "table-settings-not-move";
484
+ KeyEnum[KeyEnum["table-sort-order"] = 68] = "table-sort-order";
485
+ KeyEnum[KeyEnum["table-visible-range"] = 69] = "table-visible-range";
486
+ KeyEnum[KeyEnum["toast-close-all"] = 70] = "toast-close-all";
487
+ KeyEnum[KeyEnum["version"] = 71] = "version";
488
+ KeyEnum[KeyEnum["warning"] = 72] = "warning";
489
+ })(exports.KeyEnum || (exports.KeyEnum = {}));
490
+
491
+ exports.TagEnum = void 0;
492
+ (function (TagEnum) {
493
+ TagEnum[TagEnum["abbr"] = 0] = "abbr";
494
+ TagEnum[TagEnum["accordion"] = 1] = "accordion";
495
+ TagEnum[TagEnum["alert"] = 2] = "alert";
496
+ TagEnum[TagEnum["avatar"] = 3] = "avatar";
497
+ TagEnum[TagEnum["badge"] = 4] = "badge";
498
+ TagEnum[TagEnum["breadcrumb"] = 5] = "breadcrumb";
499
+ TagEnum[TagEnum["button"] = 6] = "button";
500
+ TagEnum[TagEnum["button-link"] = 7] = "button-link";
501
+ TagEnum[TagEnum["card"] = 8] = "card";
502
+ TagEnum[TagEnum["combobox"] = 9] = "combobox";
503
+ TagEnum[TagEnum["details"] = 10] = "details";
504
+ TagEnum[TagEnum["dialog"] = 11] = "dialog";
505
+ TagEnum[TagEnum["drawer"] = 12] = "drawer";
506
+ TagEnum[TagEnum["form"] = 13] = "form";
507
+ TagEnum[TagEnum["heading"] = 14] = "heading";
508
+ TagEnum[TagEnum["icon"] = 15] = "icon";
509
+ TagEnum[TagEnum["image"] = 16] = "image";
510
+ TagEnum[TagEnum["input-checkbox"] = 17] = "input-checkbox";
511
+ TagEnum[TagEnum["input-color"] = 18] = "input-color";
512
+ TagEnum[TagEnum["input-date"] = 19] = "input-date";
513
+ TagEnum[TagEnum["input-email"] = 20] = "input-email";
514
+ TagEnum[TagEnum["input-file"] = 21] = "input-file";
515
+ TagEnum[TagEnum["input-number"] = 22] = "input-number";
516
+ TagEnum[TagEnum["input-password"] = 23] = "input-password";
517
+ TagEnum[TagEnum["input-radio"] = 24] = "input-radio";
518
+ TagEnum[TagEnum["input-range"] = 25] = "input-range";
519
+ TagEnum[TagEnum["input-text"] = 26] = "input-text";
520
+ TagEnum[TagEnum["kolibri"] = 27] = "kolibri";
521
+ TagEnum[TagEnum["link"] = 28] = "link";
522
+ TagEnum[TagEnum["link-button"] = 29] = "link-button";
523
+ TagEnum[TagEnum["logo"] = 30] = "logo";
524
+ TagEnum[TagEnum["meter"] = 31] = "meter";
525
+ TagEnum[TagEnum["modal"] = 32] = "modal";
526
+ TagEnum[TagEnum["nav"] = 33] = "nav";
527
+ TagEnum[TagEnum["pagination"] = 34] = "pagination";
528
+ TagEnum[TagEnum["popover-button"] = 35] = "popover-button";
529
+ TagEnum[TagEnum["progress"] = 36] = "progress";
530
+ TagEnum[TagEnum["quote"] = 37] = "quote";
531
+ TagEnum[TagEnum["select"] = 38] = "select";
532
+ TagEnum[TagEnum["single-select"] = 39] = "single-select";
533
+ TagEnum[TagEnum["skip-nav"] = 40] = "skip-nav";
534
+ TagEnum[TagEnum["spin"] = 41] = "spin";
535
+ TagEnum[TagEnum["split-button"] = 42] = "split-button";
536
+ TagEnum[TagEnum["symbol"] = 43] = "symbol";
537
+ TagEnum[TagEnum["table"] = 44] = "table";
538
+ TagEnum[TagEnum["table-stateful"] = 45] = "table-stateful";
539
+ TagEnum[TagEnum["table-stateless"] = 46] = "table-stateless";
540
+ TagEnum[TagEnum["tabs"] = 47] = "tabs";
541
+ TagEnum[TagEnum["textarea"] = 48] = "textarea";
542
+ TagEnum[TagEnum["toast-container"] = 49] = "toast-container";
543
+ TagEnum[TagEnum["toolbar"] = 50] = "toolbar";
544
+ TagEnum[TagEnum["tooltip"] = 51] = "tooltip";
545
+ TagEnum[TagEnum["tree"] = 52] = "tree";
546
+ TagEnum[TagEnum["tree-item"] = 53] = "tree-item";
547
+ TagEnum[TagEnum["version"] = 54] = "version";
548
+ })(exports.TagEnum || (exports.TagEnum = {}));
549
+
550
+ const getWindow = () => {
551
+ if (typeof window !== 'undefined')
552
+ return window;
553
+ return {};
554
+ };
555
+ const getDocument = () => {
556
+ const win = getWindow();
557
+ if (win && typeof win.document !== 'undefined')
558
+ return win.document;
559
+ return {};
560
+ };
561
+ const MODES = ['development', 'production', 'test'];
562
+ let runtimeMode = 'production';
563
+ const setRuntimeMode = (mode) => {
564
+ try {
565
+ if (MODES.includes(mode)) {
566
+ runtimeMode = mode;
567
+ }
568
+ else {
569
+ throw new Error(`Invalid NODE_ENV value: ${mode}. Expected one of ${MODES.join(', ')}.`);
570
+ }
571
+ }
572
+ catch (_a) {
573
+ runtimeMode = 'production';
574
+ }
575
+ };
576
+ const getNodeEnv = () => {
577
+ try {
578
+ return typeof process !== 'undefined' && process.env ? process.env['NODE_ENV'] : undefined;
579
+ }
580
+ catch (_a) {
581
+ return undefined;
582
+ }
583
+ };
584
+ const getInitialMode = () => {
585
+ const nodeEnv = getNodeEnv();
586
+ return nodeEnv && MODES.includes(nodeEnv) ? nodeEnv : 'production';
587
+ };
588
+ setRuntimeMode(getInitialMode());
589
+ let EXPERIMENTAL_MODE = false;
590
+ let COLOR_CONTRAST_ANALYSIS = false;
591
+ const isDevMode = () => runtimeMode === 'development';
592
+ const isTestMode = () => runtimeMode === 'test';
593
+ const isValidationEnabled = () => runtimeMode !== 'production' || getNodeEnv() !== 'production';
594
+ const getExperimentalMode = () => EXPERIMENTAL_MODE === true;
595
+ const setExperimentalMode = (mode) => {
596
+ EXPERIMENTAL_MODE = mode === true;
597
+ };
598
+ const getColorContrastAnalysis = () => COLOR_CONTRAST_ANALYSIS === true;
599
+ const setColorContrastAnalysis = (mode) => {
600
+ COLOR_CONTRAST_ANALYSIS = mode === true;
601
+ };
602
+ const LOG_STYLE = 'color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000';
603
+ const mapToArray = (msg) => {
604
+ return Array.isArray(msg) ? msg : [msg];
605
+ };
606
+ const getLogLabel = (label) => {
607
+ return `%c${label}`;
608
+ };
609
+ const handleClassifier = (label, classifier) => {
610
+ if (typeof classifier === 'string' && classifier.length > 0) {
611
+ return `${getLogLabel(label)} | ${classifier}`;
612
+ }
613
+ else {
614
+ return getLogLabel(label);
615
+ }
616
+ };
617
+ const getShield = (label, options) => {
618
+ return [handleClassifier(label, options === null || options === void 0 ? void 0 : options.classifier), `${LOG_STYLE};${(options === null || options === void 0 ? void 0 : options.overwriteStyle) || ''}`];
619
+ };
620
+ const isDevModeOrForceLog = (forceLog) => isDevMode() || forceLog === true;
621
+ class Logger {
622
+ constructor(label) {
623
+ this.label = label;
624
+ }
625
+ debug(msg, options) {
626
+ if (isDevModeOrForceLog(options === null || options === void 0 ? void 0 : options.forceLog)) {
627
+ console.debug(...getShield(this.label, options), ...mapToArray(msg));
628
+ }
629
+ }
630
+ info(msg, options) {
631
+ if (isDevModeOrForceLog(options === null || options === void 0 ? void 0 : options.forceLog)) {
632
+ console.info(...getShield(this.label, options), ...mapToArray(msg));
633
+ }
634
+ }
635
+ trace(msg, options) {
636
+ if (isDevModeOrForceLog(options === null || options === void 0 ? void 0 : options.forceLog)) {
637
+ console.trace(...getShield(this.label, options), ...mapToArray(msg));
638
+ }
639
+ }
640
+ warn(msg, options) {
641
+ if (isDevModeOrForceLog(options === null || options === void 0 ? void 0 : options.forceLog)) {
642
+ console.warn(...getShield(this.label, options), ...mapToArray(msg));
643
+ }
644
+ }
645
+ error(msg, options) {
646
+ console.error(...getShield(this.label, options), ...mapToArray(msg));
647
+ }
648
+ throw(msg, options) {
649
+ if (isDevModeOrForceLog(options === null || options === void 0 ? void 0 : options.forceLog)) {
650
+ throw new Error(...getShield(this.label, options), ...mapToArray(msg));
651
+ }
652
+ }
653
+ }
654
+ const Log = new Logger('KoliBri');
655
+
656
+ const a11yCache = new Set();
657
+ const a11yHint = (msg, options) => {
658
+ if (a11yCache.has(msg) === false || false) {
659
+ a11yCache.add(msg);
660
+ Log.debug([msg].concat([]), {
661
+ classifier: `✋ a11y`,
662
+ forceLog: false,
663
+ overwriteStyle: '; background-color: #09f',
664
+ });
665
+ }
666
+ };
667
+ const deprecatedCache = new Set();
668
+ const deprecatedHint = (msg, options) => {
669
+ if (deprecatedCache.has(msg) === false || false) {
670
+ deprecatedCache.add(msg);
671
+ Log.warn([msg].concat([]), {
672
+ classifier: `🔥 deprecated`,
673
+ forceLog: false,
674
+ overwriteStyle: '; background-color: #f00',
675
+ });
676
+ }
677
+ };
678
+ const devCache = new Set();
679
+ const devHint = (msg, options) => {
680
+ if (devCache.has(msg) === false || !!(options === null || options === void 0 ? void 0 : options.force)) {
681
+ devCache.add(msg);
682
+ Log.debug([msg].concat((options === null || options === void 0 ? void 0 : options.details) || []), {
683
+ classifier: `💻 dev`,
684
+ forceLog: !!(options === null || options === void 0 ? void 0 : options.force),
685
+ overwriteStyle: '; background-color: #f09',
686
+ });
687
+ }
688
+ };
689
+ const devWarning = (msg, options) => {
690
+ if (devCache.has(msg) === false || false) {
691
+ devCache.add(msg);
692
+ Log.warn([msg].concat([]), {
693
+ classifier: `⚠️ dev`,
694
+ forceLog: false,
695
+ overwriteStyle: '; background-color: #f09',
696
+ });
697
+ }
698
+ };
699
+ const featureCache = new Set();
700
+ const featureHint = (msg, done = false, options) => {
701
+ if (featureCache.has(msg) === false || false) {
702
+ featureCache.add(msg);
703
+ msg += done === true ? ' ✅' : '';
704
+ Log.debug([msg].concat([]), {
705
+ classifier: `🌟 feature`,
706
+ forceLog: false,
707
+ overwriteStyle: '; background-color: #309',
708
+ });
709
+ }
710
+ };
711
+ devHint(`We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!`);
712
+ const uiUxCache = new Set();
713
+ const uiUxHint = (msg, options) => {
714
+ if (uiUxCache.has(msg) === false || false) {
715
+ uiUxCache.add(msg);
716
+ Log.debug([msg].concat([]), {
717
+ classifier: `📑 ui/ux`,
718
+ forceLog: false,
719
+ overwriteStyle: '; background-color: #060;',
720
+ });
721
+ }
722
+ };
723
+ const a11yHintLabelingLandmarks = (value) => {
724
+ if (typeof value !== 'string' || value === '') {
725
+ a11yHint(`Some structural elements, such as the nav tag, can be used multiple times on a webpage. To distinguish between similarly named structural elements, it is necessary to set an ARIA label.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns`);
726
+ }
727
+ };
728
+ const uiUxHintMillerscheZahl = (className, length = 8) => {
729
+ if (length > 7) {
730
+ uiUxHint(`[${className}] Within navigation structures, it is recommended to use no more than 7 menu items.
731
+
732
+ Link:
733
+ - https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`);
734
+ }
735
+ };
736
+
737
+ const NUMBER_STRING_PATTERN = /^[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?$/;
738
+ function isNumberString(value) {
739
+ return typeof value === 'string' && NUMBER_STRING_PATTERN.test(value) && Number.isFinite(Number(value));
740
+ }
741
+ const isObject = (value) => typeof value === 'object' && value !== null;
742
+ const isString = (value, minLength = 0) => typeof value === 'string' && value.length >= minLength;
743
+ const isStyle = (style) => {
744
+ if (typeof style === 'object' && style !== null) {
745
+ for (const property in style) {
746
+ if (isString(property, 1) === false) {
747
+ return false;
748
+ }
749
+ }
750
+ }
751
+ else {
752
+ return isString(style, 1);
753
+ }
754
+ return true;
755
+ };
756
+ const STATE_CHANGE_EVENT = new Event('StateChange');
757
+
758
+ var colorName;
759
+ var hasRequiredColorName;
760
+
761
+ function requireColorName () {
762
+ if (hasRequiredColorName) return colorName;
763
+ hasRequiredColorName = 1;
764
+
765
+ colorName = {
766
+ "aliceblue": [240, 248, 255],
767
+ "antiquewhite": [250, 235, 215],
768
+ "aqua": [0, 255, 255],
769
+ "aquamarine": [127, 255, 212],
770
+ "azure": [240, 255, 255],
771
+ "beige": [245, 245, 220],
772
+ "bisque": [255, 228, 196],
773
+ "black": [0, 0, 0],
774
+ "blanchedalmond": [255, 235, 205],
775
+ "blue": [0, 0, 255],
776
+ "blueviolet": [138, 43, 226],
777
+ "brown": [165, 42, 42],
778
+ "burlywood": [222, 184, 135],
779
+ "cadetblue": [95, 158, 160],
780
+ "chartreuse": [127, 255, 0],
781
+ "chocolate": [210, 105, 30],
782
+ "coral": [255, 127, 80],
783
+ "cornflowerblue": [100, 149, 237],
784
+ "cornsilk": [255, 248, 220],
785
+ "crimson": [220, 20, 60],
786
+ "cyan": [0, 255, 255],
787
+ "darkblue": [0, 0, 139],
788
+ "darkcyan": [0, 139, 139],
789
+ "darkgoldenrod": [184, 134, 11],
790
+ "darkgray": [169, 169, 169],
791
+ "darkgreen": [0, 100, 0],
792
+ "darkgrey": [169, 169, 169],
793
+ "darkkhaki": [189, 183, 107],
794
+ "darkmagenta": [139, 0, 139],
795
+ "darkolivegreen": [85, 107, 47],
796
+ "darkorange": [255, 140, 0],
797
+ "darkorchid": [153, 50, 204],
798
+ "darkred": [139, 0, 0],
799
+ "darksalmon": [233, 150, 122],
800
+ "darkseagreen": [143, 188, 143],
801
+ "darkslateblue": [72, 61, 139],
802
+ "darkslategray": [47, 79, 79],
803
+ "darkslategrey": [47, 79, 79],
804
+ "darkturquoise": [0, 206, 209],
805
+ "darkviolet": [148, 0, 211],
806
+ "deeppink": [255, 20, 147],
807
+ "deepskyblue": [0, 191, 255],
808
+ "dimgray": [105, 105, 105],
809
+ "dimgrey": [105, 105, 105],
810
+ "dodgerblue": [30, 144, 255],
811
+ "firebrick": [178, 34, 34],
812
+ "floralwhite": [255, 250, 240],
813
+ "forestgreen": [34, 139, 34],
814
+ "fuchsia": [255, 0, 255],
815
+ "gainsboro": [220, 220, 220],
816
+ "ghostwhite": [248, 248, 255],
817
+ "gold": [255, 215, 0],
818
+ "goldenrod": [218, 165, 32],
819
+ "gray": [128, 128, 128],
820
+ "green": [0, 128, 0],
821
+ "greenyellow": [173, 255, 47],
822
+ "grey": [128, 128, 128],
823
+ "honeydew": [240, 255, 240],
824
+ "hotpink": [255, 105, 180],
825
+ "indianred": [205, 92, 92],
826
+ "indigo": [75, 0, 130],
827
+ "ivory": [255, 255, 240],
828
+ "khaki": [240, 230, 140],
829
+ "lavender": [230, 230, 250],
830
+ "lavenderblush": [255, 240, 245],
831
+ "lawngreen": [124, 252, 0],
832
+ "lemonchiffon": [255, 250, 205],
833
+ "lightblue": [173, 216, 230],
834
+ "lightcoral": [240, 128, 128],
835
+ "lightcyan": [224, 255, 255],
836
+ "lightgoldenrodyellow": [250, 250, 210],
837
+ "lightgray": [211, 211, 211],
838
+ "lightgreen": [144, 238, 144],
839
+ "lightgrey": [211, 211, 211],
840
+ "lightpink": [255, 182, 193],
841
+ "lightsalmon": [255, 160, 122],
842
+ "lightseagreen": [32, 178, 170],
843
+ "lightskyblue": [135, 206, 250],
844
+ "lightslategray": [119, 136, 153],
845
+ "lightslategrey": [119, 136, 153],
846
+ "lightsteelblue": [176, 196, 222],
847
+ "lightyellow": [255, 255, 224],
848
+ "lime": [0, 255, 0],
849
+ "limegreen": [50, 205, 50],
850
+ "linen": [250, 240, 230],
851
+ "magenta": [255, 0, 255],
852
+ "maroon": [128, 0, 0],
853
+ "mediumaquamarine": [102, 205, 170],
854
+ "mediumblue": [0, 0, 205],
855
+ "mediumorchid": [186, 85, 211],
856
+ "mediumpurple": [147, 112, 219],
857
+ "mediumseagreen": [60, 179, 113],
858
+ "mediumslateblue": [123, 104, 238],
859
+ "mediumspringgreen": [0, 250, 154],
860
+ "mediumturquoise": [72, 209, 204],
861
+ "mediumvioletred": [199, 21, 133],
862
+ "midnightblue": [25, 25, 112],
863
+ "mintcream": [245, 255, 250],
864
+ "mistyrose": [255, 228, 225],
865
+ "moccasin": [255, 228, 181],
866
+ "navajowhite": [255, 222, 173],
867
+ "navy": [0, 0, 128],
868
+ "oldlace": [253, 245, 230],
869
+ "olive": [128, 128, 0],
870
+ "olivedrab": [107, 142, 35],
871
+ "orange": [255, 165, 0],
872
+ "orangered": [255, 69, 0],
873
+ "orchid": [218, 112, 214],
874
+ "palegoldenrod": [238, 232, 170],
875
+ "palegreen": [152, 251, 152],
876
+ "paleturquoise": [175, 238, 238],
877
+ "palevioletred": [219, 112, 147],
878
+ "papayawhip": [255, 239, 213],
879
+ "peachpuff": [255, 218, 185],
880
+ "peru": [205, 133, 63],
881
+ "pink": [255, 192, 203],
882
+ "plum": [221, 160, 221],
883
+ "powderblue": [176, 224, 230],
884
+ "purple": [128, 0, 128],
885
+ "rebeccapurple": [102, 51, 153],
886
+ "red": [255, 0, 0],
887
+ "rosybrown": [188, 143, 143],
888
+ "royalblue": [65, 105, 225],
889
+ "saddlebrown": [139, 69, 19],
890
+ "salmon": [250, 128, 114],
891
+ "sandybrown": [244, 164, 96],
892
+ "seagreen": [46, 139, 87],
893
+ "seashell": [255, 245, 238],
894
+ "sienna": [160, 82, 45],
895
+ "silver": [192, 192, 192],
896
+ "skyblue": [135, 206, 235],
897
+ "slateblue": [106, 90, 205],
898
+ "slategray": [112, 128, 144],
899
+ "slategrey": [112, 128, 144],
900
+ "snow": [255, 250, 250],
901
+ "springgreen": [0, 255, 127],
902
+ "steelblue": [70, 130, 180],
903
+ "tan": [210, 180, 140],
904
+ "teal": [0, 128, 128],
905
+ "thistle": [216, 191, 216],
906
+ "tomato": [255, 99, 71],
907
+ "turquoise": [64, 224, 208],
908
+ "violet": [238, 130, 238],
909
+ "wheat": [245, 222, 179],
910
+ "white": [255, 255, 255],
911
+ "whitesmoke": [245, 245, 245],
912
+ "yellow": [255, 255, 0],
913
+ "yellowgreen": [154, 205, 50]
914
+ };
915
+ return colorName;
916
+ }
917
+
918
+ /**
919
+ * @module color-parse
920
+ */
921
+
922
+ var colorParse;
923
+ var hasRequiredColorParse;
924
+
925
+ function requireColorParse () {
926
+ if (hasRequiredColorParse) return colorParse;
927
+ hasRequiredColorParse = 1;
928
+
929
+ var names = requireColorName();
930
+
931
+ colorParse = parse;
932
+
933
+ /**
934
+ * Base hues
935
+ * http://dev.w3.org/csswg/css-color/#typedef-named-hue
936
+ */
937
+ //FIXME: use external hue detector
938
+ var baseHues = {
939
+ red: 0,
940
+ orange: 60,
941
+ yellow: 120,
942
+ green: 180,
943
+ blue: 240,
944
+ purple: 300
945
+ };
946
+
947
+ /**
948
+ * Parse color from the string passed
949
+ *
950
+ * @return {Object} A space indicator `space`, an array `values` and `alpha`
951
+ */
952
+ function parse(cstr) {
953
+ var m, parts = [], alpha = 1, space;
954
+
955
+ if (typeof cstr === 'string') {
956
+ cstr = cstr.toLowerCase();
957
+
958
+ //keyword
959
+ if (names[cstr]) {
960
+ parts = names[cstr].slice();
961
+ space = 'rgb';
962
+ }
963
+
964
+ //reserved words
965
+ else if (cstr === 'transparent') {
966
+ alpha = 0;
967
+ space = 'rgb';
968
+ parts = [0, 0, 0];
969
+ }
970
+
971
+ //hex
972
+ else if (/^#[A-Fa-f0-9]+$/.test(cstr)) {
973
+ var base = cstr.slice(1);
974
+ var size = base.length;
975
+ var isShort = size <= 4;
976
+ alpha = 1;
977
+
978
+ if (isShort) {
979
+ parts = [
980
+ parseInt(base[0] + base[0], 16),
981
+ parseInt(base[1] + base[1], 16),
982
+ parseInt(base[2] + base[2], 16)
983
+ ];
984
+ if (size === 4) {
985
+ alpha = parseInt(base[3] + base[3], 16) / 255;
986
+ }
987
+ }
988
+ else {
989
+ parts = [
990
+ parseInt(base[0] + base[1], 16),
991
+ parseInt(base[2] + base[3], 16),
992
+ parseInt(base[4] + base[5], 16)
993
+ ];
994
+ if (size === 8) {
995
+ alpha = parseInt(base[6] + base[7], 16) / 255;
996
+ }
997
+ }
998
+
999
+ if (!parts[0]) parts[0] = 0;
1000
+ if (!parts[1]) parts[1] = 0;
1001
+ if (!parts[2]) parts[2] = 0;
1002
+
1003
+ space = 'rgb';
1004
+ }
1005
+
1006
+ //color space
1007
+ else if (m = /^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(cstr)) {
1008
+ var name = m[1];
1009
+ var isRGB = name === 'rgb';
1010
+ var base = name.replace(/a$/, '');
1011
+ space = base;
1012
+ var size = base === 'cmyk' ? 4 : base === 'gray' ? 1 : 3;
1013
+ parts = m[2].trim()
1014
+ .split(/\s*[,\/]\s*|\s+/)
1015
+ .map(function (x, i) {
1016
+ //<percentage>
1017
+ if (/%$/.test(x)) {
1018
+ //alpha
1019
+ if (i === size) return parseFloat(x) / 100
1020
+ //rgb
1021
+ if (base === 'rgb') return parseFloat(x) * 255 / 100
1022
+ return parseFloat(x)
1023
+ }
1024
+ //hue
1025
+ else if (base[i] === 'h') {
1026
+ //<deg>
1027
+ if (/deg$/.test(x)) {
1028
+ return parseFloat(x)
1029
+ }
1030
+ //<base-hue>
1031
+ else if (baseHues[x] !== undefined) {
1032
+ return baseHues[x]
1033
+ }
1034
+ }
1035
+ return parseFloat(x)
1036
+ });
1037
+
1038
+ if (name === base) parts.push(1);
1039
+ alpha = (isRGB) ? 1 : (parts[size] === undefined) ? 1 : parts[size];
1040
+ parts = parts.slice(0, size);
1041
+ }
1042
+
1043
+ //named channels case
1044
+ else if (cstr.length > 10 && /[0-9](?:\s|\/)/.test(cstr)) {
1045
+ parts = cstr.match(/([0-9]+)/g).map(function (value) {
1046
+ return parseFloat(value)
1047
+ });
1048
+
1049
+ space = cstr.match(/([a-z])/ig).join('').toLowerCase();
1050
+ }
1051
+ }
1052
+
1053
+ //numeric case
1054
+ else if (!isNaN(cstr)) {
1055
+ space = 'rgb';
1056
+ parts = [cstr >>> 16, (cstr & 0x00ff00) >>> 8, cstr & 0x0000ff];
1057
+ }
1058
+
1059
+ //array-like
1060
+ else if (Array.isArray(cstr) || cstr.length) {
1061
+ parts = [cstr[0], cstr[1], cstr[2]];
1062
+ space = 'rgb';
1063
+ alpha = cstr.length === 4 ? cstr[3] : 1;
1064
+ }
1065
+
1066
+ //object case - detects css cases of rgb and hsl
1067
+ else if (cstr instanceof Object) {
1068
+ if (cstr.r != null || cstr.red != null || cstr.R != null) {
1069
+ space = 'rgb';
1070
+ parts = [
1071
+ cstr.r || cstr.red || cstr.R || 0,
1072
+ cstr.g || cstr.green || cstr.G || 0,
1073
+ cstr.b || cstr.blue || cstr.B || 0
1074
+ ];
1075
+ }
1076
+ else {
1077
+ space = 'hsl';
1078
+ parts = [
1079
+ cstr.h || cstr.hue || cstr.H || 0,
1080
+ cstr.s || cstr.saturation || cstr.S || 0,
1081
+ cstr.l || cstr.lightness || cstr.L || cstr.b || cstr.brightness
1082
+ ];
1083
+ }
1084
+
1085
+ alpha = cstr.a || cstr.alpha || cstr.opacity || 1;
1086
+
1087
+ if (cstr.opacity != null) alpha /= 100;
1088
+ }
1089
+
1090
+ return {
1091
+ space: space,
1092
+ values: parts,
1093
+ alpha: alpha
1094
+ }
1095
+ }
1096
+ return colorParse;
1097
+ }
1098
+
1099
+ var colorParseExports = requireColorParse();
1100
+ var parse = /*@__PURE__*/getDefaultExportFromCjs(colorParseExports);
1101
+
1102
+ /**
1103
+ * RGB space.
1104
+ *
1105
+ * @module color-space/rgb
1106
+ */
1107
+ const rgb = {
1108
+ min: [0, 0, 0],
1109
+ max: [255, 255, 255]};
1110
+
1111
+ /**
1112
+ * @module color-space/hsl
1113
+ */
1114
+
1115
+ var hsl = {
1116
+ name: 'hsl',
1117
+ min: [0, 0, 0],
1118
+ max: [360, 100, 100],
1119
+ channel: ['hue', 'saturation', 'lightness'],
1120
+ alias: ['HSL'],
1121
+
1122
+ rgb: function (hsl) {
1123
+ var h = hsl[0] / 360, s = hsl[1] / 100, l = hsl[2] / 100, t1, t2, t3, rgb, val, i = 0;
1124
+
1125
+ if (s === 0) return val = l * 255, [val, val, val];
1126
+
1127
+ t2 = l < 0.5 ? l * (1 + s) : l + s - l * s;
1128
+ t1 = 2 * l - t2;
1129
+
1130
+ rgb = [0, 0, 0];
1131
+ for (; i < 3;) {
1132
+ t3 = h + 1 / 3 * - (i - 1);
1133
+ t3 < 0 ? t3++ : t3 > 1 && t3--;
1134
+ val = 6 * t3 < 1 ? t1 + (t2 - t1) * 6 * t3 :
1135
+ 2 * t3 < 1 ? t2 :
1136
+ 3 * t3 < 2 ? t1 + (t2 - t1) * (2 / 3 - t3) * 6 :
1137
+ t1;
1138
+ rgb[i++] = val * 255;
1139
+ }
1140
+
1141
+ return rgb;
1142
+ }
1143
+ };
1144
+
1145
+
1146
+ //extend rgb
1147
+ rgb.hsl = function (rgb) {
1148
+ var r = rgb[0] / 255,
1149
+ g = rgb[1] / 255,
1150
+ b = rgb[2] / 255,
1151
+ min = Math.min(r, g, b),
1152
+ max = Math.max(r, g, b),
1153
+ delta = max - min,
1154
+ h, s, l;
1155
+
1156
+ if (max === min) {
1157
+ h = 0;
1158
+ }
1159
+ else if (r === max) {
1160
+ h = (g - b) / delta;
1161
+ }
1162
+ else if (g === max) {
1163
+ h = 2 + (b - r) / delta;
1164
+ }
1165
+ else if (b === max) {
1166
+ h = 4 + (r - g) / delta;
1167
+ }
1168
+
1169
+ //FIXME h is possibly undefined
1170
+ //@ts-ignore
1171
+ h = Math.min(h * 60, 360);
1172
+
1173
+ if (h < 0) {
1174
+ h += 360;
1175
+ }
1176
+
1177
+ l = (min + max) / 2;
1178
+
1179
+ if (max === min) {
1180
+ s = 0;
1181
+ }
1182
+ else if (l <= 0.5) {
1183
+ s = delta / (max + min);
1184
+ }
1185
+ else {
1186
+ s = delta / (2 - max - min);
1187
+ }
1188
+
1189
+ return [h, s * 100, l * 100];
1190
+ };
1191
+
1192
+ var rgbaConvert = {exports: {}};
1193
+
1194
+ var hasRequiredRgbaConvert;
1195
+
1196
+ function requireRgbaConvert () {
1197
+ if (hasRequiredRgbaConvert) return rgbaConvert.exports;
1198
+ hasRequiredRgbaConvert = 1;
1199
+ rgbaConvert.exports = arr;
1200
+ rgbaConvert.exports.arr = arr;
1201
+ rgbaConvert.exports.obj = obj;
1202
+ rgbaConvert.exports.css = css;
1203
+ rgbaConvert.exports.hex = hex;
1204
+ rgbaConvert.exports.num = num;
1205
+
1206
+ function arr(data) {
1207
+ var a = parse(data);
1208
+ if (a.length == 3) {
1209
+ return a.concat(255)
1210
+ } else {
1211
+ a[3] = Math.round(a[3]);
1212
+ return a
1213
+ }
1214
+ }
1215
+
1216
+ function obj(data) {
1217
+ var a = parse(data);
1218
+ return {
1219
+ r: a[0],
1220
+ g: a[1],
1221
+ b: a[2],
1222
+ a: a.length == 3
1223
+ ? 255
1224
+ : Math.round(a[3])
1225
+ }
1226
+ }
1227
+
1228
+ function css(data) {
1229
+ var a = parse(data);
1230
+ if (a.length == 3) a.push(255);
1231
+
1232
+ return a[3] == 255
1233
+ ? 'rgb(' + a[0] + ', ' + a[1] + ', ' + a[2] + ')'
1234
+ : a[3] == 0
1235
+ ? 'rgba(' + a[0] + ', ' + a[1] + ', ' + a[2] + ', 0)'
1236
+ : 'rgba(' + a[0] + ', ' + a[1] + ', ' + a[2] + ', ' + String(a[3] / 255).substr(1) + ')'
1237
+ }
1238
+
1239
+ function hex(data) {
1240
+ var a = parse(data);
1241
+ if (a.length == 3) a.push(255);
1242
+ var opaque = a[3] == 255;
1243
+ var r = num2hex(a[0]);
1244
+ var g = num2hex(a[1]);
1245
+ var b = num2hex(a[2]);
1246
+ var a = num2hex(Math.round(a[3]));
1247
+ var is = isshort(r, g, b, a);
1248
+ if (opaque) {
1249
+ return is
1250
+ ? '#' + r.charAt(0) + g.charAt(0) + b.charAt(0)
1251
+ : '#' + r + g + b
1252
+ }
1253
+ return is
1254
+ ? '#' + r.charAt(0) + g.charAt(0) + b.charAt(0) + a.charAt(0)
1255
+ : '#' + r + g + b + a
1256
+ }
1257
+
1258
+ function num(data) {
1259
+ var a = parse(data);
1260
+ if (a.length == 3) a.push(255);
1261
+ else a[3] = Math.round(a[3]);
1262
+ return ((a[3] << 24) >>> 0 | a[0] << 16 | a[1] << 8 | a[2]) >>> 0
1263
+ }
1264
+
1265
+ function parse(data) {
1266
+ if (typeof data == 'string') {
1267
+ data = data.toLowerCase();
1268
+ return name(data)
1269
+ || hex3(data)
1270
+ || hex6(data)
1271
+ || rgb(data)
1272
+ || rgba(data)
1273
+ || [0, 0, 0, 255]
1274
+ }
1275
+ return object(data)
1276
+ || array(data)
1277
+ || number(data)
1278
+ || [0, 0, 0, 255]
1279
+ }
1280
+
1281
+ function num2hex(num) {
1282
+ var s = num.toString(16);
1283
+ return s.length == 1
1284
+ ? '0' + s
1285
+ : s
1286
+ }
1287
+
1288
+ function isshort(r, g, b, a) {
1289
+ var h = ['ff', '00', '11', '22', '33', '44', '55', '66',
1290
+ '77', '88', '99', 'aa', 'bb', 'cc', 'dd', 'ee'];
1291
+ return h.indexOf(r) != -1
1292
+ && h.indexOf(g) != -1
1293
+ && h.indexOf(b) != -1
1294
+ && h.indexOf(a) != -1
1295
+ }
1296
+
1297
+ function name(str) {
1298
+ if (str == 'red') return [255, 0, 0]
1299
+ if (str == 'green') return [0, 255, 0]
1300
+ if (str == 'blue') return [0, 0, 255]
1301
+ if (str == 'black') return [0, 0, 0]
1302
+ if (str == 'white') return [255, 255, 255]
1303
+ if (str == 'cyan') return [0, 255, 255]
1304
+ if (str == 'gray') return [128, 128, 128]
1305
+ if (str == 'grey') return [128, 128, 128]
1306
+ if (str == 'magenta') return [255, 0, 255]
1307
+ // ok, not the real css `pink` but my personal `magenta` alias
1308
+ // `pink` is simpler than `fuchsia`, whatever...
1309
+ if (str == 'pink') return [255, 0, 255]
1310
+ if (str == 'yellow') return [255, 255, 0]
1311
+ }
1312
+
1313
+ function hex2num(str) {
1314
+ return str.length == 1
1315
+ ? parseInt(str + str, 16)
1316
+ : parseInt(str, 16)
1317
+ }
1318
+
1319
+ function hex3(str) {
1320
+ var s = str.replace(/^#/,'');
1321
+ var l = s.length;
1322
+ if (l == 3 || l == 4) {
1323
+ var r = hex2num(s[0]);
1324
+ var g = hex2num(s[1]);
1325
+ var b = hex2num(s[2]);
1326
+ var a = l == 3
1327
+ ? 255
1328
+ : hex2num(s[3]);
1329
+
1330
+ if (isNaN(r) || isNaN(g) || isNaN(b) || isNaN(a)) return
1331
+
1332
+ return [r, g, b, a]
1333
+ }
1334
+ }
1335
+
1336
+ function hex6(str) {
1337
+ var s = str.replace(/^#/,'');
1338
+ var l = s.length;
1339
+ if (l == 6 || l == 8) {
1340
+ var r = hex2num(s.slice(0, 2));
1341
+ var g = hex2num(s.slice(2, 4));
1342
+ var b = hex2num(s.slice(4, 6));
1343
+ var a = l == 6
1344
+ ? 255
1345
+ : hex2num(s.slice(6, 8));
1346
+
1347
+ if (isNaN(r) || isNaN(g) || isNaN(b) || isNaN(a)) return
1348
+
1349
+ return [r, g, b, a]
1350
+ }
1351
+ }
1352
+
1353
+ function getnum(val, integer) {
1354
+ if (typeof val != 'number') return -1
1355
+ if (integer === true && Math.floor(val) !== val) return -1
1356
+ return val >= 0 && val <= 255
1357
+ ? val
1358
+ : -1
1359
+ }
1360
+
1361
+ function object(obj) {
1362
+ if (Object.prototype.toString.call(obj) === '[object Object]'
1363
+ && Object.getPrototypeOf(obj) === Object.getPrototypeOf({})) {
1364
+ var r = getnum(obj.r != undefined ? obj.r : obj.red != undefined ? obj.red : 0, true);
1365
+ var g = getnum(obj.g != undefined ? obj.g : obj.green != undefined ? obj.green : 0, true);
1366
+ var b = getnum(obj.b != undefined ? obj.b : obj.blue != undefined ? obj.blue : 0, true);
1367
+ var a = getnum(obj.a != undefined ? obj.a : obj.alpha != undefined ? obj.alpha : 255, true);
1368
+ if (r != -1 && g != -1 && b != -1 && a != -1) {
1369
+ return [r, g, b, a]
1370
+ }
1371
+ }
1372
+ }
1373
+
1374
+ function array(arr) {
1375
+ if (Array.isArray(arr) && (arr.length == 3 || arr.length == 4)) {
1376
+ var r = getnum(arr[0], true);
1377
+ var g = getnum(arr[1], true);
1378
+ var b = getnum(arr[2], true);
1379
+ var a = getnum(arr[3] != undefined ? arr[3] : 255, true);
1380
+ if (r != -1 && g != -1 && b != -1 && a != -1) {
1381
+ return [r, g, b, a]
1382
+ }
1383
+ }
1384
+ }
1385
+
1386
+ function number(num) {
1387
+ if (typeof num == 'number' && Math.floor(num) == num && num <= 4294967295 && num >= 0) {
1388
+ var a = num >> 24 & 255;
1389
+ var r = num >> 16 & 255;
1390
+ var g = num >> 8 & 255;
1391
+ var b = num & 255;
1392
+ return [r, g, b, a]
1393
+ }
1394
+ }
1395
+
1396
+ function rgb(str) {
1397
+ if (str.substr(0, 4) == 'rgb(') {
1398
+ str = str.match(/^rgb\(([^)]+)\)/)[1];
1399
+ var t = str.split(/ *, */).map(Number);
1400
+ var r = getnum(t[0], true);
1401
+ var g = getnum(t[1], true);
1402
+ var b = getnum(t[2], true);
1403
+ if (r != -1 && g != -1 && b != -1) {
1404
+ return [r, g, b, 255]
1405
+ }
1406
+ }
1407
+ }
1408
+
1409
+ function rgba(str) {
1410
+ if (str.substr(0, 5) == 'rgba(') {
1411
+ str = str.match(/^rgba\(([^)]+)\)/)[1];
1412
+ var t = str.split(/ *, */).map(Number);
1413
+ var r = getnum(t[0], true);
1414
+ var g = getnum(t[1], true);
1415
+ var b = getnum(t[2], true);
1416
+ var a = getnum(t[3] * 255);
1417
+ if (r != -1 && g != -1 && b != -1 && a != -1) {
1418
+ return [r, g, b, a]
1419
+ }
1420
+ }
1421
+ }
1422
+ return rgbaConvert.exports;
1423
+ }
1424
+
1425
+ var rgbaConvertExports = requireRgbaConvert();
1426
+ var rgba = /*@__PURE__*/getDefaultExportFromCjs(rgbaConvertExports);
1427
+
1428
+ var n=.2126,r=.7152,t=.0722,e=1/12.92;function u(n){return Math.pow((n+.055)/1.055,2.4)}function a(a){var i=a[0]/255,c=a[1]/255,o=a[2]/255,s=i<=.03928?i*e:u(i),f=c<=.03928?c*e:u(c),l=o<=.03928?o*e:u(o);return s*n+f*r+l*t}function i(n){var r=255;8===(n=n.replace(/^#/,"")).length&&(r=parseInt(n.slice(6,8),16),n=n.substring(0,6)),4===n.length&&(r=parseInt(n.slice(3,4).repeat(2),16),n=n.substring(0,3)),3===n.length&&(n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]);var t=parseInt(n,16);return [t>>16,t>>8&255,255&t,r]}function c(n,r){return (Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function o(n,r){return c(a(n),a(r))}function s(n,r){return o(i(n),i(r))}function f(n){return n>=7?"AAA":n>=4.5?"AA":n>=3?"AA Large":"Fail"}
1429
+
1430
+ const OBJECT_OBJECT = /\[object Object\]/;
1431
+ const objectObjectHandler = (value, cb) => {
1432
+ if (typeof value === 'string' && OBJECT_OBJECT.test(value)) {
1433
+ return;
1434
+ }
1435
+ cb();
1436
+ };
1437
+ const setEventTarget = (event, target) => {
1438
+ if (getExperimentalMode()) {
1439
+ Log.debug([event, target]);
1440
+ Log.debug(`↑ We propagate the (submit) event to this target.`);
1441
+ }
1442
+ Object.defineProperty(event, 'target', {
1443
+ value: target,
1444
+ writable: false,
1445
+ });
1446
+ };
1447
+ const stringifyJson = (value) => {
1448
+ try {
1449
+ return JSON.stringify(value).replace(/"/g, "'");
1450
+ }
1451
+ catch (_a) {
1452
+ Log.warn(['stringifyJson', value]);
1453
+ Log.error(`↑ The JSON could not be converted to a string. A stringifiable JSON is expected.`);
1454
+ throw new Error();
1455
+ }
1456
+ };
1457
+ const JSON_CHARS = /^[{[]/;
1458
+ const parseJson = (value) => {
1459
+ if (typeof value === 'string') {
1460
+ try {
1461
+ return JSON.parse(value);
1462
+ }
1463
+ catch (_a) {
1464
+ if (JSON_CHARS.test(value)) {
1465
+ try {
1466
+ return JSON.parse(value.replace(/'/g, '"'));
1467
+ }
1468
+ catch (_b) {
1469
+ Log.warn(['parseJson', value]);
1470
+ Log.error(`↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (&#8216;).`);
1471
+ }
1472
+ }
1473
+ }
1474
+ }
1475
+ throw new Error();
1476
+ };
1477
+ const traverseShadowDom = (rootNode, onNode) => {
1478
+ if (!rootNode) {
1479
+ return;
1480
+ }
1481
+ const visited = new Set();
1482
+ const queue = [rootNode];
1483
+ let index = 0;
1484
+ while (index < queue.length) {
1485
+ const current = queue[index++];
1486
+ if (visited.has(current)) {
1487
+ continue;
1488
+ }
1489
+ visited.add(current);
1490
+ if (onNode(current)) {
1491
+ return;
1492
+ }
1493
+ const children = Array.from(current.children || []);
1494
+ for (let i = 0; i < children.length; i++) {
1495
+ queue.push(children[i]);
1496
+ }
1497
+ if (current instanceof HTMLElement && current.shadowRoot) {
1498
+ queue.push(current.shadowRoot);
1499
+ }
1500
+ if (current instanceof HTMLSlotElement) {
1501
+ const assigned = current.assignedNodes({ flatten: true });
1502
+ for (let i = 0; i < assigned.length; i++) {
1503
+ if (assigned[i] instanceof Element) {
1504
+ queue.push(assigned[i]);
1505
+ }
1506
+ }
1507
+ }
1508
+ }
1509
+ };
1510
+ const querySelectorShadow = (selector, rootNode) => {
1511
+ let result = null;
1512
+ traverseShadowDom(rootNode, (current) => {
1513
+ if (current instanceof Element && current.matches(selector)) {
1514
+ result = current;
1515
+ return true;
1516
+ }
1517
+ return false;
1518
+ });
1519
+ return result;
1520
+ };
1521
+ const querySelectorAllShadow = (selector, rootNode) => {
1522
+ const results = [];
1523
+ traverseShadowDom(rootNode, (current) => {
1524
+ if (current instanceof Element && current.matches(selector)) {
1525
+ results.push(current);
1526
+ }
1527
+ return false;
1528
+ });
1529
+ return results;
1530
+ };
1531
+ const koliBriQuerySelector = (selector, node) => querySelectorShadow(selector, node || getDocument());
1532
+ const koliBriQuerySelectorAll = (selector, node) => querySelectorAllShadow(selector, node || getDocument());
1533
+ let DEFAULT_COLOR_CONTRAST = null;
1534
+ const getDefaultColorContrast = () => {
1535
+ DEFAULT_COLOR_CONTRAST = DEFAULT_COLOR_CONTRAST || {
1536
+ backgroundColor: '#00000000',
1537
+ color: '#00000000',
1538
+ domNode: getDocument().body,
1539
+ level: 'Fail',
1540
+ score: 1,
1541
+ };
1542
+ return DEFAULT_COLOR_CONTRAST;
1543
+ };
1544
+ const TRANSPARENT_REGEXP = /(\d+, ){3}0\)/;
1545
+ const koliBriA11yColorContrast = (domNode, a11yColorContrast = getDefaultColorContrast()) => {
1546
+ const computedStyle = getComputedStyle(domNode);
1547
+ const hexBG = TRANSPARENT_REGEXP.test(computedStyle.backgroundColor) ? a11yColorContrast.backgroundColor : rgba.hex(computedStyle.backgroundColor);
1548
+ const hexC = TRANSPARENT_REGEXP.test(computedStyle.color) ? a11yColorContrast.color : rgba.hex(computedStyle.color);
1549
+ const diff = s(hexBG, hexC);
1550
+ const contrast = {
1551
+ backgroundColor: hexBG,
1552
+ color: hexC,
1553
+ domNode: domNode,
1554
+ level: f(diff),
1555
+ score: diff,
1556
+ };
1557
+ if (diff < 4.5) {
1558
+ Log.error([
1559
+ 'Color-Contrast-Error',
1560
+ {
1561
+ backgroundColor: contrast.backgroundColor,
1562
+ color: contrast.color,
1563
+ level: contrast.level,
1564
+ score: contrast.score,
1565
+ },
1566
+ contrast.domNode,
1567
+ ]);
1568
+ }
1569
+ return contrast;
1570
+ };
1571
+ const koliBriQuerySelectorColors = (selector, a11yColorContrast = getDefaultColorContrast()) => {
1572
+ if (a11yColorContrast.domNode instanceof HTMLElement) {
1573
+ a11yColorContrast = koliBriA11yColorContrast(a11yColorContrast.domNode, a11yColorContrast);
1574
+ }
1575
+ const selectedNode = a11yColorContrast.domNode.querySelector(selector);
1576
+ if (selectedNode === null) {
1577
+ const nodeList = a11yColorContrast.domNode.querySelectorAll('[class="hydrated"]');
1578
+ for (let i = 0; i < nodeList.length; i++) {
1579
+ a11yColorContrast.domNode = nodeList[i];
1580
+ a11yColorContrast = koliBriQuerySelectorColors(selector, a11yColorContrast);
1581
+ if (a11yColorContrast.domNode !== null) {
1582
+ break;
1583
+ }
1584
+ }
1585
+ return a11yColorContrast;
1586
+ }
1587
+ else {
1588
+ return koliBriA11yColorContrast(selectedNode, a11yColorContrast);
1589
+ }
1590
+ };
1591
+ class KoliBriUtils {
1592
+ static queryHtmlElementColors(targetNode, a11yColorContrast, recursion = false, log = true) {
1593
+ let returnValue = null;
1594
+ if (recursion === true || KoliBriUtils.executionLock === false) {
1595
+ if (recursion === false) {
1596
+ KoliBriUtils.cache.clear();
1597
+ KoliBriUtils.cache.set(a11yColorContrast.domNode, a11yColorContrast);
1598
+ KoliBriUtils.executionLock = true;
1599
+ if (log === true) {
1600
+ Log.debug(`[KoliBriUtils] Color contrast analysis started...`);
1601
+ }
1602
+ }
1603
+ if (targetNode === a11yColorContrast.domNode) {
1604
+ returnValue = a11yColorContrast;
1605
+ }
1606
+ else {
1607
+ const children = new Set();
1608
+ if (a11yColorContrast.domNode.shadowRoot) {
1609
+ const shadowChildren = a11yColorContrast.domNode.shadowRoot.children;
1610
+ for (let i = 0; i < shadowChildren.length; i++) {
1611
+ children.add(shadowChildren[i]);
1612
+ }
1613
+ }
1614
+ const slotElement = a11yColorContrast.domNode;
1615
+ if (typeof slotElement.assignedNodes === 'function') {
1616
+ const slotChildren = slotElement.assignedNodes();
1617
+ for (let i = 0; i < slotChildren.length; i++) {
1618
+ if (slotChildren[i] instanceof HTMLElement) {
1619
+ children.add(slotChildren[i]);
1620
+ }
1621
+ }
1622
+ }
1623
+ const domChildren = a11yColorContrast.domNode.children;
1624
+ for (let i = 0; i < domChildren.length; i++) {
1625
+ children.add(domChildren[i]);
1626
+ }
1627
+ const arrayChildren = Array.from(children);
1628
+ for (let i = 0; i < arrayChildren.length; i++) {
1629
+ let colorContrast = KoliBriUtils.cache.get(arrayChildren[i]);
1630
+ if (colorContrast === undefined) {
1631
+ colorContrast = koliBriA11yColorContrast(arrayChildren[i], a11yColorContrast);
1632
+ }
1633
+ KoliBriUtils.cache.set(arrayChildren[i], colorContrast);
1634
+ const colors = KoliBriUtils.queryHtmlElementColors(targetNode, colorContrast, true, false);
1635
+ if (colors !== null) {
1636
+ returnValue = colors;
1637
+ break;
1638
+ }
1639
+ }
1640
+ }
1641
+ }
1642
+ else {
1643
+ Log.debug(`[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.`);
1644
+ }
1645
+ if (recursion === false) {
1646
+ if (log === true) {
1647
+ Log.debug(`[KoliBriUtils] Color contrast analysis finished (${KoliBriUtils.cache.size} DOM elements are analysed).`);
1648
+ }
1649
+ KoliBriUtils.executionLock = false;
1650
+ KoliBriUtils.cache.clear();
1651
+ }
1652
+ return returnValue;
1653
+ }
1654
+ }
1655
+ KoliBriUtils.executionLock = false;
1656
+ KoliBriUtils.cache = new Map();
1657
+ class KoliBriDevHelper {
1658
+ }
1659
+ KoliBriDevHelper.getCssStyle = T;
1660
+ KoliBriDevHelper.patchTheme = z;
1661
+ KoliBriDevHelper.patchThemeTag = D;
1662
+ KoliBriDevHelper.querySelector = koliBriQuerySelector;
1663
+ KoliBriDevHelper.querySelectorAll = koliBriQuerySelectorAll;
1664
+ KoliBriDevHelper.stringifyJson = stringifyJson;
1665
+
1666
+ /*
1667
+ Stencil Client Platform v4.45.3 | MIT Licensed | https://stenciljs.com
1668
+ */
1669
+
1670
+
1671
+ // src/utils/constants.ts
1672
+ var SVG_NS = "http://www.w3.org/2000/svg";
1673
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
1674
+ var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
1675
+ PrimitiveType2["Undefined"] = "undefined";
1676
+ PrimitiveType2["Null"] = "null";
1677
+ PrimitiveType2["String"] = "string";
1678
+ PrimitiveType2["Number"] = "number";
1679
+ PrimitiveType2["SpecialNumber"] = "number";
1680
+ PrimitiveType2["Boolean"] = "boolean";
1681
+ PrimitiveType2["BigInt"] = "bigint";
1682
+ return PrimitiveType2;
1683
+ })(PrimitiveType || {});
1684
+ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
1685
+ NonPrimitiveType2["Array"] = "array";
1686
+ NonPrimitiveType2["Date"] = "date";
1687
+ NonPrimitiveType2["Map"] = "map";
1688
+ NonPrimitiveType2["Object"] = "object";
1689
+ NonPrimitiveType2["RegularExpression"] = "regexp";
1690
+ NonPrimitiveType2["Set"] = "set";
1691
+ NonPrimitiveType2["Channel"] = "channel";
1692
+ NonPrimitiveType2["Symbol"] = "symbol";
1693
+ return NonPrimitiveType2;
1694
+ })(NonPrimitiveType || {});
1695
+ var TYPE_CONSTANT = "type";
1696
+ var VALUE_CONSTANT = "value";
1697
+ var SERIALIZED_PREFIX = "serialized:";
1698
+
1699
+ // src/utils/get-prop-descriptor.ts
1700
+ function getPropertyDescriptor(obj, memberName, getOnly) {
1701
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
1702
+ while (obj && obj !== stopAt) {
1703
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
1704
+ if (desc && (!getOnly || desc.get)) return desc;
1705
+ obj = Object.getPrototypeOf(obj);
1706
+ }
1707
+ return void 0;
1708
+ }
1709
+
1710
+ // src/utils/es2022-rewire-class-members.ts
1711
+ var reWireGetterSetter = (instance, hostRef) => {
1712
+ var _a;
1713
+ const cmpMeta = hostRef.$cmpMeta$;
1714
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1715
+ members.map(([memberName, [memberFlags]]) => {
1716
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
1717
+ const ogValue = instance[memberName];
1718
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
1719
+ if (ogDescriptor) {
1720
+ Object.defineProperty(instance, memberName, {
1721
+ get() {
1722
+ return ogDescriptor.get.call(this);
1723
+ },
1724
+ set(newValue) {
1725
+ ogDescriptor.set.call(this, newValue);
1726
+ },
1727
+ configurable: true,
1728
+ enumerable: true
1729
+ });
1730
+ }
1731
+ if (hostRef.$instanceValues$.has(memberName)) {
1732
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
1733
+ } else if (ogValue !== void 0) {
1734
+ instance[memberName] = ogValue;
1735
+ }
1736
+ }
1737
+ });
1738
+ };
1739
+
1740
+ // src/client/client-host-ref.ts
1741
+ var getHostRef = (ref) => {
1742
+ if (ref.__stencil__getHostRef) {
1743
+ return ref.__stencil__getHostRef();
1744
+ }
1745
+ return void 0;
1746
+ };
1747
+ var registerInstance = (lazyInstance, hostRef) => {
1748
+ if (!hostRef) return;
1749
+ lazyInstance.__stencil__getHostRef = () => hostRef;
1750
+ hostRef.$lazyInstance$ = lazyInstance;
1751
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
1752
+ reWireGetterSetter(lazyInstance, hostRef);
1753
+ }
1754
+ };
1755
+ var registerHost = (hostElement, cmpMeta) => {
1756
+ const hostRef = {
1757
+ $flags$: 0,
1758
+ $hostElement$: hostElement,
1759
+ $cmpMeta$: cmpMeta,
1760
+ $instanceValues$: /* @__PURE__ */ new Map(),
1761
+ $serializerValues$: /* @__PURE__ */ new Map()
1762
+ };
1763
+ {
1764
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
1765
+ }
1766
+ {
1767
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
1768
+ hostElement["s-p"] = [];
1769
+ hostElement["s-rc"] = [];
1770
+ }
1771
+ {
1772
+ hostRef.$fetchedCbList$ = [];
1773
+ }
1774
+ const ref = hostRef;
1775
+ hostElement.__stencil__getHostRef = () => ref;
1776
+ return ref;
1777
+ };
1778
+ var isMemberInElement = (elm, memberName) => memberName in elm;
1779
+ var consoleError = (e, el) => (0, console.error)(e, el);
1780
+
1781
+ // src/client/client-load-module.ts
1782
+ var cmpModules = /* @__PURE__ */ new Map();
1783
+ var failedLoadAttempts = /* @__PURE__ */ new Map();
1784
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1785
+ var _a;
1786
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
1787
+ const bundleId = cmpMeta.$lazyBundleId$;
1788
+ if (!bundleId) {
1789
+ return void 0;
1790
+ }
1791
+ const module = cmpModules.get(bundleId) ;
1792
+ if (module) {
1793
+ return module[exportName];
1794
+ }
1795
+ const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;
1796
+ const cacheBustParams = [
1797
+ retryCount > 0 ? `s-retry=${retryCount}` : "",
1798
+ ""
1799
+ ].filter(Boolean).join("&");
1800
+
1801
+ {
1802
+ const processMod = importedModule => {
1803
+ cmpModules.set(bundleId, importedModule);
1804
+ return importedModule[exportName];
1805
+ };
1806
+ switch(bundleId) {
1807
+
1808
+ case 'kol-abbr':
1809
+ return Promise.resolve().then(function () { return require(
1810
+ /* webpackMode: "lazy" */
1811
+ './kol-abbr.entry-vXy8tkfC.js'); }).then(processMod, consoleError);
1812
+ case 'kol-accordion':
1813
+ return Promise.resolve().then(function () { return require(
1814
+ /* webpackMode: "lazy" */
1815
+ './kol-accordion.entry-DlfL8K5B.js'); }).then(processMod, consoleError);
1816
+ case 'kol-alert':
1817
+ return Promise.resolve().then(function () { return require(
1818
+ /* webpackMode: "lazy" */
1819
+ './kol-alert.entry-BSoN_9JY.js'); }).then(processMod, consoleError);
1820
+ case 'kol-avatar':
1821
+ return Promise.resolve().then(function () { return require(
1822
+ /* webpackMode: "lazy" */
1823
+ './kol-avatar.entry-BTWt7leQ.js'); }).then(processMod, consoleError);
1824
+ case 'kol-badge':
1825
+ return Promise.resolve().then(function () { return require(
1826
+ /* webpackMode: "lazy" */
1827
+ './kol-badge.entry-iHLDICRD.js'); }).then(processMod, consoleError);
1828
+ case 'kol-breadcrumb':
1829
+ return Promise.resolve().then(function () { return require(
1830
+ /* webpackMode: "lazy" */
1831
+ './kol-breadcrumb.entry-Cjli4lJk.js'); }).then(processMod, consoleError);
1832
+ case 'kol-button':
1833
+ return Promise.resolve().then(function () { return require(
1834
+ /* webpackMode: "lazy" */
1835
+ './kol-button.entry-PJhmI8Sb.js'); }).then(processMod, consoleError);
1836
+ case 'kol-button-link':
1837
+ return Promise.resolve().then(function () { return require(
1838
+ /* webpackMode: "lazy" */
1839
+ './kol-button-link.entry-D0tpwXhh.js'); }).then(processMod, consoleError);
1840
+ case 'kol-card':
1841
+ return Promise.resolve().then(function () { return require(
1842
+ /* webpackMode: "lazy" */
1843
+ './kol-card.entry-DICGVwpp.js'); }).then(processMod, consoleError);
1844
+ case 'kol-details':
1845
+ return Promise.resolve().then(function () { return require(
1846
+ /* webpackMode: "lazy" */
1847
+ './kol-details.entry-D0e4DD0G.js'); }).then(processMod, consoleError);
1848
+ case 'kol-dialog':
1849
+ return Promise.resolve().then(function () { return require(
1850
+ /* webpackMode: "lazy" */
1851
+ './kol-dialog.entry-Dl1tatrP.js'); }).then(processMod, consoleError);
1852
+ case 'kol-drawer':
1853
+ return Promise.resolve().then(function () { return require(
1854
+ /* webpackMode: "lazy" */
1855
+ './kol-drawer.entry-B5bf_Ygn.js'); }).then(processMod, consoleError);
1856
+ case 'kol-form':
1857
+ return Promise.resolve().then(function () { return require(
1858
+ /* webpackMode: "lazy" */
1859
+ './kol-form.entry-DzeQve42.js'); }).then(processMod, consoleError);
1860
+ case 'kol-heading':
1861
+ return Promise.resolve().then(function () { return require(
1862
+ /* webpackMode: "lazy" */
1863
+ './kol-heading.entry-CwqmgXUS.js'); }).then(processMod, consoleError);
1864
+ case 'kol-icon':
1865
+ return Promise.resolve().then(function () { return require(
1866
+ /* webpackMode: "lazy" */
1867
+ './kol-icon.entry-CXVnSfdK.js'); }).then(processMod, consoleError);
1868
+ case 'kol-image':
1869
+ return Promise.resolve().then(function () { return require(
1870
+ /* webpackMode: "lazy" */
1871
+ './kol-image.entry-2UshvJbB.js'); }).then(processMod, consoleError);
1872
+ case 'kol-input-checkbox':
1873
+ return Promise.resolve().then(function () { return require(
1874
+ /* webpackMode: "lazy" */
1875
+ './kol-input-checkbox.entry-DuxJ4K37.js'); }).then(processMod, consoleError);
1876
+ case 'kol-input-color':
1877
+ return Promise.resolve().then(function () { return require(
1878
+ /* webpackMode: "lazy" */
1879
+ './kol-input-color.entry-2P1VK_Nn.js'); }).then(processMod, consoleError);
1880
+ case 'kol-input-date':
1881
+ return Promise.resolve().then(function () { return require(
1882
+ /* webpackMode: "lazy" */
1883
+ './kol-input-date.entry-1oMHl1vG.js'); }).then(processMod, consoleError);
1884
+ case 'kol-input-email':
1885
+ return Promise.resolve().then(function () { return require(
1886
+ /* webpackMode: "lazy" */
1887
+ './kol-input-email.entry-CxKE1-QV.js'); }).then(processMod, consoleError);
1888
+ case 'kol-input-file':
1889
+ return Promise.resolve().then(function () { return require(
1890
+ /* webpackMode: "lazy" */
1891
+ './kol-input-file.entry-T5K_9_NM.js'); }).then(processMod, consoleError);
1892
+ case 'kol-input-number':
1893
+ return Promise.resolve().then(function () { return require(
1894
+ /* webpackMode: "lazy" */
1895
+ './kol-input-number.entry-DSEAmFMI.js'); }).then(processMod, consoleError);
1896
+ case 'kol-input-password':
1897
+ return Promise.resolve().then(function () { return require(
1898
+ /* webpackMode: "lazy" */
1899
+ './kol-input-password.entry-CVy2U3X0.js'); }).then(processMod, consoleError);
1900
+ case 'kol-input-radio':
1901
+ return Promise.resolve().then(function () { return require(
1902
+ /* webpackMode: "lazy" */
1903
+ './kol-input-radio.entry-CAuQGZYt.js'); }).then(processMod, consoleError);
1904
+ case 'kol-input-text':
1905
+ return Promise.resolve().then(function () { return require(
1906
+ /* webpackMode: "lazy" */
1907
+ './kol-input-text.entry-ConfFR_K.js'); }).then(processMod, consoleError);
1908
+ case 'kol-kolibri':
1909
+ return Promise.resolve().then(function () { return require(
1910
+ /* webpackMode: "lazy" */
1911
+ './kol-kolibri.entry-CZVJE2wv.js'); }).then(processMod, consoleError);
1912
+ case 'kol-link':
1913
+ return Promise.resolve().then(function () { return require(
1914
+ /* webpackMode: "lazy" */
1915
+ './kol-link.entry-BGi6OGH-.js'); }).then(processMod, consoleError);
1916
+ case 'kol-link-button':
1917
+ return Promise.resolve().then(function () { return require(
1918
+ /* webpackMode: "lazy" */
1919
+ './kol-link-button.entry-CutGwpy4.js'); }).then(processMod, consoleError);
1920
+ case 'kol-modal':
1921
+ return Promise.resolve().then(function () { return require(
1922
+ /* webpackMode: "lazy" */
1923
+ './kol-modal.entry-B-uPnZY7.js'); }).then(processMod, consoleError);
1924
+ case 'kol-nav':
1925
+ return Promise.resolve().then(function () { return require(
1926
+ /* webpackMode: "lazy" */
1927
+ './kol-nav.entry-D_Vzzpei.js'); }).then(processMod, consoleError);
1928
+ case 'kol-pagination':
1929
+ return Promise.resolve().then(function () { return require(
1930
+ /* webpackMode: "lazy" */
1931
+ './kol-pagination.entry-DC6RnzZM.js'); }).then(processMod, consoleError);
1932
+ case 'kol-popover-button':
1933
+ return Promise.resolve().then(function () { return require(
1934
+ /* webpackMode: "lazy" */
1935
+ './kol-popover-button.entry-DCuMKVV1.js'); }).then(processMod, consoleError);
1936
+ case 'kol-progress':
1937
+ return Promise.resolve().then(function () { return require(
1938
+ /* webpackMode: "lazy" */
1939
+ './kol-progress.entry-CrVB7Lby.js'); }).then(processMod, consoleError);
1940
+ case 'kol-quote':
1941
+ return Promise.resolve().then(function () { return require(
1942
+ /* webpackMode: "lazy" */
1943
+ './kol-quote.entry-BoyX7ERY.js'); }).then(processMod, consoleError);
1944
+ case 'kol-select':
1945
+ return Promise.resolve().then(function () { return require(
1946
+ /* webpackMode: "lazy" */
1947
+ './kol-select.entry-6Q7DoxPg.js'); }).then(processMod, consoleError);
1948
+ case 'kol-skip-nav':
1949
+ return Promise.resolve().then(function () { return require(
1950
+ /* webpackMode: "lazy" */
1951
+ './kol-skip-nav.entry-D47uNPxq.js'); }).then(processMod, consoleError);
1952
+ case 'kol-spin':
1953
+ return Promise.resolve().then(function () { return require(
1954
+ /* webpackMode: "lazy" */
1955
+ './kol-spin.entry-UQi3gbnc.js'); }).then(processMod, consoleError);
1956
+ case 'kol-split-button':
1957
+ return Promise.resolve().then(function () { return require(
1958
+ /* webpackMode: "lazy" */
1959
+ './kol-split-button.entry-iqGx05hp.js'); }).then(processMod, consoleError);
1960
+ case 'kol-table-stateful':
1961
+ return Promise.resolve().then(function () { return require(
1962
+ /* webpackMode: "lazy" */
1963
+ './kol-table-stateful.entry-DqyiQJuV.js'); }).then(processMod, consoleError);
1964
+ case 'kol-table-stateless':
1965
+ return Promise.resolve().then(function () { return require(
1966
+ /* webpackMode: "lazy" */
1967
+ './kol-table-stateless.entry-HO5w-yoL.js'); }).then(processMod, consoleError);
1968
+ case 'kol-tabs':
1969
+ return Promise.resolve().then(function () { return require(
1970
+ /* webpackMode: "lazy" */
1971
+ './kol-tabs.entry-BLiZCkhW.js'); }).then(processMod, consoleError);
1972
+ case 'kol-textarea':
1973
+ return Promise.resolve().then(function () { return require(
1974
+ /* webpackMode: "lazy" */
1975
+ './kol-textarea.entry--x3xgZUB.js'); }).then(processMod, consoleError);
1976
+ case 'kol-toast-container':
1977
+ return Promise.resolve().then(function () { return require(
1978
+ /* webpackMode: "lazy" */
1979
+ './kol-toast-container.entry-BLqOuOV3.js'); }).then(processMod, consoleError);
1980
+ case 'kol-toolbar':
1981
+ return Promise.resolve().then(function () { return require(
1982
+ /* webpackMode: "lazy" */
1983
+ './kol-toolbar.entry-DRKVAZ8i.js'); }).then(processMod, consoleError);
1984
+ case 'kol-tree':
1985
+ return Promise.resolve().then(function () { return require(
1986
+ /* webpackMode: "lazy" */
1987
+ './kol-tree.entry-D8g1oLrh.js'); }).then(processMod, consoleError);
1988
+ case 'kol-tree-item':
1989
+ return Promise.resolve().then(function () { return require(
1990
+ /* webpackMode: "lazy" */
1991
+ './kol-tree-item.entry-By_K31wa.js'); }).then(processMod, consoleError);
1992
+ case 'kol-version':
1993
+ return Promise.resolve().then(function () { return require(
1994
+ /* webpackMode: "lazy" */
1995
+ './kol-version.entry-BPai8La9.js'); }).then(processMod, consoleError);
1996
+ case 'kol-combobox':
1997
+ return Promise.resolve().then(function () { return require(
1998
+ /* webpackMode: "lazy" */
1999
+ './kol-combobox.entry-knkAeqUE.js'); }).then(processMod, consoleError);
2000
+ case 'kol-input-range':
2001
+ return Promise.resolve().then(function () { return require(
2002
+ /* webpackMode: "lazy" */
2003
+ './kol-input-range.entry-DWH6ku6R.js'); }).then(processMod, consoleError);
2004
+ case 'kol-meter':
2005
+ return Promise.resolve().then(function () { return require(
2006
+ /* webpackMode: "lazy" */
2007
+ './kol-meter.entry-DmZr5NfI.js'); }).then(processMod, consoleError);
2008
+ case 'kol-single-select':
2009
+ return Promise.resolve().then(function () { return require(
2010
+ /* webpackMode: "lazy" */
2011
+ './kol-single-select.entry-SVOaIf8O.js'); }).then(processMod, consoleError);
2012
+ case 'test-component':
2013
+ return Promise.resolve().then(function () { return require(
2014
+ /* webpackMode: "lazy" */
2015
+ './test-component.entry-B_voa1f2.js'); }).then(processMod, consoleError);
2016
+ }
2017
+ }
2018
+ return (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(
2019
+ /* @vite-ignore */
2020
+ /* turbopackIgnore: true */
2021
+ /* webpackInclude: /\.entry\.js$/ */
2022
+ /* webpackExclude: /\.system\.entry\.js$/ */
2023
+ /* webpackMode: "lazy" */
2024
+ `./${bundleId}.entry.js${cacheBustParams ? "?" + cacheBustParams : ""}`
2025
+ ).then(
2026
+ (importedModule) => {
2027
+ {
2028
+ failedLoadAttempts.delete(bundleId);
2029
+ cmpModules.set(bundleId, importedModule);
2030
+ }
2031
+ return importedModule[exportName];
2032
+ },
2033
+ (e) => {
2034
+ failedLoadAttempts.set(bundleId, retryCount + 1);
2035
+ consoleError(e, hostRef.$hostElement$);
2036
+ }
2037
+ );
2038
+ };
2039
+
2040
+ // src/client/client-style.ts
2041
+ var styles = /* @__PURE__ */ new Map();
2042
+ var modeResolver = [];
2043
+
2044
+ // src/runtime/runtime-constants.ts
2045
+ var CONTENT_REF_ID = "r";
2046
+ var ORG_LOCATION_ID = "o";
2047
+ var SLOT_NODE_ID = "s";
2048
+ var TEXT_NODE_ID = "t";
2049
+ var COMMENT_NODE_ID = "c";
2050
+ var HYDRATE_ID = "s-id";
2051
+ var HYDRATED_STYLE_ID = "sty-id";
2052
+ var HYDRATE_CHILD_ID = "c-id";
2053
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
2054
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
2055
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
2056
+ var MAX_LAZY_LOAD_RETRIES = 3;
2057
+ var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
2058
+ var win = typeof window !== "undefined" ? window : {};
2059
+ var plt = {
2060
+ $flags$: 0,
2061
+ $resourcesUrl$: "",
2062
+ jmp: (h2) => h2(),
2063
+ raf: (h2) => requestAnimationFrame(h2),
2064
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2065
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2066
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
2067
+ };
2068
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
2069
+ var _a;
2070
+ let supportsListenerOptions2 = false;
2071
+ try {
2072
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
2073
+ "e",
2074
+ null,
2075
+ Object.defineProperty({}, "passive", {
2076
+ get() {
2077
+ supportsListenerOptions2 = true;
2078
+ }
2079
+ })
2080
+ );
2081
+ } catch (e) {
2082
+ }
2083
+ return supportsListenerOptions2;
2084
+ })();
2085
+ var promiseResolve = (v) => Promise.resolve(v);
2086
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
2087
+ try {
2088
+ if (!win.document.adoptedStyleSheets) {
2089
+ return false;
2090
+ }
2091
+ new CSSStyleSheet();
2092
+ return typeof new CSSStyleSheet().replaceSync === "function";
2093
+ } catch (e) {
2094
+ }
2095
+ return false;
2096
+ })() ;
2097
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
2098
+ var queuePending = false;
2099
+ var queueDomReads = [];
2100
+ var queueDomWrites = [];
2101
+ var scheduleFlush = () => {
2102
+ var _a;
2103
+ return ((_a = win.document) == null ? void 0 : _a.hidden) ? setTimeout(flush, 16) : plt.raf(flush);
2104
+ };
2105
+ var queueTask = (queue, write) => (cb) => {
2106
+ queue.push(cb);
2107
+ if (!queuePending) {
2108
+ queuePending = true;
2109
+ if (plt.$flags$ & 4 /* queueSync */) {
2110
+ nextTick(flush);
2111
+ } else {
2112
+ scheduleFlush();
2113
+ }
2114
+ }
2115
+ };
2116
+ var consume = (queue) => {
2117
+ for (let i2 = 0; i2 < queue.length; i2++) {
2118
+ try {
2119
+ queue[i2](performance.now());
2120
+ } catch (e) {
2121
+ consoleError(e);
2122
+ }
2123
+ }
2124
+ queue.length = 0;
2125
+ };
2126
+ var flush = () => {
2127
+ consume(queueDomReads);
2128
+ {
2129
+ consume(queueDomWrites);
2130
+ if (queuePending = queueDomReads.length > 0) {
2131
+ scheduleFlush();
2132
+ }
2133
+ }
2134
+ };
2135
+ var nextTick = (cb) => promiseResolve().then(cb);
2136
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites);
2137
+
2138
+ // src/utils/style.ts
2139
+ function createStyleSheetIfNeededAndSupported(styles2) {
2140
+ return void 0;
2141
+ }
2142
+
2143
+ // src/utils/shadow-root.ts
2144
+ var globalStyleSheet;
2145
+ function createShadowRoot(cmpMeta) {
2146
+ var _a;
2147
+ const opts = { mode: "open" };
2148
+ const shadowRoot = this.attachShadow(opts);
2149
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
2150
+ if (globalStyleSheet) {
2151
+ if (supportsMutableAdoptedStyleSheets) {
2152
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
2153
+ } else {
2154
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
2155
+ }
2156
+ }
2157
+ }
2158
+ var getSlottedChildNodes = (childNodes) => {
2159
+ const result = [];
2160
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
2161
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
2162
+ if (slottedNode && slottedNode.isConnected) {
2163
+ result.push(slottedNode);
2164
+ }
2165
+ }
2166
+ return result;
2167
+ };
2168
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
2169
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
2170
+ return;
2171
+ }
2172
+ const slottedNodeLocation = document.createTextNode("");
2173
+ slottedNodeLocation["s-nr"] = newChild;
2174
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
2175
+ const parent = slotNode["s-cr"].parentNode;
2176
+ const appendMethod = internalCall(parent, "appendChild");
2177
+ if (typeof position !== "undefined") {
2178
+ slottedNodeLocation["s-oo"] = position;
2179
+ const childNodes = internalCall(parent, "childNodes");
2180
+ const slotRelocateNodes = [slottedNodeLocation];
2181
+ childNodes.forEach((n) => {
2182
+ if (n["s-nr"]) slotRelocateNodes.push(n);
2183
+ });
2184
+ slotRelocateNodes.sort((a, b) => {
2185
+ if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
2186
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
2187
+ return 0;
2188
+ });
2189
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
2190
+ } else {
2191
+ appendMethod.call(parent, slottedNodeLocation);
2192
+ }
2193
+ newChild["s-ol"] = slottedNodeLocation;
2194
+ newChild["s-sh"] = slotNode["s-hn"];
2195
+ };
2196
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
2197
+ function patchSlotNode(node) {
2198
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
2199
+ const assignedFactory = (elementsOnly) => (function(opts) {
2200
+ const toReturn = [];
2201
+ const slotName = this["s-sn"];
2202
+ if (opts == null ? void 0 : opts.flatten) {
2203
+ console.error(`
2204
+ Flattening is not supported for Stencil non-shadow slots.
2205
+ You can use \`.childNodes\` to nested slot fallback content.
2206
+ If you have a particular use case, please open an issue on the Stencil repo.
2207
+ `);
2208
+ }
2209
+ const parent = this["s-cr"].parentElement;
2210
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
2211
+ slottedNodes.forEach((n) => {
2212
+ if (slotName === getSlotName(n)) {
2213
+ toReturn.push(n);
2214
+ }
2215
+ });
2216
+ if (elementsOnly) {
2217
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
2218
+ }
2219
+ return toReturn;
2220
+ }).bind(node);
2221
+ node.assignedElements = assignedFactory(true);
2222
+ node.assignedNodes = assignedFactory(false);
2223
+ }
2224
+ function internalCall(node, method) {
2225
+ if ("__" + method in node) {
2226
+ const toReturn = node["__" + method];
2227
+ if (typeof toReturn !== "function") return toReturn;
2228
+ return toReturn.bind(node);
2229
+ } else {
2230
+ if (typeof node[method] !== "function") return node[method];
2231
+ return node[method].bind(node);
2232
+ }
2233
+ }
2234
+ var createTime = (fnName, tagName = "") => {
2235
+ {
2236
+ return () => {
2237
+ return;
2238
+ };
2239
+ }
2240
+ };
2241
+ var uniqueTime = (key, measureText) => {
2242
+ {
2243
+ return () => {
2244
+ return;
2245
+ };
2246
+ }
2247
+ };
2248
+
2249
+ // src/utils/query-nonce-meta-tag-content.ts
2250
+ function queryNonceMetaTagContent(doc) {
2251
+ var _a, _b, _c;
2252
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
2253
+ }
2254
+
2255
+ // src/runtime/styles.ts
2256
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
2257
+ var registerStyle = (scopeId2, cssText, allowCS) => {
2258
+ let style = styles.get(scopeId2);
2259
+ if (supportsConstructableStylesheets && allowCS) {
2260
+ style = style || new CSSStyleSheet();
2261
+ if (typeof style === "string") {
2262
+ style = cssText;
2263
+ } else {
2264
+ style.replaceSync(cssText);
2265
+ }
2266
+ } else {
2267
+ style = cssText;
2268
+ }
2269
+ styles.set(scopeId2, style);
2270
+ };
2271
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2272
+ var _a, _b, _c;
2273
+ const scopeId2 = getScopeId(cmpMeta, mode);
2274
+ const style = styles.get(scopeId2);
2275
+ if (!win.document) {
2276
+ return scopeId2;
2277
+ }
2278
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
2279
+ if (style) {
2280
+ if (typeof style === "string") {
2281
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
2282
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
2283
+ let styleElm;
2284
+ if (!appliedStyles) {
2285
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
2286
+ }
2287
+ const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
2288
+ if (existingStyleElm) {
2289
+ appliedStyles.add(scopeId2);
2290
+ } else if (!appliedStyles.has(scopeId2)) {
2291
+ styleElm = win.document.createElement("style");
2292
+ styleElm.textContent = style;
2293
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2294
+ if (nonce != null) {
2295
+ styleElm.setAttribute("nonce", nonce);
2296
+ }
2297
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
2298
+ if (styleContainerNode.nodeName === "HEAD") {
2299
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
2300
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
2301
+ styleContainerNode.insertBefore(
2302
+ styleElm,
2303
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
2304
+ );
2305
+ } else if ("host" in styleContainerNode) {
2306
+ if (supportsConstructableStylesheets) {
2307
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
2308
+ const stylesheet = new currentWindow.CSSStyleSheet();
2309
+ stylesheet.replaceSync(style);
2310
+ if (supportsMutableAdoptedStyleSheets) {
2311
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
2312
+ } else {
2313
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
2314
+ }
2315
+ } else {
2316
+ const existingStyleContainer = styleContainerNode.querySelector("style");
2317
+ if (existingStyleContainer && true) {
2318
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
2319
+ } else {
2320
+ styleContainerNode.prepend(styleElm);
2321
+ }
2322
+ }
2323
+ } else {
2324
+ styleContainerNode.append(styleElm);
2325
+ }
2326
+ }
2327
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2328
+ styleContainerNode.insertBefore(styleElm, null);
2329
+ }
2330
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2331
+ styleElm.textContent += SLOT_FB_CSS;
2332
+ }
2333
+ if (appliedStyles) {
2334
+ appliedStyles.add(scopeId2);
2335
+ }
2336
+ }
2337
+ } else {
2338
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
2339
+ if (!appliedStyles) {
2340
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
2341
+ }
2342
+ if (!appliedStyles.has(scopeId2)) {
2343
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
2344
+ let stylesheet;
2345
+ if (style.constructor === currentWindow.CSSStyleSheet) {
2346
+ stylesheet = style;
2347
+ } else {
2348
+ stylesheet = new currentWindow.CSSStyleSheet();
2349
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
2350
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
2351
+ }
2352
+ }
2353
+ if (supportsMutableAdoptedStyleSheets) {
2354
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
2355
+ } else {
2356
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
2357
+ }
2358
+ appliedStyles.add(scopeId2);
2359
+ if ("host" in styleContainerNode) {
2360
+ const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
2361
+ if (ssrStyleElm) {
2362
+ writeTask(() => ssrStyleElm.remove());
2363
+ }
2364
+ }
2365
+ }
2366
+ }
2367
+ }
2368
+ return scopeId2;
2369
+ };
2370
+ var attachStyles = (hostRef) => {
2371
+ const cmpMeta = hostRef.$cmpMeta$;
2372
+ const elm = hostRef.$hostElement$;
2373
+ const flags = cmpMeta.$flags$;
2374
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
2375
+ const scopeId2 = addStyle(
2376
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
2377
+ cmpMeta,
2378
+ hostRef.$modeName$
2379
+ );
2380
+ if (flags & 10 /* needsScopedEncapsulation */) {
2381
+ elm["s-sc"] = scopeId2;
2382
+ elm.classList.add(scopeId2 + "-h");
2383
+ }
2384
+ endAttachStyles();
2385
+ };
2386
+ var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
2387
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
2388
+ var hydrateScopedToShadow = (cmpMetas) => {
2389
+ if (!win.document) {
2390
+ return;
2391
+ }
2392
+ const styleElms = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
2393
+ let i2 = 0;
2394
+ for (; i2 < styleElms.length; i2++) {
2395
+ const scopeId2 = styleElms[i2].getAttribute(HYDRATED_STYLE_ID);
2396
+ const isShadowCmpStyle = cmpMetas.some((cmpMeta) => {
2397
+ const cmpScopeId = "sc-" + cmpMeta.$tagName$;
2398
+ return cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && (scopeId2 === cmpScopeId || cmpMeta.$flags$ & 32 /* hasMode */ && scopeId2.startsWith(cmpScopeId + "-"));
2399
+ });
2400
+ if (isShadowCmpStyle) {
2401
+ registerStyle(scopeId2, convertScopedToShadow(styleElms[i2].innerHTML), true);
2402
+ }
2403
+ }
2404
+ };
2405
+ var isComplexType = (o) => {
2406
+ o = typeof o;
2407
+ return o === "object" || o === "function";
2408
+ };
2409
+
2410
+ // src/runtime/vdom/h.ts
2411
+ var h = (nodeName, vnodeData, ...children) => {
2412
+ if (typeof nodeName === "string") {
2413
+ nodeName = transformTag(nodeName);
2414
+ }
2415
+ let child = null;
2416
+ let key = null;
2417
+ let simple = false;
2418
+ let lastSimple = false;
2419
+ const vNodeChildren = [];
2420
+ const walk = (c) => {
2421
+ for (let i2 = 0; i2 < c.length; i2++) {
2422
+ child = c[i2];
2423
+ if (Array.isArray(child)) {
2424
+ walk(child);
2425
+ } else if (child != null && typeof child !== "boolean") {
2426
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
2427
+ child = String(child);
2428
+ } else if (typeof nodeName !== "function" && child.$flags$ === void 0) {
2429
+ {
2430
+ consoleError("Invalid vNode child");
2431
+ }
2432
+ continue;
2433
+ }
2434
+ if (simple && lastSimple) {
2435
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
2436
+ } else {
2437
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
2438
+ }
2439
+ lastSimple = simple;
2440
+ }
2441
+ }
2442
+ };
2443
+ walk(children);
2444
+ if (vnodeData) {
2445
+ if (vnodeData.key) {
2446
+ key = vnodeData.key;
2447
+ }
2448
+ {
2449
+ const classData = vnodeData.className || vnodeData.class;
2450
+ if (classData) {
2451
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
2452
+ }
2453
+ }
2454
+ }
2455
+ if (typeof nodeName === "function") {
2456
+ return nodeName(
2457
+ vnodeData === null ? {} : vnodeData,
2458
+ vNodeChildren,
2459
+ vdomFnUtils
2460
+ );
2461
+ }
2462
+ const vnode = newVNode(nodeName, null);
2463
+ vnode.$attrs$ = vnodeData;
2464
+ if (vNodeChildren.length > 0) {
2465
+ vnode.$children$ = vNodeChildren;
2466
+ }
2467
+ {
2468
+ vnode.$key$ = key;
2469
+ }
2470
+ return vnode;
2471
+ };
2472
+ var newVNode = (tag, text) => {
2473
+ const vnode = {
2474
+ $flags$: 0,
2475
+ $tag$: tag,
2476
+ // Normalize undefined to null to prevent rendering "undefined" as text
2477
+ $text$: text != null ? text : null,
2478
+ $elm$: null,
2479
+ $children$: null
2480
+ };
2481
+ {
2482
+ vnode.$attrs$ = null;
2483
+ }
2484
+ {
2485
+ vnode.$key$ = null;
2486
+ }
2487
+ return vnode;
2488
+ };
2489
+ var Host = {};
2490
+ var isHost = (node) => node && node.$tag$ === Host;
2491
+ var vdomFnUtils = {
2492
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
2493
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
2494
+ };
2495
+ var convertToPublic = (node) => ({
2496
+ vattrs: node.$attrs$,
2497
+ vchildren: node.$children$,
2498
+ vkey: node.$key$,
2499
+ vname: node.$name$,
2500
+ vtag: node.$tag$,
2501
+ vtext: node.$text$
2502
+ });
2503
+ var convertToPrivate = (node) => {
2504
+ if (typeof node.vtag === "function") {
2505
+ const vnodeData = { ...node.vattrs };
2506
+ if (node.vkey) {
2507
+ vnodeData.key = node.vkey;
2508
+ }
2509
+ if (node.vname) {
2510
+ vnodeData.name = node.vname;
2511
+ }
2512
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
2513
+ }
2514
+ const vnode = newVNode(node.vtag, node.vtext);
2515
+ vnode.$attrs$ = node.vattrs;
2516
+ vnode.$children$ = node.vchildren;
2517
+ vnode.$key$ = node.vkey;
2518
+ vnode.$name$ = node.vname;
2519
+ return vnode;
2520
+ };
2521
+
2522
+ // src/runtime/client-hydrate.ts
2523
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
2524
+ var _a, _b, _c, _d;
2525
+ const endHydrate = createTime("hydrateClient", tagName);
2526
+ const shadowRoot = hostElm.shadowRoot;
2527
+ const childRenderNodes = [];
2528
+ const slotNodes = [];
2529
+ const slottedNodes = [];
2530
+ const shadowRootNodes = shadowRoot ? [] : null;
2531
+ const vnode = newVNode(tagName, null);
2532
+ vnode.$elm$ = hostElm;
2533
+ if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
2534
+ initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
2535
+ }
2536
+ hostElm[HYDRATE_ID] = hostId;
2537
+ hostElm.removeAttribute(HYDRATE_ID);
2538
+ hostRef.$vnode$ = clientHydrate(
2539
+ vnode,
2540
+ childRenderNodes,
2541
+ slotNodes,
2542
+ shadowRootNodes,
2543
+ hostElm,
2544
+ hostElm,
2545
+ hostId,
2546
+ slottedNodes
2547
+ );
2548
+ let crIndex = 0;
2549
+ const crLength = childRenderNodes.length;
2550
+ let childRenderNode;
2551
+ for (crIndex; crIndex < crLength; crIndex++) {
2552
+ childRenderNode = childRenderNodes[crIndex];
2553
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
2554
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
2555
+ const node = childRenderNode.$elm$;
2556
+ if (!shadowRoot) {
2557
+ node["s-hn"] = transformTag(tagName).toUpperCase();
2558
+ if (childRenderNode.$tag$ === "slot") {
2559
+ node["s-cr"] = hostElm["s-cr"];
2560
+ }
2561
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
2562
+ const cmpMeta = getHostRef(childRenderNode.$elm$);
2563
+ if (cmpMeta) {
2564
+ const scopeId3 = getScopeId(
2565
+ cmpMeta.$cmpMeta$,
2566
+ childRenderNode.$elm$.getAttribute("s-mode")
2567
+ );
2568
+ const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
2569
+ if (styleSheet) {
2570
+ shadowRootNodes.unshift(styleSheet.cloneNode(true));
2571
+ }
2572
+ }
2573
+ }
2574
+ if (childRenderNode.$tag$ === "slot") {
2575
+ childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
2576
+ if (childRenderNode.$children$) {
2577
+ childRenderNode.$flags$ |= 2 /* isSlotFallback */;
2578
+ if (!childRenderNode.$elm$.childNodes.length) {
2579
+ childRenderNode.$children$.forEach((c) => {
2580
+ childRenderNode.$elm$.appendChild(c.$elm$);
2581
+ });
2582
+ }
2583
+ } else {
2584
+ childRenderNode.$flags$ |= 1 /* isSlotReference */;
2585
+ }
2586
+ }
2587
+ if (orgLocationNode && orgLocationNode.isConnected) {
2588
+ if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
2589
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
2590
+ }
2591
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
2592
+ if (!shadowRoot) {
2593
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
2594
+ }
2595
+ }
2596
+ if (orgLocationNode && !orgLocationNode["s-id"]) {
2597
+ plt.$orgLocNodes$.delete(orgLocationId);
2598
+ }
2599
+ }
2600
+ const hosts = [];
2601
+ const snLen = slottedNodes.length;
2602
+ let snIndex = 0;
2603
+ let slotGroup;
2604
+ let snGroupIdx;
2605
+ let snGroupLen;
2606
+ let slottedItem;
2607
+ let currentPos = 0;
2608
+ for (snIndex; snIndex < snLen; snIndex++) {
2609
+ slotGroup = slottedNodes[snIndex];
2610
+ if (!slotGroup || !slotGroup.length) continue;
2611
+ snGroupLen = slotGroup.length;
2612
+ snGroupIdx = 0;
2613
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
2614
+ slottedItem = slotGroup[snGroupIdx];
2615
+ if (!hosts[slottedItem.hostId]) {
2616
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
2617
+ }
2618
+ if (!hosts[slottedItem.hostId]) continue;
2619
+ const hostEle = hosts[slottedItem.hostId];
2620
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
2621
+ hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
2622
+ }
2623
+ if (!hostEle.shadowRoot || !shadowRoot) {
2624
+ if (!slottedItem.slot["s-cr"]) {
2625
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
2626
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
2627
+ slottedItem.slot["s-cr"] = hostEle;
2628
+ } else {
2629
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
2630
+ }
2631
+ }
2632
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
2633
+ if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
2634
+ slottedItem.node.removeAttribute("slot");
2635
+ }
2636
+ }
2637
+ currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
2638
+ }
2639
+ }
2640
+ if (shadowRoot && !shadowRoot.childNodes.length) {
2641
+ let rnIdex = 0;
2642
+ const rnLen = shadowRootNodes.length;
2643
+ if (rnLen) {
2644
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
2645
+ const node = shadowRootNodes[rnIdex];
2646
+ if (node) {
2647
+ shadowRoot.appendChild(node);
2648
+ }
2649
+ }
2650
+ Array.from(hostElm.childNodes).forEach((node) => {
2651
+ if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
2652
+ if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
2653
+ node.removeAttribute("hidden");
2654
+ } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
2655
+ node.parentNode.removeChild(node);
2656
+ }
2657
+ }
2658
+ });
2659
+ }
2660
+ }
2661
+ hostRef.$hostElement$ = hostElm;
2662
+ endHydrate();
2663
+ };
2664
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
2665
+ let childNodeType;
2666
+ let childIdSplt;
2667
+ let childVNode;
2668
+ let i2;
2669
+ if (node.nodeType === 1 /* ElementNode */) {
2670
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
2671
+ if (childNodeType && node !== hostElm) {
2672
+ childIdSplt = childNodeType.split(".");
2673
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
2674
+ childVNode = createSimpleVNode({
2675
+ $flags$: 0,
2676
+ $hostId$: childIdSplt[0],
2677
+ $nodeId$: childIdSplt[1],
2678
+ $depth$: childIdSplt[2],
2679
+ $index$: childIdSplt[3],
2680
+ $tag$: node.tagName.toLowerCase(),
2681
+ $elm$: node,
2682
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
2683
+ // won't try to reconcile them. Classes set on the node will be blown away.
2684
+ $attrs$: { class: node.className || "" }
2685
+ });
2686
+ childRenderNodes.push(childVNode);
2687
+ node.removeAttribute(HYDRATE_CHILD_ID);
2688
+ if (!parentVNode.$children$) {
2689
+ parentVNode.$children$ = [];
2690
+ }
2691
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
2692
+ if (typeof slotName === "string") {
2693
+ if (childVNode.$tag$ === "slot-fb") {
2694
+ addSlot(
2695
+ slotName,
2696
+ childIdSplt[2],
2697
+ childVNode,
2698
+ node,
2699
+ parentVNode,
2700
+ childRenderNodes,
2701
+ slotNodes,
2702
+ shadowRootNodes,
2703
+ slottedNodes
2704
+ );
2705
+ }
2706
+ childVNode.$elm$["s-sn"] = slotName;
2707
+ childVNode.$elm$.removeAttribute("s-sn");
2708
+ }
2709
+ if (childVNode.$index$ !== void 0) {
2710
+ parentVNode.$children$[childVNode.$index$] = childVNode;
2711
+ }
2712
+ parentVNode = childVNode;
2713
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
2714
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
2715
+ }
2716
+ }
2717
+ }
2718
+ if (node.shadowRoot) {
2719
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
2720
+ clientHydrate(
2721
+ parentVNode,
2722
+ childRenderNodes,
2723
+ slotNodes,
2724
+ shadowRootNodes,
2725
+ hostElm,
2726
+ node.shadowRoot.childNodes[i2],
2727
+ hostId,
2728
+ slottedNodes
2729
+ );
2730
+ }
2731
+ }
2732
+ const nonShadowNodes = node.__childNodes || node.childNodes;
2733
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
2734
+ clientHydrate(
2735
+ parentVNode,
2736
+ childRenderNodes,
2737
+ slotNodes,
2738
+ shadowRootNodes,
2739
+ hostElm,
2740
+ nonShadowNodes[i2],
2741
+ hostId,
2742
+ slottedNodes
2743
+ );
2744
+ }
2745
+ } else if (node.nodeType === 8 /* CommentNode */) {
2746
+ childIdSplt = node.nodeValue.split(".");
2747
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
2748
+ childNodeType = childIdSplt[0];
2749
+ childVNode = createSimpleVNode({
2750
+ $hostId$: childIdSplt[1],
2751
+ $nodeId$: childIdSplt[2],
2752
+ $depth$: childIdSplt[3],
2753
+ $index$: childIdSplt[4] || "0",
2754
+ $elm$: node,
2755
+ $attrs$: null,
2756
+ $children$: null,
2757
+ $key$: null,
2758
+ $name$: null,
2759
+ $tag$: null,
2760
+ $text$: null
2761
+ });
2762
+ if (childNodeType === TEXT_NODE_ID) {
2763
+ childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
2764
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
2765
+ childVNode.$text$ = childVNode.$elm$.textContent;
2766
+ childRenderNodes.push(childVNode);
2767
+ node.remove();
2768
+ if (hostId === childVNode.$hostId$) {
2769
+ if (!parentVNode.$children$) {
2770
+ parentVNode.$children$ = [];
2771
+ }
2772
+ parentVNode.$children$[childVNode.$index$] = childVNode;
2773
+ }
2774
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
2775
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
2776
+ }
2777
+ }
2778
+ } else if (childNodeType === COMMENT_NODE_ID) {
2779
+ childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
2780
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
2781
+ childRenderNodes.push(childVNode);
2782
+ node.remove();
2783
+ }
2784
+ } else if (childVNode.$hostId$ === hostId) {
2785
+ if (childNodeType === SLOT_NODE_ID) {
2786
+ const slotName = node["s-sn"] = childIdSplt[5] || "";
2787
+ addSlot(
2788
+ slotName,
2789
+ childIdSplt[2],
2790
+ childVNode,
2791
+ node,
2792
+ parentVNode,
2793
+ childRenderNodes,
2794
+ slotNodes,
2795
+ shadowRootNodes,
2796
+ slottedNodes
2797
+ );
2798
+ } else if (childNodeType === CONTENT_REF_ID) {
2799
+ if (shadowRootNodes) {
2800
+ node.remove();
2801
+ }
2802
+ }
2803
+ }
2804
+ }
2805
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
2806
+ const vnode = newVNode(null, node.textContent);
2807
+ vnode.$elm$ = node;
2808
+ vnode.$index$ = "0";
2809
+ parentVNode.$children$ = [vnode];
2810
+ }
2811
+ return parentVNode;
2812
+ };
2813
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
2814
+ if (node.nodeType === 1 /* ElementNode */) {
2815
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
2816
+ if (componentId) {
2817
+ orgLocNodes.set(componentId, node);
2818
+ }
2819
+ let i2 = 0;
2820
+ if (node.shadowRoot) {
2821
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
2822
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
2823
+ }
2824
+ }
2825
+ const nonShadowNodes = node.__childNodes || node.childNodes;
2826
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
2827
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
2828
+ }
2829
+ } else if (node.nodeType === 8 /* CommentNode */) {
2830
+ const childIdSplt = node.nodeValue.split(".");
2831
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
2832
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
2833
+ node.nodeValue = "";
2834
+ node["s-en"] = childIdSplt[3];
2835
+ }
2836
+ }
2837
+ };
2838
+ var createSimpleVNode = (vnode) => {
2839
+ const defaultVNode = {
2840
+ $flags$: 0,
2841
+ $hostId$: null,
2842
+ $nodeId$: null,
2843
+ $depth$: null,
2844
+ $index$: "0",
2845
+ $elm$: null,
2846
+ $attrs$: null,
2847
+ $children$: null,
2848
+ $key$: null,
2849
+ $name$: null,
2850
+ $tag$: null,
2851
+ $text$: null
2852
+ };
2853
+ return { ...defaultVNode, ...vnode };
2854
+ };
2855
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
2856
+ node["s-sr"] = true;
2857
+ childVNode.$name$ = slotName || null;
2858
+ childVNode.$tag$ = "slot";
2859
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
2860
+ if (shadowRootNodes && win.document) {
2861
+ const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
2862
+ if (childVNode.$name$) {
2863
+ childVNode.$elm$.setAttribute("name", slotName);
2864
+ }
2865
+ if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
2866
+ internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
2867
+ } else {
2868
+ internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
2869
+ }
2870
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
2871
+ node.remove();
2872
+ if (childVNode.$depth$ === "0") {
2873
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
2874
+ }
2875
+ } else {
2876
+ const slot = childVNode.$elm$;
2877
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
2878
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
2879
+ patchSlotNode(node);
2880
+ if (shouldMove) {
2881
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
2882
+ }
2883
+ }
2884
+ childRenderNodes.push(childVNode);
2885
+ slotNodes.push(childVNode);
2886
+ if (!parentVNode.$children$) {
2887
+ parentVNode.$children$ = [];
2888
+ }
2889
+ parentVNode.$children$[childVNode.$index$] = childVNode;
2890
+ }
2891
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
2892
+ var _a, _b;
2893
+ let slottedNode = slotNode.nextSibling;
2894
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
2895
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
2896
+ do {
2897
+ if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
2898
+ slottedNode["s-sn"] = slotName;
2899
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
2900
+ }
2901
+ slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
2902
+ } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
2903
+ };
2904
+ var findCorrespondingNode = (node, type) => {
2905
+ let sibling = node;
2906
+ do {
2907
+ sibling = sibling.nextSibling;
2908
+ } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
2909
+ return sibling;
2910
+ };
2911
+
2912
+ // src/runtime/mode.ts
2913
+ var computeMode = (elm) => modeResolver.map((h2) => h2(elm)).find((m) => !!m);
2914
+ var setMode = (handler) => {
2915
+ modeResolver.length = 0;
2916
+ modeResolver.push(handler);
2917
+ };
2918
+
2919
+ // src/runtime/normalize-watchers.ts
2920
+ var normalizeWatchers = (raw) => {
2921
+ if (!raw) return void 0;
2922
+ const keys = Object.keys(raw);
2923
+ if (keys.length === 0) return void 0;
2924
+ let hasLegacy = false;
2925
+ for (const propName of keys) {
2926
+ if (hasLegacy) break;
2927
+ for (const h2 of raw[propName]) {
2928
+ if (typeof h2 === "string") {
2929
+ hasLegacy = true;
2930
+ break;
2931
+ }
2932
+ }
2933
+ }
2934
+ if (!hasLegacy) return raw;
2935
+ const out = {};
2936
+ for (const propName of keys) {
2937
+ out[propName] = raw[propName].map(
2938
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
2939
+ );
2940
+ }
2941
+ return out;
2942
+ };
2943
+
2944
+ // src/utils/remote-value.ts
2945
+ var RemoteValue = class _RemoteValue {
2946
+ /**
2947
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
2948
+ *
2949
+ * @param serialized The serialized LocalValue object
2950
+ * @returns The original JavaScript value/object
2951
+ */
2952
+ static fromLocalValue(serialized) {
2953
+ const type = serialized[TYPE_CONSTANT];
2954
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
2955
+ switch (type) {
2956
+ case "string" /* String */:
2957
+ return value;
2958
+ case "boolean" /* Boolean */:
2959
+ return value;
2960
+ case "bigint" /* BigInt */:
2961
+ return BigInt(value);
2962
+ case "undefined" /* Undefined */:
2963
+ return void 0;
2964
+ case "null" /* Null */:
2965
+ return null;
2966
+ case "number" /* Number */:
2967
+ if (value === "NaN") return NaN;
2968
+ if (value === "-0") return -0;
2969
+ if (value === "Infinity") return Infinity;
2970
+ if (value === "-Infinity") return -Infinity;
2971
+ return value;
2972
+ case "array" /* Array */:
2973
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
2974
+ case "date" /* Date */:
2975
+ return new Date(value);
2976
+ case "map" /* Map */:
2977
+ const map = /* @__PURE__ */ new Map();
2978
+ for (const [key, val] of value) {
2979
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
2980
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
2981
+ map.set(deserializedKey, deserializedValue);
2982
+ }
2983
+ return map;
2984
+ case "object" /* Object */:
2985
+ const obj = {};
2986
+ for (const [key, val] of value) {
2987
+ obj[key] = _RemoteValue.fromLocalValue(val);
2988
+ }
2989
+ return obj;
2990
+ case "regexp" /* RegularExpression */:
2991
+ const { pattern, flags } = value;
2992
+ return new RegExp(pattern, flags);
2993
+ case "set" /* Set */:
2994
+ const set = /* @__PURE__ */ new Set();
2995
+ for (const item of value) {
2996
+ set.add(_RemoteValue.fromLocalValue(item));
2997
+ }
2998
+ return set;
2999
+ case "symbol" /* Symbol */:
3000
+ return Symbol(value);
3001
+ default:
3002
+ throw new Error(`Unsupported type: ${type}`);
3003
+ }
3004
+ }
3005
+ /**
3006
+ * Utility method to deserialize multiple LocalValues at once
3007
+ *
3008
+ * @param serializedValues Array of serialized LocalValue objects
3009
+ * @returns Array of deserialized JavaScript values
3010
+ */
3011
+ static fromLocalValueArray(serializedValues) {
3012
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
3013
+ }
3014
+ /**
3015
+ * Verifies if the given object matches the structure of a serialized LocalValue
3016
+ *
3017
+ * @param obj Object to verify
3018
+ * @returns boolean indicating if the object has LocalValue structure
3019
+ */
3020
+ static isLocalValueObject(obj) {
3021
+ if (typeof obj !== "object" || obj === null) {
3022
+ return false;
3023
+ }
3024
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
3025
+ return false;
3026
+ }
3027
+ const type = obj[TYPE_CONSTANT];
3028
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
3029
+ if (!hasTypeProperty) {
3030
+ return false;
3031
+ }
3032
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
3033
+ return obj.hasOwnProperty(VALUE_CONSTANT);
3034
+ }
3035
+ return true;
3036
+ }
3037
+ };
3038
+
3039
+ // src/utils/serialize.ts
3040
+ function decodeBase64Unicode(base64) {
3041
+ const binary = atob(base64);
3042
+ const bytes = new Uint8Array(binary.length);
3043
+ for (let i2 = 0; i2 < binary.length; i2++) {
3044
+ bytes[i2] = binary.charCodeAt(i2);
3045
+ }
3046
+ return new TextDecoder().decode(bytes);
3047
+ }
3048
+ function deserializeProperty(value) {
3049
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
3050
+ return value;
3051
+ }
3052
+ return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
3053
+ }
3054
+
3055
+ // src/runtime/parse-property-value.ts
3056
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
3057
+ if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
3058
+ propValue = deserializeProperty(propValue);
3059
+ return propValue;
3060
+ }
3061
+ if (propValue != null && !isComplexType(propValue)) {
3062
+ if (propType & 4 /* Boolean */) {
3063
+ {
3064
+ return propValue === "false" ? false : propValue === "" || !!propValue;
3065
+ }
3066
+ }
3067
+ if (propType & 2 /* Number */) {
3068
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
3069
+ }
3070
+ if (propType & 1 /* String */) {
3071
+ return String(propValue);
3072
+ }
3073
+ return propValue;
3074
+ }
3075
+ return propValue;
3076
+ };
3077
+ var getElement = (ref) => {
3078
+ var _a;
3079
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
3080
+ };
3081
+ var emitEvent = (elm, name, opts) => {
3082
+ const ev = plt.ce(name, opts);
3083
+ elm.dispatchEvent(ev);
3084
+ return ev;
3085
+ };
3086
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
3087
+ if (oldValue === newValue) {
3088
+ return;
3089
+ }
3090
+ let isProp = isMemberInElement(elm, memberName);
3091
+ let ln = memberName.toLowerCase();
3092
+ if (memberName === "class") {
3093
+ const classList = elm.classList;
3094
+ const oldClasses = parseClassList(oldValue);
3095
+ let newClasses = parseClassList(newValue);
3096
+ if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
3097
+ const scopeId2 = elm["s-sc"] || elm["s-si"];
3098
+ newClasses.push(scopeId2);
3099
+ oldClasses.forEach((c) => {
3100
+ if (c.startsWith(scopeId2)) newClasses.push(c);
3101
+ });
3102
+ newClasses = [...new Set(newClasses)].filter((c) => c);
3103
+ classList.add(...newClasses);
3104
+ } else {
3105
+ let removedClasses = oldClasses.filter((c) => c && !newClasses.includes(c));
3106
+ if (initialRender && !(flags & 4 /* isHost */)) {
3107
+ const ownClasses = getOwnHostClasses(elm);
3108
+ removedClasses = removedClasses.filter((c) => !ownClasses.includes(c));
3109
+ }
3110
+ classList.remove(...removedClasses);
3111
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
3112
+ }
3113
+ } else if (memberName === "style") {
3114
+ {
3115
+ for (const prop in oldValue) {
3116
+ if (!newValue || newValue[prop] == null) {
3117
+ if (prop.includes("-")) {
3118
+ elm.style.removeProperty(prop);
3119
+ } else {
3120
+ elm.style[prop] = "";
3121
+ }
3122
+ }
3123
+ }
3124
+ }
3125
+ for (const prop in newValue) {
3126
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
3127
+ if (prop.includes("-")) {
3128
+ elm.style.setProperty(prop, newValue[prop]);
3129
+ } else {
3130
+ elm.style[prop] = newValue[prop];
3131
+ }
3132
+ }
3133
+ }
3134
+ } else if (memberName === "key") ; else if (memberName === "ref") {
3135
+ if (newValue) {
3136
+ queueRefAttachment(newValue, elm);
3137
+ }
3138
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
3139
+ if (memberName[2] === "-") {
3140
+ memberName = memberName.slice(3);
3141
+ } else if (isMemberInElement(win, ln)) {
3142
+ memberName = ln.slice(2);
3143
+ } else {
3144
+ memberName = ln[2] + memberName.slice(3);
3145
+ }
3146
+ if (oldValue || newValue) {
3147
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
3148
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
3149
+ if (oldValue) {
3150
+ plt.rel(elm, memberName, oldValue, capture);
3151
+ }
3152
+ if (newValue) {
3153
+ plt.ael(elm, memberName, newValue, capture);
3154
+ }
3155
+ }
3156
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
3157
+ const propName = memberName.slice(5);
3158
+ let attrName;
3159
+ {
3160
+ const hostRef = getHostRef(elm);
3161
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
3162
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
3163
+ if (memberMeta && memberMeta[1]) {
3164
+ attrName = memberMeta[1];
3165
+ }
3166
+ }
3167
+ }
3168
+ if (!attrName) {
3169
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3170
+ }
3171
+ if (newValue == null || newValue === false) {
3172
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
3173
+ elm.removeAttribute(attrName);
3174
+ }
3175
+ } else {
3176
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
3177
+ }
3178
+ return;
3179
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
3180
+ const propName = memberName.slice(5);
3181
+ try {
3182
+ elm[propName] = newValue;
3183
+ } catch (e) {
3184
+ }
3185
+ return;
3186
+ } else {
3187
+ const isComplex = isComplexType(newValue);
3188
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
3189
+ try {
3190
+ if (!elm.tagName.includes("-")) {
3191
+ const n = newValue == null ? "" : newValue;
3192
+ if (memberName === "list") {
3193
+ isProp = false;
3194
+ } else if (oldValue == null || elm[memberName] !== n) {
3195
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
3196
+ elm[memberName] = n;
3197
+ } else {
3198
+ elm.setAttribute(memberName, n);
3199
+ }
3200
+ }
3201
+ } else if (elm[memberName] !== newValue) {
3202
+ elm[memberName] = newValue;
3203
+ }
3204
+ } catch (e) {
3205
+ }
3206
+ }
3207
+ let xlink = false;
3208
+ {
3209
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
3210
+ memberName = ln;
3211
+ xlink = true;
3212
+ }
3213
+ }
3214
+ if (newValue == null || newValue === false) {
3215
+ if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
3216
+ if (xlink) {
3217
+ elm.removeAttributeNS(XLINK_NS, memberName);
3218
+ } else {
3219
+ elm.removeAttribute(memberName);
3220
+ }
3221
+ }
3222
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
3223
+ newValue = newValue === true ? "" : newValue;
3224
+ if (xlink) {
3225
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
3226
+ } else {
3227
+ elm.setAttribute(memberName, newValue);
3228
+ }
3229
+ }
3230
+ }
3231
+ };
3232
+ var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
3233
+ var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
3234
+ var parseClassListRegex = /\s/;
3235
+ var getOwnHostClasses = (elm) => {
3236
+ var _a, _b, _c;
3237
+ const hostRef = getHostRef(elm);
3238
+ if (!hostRef || !(hostRef.$flags$ & 2 /* hasRendered */)) {
3239
+ return [];
3240
+ }
3241
+ const ownClasses = parseClassList((_b = (_a = hostRef.$vnode$) == null ? void 0 : _a.$attrs$) == null ? void 0 : _b.class);
3242
+ {
3243
+ ownClasses.push((_c = BUILD.hydratedSelectorName) != null ? _c : "hydrated");
3244
+ }
3245
+ return ownClasses;
3246
+ };
3247
+ var parseClassList = (value) => {
3248
+ if (typeof value === "object" && value && "baseVal" in value) {
3249
+ value = value.baseVal;
3250
+ }
3251
+ if (!value || typeof value !== "string") {
3252
+ return [];
3253
+ }
3254
+ return value.split(parseClassListRegex);
3255
+ };
3256
+ var CAPTURE_EVENT_SUFFIX = "Capture";
3257
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
3258
+
3259
+ // src/runtime/vdom/update-element.ts
3260
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
3261
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
3262
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
3263
+ const newVnodeAttrs = newVnode.$attrs$ || {};
3264
+ {
3265
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
3266
+ if (!(memberName in newVnodeAttrs)) {
3267
+ setAccessor(
3268
+ elm,
3269
+ memberName,
3270
+ oldVnodeAttrs[memberName],
3271
+ void 0,
3272
+ isSvgMode2,
3273
+ newVnode.$flags$,
3274
+ isInitialRender
3275
+ );
3276
+ }
3277
+ }
3278
+ }
3279
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
3280
+ setAccessor(
3281
+ elm,
3282
+ memberName,
3283
+ oldVnodeAttrs[memberName],
3284
+ newVnodeAttrs[memberName],
3285
+ isSvgMode2,
3286
+ newVnode.$flags$,
3287
+ isInitialRender
3288
+ );
3289
+ }
3290
+ };
3291
+ function sortedAttrNames(attrNames) {
3292
+ return attrNames.includes("ref") ? (
3293
+ // we need to sort these to ensure that `'ref'` is the last attr
3294
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
3295
+ ) : (
3296
+ // no need to sort, return the original array
3297
+ attrNames
3298
+ );
3299
+ }
3300
+ var hostTagName;
3301
+ var useNativeShadowDom = false;
3302
+ var isSvgMode = false;
3303
+ var refCallbacksToRemove = [];
3304
+ var refCallbacksToAttach = [];
3305
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
3306
+ const newVNode2 = newParentVNode.$children$[childIndex];
3307
+ let i2 = 0;
3308
+ let elm;
3309
+ let childNode;
3310
+ if (newVNode2.$text$ != null) {
3311
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
3312
+ } else {
3313
+ if (!isSvgMode) {
3314
+ isSvgMode = newVNode2.$tag$ === "svg";
3315
+ }
3316
+ if (!win.document) {
3317
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
3318
+ }
3319
+ elm = newVNode2.$elm$ = win.document.createElementNS(
3320
+ isSvgMode ? SVG_NS : HTML_NS,
3321
+ newVNode2.$tag$
3322
+ ) ;
3323
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
3324
+ isSvgMode = false;
3325
+ }
3326
+ {
3327
+ updateElement(null, newVNode2, isSvgMode);
3328
+ }
3329
+ if (newVNode2.$children$) {
3330
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
3331
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
3332
+ childNode = createElm(oldParentVNode, newVNode2, i2);
3333
+ if (childNode) {
3334
+ appendTarget.appendChild(childNode);
3335
+ }
3336
+ }
3337
+ }
3338
+ {
3339
+ if (newVNode2.$tag$ === "svg") {
3340
+ isSvgMode = false;
3341
+ } else if (elm.tagName === "foreignObject") {
3342
+ isSvgMode = true;
3343
+ }
3344
+ }
3345
+ }
3346
+ elm["s-hn"] = hostTagName;
3347
+ return elm;
3348
+ };
3349
+ var relocateToHostRoot = (parentElm) => {
3350
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
3351
+ const host = parentElm.closest(hostTagName.toLowerCase());
3352
+ if (host != null) {
3353
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
3354
+ (ref) => ref["s-cr"]
3355
+ );
3356
+ const childNodeArray = Array.from(
3357
+ parentElm.__childNodes || parentElm.childNodes
3358
+ );
3359
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
3360
+ if (childNode["s-sh"] != null) {
3361
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
3362
+ childNode["s-sh"] = void 0;
3363
+ }
3364
+ }
3365
+ }
3366
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
3367
+ };
3368
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
3369
+ let containerElm = parentElm;
3370
+ let childNode;
3371
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
3372
+ containerElm = containerElm.shadowRoot;
3373
+ }
3374
+ if (parentVNode.$tag$ === "template") {
3375
+ containerElm = containerElm.content;
3376
+ }
3377
+ for (; startIdx <= endIdx; ++startIdx) {
3378
+ if (vnodes[startIdx]) {
3379
+ childNode = createElm(null, parentVNode, startIdx);
3380
+ if (childNode) {
3381
+ vnodes[startIdx].$elm$ = childNode;
3382
+ insertBefore(containerElm, childNode, before);
3383
+ }
3384
+ }
3385
+ }
3386
+ };
3387
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
3388
+ for (let index = startIdx; index <= endIdx; ++index) {
3389
+ const vnode = vnodes[index];
3390
+ if (vnode) {
3391
+ const elm = vnode.$elm$;
3392
+ nullifyVNodeRefs(vnode);
3393
+ if (elm) {
3394
+ elm.remove();
3395
+ }
3396
+ }
3397
+ }
3398
+ };
3399
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
3400
+ let oldStartIdx = 0;
3401
+ let newStartIdx = 0;
3402
+ let idxInOld = 0;
3403
+ let i2 = 0;
3404
+ let oldEndIdx = oldCh.length - 1;
3405
+ let oldStartVnode = oldCh[0];
3406
+ let oldEndVnode = oldCh[oldEndIdx];
3407
+ let newEndIdx = newCh.length - 1;
3408
+ let newStartVnode = newCh[0];
3409
+ let newEndVnode = newCh[newEndIdx];
3410
+ let node;
3411
+ let elmToMove;
3412
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
3413
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
3414
+ if (oldStartVnode == null) {
3415
+ oldStartVnode = oldCh[++oldStartIdx];
3416
+ } else if (oldEndVnode == null) {
3417
+ oldEndVnode = oldCh[--oldEndIdx];
3418
+ } else if (newStartVnode == null) {
3419
+ newStartVnode = newCh[++newStartIdx];
3420
+ } else if (newEndVnode == null) {
3421
+ newEndVnode = newCh[--newEndIdx];
3422
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
3423
+ patch(oldStartVnode, newStartVnode, isInitialRender);
3424
+ oldStartVnode = oldCh[++oldStartIdx];
3425
+ newStartVnode = newCh[++newStartIdx];
3426
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
3427
+ patch(oldEndVnode, newEndVnode, isInitialRender);
3428
+ oldEndVnode = oldCh[--oldEndIdx];
3429
+ newEndVnode = newCh[--newEndIdx];
3430
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
3431
+ patch(oldStartVnode, newEndVnode, isInitialRender);
3432
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
3433
+ oldStartVnode = oldCh[++oldStartIdx];
3434
+ newEndVnode = newCh[--newEndIdx];
3435
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
3436
+ patch(oldEndVnode, newStartVnode, isInitialRender);
3437
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
3438
+ oldEndVnode = oldCh[--oldEndIdx];
3439
+ newStartVnode = newCh[++newStartIdx];
3440
+ } else {
3441
+ idxInOld = -1;
3442
+ {
3443
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
3444
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
3445
+ idxInOld = i2;
3446
+ break;
3447
+ }
3448
+ }
3449
+ }
3450
+ if (idxInOld >= 0) {
3451
+ elmToMove = oldCh[idxInOld];
3452
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
3453
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
3454
+ } else {
3455
+ patch(elmToMove, newStartVnode, isInitialRender);
3456
+ oldCh[idxInOld] = void 0;
3457
+ node = elmToMove.$elm$;
3458
+ }
3459
+ newStartVnode = newCh[++newStartIdx];
3460
+ } else {
3461
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
3462
+ newStartVnode = newCh[++newStartIdx];
3463
+ }
3464
+ if (node) {
3465
+ {
3466
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
3467
+ }
3468
+ }
3469
+ }
3470
+ }
3471
+ if (oldStartIdx > oldEndIdx) {
3472
+ addVnodes(
3473
+ parentElm,
3474
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
3475
+ newVNode2,
3476
+ newCh,
3477
+ newStartIdx,
3478
+ newEndIdx
3479
+ );
3480
+ } else if (newStartIdx > newEndIdx) {
3481
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
3482
+ }
3483
+ };
3484
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
3485
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
3486
+ if (!isInitialRender) {
3487
+ return leftVNode.$key$ === rightVNode.$key$;
3488
+ }
3489
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
3490
+ leftVNode.$key$ = rightVNode.$key$;
3491
+ }
3492
+ return true;
3493
+ }
3494
+ return false;
3495
+ };
3496
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
3497
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
3498
+ const oldChildren = oldVNode.$children$;
3499
+ const newChildren = newVNode2.$children$;
3500
+ const tag = newVNode2.$tag$;
3501
+ const text = newVNode2.$text$;
3502
+ if (text == null) {
3503
+ {
3504
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
3505
+ }
3506
+ {
3507
+ if (tag === "slot" && !useNativeShadowDom) {
3508
+ if (oldVNode.$name$ !== newVNode2.$name$) {
3509
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
3510
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
3511
+ }
3512
+ }
3513
+ updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);
3514
+ }
3515
+ if (oldChildren !== null && newChildren !== null) {
3516
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
3517
+ } else if (newChildren !== null) {
3518
+ if (oldVNode.$text$ !== null) {
3519
+ elm.textContent = "";
3520
+ }
3521
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
3522
+ } else if (
3523
+ // don't do this on initial render as it can cause non-hydrated content to be removed
3524
+ !isInitialRender && BUILD.updatable && oldChildren !== null
3525
+ ) {
3526
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
3527
+ } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
3528
+ newVNode2.$children$ = oldChildren;
3529
+ }
3530
+ if (isSvgMode && tag === "svg") {
3531
+ isSvgMode = false;
3532
+ }
3533
+ } else if (oldVNode.$text$ !== text) {
3534
+ elm.data = text;
3535
+ }
3536
+ };
3537
+ var nullifyVNodeRefs = (vNode) => {
3538
+ {
3539
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
3540
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
3541
+ }
3542
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
3543
+ }
3544
+ };
3545
+ var queueRefAttachment = (refCallback, elm) => {
3546
+ {
3547
+ refCallbacksToAttach.push(() => refCallback(elm));
3548
+ }
3549
+ };
3550
+ var flushQueuedRefCallbacks = () => {
3551
+ {
3552
+ refCallbacksToRemove.forEach((cb) => cb());
3553
+ refCallbacksToRemove.length = 0;
3554
+ refCallbacksToAttach.forEach((cb) => cb());
3555
+ refCallbacksToAttach.length = 0;
3556
+ }
3557
+ };
3558
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
3559
+ {
3560
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
3561
+ }
3562
+ };
3563
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
3564
+ const hostElm = hostRef.$hostElement$;
3565
+ const cmpMeta = hostRef.$cmpMeta$;
3566
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
3567
+ const isHostElement = isHost(renderFnResults);
3568
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
3569
+ hostTagName = hostElm.tagName;
3570
+ if (cmpMeta.$attrsToReflect$) {
3571
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
3572
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
3573
+ {
3574
+ rootVnode.$attrs$[attribute] = hostElm[propName];
3575
+ }
3576
+ });
3577
+ }
3578
+ if (isInitialLoad && rootVnode.$attrs$) {
3579
+ for (const key of Object.keys(rootVnode.$attrs$)) {
3580
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
3581
+ rootVnode.$attrs$[key] = hostElm[key];
3582
+ }
3583
+ }
3584
+ }
3585
+ rootVnode.$tag$ = null;
3586
+ rootVnode.$flags$ |= 4 /* isHost */;
3587
+ hostRef.$vnode$ = rootVnode;
3588
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
3589
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
3590
+ patch(oldVNode, rootVnode, isInitialLoad);
3591
+ flushQueuedRefCallbacks();
3592
+ };
3593
+
3594
+ // src/runtime/update-component.ts
3595
+ var attachToAncestor = (hostRef, ancestorComponent) => {
3596
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
3597
+ const index = ancestorComponent["s-p"].push(
3598
+ new Promise(
3599
+ (r) => hostRef.$onRenderResolve$ = () => {
3600
+ ancestorComponent["s-p"].splice(index - 1, 1);
3601
+ r();
3602
+ }
3603
+ )
3604
+ );
3605
+ }
3606
+ };
3607
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
3608
+ {
3609
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
3610
+ }
3611
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
3612
+ hostRef.$flags$ |= 512 /* needsRerender */;
3613
+ return;
3614
+ }
3615
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
3616
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
3617
+ if (isInitialLoad) {
3618
+ queueMicrotask(() => {
3619
+ dispatch();
3620
+ });
3621
+ return;
3622
+ }
3623
+ return dispatch();
3624
+ };
3625
+ var dispatchHooks = (hostRef, isInitialLoad) => {
3626
+ const elm = hostRef.$hostElement$;
3627
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
3628
+ const instance = hostRef.$lazyInstance$ ;
3629
+ if (!instance) {
3630
+ throw new Error(
3631
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
3632
+ );
3633
+ }
3634
+ let maybePromise;
3635
+ if (isInitialLoad) {
3636
+ {
3637
+ {
3638
+ hostRef.$flags$ |= 256 /* isListenReady */;
3639
+ if (hostRef.$queuedListeners$) {
3640
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
3641
+ hostRef.$queuedListeners$ = void 0;
3642
+ }
3643
+ }
3644
+ if (hostRef.$fetchedCbList$.length) {
3645
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
3646
+ }
3647
+ }
3648
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
3649
+ } else {
3650
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
3651
+ }
3652
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
3653
+ endSchedule();
3654
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
3655
+ };
3656
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
3657
+ console.error(err);
3658
+ fn();
3659
+ }) : fn();
3660
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
3661
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
3662
+ var _a;
3663
+ const elm = hostRef.$hostElement$;
3664
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
3665
+ const rc = elm["s-rc"];
3666
+ if (isInitialLoad) {
3667
+ attachStyles(hostRef);
3668
+ }
3669
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
3670
+ {
3671
+ callRender(hostRef, instance, elm, isInitialLoad);
3672
+ }
3673
+ if (rc) {
3674
+ rc.map((cb) => cb());
3675
+ elm["s-rc"] = void 0;
3676
+ }
3677
+ endRender();
3678
+ endUpdate();
3679
+ {
3680
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
3681
+ const postUpdate = () => postUpdateComponent(hostRef);
3682
+ if (childrenPromises.length === 0) {
3683
+ postUpdate();
3684
+ } else {
3685
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
3686
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
3687
+ childrenPromises.length = 0;
3688
+ }
3689
+ }
3690
+ };
3691
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
3692
+ try {
3693
+ instance = instance.render && instance.render();
3694
+ {
3695
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
3696
+ }
3697
+ {
3698
+ hostRef.$flags$ |= 2 /* hasRendered */;
3699
+ }
3700
+ {
3701
+ {
3702
+ {
3703
+ renderVdom(hostRef, instance, isInitialLoad);
3704
+ }
3705
+ }
3706
+ }
3707
+ } catch (e) {
3708
+ consoleError(e, hostRef.$hostElement$);
3709
+ }
3710
+ return null;
3711
+ };
3712
+ var postUpdateComponent = (hostRef) => {
3713
+ const tagName = hostRef.$cmpMeta$.$tagName$;
3714
+ const elm = hostRef.$hostElement$;
3715
+ const endPostUpdate = createTime("postUpdate", tagName);
3716
+ const instance = hostRef.$lazyInstance$ ;
3717
+ const ancestorComponent = hostRef.$ancestorComponent$;
3718
+ safeCall(instance, "componentDidRender", void 0, elm);
3719
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
3720
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
3721
+ {
3722
+ addHydratedFlag(elm);
3723
+ }
3724
+ safeCall(instance, "componentDidLoad", void 0, elm);
3725
+ endPostUpdate();
3726
+ {
3727
+ hostRef.$onReadyResolve$(elm);
3728
+ if (!ancestorComponent) {
3729
+ appDidLoad();
3730
+ }
3731
+ }
3732
+ } else {
3733
+ safeCall(instance, "componentDidUpdate", void 0, elm);
3734
+ endPostUpdate();
3735
+ }
3736
+ {
3737
+ hostRef.$onInstanceResolve$(elm);
3738
+ }
3739
+ {
3740
+ if (hostRef.$onRenderResolve$) {
3741
+ hostRef.$onRenderResolve$();
3742
+ hostRef.$onRenderResolve$ = void 0;
3743
+ }
3744
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
3745
+ nextTick(() => scheduleUpdate(hostRef, false));
3746
+ }
3747
+ hostRef.$flags$ &= -517;
3748
+ }
3749
+ };
3750
+ var forceUpdate = (ref) => {
3751
+ var _a;
3752
+ {
3753
+ const hostRef = getHostRef(ref);
3754
+ const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
3755
+ if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
3756
+ scheduleUpdate(hostRef, false);
3757
+ }
3758
+ return isConnected;
3759
+ }
3760
+ };
3761
+ var appDidLoad = (who) => {
3762
+ var _a;
3763
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
3764
+ {
3765
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
3766
+ plt.$orgLocNodes$.clear();
3767
+ }
3768
+ }
3769
+ };
3770
+ var safeCall = (instance, method, arg, elm) => {
3771
+ if (instance && instance[method]) {
3772
+ try {
3773
+ return instance[method](arg);
3774
+ } catch (e) {
3775
+ consoleError(e, elm);
3776
+ }
3777
+ }
3778
+ return void 0;
3779
+ };
3780
+ var addHydratedFlag = (elm) => {
3781
+ var _a;
3782
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
3783
+ };
3784
+
3785
+ // src/runtime/set-value.ts
3786
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
3787
+ var setValue = (ref, propName, newVal, cmpMeta) => {
3788
+ const hostRef = getHostRef(ref);
3789
+ if (!hostRef) {
3790
+ return;
3791
+ }
3792
+ if (!hostRef) {
3793
+ throw new Error(
3794
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
3795
+ );
3796
+ }
3797
+ const elm = hostRef.$hostElement$ ;
3798
+ const oldVal = hostRef.$instanceValues$.get(propName);
3799
+ const flags = hostRef.$flags$;
3800
+ const instance = hostRef.$lazyInstance$ ;
3801
+ newVal = parsePropertyValue(
3802
+ newVal,
3803
+ cmpMeta.$members$[propName][0]);
3804
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
3805
+ const didValueChange = newVal !== oldVal && !areBothNaN;
3806
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
3807
+ hostRef.$instanceValues$.set(propName, newVal);
3808
+ if (cmpMeta.$watchers$) {
3809
+ const watchMethods = cmpMeta.$watchers$[propName];
3810
+ if (watchMethods) {
3811
+ watchMethods.map((watcher) => {
3812
+ try {
3813
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
3814
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
3815
+ if (!instance) {
3816
+ hostRef.$fetchedCbList$.push(() => {
3817
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
3818
+ });
3819
+ } else {
3820
+ instance[watchMethodName](newVal, oldVal, propName);
3821
+ }
3822
+ }
3823
+ } catch (e) {
3824
+ consoleError(e, elm);
3825
+ }
3826
+ });
3827
+ }
3828
+ }
3829
+ if (flags & 2 /* hasRendered */) {
3830
+ if (instance.componentShouldUpdate) {
3831
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
3832
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
3833
+ return;
3834
+ }
3835
+ }
3836
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
3837
+ scheduleUpdate(hostRef, false);
3838
+ }
3839
+ }
3840
+ }
3841
+ };
3842
+
3843
+ // src/runtime/proxy-component.ts
3844
+ var reflectedAttrValue = (propValue) => propValue == null || propValue === false ? null : propValue === true ? "" : String(propValue);
3845
+ var replayPendingSetterValues = (hostRef, cmpMeta) => {
3846
+ var _a;
3847
+ const instance = hostRef.$lazyInstance$;
3848
+ if (!instance) return;
3849
+ for (const [memberName, [memberFlags]] of Object.entries((_a = cmpMeta.$members$) != null ? _a : {})) {
3850
+ if (memberFlags & 4096 /* Setter */ && hostRef.$instanceValues$.has(memberName)) {
3851
+ const pendingValue = hostRef.$instanceValues$.get(memberName);
3852
+ if (instance[memberName] !== pendingValue) {
3853
+ instance[memberName] = pendingValue;
3854
+ }
3855
+ }
3856
+ }
3857
+ };
3858
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
3859
+ var _a, _b;
3860
+ const prototype = Cstr.prototype;
3861
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
3862
+ {
3863
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
3864
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
3865
+ }
3866
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
3867
+ cmpMeta.$deserializers$ = Cstr.deserializers;
3868
+ }
3869
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
3870
+ cmpMeta.$serializers$ = Cstr.serializers;
3871
+ }
3872
+ }
3873
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
3874
+ members.map(([memberName, [memberFlags]]) => {
3875
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
3876
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
3877
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
3878
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
3879
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
3880
+ Object.defineProperty(prototype, memberName, {
3881
+ get() {
3882
+ {
3883
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
3884
+ return getValue(this, memberName);
3885
+ }
3886
+ const ref = getHostRef(this);
3887
+ if (!ref) return prototype[memberName];
3888
+ return ref.$lazyInstance$ ? ref.$lazyInstance$[memberName] : getValue(this, memberName);
3889
+ }
3890
+ },
3891
+ configurable: true,
3892
+ enumerable: true
3893
+ });
3894
+ }
3895
+ Object.defineProperty(prototype, memberName, {
3896
+ set(newValue) {
3897
+ const ref = getHostRef(this);
3898
+ if (!ref) {
3899
+ return;
3900
+ }
3901
+ if (origSetter) {
3902
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
3903
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
3904
+ newValue = ref.$instanceValues$.get(memberName);
3905
+ }
3906
+ origSetter.apply(this, [
3907
+ parsePropertyValue(
3908
+ newValue,
3909
+ memberFlags)
3910
+ ]);
3911
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
3912
+ setValue(this, memberName, newValue, cmpMeta);
3913
+ return;
3914
+ }
3915
+ {
3916
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
3917
+ setValue(this, memberName, newValue, cmpMeta);
3918
+ return;
3919
+ }
3920
+ const parsedValue = parsePropertyValue(
3921
+ newValue,
3922
+ memberFlags);
3923
+ if (ref.$lazyInstance$) {
3924
+ const currentValue = ref.$lazyInstance$[memberName];
3925
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
3926
+ ref.$instanceValues$.set(memberName, currentValue);
3927
+ }
3928
+ ref.$lazyInstance$[memberName] = parsedValue;
3929
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
3930
+ } else {
3931
+ ref.$instanceValues$.set(memberName, parsedValue);
3932
+ }
3933
+ }
3934
+ }
3935
+ });
3936
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
3937
+ Object.defineProperty(prototype, memberName, {
3938
+ value(...args) {
3939
+ var _a2;
3940
+ const ref = getHostRef(this);
3941
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
3942
+ var _a3;
3943
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
3944
+ });
3945
+ }
3946
+ });
3947
+ }
3948
+ });
3949
+ if ((flags & 1 /* isElementConstructor */)) {
3950
+ const attrNameToPropName = /* @__PURE__ */ new Map();
3951
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
3952
+ plt.jmp(() => {
3953
+ var _a2;
3954
+ const propName = attrNameToPropName.get(attrName);
3955
+ const hostRef = getHostRef(this);
3956
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
3957
+ newValue = this[propName];
3958
+ delete this[propName];
3959
+ }
3960
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
3961
+ this[propName] == newValue) {
3962
+ return;
3963
+ } else if (propName == null) {
3964
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
3965
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
3966
+ const instance = hostRef.$lazyInstance$ ;
3967
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
3968
+ entry == null ? void 0 : entry.forEach((watcher) => {
3969
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
3970
+ if ((instance == null ? void 0 : instance[watchMethodName]) != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
3971
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
3972
+ }
3973
+ });
3974
+ }
3975
+ return;
3976
+ }
3977
+ const propFlags = members.find(([m]) => m === propName);
3978
+ const propMemberFlags = propFlags ? propFlags[1][0] : 0;
3979
+ const isBooleanTarget = propMemberFlags & 4 /* Boolean */;
3980
+ if (propMemberFlags & 512 /* ReflectAttr */ && propMemberFlags & 8 /* Any */ && // a complex value is never written to an attribute, so a change while the prop holds
3981
+ // one is always external
3982
+ !isComplexType(this[propName]) && reflectedAttrValue(this[propName]) === newValue) {
3983
+ return;
3984
+ }
3985
+ const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
3986
+ if (isBooleanTarget) {
3987
+ newValue = newValue === null || newValue === "false" && true ? false : true;
3988
+ }
3989
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
3990
+ const isUnchanged = newValue === this[propName] || newValue == null && this[propName] == null;
3991
+ if (!isSpuriousBooleanRemoval && !isUnchanged && (!propDesc.get || !!propDesc.set)) {
3992
+ this[propName] = newValue;
3993
+ }
3994
+ });
3995
+ };
3996
+ Cstr.observedAttributes = Array.from(
3997
+ /* @__PURE__ */ new Set([
3998
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
3999
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
4000
+ var _a2;
4001
+ const attrName = m[1] || propName;
4002
+ attrNameToPropName.set(attrName, propName);
4003
+ if (m[0] & 512 /* ReflectAttr */) {
4004
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
4005
+ }
4006
+ return attrName;
4007
+ })
4008
+ ])
4009
+ );
4010
+ }
4011
+ }
4012
+ return Cstr;
4013
+ };
4014
+
4015
+ // src/runtime/initialize-component.ts
4016
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
4017
+ var _a;
4018
+ let Cstr;
4019
+ try {
4020
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
4021
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
4022
+ hostRef.$flags$ &= -1025 /* hasFailedLoad */;
4023
+ const bundleId = cmpMeta.$lazyBundleId$;
4024
+ if (bundleId) {
4025
+ const CstrImport = loadModule(cmpMeta, hostRef);
4026
+ if (CstrImport && "then" in CstrImport) {
4027
+ const endLoad = uniqueTime();
4028
+ Cstr = await CstrImport;
4029
+ endLoad();
4030
+ } else {
4031
+ Cstr = CstrImport;
4032
+ }
4033
+ if (!Cstr) {
4034
+ hostRef.$flags$ &= -33 /* hasInitializedComponent */;
4035
+ hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;
4036
+ if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {
4037
+ hostRef.$flags$ |= 1024 /* hasFailedLoad */;
4038
+ }
4039
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
4040
+ }
4041
+ if (!Cstr.isProxied) {
4042
+ {
4043
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
4044
+ cmpMeta.$serializers$ = Cstr.serializers;
4045
+ cmpMeta.$deserializers$ = Cstr.deserializers;
4046
+ }
4047
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
4048
+ Cstr.isProxied = true;
4049
+ }
4050
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
4051
+ {
4052
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
4053
+ }
4054
+ try {
4055
+ new Cstr(hostRef);
4056
+ } catch (e) {
4057
+ consoleError(e, elm);
4058
+ }
4059
+ {
4060
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
4061
+ replayPendingSetterValues(hostRef, cmpMeta);
4062
+ }
4063
+ {
4064
+ hostRef.$flags$ |= 128 /* isWatchReady */;
4065
+ }
4066
+ endNewInstance();
4067
+ {
4068
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
4069
+ }
4070
+ } else {
4071
+ Cstr = elm.constructor;
4072
+ const cmpTag = elm.localName;
4073
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
4074
+ }
4075
+ if (Cstr && Cstr.style) {
4076
+ let style;
4077
+ if (typeof Cstr.style === "string") {
4078
+ style = Cstr.style;
4079
+ } else if (typeof Cstr.style !== "string") {
4080
+ hostRef.$modeName$ = computeMode(elm);
4081
+ if (hostRef.$modeName$) {
4082
+ style = Cstr.style[hostRef.$modeName$];
4083
+ }
4084
+ }
4085
+ const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
4086
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
4087
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
4088
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
4089
+ endRegisterStyles();
4090
+ }
4091
+ }
4092
+ }
4093
+ const ancestorComponent = hostRef.$ancestorComponent$;
4094
+ const schedule = () => scheduleUpdate(hostRef, true);
4095
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
4096
+ ancestorComponent["s-rc"].push(schedule);
4097
+ } else {
4098
+ schedule();
4099
+ }
4100
+ } catch (e) {
4101
+ consoleError(e, elm);
4102
+ if (hostRef.$onRenderResolve$) {
4103
+ hostRef.$onRenderResolve$();
4104
+ hostRef.$onRenderResolve$ = void 0;
4105
+ }
4106
+ if (hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {
4107
+ hostRef.$onReadyResolve$(elm);
4108
+ }
4109
+ }
4110
+ };
4111
+ var fireConnectedCallback = (instance, elm) => {
4112
+ {
4113
+ safeCall(instance, "connectedCallback", void 0, elm);
4114
+ }
4115
+ };
4116
+
4117
+ // src/runtime/connected-callback.ts
4118
+ var connectedCallback = (elm) => {
4119
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
4120
+ const hostRef = getHostRef(elm);
4121
+ if (!hostRef) {
4122
+ return;
4123
+ }
4124
+ const cmpMeta = hostRef.$cmpMeta$;
4125
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
4126
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
4127
+ hostRef.$flags$ |= 1 /* hasConnected */;
4128
+ let hostId;
4129
+ {
4130
+ hostId = elm.getAttribute(HYDRATE_ID);
4131
+ if (hostId) {
4132
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
4133
+ const scopeId2 = addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) ;
4134
+ elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
4135
+ }
4136
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
4137
+ }
4138
+ }
4139
+ {
4140
+ let ancestorComponent = elm;
4141
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
4142
+ if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
4143
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
4144
+ break;
4145
+ }
4146
+ }
4147
+ }
4148
+ if (cmpMeta.$members$) {
4149
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
4150
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
4151
+ const value = elm[memberName];
4152
+ delete elm[memberName];
4153
+ elm[memberName] = value;
4154
+ }
4155
+ });
4156
+ }
4157
+ {
4158
+ initializeComponent(elm, hostRef, cmpMeta);
4159
+ }
4160
+ } else {
4161
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
4162
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
4163
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
4164
+ } else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {
4165
+ setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);
4166
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
4167
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
4168
+ }
4169
+ }
4170
+ endConnected();
4171
+ }
4172
+ };
4173
+ var disconnectInstance = (instance, elm) => {
4174
+ {
4175
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
4176
+ }
4177
+ };
4178
+ var disconnectedCallback = async (elm) => {
4179
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
4180
+ const hostRef = getHostRef(elm);
4181
+ {
4182
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
4183
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
4184
+ hostRef.$rmListeners$ = void 0;
4185
+ }
4186
+ }
4187
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
4188
+ disconnectInstance(hostRef.$lazyInstance$, elm);
4189
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
4190
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
4191
+ }
4192
+ }
4193
+ if (rootAppliedStyles.has(elm)) {
4194
+ rootAppliedStyles.delete(elm);
4195
+ }
4196
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
4197
+ rootAppliedStyles.delete(elm.shadowRoot);
4198
+ }
4199
+ };
4200
+
4201
+ // src/runtime/bootstrap-lazy.ts
4202
+ var bootstrapLazy = (lazyBundles, options = {}) => {
4203
+ var _a;
4204
+ if (!win.document) {
4205
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
4206
+ return;
4207
+ }
4208
+ const endBootstrap = createTime();
4209
+ const cmpTags = [];
4210
+ const exclude = options.exclude || [];
4211
+ const customElements2 = win.customElements;
4212
+ const head = win.document.head;
4213
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
4214
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
4215
+ const deferredConnectedCallbacks = [];
4216
+ let appLoadFallback;
4217
+ let isBootstrapping = true;
4218
+ Object.assign(plt, options);
4219
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
4220
+ {
4221
+ plt.$flags$ |= 2 /* appLoaded */;
4222
+ }
4223
+ {
4224
+ const cmpMetas = [];
4225
+ lazyBundles.map((lazyBundle) => lazyBundle[1].map(([$flags$, $tagName$]) => cmpMetas.push({ $flags$, $tagName$ })));
4226
+ hydrateScopedToShadow(cmpMetas);
4227
+ }
4228
+ lazyBundles.map((lazyBundle) => {
4229
+ lazyBundle[1].map((compactMeta) => {
4230
+ var _a2, _b;
4231
+ const cmpMeta = {
4232
+ $flags$: compactMeta[0],
4233
+ $tagName$: compactMeta[1],
4234
+ $members$: compactMeta[2],
4235
+ $listeners$: compactMeta[3]
4236
+ };
4237
+ {
4238
+ cmpMeta.$members$ = compactMeta[2];
4239
+ }
4240
+ {
4241
+ cmpMeta.$listeners$ = compactMeta[3];
4242
+ }
4243
+ {
4244
+ cmpMeta.$attrsToReflect$ = [];
4245
+ }
4246
+ {
4247
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
4248
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
4249
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
4250
+ }
4251
+ const tagName = transformTag(cmpMeta.$tagName$);
4252
+ const HostElement = class extends HTMLElement {
4253
+ ["s-p"];
4254
+ ["s-rc"];
4255
+ hasRegisteredEventListeners = false;
4256
+ // StencilLazyHost
4257
+ constructor(self) {
4258
+ super(self);
4259
+ self = this;
4260
+ registerHost(self, cmpMeta);
4261
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
4262
+ {
4263
+ if (!self.shadowRoot) {
4264
+ createShadowRoot.call(self, cmpMeta);
4265
+ } else {
4266
+ if (self.shadowRoot.mode !== "open") {
4267
+ throw new Error(
4268
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
4269
+ );
4270
+ }
4271
+ }
4272
+ }
4273
+ }
4274
+ }
4275
+ connectedCallback() {
4276
+ const hostRef = getHostRef(this);
4277
+ if (!hostRef) {
4278
+ return;
4279
+ }
4280
+ if (!this.hasRegisteredEventListeners) {
4281
+ this.hasRegisteredEventListeners = true;
4282
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
4283
+ }
4284
+ if (appLoadFallback) {
4285
+ clearTimeout(appLoadFallback);
4286
+ appLoadFallback = null;
4287
+ }
4288
+ if (isBootstrapping) {
4289
+ deferredConnectedCallbacks.push(this);
4290
+ } else {
4291
+ plt.jmp(() => connectedCallback(this));
4292
+ }
4293
+ }
4294
+ disconnectedCallback() {
4295
+ plt.jmp(() => disconnectedCallback(this));
4296
+ nextTick(() => {
4297
+ var _a3;
4298
+ const hostRef = getHostRef(this);
4299
+ if (!hostRef) {
4300
+ return;
4301
+ }
4302
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
4303
+ if (i2 > -1) {
4304
+ deferredConnectedCallbacks.splice(i2, 1);
4305
+ }
4306
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
4307
+ delete hostRef.$vnode$.$elm$;
4308
+ }
4309
+ });
4310
+ }
4311
+ componentOnReady() {
4312
+ var _a3;
4313
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
4314
+ }
4315
+ };
4316
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
4317
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
4318
+ cmpTags.push(tagName);
4319
+ customElements2.define(
4320
+ tagName,
4321
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
4322
+ );
4323
+ }
4324
+ });
4325
+ });
4326
+ if (cmpTags.length > 0) {
4327
+ {
4328
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
4329
+ }
4330
+ if (dataStyles.innerHTML.length) {
4331
+ dataStyles.setAttribute("data-styles", "");
4332
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
4333
+ if (nonce != null) {
4334
+ dataStyles.setAttribute("nonce", nonce);
4335
+ }
4336
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
4337
+ }
4338
+ }
4339
+ isBootstrapping = false;
4340
+ if (deferredConnectedCallbacks.length) {
4341
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
4342
+ } else {
4343
+ {
4344
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
4345
+ }
4346
+ }
4347
+ endBootstrap();
4348
+ };
4349
+
4350
+ // src/runtime/fragment.ts
4351
+ var Fragment = (_, children) => children;
4352
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
4353
+ if (listeners && win.document) {
4354
+ listeners.map(([flags, name, method]) => {
4355
+ const target = elm;
4356
+ const handler = hostListenerProxy(hostRef, method);
4357
+ const opts = hostListenerOpts(flags);
4358
+ plt.ael(target, name, handler, opts);
4359
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
4360
+ });
4361
+ }
4362
+ };
4363
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
4364
+ var _a;
4365
+ try {
4366
+ {
4367
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
4368
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
4369
+ } else {
4370
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
4371
+ }
4372
+ }
4373
+ } catch (e) {
4374
+ consoleError(e, hostRef.$hostElement$);
4375
+ }
4376
+ };
4377
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
4378
+ passive: (flags & 1 /* Passive */) !== 0,
4379
+ capture: (flags & 2 /* Capture */) !== 0
4380
+ } : (flags & 2 /* Capture */) !== 0;
4381
+
4382
+ // src/runtime/tag-transform.ts
4383
+ var tagTransformer = void 0;
4384
+ function transformTag(tag) {
4385
+ if (!tagTransformer) return tag;
4386
+ return tagTransformer(tag);
4387
+ }
4388
+ function setTagTransformer(transformer) {
4389
+ if (tagTransformer) {
4390
+ console.warn(`
4391
+ A tagTransformer has already been set.
4392
+ Overwriting it may lead to error and unexpected results if your components have already been defined.
4393
+ `);
4394
+ }
4395
+ tagTransformer = transformer;
4396
+ }
4397
+
4398
+ /*!
4399
+ * KoliBri - The accessible HTML-Standard
4400
+ */
4401
+
4402
+ const getSharedState = (key, create) => {
4403
+ var _a, _b;
4404
+ var _c;
4405
+ const globals = ((_a = (_c = globalThis).KoliBriGlobals) !== null && _a !== void 0 ? _a : (_c.KoliBriGlobals = {}));
4406
+ (_b = globals[key]) !== null && _b !== void 0 ? _b : (globals[key] = create());
4407
+ return globals[key];
4408
+ };
4409
+
4410
+ /*!
4411
+ * KoliBri - The accessible HTML-Standard
4412
+ */
4413
+
4414
+ const shareThemeStore = () => {
4415
+ n$1.A11yUi = getSharedState('themes', () => n$1.A11yUi);
4416
+ };
4417
+
4418
+ exports.Ee = Ee;
4419
+ exports.Env = Env;
4420
+ exports.Fragment = Fragment;
4421
+ exports.Host = Host;
4422
+ exports.KoliBriDevHelper = KoliBriDevHelper;
4423
+ exports.KoliBriUtils = KoliBriUtils;
4424
+ exports.Log = Log;
4425
+ exports.R = R;
4426
+ exports.STATE_CHANGE_EVENT = STATE_CHANGE_EVENT;
4427
+ exports.X = X;
4428
+ exports.a11yHint = a11yHint;
4429
+ exports.a11yHintLabelingLandmarks = a11yHintLabelingLandmarks;
4430
+ exports.bootstrapLazy = bootstrapLazy;
4431
+ exports.de = de;
4432
+ exports.deprecatedHint = deprecatedHint;
4433
+ exports.devHint = devHint;
4434
+ exports.devWarning = devWarning;
4435
+ exports.featureHint = featureHint;
4436
+ exports.forceUpdate = forceUpdate;
4437
+ exports.getColorContrastAnalysis = getColorContrastAnalysis;
4438
+ exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
4439
+ exports.getDocument = getDocument;
4440
+ exports.getElement = getElement;
4441
+ exports.getExperimentalMode = getExperimentalMode;
4442
+ exports.getSharedState = getSharedState;
4443
+ exports.getWindow = getWindow;
4444
+ exports.h = h;
4445
+ exports.hsl = hsl;
4446
+ exports.isDevMode = isDevMode;
4447
+ exports.isNumberString = isNumberString;
4448
+ exports.isObject = isObject;
4449
+ exports.isString = isString;
4450
+ exports.isStyle = isStyle;
4451
+ exports.isTestMode = isTestMode;
4452
+ exports.isValidationEnabled = isValidationEnabled;
4453
+ exports.koliBriA11yColorContrast = koliBriA11yColorContrast;
4454
+ exports.koliBriQuerySelector = koliBriQuerySelector;
4455
+ exports.koliBriQuerySelectorAll = koliBriQuerySelectorAll;
4456
+ exports.koliBriQuerySelectorColors = koliBriQuerySelectorColors;
4457
+ exports.objectObjectHandler = objectObjectHandler;
4458
+ exports.parse = parse;
4459
+ exports.parseJson = parseJson;
4460
+ exports.registerInstance = registerInstance;
4461
+ exports.rgb = rgb;
4462
+ exports.rgba = rgba;
4463
+ exports.s = s;
4464
+ exports.se = se;
4465
+ exports.setColorContrastAnalysis = setColorContrastAnalysis;
4466
+ exports.setEventTarget = setEventTarget;
4467
+ exports.setExperimentalMode = setExperimentalMode;
4468
+ exports.setMode = setMode;
4469
+ exports.setRuntimeMode = setRuntimeMode;
4470
+ exports.setTagTransformer = setTagTransformer;
4471
+ exports.shareThemeStore = shareThemeStore;
4472
+ exports.stringifyJson = stringifyJson;
4473
+ exports.transformTag = transformTag;
4474
+ exports.uiUxHint = uiUxHint;
4475
+ exports.uiUxHintMillerscheZahl = uiUxHintMillerscheZahl;
4476
+ exports.w = w;