@public-ui/visual-tests 4.6.0-rc.0 → 4.6.0-rc.1

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 (402) hide show
  1. package/app/dist/assets/{Heading-Bj2Ma7Tr-DA-cxUQa.js → Heading-wrhAEuG3-DZ6tf4UL.js} +2 -2
  2. package/app/dist/assets/{Heading-Bj2Ma7Tr-DA-cxUQa.js.map → Heading-wrhAEuG3-DZ6tf4UL.js.map} +1 -1
  3. package/app/dist/assets/api-7B_iI89k-B0gniRET.js +2 -0
  4. package/app/dist/assets/api-7B_iI89k-B0gniRET.js.map +1 -0
  5. package/app/dist/assets/{base-IzdO60L1-DEnq3P94.js → base-BDYPTFjC-CqcImfdx.js} +2 -2
  6. package/app/dist/assets/{base-IzdO60L1-DEnq3P94.js.map → base-BDYPTFjC-CqcImfdx.js.map} +1 -1
  7. package/app/dist/assets/base-BVztEKgJ-67LWvk_h.js +2 -0
  8. package/app/dist/assets/{base-CJ5WCVaj-CEeX_jxi.js.map → base-BVztEKgJ-67LWvk_h.js.map} +1 -1
  9. package/app/dist/assets/base-C32RNC8q-Cuh8cWmj.js +2 -0
  10. package/app/dist/assets/base-C32RNC8q-Cuh8cWmj.js.map +1 -0
  11. package/app/dist/assets/{base-Ba-xzpOT-C72hjDKq.js → base-D_-9Lzkd-BTTss_JV.js} +2 -2
  12. package/app/dist/assets/{base-Ba-xzpOT-C72hjDKq.js.map → base-D_-9Lzkd-BTTss_JV.js.map} +1 -1
  13. package/app/dist/assets/{base-web-component-BB3dHStd-BN15AQz6.js → base-web-component-BUu68byc-6NJUeHJD.js} +2 -2
  14. package/app/dist/assets/{base-web-component-BB3dHStd-BN15AQz6.js.map → base-web-component-BUu68byc-6NJUeHJD.js.map} +1 -1
  15. package/app/dist/assets/{base-web-component-ug9DZUOx-BsSNYQEY.js → base-web-component-DdY5aIHN-CB4UzdKB.js} +2 -2
  16. package/app/dist/assets/{base-web-component-ug9DZUOx-BsSNYQEY.js.map → base-web-component-DdY5aIHN-CB4UzdKB.js.map} +1 -1
  17. package/app/dist/assets/{base-web-component-XgI4wUyN-BtW42r31.js → base-web-component-XgI4wUyN-CThgVvvw.js} +2 -2
  18. package/app/dist/assets/{base-web-component-XgI4wUyN-BtW42r31.js.map → base-web-component-XgI4wUyN-CThgVvvw.js.map} +1 -1
  19. package/app/dist/assets/behavior-DN-22cB1-BVRTjiD4.js +2 -0
  20. package/app/dist/assets/behavior-DN-22cB1-BVRTjiD4.js.map +1 -0
  21. package/app/dist/assets/{behavior-BgmZcrK6-DKxnXybB.js → behavior-DsTiTiJC-DTRO_8ta.js} +2 -2
  22. package/app/dist/assets/{behavior-BgmZcrK6-DKxnXybB.js.map → behavior-DsTiTiJC-DTRO_8ta.js.map} +1 -1
  23. package/app/dist/assets/{behavior-B4IW5_Qt-C02JSQ_A.js → behavior-fGxZN96S-DWQ51dCU.js} +2 -2
  24. package/app/dist/assets/{behavior-B4IW5_Qt-C02JSQ_A.js.map → behavior-fGxZN96S-DWQ51dCU.js.map} +1 -1
  25. package/app/dist/assets/block-bem-DehcAQZQ-CrjCm8hs.js +2 -0
  26. package/app/dist/assets/{block-bem-BpQSY04L-CRt3xbMV.js.map → block-bem-DehcAQZQ-CrjCm8hs.js.map} +1 -1
  27. package/app/dist/assets/{color-eAL9I7Wq-C5w8yVYX.js → color-eAL9I7Wq-CGdaHMmQ.js} +2 -2
  28. package/app/dist/assets/{color-eAL9I7Wq-C5w8yVYX.js.map → color-eAL9I7Wq-CGdaHMmQ.js.map} +1 -1
  29. package/app/dist/assets/component-0IO2wu9i-CnMYTy0I.js +2 -0
  30. package/app/dist/assets/{component-BiYFPpjn-BYJKeDSX.js.map → component-0IO2wu9i-CnMYTy0I.js.map} +1 -1
  31. package/app/dist/assets/{component-DdIOGRgB-D2LHoMnt.js → component-4xXBb7K--63VoyhIM.js} +2 -2
  32. package/app/dist/assets/{component-DdIOGRgB-D2LHoMnt.js.map → component-4xXBb7K--63VoyhIM.js.map} +1 -1
  33. package/app/dist/assets/component-BJ4gGOph-ZMQ5WQNu.js +2 -0
  34. package/app/dist/assets/{component-scm3PBuq-BjdxjHDN.js.map → component-BJ4gGOph-ZMQ5WQNu.js.map} +1 -1
  35. package/app/dist/assets/{component-BvvE8aim-UQRI7P-j.js → component-CPq3i3I_-uvGfpE6R.js} +2 -2
  36. package/app/dist/assets/{component-BvvE8aim-UQRI7P-j.js.map → component-CPq3i3I_-uvGfpE6R.js.map} +1 -1
  37. package/app/dist/assets/component-CTOYF3q6-DU2Ldi3W.js +2 -0
  38. package/app/dist/assets/{component-ChtW1HQv-DoO-XUPL.js.map → component-CTOYF3q6-DU2Ldi3W.js.map} +1 -1
  39. package/app/dist/assets/{component-BKfXEtN0-C8yiDeiX.js → component-ChuoBFI--DGuaqA1H.js} +2 -2
  40. package/app/dist/assets/{component-BKfXEtN0-C8yiDeiX.js.map → component-ChuoBFI--DGuaqA1H.js.map} +1 -1
  41. package/app/dist/assets/component-Cxdi6on4-BBmqaA-z.js +2 -0
  42. package/app/dist/assets/component-Cxdi6on4-BBmqaA-z.js.map +1 -0
  43. package/app/dist/assets/{component-Drxdk3mb-DbnGS_pG.js → component-DHNcVTi0-BR_wLWGW.js} +2 -2
  44. package/app/dist/assets/{component-Drxdk3mb-DbnGS_pG.js.map → component-DHNcVTi0-BR_wLWGW.js.map} +1 -1
  45. package/app/dist/assets/{component-gj7TBL0i-CrMR3UTy.js → component-DWywPG_a-BrVYgNyK.js} +2 -2
  46. package/app/dist/assets/{component-gj7TBL0i-CrMR3UTy.js.map → component-DWywPG_a-BrVYgNyK.js.map} +1 -1
  47. package/app/dist/assets/{component-Ua7-J4C--Dkd-CEgJ.js → component-EK9BJR6z-C556wMNH.js} +2 -2
  48. package/app/dist/assets/{component-Ua7-J4C--Dkd-CEgJ.js.map → component-EK9BJR6z-C556wMNH.js.map} +1 -1
  49. package/app/dist/assets/{component-C0zMsvYl-CehExNsM.js → component-NEw1tN3M-CbOIJhXb.js} +4 -4
  50. package/app/dist/assets/{component-C0zMsvYl-CehExNsM.js.map → component-NEw1tN3M-CbOIJhXb.js.map} +1 -1
  51. package/app/dist/assets/{component-C5QCCLLa-DO_EI87c.js → component-et0GdBuf-DjDFULvI.js} +2 -2
  52. package/app/dist/assets/{component-C5QCCLLa-DO_EI87c.js.map → component-et0GdBuf-DjDFULvI.js.map} +1 -1
  53. package/app/dist/assets/contrast-D78VGPFR-DPob2RQc.js +2 -0
  54. package/app/dist/assets/{contrast-D78VGPFR-DwDZJU5K.js.map → contrast-D78VGPFR-DPob2RQc.js.map} +1 -1
  55. package/app/dist/assets/{controller-Cb-96wE--CleoiTwB.js → controller-Cb-96wE--CCWJXl39.js} +2 -2
  56. package/app/dist/assets/{controller-Cb-96wE--CleoiTwB.js.map → controller-Cb-96wE--CCWJXl39.js.map} +1 -1
  57. package/app/dist/assets/{dev.utils-CwXr_J8N-UD7MeTqn.js → dev.utils-Bg7nZBMk-BhnN_Qf7.js} +4 -4
  58. package/app/dist/assets/{dev.utils-CwXr_J8N-UD7MeTqn.js.map → dev.utils-Bg7nZBMk-BhnN_Qf7.js.map} +1 -1
  59. package/app/dist/assets/devtools-nUT3JVTV-BIy2DCmZ.js +14 -0
  60. package/app/dist/assets/{devtools-QEDvmhav-CNr3f7eL.js.map → devtools-nUT3JVTV-BIy2DCmZ.js.map} +1 -1
  61. package/app/dist/assets/disabled-Cqhc40CU-Db9OsyPy.js +2 -0
  62. package/app/dist/assets/{disabled-Cqhc40CU-BHScweWX.js.map → disabled-Cqhc40CU-Db9OsyPy.js.map} +1 -1
  63. package/app/dist/assets/{field-control-BOsAM8BW-DH4wMN1D.js → field-control-D2tOd14v-9DXmitR7.js} +2 -2
  64. package/app/dist/assets/{field-control-BOsAM8BW-DH4wMN1D.js.map → field-control-D2tOd14v-9DXmitR7.js.map} +1 -1
  65. package/app/dist/assets/{group-D4WbZY27-ClU2PNGf.js → group-CxWsx0aJ-xDL-6Fhg.js} +2 -2
  66. package/app/dist/assets/{group-D4WbZY27-ClU2PNGf.js.map → group-CxWsx0aJ-xDL-6Fhg.js.map} +1 -1
  67. package/app/dist/assets/has-closer-B9NQY7BK-DYyd1-PE.js +2 -0
  68. package/app/dist/assets/{has-closer-B9NQY7BK-D85Oz6qP.js.map → has-closer-B9NQY7BK-DYyd1-PE.js.map} +1 -1
  69. package/app/dist/assets/href-JqLbNBsW-gBZUUmfC.js +2 -0
  70. package/app/dist/assets/{href-JqLbNBsW-D0hB2Sxe.js.map → href-JqLbNBsW-gBZUUmfC.js.map} +1 -1
  71. package/app/dist/assets/i18n-DtLKn3Xt-iV9JqK8t.js +2 -0
  72. package/app/dist/assets/{i18n-DtLKn3Xt-xTjffd0e.js.map → i18n-DtLKn3Xt-iV9JqK8t.js.map} +1 -1
  73. package/app/dist/assets/id-CIYvVaNr-4urpHjsh.js +2 -0
  74. package/app/dist/assets/{id-CIYvVaNr-B4H1Ce3n.js.map → id-CIYvVaNr-4urpHjsh.js.map} +1 -1
  75. package/app/dist/assets/index-B5Z7PofF.js +97 -0
  76. package/app/dist/assets/index-B5Z7PofF.js.map +1 -0
  77. package/app/dist/assets/{index-D_P2XoAc-C0ENoKkW.js → index-B_bJG8-2-BxSypZOc.js} +4 -4
  78. package/app/dist/assets/index-B_bJG8-2-BxSypZOc.js.map +1 -0
  79. package/app/dist/assets/index-CTU5mf3R.css +1 -0
  80. package/app/dist/assets/input-Ia9Z3AP7-eGyam5uQ.js +2 -0
  81. package/app/dist/assets/{input-C0kj1MmP-DcbMSrbF.js.map → input-Ia9Z3AP7-eGyam5uQ.js.map} +1 -1
  82. package/app/dist/assets/{input-container-B4TgBfDz-CcXTMe1g.js → input-container-Y_8n5Sen-CVyG5c3C.js} +2 -2
  83. package/app/dist/assets/{input-container-B4TgBfDz-CcXTMe1g.js.map → input-container-Y_8n5Sen-CVyG5c3C.js.map} +1 -1
  84. package/app/dist/assets/item-BKVeXzUO-Ba1XuBpP.js +2 -0
  85. package/app/dist/assets/item-BKVeXzUO-Ba1XuBpP.js.map +1 -0
  86. package/app/dist/assets/{item-DRC1CmzC-DlH4mvmb.js → item-BZtI88zF-D1IT64FE.js} +2 -2
  87. package/app/dist/assets/{item-DRC1CmzC-DlH4mvmb.js.map → item-BZtI88zF-D1IT64FE.js.map} +1 -1
  88. package/app/dist/assets/{item-e4SzwxHe-BwAMGL4h.js → item-BjriQHQl-CeeSlHhU.js} +2 -2
  89. package/app/dist/assets/{item-e4SzwxHe-BwAMGL4h.js.map → item-BjriQHQl-CeeSlHhU.js.map} +1 -1
  90. package/app/dist/assets/item-BuqBMSYI-CYUsvCWp.js +2 -0
  91. package/app/dist/assets/item-BuqBMSYI-CYUsvCWp.js.map +1 -0
  92. package/app/dist/assets/{kol-abbr.entry-CF8mpinl.js → kol-abbr.entry-C-gDYmqx.js} +2 -2
  93. package/app/dist/assets/{kol-abbr.entry-CF8mpinl.js.map → kol-abbr.entry-C-gDYmqx.js.map} +1 -1
  94. package/app/dist/assets/kol-accordion.entry-DyXi3YY-.js +2 -0
  95. package/app/dist/assets/{kol-accordion.entry-tbpZI844.js.map → kol-accordion.entry-DyXi3YY-.js.map} +1 -1
  96. package/app/dist/assets/kol-alert.entry-Qs_ybM6g.js +2 -0
  97. package/app/dist/assets/kol-alert.entry-Qs_ybM6g.js.map +1 -0
  98. package/app/dist/assets/{kol-avatar.entry-BaABg1mT.js → kol-avatar.entry-D0HGZtvc.js} +2 -2
  99. package/app/dist/assets/{kol-avatar.entry-BaABg1mT.js.map → kol-avatar.entry-D0HGZtvc.js.map} +1 -1
  100. package/app/dist/assets/kol-badge.entry-Cd43z8wG.js +2 -0
  101. package/app/dist/assets/kol-badge.entry-Cd43z8wG.js.map +1 -0
  102. package/app/dist/assets/{kol-breadcrumb.entry-DYDGnwam.js → kol-breadcrumb.entry-CfZRxKBs.js} +2 -2
  103. package/app/dist/assets/{kol-breadcrumb.entry-DYDGnwam.js.map → kol-breadcrumb.entry-CfZRxKBs.js.map} +1 -1
  104. package/app/dist/assets/kol-button-link.entry-n9KNrPtg.js +2 -0
  105. package/app/dist/assets/kol-button-link.entry-n9KNrPtg.js.map +1 -0
  106. package/app/dist/assets/kol-button.entry-BNCpp21x.js +2 -0
  107. package/app/dist/assets/kol-button.entry-BNCpp21x.js.map +1 -0
  108. package/app/dist/assets/kol-card.entry-DyXDBPVn.js +2 -0
  109. package/app/dist/assets/kol-card.entry-DyXDBPVn.js.map +1 -0
  110. package/app/dist/assets/kol-combobox.entry-B_8JrTMe.js +2 -0
  111. package/app/dist/assets/kol-combobox.entry-B_8JrTMe.js.map +1 -0
  112. package/app/dist/assets/kol-details.entry-BHNaRvgb.js +2 -0
  113. package/app/dist/assets/{kol-details.entry-zmNm7saR.js.map → kol-details.entry-BHNaRvgb.js.map} +1 -1
  114. package/app/dist/assets/kol-dialog.entry-CHIY1mG-.js +2 -0
  115. package/app/dist/assets/kol-dialog.entry-CHIY1mG-.js.map +1 -0
  116. package/app/dist/assets/kol-drawer.entry-UynoBUD1.js +2 -0
  117. package/app/dist/assets/kol-drawer.entry-UynoBUD1.js.map +1 -0
  118. package/app/dist/assets/kol-form.entry-CoHHjHRR.js +2 -0
  119. package/app/dist/assets/kol-form.entry-CoHHjHRR.js.map +1 -0
  120. package/app/dist/assets/{kol-heading.entry-DvEfQBAi.js → kol-heading.entry-CJy6iST2.js} +2 -2
  121. package/app/dist/assets/{kol-heading.entry-DvEfQBAi.js.map → kol-heading.entry-CJy6iST2.js.map} +1 -1
  122. package/app/dist/assets/{kol-icon.entry-DKhcLeat.js → kol-icon.entry-C-I4_UDK.js} +2 -2
  123. package/app/dist/assets/{kol-icon.entry-DKhcLeat.js.map → kol-icon.entry-C-I4_UDK.js.map} +1 -1
  124. package/app/dist/assets/{kol-image.entry-g6upni6u.js → kol-image.entry-_Y3VwuvE.js} +2 -2
  125. package/app/dist/assets/{kol-image.entry-g6upni6u.js.map → kol-image.entry-_Y3VwuvE.js.map} +1 -1
  126. package/app/dist/assets/kol-input-checkbox.entry-DdAd2A8H.js +2 -0
  127. package/app/dist/assets/kol-input-checkbox.entry-DdAd2A8H.js.map +1 -0
  128. package/app/dist/assets/kol-input-color.entry-T4CPujvd.js +2 -0
  129. package/app/dist/assets/kol-input-color.entry-T4CPujvd.js.map +1 -0
  130. package/app/dist/assets/kol-input-date.entry-F5kVGqNG.js +2 -0
  131. package/app/dist/assets/kol-input-date.entry-F5kVGqNG.js.map +1 -0
  132. package/app/dist/assets/kol-input-email.entry-VyO5w3Ik.js +2 -0
  133. package/app/dist/assets/kol-input-email.entry-VyO5w3Ik.js.map +1 -0
  134. package/app/dist/assets/kol-input-file.entry-D6r9U4mo.js +2 -0
  135. package/app/dist/assets/kol-input-file.entry-D6r9U4mo.js.map +1 -0
  136. package/app/dist/assets/kol-input-number.entry-SprdFhtZ.js +2 -0
  137. package/app/dist/assets/kol-input-number.entry-SprdFhtZ.js.map +1 -0
  138. package/app/dist/assets/kol-input-password.entry-Q3DFvY1B.js +2 -0
  139. package/app/dist/assets/kol-input-password.entry-Q3DFvY1B.js.map +1 -0
  140. package/app/dist/assets/kol-input-radio.entry-PB7apcu7.js +2 -0
  141. package/app/dist/assets/kol-input-radio.entry-PB7apcu7.js.map +1 -0
  142. package/app/dist/assets/{kol-input-email.entry-rXzmsk2J.js → kol-input-range.entry-CyKka3G-.js} +2 -2
  143. package/app/dist/assets/kol-input-range.entry-CyKka3G-.js.map +1 -0
  144. package/app/dist/assets/kol-input-text.entry-Bx129Cyt.js +2 -0
  145. package/app/dist/assets/kol-input-text.entry-Bx129Cyt.js.map +1 -0
  146. package/app/dist/assets/{kol-kolibri.entry-R0tAAoXi.js → kol-kolibri.entry-CPiAZHT0.js} +2 -2
  147. package/app/dist/assets/{kol-kolibri.entry-R0tAAoXi.js.map → kol-kolibri.entry-CPiAZHT0.js.map} +1 -1
  148. package/app/dist/assets/{kol-modal.entry-DTMM9y0V.js → kol-link-button.entry-ybA9OES5.js} +2 -2
  149. package/app/dist/assets/{kol-link-button.entry-Dfo_3lrk.js.map → kol-link-button.entry-ybA9OES5.js.map} +1 -1
  150. package/app/dist/assets/{kol-link.entry-B06TF9KE.js → kol-link.entry-D2HqSyLh.js} +2 -2
  151. package/app/dist/assets/{kol-link.entry-B06TF9KE.js.map → kol-link.entry-D2HqSyLh.js.map} +1 -1
  152. package/app/dist/assets/{kol-meter.entry-Vb2AE2Nr.js → kol-meter.entry-Dthlv5HB.js} +2 -2
  153. package/app/dist/assets/{kol-meter.entry-Vb2AE2Nr.js.map → kol-meter.entry-Dthlv5HB.js.map} +1 -1
  154. package/app/dist/assets/kol-modal.entry-DJKlbWPS.js +2 -0
  155. package/app/dist/assets/kol-modal.entry-DJKlbWPS.js.map +1 -0
  156. package/app/dist/assets/kol-nav.entry-aYmDxrO8.js +2 -0
  157. package/app/dist/assets/kol-nav.entry-aYmDxrO8.js.map +1 -0
  158. package/app/dist/assets/kol-pagination.entry-D9ZfD4pH.js +2 -0
  159. package/app/dist/assets/kol-pagination.entry-D9ZfD4pH.js.map +1 -0
  160. package/app/dist/assets/kol-popover-button.entry-C1qu_P0B.js +2 -0
  161. package/app/dist/assets/kol-popover-button.entry-C1qu_P0B.js.map +1 -0
  162. package/app/dist/assets/{kol-progress.entry-C1c5qM-E.js → kol-progress.entry-5_O6k0jo.js} +2 -2
  163. package/app/dist/assets/{kol-progress.entry-C1c5qM-E.js.map → kol-progress.entry-5_O6k0jo.js.map} +1 -1
  164. package/app/dist/assets/{kol-quote.entry-BuPOzOpN.js → kol-quote.entry-CRnWPFAQ.js} +2 -2
  165. package/app/dist/assets/{kol-quote.entry-BuPOzOpN.js.map → kol-quote.entry-CRnWPFAQ.js.map} +1 -1
  166. package/app/dist/assets/kol-select.entry-Dug1NFkp.js +2 -0
  167. package/app/dist/assets/kol-select.entry-Dug1NFkp.js.map +1 -0
  168. package/app/dist/assets/kol-single-select.entry-DR-3mad8.js +2 -0
  169. package/app/dist/assets/kol-single-select.entry-DR-3mad8.js.map +1 -0
  170. package/app/dist/assets/kol-skip-nav.entry-DSGgsXWj.js +2 -0
  171. package/app/dist/assets/{kol-skip-nav.entry-BG23tccy.js.map → kol-skip-nav.entry-DSGgsXWj.js.map} +1 -1
  172. package/app/dist/assets/{kol-spin.entry-DNFSKr1v.js → kol-spin.entry-wyLrW8xn.js} +2 -2
  173. package/app/dist/assets/{kol-spin.entry-DNFSKr1v.js.map → kol-spin.entry-wyLrW8xn.js.map} +1 -1
  174. package/app/dist/assets/kol-split-button.entry-DS_6nLIV.js +2 -0
  175. package/app/dist/assets/kol-split-button.entry-DS_6nLIV.js.map +1 -0
  176. package/app/dist/assets/kol-table-stateful.entry-D6XsxAhD.js +2 -0
  177. package/app/dist/assets/kol-table-stateful.entry-D6XsxAhD.js.map +1 -0
  178. package/app/dist/assets/kol-table-stateless.entry-ChRGFBnH.js +2 -0
  179. package/app/dist/assets/kol-table-stateless.entry-ChRGFBnH.js.map +1 -0
  180. package/app/dist/assets/kol-tabs.entry-DawsAyRu.js +2 -0
  181. package/app/dist/assets/kol-tabs.entry-DawsAyRu.js.map +1 -0
  182. package/app/dist/assets/kol-textarea.entry-BykEIl4B.js +2 -0
  183. package/app/dist/assets/kol-textarea.entry-BykEIl4B.js.map +1 -0
  184. package/app/dist/assets/kol-toast-container.entry-DCzWA0D-.js +2 -0
  185. package/app/dist/assets/kol-toast-container.entry-DCzWA0D-.js.map +1 -0
  186. package/app/dist/assets/kol-toolbar.entry-elfsK46F.js +2 -0
  187. package/app/dist/assets/kol-toolbar.entry-elfsK46F.js.map +1 -0
  188. package/app/dist/assets/{kol-tooltip-wc.entry-Da8XsdB_.js → kol-tooltip-wc.entry-DdYvX_82.js} +2 -2
  189. package/app/dist/assets/{kol-tooltip-wc.entry-Da8XsdB_.js.map → kol-tooltip-wc.entry-DdYvX_82.js.map} +1 -1
  190. package/app/dist/assets/{kol-tree-item.entry-Beeg6PAI.js → kol-tree-item.entry-CJ4d-utU.js} +2 -2
  191. package/app/dist/assets/{kol-tree-item.entry-Beeg6PAI.js.map → kol-tree-item.entry-CJ4d-utU.js.map} +1 -1
  192. package/app/dist/assets/{kol-tree.entry-BaKIyQKG.js → kol-tree.entry-DXPYTdyl.js} +2 -2
  193. package/app/dist/assets/{kol-tree.entry-BaKIyQKG.js.map → kol-tree.entry-DXPYTdyl.js.map} +1 -1
  194. package/app/dist/assets/kol-version.entry-DPVmZGH9.js +2 -0
  195. package/app/dist/assets/kol-version.entry-DPVmZGH9.js.map +1 -0
  196. package/app/dist/assets/kolicons/kolicons.eot +0 -0
  197. package/app/dist/assets/kolicons/kolicons.ttf +0 -0
  198. package/app/dist/assets/kolicons/kolicons.woff +0 -0
  199. package/app/dist/assets/kolicons/kolicons.woff2 +0 -0
  200. package/app/dist/assets/kolicons/style.css +6 -6
  201. package/app/dist/assets/label-BRosRgdX-DmiKY1-O.js +2 -0
  202. package/app/dist/assets/{label-BRosRgdX-0xlyQpp4.js.map → label-BRosRgdX-DmiKY1-O.js.map} +1 -1
  203. package/app/dist/assets/label-hints-Jn18RUT--C35IQKbt.js +2 -0
  204. package/app/dist/assets/{label-hints-Jn18RUT--BrogbbJr.js.map → label-hints-Jn18RUT--C35IQKbt.js.map} +1 -1
  205. package/app/dist/assets/label-lang-segment-2_GnxjFp-C1k2onhU.js +2 -0
  206. package/app/dist/assets/{label-lang-segment-2_GnxjFp-DVzZ39jn.js.map → label-lang-segment-2_GnxjFp-C1k2onhU.js.map} +1 -1
  207. package/app/dist/assets/label-with-expert-slot-CicRes-W-DCE5zyFJ.js +2 -0
  208. package/app/dist/assets/{label-with-expert-slot-CicRes-W-LVsp3uAR.js.map → label-with-expert-slot-CicRes-W-DCE5zyFJ.js.map} +1 -1
  209. package/app/dist/assets/level-CA1s1_Mf-DI_p8u_t.js +2 -0
  210. package/app/dist/assets/{level-CA1s1_Mf-Bmffi1ui.js.map → level-CA1s1_Mf-DI_p8u_t.js.map} +1 -1
  211. package/app/dist/assets/link-target-FX94oqMo-CVwu-iMb.js +2 -0
  212. package/app/dist/assets/{link-target-FX94oqMo-BnofaxxF.js.map → link-target-FX94oqMo-CVwu-iMb.js.map} +1 -1
  213. package/app/dist/assets/links-DwucTqcR-gD1YLpcB.js +2 -0
  214. package/app/dist/assets/{links-DwucTqcR-9HzOTh4d.js.map → links-DwucTqcR-gD1YLpcB.js.map} +1 -1
  215. package/app/dist/assets/multiple-DqrZxybx-DPYNeDkZ.js +2 -0
  216. package/app/dist/assets/{multiple-DqrZxybx-BhYus2nF.js.map → multiple-DqrZxybx-DPYNeDkZ.js.map} +1 -1
  217. package/app/dist/assets/{number-value-B-SJ1dRo-Dvr7fYgt.js → number-value-B-SJ1dRo-CPI0mbiL.js} +2 -2
  218. package/app/dist/assets/{number-value-B-SJ1dRo-Dvr7fYgt.js.map → number-value-B-SJ1dRo-CPI0mbiL.js.map} +1 -1
  219. package/app/dist/assets/open-DRRv1KFK-DFtDLjUc.js +2 -0
  220. package/app/dist/assets/{open-DRRv1KFK-DpffXVVz.js.map → open-DRRv1KFK-DFtDLjUc.js.map} +1 -1
  221. package/app/dist/assets/{options-DCaUcfAu-CZ85a3Rc.js → options-DCaUcfAu--1FsXm_u.js} +2 -2
  222. package/app/dist/assets/{options-DCaUcfAu-CZ85a3Rc.js.map → options-DCaUcfAu--1FsXm_u.js.map} +1 -1
  223. package/app/dist/assets/{orientation-XNOCaPwy-CpJSLpz5.js → orientation-XNOCaPwy-BGaUjX3d.js} +2 -2
  224. package/app/dist/assets/{orientation-XNOCaPwy-CpJSLpz5.js.map → orientation-XNOCaPwy-BGaUjX3d.js.map} +1 -1
  225. package/app/dist/assets/placeholder-BeLIzdJv-i2qDExwu.js +2 -0
  226. package/app/dist/assets/{placeholder-BeLIzdJv-oDzatuVl.js.map → placeholder-BeLIzdJv-i2qDExwu.js.map} +1 -1
  227. package/app/dist/assets/{props-from-config-Ci0dILpz-D6Gkf3-U.js → props-from-config-Ci0dILpz-Bo5EQPCO.js} +2 -2
  228. package/app/dist/assets/{props-from-config-Ci0dILpz-D6Gkf3-U.js.map → props-from-config-Ci0dILpz-Bo5EQPCO.js.map} +1 -1
  229. package/app/dist/assets/read-only-Bby9r6ZX-Bmq5X91z.js +2 -0
  230. package/app/dist/assets/{read-only-Bby9r6ZX-D40Zoeqp.js.map → read-only-Bby9r6ZX-Bmq5X91z.js.map} +1 -1
  231. package/app/dist/assets/required-hoaT7UmZ-0ApcSxkl.js +2 -0
  232. package/app/dist/assets/{required-hoaT7UmZ-Und9IBK6.js.map → required-hoaT7UmZ-0ApcSxkl.js.map} +1 -1
  233. package/app/dist/assets/{resolve-props-CqTztQhV-D0vp8h4M.js → resolve-props-BkF1VBBB-DssaMOgv.js} +2 -2
  234. package/app/dist/assets/{resolve-props-CqTztQhV-D0vp8h4M.js.map → resolve-props-BkF1VBBB-DssaMOgv.js.map} +1 -1
  235. package/app/dist/assets/resolve-props-CHPFh7Tn-DW1wvXf0.js +2 -0
  236. package/app/dist/assets/resolve-props-CHPFh7Tn-DW1wvXf0.js.map +1 -0
  237. package/app/dist/assets/rows-B0x8CR7K-B2zaXisM.js +2 -0
  238. package/app/dist/assets/{rows-B0x8CR7K-BbHjVC4J.js.map → rows-B0x8CR7K-B2zaXisM.js.map} +1 -1
  239. package/app/dist/assets/{scroll-lock-CKnC0y0o-C-49_KEv.js → scroll-lock-D7Zo0QLt-BnmWiv-Q.js} +2 -2
  240. package/app/dist/assets/{scroll-lock-CKnC0y0o-C-49_KEv.js.map → scroll-lock-D7Zo0QLt-BnmWiv-Q.js.map} +1 -1
  241. package/app/dist/assets/smart-button-CS_ZriPt-CHOFrTdg.js +2 -0
  242. package/app/dist/assets/{smart-button-CS_ZriPt-2WKOFtbu.js.map → smart-button-CS_ZriPt-CHOFrTdg.js.map} +1 -1
  243. package/app/dist/assets/spell-check-DzgftyqL-gfJx2IZI.js +2 -0
  244. package/app/dist/assets/{spell-check-DzgftyqL-ReFaZM-N.js.map → spell-check-DzgftyqL-gfJx2IZI.js.map} +1 -1
  245. package/app/dist/assets/src-DaGhmCL1-CA_fKWnK.js +2 -0
  246. package/app/dist/assets/{src-DaGhmCL1-B12NGDxG.js.map → src-DaGhmCL1-CA_fKWnK.js.map} +1 -1
  247. package/app/dist/assets/step-Bdj89bGO-CylbUg37.js +2 -0
  248. package/app/dist/assets/{step-Bdj89bGO-BMPjvq5k.js.map → step-Bdj89bGO-CylbUg37.js.map} +1 -1
  249. package/app/dist/assets/{suggestions-Dy1X-Pc3-CCwEcL_l.js → suggestions-Dy1X-Pc3-CBLJ3YnP.js} +2 -2
  250. package/app/dist/assets/{suggestions-Dy1X-Pc3-CCwEcL_l.js.map → suggestions-Dy1X-Pc3-CBLJ3YnP.js.map} +1 -1
  251. package/app/dist/assets/suggestions-GEr-cvbz-B7kwZtEq.js +2 -0
  252. package/app/dist/assets/{suggestions-Be1_H9fA-CU2R31w-.js.map → suggestions-GEr-cvbz-B7kwZtEq.js.map} +1 -1
  253. package/app/dist/assets/test-component.entry-BewIicq8.js +2 -0
  254. package/app/dist/assets/{test-component.entry-DUkPYxQo.js.map → test-component.entry-BewIicq8.js.map} +1 -1
  255. package/app/dist/assets/{toggle-handler-Cjc991vd-DIOoDPz1.js → toggle-handler-Bqoo8tCo-5KmM79Y3.js} +2 -2
  256. package/app/dist/assets/{toggle-handler-Cjc991vd-DIOoDPz1.js.map → toggle-handler-Bqoo8tCo-5KmM79Y3.js.map} +1 -1
  257. package/app/dist/assets/unique-nav-labels-h2KOu5Qy-DgVyaWDd.js +2 -0
  258. package/app/dist/assets/{unique-nav-labels-h2KOu5Qy-ofO6CNz8.js.map → unique-nav-labels-h2KOu5Qy-DgVyaWDd.js.map} +1 -1
  259. package/app/dist/assets/unit-BUhhJbhT-CBx9iCjJ.js +2 -0
  260. package/app/dist/assets/{unit-BUhhJbhT-DayVlmxO.js.map → unit-BUhhJbhT-CBx9iCjJ.js.map} +1 -1
  261. package/app/dist/assets/{validators-BVM40IEr-Bq2Fqy3U.js → validators-BVM40IEr-Dv9fQhRL.js} +2 -2
  262. package/app/dist/assets/{validators-BVM40IEr-Bq2Fqy3U.js.map → validators-BVM40IEr-Dv9fQhRL.js.map} +1 -1
  263. package/app/dist/assets/value-string-e9pwLcS--BtTwM2Wn.js +2 -0
  264. package/app/dist/assets/{value-string-e9pwLcS--CK11wfbw.js.map → value-string-e9pwLcS--BtTwM2Wn.js.map} +1 -1
  265. package/app/dist/assets/{width-CgYY17tL-jYD2--SK.js → width-CgYY17tL-l4Ypguny.js} +2 -2
  266. package/app/dist/assets/{width-CgYY17tL-jYD2--SK.js.map → width-CgYY17tL-l4Ypguny.js.map} +1 -1
  267. package/app/dist/index.html +3 -3
  268. package/app/public/assets/kolicons/kolicons.eot +0 -0
  269. package/app/public/assets/kolicons/kolicons.ttf +0 -0
  270. package/app/public/assets/kolicons/kolicons.woff +0 -0
  271. package/app/public/assets/kolicons/kolicons.woff2 +0 -0
  272. package/app/public/assets/kolicons/style.css +6 -6
  273. package/package.json +4 -4
  274. package/app/dist/assets/api-DhMNvXtN-C_NVOnYW.js +0 -2
  275. package/app/dist/assets/api-DhMNvXtN-C_NVOnYW.js.map +0 -1
  276. package/app/dist/assets/base-CJ5WCVaj-CEeX_jxi.js +0 -2
  277. package/app/dist/assets/base-DV_Pzm7z-BdCQsHVp.js +0 -2
  278. package/app/dist/assets/base-DV_Pzm7z-BdCQsHVp.js.map +0 -1
  279. package/app/dist/assets/behavior-BMXrK4gj-BB7I1Lo7.js +0 -2
  280. package/app/dist/assets/behavior-BMXrK4gj-BB7I1Lo7.js.map +0 -1
  281. package/app/dist/assets/block-bem-BpQSY04L-CRt3xbMV.js +0 -2
  282. package/app/dist/assets/component-BiYFPpjn-BYJKeDSX.js +0 -2
  283. package/app/dist/assets/component-ChtW1HQv-DoO-XUPL.js +0 -2
  284. package/app/dist/assets/component-Db9HadXA-BiKSmooR.js +0 -2
  285. package/app/dist/assets/component-Db9HadXA-BiKSmooR.js.map +0 -1
  286. package/app/dist/assets/component-Dt6efHXY-B3OcDaBv.js +0 -2
  287. package/app/dist/assets/component-Dt6efHXY-B3OcDaBv.js.map +0 -1
  288. package/app/dist/assets/component-scm3PBuq-BjdxjHDN.js +0 -2
  289. package/app/dist/assets/contrast-D78VGPFR-DwDZJU5K.js +0 -2
  290. package/app/dist/assets/devtools-QEDvmhav-CNr3f7eL.js +0 -14
  291. package/app/dist/assets/disabled-Cqhc40CU-BHScweWX.js +0 -2
  292. package/app/dist/assets/has-closer-B9NQY7BK-D85Oz6qP.js +0 -2
  293. package/app/dist/assets/href-JqLbNBsW-D0hB2Sxe.js +0 -2
  294. package/app/dist/assets/i18n-DtLKn3Xt-xTjffd0e.js +0 -2
  295. package/app/dist/assets/id-CIYvVaNr-B4H1Ce3n.js +0 -2
  296. package/app/dist/assets/index-D_P2XoAc-C0ENoKkW.js.map +0 -1
  297. package/app/dist/assets/index-DuT7dHeQ.js +0 -97
  298. package/app/dist/assets/index-DuT7dHeQ.js.map +0 -1
  299. package/app/dist/assets/index-bCXYy6FD.css +0 -1
  300. package/app/dist/assets/input-C0kj1MmP-DcbMSrbF.js +0 -2
  301. package/app/dist/assets/item-BMniY_My-DKm69nm3.js +0 -2
  302. package/app/dist/assets/item-BMniY_My-DKm69nm3.js.map +0 -1
  303. package/app/dist/assets/item-WrCdQw7F-D20jHl_q.js +0 -2
  304. package/app/dist/assets/item-WrCdQw7F-D20jHl_q.js.map +0 -1
  305. package/app/dist/assets/kol-accordion.entry-tbpZI844.js +0 -2
  306. package/app/dist/assets/kol-alert.entry-DFtCULom.js +0 -2
  307. package/app/dist/assets/kol-alert.entry-DFtCULom.js.map +0 -1
  308. package/app/dist/assets/kol-badge.entry-DK9Q6A5Q.js +0 -2
  309. package/app/dist/assets/kol-badge.entry-DK9Q6A5Q.js.map +0 -1
  310. package/app/dist/assets/kol-button-link.entry-DB9t_GP0.js +0 -2
  311. package/app/dist/assets/kol-button-link.entry-DB9t_GP0.js.map +0 -1
  312. package/app/dist/assets/kol-button.entry-BfaqWWwM.js +0 -2
  313. package/app/dist/assets/kol-button.entry-BfaqWWwM.js.map +0 -1
  314. package/app/dist/assets/kol-card.entry-Nyac5Pkq.js +0 -2
  315. package/app/dist/assets/kol-card.entry-Nyac5Pkq.js.map +0 -1
  316. package/app/dist/assets/kol-click-button.entry-CkFR_dWc.js +0 -2
  317. package/app/dist/assets/kol-click-button.entry-CkFR_dWc.js.map +0 -1
  318. package/app/dist/assets/kol-combobox.entry-BcaQM57t.js +0 -2
  319. package/app/dist/assets/kol-combobox.entry-BcaQM57t.js.map +0 -1
  320. package/app/dist/assets/kol-details.entry-zmNm7saR.js +0 -2
  321. package/app/dist/assets/kol-dialog.entry-CB7HTin2.js +0 -2
  322. package/app/dist/assets/kol-dialog.entry-CB7HTin2.js.map +0 -1
  323. package/app/dist/assets/kol-drawer.entry-CNs6Lnix.js +0 -2
  324. package/app/dist/assets/kol-drawer.entry-CNs6Lnix.js.map +0 -1
  325. package/app/dist/assets/kol-form.entry-BVdBjqml.js +0 -2
  326. package/app/dist/assets/kol-form.entry-BVdBjqml.js.map +0 -1
  327. package/app/dist/assets/kol-input-checkbox.entry-DZ8n_lbG.js +0 -2
  328. package/app/dist/assets/kol-input-checkbox.entry-DZ8n_lbG.js.map +0 -1
  329. package/app/dist/assets/kol-input-color.entry-NWrWEBYj.js +0 -2
  330. package/app/dist/assets/kol-input-color.entry-NWrWEBYj.js.map +0 -1
  331. package/app/dist/assets/kol-input-date.entry-DI4lssME.js +0 -2
  332. package/app/dist/assets/kol-input-date.entry-DI4lssME.js.map +0 -1
  333. package/app/dist/assets/kol-input-email.entry-rXzmsk2J.js.map +0 -1
  334. package/app/dist/assets/kol-input-file.entry-BHtelduP.js +0 -2
  335. package/app/dist/assets/kol-input-file.entry-BHtelduP.js.map +0 -1
  336. package/app/dist/assets/kol-input-number.entry-C7PG1Qde.js +0 -2
  337. package/app/dist/assets/kol-input-number.entry-C7PG1Qde.js.map +0 -1
  338. package/app/dist/assets/kol-input-password.entry-6YCPRiwG.js +0 -2
  339. package/app/dist/assets/kol-input-password.entry-6YCPRiwG.js.map +0 -1
  340. package/app/dist/assets/kol-input-radio.entry-FyJXfckb.js +0 -2
  341. package/app/dist/assets/kol-input-radio.entry-FyJXfckb.js.map +0 -1
  342. package/app/dist/assets/kol-input-range.entry-Dyllh8rR.js +0 -2
  343. package/app/dist/assets/kol-input-range.entry-Dyllh8rR.js.map +0 -1
  344. package/app/dist/assets/kol-input-text.entry-B14YJHpj.js +0 -2
  345. package/app/dist/assets/kol-input-text.entry-B14YJHpj.js.map +0 -1
  346. package/app/dist/assets/kol-link-button.entry-Dfo_3lrk.js +0 -2
  347. package/app/dist/assets/kol-modal.entry-DTMM9y0V.js.map +0 -1
  348. package/app/dist/assets/kol-nav.entry-DZ7pSAfY.js +0 -2
  349. package/app/dist/assets/kol-nav.entry-DZ7pSAfY.js.map +0 -1
  350. package/app/dist/assets/kol-pagination.entry-B-xmuB3y.js +0 -2
  351. package/app/dist/assets/kol-pagination.entry-B-xmuB3y.js.map +0 -1
  352. package/app/dist/assets/kol-popover-button.entry-BsMQXz0K.js +0 -2
  353. package/app/dist/assets/kol-popover-button.entry-BsMQXz0K.js.map +0 -1
  354. package/app/dist/assets/kol-select.entry-Bex23E6i.js +0 -2
  355. package/app/dist/assets/kol-select.entry-Bex23E6i.js.map +0 -1
  356. package/app/dist/assets/kol-single-select.entry-CtBUhqkA.js +0 -2
  357. package/app/dist/assets/kol-single-select.entry-CtBUhqkA.js.map +0 -1
  358. package/app/dist/assets/kol-skeleton.entry-DKZ2HHKl.js +0 -2
  359. package/app/dist/assets/kol-skeleton.entry-DKZ2HHKl.js.map +0 -1
  360. package/app/dist/assets/kol-skip-nav.entry-BG23tccy.js +0 -2
  361. package/app/dist/assets/kol-split-button.entry-DszTQcG5.js +0 -2
  362. package/app/dist/assets/kol-split-button.entry-DszTQcG5.js.map +0 -1
  363. package/app/dist/assets/kol-table-stateful.entry-CXelnitW.js +0 -2
  364. package/app/dist/assets/kol-table-stateful.entry-CXelnitW.js.map +0 -1
  365. package/app/dist/assets/kol-table-stateless.entry-CM4-jBCb.js +0 -2
  366. package/app/dist/assets/kol-table-stateless.entry-CM4-jBCb.js.map +0 -1
  367. package/app/dist/assets/kol-tabs.entry-CBTpHpL8.js +0 -2
  368. package/app/dist/assets/kol-tabs.entry-CBTpHpL8.js.map +0 -1
  369. package/app/dist/assets/kol-textarea.entry-CEuxGSLt.js +0 -2
  370. package/app/dist/assets/kol-textarea.entry-CEuxGSLt.js.map +0 -1
  371. package/app/dist/assets/kol-toast-container.entry-nkCZ8JkJ.js +0 -2
  372. package/app/dist/assets/kol-toast-container.entry-nkCZ8JkJ.js.map +0 -1
  373. package/app/dist/assets/kol-toolbar.entry-D3qekCBY.js +0 -2
  374. package/app/dist/assets/kol-toolbar.entry-D3qekCBY.js.map +0 -1
  375. package/app/dist/assets/kol-version.entry-DfWLO62h.js +0 -2
  376. package/app/dist/assets/kol-version.entry-DfWLO62h.js.map +0 -1
  377. package/app/dist/assets/label-BRosRgdX-0xlyQpp4.js +0 -2
  378. package/app/dist/assets/label-hints-Jn18RUT--BrogbbJr.js +0 -2
  379. package/app/dist/assets/label-lang-segment-2_GnxjFp-DVzZ39jn.js +0 -2
  380. package/app/dist/assets/label-with-expert-slot-CicRes-W-LVsp3uAR.js +0 -2
  381. package/app/dist/assets/level-CA1s1_Mf-Bmffi1ui.js +0 -2
  382. package/app/dist/assets/link-target-FX94oqMo-BnofaxxF.js +0 -2
  383. package/app/dist/assets/links-DwucTqcR-9HzOTh4d.js +0 -2
  384. package/app/dist/assets/multiple-DqrZxybx-BhYus2nF.js +0 -2
  385. package/app/dist/assets/name-B2Yf3EpX-BQu5nHn0.js +0 -2
  386. package/app/dist/assets/name-B2Yf3EpX-BQu5nHn0.js.map +0 -1
  387. package/app/dist/assets/open-DRRv1KFK-DpffXVVz.js +0 -2
  388. package/app/dist/assets/placeholder-BeLIzdJv-oDzatuVl.js +0 -2
  389. package/app/dist/assets/read-only-Bby9r6ZX-D40Zoeqp.js +0 -2
  390. package/app/dist/assets/required-hoaT7UmZ-Und9IBK6.js +0 -2
  391. package/app/dist/assets/resolve-props-B-67viId-CTlCz62c.js +0 -2
  392. package/app/dist/assets/resolve-props-B-67viId-CTlCz62c.js.map +0 -1
  393. package/app/dist/assets/rows-B0x8CR7K-BbHjVC4J.js +0 -2
  394. package/app/dist/assets/smart-button-CS_ZriPt-2WKOFtbu.js +0 -2
  395. package/app/dist/assets/spell-check-DzgftyqL-ReFaZM-N.js +0 -2
  396. package/app/dist/assets/src-DaGhmCL1-B12NGDxG.js +0 -2
  397. package/app/dist/assets/step-Bdj89bGO-BMPjvq5k.js +0 -2
  398. package/app/dist/assets/suggestions-Be1_H9fA-CU2R31w-.js +0 -2
  399. package/app/dist/assets/test-component.entry-DUkPYxQo.js +0 -2
  400. package/app/dist/assets/unique-nav-labels-h2KOu5Qy-ofO6CNz8.js +0 -2
  401. package/app/dist/assets/unit-BUhhJbhT-DayVlmxO.js +0 -2
  402. package/app/dist/assets/value-string-e9pwLcS--CK11wfbw.js +0 -2
@@ -1,97 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./devtools-QEDvmhav-CNr3f7eL.js","./index-D_P2XoAc-C0ENoKkW.js","./dev.utils-CwXr_J8N-UD7MeTqn.js"])))=>i.map(i=>d[i]);
2
- import{$ as e,C as t,Y as n,_ as r,d as i,f as a,g as o,i as s,k as c,m as l,p as u,rt as d,u as f,y as p}from"./index-D_P2XoAc-C0ENoKkW.js";import{s as m,u as h}from"./component-names-Dhbtt0mX-BR2fJpe1.js";import{n as g}from"./i18n-Dl6Jjofb-CX4anLip.js";var _=Object.create,v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,x=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,C=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),w=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=b(t),a=0,o=i.length,s;a<o;a++)s=i[a],!S.call(e,s)&&s!==n&&v(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=y(t,s))||r.enumerable});return e},T=(e,t,n)=>(n=e==null?{}:_(x(e)),w(t||!e||!e.__esModule||!S.call(e,`default`)?v(n,`default`,{value:e,enumerable:!0}):n,e));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ee=C((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function ee(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return ee(e.type,t,e.props)}function E(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function ae(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function D(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,D(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),D(o,r,i,``,function(e){return e})):o!=null&&(E(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ie(a,u),c+=D(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ie(a,u++),c+=D(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return D(ae(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function O(e,t,n){if(e==null)return e;var r=[],i=0;return D(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function k(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oe=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},se={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=se,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return ee(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return ee(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=E,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:k}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,oe)}catch(e){oe(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),te=C(((e,t)=>{t.exports=ee()})),E=T(te(),1),ne=e=>e.toLowerCase().split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``),re=e=>e.replace(/([A-Z])/g,e=>`-${e[0].toLowerCase()}`),ie=(e,t,n={})=>{if(e instanceof Element){let r=ae(e.classList,t,n);r!==``&&(e.className=r),Object.keys(t).forEach(n=>{if(n!==`children`&&n!==`style`&&n!==`ref`&&n!==`class`&&n!==`className`&&n!==`forwardedRef`){if(n.indexOf(`on`)===0&&n[2]===n[2].toUpperCase()){let r=n.substring(2),i=r[0].toLowerCase()+r.substring(1);O(i)||k(e,i,t[n])}else e[n]=t[n],typeof t[n]==`string`&&e.setAttribute(re(n),t[n])}})}},ae=(e,t,n)=>{let r=t.className||t.class,i=n.className||n.class,a=oe(e),o=oe(r?r.split(` `):[]),s=oe(i?i.split(` `):[]),c=[];return a.forEach(e=>{o.has(e)?(c.push(e),o.delete(e)):s.has(e)||c.push(e)}),o.forEach(e=>c.push(e)),c.join(` `)},D=e=>e===`doubleclick`?`dblclick`:e,O=e=>{if(typeof document>`u`)return!0;{let t=`on`+D(e),n=t in document;if(!n){let e=document.createElement(`div`);e.setAttribute(t,`return;`),n=typeof e[t]==`function`}return n}},k=(e,t,n)=>{let r=e.__events||={},i=r[t];i&&e.removeEventListener(t,i),e.addEventListener(t,r[t]=function(e){n&&n.call(this,e)})},oe=e=>{let t=new Map;return e.forEach(e=>t.set(e,e)),t},se,ce=e=>{se=e},le=(e,t)=>{typeof e==`function`?e(t):e!=null&&(e.current=t)},ue=(...e)=>t=>{e.forEach(e=>{le(e,t)})},de=(e,t)=>{let n=(t,n)=>E.createElement(e,{...t,forwardedRef:n});return n.displayName=t,E.forwardRef(n)},A=(e,t,n,r)=>{let i=ne(e);return de(class extends E.Component{componentEl;setComponentElRef=e=>{this.componentEl=e};constructor(e){super(e)}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(e){ie(this.componentEl,this.props,e)}render(){let{children:t,forwardedRef:n,style:r,className:i,ref:a,...o}=this.props,s={...Object.keys(o).reduce((e,t)=>{let n=o[t];if(t.indexOf(`on`)===0&&t[2]===t[2].toUpperCase()){let r=t.substring(2).toLowerCase();typeof document<`u`&&O(r)&&(e[t]=n)}else{let r=typeof n;(r===`string`||r===`boolean`||r===`number`)&&(e[re(t)]=n)}return e},{}),ref:ue(n,this.setComponentElRef),style:r},c=typeof se==`function`?se(e):e;return(0,E.createElement)(c,s,t)}static get displayName(){return i}},i)},fe=A(`kol-abbr`),j=A(`kol-accordion`),pe=A(`kol-alert`),me=A(`kol-avatar`),he=A(`kol-badge`),ge=A(`kol-breadcrumb`),M=A(`kol-button`),N=A(`kol-button-link`),P=A(`kol-card`),_e=A(`kol-combobox`),ve=A(`kol-details`),ye=A(`kol-dialog`),be=A(`kol-drawer`),xe=A(`kol-form`),F=A(`kol-heading`),Se=A(`kol-icon`),Ce=A(`kol-image`),I=A(`kol-input-checkbox`),we=A(`kol-input-color`),L=A(`kol-input-date`),Te=A(`kol-input-email`),Ee=A(`kol-input-file`),De=A(`kol-input-number`),Oe=A(`kol-input-password`),ke=A(`kol-input-radio`),Ae=A(`kol-input-range`),R=A(`kol-input-text`),je=A(`kol-kolibri`),z=A(`kol-link`),B=A(`kol-link-button`),Me=A(`kol-meter`),Ne=A(`kol-nav`),Pe=A(`kol-pagination`),Fe=A(`kol-popover-button`),Ie=A(`kol-progress`),Le=A(`kol-quote`),Re=A(`kol-select`),ze=A(`kol-single-select`),Be=A(`kol-skeleton`),Ve=A(`kol-skip-nav`),He=A(`kol-spin`),Ue=A(`kol-split-button`),V=A(`kol-table-stateful`),We=A(`kol-table-stateless`),Ge=A(`kol-tabs`),H=A(`kol-textarea`),Ke=A(`kol-toolbar`),qe=A(`kol-tree`),Je=A(`kol-tree-item`),Ye=A(`kol-version`);function Xe(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`presentation`),e.innerHTML=``,e.appendChild(t),t}var Ze=C((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,E());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-T<w)}function te(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?E():S=!1}}}var E;if(typeof y==`function`)E=function(){y(te)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=te,E=function(){re.postMessage(null)}}else E=function(){_(te,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,E()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Qe=C(((e,t)=>{t.exports=Ze()})),$e=C((e=>{var t=te();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),et=C(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=$e()})),tt=C((e=>{var t=Qe(),n=te(),r=et();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),E=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var ie=Symbol.for(`react.client.reference`);function ae(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case ee:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?ae(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var D=Array.isArray,O=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},se=[],ce=-1;function le(e){return{current:e}}function ue(e){0>ce||(e.current=se[ce],se[ce]=null,ce--)}function de(e,t){ce++,se[ce]=e.current,e.current=t}var A=le(null),fe=le(null),j=le(null),pe=le(null);function me(e,t){switch(de(j,t),de(fe,e),de(A,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ue(A),de(A,e)}function he(){ue(A),ue(fe),ue(j)}function ge(e){e.memoizedState!==null&&de(pe,e);var t=A.current,n=Hd(t,e.type);t!==n&&(de(fe,e),de(A,n))}function M(e){fe.current===e&&(ue(A),ue(fe)),pe.current===e&&(ue(pe),Qf._currentValue=oe)}var N,P;function _e(e){if(N===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||``,P=-1<e.stack.indexOf(`
3
- at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
- `+N+e+P}var ve=!1;function ye(e,t){if(!e||ve)return``;ve=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
- `),l=s.split(`
6
- `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7
- `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ve=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?_e(n):``}function be(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e(`Lazy`);case 13:return e.child!==t&&t!==null?_e(`Suspense Fallback`):_e(`Suspense`);case 19:return _e(`SuspenseList`);case 0:case 15:return ye(e.type,!1);case 11:return ye(e.type.render,!1);case 1:return ye(e.type,!0);case 31:return _e(`Activity`);default:return``}}function xe(e){try{var t=``,n=null;do t+=be(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
- Error generating stack: `+e.message+`
9
- `+e.stack}}var F=Object.prototype.hasOwnProperty,Se=t.unstable_scheduleCallback,Ce=t.unstable_cancelCallback,I=t.unstable_shouldYield,we=t.unstable_requestPaint,L=t.unstable_now,Te=t.unstable_getCurrentPriorityLevel,Ee=t.unstable_ImmediatePriority,De=t.unstable_UserBlockingPriority,Oe=t.unstable_NormalPriority,ke=t.unstable_LowPriority,Ae=t.unstable_IdlePriority,R=t.log,je=t.unstable_setDisableYieldValue,z=null,B=null;function Me(e){if(typeof R==`function`&&je(e),B&&typeof B.setStrictMode==`function`)try{B.setStrictMode(z,e)}catch{}}var Ne=Math.clz32?Math.clz32:Ie,Pe=Math.log,Fe=Math.LN2;function Ie(e){return e>>>=0,e===0?32:31-(Pe(e)/Fe|0)|0}var Le=256,Re=262144,ze=4194304;function Be(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ve(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Be(n))):i=Be(o):i=Be(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Be(n))):i=Be(o)):i=Be(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function He(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ue(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function V(){var e=ze;return ze<<=1,!(ze&62914560)&&(ze=4194304),e}function We(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ge(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function H(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ne(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ke(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ke(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ne(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function qe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ne(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Je(e,t){var n=t&-t;return n=n&42?1:Ye(n),(n&(e.suspendedLanes|t))===0?n:0}function Ye(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xe(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ze(){var e=k.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function $e(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var tt=Math.random().toString(36).slice(2),nt=`__reactFiber$`+tt,rt=`__reactProps$`+tt,it=`__reactContainer$`+tt,at=`__reactEvents$`+tt,ot=`__reactListeners$`+tt,st=`__reactHandles$`+tt,ct=`__reactResources$`+tt,lt=`__reactMarker$`+tt;function ut(e){delete e[nt],delete e[rt],delete e[at],delete e[ot],delete e[st]}function dt(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[it]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[nt])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function ft(e){if(e=e[nt]||e[it]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function mt(e){var t=e[ct];return t||=e[ct]={hoistableStyles:new Map,hoistableScripts:new Map},t}function ht(e){e[lt]=!0}var gt=new Set,_t={};function vt(e,t){yt(e,t),yt(e+`Capture`,t)}function yt(e,t){for(_t[e]=t,e=0;e<t.length;e++)gt.add(t[e])}var bt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),xt={},St={};function Ct(e){return F.call(St,e)?!0:F.call(xt,e)?!1:bt.test(e)?St[e]=!0:(xt[e]=!0,!1)}function wt(e,t,n){if(Ct(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function Tt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Et(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Dt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ot(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function kt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function At(e){if(!e._valueTracker){var t=Ot(e)?`checked`:`value`;e._valueTracker=kt(e,t,``+e[t])}}function jt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ot(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Mt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Nt=/[\n"\\]/g;function Pt(e){return e.replace(Nt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ft(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Dt(t)):e.value!==``+Dt(t)&&(e.value=``+Dt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Lt(e,o,Dt(n)):Lt(e,o,Dt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Dt(s):e.removeAttribute(`name`)}function It(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){At(e);return}n=n==null?``:``+Dt(n),t=t==null?n:``+Dt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),At(e)}function Lt(e,t,n){t===`number`&&Mt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Rt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Dt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function zt(e,t,n){t!=null&&(t=``+Dt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Dt(n)}function Bt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(D(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Dt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),At(e)}function Vt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ht=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Ut(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Ht.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Wt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Ut(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Ut(e,o,t[o])}function Gt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Kt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),qt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Jt(e){return qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Yt(){}var Xt=null;function Zt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qt=null,$t=null;function en(e){var t=ft(e);if(t&&(e=t.stateNode)){var n=e[rt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ft(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Pt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[rt]||null;if(!a)throw Error(i(90));Ft(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&jt(r)}break a;case`textarea`:zt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Rt(e,!!n.multiple,t,!1)}}}var tn=!1;function nn(e,t,n){if(tn)return e(t,n);tn=!0;try{return e(t)}finally{if(tn=!1,(Qt!==null||$t!==null)&&(vu(),Qt&&(t=Qt,e=$t,$t=Qt=null,en(t),e)))for(t=0;t<e.length;t++)en(e[t])}}function rn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[rt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var an=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,on=!1;if(an)try{var sn={};Object.defineProperty(sn,"passive",{get:function(){on=!0}}),window.addEventListener(`test`,sn,sn),window.removeEventListener(`test`,sn,sn)}catch{on=!1}var cn=null,ln=null,un=null;function dn(){if(un)return un;var e,t=ln,n=t.length,r,i=`value`in cn?cn.value:cn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return un=i.slice(e,1<r?1-r:void 0)}function fn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pn(){return!0}function mn(){return!1}function hn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?pn:mn,this.isPropagationStopped=mn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=pn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=pn)},persist:function(){},isPersistent:pn}),t}var gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_n=hn(gn),vn=f({},gn,{view:0,detail:0}),yn=hn(vn),bn,xn,Sn,Cn=f({},vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Sn&&(Sn&&e.type===`mousemove`?(bn=e.screenX-Sn.screenX,xn=e.screenY-Sn.screenY):xn=bn=0,Sn=e),bn)},movementY:function(e){return`movementY`in e?e.movementY:xn}}),wn=hn(Cn),Tn=hn(f({},Cn,{dataTransfer:0})),En=hn(f({},vn,{relatedTarget:0})),Dn=hn(f({},gn,{animationName:0,elapsedTime:0,pseudoElement:0})),On=hn(f({},gn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),kn=hn(f({},gn,{data:0})),An={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},jn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Mn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Nn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mn[e])?!!t[e]:!1}function Pn(){return Nn}var Fn=hn(f({},vn,{key:function(e){if(e.key){var t=An[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=fn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?jn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return e.type===`keypress`?fn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?fn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),In=hn(f({},Cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=hn(f({},vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),Rn=hn(f({},gn,{propertyName:0,elapsedTime:0,pseudoElement:0})),zn=hn(f({},Cn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Bn=hn(f({},gn,{newState:0,oldState:0})),Vn=[9,13,27,32],Hn=an&&`CompositionEvent`in window,Un=null;an&&`documentMode`in document&&(Un=document.documentMode);var Wn=an&&`TextEvent`in window&&!Un,Gn=an&&(!Hn||Un&&8<Un&&11>=Un),Kn=` `,qn=!1;function Jn(e,t){switch(e){case`keyup`:return Vn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Yn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Xn=!1;function Zn(e,t){switch(e){case`compositionend`:return Yn(t);case`keypress`:return t.which===32?(qn=!0,Kn):null;case`textInput`:return e=t.data,e===Kn&&qn?null:e;default:return null}}function Qn(e,t){if(Xn)return e===`compositionend`||!Hn&&Jn(e,t)?(e=dn(),un=ln=cn=null,Xn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Gn&&t.locale!==`ko`?null:t.data;default:return null}}var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!$n[e.type]:t===`textarea`}function tr(e,t,n,r){Qt?$t?$t.push(r):$t=[r]:Qt=r,t=Td(t,`onChange`),0<t.length&&(n=new _n(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var nr=null,rr=null;function ir(e){vd(e,0)}function ar(e){if(jt(pt(e)))return e}function or(e,t){if(e===`change`)return t}var sr=!1;if(an){var cr;if(an){var lr=`oninput`in document;if(!lr){var ur=document.createElement(`div`);ur.setAttribute(`oninput`,`return;`),lr=typeof ur.oninput==`function`}cr=lr}else cr=!1;sr=cr&&(!document.documentMode||9<document.documentMode)}function dr(){nr&&(nr.detachEvent(`onpropertychange`,fr),rr=nr=null)}function fr(e){if(e.propertyName===`value`&&ar(rr)){var t=[];tr(t,rr,e,Zt(e)),nn(ir,t)}}function pr(e,t,n){e===`focusin`?(dr(),nr=t,rr=n,nr.attachEvent(`onpropertychange`,fr)):e===`focusout`&&dr()}function mr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ar(rr)}function hr(e,t){if(e===`click`)return ar(t)}function gr(e,t){if(e===`input`||e===`change`)return ar(t)}function _r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var vr=typeof Object.is==`function`?Object.is:_r;function yr(e,t){if(vr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!F.call(t,i)||!vr(e[i],t[i]))return!1}return!0}function br(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xr(e,t){var n=br(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=br(n)}}function Sr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Mt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mt(e.document)}return t}function wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Tr=an&&`documentMode`in document&&11>=document.documentMode,Er=null,Dr=null,Or=null,kr=!1;function Ar(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kr||Er==null||Er!==Mt(r)||(r=Er,`selectionStart`in r&&wr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Or&&yr(Or,r)||(Or=r,r=Td(Dr,`onSelect`),0<r.length&&(t=new _n(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Er)))}function jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Mr={animationend:jr(`Animation`,`AnimationEnd`),animationiteration:jr(`Animation`,`AnimationIteration`),animationstart:jr(`Animation`,`AnimationStart`),transitionrun:jr(`Transition`,`TransitionRun`),transitionstart:jr(`Transition`,`TransitionStart`),transitioncancel:jr(`Transition`,`TransitionCancel`),transitionend:jr(`Transition`,`TransitionEnd`)},Nr={},Pr={};an&&(Pr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),`TransitionEvent`in window||delete Mr.transitionend.transition);function Fr(e){if(Nr[e])return Nr[e];if(!Mr[e])return e;var t=Mr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pr)return Nr[e]=t[n];return e}var Ir=Fr(`animationend`),Lr=Fr(`animationiteration`),Rr=Fr(`animationstart`),zr=Fr(`transitionrun`),Br=Fr(`transitionstart`),Vr=Fr(`transitioncancel`),Hr=Fr(`transitionend`),Ur=new Map,Wr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Wr.push(`scrollEnd`);function Gr(e,t){Ur.set(e,t),vt(t,[e])}var Kr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},qr=[],Jr=0,Yr=0;function Xr(){for(var e=Jr,t=Yr=Jr=0;t<e;){var n=qr[t];qr[t++]=null;var r=qr[t];qr[t++]=null;var i=qr[t];qr[t++]=null;var a=qr[t];if(qr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ei(n,i,a)}}function Zr(e,t,n,r){qr[Jr++]=e,qr[Jr++]=t,qr[Jr++]=n,qr[Jr++]=r,Yr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Qr(e,t,n,r){return Zr(e,t,n,r),ti(e)}function $r(e,t){return Zr(e,null,null,t),ti(e)}function ei(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ne(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ti(e){if(50<lu)throw lu=0,uu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ni={};function ri(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ii(e,t,n,r){return new ri(e,t,n,r)}function ai(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oi(e,t){var n=e.alternate;return n===null?(n=ii(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function si(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ci(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ai(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,A.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ee:return e=ii(31,n,t,a),e.elementType=ee,e.lanes=o,e;case g:return li(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=ii(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=ii(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=ii(19,n,t,a),e.elementType=C,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case w:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ii(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function li(e,t,n,r){return e=ii(7,e,r,t),e.lanes=n,e}function ui(e,t,n){return e=ii(6,e,null,t),e.lanes=n,e}function di(e){var t=ii(18,null,null,0);return t.stateNode=e,t}function fi(e,t,n){return t=ii(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pi=new WeakMap;function mi(e,t){if(typeof e==`object`&&e){var n=pi.get(e);return n===void 0?(t={value:e,source:t,stack:xe(t)},pi.set(e,t),t):n}return{value:e,source:t,stack:xe(t)}}var hi=[],gi=0,_i=null,vi=0,yi=[],bi=0,xi=null,Si=1,Ci=``;function wi(e,t){hi[gi++]=vi,hi[gi++]=_i,_i=e,vi=t}function Ti(e,t,n){yi[bi++]=Si,yi[bi++]=Ci,yi[bi++]=xi,xi=e;var r=Si;e=Ci;var i=32-Ne(r)-1;r&=~(1<<i),n+=1;var a=32-Ne(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Si=1<<32-Ne(t)+i|n<<i|r,Ci=a+e}else Si=1<<a|n<<i|r,Ci=e}function Ei(e){e.return!==null&&(wi(e,1),Ti(e,1,0))}function Di(e){for(;e===_i;)_i=hi[--gi],hi[gi]=null,vi=hi[--gi],hi[gi]=null;for(;e===xi;)xi=yi[--bi],yi[bi]=null,Ci=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null}function Oi(e,t){yi[bi++]=Si,yi[bi++]=Ci,yi[bi++]=xi,Si=t.id,Ci=t.overflow,xi=e}var U=null,ki=null,W=!1,Ai=null,ji=!1,Mi=Error(i(519));function Ni(e){throw Ri(mi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Mi}function G(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[nt]=e,t[rt]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<gd.length;n++)$(gd[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),It(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),Bt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||jd(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=Yt),t=!0):t=!1,t||Ni(e,!0)}function Pi(e){for(U=e.return;U;)switch(U.tag){case 5:case 31:case 13:ji=!1;return;case 27:case 3:ji=!0;return;default:U=U.return}}function Fi(e){if(e!==U)return!1;if(!W)return Pi(e),W=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Ud(e.type,e.memoizedProps)),n=!n),n&&ki&&Ni(e),Pi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ki=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ki=uf(e)}else t===27?(t=ki,Zd(e.type)?(e=lf,lf=null,ki=e):ki=t):ki=U?cf(e.stateNode.nextSibling):null;return!0}function Ii(){ki=U=null,W=!1}function Li(){var e=Ai;return e!==null&&(Yl===null?Yl=e:Yl.push.apply(Yl,e),Ai=null),e}function Ri(e){Ai===null?Ai=[e]:Ai.push(e)}var zi=le(null),Bi=null,Vi=null;function Hi(e,t,n){de(zi,t._currentValue),t._currentValue=n}function Ui(e){e._currentValue=zi.current,ue(zi)}function Wi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Gi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Wi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Wi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Ki(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;vr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===pe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Gi(t,e,n,r),t.flags|=262144}function qi(e){for(e=e.firstContext;e!==null;){if(!vr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ji(e){Bi=e,Vi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Yi(e){return Zi(Bi,e)}function Xi(e,t){return Bi===null&&Ji(e),Zi(e,t)}function Zi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Vi===null){if(e===null)throw Error(i(308));Vi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vi=Vi.next=t;return n}var Qi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},$i=t.unstable_scheduleCallback,ea=t.unstable_NormalPriority,ta={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function na(){return{controller:new Qi,data:new Map,refCount:0}}function ra(e){e.refCount--,e.refCount===0&&$i(ea,function(){e.controller.abort()})}var ia=null,aa=0,oa=0,sa=null;function ca(e,t){if(ia===null){var n=ia=[];aa=0,oa=ud(),sa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return aa++,t.then(la,la),t}function la(){if(--aa===0&&ia!==null){sa!==null&&(sa.status=`fulfilled`);var e=ia;ia=null,oa=0,sa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ua(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var da=O.S;O.S=function(e,t){Ql=L(),typeof t==`object`&&t&&typeof t.then==`function`&&ca(e,t),da!==null&&da(e,t)};var fa=le(null);function pa(){var e=fa.current;return e===null?Fl.pooledCache:e}function ma(e,t){t===null?de(fa,fa.current):de(fa,t.pool)}function ha(){var e=pa();return e===null?null:{parent:ta._currentValue,pool:e}}var ga=Error(i(460)),_a=Error(i(474)),va=Error(i(542)),ya={then:function(){}};function ba(e){return e=e.status,e===`fulfilled`||e===`rejected`}function K(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Yt,Yt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ca(e),e;default:if(typeof t.status==`string`)t.then(Yt,Yt);else{if(e=Fl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ca(e),e}throw Sa=t,ga}}function xa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Sa=e,ga):e}}var Sa=null;function q(){if(Sa===null)throw Error(i(459));var e=Sa;return Sa=null,e}function Ca(e){if(e===ga||e===va)throw Error(i(483))}var J=null,wa=0;function Ta(e){var t=wa;return wa+=1,J===null&&(J=[]),K(J,e,t)}function Ea(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Da(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Oa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=oi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ui(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===T&&xa(i)===t.type)?(t=a(t,n.props),Ea(t,n),t.return=e,t):(t=ci(n.type,n.key,n.props,null,e.mode,r),Ea(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=fi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=li(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ui(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=ci(t.type,t.key,t.props,null,e.mode,n),Ea(n,t),n.return=e,n;case h:return t=fi(t,e.mode,n),t.return=e,t;case T:return t=xa(t),f(e,t,n)}if(D(t)||re(t))return t=li(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ta(t),n);if(t.$$typeof===b)return f(e,Xi(e,t),n);Da(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case T:return n=xa(n),p(e,t,n,r)}if(D(n)||re(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ta(n),r);if(n.$$typeof===b)return p(e,t,Xi(e,n),r);Da(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=xa(r),_(e,t,n,r,i)}if(D(r)||re(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,Ta(r),i);if(r.$$typeof===b)return _(e,t,n,Xi(t,r),i);Da(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),W&&wi(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return W&&wi(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),W&&wi(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),W&&wi(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return W&&wi(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),W&&wi(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&xa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ea(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===g?(c=li(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ci(o.type,o.key,o.props,null,e.mode,c),Ea(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=fi(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=xa(o),x(e,r,o,c)}if(D(o))return v(e,r,o,c);if(re(o)){if(l=re(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Ta(o),c);if(o.$$typeof===b)return x(e,r,Xi(e,o),c);Da(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ui(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{wa=0;var i=x(e,t,n,r);return J=null,i}catch(t){if(t===ga||t===va)throw t;var a=ii(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ka=Oa(!0),Aa=Oa(!1),ja=!1;function Ma(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Na(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ti(e),ei(e,null,n),t}return Zr(e,r,t,n),ti(e)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}function La(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ra=!1;function za(){if(Ra){var e=sa;if(e!==null)throw e}}function Ba(e,t,n,r){Ra=!1;var i=e.updateQueue;ja=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Q&p)===p:(r&p)===p){p!==0&&p===oa&&(Ra=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:ja=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ul|=o,e.lanes=o,e.memoizedState=d}}function Va(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ha(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Va(n[e],t)}var Ua=le(null),Wa=le(0);function Ga(e,t){e=Vl,de(Wa,e),de(Ua,t),Vl=e|t.baseLanes}function Ka(){de(Wa,Vl),de(Ua,Ua.current)}function qa(){Vl=Wa.current,ue(Ua),ue(Wa)}var Ja=le(null),Ya=null;function Xa(e){var t=e.alternate;de(to,to.current&1),de(Ja,e),Ya===null&&(t===null||Ua.current!==null||t.memoizedState!==null)&&(Ya=e)}function Za(e){de(to,to.current),de(Ja,e),Ya===null&&(Ya=e)}function Qa(e){e.tag===22?(de(to,to.current),de(Ja,e),Ya===null&&(Ya=e)):$a(e)}function $a(){de(to,to.current),de(Ja,Ja.current)}function eo(e){ue(Ja),Ya===e&&(Ya=null),ue(to)}var to=le(0);function no(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ro=0,Y=null,io=null,ao=null,oo=!1,so=!1,co=!1,lo=0,uo=0,fo=null,po=0;function mo(){throw Error(i(321))}function ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vr(e[n],t[n]))return!1;return!0}function go(e,t,n,r,i,a){return ro=a,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Ns:Ps,co=!1,a=n(r,i),co=!1,so&&(a=vo(t,n,r,i)),_o(e),a}function _o(e){O.H=Ms;var t=io!==null&&io.next!==null;if(ro=0,ao=io=Y=null,oo=!1,uo=0,fo=null,t)throw Error(i(300));e===null||Zs||(e=e.dependencies,e!==null&&qi(e)&&(Zs=!0))}function vo(e,t,n,r){Y=e;var a=0;do{if(so&&(fo=null),uo=0,so=!1,25<=a)throw Error(i(301));if(a+=1,ao=io=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}O.H=Fs,o=t(n,r)}while(so);return o}function yo(){var e=O.H,t=e.useState()[0];return t=typeof t.then==`function`?Eo(t):t,e=e.useState()[0],(io===null?null:io.memoizedState)!==e&&(Y.flags|=1024),t}function bo(){var e=lo!==0;return lo=0,e}function xo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(oo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}oo=!1}ro=0,ao=io=Y=null,so=!1,uo=lo=0,fo=null}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ao===null?Y.memoizedState=ao=e:ao=ao.next=e,ao}function wo(){if(io===null){var e=Y.alternate;e=e===null?null:e.memoizedState}else e=io.next;var t=ao===null?Y.memoizedState:ao.next;if(t!==null)ao=t,io=e;else{if(e===null)throw Y.alternate===null?Error(i(467)):Error(i(310));io=e,e={memoizedState:io.memoizedState,baseState:io.baseState,baseQueue:io.baseQueue,queue:io.queue,next:null},ao===null?Y.memoizedState=ao=e:ao=ao.next=e}return ao}function To(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(e){var t=uo;return uo+=1,fo===null&&(fo=[]),e=K(fo,e,t),t=Y,(ao===null?t.memoizedState:ao.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Ns:Ps),e}function Do(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Eo(e);if(e.$$typeof===b)return Yi(e)}throw Error(i(438,String(e)))}function Oo(e){var t=null,n=Y.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Y.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=To(),Y.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=E;return t.index++,n}function ko(e,t){return typeof t==`function`?t(e):t}function Ao(e){return jo(wo(),io,e)}function jo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(ro&f)===f:(Q&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===oa&&(d=!0);else if((ro&p)===p){u=u.next,p===oa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Y.lanes|=p,Ul|=p;f=u.action,co&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Y.lanes|=f,Ul|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!vr(o,e.memoizedState)&&(Zs=!0,d&&(n=sa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Mo(e){var t=wo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);vr(o,t.memoizedState)||(Zs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function No(e,t,n){var r=Y,a=wo(),o=W;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!vr((io||a).memoizedState,n);if(s&&(a.memoizedState=n,Zs=!0),a=a.queue,is(Io.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ao!==null&&ao.memoizedState.tag&1){if(r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,a,n,t),null),Fl===null)throw Error(i(349));o||ro&127||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Y.updateQueue,t===null?(t=To(),Y.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fo(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Ro(e)}function Io(e,t,n){return n(function(){Lo(t)&&Ro(e)})}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vr(e,n)}catch{return!0}}function Ro(e){var t=$r(e,2);t!==null&&pu(t,e,2)}function zo(e){var t=Co();if(typeof e==`function`){var n=e;if(e=n(),co){Me(!0);try{n()}finally{Me(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t}function Bo(e,t,n,r){return e.baseState=n,jo(e,io,typeof r==`function`?r:ko)}function Vo(e,t,n,r,a){if(ks(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};O.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ho(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ho(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=O.T,o={};O.T=o;try{var s=n(i,r),c=O.S;c!==null&&c(o,s),Uo(e,t,s)}catch(n){Go(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),O.T=a}}else try{a=n(i,r),Uo(e,t,a)}catch(n){Go(e,t,n)}}function Uo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Wo(e,t,n)},function(n){return Go(e,t,n)}):Wo(e,t,n)}function Wo(e,t,n){t.status=`fulfilled`,t.value=n,Ko(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ho(e,n)))}function Go(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ko(t),t=t.next;while(t!==r)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qo(e,t){return t}function Jo(e,t){if(W){var n=Fl.formState;if(n!==null){a:{var r=Y;if(W){if(ki){b:{for(var i=ki,a=ji;i.nodeType!==8;)if(!a||(i=cf(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ki=cf(i.nextSibling),r=i.data===`F!`;break a}}Ni(r)}r=!1}r&&(t=n[0])}}return n=Co(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:t},n.queue=r,n=Es.bind(null,Y,r),r.dispatch=n,r=zo(!1),a=Os.bind(null,Y,!1,r.queue),r=Co(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Vo.bind(null,Y,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yo(e){return Xo(wo(),io,e)}function Xo(e,t,n){if(t=jo(e,t,qo)[0],e=Ao(ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Eo(t)}catch(e){throw e===ga?va:e}else r=t;t=wo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Y.flags|=2048,$o(9,{destroy:void 0},Zo.bind(null,i,n),null)),[r,a,e]}function Zo(e,t){e.action=t}function Qo(e){var t=wo(),n=io;if(n!==null)return Xo(t,n,e);wo(),t=t.memoizedState,n=wo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Y.updateQueue,t===null&&(t=To(),Y.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function es(){return wo().memoizedState}function ts(e,t,n,r){var i=Co();Y.flags|=e,i.memoizedState=$o(1|t,{destroy:void 0},n,r===void 0?null:r)}function ns(e,t,n,r){var i=wo();r=r===void 0?null:r;var a=i.memoizedState.inst;io!==null&&r!==null&&ho(r,io.memoizedState.deps)?i.memoizedState=$o(t,a,n,r):(Y.flags|=e,i.memoizedState=$o(1|t,a,n,r))}function rs(e,t){ts(8390656,8,e,t)}function is(e,t){ns(2048,8,e,t)}function as(e){Y.flags|=4;var t=Y.updateQueue;if(t===null)t=To(),Y.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function os(e){var t=wo().memoizedState;return as({ref:t,nextImpl:e}),function(){if(Pl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ss(e,t){return ns(4,2,e,t)}function cs(e,t){return ns(4,4,e,t)}function ls(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function us(e,t,n){n=n==null?null:n.concat([e]),ns(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ho(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ho(t,r[1]))return r[0];if(r=e(),co){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r}function ms(e,t,n){return n===void 0||ro&1073741824&&!(Q&261930)?e.memoizedState=t:(e.memoizedState=n,e=fu(),Y.lanes|=e,Ul|=e,n)}function hs(e,t,n,r){return vr(n,t)?n:Ua.current===null?!(ro&42)||ro&1073741824&&!(Q&261930)?(Zs=!0,e.memoizedState=n):(e=fu(),Y.lanes|=e,Ul|=e,t):(e=ms(e,n,r),vr(e,t)||(Zs=!0),e)}function gs(e,t,n,r,i){var a=k.p;k.p=a!==0&&8>a?a:8;var o=O.T,s={};O.T=s,Os(e,!1,t,n);try{var c=i(),l=O.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,ua(c,r),du(e)):Ds(e,t,r,du(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},du())}finally{k.p=a,o!==null&&s.types!==null&&(o.types=s.types),O.T=o}}function _s(){}function vs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ys(e).queue;gs(e,a,t,oe,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bs(e){var t=ys(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},du())}function xs(){return Yi(Qf)}function Ss(){return wo().memoizedState}function Cs(){return wo().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=du();e=Pa(n);var r=Fa(t,e,n);r!==null&&(pu(r,t,n),Ia(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=du();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=Qr(e,t,n,r),n!==null&&(pu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,du())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,vr(s,o))return Zr(e,t,i,0),Fl===null&&Xr(),!1}catch{}if(n=Qr(e,t,i,r),n!==null)return pu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(i(479))}else t=Qr(e,n,r,2),t!==null&&pu(t,e,2)}function ks(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function As(e,t){so=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}var Ms={readContext:Yi,use:Do,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useLayoutEffect:mo,useInsertionEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useSyncExternalStore:mo,useId:mo,useHostTransitionStatus:mo,useFormState:mo,useActionState:mo,useOptimistic:mo,useMemoCache:mo,useCacheRefresh:mo};Ms.useEffectEvent=mo;var Ns={readContext:Yi,use:Do,useCallback:function(e,t){return Co().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=Co();t=t===void 0?null:t;var r=e();if(co){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Co();if(n!==void 0){var i=n(t);if(co){Me(!0);try{n(t)}finally{Me(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ts.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=Co();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,n=Es.bind(null,Y,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(Co(),e,t)},useTransition:function(){var e=zo(!1);return e=gs.bind(null,Y,e.queue,!0,!1),Co().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Y,a=Co();if(W){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Fl===null)throw Error(i(349));Q&127||Po(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Io.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,o,n,t),null),n},useId:function(){var e=Co(),t=Fl.identifierPrefix;if(W){var n=Ci,r=Si;n=(r&~(1<<32-Ne(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=lo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=po++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:Jo,useActionState:Jo,useOptimistic:function(e){var t=Co();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Os.bind(null,Y,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return Co().memoizedState=ws.bind(null,Y)},useEffectEvent:function(e){var t=Co(),n={impl:e};return t.memoizedState=n,function(){if(Pl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ps={readContext:Yi,use:Do,useCallback:fs,useContext:Yi,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ao,useRef:es,useState:function(){return Ao(ko)},useDebugValue:ds,useDeferredValue:function(e,t){return hs(wo(),io.memoizedState,e,t)},useTransition:function(){var e=Ao(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){return Bo(wo(),io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Ps.useEffectEvent=os;var Fs={readContext:Yi,use:Do,useCallback:fs,useContext:Yi,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Mo,useRef:es,useState:function(){return Mo(ko)},useDebugValue:ds,useDeferredValue:function(e,t){var n=wo();return io===null?ms(n,e,t):hs(n,io.memoizedState,e,t)},useTransition:function(){var e=Mo(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){var n=wo();return io===null?(n.baseState=e,[e,n.queue.dispatch]):Bo(n,io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Fs.useEffectEvent=os;function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=du(),i=Pa(r);i.payload=t,n!=null&&(i.callback=n),t=Fa(e,i,r),t!==null&&(pu(t,e,r),Ia(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=du(),i=Pa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Fa(e,i,r),t!==null&&(pu(t,e,r),Ia(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=du(),r=Pa(n);r.tag=2,t!=null&&(r.callback=t),t=Fa(e,r,n),t!==null&&(pu(t,e,n),Ia(t,e,n))}};function Rs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!yr(n,r)||!yr(i,a):!0}function zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Bs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vs(e){Kr(e)}function Hs(e){console.error(e)}function Us(e){Kr(e)}function Ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){return n=Pa(n),n.tag=3,n.payload={element:null},n.callback=function(){Ws(e,t)},n}function qs(e){return e=Pa(e),e.tag=3,e}function Js(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gs(t,n,r),typeof i!=`function`&&(tu===null?tu=new Set([this]):tu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ys(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ki(t,n,a,!0),n=Ja.current,n!==null){switch(n.tag){case 31:case 13:return Ya===null?Tu():n.alternate===null&&Hl===0&&(Hl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Wu(e,r,a)),!1;case 22:return n.flags|=65536,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Wu(e,r,a)),!1}throw Error(i(435,n.tag))}return Wu(e,r,a),Tu(),!1}if(W)return t=Ja.current,t===null?(r!==Mi&&(t=Error(i(423),{cause:r}),Ri(mi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=mi(r,n),a=Ks(e.stateNode,r,a),La(e,a),Hl!==4&&(Hl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Mi&&(e=Error(i(422),{cause:r}),Ri(mi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=mi(o,n),Jl===null?Jl=[o]:Jl.push(o),Hl!==4&&(Hl=2),t===null)return!0;r=mi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ks(n.stateNode,r,e),La(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(tu===null||!tu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=qs(a),Js(a,e,n,r),La(n,a),!1}n=n.return}while(n!==null);return!1}var Xs=Error(i(461)),Zs=!1;function Qs(e,t,n,r){t.child=e===null?Aa(t,null,n,r):ka(t,e.child,n,r)}function $s(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ji(t),r=go(e,t,n,o,a,i),s=bo(),e!==null&&!Zs?(xo(e,t,i),Sc(e,t,i)):(W&&s&&Ei(t),t.flags|=1,Qs(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ai(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,tc(e,t,a,r,i)):(e=ci(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Cc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?yr:n,n(o,r)&&e.ref===t.ref)return Sc(e,t,i)}return t.flags|=1,e=oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(yr(a,r)&&e.ref===t.ref){if(Zs=!1,t.pendingProps=r=a,Cc(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,Sc(e,t,i)}}return lc(e,t,n,r,i)}function nc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ma(t,a===null?null:a.cachePool),a===null?Ka():Ga(t,a),Qa(t);else return r=t.lanes=536870912,ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ma(t,null),Ka(),$a(t)):(ma(t,a.cachePool),Ga(t,a),$a(t),t.memoizedState=null);return Qs(e,t,i,n),t.child}function rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ic(e,t,n,r,i){var a=pa();return a=a===null?null:{parent:ta._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ma(t,null),Ka(),Qa(t),e!==null&&Ki(e,t,r,!0),t.childLanes=i,null}function ac(e,t){return t=_c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function oc(e,t,n){return ka(t,e.child,null,n),e=ac(t,t.pendingProps),e.flags|=2,eo(t),t.memoizedState=null,e}function sc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(W){if(r.mode===`hidden`)return e=ac(t,r),t.lanes=536870912,rc(null,e);if(Za(t),(e=ki)?(e=rf(e,ji),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xi===null?null:{id:Si,overflow:Ci},retryLane:536870912,hydrationErrors:null},n=di(e),n.return=t,t.child=n,U=t,ki=null)):e=null,e===null)throw Ni(t);return t.lanes=536870912,null}return ac(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Za(t),a){if(t.flags&256)t.flags&=-257,t=oc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Zs||Ki(e,t,n,!1),a=(n&e.childLanes)!==0,Zs||a){if(r=Fl,r!==null&&(s=Je(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,$r(e,s),pu(r,e,s),Xs;Tu(),t=oc(e,t,n)}else e=o.treeContext,ki=cf(s.nextSibling),U=t,W=!0,Ai=null,ji=!1,e!==null&&Oi(t,e),t=ac(t,r),t.flags|=4096;return t}return e=oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,r,i){return Ji(t),n=go(e,t,n,r,void 0,i),r=bo(),e!==null&&!Zs?(xo(e,t,i),Sc(e,t,i)):(W&&r&&Ei(t),t.flags|=1,Qs(e,t,n,i),t.child)}function uc(e,t,n,r,i,a){return Ji(t),t.updateQueue=null,n=vo(t,r,n,i),_o(e),r=bo(),e!==null&&!Zs?(xo(e,t,a),Sc(e,t,a)):(W&&r&&Ei(t),t.flags|=1,Qs(e,t,n,a),t.child)}function dc(e,t,n,r,i){if(Ji(t),t.stateNode===null){var a=ni,o=n.contextType;typeof o==`object`&&o&&(a=Yi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ls,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ma(t),o=n.contextType,a.context=typeof o==`object`&&o?Yi(o):ni,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Is(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ls.enqueueReplaceState(a,a.state,null),Ba(t,r,a,i),za(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Bs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ni,typeof u==`object`&&u&&(o=Yi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&zs(t,a,r,o),ja=!1;var f=t.memoizedState;a.state=f,Ba(t,r,a,i),za(),l=t.memoizedState,s||f!==l||ja?(typeof d==`function`&&(Is(t,n,d,r),l=t.memoizedState),(c=ja||Rs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Na(e,t),o=t.memoizedProps,u=Bs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ni,typeof l==`object`&&l&&(c=Yi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&zs(t,a,r,c),ja=!1,f=t.memoizedState,a.state=f,Ba(t,r,a,i),za();var p=t.memoizedState;o!==d||f!==p||ja||e!==null&&e.dependencies!==null&&qi(e.dependencies)?(typeof s==`function`&&(Is(t,n,s,r),p=t.memoizedState),(u=ja||Rs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&qi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,cc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ka(t,e.child,null,i),t.child=ka(t,null,n,i)):Qs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Sc(e,t,i),e}function fc(e,t,n,r){return Ii(),t.flags|=256,Qs(e,t,n,r),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function X(e){return{baseLanes:e,cachePool:ha()}}function mc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Kl),e}function hc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(to.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(W){if(a?Xa(t):$a(t),(e=ki)?(e=rf(e,ji),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xi===null?null:{id:Si,overflow:Ci},retryLane:536870912,hydrationErrors:null},n=di(e),n.return=t,t.child=n,U=t,ki=null)):e=null,e===null)throw Ni(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?($a(t),a=t.mode,c=_c({mode:`hidden`,children:c},a),r=li(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=X(n),r.childLanes=mc(e,s,n),t.memoizedState=pc,rc(null,r)):(Xa(t),gc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Xa(t),t.flags&=-257,t=vc(e,t,n)):t.memoizedState===null?($a(t),c=r.fallback,a=t.mode,r=_c({mode:`visible`,children:r.children},a),c=li(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,ka(t,e.child,null,n),r=t.child,r.memoizedState=X(n),r.childLanes=mc(e,s,n),t.memoizedState=pc,t=rc(null,r)):($a(t),t.child=e.child,t.flags|=128,t=null);else if(Xa(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ri({value:r,source:null,stack:null}),t=vc(e,t,n)}else if(Zs||Ki(e,t,n,!1),s=(n&e.childLanes)!==0,Zs||s){if(s=Fl,s!==null&&(r=Je(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,$r(e,r),pu(s,e,r),Xs;af(c)||Tu(),t=vc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ki=cf(c.nextSibling),U=t,W=!0,Ai=null,ji=!1,e!==null&&Oi(t,e),t=gc(t,r.children),t.flags|=4096);return t}return a?($a(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=oi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=li(c,a,n,null),c.flags|=2):c=oi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,rc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=X(n):(a=c.cachePool,a===null?a=ha():(l=ta._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=mc(e,s,n),t.memoizedState=pc,rc(e.child,r)):(Xa(t),n=e.child,e=n.sibling,n=oi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function gc(e,t){return t=_c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function _c(e,t){return e=ii(22,e,null,t),e.lanes=0,e}function vc(e,t,n){return ka(t,e.child,null,n),e=gc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wi(e.return,t,n)}function bc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function xc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=to.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,de(to,o),Qs(e,t,r,n),r=W?vi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yc(e,n,t);else if(e.tag===19)yc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&no(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&no(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bc(t,!0,n,null,a,r);break;case`together`:bc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Sc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ul|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Ki(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&qi(e)))}function wc(e,t,n){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Hi(t,ta,e.memoizedState.cache),Ii();break;case 27:case 5:ge(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Za(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Xa(t),e=Sc(e,t,n),e===null?null:e.sibling):hc(e,t,n):(Xa(t),t.flags|=128,null);Xa(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Ki(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return xc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),de(to,to.current),r)break;return null;case 22:return t.lanes=0,nc(e,t,n,t.pendingProps);case 24:Hi(t,ta,e.memoizedState.cache)}return Sc(e,t,n)}function Tc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!Cc(e,n)&&!(t.flags&128))return Zs=!1,wc(e,t,n);Zs=!!(e.flags&131072)}}else Zs=!1,W&&t.flags&1048576&&Ti(t,vi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=xa(t.elementType),t.type=e,typeof e==`function`)ai(e)?(r=Bs(e,r),t.tag=1,t=dc(null,t,e,r,n)):(t.tag=0,t=lc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=$s(null,t,e,r,n);break a}if(a===w){t.tag=14,t=ec(null,t,e,r,n);break a}}throw t=ae(e)||e,Error(i(306,t,``))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Bs(r,t.pendingProps),dc(e,t,r,a,n);case 3:a:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Na(e,t),Ba(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Hi(t,ta,r),r!==o.cache&&Gi(t,[ta],n,!0),za(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=fc(e,t,r,n);break a}if(r!==a){a=mi(Error(i(424)),t),Ri(a),t=fc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ki=cf(e.firstChild),U=t,W=!0,Ai=null,ji=!0,n=Aa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ii(),r===a){t=Sc(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return cc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:W||(n=t.type,e=t.pendingProps,r=Bd(j.current).createElement(n),r[nt]=t,r[rt]=e,Pd(r,n,e),ht(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&W&&(r=t.stateNode=ff(t.type,t.pendingProps,j.current),U=t,ji=!0,a=ki,Zd(t.type)?(lf=a,ki=cf(r.firstChild)):ki=a),Qs(e,t,t.pendingProps.children,n),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&W&&((a=r=ki)&&(r=tf(r,t.type,t.pendingProps,ji),r===null?a=!1:(t.stateNode=r,U=t,ki=cf(r.firstChild),ji=!1,a=!0)),a||Ni(t)),ge(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=go(e,t,yo,null,null,n),Qf._currentValue=a),cc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&W&&((e=n=ki)&&(n=nf(n,t.pendingProps,ji),n===null?e=!1:(t.stateNode=n,U=t,ki=null,e=!0)),e||Ni(t)),null;case 13:return hc(e,t,n);case 4:return me(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ka(t,null,r,n):Qs(e,t,r,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Qs(e,t,t.pendingProps,n),t.child;case 8:return Qs(e,t,t.pendingProps.children,n),t.child;case 12:return Qs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Hi(t,t.type,r.value),Qs(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ji(t),a=Yi(a),r=r(a),t.flags|=1,Qs(e,t,r,n),t.child;case 14:return ec(e,t,t.type,t.pendingProps,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 19:return xc(e,t,n);case 31:return sc(e,t,n);case 22:return nc(e,t,n,t.pendingProps);case 24:return Ji(t),r=Yi(ta),e===null?(a=pa(),a===null&&(a=Fl,o=na(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ma(t),Hi(t,ta,a)):((e.lanes&n)!==0&&(Na(e,t),Ba(t,null,null,n),za()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Hi(t,ta,r),r!==a.cache&&Gi(t,[ta],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Hi(t,ta,r))),Qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ec(e){e.flags|=4}function Dc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Su())e.flags|=8192;else throw Sa=ya,_a}}else e.flags&=-16777217}function Oc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t)){if(Su())e.flags|=8192;else throw Sa=ya,_a}}function kc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:V(),e.lanes|=t,ql|=t)}function Ac(e,t){if(!W)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function jc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Mc(e,t,n){var r=t.pendingProps;switch(Di(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jc(t),null;case 1:return jc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ui(ta),he(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Fi(t)?Ec(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Li())),jc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Ec(t),o===null?(jc(t),Dc(t,a,null,r,n)):(jc(t),Oc(t,o))):o?o===e.memoizedState?(jc(t),t.flags&=-16777217):(Ec(t),jc(t),Oc(t,o)):(e=e.memoizedProps,e!==r&&Ec(t),jc(t),Dc(t,a,e,r,n)),null;case 27:if(M(t),n=j.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return jc(t),null}e=A.current,Fi(t)?G(t,e):(e=ff(a,r,n),t.stateNode=e,Ec(t))}return jc(t),null;case 5:if(M(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return jc(t),null}if(o=A.current,Fi(t))G(t,o);else{var s=Bd(j.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[nt]=t,o[rt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ec(t)}}return jc(t),Dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=j.current,Fi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=U,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Ni(t,!0)}else e=Bd(e).createTextNode(r),e[nt]=t,t.stateNode=e}return jc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Fi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[nt]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),e=!1}else n=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(eo(t),t):(eo(t),null);if(t.flags&128)throw Error(i(558))}return jc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Fi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[nt]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),a=!1}else a=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(eo(t),t):(eo(t),null)}return eo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),kc(t,t.updateQueue),jc(t),null);case 4:return he(),e===null&&xd(t.stateNode.containerInfo),jc(t),null;case 10:return Ui(t.type),jc(t),null;case 19:if(ue(to),r=t.memoizedState,r===null)return jc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Ac(r,!1);else{if(Hl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=no(e),o!==null){for(t.flags|=128,Ac(r,!1),e=o.updateQueue,t.updateQueue=e,kc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)si(n,e),n=n.sibling;return de(to,to.current&1|2),W&&wi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&L()>$l&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304)}}else{if(!a){if(e=no(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,kc(t,e),Ac(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!W)return jc(t),null}else 2*L()-r.renderingStartTime>$l&&n!==536870912&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(jc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=L(),e.sibling=null,n=to.current,de(to,a?n&1|2:n&1),W&&wi(t,r.treeForkCount),e);case 22:case 23:return eo(t),qa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(jc(t),t.subtreeFlags&6&&(t.flags|=8192)):jc(t),n=t.updateQueue,n!==null&&kc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ue(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),jc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Nc(e,t){switch(Di(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),he(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return M(t),null;case 31:if(t.memoizedState!==null){if(eo(t),t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(eo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(to),null;case 4:return he(),null;case 10:return Ui(t.type),null;case 22:case 23:return eo(t),qa(),e!==null&&ue(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function Pc(e,t){switch(Di(t),t.tag){case 3:Ui(ta),he();break;case 26:case 27:case 5:M(t);break;case 4:he();break;case 31:t.memoizedState!==null&&eo(t);break;case 13:eo(t);break;case 19:ue(to);break;case 10:Ui(t.type);break;case 22:case 23:eo(t),qa(),e!==null&&ue(fa);break;case 24:Ui(ta)}}function Fc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Uu(t,t.return,e)}}function Ic(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Uu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Uu(t,t.return,e)}}function Lc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ha(t,n)}catch(t){Uu(e,e.return,t)}}}function Rc(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Uu(e,t,n)}}function zc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Uu(e,t,n)}}function Bc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Uu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Uu(e,t,n)}else n.current=null}}function Vc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Uu(e,e.return,t)}}function Hc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[rt]=t}catch(t){Uu(e,e.return,t)}}function Uc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Wc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Uc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[nt]=e,t[rt]=n}catch(t){Uu(e,e.return,t)}}var Jc=!1,Yc=!1,Xc=!1,Zc=typeof WeakSet==`function`?WeakSet:Set,Qc=null;function $c(e,t){if(e=e.containerInfo,Rd=sp,e=Cr(e),wr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,Qc=t;Qc!==null;)if(t=Qc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Qc=e;else for(;Qc!==null;){switch(t=Qc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Bs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Uu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Qc=e;break}Qc=t.return}}function el(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:hl(e,n),r&4&&Fc(5,n);break;case 1:if(hl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Uu(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Uu(n,n.return,e)}}}r&64&&Lc(n),r&512&&zc(n,n.return);break;case 3:if(hl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ha(e,t)}catch(e){Uu(n,n.return,e)}}break;case 27:t===null&&r&4&&qc(n);case 26:case 5:hl(e,n),t===null&&r&4&&Vc(n),r&512&&zc(n,n.return);break;case 12:hl(e,n);break;case 31:hl(e,n),r&4&&ol(e,n);break;case 13:hl(e,n),r&4&&sl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qu.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||Jc,!r){t=t!==null&&t.memoizedState!==null||Yc,i=Jc;var a=Yc;Jc=r,(Yc=t)&&!a?_l(e,n,!!(n.subtreeFlags&8772)):hl(e,n),Jc=i,Yc=a}break;case 30:break;default:hl(e,n)}}function tl(e){var t=e.alternate;t!==null&&(e.alternate=null,tl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ut(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var nl=null,rl=!1;function il(e,t,n){for(n=n.child;n!==null;)al(e,t,n),n=n.sibling}function al(e,t,n){if(B&&typeof B.onCommitFiberUnmount==`function`)try{B.onCommitFiberUnmount(z,n)}catch{}switch(n.tag){case 26:Yc||Bc(n,t),il(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Yc||Bc(n,t);var r=nl,i=rl;Zd(n.type)&&(nl=n.stateNode,rl=!1),il(e,t,n),pf(n.stateNode),nl=r,rl=i;break;case 5:Yc||Bc(n,t);case 6:if(r=nl,i=rl,nl=null,il(e,t,n),nl=r,rl=i,nl!==null){if(rl)try{(nl.nodeType===9?nl.body:nl.nodeName===`HTML`?nl.ownerDocument.body:nl).removeChild(n.stateNode)}catch(e){Uu(n,t,e)}else try{nl.removeChild(n.stateNode)}catch(e){Uu(n,t,e)}}break;case 18:nl!==null&&(rl?(e=nl,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(nl,n.stateNode));break;case 4:r=nl,i=rl,nl=n.stateNode.containerInfo,rl=!0,il(e,t,n),nl=r,rl=i;break;case 0:case 11:case 14:case 15:Ic(2,n,t),Yc||Ic(4,n,t),il(e,t,n);break;case 1:Yc||(Bc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Rc(n,t,r)),il(e,t,n);break;case 21:il(e,t,n);break;case 22:Yc=(r=Yc)||n.memoizedState!==null,il(e,t,n),Yc=r;break;default:il(e,t,n)}}function ol(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Uu(t,t.return,e)}}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Uu(t,t.return,e)}}function cl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zc),t;default:throw Error(i(435,e.tag))}}function ll(e,t){var n=cl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ju.bind(null,e,t);t.then(r,r)}})}function ul(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){nl=c.stateNode,rl=!1;break a}break;case 5:nl=c.stateNode,rl=!1;break a;case 3:case 4:nl=c.stateNode.containerInfo,rl=!0;break a}c=c.return}if(nl===null)throw Error(i(160));al(o,s,a),nl=null,rl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fl(t,e),t=t.sibling}var dl=null;function fl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ul(t,e),pl(e),r&4&&(Ic(3,e,e.return),Fc(3,e),Ic(5,e,e.return));break;case 1:ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),r&64&&Jc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=dl;if(ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[lt]||o[nt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[nt]=e,ht(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[nt]=e,ht(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode)}else e.stateNode=If(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Hc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),n!==null&&r&4&&Hc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),e.flags&32){a=e.stateNode;try{Vt(a,``)}catch(t){Uu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Hc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Xc=!0);break;case 6:if(ul(t,e),pl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Uu(e,e.return,t)}}break;case 3:if(Bf=null,a=dl,dl=gf(t.containerInfo),ul(t,e),dl=a,pl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Uu(e,e.return,t)}Xc&&(Xc=!1,ml(e));break;case 4:r=dl,dl=gf(e.stateNode.containerInfo),ul(t,e),pl(e),dl=r;break;case 12:ul(t,e),pl(e);break;case 31:ul(t,e),pl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 13:ul(t,e),pl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zl=L()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Jc,d=Yc;if(Jc=u||a,Yc=d||l,ul(t,e),Yc=d,Jc=u,pl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Jc||Yc||gl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Uu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Uu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Uu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ll(e,n))));break;case 19:ul(t,e),pl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 30:break;case 21:break;default:ul(t,e),pl(e)}}function pl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Uc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Kc(e,Wc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Vt(o,``),n.flags&=-33),Kc(e,Wc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Gc(e,Wc(e),s);break;default:throw Error(i(161))}}catch(t){Uu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ml(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ml(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function hl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)el(e,t.alternate,t),t=t.sibling}function gl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ic(4,t,t.return),gl(t);break;case 1:Bc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Rc(t,t.return,n),gl(t);break;case 27:pf(t.stateNode);case 26:case 5:Bc(t,t.return),gl(t);break;case 22:t.memoizedState===null&&gl(t);break;case 30:gl(t);break;default:gl(t)}e=e.sibling}}function _l(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:_l(i,a,n),Fc(4,a);break;case 1:if(_l(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Uu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Va(c[i],s)}catch(e){Uu(r,r.return,e)}}n&&o&64&&Lc(a),zc(a,a.return);break;case 27:qc(a);case 26:case 5:_l(i,a,n),n&&r===null&&o&4&&Vc(a),zc(a,a.return);break;case 12:_l(i,a,n);break;case 31:_l(i,a,n),n&&o&4&&ol(i,a);break;case 13:_l(i,a,n),n&&o&4&&sl(i,a);break;case 22:a.memoizedState===null&&_l(i,a,n),zc(a,a.return);break;case 30:break;default:_l(i,a,n)}t=t.sibling}}function vl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ra(n))}function yl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ra(e))}function bl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xl(e,t,n,r),t=t.sibling}function xl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:bl(e,t,n,r),i&2048&&Fc(9,t);break;case 1:bl(e,t,n,r);break;case 3:bl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ra(e)));break;case 12:if(i&2048){bl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Uu(t,t.return,e)}}else bl(e,t,n,r);break;case 31:bl(e,t,n,r);break;case 13:bl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?bl(e,t,n,r):(a._visibility|=2,Sl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?bl(e,t,n,r):Cl(e,t),i&2048&&vl(o,t);break;case 24:bl(e,t,n,r),i&2048&&yl(t.alternate,t);break;default:bl(e,t,n,r)}}function Sl(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Sl(a,o,s,c,i),Fc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Sl(a,o,s,c,i)):u._visibility&2?Sl(a,o,s,c,i):Cl(a,o),i&&l&2048&&vl(o.alternate,o);break;case 24:Sl(a,o,s,c,i),i&&l&2048&&yl(o.alternate,o);break;default:Sl(a,o,s,c,i)}t=t.sibling}}function Cl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Cl(n,r),i&2048&&vl(r.alternate,r);break;case 24:Cl(n,r),i&2048&&yl(r.alternate,r);break;default:Cl(n,r)}t=t.sibling}}var wl=8192;function Tl(e,t,n){if(e.subtreeFlags&wl)for(e=e.child;e!==null;)El(e,t,n),e=e.sibling}function El(e,t,n){switch(e.tag){case 26:Tl(e,t,n),e.flags&wl&&e.memoizedState!==null&&Gf(n,dl,e.memoizedState,e.memoizedProps);break;case 5:Tl(e,t,n);break;case 3:case 4:var r=dl;dl=gf(e.stateNode.containerInfo),Tl(e,t,n),dl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=wl,wl=16777216,Tl(e,t,n),wl=r):Tl(e,t,n));break;default:Tl(e,t,n)}}function Dl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ol(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qc=r,jl(r,e)}Dl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kl(e),e=e.sibling}function kl(e){switch(e.tag){case 0:case 11:case 15:Ol(e),e.flags&2048&&Ic(9,e,e.return);break;case 3:Ol(e);break;case 12:Ol(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Al(e)):Ol(e);break;default:Ol(e)}}function Al(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qc=r,jl(r,e)}Dl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ic(8,t,t.return),Al(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Al(t));break;default:Al(t)}e=e.sibling}}function jl(e,t){for(;Qc!==null;){var n=Qc;switch(n.tag){case 0:case 11:case 15:Ic(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ra(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Qc=r;else a:for(n=e;Qc!==null;){r=Qc;var i=r.sibling,a=r.return;if(tl(r),r===n){Qc=null;break a}if(i!==null){i.return=a,Qc=i;break a}Qc=a}}}var Ml={getCacheForType:function(e){var t=Yi(ta),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Yi(ta).controller.signal}},Nl=typeof WeakMap==`function`?WeakMap:Map,Pl=0,Fl=null,Z=null,Q=0,Il=0,Ll=null,Rl=!1,zl=!1,Bl=!1,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=null,Yl=null,Xl=!1,Zl=0,Ql=0,$l=1/0,eu=null,tu=null,nu=0,ru=null,iu=null,au=0,ou=0,su=null,cu=null,lu=0,uu=null;function du(){return Pl&2&&Q!==0?Q&-Q:O.T===null?Ze():ud()}function fu(){if(Kl===0){if(!(Q&536870912)||W){var e=Re;Re<<=1,!(Re&3932160)&&(Re=262144),Kl=e}else Kl=536870912}return e=Ja.current,e!==null&&(e.flags|=32),Kl}function pu(e,t,n){(e===Fl&&(Il===2||Il===9)||e.cancelPendingCommit!==null)&&(bu(e,0),_u(e,Q,Kl,!1)),Ge(e,n),Pl&2&&e===Fl||(e===Fl&&(!(Pl&2)&&(Wl|=n),Hl===4&&_u(e,Q,Kl,!1)),nd(e))}function mu(e,t,n){if(Pl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||He(e,t),a=r?Ou(e,t):Eu(e,t,!0),o=r;do{if(a===0){zl&&!r&&_u(e,t,0,!1);break}if(n=e.current.alternate,o&&!gu(n))a=Eu(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Jl;var l=c.current.memoizedState.isDehydrated;if(l&&(bu(c,s).flags|=256),s=Eu(c,s,!1),s!==2){if(Bl&&!l){c.errorRecoveryDisabledLanes|=o,Wl|=o,a=4;break a}o=Yl,Yl=a,o!==null&&(Yl===null?Yl=o:Yl.push.apply(Yl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){bu(e,0),_u(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:_u(r,t,Kl,!Rl);break a;case 2:Yl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Zl+300-L(),10<a)){if(_u(r,t,Kl,!Rl),Ve(r,0,!0)!==0)break a;au=t,r.timeoutHandle=Kd(hu.bind(null,r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,`Throttled`,-0,0),a);break a}hu(r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,null,-0,0)}break}}while(1);nd(e)}function hu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yt},El(t,a,d);var m=(a&62914560)===a?Zl-L():(a&4194048)===a?Ql-L():0;if(m=qf(d,m),m!==null){au=a,e.cancelPendingCommit=m(Fu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),_u(e,a,o,!l);return}}Fu(e,t,a,n,r,i,o,s,c)}function gu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!vr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _u(e,t,n,r){t&=~Gl,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ne(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ke(e,n,t)}function vu(){return Pl&6?!0:(rd(0,!1),!1)}function yu(){if(Z!==null){if(Il===0)var e=Z.return;else e=Z,Vi=Bi=null,So(e),J=null,wa=0,e=Z;for(;e!==null;)Pc(e.alternate,e),e=e.return;Z=null}}function bu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),au=0,yu(),Fl=e,Z=n=oi(e.current,null),Q=t,Il=0,Ll=null,Rl=!1,zl=He(e,t),Bl=!1,ql=Kl=Gl=Wl=Ul=Hl=0,Yl=Jl=null,Xl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ne(r),a=1<<i;t|=e[i],r&=~a}return Vl=t,Xr(),n}function xu(e,t){Y=null,O.H=Ms,t===ga||t===va?(t=q(),Il=3):t===_a?(t=q(),Il=4):Il=t===Xs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ll=t,Z===null&&(Hl=1,Ws(e,mi(t,e.current)))}function Su(){var e=Ja.current;return e===null?!0:(Q&4194048)===Q?Ya===null:(Q&62914560)===Q||Q&536870912?e===Ya:!1}function Cu(){var e=O.H;return O.H=Ms,e===null?Ms:e}function wu(){var e=O.A;return O.A=Ml,e}function Tu(){Hl=4,Rl||(Q&4194048)!==Q&&Ja.current!==null||(zl=!0),!(Ul&134217727)&&!(Wl&134217727)||Fl===null||_u(Fl,Q,Kl,!1)}function Eu(e,t,n){var r=Pl;Pl|=2;var i=Cu(),a=wu();(Fl!==e||Q!==t)&&(eu=null,bu(e,t)),t=!1;var o=Hl;a:do try{if(Il!==0&&Z!==null){var s=Z,c=Ll;switch(Il){case 8:yu(),o=6;break a;case 3:case 2:case 9:case 6:Ja.current===null&&(t=!0);var l=Il;if(Il=0,Ll=null,Mu(e,s,c,l),n&&zl){o=0;break a}break;default:l=Il,Il=0,Ll=null,Mu(e,s,c,l)}}Du(),o=Hl;break}catch(t){xu(e,t)}while(1);return t&&e.shellSuspendCounter++,Vi=Bi=null,Pl=r,O.H=i,O.A=a,Z===null&&(Fl=null,Q=0,Xr()),o}function Du(){for(;Z!==null;)Au(Z)}function Ou(e,t){var n=Pl;Pl|=2;var r=Cu(),a=wu();Fl!==e||Q!==t?(eu=null,$l=L()+500,bu(e,t)):zl=He(e,t);a:do try{if(Il!==0&&Z!==null){t=Z;var o=Ll;b:switch(Il){case 1:Il=0,Ll=null,Mu(e,t,o,1);break;case 2:case 9:if(ba(o)){Il=0,Ll=null,ju(t);break}t=function(){Il!==2&&Il!==9||Fl!==e||(Il=7),nd(e)},o.then(t,t);break a;case 3:Il=7;break a;case 4:Il=5;break a;case 7:ba(o)?(Il=0,Ll=null,ju(t)):(Il=0,Ll=null,Mu(e,t,o,7));break;case 5:var s=null;switch(Z.tag){case 26:s=Z.memoizedState;case 5:case 27:var c=Z;if(s?Wf(s):c.stateNode.complete){Il=0,Ll=null;var l=c.sibling;if(l!==null)Z=l;else{var u=c.return;u===null?Z=null:(Z=u,Nu(u))}break b}}Il=0,Ll=null,Mu(e,t,o,5);break;case 6:Il=0,Ll=null,Mu(e,t,o,6);break;case 8:yu(),Hl=6;break a;default:throw Error(i(462))}}ku();break}catch(t){xu(e,t)}while(1);return Vi=Bi=null,O.H=r,O.A=a,Pl=n,Z===null?(Fl=null,Q=0,Xr(),Hl):0}function ku(){for(;Z!==null&&!I();)Au(Z)}function Au(e){var t=Tc(e.alternate,e,Vl);e.memoizedProps=e.pendingProps,t===null?Nu(e):Z=t}function ju(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uc(n,t,t.pendingProps,t.type,void 0,Q);break;case 11:t=uc(n,t,t.pendingProps,t.type.render,t.ref,Q);break;case 5:So(t);default:Pc(n,t),t=Z=si(t,Vl),t=Tc(n,t,Vl)}e.memoizedProps=e.pendingProps,t===null?Nu(e):Z=t}function Mu(e,t,n,r){Vi=Bi=null,So(t),J=null,wa=0;var i=t.return;try{if(Ys(e,i,t,n,Q)){Hl=1,Ws(e,mi(n,e.current)),Z=null;return}}catch(t){if(i!==null)throw Z=i,t;Hl=1,Ws(e,mi(n,e.current)),Z=null;return}t.flags&32768?(W||r===1?e=!0:zl||Q&536870912?e=!1:(Rl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ja.current,r!==null&&r.tag===13&&(r.flags|=16384))),Pu(t,e)):Nu(t)}function Nu(e){var t=e;do{if(t.flags&32768){Pu(t,Rl);return}e=t.return;var n=Mc(t.alternate,t,Vl);if(n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);Hl===0&&(Hl=5)}function Pu(e,t){do{var n=Nc(e.alternate,e);if(n!==null){n.flags&=32767,Z=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Z=e;return}Z=e=n}while(e!==null);Hl=6,Z=null}function Fu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Bu();while(nu!==0);if(Pl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Yr,H(e,n,o,s,c,l),e===Fl&&(Z=Fl=null,Q=0),iu=t,ru=e,au=n,ou=o,su=a,cu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Yu(Oe,function(){return Vu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=O.T,O.T=null,a=k.p,k.p=2,s=Pl,Pl|=4;try{$c(e,t,n)}finally{Pl=s,k.p=a,O.T=r}}nu=1,Iu(),Lu(),Ru()}}function Iu(){if(nu===1){nu=0;var e=ru,t=iu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=Pl;Pl|=4;try{fl(t,e);var a=zd,o=Cr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Sr(s.ownerDocument.documentElement,s)){if(c!==null&&wr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=xr(s,h),v=xr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{Pl=i,k.p=r,O.T=n}}e.current=t,nu=2}}function Lu(){if(nu===2){nu=0;var e=ru,t=iu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=Pl;Pl|=4;try{el(e,t.alternate,t)}finally{Pl=i,k.p=r,O.T=n}}nu=3}}function Ru(){if(nu===4||nu===3){nu=0,we();var e=ru,t=iu,n=au,r=cu;t.subtreeFlags&10256||t.flags&10256?nu=5:(nu=0,iu=ru=null,zu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(tu=null),Xe(n),t=t.stateNode,B&&typeof B.onCommitFiberRoot==`function`)try{B.onCommitFiberRoot(z,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=O.T,i=k.p,k.p=2,O.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{O.T=t,k.p=i}}au&3&&Bu(),nd(e),i=e.pendingLanes,n&261930&&i&42?e===uu?lu++:(lu=0,uu=e):lu=0,rd(0,!1)}}function zu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ra(t)))}function Bu(){return Iu(),Lu(),Ru(),Vu()}function Vu(){if(nu!==5)return!1;var e=ru,t=ou;ou=0;var n=Xe(au),r=O.T,a=k.p;try{k.p=32>n?32:n,O.T=null,n=su,su=null;var o=ru,s=au;if(nu=0,iu=ru=null,au=0,Pl&6)throw Error(i(331));var c=Pl;if(Pl|=4,kl(o.current),xl(o,o.current,s,n),Pl=c,rd(0,!1),B&&typeof B.onPostCommitFiberRoot==`function`)try{B.onPostCommitFiberRoot(z,o)}catch{}return!0}finally{k.p=a,O.T=r,zu(e,t)}}function Hu(e,t,n){t=mi(n,t),t=Ks(e.stateNode,t,2),e=Fa(e,t,2),e!==null&&(Ge(e,2),nd(e))}function Uu(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(tu===null||!tu.has(r))){e=mi(n,e),n=qs(2),r=Fa(t,n,2),r!==null&&(Js(n,r,t,e),Ge(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Bl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Fl===e&&(Q&n)===n&&(Hl===4||Hl===3&&(Q&62914560)===Q&&300>L()-Zl?!(Pl&2)&&bu(e,0):Gl|=n,ql===Q&&(ql=0)),nd(e)}function Ku(e,t){t===0&&(t=V()),e=$r(e,t),e!==null&&(Ge(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ku(e,n)}function Yu(e,t){return Se(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ne(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Q,a=Ve(r,r===Fl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||He(r,a)||(n=!0,cd(r,a))}r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=L(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}nu!==0&&nu!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ne(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ue(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Fl,n=Q,n=Ve(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Il===2||Il===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ce(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||He(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ce(r),Xe(n)){case 2:case 8:n=De;break;case 32:n=Oe;break;case 268435456:n=Ae;break;default:n=Oe}return r=sd.bind(null,e),n=Se(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ce(r),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(nu!==0&&nu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bu()&&e.callbackNode!==n)return null;var r=Q;return r=Ve(e,e===Fl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(mu(e,r,t),od(e,L()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function cd(e,t){if(Bu())return null;mu(e,t,!0)}function ld(){Yd(function(){Pl&6?Se(Ee,id):ad()})}function ud(){if(td===0){var e=oa;e===0&&(e=Le,Le<<=1,!(Le&261888)&&(Le=256)),td=e}return td}function dd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Jt(``+e)}function fd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function pd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=dd((i[rt]||null).action),o=r.submitter;o&&(t=(t=o[rt]||null)?dd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new _n(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(td!==0){var e=o?fd(i,o):new FormData(i);vs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?fd(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var md=0;md<Wr.length;md++){var hd=Wr[md];Gr(hd.toLowerCase(),`on`+(hd[0].toUpperCase()+hd.slice(1)))}Gr(Ir,`onAnimationEnd`),Gr(Lr,`onAnimationIteration`),Gr(Rr,`onAnimationStart`),Gr(`dblclick`,`onDoubleClick`),Gr(`focusin`,`onFocus`),Gr(`focusout`,`onBlur`),Gr(zr,`onTransitionRun`),Gr(Br,`onTransitionStart`),Gr(Vr,`onTransitionCancel`),Gr(Hr,`onTransitionEnd`),yt(`onMouseEnter`,[`mouseout`,`mouseover`]),yt(`onMouseLeave`,[`mouseout`,`mouseover`]),yt(`onPointerEnter`,[`pointerout`,`pointerover`]),yt(`onPointerLeave`,[`pointerout`,`pointerover`]),vt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),vt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),vt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),vt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),vt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),vt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),_d=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gd));function vd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Kr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Kr(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[at];n===void 0&&(n=t[at]=new Set);var r=e+`__bubble`;n.has(r)||(Sd(t,e,2,!1),n.add(r))}function yd(e,t,n){var r=0;t&&(r|=4),Sd(n,e,r,t)}var bd=`_reactListening`+Math.random().toString(36).slice(2);function xd(e){if(!e[bd]){e[bd]=!0,gt.forEach(function(t){t!==`selectionchange`&&(_d.has(t)||yd(t,!1,e),yd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bd]||(t[bd]=!0,yd(`selectionchange`,!1,t))}}function Sd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!on||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Cd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=dt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}nn(function(){var r=a,i=Zt(n),s=[];a:{var c=Ur.get(e);if(c!==void 0){var l=_n,u=e;switch(e){case`keypress`:if(fn(n)===0)break a;case`keydown`:case`keyup`:l=Fn;break;case`focusin`:u=`focus`,l=En;break;case`focusout`:u=`blur`,l=En;break;case`beforeblur`:case`afterblur`:l=En;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=wn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Tn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Ln;break;case Ir:case Lr:case Rr:l=Dn;break;case Hr:l=Rn;break;case`scroll`:case`scrollend`:l=yn;break;case`wheel`:l=zn;break;case`copy`:case`cut`:case`paste`:l=On;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=In;break;case`toggle`:case`beforetoggle`:l=Bn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=rn(m,p),g!=null&&d.push(wd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Xt&&(u=n.relatedTarget||n.fromElement)&&(dt(u)||u[it]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?dt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=wn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=In,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:pt(l),h=u==null?c:pt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,dt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ed,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Dd(s,c,l,d,!1),u!==null&&f!==null&&Dd(s,f,u,d,!0)}}a:{if(c=r?pt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=or;else if(er(c)){if(sr)v=gr;else{v=mr;var y=pr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Gt(r.elementType)&&(v=or):v=hr;if(v&&=v(e,r)){tr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Lt(c,`number`,c.value)}switch(y=r?pt(r):window,e){case`focusin`:(er(y)||y.contentEditable===`true`)&&(Er=y,Dr=r,Or=null);break;case`focusout`:Or=Dr=Er=null;break;case`mousedown`:kr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:kr=!1,Ar(s,n,i);break;case`selectionchange`:if(Tr)break;case`keydown`:case`keyup`:Ar(s,n,i)}var b;if(Hn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Xn?Jn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Gn&&n.locale!==`ko`&&(Xn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Xn&&(b=dn()):(cn=i,ln=`value`in cn?cn.value:cn.textContent,Xn=!0)),y=Td(r,x),0<y.length&&(x=new kn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Yn(n),b!==null&&(x.data=b)))),(b=Wn?Zn(e,n):Qn(e,n))&&(x=Td(r,`onBeforeInput`),0<x.length&&(y=new kn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),pd(s,e,r,n,i)}vd(s,t)})}function wd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Td(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=rn(e,n),i!=null&&r.unshift(wd(e,i,a)),i=rn(e,t),i!=null&&r.push(wd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=rn(n,a),l!=null&&o.unshift(wd(n,l,c))):i||(l=rn(n,a),l!=null&&o.push(wd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Od=/\r\n?/g,kd=/\u0000|\uFFFD/g;function Ad(e){return(typeof e==`string`?e:``+e).replace(Od,`
10
- `).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Vt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Vt(e,``+r);break;case`className`:Tt(e,`class`,r);break;case`tabIndex`:Tt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Tt(e,n,r);break;case`style`:Wt(e,r,o);break;case`data`:if(t!==`object`){Tt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Jt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Md(e,t,`name`,a.name,a,null),Md(e,t,`formEncType`,a.formEncType,a,null),Md(e,t,`formMethod`,a.formMethod,a,null),Md(e,t,`formTarget`,a.formTarget,a,null)):(Md(e,t,`encType`,a.encType,a,null),Md(e,t,`method`,a.method,a,null),Md(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Jt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Yt);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Jt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:$(`beforetoggle`,e),$(`toggle`,e),wt(e,`popover`,r);break;case`xlinkActuate`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Et(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Et(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Et(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:wt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Kt.get(n)||n,wt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Wt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Vt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Vt(e,``+r);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Yt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!_t.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[rt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):wt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,o,s,n,null)}}a&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:$(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Md(e,t,r,d,n,null)}}It(e,o,c,l,u,s,a,!1);return;case`select`:for(a in $(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Md(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Rt(e,!!r,n,!0):Rt(e,!!r,t,!1);return;case`textarea`:for(s in $(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Md(e,t,s,c,n,null)}Bt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Md(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)$(gd[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,u,r,n,null)}return;default:if(Gt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Md(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Md(e,t,p,m,r,f)}}Ft(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Md(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Md(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Rt(e,!!n,n?[]:``,!1):Rt(e,!!n,t,!0)):Rt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Md(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Md(e,t,s,a,r,o)}zt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Md(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Md(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Md(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Md(e,t,u,p,r,m)}return;default:if(Gt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e!==Wd&&(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[lt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body)}n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),ut(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[lt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ut(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=k.d;k.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=vu();return e||t}function yf(e){var t=ft(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Pt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),ht(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Pt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Pt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Pt(n.imageSizes)+`"]`)):i+=`[href="`+Pt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),ht(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Pt(r)+`"][href="`+Pt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),ht(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=mt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);ht(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=mt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),ht(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=mt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),ht(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=j.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=mt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=mt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=mt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+Pt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),ht(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Pt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Pt(n.href)+`"]`);if(r)return t.instance=r,ht(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ht(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,ht(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),ht(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,ht(a),a):(r=n,(a=mf.get(o))&&(r=f({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ht(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[lt]||a[nt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ht(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),ht(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:b,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=We(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=We(0),this.hiddenUpdates=We(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ii(3,null,null,t),e.current=a,a.stateNode=e,t=na(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ma(a),e}function tp(e){return e?(e=ni,e):ni}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Pa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Fa(e,r,t),n!==null&&(pu(n,e,t),Ia(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=$r(e,67108864);t!==null&&pu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=du();t=Ye(t);var n=$r(e,t);n!==null&&pu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=2,up(e,t,n,r)}finally{k.p=a,O.T=i}}function lp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=8,up(e,t,n,r)}finally{k.p=a,O.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=ft(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Be(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ne(o);s.entanglements[1]|=c,o&=~c}nd(a),!(Pl&6)&&($l=L()+500,rd(0,!1))}}break;case 31:case 13:s=$r(a,2),s!==null&&pu(s,a,2),vu(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=Zt(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=dt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Te()){case Ee:return 2;case De:return 8;case Oe:case ke:return 32;case Ae:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ft(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=dt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,$e(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,$e(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xt=r,n.target.dispatchEvent(r),Xt=null}else return t=ft(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=ft(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[rt]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[rt]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,du(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),vu(),t[it]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ze();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.8`)throw Error(i(527,Lp,`19.2.8`));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:O,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{z=zp.inject(Rp),B=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Vs,s=Hs,c=Us;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[it]=t.current,xd(e),new Fp(t)}})),nt=C(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=tt()})),rt=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,it=/^[\\/]{2}/;function at(e,t){return t+e.replace(/\\/g,`/`)}var ot=`popstate`;function st(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function ct(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=ht(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),pt(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:mt(t))}function r(e,t){ut(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return gt(t,n,r,e)}function lt(e,t){if(e===!1||e==null)throw Error(t)}function ut(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function dt(){return Math.random().toString(36).substring(2,10)}function ft(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function pt(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?ht(t):t,state:n,key:t&&t.key||r||dt(),mask:i}}function mt({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function ht(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function gt(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=st(e)?e:pt(h.location,e,t);n&&n(r,e),l=u()+1;let d=ft(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=st(e)?e:pt(h.location,e,t);n&&n(r,e),l=u();let i=ft(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return _t(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(ot,d),c=e,()=>{i.removeEventListener(ot,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function _t(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),lt(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:mt(t);return i=i.replace(/ $/,`%20`),!n&&it.test(i)&&(i=r+i),new URL(i,r)}function vt(e,t,n=`/`){return yt(e,t,n,!1)}function yt(e,t,n,r,i){let a=Bt((typeof t==`string`?ht(t):t).pathname||`/`,n);if(a==null)return null;let o=i??bt(e),s=null,c=zt(a);for(let e=0;s==null&&e<o.length;++e)s=Ft(o[e],c,r);return s}function bt(e){let t=xt(e);return Ct(t),t}function xt(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;lt(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Jt([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(lt(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),xt(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:Nt(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Rt(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of St(e.path))a(e,t,!0,n)}),t}function St(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=St(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function Ct(e){e.sort((e,t)=>e.score===t.score?Pt(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var wt=/^:[\w-]+$/,Tt=/^:[\w-]+/,Et=3.5,Dt=3,Ot=2,kt=1,At=10,jt=-2,Mt=e=>e===`*`;function Nt(e,t){let n=e.split(`/`),r=n.length;return n.some(Mt)&&(r+=jt),t&&(r+=Ot),n.filter(e=>!Mt(e)).reduce((e,t)=>e+(wt.test(t)?Dt:Tt.test(t)?Et:t===``?kt:At),r)}function Pt(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Ft(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Lt(u,l,s.matcher,s.compiledParams):It(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=It({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Jt([a,d.pathname]),pathnameBase:Xt(Jt([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Jt([a,d.pathnameBase]))}return o}function It(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Rt(e.path,e.caseSensitive,e.end);return Lt(e,t,n,r)}function Lt(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Yt(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Yt(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Rt(e,t=!1,n=!0){ut(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function zt(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return ut(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Bt(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Vt(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?ht(e):e,a;return n?(n=qt(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Ht(n.substring(1),`/`):Ht(n,t)):a=t,{pathname:a,search:Zt(r),hash:Qt(i)}}function Ht(e,t){let n=Yt(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Ut(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Wt(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Gt(e){let t=Wt(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Kt(e,t,n,r=!1){let i;typeof e==`string`?i=ht(e):(i={...e},lt(!i.pathname||!i.pathname.includes(`?`),Ut(`?`,`pathname`,`search`,i)),lt(!i.pathname||!i.pathname.includes(`#`),Ut(`#`,`pathname`,`hash`,i)),lt(!i.search||!i.search.includes(`#`),Ut(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Vt(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var qt=e=>e.replace(/[\\/]{2,}/g,`/`),Jt=e=>qt(e.join(`/`));function Yt(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Xt=e=>Yt(e).replace(/^\/*/,`/`),Zt=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Qt=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,$t=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function en(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function tn(e){return Jt(e.map(e=>e.route.path).filter(Boolean))||`/`}var nn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function rn(e,t){let n=e;if(typeof n!=`string`||!rt.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(nn)try{let e=new URL(window.location.href),r=it.test(n)?new URL(at(n,e.protocol)):new URL(n),a=Bt(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{ut(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var an=new URL(`http://localhost`);function on(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),an)}catch{return an}}function sn(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function cn(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function ln(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!sn(i,n),s=!sn(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!cn(e,i)||!sn(i,a)))throw Error(`External navigation is not allowed`)}var un=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(un);var dn=[`GET`,...un];new Set(dn);var fn=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function pn(e){try{return fn.includes(new URL(e).protocol)}catch{return!1}}var mn=E.createContext(null);mn.displayName=`DataRouter`;var hn=E.createContext(null);hn.displayName=`DataRouterState`;var gn=E.createContext(null);gn.displayName=`DataRouterData`;var _n=E.createContext(null);_n.displayName=`DataRouterNavigation`;var vn=E.createContext(!1);function yn(){return E.useContext(vn)}var bn=E.createContext({isTransitioning:!1});bn.displayName=`ViewTransition`;var xn=E.createContext(null);xn.displayName=`Fetchers`;var Sn=E.createContext(null);Sn.displayName=`Await`;var Cn=E.createContext(null);Cn.displayName=`Navigation`;var wn=E.createContext(null);wn.displayName=`Location`;var Tn=E.createContext({outlet:null,matches:[],isDataRoute:!1});Tn.displayName=`Route`;var En=E.createContext(!1);En.displayName=`IsDataRoute`;var Dn=E.createContext(void 0);Dn.displayName=`RouteId`;var On=E.createContext(null);On.displayName=`RouteError`;var kn=`REACT_ROUTER_ERROR`,An=`REDIRECT`,jn=`ROUTE_ERROR_RESPONSE`;function Mn(e){if(e.startsWith(`${kn}:${An}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Nn(e){if(e.startsWith(`${kn}:${jn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new $t(t.status,t.statusText,t.data)}catch{}}function Pn(e,{relative:t}={}){lt(Fn(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=E.useContext(Cn),{hash:i,pathname:a,search:o}=Hn(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Jt([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Fn(){return E.useContext(wn)!=null}function In(){return lt(Fn(),`useLocation() may be used only in the context of a <Router> component.`),E.useContext(wn).location}function Ln(e){lt(Fn(),`useMatch() may be used only in the context of a <Router> component.`);let{pathname:t}=In();return E.useMemo(()=>It(e,zt(t)),[t,e])}var Rn=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function zn(){return E.useContext(En)?ir():Bn()}function Bn(){lt(Fn(),`useNavigate() may be used only in the context of a <Router> component.`);let e=E.useContext(mn),{basename:t,navigator:n}=E.useContext(Cn),{matches:r}=E.useContext(Tn),{pathname:i}=In(),a=JSON.stringify(Gt(r)),o=E.useRef(!1);return E.useLayoutEffect(()=>{o.current=!0}),E.useCallback((r,s={})=>{if(ut(o.current,Rn),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Kt(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Jt([t,c.pathname])),ln(typeof r==`string`?r:mt(r),n.createHref(c),on(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}E.createContext(null);function Vn(){let{matches:e}=E.useContext(Tn);return e[e.length-1]?.params??{}}function Hn(e,{relative:t}={}){let{matches:n}=E.useContext(Tn),{pathname:r}=In(),i=JSON.stringify(Gt(n));return E.useMemo(()=>Kt(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Un(e,t){return Wn(e,t)}function Wn(e,t,n){lt(Fn(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=E.useContext(Cn),{matches:i}=E.useContext(Tn),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=In(),l;if(t){let e=typeof t==`string`?ht(t):t;lt(s===`/`||e.pathname?.startsWith(s),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),l=e}else l=c;let u=l.pathname||`/`,d=u;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);d=`/`+u.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let f;f=n?n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):n.router.match(n.state.location):vt(e,{pathname:d});let p=Zn(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Jt([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:Jt([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&p?E.createElement(wn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},p):p}function Gn(){let e=rr(),t=en(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return E.createElement(E.Fragment,null,E.createElement(`h2`,null,`Unexpected Application Error!`),E.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?E.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var Kn=E.createElement(Gn,null),qn=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=vn;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Nn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:E.createElement(Tn.Provider,{value:this.props.routeContext},E.createElement(En.Provider,{value:this.props.routeContext.isDataRoute},E.createElement(Dn.Provider,{value:this.props.routeContext.matches[this.props.routeContext.matches.length-1]?.route.id},E.createElement(On.Provider,{value:e,children:this.props.component}))));return this.context?E.createElement(Yn,{error:e},t):t}},Jn=new WeakMap;function Yn({children:e,error:t}){let{basename:n,navigator:r}=E.useContext(Cn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Mn(t.digest);if(e){let i=Jn.get(t);if(i)throw i;let a=rn(e.location,n),o=a.absoluteURL||a.to;if(ln(e.location,o,on(r),`allow-explicit`),pn(o))throw Error(`Invalid redirect location`);if(nn&&!Jn.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Jn.set(t,n),n}}return E.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Xn({routeContext:e,match:t,children:n}){let r=E.useContext(mn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(Tn.Provider,{value:e},E.createElement(En.Provider,{value:e.isDataRoute},E.createElement(Dn.Provider,{value:t.route.id},n)))}function Zn(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);lt(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:tn(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Kn,o&&(s<0&&c===0?(or(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?E.createElement(n.route.Component,null):n.route.element?n.route.element:e,E.createElement(Xn,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?E.createElement(qn,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Qn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $n(e){let t=E.useContext(mn);return lt(t,Qn(e)),t}function er(e){let t=E.useContext(hn);return lt(t,Qn(e)),t}function tr(e){let t=E.useContext(gn);return lt(t,Qn(e)),t}function nr(e){let t=E.useContext(Dn);return lt(t,`${e} can only be used on routes that contain a unique "id"`),t}function rr(){let e=E.useContext(On),t=tr(`useRouteError`),n=nr(`useRouteError`);return e===void 0?t.errors?.[n]:e}function ir(){let{router:e}=$n(`useNavigate`),t=nr(`useNavigate`),n=E.useRef(!1);return E.useLayoutEffect(()=>{n.current=!0}),E.useCallback(async(r,i={})=>{ut(n.current,Rn),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var ar={};function or(e,t,n){!t&&!ar[e]&&(ar[e]=!0,ut(!1,n))}E.memo(sr);function sr({routes:e,manifest:t,state:n,isStatic:r,onError:i}){let a=E.useContext(mn);return lt(a,`You must render this element inside a <DataRouterContext.Provider> element`),Wn(e,void 0,{router:a.router,manifest:t,state:n,isStatic:r,onError:i})}function cr({to:e,replace:t,state:n,relative:r}){lt(Fn(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=E.useContext(Cn);ut(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=E.useContext(Tn),{pathname:s}=In(),c=zn(),l=Kt(e,Gt(o),s,r===`path`);ln(typeof e==`string`?e:mt(e),a.createHref(l),on(a),`reject`);let u=JSON.stringify(l);return E.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function lr(e){lt(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function ur({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){lt(!Fn(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=E.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=ht(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=E.useMemo(()=>{let e=Bt(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return ut(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:E.createElement(Cn.Provider,{value:c},E.createElement(wn.Provider,{children:t,value:h}))}function dr({children:e,location:t}){return Un(fr(e),t)}E.Component;function fr(e,t=[]){let n=[];return E.Children.forEach(e,(e,r)=>{if(!E.isValidElement(e))return;let i=[...t,r];if(e.type===E.Fragment){n.push.apply(n,fr(e.props.children,i));return}lt(e.type===lr,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);let a=e.props;lt(!a.index||!a.children,`An index route cannot have child routes.`);let o={id:a.id||i.join(`-`),caseSensitive:a.caseSensitive,element:a.element,Component:a.Component,index:a.index,path:a.path,middleware:a.middleware,loader:a.loader,action:a.action,hydrateFallbackElement:a.hydrateFallbackElement,HydrateFallback:a.HydrateFallback,errorElement:a.errorElement,ErrorBoundary:a.ErrorBoundary,shouldRevalidate:a.shouldRevalidate,handle:a.handle,lazy:a.lazy};a.children&&(o.children=fr(a.children,i)),n.push(o)}),n}var pr=`application/x-www-form-urlencoded`;function mr(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function hr(e){return mr(e)&&e.tagName.toLowerCase()===`button`}function gr(e){return mr(e)&&e.tagName.toLowerCase()===`form`}function _r(e){return mr(e)&&e.tagName.toLowerCase()===`input`}function vr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yr(e,t){return e.button===0&&(!t||t===`_self`)&&!vr(e)}function br(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function xr(e,t){let n=br(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Sr=null;function Cr(){if(Sr===null)try{new FormData(document.createElement(`form`),0),Sr=!1}catch{Sr=!0}return Sr}var wr=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Tr(e){return e!=null&&!wr.has(e)?(ut(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pr}"`),null):e}function Er(e,t){let n,r,i,a,o;if(gr(e)){let o=e.getAttribute(`action`);r=o?Bt(o,t):null,n=e.getAttribute(`method`)||`get`,i=Tr(e.getAttribute(`enctype`))||pr,a=new FormData(e)}else if(hr(e)||_r(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Bt(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=Tr(e.getAttribute(`formenctype`))||Tr(o.getAttribute(`enctype`))||pr,a=new FormData(o,e),!Cr()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(mr(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=pr,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Dr(e,t){if(e===!1||e==null)throw Error(t)}function Or(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname=n.pathname.endsWith(`/`)?`${n.pathname}_.${t}`:`${n.pathname}.${t}`,n}async function kr(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ar(e){return e!=null&&typeof e.page==`string`}function jr(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Mr(e,t,n){return Lr((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await kr(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(jr).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Nr(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Pr(e,t,{includeHydrateFallback:n}={}){return Fr(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Fr(e){return[...new Set(e)]}function Ir(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Lr(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ar(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Ir(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var Rr=E.createContext(void 0);Rr.displayName=`FrameworkContext`;function zr(){let e=E.useContext(Rr);return Dr(e,`You must render this element inside a <HydratedRouter> element`),e}function Br(e,t){let n=E.useContext(Rr),[r,i]=E.useState(!1),[a,o]=E.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=E.useRef(null);E.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),E.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Vr(s,p),onBlur:Vr(c,m),onMouseEnter:Vr(l,p),onMouseLeave:Vr(u,m),onTouchStart:Vr(d,p)}]:[a,f,{}]:[!1,f,{}]}function Vr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Hr({page:e,...t}){let n=yn(),{nonce:r}=zr(),{router:i}=$n(`PrefetchPageLinks`),a=E.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?E.createElement(Wr,{page:e,matches:a,...t}):E.createElement(Gr,{page:e,matches:a,...t})):null}function Ur(e){let{manifest:t,routeModules:n}=zr(),[r,i]=E.useState([]);return E.useEffect(()=>{let r=!1;return Mr(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Wr({page:e,matches:t,...n}){let r=In(),i=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Or(e,`rsc`),i=!1,a=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set(`_routes`,a.join(`,`)),[n.pathname+n.search]},[e,r,t]);return E.createElement(E.Fragment,null,i.map(e=>E.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Gr({page:e,matches:t,...n}){let r=In(),{manifest:i,routeModules:a}=zr(),{matches:o}=er(`PrefetchPageLinks`),{loaderData:s}=tr(`PrefetchPageLinks`),c=E.useMemo(()=>Nr(e,t,o,i,r,`data`),[e,t,o,i,r]),l=E.useMemo(()=>Nr(e,t,o,i,r,`assets`),[e,t,o,i,r]),u=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))}),n.size===0)return[];let l=Or(e,`data`);return o&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[s,r,i,c,t,e,a]),d=E.useMemo(()=>Pr(l,i),[l,i]),f=Ur(l);return E.createElement(E.Fragment,null,u.map(e=>E.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),d.map(e=>E.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),f.map(({key:e,link:t})=>E.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Kr(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var qr=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{qr&&(window.__reactRouterVersion=`8`)}catch{}function Jr({basename:e,children:t,useTransitions:n,window:r}){let i=E.useRef(null);i.current??=ct({window:r,v5Compat:!0});let a=i.current,[o,s]=E.useState({action:a.action,location:a.location}),c=E.useCallback(e=>{n===!1?s(e):E.startTransition(()=>s(e))},[n]);return E.useLayoutEffect(()=>a.listen(c),[a,c]),E.createElement(ur,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var Yr=E.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=E.useContext(Cn),v=typeof l==`string`&&rt.test(l),y=rn(l,h);l=y.to;let b=Pn(l,{relative:r}),x=In(),S=null;if(o){let e=Kt(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Jt([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Br(n,p),ee=Qr(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function te(t){e&&e(t),t.defaultPrevented||ee(t)}let ne=!(y.isExternal||i),re=E.createElement(`a`,{...p,...T,href:(ne?S:void 0)||y.absoluteURL||b,onClick:ne?te:e,ref:Kr(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?E.createElement(E.Fragment,null,re,E.createElement(Hr,{page:b})):re});Yr.displayName=`Link`;var Xr=E.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Hn(a,{relative:c.relative}),d=In(),f=E.useContext(_n),{navigator:p,basename:m}=E.useContext(Cn),h=f!=null&&ii(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f?.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Bt(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(y)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return E.createElement(Yr,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Xr.displayName=`NavLink`;var Zr=E.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=E.useContext(Cn),g=ni(),_=ri(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&rt.test(s);return E.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?E.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Zr.displayName=`Form`;function Qr(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=zn(),d=In(),f=Hn(e,{relative:o});return E.useCallback(p=>{if(yr(p,t)){p.preventDefault();let t=n===void 0?mt(d)===mt(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?E.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function $r(e){ut(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=E.useRef(br(e)),n=E.useRef(!1),r=In(),i=E.useMemo(()=>xr(r.search,n.current?null:t.current),[r.search]),a=zn();return[i,E.useCallback((e,t)=>{let r=br(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var ei=0,ti=()=>`__${String(++ei)}__`;function ni(){let{router:e}=$n(`useSubmit`),{basename:t}=E.useContext(Cn),n=nr(`useSubmit`),r=e.fetch,i=e.navigate;return E.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Er(e,t);a.navigate===!1?await r(a.fetcherKey||ti(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function ri(e,{relative:t}={}){let{basename:n}=E.useContext(Cn),r=E.useContext(Tn);lt(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Hn(e||`.`,{relative:t})},o=In();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Jt([n,a.pathname])),mt(a)}function ii(e,{relative:t}={}){let n=E.useContext(bn);lt(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=$n(`useViewTransitionState`),i=Hn(e,{relative:t});if(!n.isTransitioning)return!1;let a=Bt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Bt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return It(i.pathname,o)!=null||It(i.pathname,a)!=null}var ai=nt(),oi,si=[],ci=e=>{oi=e,si.forEach(t=>{t(e)})},li=(e,t=!0)=>(t&&typeof oi==`string`&&e(oi),si.push(e),()=>{let t=si.indexOf(e);t>=0&&si.splice(t,1)}),ui=!1,di,fi=async(t,r,i)=>{let a=typeof process<`u`?`production`:void 0;e(i?.environment||a||`production`),g(i?.translation?.name??`de`,i?.translations),i?.transformTagName&&h(i?.transformTagName);let s=await n(t,r,i);return ui=!0,di=i,o.info(`Development mode active - Enhanced debugging features available`),s},pi=()=>ui,mi=()=>di,hi,gi;function _i(){return gi||(gi=1,hi=function(e){return function(t,n){if(!t)return e;var r;typeof t==`string`?r=t:n=t;var i=e;return r&&(i+=`__`+r),i+(n?Object.keys(n).reduce(function(e,t){var r=n[t];return r&&(e+=` `+(typeof r==`boolean`?i+`--`+t:i+`--`+t+`_`+r)),e},``):``)}}),hi}var vi=_i(),yi=c(vi);function bi(){let e=new Map,t=(t,n,r)=>{try{return e.get(t)(n,r)}catch{return e.set(t,yi(t)).get(t)(n,r)}};return t.forBlock=e=>{let n=(n,r)=>t(e,n,r);return n.forElement=n=>r=>t(e,n,r),n},t}var xi=bi(),Si;(function(e){e.blur=`blur`,e.cancel=`cancel`,e.change=`change`,e.changeHeaderCells=`changeheadercells`,e.changePage=`changepage`,e.changePageSize=`changepagesize`,e.click=`click`,e.close=`close`,e.create=`create`,e.error=`error`,e.focus=`focus`,e.input=`input`,e.keydown=`keydown`,e.load=`load`,e.mousedown=`mousedown`,e.reset=`reset`,e.select=`select`,e.selectionChange=`selectionchange`,e.sort=`sort`,e.submit=`submit`,e.toggle=`toggle`})(Si||={});var Ci={bubbles:!0,cancelable:!0,composed:!0};function wi(e,t=null){return new CustomEvent(e,Object.assign(Object.assign({},Ci),{detail:t}))}function Ti(e,t,n){return e.dispatchEvent(wi(t,n))}function Ei(e,t=null,n){let r=wi(e,t);return n&&(Object.defineProperty(r,"target",{value:n}),Object.defineProperty(r,"currentTarget",{value:n})),r}new a(`kol`,u,p);var Di=class e{constructor(e,t){this.document=e,this.options=t,this.toastContainerElement=this.document.createElement(m),this.document.body.prepend(this.toastContainerElement),this.options?.defaultVariant&&o.info(`ToasterService: Default variant is deprecated. Use 'card' variant for all toasts instead.`)}static getInstance(t,n){if(!pi())throw Error(`Toaster: Call KoliBri bootstrap/register method first.`);let r=this.instances.get(t);return r||(r=new e(t,n),this.instances.set(t,r)),r}dispose(){let e=this.toastContainerElement;e?(this.toastContainerElement=void 0,e.remove()):o.warn(`Toaster service is already disposed.`)}enqueue(e){if(this.toastContainerElement&&typeof this.toastContainerElement.enqueue==`function`)return this.toastContainerElement.enqueue(e)}closeAll(e=!1){this.toastContainerElement&&typeof this.toastContainerElement.closeAll==`function`&&this.toastContainerElement.closeAll(e)}};Di.instances=new Map;var Oi;(function(e){e[`Die Bundesregierung`]=`BReg`,e[`Bundesministerium der Finanzen`]=`BMF`,e[`Bundesministerium des Innern, für Bau und Heimat`]=`BMI`,e[`Auswärtiges Amt`]=`AA`,e[`Bundesministerium für Wirtschaft und Energie`]=`BMWi`,e[`Bundesministerium der Justiz und für Verbraucherschutz`]=`BMJV`,e[`Bundesministerium für Arbeit und Soziales`]=`BMAS`,e[`Bundesministerium der Verteidigung`]=`BMVg`,e[`Bundesministerium für Ernährung und Landwirtschaft`]=`BMEL`,e[`Bundesministerium für Familie, Senioren, Frauen und Jugend`]=`BMFSFJ`,e[`Bundesministerium für Gesundheit`]=`BMG`,e[`Bundesministerium für Verkehr und digitale Infrastruktur`]=`BMVI`,e[`Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit`]=`BMU`,e[`Bundesministerium für Bildung und Forschung`]=`BMBF`,e[`Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung`]=`BMZ`})(Oi||={}),Object.getOwnPropertyNames(Oi);var U;(function(e){e[`Beschaffungsamt des Bundesministeriums des Innern`]=`BeschA`,e[`Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr`]=`BAAINBw`,e[`Bundesamt für äußere Restitutionen`]=`BAR`,e[`Bundesamt für Bauwesen und Raumordnung`]=`BBR`,e[`Bundesamt für Bevölkerungsschutz und Katastrophenhilfe`]=`BBK`,e[`Bundesamt für Familie und zivilgesellschaftliche Aufgaben`]=`BAFzA`,e[`Bundesamt für Güterverkehr`]=`BAG`,e[`Bundesamt für Justiz`]=`BfJ`,e[`Bundesamt für Kartographie und Geodäsie`]=`BKG`,e[`Bundesamt für kerntechnische Entsorgungssicherheit`]=`BASE`,e[`Bundesamt für Migration und Flüchtlinge`]=`BAMF`,e[`Bundesamt für Sicherheit in der Informationstechnik`]=`BSI`,e[`Bundesamt für Verbraucherschutz und Lebensmittelsicherheit`]=`BVL`,e[`Bundesamt für Verfassungsschutz`]=`BfV`,e[`Bundesamt für Wirtschaft und Ausfuhrkontrolle`]=`BAFA`,e[`Bundesamt für zentrale Dienste und offene Vermögensfragen`]=`BADV`,e[`Bundesanstalt für Verwaltungsdienstleistungen`]=`BAV`,e.Bundesarchiv=`BArch`,e[`Bundesaufsichtsamt für Flugsicherung`]=`BAF`,e.Bundesausgleichsamt=`BAA`,e.Bundeskartellamt=`BKartA`,e.Bundeskriminalamt=`BKA`,e.Bundesnachrichtendienst=`BND`,e[`Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen`]=`BNetzA`,e.Bundespolizeipräsidium=`BPOLP`,e[`Bundesprüfstelle für jugendgefährdende Medien`]=`BPjM`,e.Bundessortenamt=`BSA`,e.Bundessprachenamt=`BSprA`,e[`Bundesamt für Soziale Sicherung`]=`BAS`,e.Bundesverwaltungsamt=`BVA`,e[`Bundeszentralamt für Steuern`]=`BZSt`,e[`Deutsches Patent- und Markenamt`]=`DPMA`,e[`Eisenbahn-Bundesamt`]=`EBA`,e.Generalzolldirektion=`GZD`,e[`Militärischer Abschirmdienst`]=`MAD`,e[`Zentrale Stelle für Informationstechnik im Sicherheitsbereich`]=`ZITiS`})(U||={}),Object.getOwnPropertyNames(U);var ki;(function(e){e[`Informationstechnikzentrum Bund`]=`ITZBund`,e[`Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben`]=`BDBOS`,e[`Bundesanstalt für Landwirtschaft und Ernährung`]=`BLE`,e[`Bundesanstalt Technisches Hilfswerk`]=`THW`,e[`Bundesinstitut für Arzneimittel und Medizinprodukte`]=`BfArM`,e[`Bundesinstitut für Bevölkerungsforschung`]=`BiB`,e[`Bundesinstitut für Sportwissenschaft`]=`BISp`})(ki||={}),Object.getOwnPropertyNames(ki);var W=new Map;W.set(Oi[`Die Bundesregierung`],[`Die`,`Bundesregierung`]),W.set(Oi[`Bundesministerium der Finanzen`],[`Bundesministerium`,`der Finanzen`]),W.set(Oi[`Bundesministerium des Innern, für Bau und Heimat`],[`Bundesministerium`,`des Inneren, für Bau`,`und Heimat`]),W.set(Oi[`Auswärtiges Amt`],[`Auswärtiges Amt`]),W.set(Oi[`Bundesministerium für Wirtschaft und Energie`],[`Bundesministerium`,`für Wirtschaft`,`und Energie`]),W.set(Oi[`Bundesministerium der Justiz und für Verbraucherschutz`],[`Bundesministerium`,`der Justiz und`,`für Verbraucherschutz`]),W.set(Oi[`Bundesministerium für Arbeit und Soziales`],[`Bundesministerium`,`für Arbeit und Soziales`]),W.set(Oi[`Bundesministerium der Verteidigung`],[`Bundesministerium`,`der Verteidigung`]),W.set(Oi[`Bundesministerium für Bildung und Forschung`],[`Bundesministerium`,`für Bildung`,`und Forschung`]),W.set(Oi[`Bundesministerium für Ernährung und Landwirtschaft`],[`Bundesministerium`,`für Ernährung`,`und Landwirtschaft`]),W.set(Oi[`Bundesministerium für Familie, Senioren, Frauen und Jugend`],[`Bundesministerium`,`für Familie, Senioren, Frauen`,`und Jugend`]),W.set(Oi[`Bundesministerium für Gesundheit`],[`Bundesministerium`,`für Gesundheit`]),W.set(Oi[`Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit`],[`Bundesministerium`,`für Umwelt, Naturschutz`,`und nukleare Sicherheit`]),W.set(Oi[`Bundesministerium für Verkehr und digitale Infrastruktur`],[`Bundesministerium`,`für Verkehr und`,`digitale Infrastruktur`]),W.set(Oi[`Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung`],[`Bundesministerium`,`für wirtschaftliche Zusammenarbeit`,`und Entwicklung`]),W.set(U[`Beschaffungsamt des Bundesministeriums des Innern`],[`Beschaffungsamt`,`des Bundesministeriums`,`des Innern`]),W.set(U[`Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr`],[]),W.set(U[`Bundesamt für äußere Restitutionen`],[]),W.set(U[`Bundesamt für Bauwesen und Raumordnung`],[]),W.set(U[`Bundesamt für Bevölkerungsschutz und Katastrophenhilfe`],[`Bundesamt`,`für Bevölkerungsschutz`,`und Katastrophenhilfe`]),W.set(U[`Bundesamt für Familie und zivilgesellschaftliche Aufgaben`],[`Bundesamt`,`für Familie und`,`zivilgesellschaftliche Aufgaben`]),W.set(U[`Bundesamt für Güterverkehr`],[`Bundesamt`,`für Güterverkehr`]),W.set(U[`Bundesamt für Justiz`],[`Bundesamt für`,`Justiz`]),W.set(U[`Bundesamt für Kartographie und Geodäsie`],[`Bundesamt für`,`Kartographie und Geodäsie`]),W.set(U[`Bundesamt für kerntechnische Entsorgungssicherheit`],[`Bundesamt für`,`kerntechnische`,`Entsorgungssicherheit`]),W.set(U[`Bundesamt für Migration und Flüchtlinge`],[`Bundesamt`,`für Migration`,`und Flüchtlinge`]),W.set(U[`Bundesamt für Sicherheit in der Informationstechnik`],[`Bundesamt`,`für Sicherheit in der`,`Informationstechnik`]),W.set(U[`Bundesamt für Verbraucherschutz und Lebensmittelsicherheit`],[`Bundesamt für`,`Verbraucherschutz und`,`Lebensmittelsicherheit`]),W.set(U[`Bundesamt für Verfassungsschutz`],[`Bundesamt für`,`Verfassungsschutz`]),W.set(U[`Bundesamt für Wirtschaft und Ausfuhrkontrolle`],[`Bundesamt`,`für Wirtschaft`,`Ausfuhrkontrolle`]),W.set(U[`Bundesamt für zentrale Dienste und offene Vermögensfragen`],[`Bundesamt`,`für zentrale Dienste und`,`offene Vermögensfragen`]),W.set(U[`Bundesanstalt für Verwaltungsdienstleistungen`],[`Bundesanstalt`,`für Verwaltungsdienstleistungen`]),W.set(U.Bundesarchiv,[`Das`,`Bundesarchiv`]),W.set(U[`Bundesaufsichtsamt für Flugsicherung`],[`Bundesaufsichtsamt`,`für Flugsicherung`]),W.set(U.Bundesausgleichsamt,[`Bundesausgleichsamt`]),W.set(U.Bundeskartellamt,[`Bundeskartellamt`]),W.set(U.Bundeskriminalamt,[`Bundeskriminalamt`]),W.set(U.Bundesnachrichtendienst,[`Bundesnachrichtendienst`]),W.set(U[`Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen`],[`Bundesnetzagentur`]),W.set(U.Bundespolizeipräsidium,[`Bundespolizeipräsidium`]),W.set(U[`Bundesprüfstelle für jugendgefährdende Medien`],[`Bundesprüfstelle`,`für jugendgefährdende`,`Medien`]),W.set(U.Bundessortenamt,[`Bundessortenamt`]),W.set(U.Bundessprachenamt,[`Bundessprachenamt`]),W.set(U[`Bundesamt für Soziale Sicherung`],[`Bundesamt`,`für Soziale Sicherung`]),W.set(U.Bundesverwaltungsamt,[`Bundesverwaltungsamt`]),W.set(U[`Bundeszentralamt für Steuern`],[`Bundeszentralamt`,`für Steuern`]),W.set(U[`Deutsches Patent- und Markenamt`],[`Deutsches`,`Patent- und Markenamt`]),W.set(U[`Eisenbahn-Bundesamt`],[`Eisenbahn-Bundesamt`]),W.set(U.Generalzolldirektion,[`Generalzolldirektion`]),W.set(U[`Militärischer Abschirmdienst`],[`Bundesamt für den`,`Militärischen Abschirmdienst`]),W.set(U[`Zentrale Stelle für Informationstechnik im Sicherheitsbereich`],[`Zentrale Stelle`,`für Informationstechnik`,`im Sicherheitsbereich`]),W.set(ki[`Informationstechnikzentrum Bund`],[`Informations`,`Technik`,`Zentrum Bund`]),W.set(ki[`Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben`],[`Bundesanstalt`,`für den Digitalfunk der Behörden und`,`Organisationen mit Sicherheitsaufgaben`]),W.set(ki[`Bundesanstalt für Landwirtschaft und Ernährung`],[`Bundesanstalt für`,`Landwirtschaft und Ernährung`]),W.set(ki[`Bundesanstalt Technisches Hilfswerk`],[`Bundesanstalt`,`Technisches Hilfswerk`]),W.set(ki[`Bundesinstitut für Arzneimittel und Medizinprodukte`],[`Bundesinstitut`,`für Arzneimittel`,`und Medizinprodukte`]),W.set(ki[`Bundesinstitut für Bevölkerungsforschung`],[`Bundesinstitut`,`für Bevölkerungsforschung`]),W.set(ki[`Bundesinstitut für Sportwissenschaft`],[`Bundesinstitut`,`für Sportwissenschaft`]);var Ai=()=>{f(e=>{try{e.shadowRoot instanceof ShadowRoot&&t(e,d(e))}catch{}return`default`}),i(()=>import(`./devtools-QEDvmhav-CNr3f7eL.js`).then(e=>{typeof e==`object`&&e&&typeof e.initialize==`function`&&e.initialize()}),__vite__mapDeps([0,1,2]),import.meta.url).catch(e=>{o.error(e)})},ji=async(e,t)=>{if(typeof window<`u`)return await Ai(),s(JSON.parse(`[["kol-abbr",[[545,"kol-abbr",{"_label":[1]},null,{"_label":[{"watchLabel":0}]}]]],["kol-accordion",[[801,"kol-accordion",{"_disabled":[4],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"controlId":[32],"detailsOpen":[32],"expanded":[32],"headingId":[32],"transitionMs":[32],"focus":[64],"click":[64]},null,{"_disabled":[{"watchDisabled":0}],"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_on":[{"watchOn":0}],"_open":[{"watchOpen":0}]}]]],["kol-alert",[[801,"kol-alert",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"headingId":[32],"closerAriaDescriptionId":[32]},null,{"_alert":[{"watchAlert":0}],"_hasCloser":[{"watchHasCloser":0}],"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_on":[{"watchOn":0}],"_type":[{"watchType":0}],"_variant":[{"watchVariant":0}]}]]],["kol-avatar",[[545,"kol-avatar",{"_color":[1],"_label":[1],"_src":[1],"initials":[32]},null,{"_color":[{"watchColor":0}],"_label":[{"watchLabel":0}],"_src":[{"watchSrc":0}]}]]],["kol-badge",[[545,"kol-badge",{"_color":[1],"_icons":[1],"_label":[1],"_smartButton":[1,"_smart-button"],"labelId":[32],"ariaDescriptionId":[32],"focus":[64]},null,{"_color":[{"watchColor":0}],"_icons":[{"watchIcons":0}],"_label":[{"watchLabel":0}],"_smartButton":[{"watchSmartButton":0}]}]]],["kol-breadcrumb",[[545,"kol-breadcrumb",{"_label":[1],"_links":[1],"linkItems":[32]},null,{"_label":[{"watchLabel":0}],"_links":[{"watchLinks":0}]}]]],["kol-button",[[545,"kol-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"ariaDescriptionId":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaControls":[{"watchAriaControls":0}],"_ariaDescription":[{"watchAriaDescription":0}],"_ariaExpanded":[{"watchAriaExpanded":0}],"_ariaSelected":[{"watchAriaSelected":0}],"_customClass":[{"watchCustomClass":0}],"_disabled":[{"watchDisabled":0}],"_hideLabel":[{"watchHideLabel":0}],"_icons":[{"watchIcons":0}],"_inline":[{"watchInline":0}],"_label":[{"watchLabel":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_role":[{"watchRole":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_type":[{"watchType":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-button-link",[[545,"kol-button-link",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"ariaDescriptionId":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaControls":[{"watchAriaControls":0}],"_ariaDescription":[{"watchAriaDescription":0}],"_ariaExpanded":[{"watchAriaExpanded":0}],"_ariaSelected":[{"watchAriaSelected":0}],"_disabled":[{"watchDisabled":0}],"_hideLabel":[{"watchHideLabel":0}],"_icons":[{"watchIcons":0}],"_inline":[{"watchInline":0}],"_label":[{"watchLabel":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_role":[{"watchRole":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_type":[{"watchType":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-card",[[801,"kol-card",{"_hasCloser":[4,"_has-closer"],"_href":[1],"_label":[1],"_level":[2],"_on":[16],"_target":[1],"ariaDescriptionId":[32],"headingId":[32],"focus":[64],"click":[64]},null,{"_hasCloser":[{"watchHasCloser":0}],"_href":[{"watchHref":0}],"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_on":[{"watchOn":0}],"_target":[{"watchTarget":0}]}]]],["kol-click-button",[[513,"kol-click-button",{"_label":[1],"focus":[64]},null,{"_label":[{"watchLabel":0}]}]]],["kol-combobox",[[545,"kol-combobox",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_placeholder":[1],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_hasClearButton":[4,"_has-clear-button"],"_suggestions":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"isOpen":[32],"blockSuggestionMouseOver":[32],"filteredSuggestions":[32],"getValue":[64],"focus":[64],"click":[64]},[[0,"keydown","handleHostKeyDown"],[1,"mousemove","handleMouseEvent"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]],{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_placeholder":[{"watchPlaceholder":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_hasClearButton":[{"watchHasClearButton":0}],"_suggestions":[{"watchSuggestions":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-details",[[801,"kol-details",{"_disabled":[4],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"controlId":[32],"detailsOpen":[32],"expanded":[32],"headingId":[32],"transitionMs":[32],"focus":[64],"click":[64]},null,{"_disabled":[{"watchDisabled":0}],"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_on":[{"watchOn":0}],"_open":[{"watchOpen":0}]}]]],["kol-dialog",[[801,"kol-dialog",{"_label":[1],"_level":[2],"_on":[16],"_variant":[1],"_width":[1],"ariaDescriptionId":[32],"headingId":[32],"modal":[32],"openModal":[64],"showModal":[64],"show":[64],"close":[64],"closeModal":[64]},null,{"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_on":[{"watchOn":0}],"_variant":[{"watchVariant":0}],"_width":[{"watchWidth":0}]}]]],["kol-drawer",[[801,"kol-drawer",{"_align":[1],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_open":[4],"ariaDescriptionId":[32],"expanded":[32],"headingId":[32],"modal":[32],"show":[64],"showModal":[64],"open":[64],"close":[64]},null,{"_align":[{"watchAlign":0}],"_hasCloser":[{"watchHasCloser":0}],"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_on":[{"watchOn":0}],"_open":[{"watchOpen":0}]}]]],["kol-form",[[545,"kol-form",{"_errorList":[16],"_on":[16],"_requiredText":[8,"_required-text"],"errorLinkItems":[32],"focusErrorList":[64]},null,{"_errorList":[{"watchErrorList":0}],"_on":[{"watchOn":0}],"_requiredText":[{"watchRequiredText":0}]}]]],["kol-heading",[[545,"kol-heading",{"_label":[1],"_level":[2],"_secondaryHeadline":[1,"_secondary-headline"]},null,{"_label":[{"watchLabel":0}],"_level":[{"watchLevel":0}],"_secondaryHeadline":[{"watchSecondaryHeadline":0}]}]]],["kol-icon",[[545,"kol-icon",{"_icons":[1],"_label":[1]},null,{"_icons":[{"watchIcons":0}],"_label":[{"watchLabel":0}]}]]],["kol-image",[[545,"kol-image",{"_alt":[1],"_loading":[1],"_sizes":[1],"_src":[1],"_srcset":[1],"_on":[16]},null,{"_alt":[{"watchAlt":0}],"_loading":[{"watchLoading":0}],"_sizes":[{"watchSizes":0}],"_src":[{"watchSrc":0}],"_srcset":[{"watchSrcset":0}],"_on":[{"watchOn":0}]}]]],["kol-input-checkbox",[[545,"kol-input-checkbox",{"_accessKey":[1,"_access-key"],"_checked":[1540],"_hideMsg":[4,"_hide-msg"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_indeterminate":[1540],"_label":[1],"_labelAlign":[1,"_label-align"],"_msg":[1],"_name":[1],"_on":[16],"_required":[4],"_ariaDetails":[1,"_aria-details"],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[8],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_checked":[{"watchChecked":0}],"_hideMsg":[{"watchHideMsg":0}],"_disabled":[{"watchDisabled":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_indeterminate":[{"watchIndeterminate":0}],"_label":[{"watchLabel":0}],"_labelAlign":[{"watchLabelAlign":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_required":[{"watchRequired":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-color",[[545,"kol-input-color",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_autoComplete":[{"watchAutoComplete":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_shortKey":[{"watchShortKey":0}],"_smartButton":[{"watchSmartButton":0}],"_suggestions":[{"watchSuggestions":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-date",[[545,"kol-input-date",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_max":[1],"_min":[1],"_msg":[1],"_name":[1],"_on":[16],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_step":[8],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1537],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64],"reset":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_autoComplete":[{"watchAutoComplete":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_max":[{"watchMax":0}],"_min":[{"watchMin":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_readOnly":[{"watchReadOnly":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_smartButton":[{"watchSmartButton":0}],"_suggestions":[{"watchSuggestions":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_step":[{"watchStep":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_type":[{"watchType":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-email",[[545,"kol-input-email",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_autoComplete":[{"watchAutoComplete":0}],"_hasCounter":[{"watchHasCounter":0}],"_maxLengthBehavior":[{"watchMaxLengthBehavior":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_maxLength":[{"watchMaxLength":0}],"_msg":[{"watchMsg":0}],"_multiple":[{"watchMultiple":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_pattern":[{"watchPattern":0}],"_placeholder":[{"watchPlaceholder":0}],"_readOnly":[{"watchReadOnly":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_smartButton":[{"watchSmartButton":0}],"_suggestions":[{"watchSuggestions":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-file",[[545,"kol-input-file",{"_accept":[1],"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"filename":[32],"hasFileSelected":[32],"isDragover":[32],"getValue":[64],"focus":[64],"click":[64],"reset":[64]},null,{"_accept":[{"watchAccept":0}],"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_msg":[{"watchMsg":0}],"_multiple":[{"watchMultiple":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_smartButton":[{"watchSmartButton":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-number",[[545,"kol-input-number",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_max":[8],"_min":[8],"_msg":[1],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_step":[8],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_autoComplete":[{"watchAutoComplete":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_max":[{"watchMax":0}],"_min":[{"watchMin":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_placeholder":[{"watchPlaceholder":0}],"_readOnly":[{"watchReadOnly":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_smartButton":[{"watchSmartButton":0}],"_suggestions":[{"watchSuggestions":0}],"_step":[{"watchStep":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-password",[[545,"kol-input-password",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1025],"_variant":[1],"_visibilityToggle":[4,"_visibility-toggle"],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"passwordVisible":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_autoComplete":[{"watchAutoComplete":0}],"_hasCounter":[{"watchHasCounter":0}],"_maxLengthBehavior":[{"watchMaxLengthBehavior":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_maxLength":[{"watchMaxLength":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_pattern":[{"watchPattern":0}],"_placeholder":[{"watchPlaceholder":0}],"_readOnly":[{"watchReadOnly":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_smartButton":[{"watchSmartButton":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}],"_visibilityToggle":[{"watchVisibilityToggle":0}]}]]],["kol-input-radio",[[545,"kol-input-radio",{"_ariaDetails":[1,"_aria-details"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_infoPopover":[16],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_options":[1],"_orientation":[1],"_required":[4],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_ariaDetails":[{"watchAriaDetails":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_options":[{"watchOptions":0}],"_orientation":[{"watchOrientation":0}],"_required":[{"watchRequired":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-range",[[545,"kol-input-range",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_max":[8],"_min":[8],"_msg":[1],"_name":[1],"_on":[16],"_shortKey":[1,"_short-key"],"_step":[8],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_autoComplete":[{"watchAutoComplete":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_max":[{"watchMax":0}],"_min":[{"watchMin":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_shortKey":[{"watchShortKey":0}],"_step":[{"watchStep":0}],"_suggestions":[{"watchSuggestions":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-input-text",[[545,"kol-input-text",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_ariaDetails":[1,"_aria-details"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_spellCheck":[4,"_spell-check"],"_suggestions":[1],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1537],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64],"selectionStart":[64],"selectionEnd":[64],"setSelectionRange":[64],"setSelectionStart":[64],"setRangeText":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_autoComplete":[{"watchAutoComplete":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_hasCounter":[{"watchHasCounter":0}],"_maxLengthBehavior":[{"watchMaxLengthBehavior":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_maxLength":[{"watchMaxLength":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_pattern":[{"watchPattern":0}],"_placeholder":[{"watchPlaceholder":0}],"_readOnly":[{"watchReadOnly":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_spellCheck":[{"watchSpellCheck":0}],"_suggestions":[{"watchSuggestions":0}],"_smartButton":[{"watchSmartButton":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_type":[{"watchType":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-kolibri",[[545,"kol-kolibri",{"_color":[1],"_labeled":[4]},null,{"_color":[{"watchColor":0}],"_labeled":[{"watchLabeled":0}]}]]],["kol-link",[[545,"kol-link",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_inline":[4],"_label":[1],"_on":[16],"_shortKey":[1,"_short-key"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"_variant":[1],"ariaCurrent":[32],"ariaDescriptionId":[32],"expertSlot":[32],"focus":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaCurrentValue":[{"watchAriaCurrentValue":0}],"_ariaControls":[{"watchAriaControls":0}],"_ariaDescription":[{"watchAriaDescription":0}],"_ariaExpanded":[{"watchAriaExpanded":0}],"_disabled":[{"watchDisabled":0}],"_download":[{"watchDownload":0}],"_hideLabel":[{"watchHideLabel":0}],"_href":[{"watchHref":0}],"_icons":[{"watchIcons":0}],"_inline":[{"watchInline":0}],"_label":[{"watchLabel":0}],"_on":[{"watchOn":0}],"_shortKey":[{"watchShortKey":0}],"_target":[{"watchTarget":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_variant":[{"watchVariant":0}]}]]],["kol-link-button",[[545,"kol-link-button",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_inline":[4],"_label":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"_variant":[1],"ariaCurrent":[32],"ariaDescriptionId":[32],"expertSlot":[32],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaCurrentValue":[{"watchAriaCurrentValue":0}],"_ariaControls":[{"watchAriaControls":0}],"_ariaDescription":[{"watchAriaDescription":0}],"_customClass":[{"watchCustomClass":0}],"_disabled":[{"watchDisabled":0}],"_download":[{"watchDownload":0}],"_hideLabel":[{"watchHideLabel":0}],"_href":[{"watchHref":0}],"_icons":[{"watchIcons":0}],"_inline":[{"watchInline":0}],"_label":[{"watchLabel":0}],"_on":[{"watchOn":0}],"_role":[{"watchRole":0}],"_shortKey":[{"watchShortKey":0}],"_target":[{"watchTarget":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_variant":[{"watchVariant":0}]}]]],["kol-meter",[[545,"kol-meter",{"_high":[2],"_label":[1],"_low":[2],"_max":[2],"_min":[2],"_optimum":[2],"_orientation":[1],"_unit":[1],"_value":[2]},null,{"_high":[{"watchHigh":0}],"_label":[{"watchLabel":0}],"_low":[{"watchLow":0}],"_max":[{"watchMax":0}],"_min":[{"watchMin":0}],"_optimum":[{"watchOptimum":0}],"_orientation":[{"watchOrientation":0}],"_unit":[{"watchUnit":0}],"_value":[{"watchValue":0}]}]]],["kol-modal",[[801,"kol-modal",{"_label":[1],"_on":[16],"_variant":[1],"_width":[1],"ariaDescriptionId":[32],"headingId":[32],"modal":[32],"openModal":[64],"showModal":[64],"show":[64],"close":[64],"closeModal":[64]},null,{"_label":[{"watchLabel":0}],"_on":[{"watchOn":0}],"_variant":[{"watchVariant":0}],"_width":[{"watchWidth":0}]}]]],["kol-nav",[[545,"kol-nav",{"_collapsible":[4],"_hasCompactButton":[4,"_has-compact-button"],"_hasIconsWhenExpanded":[4,"_has-icons-when-expanded"],"_hideLabel":[4,"_hide-label"],"_label":[1],"_links":[1],"compact":[32],"expandedChildren":[32]},null,{"_collapsible":[{"watchCollapsible":0}],"_hasCompactButton":[{"watchHasCompactButton":0}],"_hasIconsWhenExpanded":[{"watchHasIconsWhenExpanded":0}],"_hideLabel":[{"watchHideLabel":0}],"_label":[{"watchLabel":0}],"_links":[{"watchLinks":0}]}]]],["kol-pagination",[[545,"kol-pagination",{"_boundaryCount":[2,"_boundary-count"],"_customClass":[1,"_custom-class"],"_label":[1],"_hasButtons":[8,"_has-buttons"],"_page":[2],"_pageSize":[1026,"_page-size"],"_pageSizeOptions":[1,"_page-size-options"],"_on":[16],"_siblingCount":[2,"_sibling-count"],"_tooltipAlign":[1,"_tooltip-align"],"_max":[2],"renderCount":[32]},null,{"_boundaryCount":[{"watchBoundaryCount":0}],"_customClass":[{"watchCustomClass":0}],"_label":[{"watchLabel":0}],"_hasButtons":[{"watchHasButtons":0}],"_page":[{"watchPage":0}],"_pageSize":[{"watchPageSize":0}],"_pageSizeOptions":[{"watchPageSizeOptions":0}],"_on":[{"watchOn":0}],"_siblingCount":[{"watchSiblingCount":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_max":[{"watchMax":0}]}]]],["kol-popover-button",[[545,"kol-popover-button",{"_accessKey":[1,"_access-key"],"_ariaDescription":[1,"_aria-description"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_inline":[4],"_label":[1],"_name":[1],"_popoverAlign":[1,"_popover-align"],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"ariaDescriptionId":[32],"popoverOpen":[32],"hidePopover":[64],"showPopover":[64],"click":[64],"focus":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDescription":[{"watchAriaDescription":0}],"_customClass":[{"watchCustomClass":0}],"_disabled":[{"watchDisabled":0}],"_hideLabel":[{"watchHideLabel":0}],"_icons":[{"watchIcons":0}],"_inline":[{"watchInline":0}],"_label":[{"watchLabel":0}],"_name":[{"watchName":0}],"_popoverAlign":[{"watchPopoverAlign":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tabIndex":[{"watchTabIndex":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_type":[{"watchType":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-progress",[[545,"kol-progress",{"_label":[1],"_max":[2],"_unit":[1],"_value":[2],"_variant":[1],"liveValue":[32]},null,{"_label":[{"watchLabel":0}],"_max":[{"watchMax":0}],"_unit":[{"watchUnit":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-quote",[[545,"kol-quote",{"_href":[1],"_label":[1],"_quote":[1],"_variant":[1]},null,{"_href":[{"watchHref":0}],"_label":[{"watchLabel":0}],"_quote":[{"watchQuote":0}],"_variant":[{"watchVariant":0}]}]]],["kol-select",[[545,"kol-select",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_rows":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_msg":[{"watchMsg":0}],"_multiple":[{"watchMultiple":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_options":[{"watchOptions":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_rows":[{"watchRows":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tabIndex":[{"watchTabIndex":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-single-select",[[545,"kol-single-select",{"_accessKey":[1,"_access-key"],"_ariaDetails":[1,"_aria-details"],"_placeholder":[1],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1032],"_hasClearButton":[4,"_has-clear-button"],"_rows":[2],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"isOpen":[32],"blockSuggestionMouseOver":[32],"filteredOptions":[32],"inputValue":[32],"getValue":[64],"focus":[64]},[[0,"keydown","handleHostKeyDown"],[1,"mousemove","handleMouseEvent"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]],{"_accessKey":[{"watchAccessKey":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_placeholder":[{"watchPlaceholder":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_options":[{"watchOptions":0}],"_required":[{"watchRequired":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_hasClearButton":[{"watchHasClearButton":0}],"_rows":[{"watchRows":0}],"_variant":[{"watchVariant":0}]}]]],["kol-skeleton",[[513,"kol-skeleton",{"_name":[1],"count":[32],"label":[32],"show":[32],"focus":[64],"toggle":[64]},[[0,"keydown","handleKeyDown"],[8,"keydown","onKeydown"]],{"_name":[{"watchName":0}]}]]],["kol-skip-nav",[[545,"kol-skip-nav",{"_label":[1],"_links":[1],"linkItems":[32],"focus":[64]},null,{"_label":[{"watchLabel":0}],"_links":[{"watchLinks":0}]}]]],["kol-spin",[[545,"kol-spin",{"_show":[4],"_label":[1],"_variant":[1]},null,{"_show":[{"watchShow":0}],"_label":[{"watchLabel":0}],"_variant":[{"watchVariant":0}]}]]],["kol-split-button",[[545,"kol-split-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"ariaDescriptionId":[32],"dropdownOpen":[32],"getValue":[64],"focus":[64],"click":[64],"closePopup":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_ariaControls":[{"watchAriaControls":0}],"_ariaDescription":[{"watchAriaDescription":0}],"_ariaExpanded":[{"watchAriaExpanded":0}],"_ariaSelected":[{"watchAriaSelected":0}],"_customClass":[{"watchCustomClass":0}],"_disabled":[{"watchDisabled":0}],"_hideLabel":[{"watchHideLabel":0}],"_icons":[{"watchIcons":0}],"_label":[{"watchLabel":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_role":[{"watchRole":0}],"_shortKey":[{"watchShortKey":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_type":[{"watchType":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-table-stateful",[[545,"kol-table-stateful",{"_ariaLabelledby":[1,"_aria-labelledby"],"_allowMultiSort":[4,"_allow-multi-sort"],"_data":[1],"_dataFoot":[1,"_data-foot"],"_fixedCols":[16],"_headers":[1],"_label":[1],"_loading":[4],"_pagination":[8],"_paginationPosition":[1,"_pagination-position"],"_selection":[1],"_on":[16],"_hasSettingsMenu":[4,"_has-settings-menu"],"_variant":[1],"adjustedHeaderCells":[32],"pagination":[32],"renderCount":[32],"externalLabelElements":[32],"hasScrollbar":[32],"settingsChangedCounter":[32],"sortedData":[32],"stickyColsDisabled":[32],"getSelection":[64],"resetSort":[64]},[[0,"changeheadercells","onChangeHeaderCells"],[0,"keydown","onKeydown"]],{"_ariaLabelledby":[{"watchAriaLabelledby":0}],"_allowMultiSort":[{"watchAllowMultiSort":0}],"_data":[{"watchData":0}],"_dataFoot":[{"watchDataFoot":0}],"_fixedCols":[{"watchFixedCols":0}],"_headers":[{"watchHeaders":0}],"_label":[{"watchLabel":0}],"_loading":[{"watchLoading":0}],"_pagination":[{"watchPagination":0}],"_paginationPosition":[{"watchPaginationPosition":0}],"_selection":[{"watchSelection":0}],"_on":[{"watchOn":0}],"_hasSettingsMenu":[{"watchHasSettingsMenu":0}],"_variant":[{"watchVariant":0}]}]]],["kol-table-stateless",[[545,"kol-table-stateless",{"_ariaLabelledby":[1,"_aria-labelledby"],"_data":[1],"_dataFoot":[1,"_data-foot"],"_fixedCols":[16],"_headers":[1],"_headerCells":[1,"_header-cells"],"_label":[1],"_loading":[4],"_on":[16],"_selection":[1],"_hasSettingsMenu":[4,"_has-settings-menu"],"_variant":[1],"externalLabelElements":[32],"hasScrollbar":[32],"rowKeys":[32],"settingsChangedCounter":[32],"stickyColsDisabled":[32]},[[0,"changeheadercells","onChangeHeaderCells"],[0,"keydown","onKeydown"]],{"_ariaLabelledby":[{"watchAriaLabelledby":0}],"_data":[{"watchData":0}],"_dataFoot":[{"watchDataFoot":0}],"_fixedCols":[{"watchFixedCols":0}],"_headers":[{"watchHeaders":0}],"_headerCells":[{"watchHeaderCells":0}],"_label":[{"watchLabel":0}],"_loading":[{"watchLoading":0}],"_on":[{"watchOn":0}],"_selection":[{"watchSelection":0}],"_hasSettingsMenu":[{"watchHasSettingsMenu":0}],"_variant":[{"watchVariant":0}]}]]],["kol-tabs",[[801,"kol-tabs",{"_align":[1],"_behavior":[1],"_hasCreateButton":[4,"_has-create-button"],"_label":[1],"_on":[16],"_selected":[1538],"_tabs":[1],"focus":[64],"click":[64]},null,{"_align":[{"watchAlign":0}],"_behavior":[{"watchBehavior":0}],"_hasCreateButton":[{"watchHasCreateButton":0}],"_label":[{"watchLabel":0}],"_on":[{"watchOn":0}],"_selected":[{"watchSelected":0}],"_tabs":[{"watchTabs":0}]}]]],["kol-textarea",[[545,"kol-textarea",{"_accessKey":[1,"_access-key"],"_adjustHeight":[4,"_adjust-height"],"_ariaDetails":[1,"_aria-details"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_infoPopover":[16],"_label":[1],"_maxLength":[2,"_max-length"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_msg":[1],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_resize":[1],"_required":[4],"_rows":[1026],"_shortKey":[1,"_short-key"],"_spellCheck":[4,"_spell-check"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"_variant":[1],"id":[32],"infoPopoverOpen":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"click":[64]},null,{"_accessKey":[{"watchAccessKey":0}],"_adjustHeight":[{"watchAdjustHeight":0}],"_ariaDetails":[{"watchAriaDetails":0}],"_disabled":[{"watchDisabled":0}],"_hideMsg":[{"watchHideMsg":0}],"_hideLabel":[{"watchHideLabel":0}],"_hint":[{"watchHint":0}],"_icons":[{"watchIcons":0}],"_infoPopover":[{"watchInfoPopover":0}],"_label":[{"watchLabel":0}],"_maxLength":[{"watchMaxLength":0}],"_hasCounter":[{"watchHasCounter":0}],"_maxLengthBehavior":[{"watchMaxLengthBehavior":0}],"_msg":[{"watchMsg":0}],"_name":[{"watchName":0}],"_on":[{"watchOn":0}],"_placeholder":[{"watchPlaceholder":0}],"_readOnly":[{"watchReadOnly":0}],"_resize":[{"watchResize":0}],"_required":[{"watchRequired":0}],"_rows":[{"watchRows":0}],"_shortKey":[{"watchShortKey":0}],"_spellCheck":[{"watchSpellCheck":0}],"_syncValueBySelector":[{"watchSyncValueBySelector":0}],"_tooltipAlign":[{"watchTooltipAlign":0}],"_touched":[{"watchTouched":0}],"_value":[{"watchValue":0}],"_variant":[{"watchVariant":0}]}]]],["kol-toast-container",[[33,"kol-toast-container",{"state":[32],"enqueue":[64],"closeAll":[64]}]]],["kol-toolbar",[[545,"kol-toolbar",{"_label":[1],"_items":[16],"_orientation":[1],"currentIndex":[32],"itemRecords":[32],"location":[32],"focus":[64],"click":[64]},[[0,"keydown","handleKeyDown"],[2,"focusout","handleFocusout"]],{"_label":[{"watchLabel":0}],"_items":[{"watchItems":0}],"_orientation":[{"watchOrientation":0}]}]]],["kol-tooltip-wc",[[0,"kol-tooltip-wc",{"_badgeText":[1,"_badge-text"],"_align":[1],"_id":[1],"_label":[1],"hideTooltip":[64]},null,{"_align":[{"validateAlign":0}],"_id":[{"validateId":0}],"_label":[{"validateLabel":0}]}]]],["kol-tree",[[545,"kol-tree",{"_label":[1],"focus":[64]},[[0,"keydown","handleKeyDown"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]],{"_label":[{"watchLabel":0}]}]]],["kol-tree-item",[[545,"kol-tree-item",{"_active":[4],"_label":[1],"_open":[4],"_href":[1],"ariaCurrent":[32],"groupId":[32],"hasChildren":[32],"level":[32],"open":[32],"focus":[64],"expand":[64],"collapse":[64],"isOpen":[64]},null,{"_active":[{"watchActive":0}],"_label":[{"watchLabel":0}],"_open":[{"watchOpen":0}],"_href":[{"watchHref":0}]}]]],["kol-version",[[545,"kol-version",{"_label":[1]},null,{"_label":[{"watchLabel":0}]}]]],["test-component",[[0,"test-component"]]]]`),t)},Mi={name:`@public-ui/components`,version:`4.6.0-rc.0`,license:`EUPL-1.2`,homepage:`https://public-ui.github.io`,repository:{type:`git`,url:`https://github.com/public-ui/kolibri`},bugs:{url:`https://github.com/public-ui/kolibri/issues`,email:`kolibri@itzbund.de`},author:{name:`Informationstechnikzentrum Bund`,email:`kolibri@itzbund.de`},main:`dist/index.cjs.js`,module:`dist/index.js`,bin:{"kolibri-copy-assets":`./copy-assets.mjs`},exports:{".":{types:`./dist/types/index.d.ts`,import:`./dist/index.js`,require:`./dist/index.cjs.js`},"./loader":{types:`./loader/index.d.ts`,import:`./loader/index.mjs`,require:`./dist/loader/index.cjs.js`},"./custom-elements.json":`./custom-elements.json`,"./package.json":`./package.json`},customElements:`custom-elements.json`,es2015:`dist/esm/index.mjs`,es2017:`dist/esm/index.mjs`,types:`dist/types/index.d.ts`,unpkg:`dist/stencil/stencil.js`,"collection:main":`dist/collection/index.js`,collection:`dist/collection/collection-manifest.json`,sideEffects:!0,description:`Contains all web components that belong to KoliBri - The accessible HTML-Standard.`,keywords:[`accessibility`,`accessible`,`bitv`,`framework`,`library`,`designsystem`,`design`,`system`,`web components`,`webcomponents`,`aria`,`wai`,`axe`,`custom elements`,`styleguide`,`style`,`guide`,`ui`,`html`,`css`,`web`,`a11y`,`w3c`,`webstandard`,`wcag`],scripts:{"assets:kolicons":`pnpm --filter @public-ui/icons build`,build:`pnpm build:light`,"build:light":`node -e "require('node:fs').mkdirSync('doc', { recursive: true })" && cross-env NODE_ENV=production stencil build --docs --prod && node scripts/autogen.doc.js && node scripts/vaadin.js && pnpm format -w`,clear:`rimraf -g dist doc www ../adapters/angular/v20/src ../adapters/angular/v21/src ../adapters/hydrate/dist ../adapters/react/src ../adapters/react-v19/src ../adapters/solid/src ../adapters/vaadin/*.java ../adapters/vue/src`,format:`prettier --check src`,lint:`pnpm lint:eslint && pnpm lint:stylelint && pnpm lint:tsc && pnpm lint:i18n`,"lint:eslint":`eslint src`,"lint:i18n":`tsx scripts/lint-i18n.ts`,"lint:stylelint":`stylelint "src/**/*.{css,scss}"`,"lint:stylelint:components":`stylelint src/components/**/*.{css,scss}`,"lint:tsc":`tsc --noemit`,dev:`cross-env NODE_ENV=development stencil build --prod --watch`,prod:`stencil build --prod`,test:`pnpm test:unit && pnpm test:e2e`,"test:e2e":`playwright test`,"test:unit":`node -e "require('node:fs').mkdirSync('dist', { recursive: true })" && cross-env NODE_ENV=test stencil test --spec --json --outputFile dist/jest-test-results.json`,"test:update:unit":`pnpm test:unit -u`,"test:watch":`cross-env NODE_ENV=test stencil test --spec --watchAll`,"prebuild:light":`pnpm clear`,"pretest:e2e":`pnpm assets:kolicons`,unused:`knip`},dependencies:{"@floating-ui/dom":`1.8.0`,"color-convert":`3.1.3`,"color-rgba":`2.4.0`,"lodash-es":`4.18.1`,"markdown-it":`14.3.3`,"rgba-convert":`0.3.0`,"typed-bem":`1.0.2`,"wcag-contrast":`3.0.0`},devDependencies:{"@jest/globals":`29.7.0`,"@playwright/test":`1.63.0`,"@public-ui/eslint-config":`workspace:*`,"@public-ui/icons":`workspace:*`,"@public-ui/stencil-angular-output-target":`0.9.0`,"@public-ui/stencil-react-output-target":`0.6.0`,"@public-ui/stencil-solid-output-target":`0.2.0`,"@public-ui/stencil-vue-output-target":`0.9.0`,"@public-ui/stylelint-rules":`workspace:*`,"@revolist/svelte-output-target":`0.0.7`,"@stencil-community/postcss":`2.2.0`,"@stencil/core":`4.45.2`,"@stencil/playwright":`0.5.1`,"@stencil/sass":`3.3.2`,"@types/jest":`29.5.14`,"@types/lodash-es":`4.17.12`,"@types/markdown-it":`14.2.0`,"@types/node":`26.4.0`,"@types/wcag-contrast":`3.0.3`,"adopted-style-sheets":`1.1.9-rc.25`,autoprefixer:`10.6.1`,"cross-env":`10.1.0`,cssnano:`8.0.10`,eslint:`9.39.5`,"eslint-plugin-perfectionist":`5.12.1`,jest:`29.7.0`,"jest-cli":`29.7.0`,knip:`6.42.1`,postcss:`8.5.31`,"postcss-sorting":`10.0.0`,prettier:`3.9.10`,"prettier-plugin-organize-imports":`4.3.0`,rimraf:`6.1.3`,stylelint:`17.16.0`,tslib:`2.8.1`,tsx:`4.23.15`,typescript:`5.9.3`},peerDependencies:{"adopted-style-sheets":`1.1.9-rc.25`},files:[`assets`,`copy-assets.mjs`,`dist`,`doc`,`custom-elements.json`,`index.scss`,`loader`,`vscode-custom-data.json`]},Ni=C((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),G=C(((e,t)=>{t.exports=Ni()}))(),Pi=()=>(0,G.jsxs)(pe,{_label:`This is an example page`,_level:0,_type:`info`,children:[(0,G.jsx)(`p`,{children:`You followed an example link.`}),history.length>1&&(0,G.jsx)(M,{_label:`Go Back`,_on:{onClick:()=>history.back()}})]});function Fi(){let e=matchMedia(`(max-width: 1023px)`),[t,n]=(0,E.useState)(e.matches);return(0,E.useEffect)(()=>{let t=e=>{n(e.matches)};return e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}},[e]),t}function Ii(e){return typeof e==`object`&&!!e}function Li(e){if(!Ii(e))return e;let t={};for(let[n,r]of Object.entries(e))t[n]=Li(r);return t}function Ri(e){return e.trim().toLowerCase().split(/\s+/).filter(Boolean)}function zi(e,t){let n=e.map(e=>e.toLowerCase()),r=n.join(`/`);return t.every(e=>n.some(t=>t.includes(e))||r.includes(e))}function Bi(e,t,n){let r={};for(let[i,a]of Object.entries(e)){let e=[...n,i];if(zi(e,t))r[i]=Li(a);else if(Ii(a)){let n=Bi(a,t,e);Object.keys(n).length>0&&(r[i]=n)}}return r}function Vi(e,t){let n=Ri(t);return n.length===0?Li(e):Bi(e,n,[])}function Hi({children:e}){return(0,G.jsx)(`div`,{className:`mt scrollable-container`,children:e})}function Ui({label:e,to:t,children:n,open:r}){let i=Pn(t),a=Ln({path:Hn(t).pathname,end:!0});return(0,G.jsx)(Je,{_label:e,_href:i,_active:!!a,_open:r,children:n})}function Wi({routes:e}){let[t,n]=(0,E.useState)(``),r=(0,E.useMemo)(()=>Vi(e,t),[e,t]),i=(e,t)=>Object.keys(t).map(t=>{let n=e===`tree`&&t===`basic/:subPage`;return(0,G.jsx)(Ui,{label:n?`basic`:t,to:[e,n?`basic/home`:t].join(`/`)},[e,t].join(`/`))}),a=Object.entries(r).map(([e,n])=>(0,G.jsx)(Ui,{label:e,to:e,open:!!t,children:i(e,n)},e));return(0,G.jsxs)(Hi,{children:[(0,G.jsx)(R,{_label:`Suche`,_on:{onInput:e=>{let t=e.target;n(t.value)}}}),(0,G.jsx)(`nav`,{className:`main-nav`,children:(0,G.jsx)(qe,{_label:`Navigation`,class:`block`,children:a})})]})}var Gi=(e,t)=>e.find(e=>e.key===t)?.name??t,Ki=({buildDate:e,commitHash:t})=>!e&&!t?``:(0,G.jsx)(`div`,{className:`text-sm font-mono color-gray-5 m-t-2`,children:e&&t?(0,G.jsxs)(G.Fragment,{children:[`Build: `,t,(0,G.jsx)(`br`,{}),`at `,e]}):t?`Build: ${t}`:`Build date: ${e}`}),qi=[{label:`Auto (follow the OS)`,value:`auto`},{label:`Light`,value:`light`},{label:`Dark (untested)`,value:`dark`}],Ji=({version:e,themes:t,theme:n,routes:r,routeList:i,sample:a,buildDate:o,commitHash:s,colorScheme:c,supportsDark:l,onThemeChange:u,onColorSchemeChange:d})=>{let f=()=>i.indexOf(a),p=()=>a.replace(/\//g,` `),m=(e,t)=>{u(t)},h=(e,t)=>{d(t)},g=l?void 0:`The ${Gi(t,n)} theme has no dark palette yet, so the scheme stays light.`,_=()=>{let e=f(),t=e<=0?i.length-1:e-1;location.replace(`#${i[t]}`)},v=()=>{let e=f(),t=e===i.length-1?0:e+1;location.replace(`#${i[t]}`)},y=(0,E.useMemo)(()=>t.map(e=>({label:e.name,value:e.key})),[t]),b=Fi(),x=In();(0,E.useEffect)(()=>{S.current?.close()},[x]);let S=(0,E.useRef)(null);return(0,G.jsx)(`aside`,{className:`app-sidebar p-4`,children:(0,G.jsxs)(`div`,{className:`scrollable-container-wrapper`,children:[(0,G.jsxs)(`div`,{className:`flex flex-justify-between flex-items-center`,children:[(0,G.jsx)(F,{_label:`KoliBri React`}),(0,G.jsx)(Ye,{_label:e})]}),(0,G.jsx)(Ki,{buildDate:o,commitHash:s}),b?``:(0,G.jsx)(Re,{_label:`Theme`,_options:y,_on:{onChange:m},_value:n,class:`mt`}),b?``:(0,G.jsx)(Re,{_label:`Color scheme`,_disabled:!l,_hint:g,_options:qi,_on:{onChange:h},_value:c,class:`mt`}),b?``:(0,G.jsx)(F,{_label:`Components`,_level:2,className:`block mt`}),(0,G.jsxs)(`div`,{className:`flex flex-justify-between flex-items-center mt`,children:[(0,G.jsx)(M,{_icons:`kolicon-chevron-left`,_hideLabel:!0,_label:`Previous component`,_on:{onClick:_}}),b?(0,G.jsxs)(`div`,{className:`flex gap-4 flex-items-center`,children:[(0,G.jsxs)(`span`,{className:`text-base text-center`,children:[p(),` (`,f()+1,`/`,i.length,`)`]}),(0,G.jsx)(M,{_label:`Navigation`,_hideLabel:!0,_icons:{right:`kolicon-settings`},_on:{onClick:()=>S.current?.showModal()}})]}):(0,G.jsxs)(`span`,{className:`text-base text-center`,children:[p(),` (`,f()+1,`/`,i.length,`)`]}),(0,G.jsx)(M,{_icons:`kolicon-chevron-right`,_hideLabel:!0,_label:`Next component`,_on:{onClick:v}})]}),b?(0,G.jsxs)(be,{_align:`top`,_label:`Navigation`,_hasCloser:!0,ref:S,children:[(0,G.jsx)(Re,{_label:`Theme`,_options:y,_on:{onChange:m},_value:n,class:`mt`}),(0,G.jsx)(Re,{_label:`Color scheme`,_disabled:!l,_hint:g,_options:qi,_on:{onChange:h},_value:c,class:`mt`}),(0,G.jsx)(F,{_label:`Components`,_level:2,className:`block mt`}),(0,G.jsx)(Wi,{routes:r})]}):(0,G.jsx)(Wi,{routes:r})]})})},Yi=[`auto`,`light`,`dark`],Xi=`data-kol-color-scheme`,Zi=`public-ui.sample.color-scheme`;function Qi(e){return typeof e==`string`&&Yi.includes(e)}function $i(e){let{documentElement:t}=document;e===`auto`?(t.removeAttribute(Xi),t.style.removeProperty(`color-scheme`)):(t.setAttribute(Xi,e),t.style.setProperty(`color-scheme`,e))}function ea(e){try{localStorage.setItem(Zi,e)}catch{}}function ta(){try{let e=localStorage.getItem(Zi);return Qi(e)?e:`auto`}catch{return`auto`}}var na=`colorScheme`,ra=e=>{let[t]=$r(),n=t.get(na),[r,i]=(0,E.useState)(()=>Qi(n)?n:ta());(0,E.useEffect)(()=>{i(Qi(n)?n:ta())},[n]);let a=e?r:`light`;(0,E.useEffect)(()=>{$i(a)},[a]);let o=(0,E.useRef)(a);return o.current=a,[a,(0,E.useCallback)(e=>{o.current!==e&&(i(e),ea(e))},[])]},ia=()=>{ci(`#`+In().pathname)},aa=`data-visual-blocks`,oa=`public-ui.sample.visual-blocks`,sa=`data-visual-block-skipped`,ca=`visual-block-outline-style`,la=`
11
- html[${aa}] [data-visual-block] {
12
- outline: 2px solid darkblue;
13
- outline-offset: 0;
14
- }
15
- html[${aa}] [${sa}] {
16
- outline: 2px solid orangered;
17
- outline-offset: 0;
18
- }
19
- `;function ua(){if(document.getElementById(ca))return;let e=document.createElement(`style`);e.id=ca,e.textContent=la,document.head.appendChild(e)}function da(){return document.documentElement.hasAttribute(aa)}function fa(e,t=!0){if(ua(),e?document.documentElement.setAttribute(aa,``):document.documentElement.removeAttribute(aa),t)try{localStorage.setItem(oa,e?`1`:`0`)}catch{}}function pa(){let e=!da();return fa(e),e}function ma(){try{return localStorage.getItem(oa)===`1`}catch{return!1}}var ha=`visualBlocks`,ga=[`0`,`false`,`off`],_a=()=>{let[e]=$r(),t=e.get(ha);(0,E.useEffect)(()=>{fa(t===null?ma():!ga.includes(t.toLowerCase()),!1)},[t]),(0,E.useEffect)(()=>{let e=e=>{e.ctrlKey&&e.altKey&&!e.shiftKey&&e.key.toLowerCase()===`b`&&(e.preventDefault(),pa())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[])},va=(0,E.createContext)(null);function ya(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}var ba={width:`fit-content`},K=({id:e,heading:t,level:n=2,className:r,fitContent:i,narrow:a,skipSnapshot:o,children:s,...c})=>(0,G.jsxs)(`section`,{...c,children:[t?(0,G.jsx)(F,{_level:n,_label:t}):null,(0,G.jsx)(`div`,{"data-visual-block":o?void 0:e,"data-visual-block-skipped":o?e:void 0,"data-visual-narrow":a&&!o?``:void 0,className:r??`grid gap-4`,style:i?ba:void 0,children:s})]}),xa=`https://public-ui.github.io/docs/components`,Sa=`https://github.com/public-ui/kolibri/blob/develop/packages/samples/react/src/components`,q=`I am an error message!`,Ca=`I am a hint.`,J=e=>{let t=(0,E.useContext)(va),n=In(),r=n.pathname.split(`/`).slice(1),i=(0,E.useMemo)(()=>r[0]===`scenarios`?null:`${xa}/${r[0]}`,[r]),a=(0,E.useMemo)(()=>r[0]===`scenarios`?null:`${Sa}/${r[0]}/${r[1]}.tsx`,[r]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`h1`,{className:`visually-hidden`,children:n.pathname.replace(/\//g,` `)}),t?null:(0,G.jsxs)(`div`,{className:`grid sm:flex gap-4 justify-between pb-sm border-b-1 border-b-solid border-gray mb-2`,children:[(0,G.jsx)(`div`,{className:`indented-text`,children:e.children}),(0,G.jsxs)(`ul`,{className:`flex flex-wrap gap-2 list-none m-0 p-0`,children:[a&&(0,G.jsx)(`li`,{children:(0,G.jsx)(z,{_href:a,_label:`Code`,_target:`_blank`})}),i&&(0,G.jsx)(`li`,{children:(0,G.jsx)(z,{_href:i,_label:`Documentation`,_target:`_blank`})}),(0,G.jsx)(`li`,{children:(0,G.jsx)(z,{_href:`#${n.pathname}?hideMenus`,_label:`Standalone example`,_target:`_blank`})})]})]})]})},wa={abbr:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolAbbr shows an abbreviation.`})}),(0,G.jsx)(K,{id:`basic`,fitContent:!0,children:(0,G.jsxs)(`span`,{children:[`I am `,(0,G.jsx)(fe,{children:`e.g.`}),` an abbreviation.`]})})]})}},Ta={accordion:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`KolAccordion hides its content until opened. The open state can be toggled by clicking the headline or by setting the `,(0,G.jsx)(`code`,{children:`_open`}),`-prop programmatically. Additionally, the sample shows the disabled state for a closed and an open accordion.`]})}),(0,G.jsxs)(K,{id:`basic`,children:[(0,G.jsx)(j,{_label:`Heading Accordion Tab 1 (open)`,_open:!0,children:(0,G.jsx)(`p`,{children:`Contents Accordion Tab 1`})}),(0,G.jsx)(j,{_label:`Heading Accordion Tab 2`,children:(0,G.jsx)(`p`,{children:`Contents Accordion Tab 2`})}),(0,G.jsx)(j,{_label:`Heading Accordion Tab 3 (deactivated)`,_disabled:!0,children:(0,G.jsx)(`p`,{children:`Contents Accordion Tab 3`})}),(0,G.jsx)(j,{_label:`Heading Accordion Tab 4 (disabled and open)`,_disabled:!0,_open:!0,children:(0,G.jsx)(`p`,{children:`Contents Accordion Tab 4`})})]})]}),headlines:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolAccordion with the different heading levels from 1-6.`})}),(0,G.jsxs)(K,{id:`headlines`,children:[(0,G.jsx)(j,{_label:`Heading Level 1`,_level:1,children:(0,G.jsx)(`p`,{children:`Contents Accordion Tab 1`})}),(0,G.jsx)(j,{_label:`Heading Level 2`,_level:2,children:(0,G.jsx)(`p`,{children:`Contents Accordion Tab 2`})}),(0,G.jsx)(j,{_label:`Heading Level 3`,_level:3,children:(0,G.jsx)(`p`,{children:`Contents Accordion Tab 3`})}),(0,G.jsx)(j,{_label:`Heading Level 4`,_level:4,children:(0,G.jsx)(`p`,{children:`Contents Accordion Tab 4`})}),(0,G.jsx)(j,{_label:`Heading Level 5`,_level:5,children:(0,G.jsx)(`p`,{children:`Contents Accordion Tab 5`})}),(0,G.jsx)(j,{_label:`Heading Level 6`,_level:6,children:(0,G.jsx)(`p`,{children:`Contents Accordion Tab 6`})})]})]}),multiple:()=>{let[e,t]=(0,E.useState)(0);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`Multiple KolAccordions. The first is opened initially. Opening one accordion closes the others.`})}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(j,{_label:`Heading Accordion Tab 1 (initially open)`,_open:e===0,_on:{onClick:()=>t(0)},children:(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`})}),(0,G.jsx)(j,{_label:`Heading Accordion Tab 2`,_open:e===1,_on:{onClick:()=>t(1)},children:(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`})}),(0,G.jsx)(j,{_label:`Heading Accordion Tab 3`,_open:e===2,_on:{onClick:()=>t(2)},children:(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`})})]})]})}}},Ea=({level:e,type:t,variant:n})=>(0,G.jsx)(G.Fragment,{children:(0,G.jsxs)(K,{id:t,className:`flex flex-col gap-2`,children:[(0,G.jsx)(pe,{_label:`This is the headline level ${e} of the alert.`,_level:e,_type:t,_variant:n,children:`This is the text of the alert.`}),(0,G.jsx)(pe,{_type:t,_variant:n,children:`In this alert, only the text without the heading is used.`}),(0,G.jsx)(pe,{_label:`This is the headline level ${e} of the alert.`,_level:e,_type:t,_variant:n,_hasCloser:!0,children:`This is the text of the alert. With close button.`}),(0,G.jsx)(pe,{_type:t,_variant:n,_hasCloser:!0,children:`In this alert, only the text without the heading is used. With close button.`})]})}),Da=({variant:e=`msg`})=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Ea,{level:1,type:`default`,variant:e}),(0,G.jsx)(Ea,{level:2,type:`error`,variant:e}),(0,G.jsx)(Ea,{level:3,type:`info`,variant:e}),(0,G.jsx)(Ea,{level:4,type:`success`,variant:e}),(0,G.jsx)(Ea,{level:5,type:`warning`,variant:e})]}),Oa={alert:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`KolAlert shows messages of different types. This sample illustrates the variant `,(0,G.jsx)(`code`,{children:`msg`}),`, showing all possible types with and without headlines and close buttons.`]})}),(0,G.jsx)(Da,{variant:`msg`})]}),"card-msg":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`KolAlert shows messages of different types. This sample illustrates the variant `,(0,G.jsx)(`code`,{children:`card`}),`, showing all possible types with and without headlines and close buttons.`]})}),(0,G.jsx)(`section`,{className:`w-full`,children:(0,G.jsx)(Da,{variant:`card`})})]})}},ka={avatar:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolAvatar shows a user's avatar with customizable colors. It can be used with or without an image. If no image is defined, the name's initials are shown instead with a configurable background color.`})}),(0,G.jsxs)(K,{className:`flex gap-2`,id:`basic`,fitContent:!0,children:[(0,G.jsx)(me,{_src:`assets/img_avatar.jpg`,_label:`Elke Mustermann`}),(0,G.jsx)(me,{_label:`Elke Mustermann `}),(0,G.jsx)(me,{_label:`Marianne`}),(0,G.jsx)(me,{_color:`#0000FF`,_label:`Christian`})]})]}),size:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`KolAvatar is `,(0,G.jsx)(`code`,{children:`6.25rem`}),` (100px at the default 16px root font-size) wide/tall by default and simply fills its host element, so it can be resized proportionally with plain CSS `,(0,G.jsx)(`code`,{children:`width`}),` and/or `,(0,G.jsx)(`code`,{children:`height`}),` (set through the `,(0,G.jsx)(`code`,{children:`style`}),` prop). Setting only`,` `,(0,G.jsx)(`code`,{children:`width`}),` is the reliable way to size it below the default. If `,(0,G.jsx)(`code`,{children:`width`}),` and `,(0,G.jsx)(`code`,{children:`height`}),` are set to different values, the avatar stays square by using the larger of the two - it is centered on its host and may visually extend beyond it on the smaller axis. The initials' font size always scales with the resulting size automatically.`]})}),(0,G.jsxs)(K,{className:`flex flex-wrap items-center gap-4`,id:`size`,fitContent:!0,children:[(0,G.jsx)(me,{style:{width:`30px`},_label:`Elke Mustermann`}),(0,G.jsx)(me,{style:{width:`30px`,height:`45px`},_label:`Marianne`}),(0,G.jsx)(me,{style:{width:`60px`,height:`30px`},_color:`#0000FF`,_label:`Christian`}),(0,G.jsx)(me,{_src:`assets/img_avatar.jpg`,_label:`Elke Mustermann`}),(0,G.jsx)(me,{style:{width:`150px`},_src:`assets/img_avatar.jpg`,_label:`Elke Mustermann`})]})]})}},Aa={badge:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`KolBadge shows badges with a label, background color and optional icon. The label supports markdown syntax and the badge can host an optional`,` `,(0,G.jsx)(`code`,{children:`smartButton`}),` – here a "remove" button with X-icon and a click event listener.`]})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsxs)(K,{id:`basic-vertical`,heading:`Basic Badges vertical`,className:`flex flex-col gap-2`,fitContent:!0,children:[(0,G.jsx)(he,{_label:`black (default)`}),(0,G.jsx)(he,{_color:`#06539e`,_label:`blue`}),(0,G.jsx)(he,{_color:`#ae0000`,_label:`red with icon`,_icons:`kolicon-house`}),(0,G.jsx)(he,{_color:`#8b008b`,_label:`purple with icon`,_icons:`kolicon-kolibri`})]}),(0,G.jsxs)(K,{id:`basic-horizontal`,heading:`Basic Badges horizontal`,className:`flex flex-wrap gap-2`,fitContent:!0,children:[(0,G.jsx)(he,{_label:`black`}),(0,G.jsx)(he,{_color:`#06539e`,_label:`blue`}),(0,G.jsx)(he,{_color:`#ae0000`,_label:`red with icon`,_icons:`kolicon-kolibri`})]}),(0,G.jsxs)(K,{id:`smart-button`,heading:`Badges with Smart Button`,className:`flex flex-col gap-2`,fitContent:!0,children:[(0,G.jsx)(he,{_color:`#06539e`,_label:`blue`,_smartButton:{_ariaDescription:`blue`,_icons:`kolicon-cross`,_label:`Remove`,_on:{onClick:()=>alert(`clicked`)}}}),(0,G.jsx)(he,{_color:`#8b008b`,_icons:`kolicon-kolibri`,_label:`purple with icon`,_smartButton:{_ariaDescription:`purple with icon`,_icons:`kolicon-cross`,_label:`Remove`,_on:{onClick:()=>alert(`clicked`)}}})]}),(0,G.jsxs)(K,{id:`formatted-label`,heading:`Formatted Label`,className:`flex flex-col gap-2`,fitContent:!0,children:[(0,G.jsx)(he,{_color:`#7db4ebff`,_label:`**Bold** and _italic_ Markdown label`}),(0,G.jsx)(he,{_color:`#8feb7dff`,_label:`This is ~~strikethrough~~ text`}),(0,G.jsx)(he,{_color:`#e6ee8eff`,_label:"Source code like `y = mx + n` is possible"})]})]})]})}},ja=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolBreadcrumb shows a breadcrumb navigation. The sample illustrates a variation of link, text and icon elements.`})}),(0,G.jsxs)(K,{id:`basic`,narrow:!0,children:[(0,G.jsx)(ge,{_label:`Breadcrumb aus Text-Links`,_links:[{_label:`Homepage`,_href:`#/back-page`},{_label:`Bottom of the homepage`,_href:`#/back-page`},{_label:`Underside of the underside`,_href:`#/back-page`}]}),(0,G.jsx)(ge,{_label:`Breadcrumb from icons or text links`,_links:[{_label:`Homepage`,_icons:`kolicon-house`,_hideLabel:!0,_href:`#/back-page`},{_label:`Subpage of the start page with very long link test`,_href:`#/back-page`},{_label:`Underside of the underside`,_href:`#/back-page`}]}),(0,G.jsx)(ge,{_label:`Breadcrumb from icons and text links`,_links:[{_label:`Homepage`,_icons:`kolicon-house`,_href:`#/back-page`},{_label:`Subpage of the main page and I_am_a_really_long_compound_word_trying_to_break_the_layout`,_href:`#/back-page`},{_label:`Underside of the underside`,_href:`#/back-page`}]}),(0,G.jsx)(ge,{_label:`Minimal Breadcrumb`,_links:[{_label:`Homepage`,_href:`#/back-page`}]})]})]}),Ma=JSON.stringify([{_label:`Homepage`,_icons:`kolicon-house`,_hideLabel:!0,_href:`#/back-page`},{_label:`Services`,_href:`#/back-page`},{_label:`Apply for a permit`,_href:`#/back-page`}]),Na={breadcrumb:{basic:ja,"json-links":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`The `,(0,G.jsx)(`code`,{children:`_links`}),` of KolBreadcrumb can also be passed as JSON string, e.g. through an HTML attribute; the result is the same as with an array. Every entry needs an `,(0,G.jsx)(`code`,{children:`_href`}),`, and an entry with `,(0,G.jsx)(`code`,{children:`_hideLabel`}),` shows only its icon.`]})}),(0,G.jsx)(K,{id:`json-links`,narrow:!0,children:(0,G.jsx)(ge,{_label:`Breadcrumb from a JSON string`,_links:Ma})})]})}},Pa=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolButtonLink with aria-description`})}),(0,G.jsxs)(K,{id:`aria-description`,className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(N,{_label:`Button Text without area description`}),(0,G.jsx)(N,{_label:`Button Text`,_ariaDescription:`Button Area Description`})]})]});function Fa(){let e=e=>{alert(e||`The Element was clicked`)};return{dummyClickEventHandler:()=>{e()},buttonWithTextClickEventHandler:t=>{let n=t.currentTarget.textContent;e(n)}}}var Ia={"button-link":{basic:()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`KolButtonLink shows an element, that behaves like a button but looks like a link. The sample illustrates KolButtonLink with different display-properties such as `,(0,G.jsx)(`code`,{children:`block`}),`, `,(0,G.jsx)(`code`,{children:`inline-block`}),` and `,(0,G.jsx)(`code`,{children:`inline`}),`. It also demonstrates the disabled-state.`]})}),(0,G.jsx)(F,{_level:2,_label:`Button-Link with _inline`}),(0,G.jsxs)(`p`,{children:[`In this paragraph, a link is inserted that contains no additional attributes. `,(0,G.jsx)(N,{_label:`Simple Link`}),` It is rendered by default as an`,` `,(0,G.jsx)(`strong`,{children:`inline element`}),`.`]}),(0,G.jsxs)(`p`,{children:[`In this paragraph, a link is inserted that is rendered as an inline-block element.`,(0,G.jsx)(N,{className:`m-4`,style:{display:`inline-block`,border:`1px dotted`},_label:`Simple Link`}),`. This allows you to assign width, height, and other properties to it using CSS styles.`,(0,G.jsx)(`br`,{}),(0,G.jsx)(`br`,{}),`After that, there is a link that is rendered as a block element.`,(0,G.jsx)(N,{style:{display:`block`},_label:`Simple Link`}),`Therefore, I go over the entire width of the parent element to create a line break.`]}),(0,G.jsx)(F,{_level:2,_label:`Button-Link with _inline={false}`}),(0,G.jsx)(`p`,{children:`Use the boolean _inline property to render the link inline (default) or standalone.`}),(0,G.jsx)(K,{id:`basic`,className:`flex flex-col gap-2`,fitContent:!0,children:(0,G.jsx)(N,{_label:`Standalone ButtonLink`,_inline:!1,_on:t})}),(0,G.jsx)(K,{id:`disabled`,className:`flex flex-col gap-2`,fitContent:!0,children:(0,G.jsx)(N,{_label:`Disabled ButtonLink`,_disabled:!0,_inline:!1})}),(0,G.jsx)(K,{id:`access-key`,className:`flex flex-col gap-2`,fitContent:!0,children:(0,G.jsx)(N,{_label:`With access key`,_accessKey:`c`,_inline:!1,_on:t})}),(0,G.jsx)(K,{id:`short-key`,className:`flex flex-col gap-2`,fitContent:!0,children:(0,G.jsx)(N,{_label:`With short key`,_shortKey:`s`,_inline:!1,_on:t})}),(0,G.jsx)(K,{id:`variant`,className:`flex flex-col gap-2`,fitContent:!0,children:(0,G.jsx)(N,{_label:`Special Variant ButtonLink`,_variant:`theme-link`})})]})},icons:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolButtonLink with icons in different locations.`})}),(0,G.jsx)(K,{id:`left`,fitContent:!0,children:(0,G.jsx)(N,{_icons:`kolicon-house`,_label:`I am a link with an icon on the left`})}),(0,G.jsx)(K,{id:`right`,fitContent:!0,children:(0,G.jsx)(N,{_icons:{right:`kolicon-house`},_label:`I am a link with an icon on the right`})}),(0,G.jsx)(K,{id:`top`,fitContent:!0,children:(0,G.jsx)(N,{_icons:{top:`kolicon-house`},_label:`I am a link with an icon at the top`})}),(0,G.jsx)(K,{id:`bottom`,fitContent:!0,children:(0,G.jsx)(N,{_icons:{bottom:`kolicon-house`},_label:`I am a link with icon below`})}),(0,G.jsx)(K,{id:`all`,fitContent:!0,children:(0,G.jsx)(N,{_icons:{top:`kolicon-house`,right:`kolicon-house`,bottom:`kolicon-house`,left:`kolicon-house`},_label:`I am a link with all icons`})}),(0,G.jsx)(K,{id:`hide-label`,fitContent:!0,children:(0,G.jsx)(N,{_icons:`kolicon-house`,_hideLabel:!0,_label:`I am a link with icon only`})})]}),"aria-description":Pa}},La=()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This story demonstrates buttons with`,` `,(0,G.jsx)(z,{_label:`access keys`,_href:`https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey`,_target:`blank`}),`. Access keys allow users to trigger buttons using keyboard shortcuts.`]})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsx)(K,{id:`buttons-access-keys`,heading:`Buttons with Access Keys`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_label:`With S access key`,_accessKey:`S`,_on:t}),(0,G.jsx)(M,{_label:`Very small b`,_accessKey:`b`,_on:t}),(0,G.jsx)(M,{_label:`Access key does not appear in label`,_accessKey:`x`,_on:t})]})}),(0,G.jsx)(K,{id:`access-key-hidden-label`,heading:`Access Key with Hidden Label`,fitContent:!0,children:(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,G.jsx)(M,{_label:`access key without label`,_hideLabel:!0,_accessKey:`a`,_icons:`kolicon-cogwheel`,_on:t})})}),(0,G.jsx)(K,{id:`access-key-inline-icons`,heading:`Access Key with Inline Icons`,fitContent:!0,children:(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,G.jsx)(M,{_label:`with inline icons`,_icons:{left:`kolicon-cogwheel`,right:`kolicon-cogwheel`},_accessKey:`n`,_on:t})})})]})]})},Ra=()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates buttons with ARIA descriptions. The aria-description attribute provides additional descriptive text for screen readers, helping users understand the button's purpose or action in more detail.`})}),(0,G.jsx)(`div`,{className:`grid gap-8`,children:(0,G.jsx)(K,{id:`buttons-aria-description`,heading:`Buttons with and without ARIA Description`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_label:`Button without ARIA description`,_on:t}),(0,G.jsx)(M,{_label:`Button with ARIA description`,_ariaDescription:`This button performs an important action`,_on:t})]})})})]})},za=()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates button baseline alignment. It shows multiple buttons with and without icons that are vertically aligned, useful for testing layout consistency.`})}),(0,G.jsx)(`div`,{className:`grid gap-8`,children:(0,G.jsx)(K,{id:`vertically-aligned-buttons`,heading:`Vertically Aligned Buttons`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,G.jsx)(M,{_label:`Label-Text`,_on:t}),(0,G.jsx)(M,{_icons:`kolicon-cogwheel`,_label:`Label-Text with Icon`,_on:t})]})})})]})},Ba={name:`Unstyled (Uncolored)`,key:`unstyled`},Va=[{name:`Default`,key:`default`},{name:`BWSt (v4)`,key:`bwst`},{name:`European Commission (v4)`,key:`ecl-ec`},{name:`European Union (in progress)`,key:`ecl-eu`},{name:`KERN-UX Standard (v2)`,key:`kern-v2`},{name:`Zoll Design System (v11)`,key:`desy-v11`}],Ha=[`default`],Ua=()=>[Ba,...Va],Wa=e=>`theme-variant-data:${e}`,Ga=e=>`assets/variants/inject-variants_${e}.json`,Ka=(e=Ua())=>new Map(e.map(({key:e})=>[Wa(e),Ga(e)])),qa=new Map,Ja=new Map,Ya=new Set,Xa=async(e,t)=>{try{let n=await fetch(t);if(n.status===404)return;if(!n.ok){console.warn(`Error fetching sample app data: HTTP `+n.status);return}let r=await n.json();r&&typeof r==`object`&&!Array.isArray(r)&&qa.set(e,r)}catch(e){console.warn(`Sample app data file could not be loaded or parsed`,e)}},Za=(e,t)=>{let n=Ja.get(e);return n||(n=Xa(e,t).then(()=>{Ya.add(e)}),Ja.set(e,n)),n},Qa={getValue:e=>qa.get(e),initialize:async e=>{await Promise.all(Array.from(Ka(e),([e,t])=>Za(e,t)))},isInitialized:e=>Array.from(Ka(e).keys()).every(e=>Ya.has(e))};function $a(e,t){let n=Qa.getValue(Wa(e))?.[t];return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]}var eo=`public-ui.v${Mi.version}`,to=class{store=new Map;setItem(e,t){this.store.set(e,t)}getItem(e){return this.store.get(e)||null}},no={darkMode:!1,theme:`default`,registeredThemes:[]},ro;function Y(e){ro=e;let t=ro.getItem(eo);try{let e=JSON.parse(t);typeof e==`object`&&e&&(no.darkMode=e.darkMode===!0,typeof e.theme==`string`&&e.theme.length>0&&(no.theme=e.theme))}catch{}}Y(new to);var io=()=>{ro.setItem(eo,JSON.stringify(no))},ao=e=>{no.registeredThemes=e,oo(no.theme)||(no.theme=no.nextTheme??e[1]?.key??Ba.key,delete no.nextTheme),io()},oo=e=>no.registeredThemes.findIndex(t=>t.key===e)!==-1||e===Ba.key,so=e=>{if(oo(e))no.theme=e;else if(e)no.nextTheme=e;else throw Error(`The theme identifier "${e}" is not valid or an available option.`);io()},co=()=>no.theme??Ba.key,lo=e=>{if(no.registeredThemes.length===0)return e;if(oo(e))return no.registeredThemes.find(t=>t.key===e)?.name;throw Error(`The theme identifier "${e}" is not valid or an available option.`)},uo=e=>{no.customThemes=e},fo=()=>{let{dummyClickEventHandler:e}=Fa(),[t]=$r(),n=t.get(`theme`)??co(),r=(0,E.useMemo)(()=>n?$a(n,`buttonVariants`):[],[n]),i={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates the most important features of the KolButton component. It showcases the different button variants, icons, disabled state, and hidden labels. All available button variants for this theme are shown. You can import ButtonVariantsEnum from your theme to always use the right variants.`})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsx)(K,{id:`variants`,heading:`Button Variants`,fitContent:!0,children:(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4 items-center`,children:!Array.isArray(r)||r.length===0?(0,G.jsx)(`p`,{children:`This theme has no variants for this component.`}):r.map(e=>(0,G.jsx)(M,{_icons:`kolicon-house`,_label:`${e}`,_variant:e,_on:i},e))})}),(0,G.jsx)(K,{id:`disabled`,heading:`Disabled State`,fitContent:!0,children:(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4 items-center`,children:!Array.isArray(r)||r.length===0?(0,G.jsx)(`p`,{children:`This theme has no variants for this component.`}):r.map(e=>(0,G.jsx)(M,{_icons:`kolicon-house`,_label:`${e}`,_variant:e,_on:i,_disabled:!0},e))})}),(0,G.jsx)(K,{id:`hide-label`,heading:`Hidden Label (Icon Only)`,fitContent:!0,children:(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4 items-center`,children:!Array.isArray(r)||r.length===0?(0,G.jsx)(`p`,{children:`This theme has no variants for this component.`}):r.map(e=>(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-settings`,_label:`${e}`,_variant:e,_on:i},e))})}),(0,G.jsx)(K,{id:`icon-positions`,heading:`Icon Positions`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_icons:{left:`kolicon-chevron-left`},_label:`Icon Left`,_on:i}),(0,G.jsx)(M,{_icons:{right:`kolicon-chevron-right`},_label:`Icon Right`,_on:i}),(0,G.jsx)(M,{_icons:{left:`kolicon-chevron-left`,right:`kolicon-chevron-right`},_label:`Icons Both Sides`,_on:i})]})})]})]})},po=()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`All this buttons are in a grid with fixed height (60px) and width (25% of screen) and should accept this dimensions.`})}),(0,G.jsxs)(`div`,{className:`grid gap-4 fixed-height-grid`,children:[(0,G.jsx)(M,{_variant:`primary`,_icons:`kolicon-house`,_label:`Button`,_on:t}),(0,G.jsx)(M,{_variant:`primary`,_hideLabel:!0,_icons:`kolicon-house`,_label:`Button`,_on:t}),(0,G.jsx)(B,{_variant:`primary`,_href:`#`,_icons:`kolicon-house`,_label:`Link-Button`,_on:t}),(0,G.jsx)(B,{_variant:`primary`,_hideLabel:!0,_href:`#`,_icons:`kolicon-house`,_label:`Link-Button`,_on:t})]})]})},mo=()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates the disabled state of buttons. Disabled buttons are not clickable and appear visually dimmed.`})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsx)(K,{id:`disabled`,heading:`Disabled Buttons`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_disabled:!0,_icons:`kolicon-house`,_label:`Primary`,_variant:`primary`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_icons:`kolicon-kolibri`,_label:`Secondary`,_variant:`secondary`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_icons:`kolicon-cogwheel`,_label:`Tertiary`,_variant:`tertiary`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_icons:`kolicon-cogwheel`,_label:`Normal`,_variant:`normal`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_icons:`kolicon-alert-warning`,_label:`Danger`,_variant:`danger`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_icons:`kolicon-eye-closed`,_label:`Ghost`,_variant:`ghost`,_on:t})]})}),(0,G.jsx)(K,{id:`comparison`,heading:`Comparison: Enabled vs Disabled`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_icons:`kolicon-house`,_label:`Enabled`,_variant:`primary`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_icons:`kolicon-house`,_label:`Disabled`,_variant:`primary`,_on:t})]})})]})]})},ho=`kol-tooltip-wc`,go=()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates the expert slot feature of KolButton. The expert slot allows you to insert custom content into the button, providing advanced customization options beyond the standard label and icon properties.`})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsx)(K,{id:`buttons-expert-slot-content`,heading:`Buttons with Expert Slot Content`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_icons:`kolicon-house`,_label:``,_variant:`primary`,_on:t,children:(0,G.jsx)(`span`,{slot:`expert`,children:`I am more than just a button`})}),(0,G.jsx)(M,{_icons:`kolicon-kolibri`,_label:``,_variant:`secondary`,_on:t,children:(0,G.jsx)(`span`,{slot:`expert`,children:`Custom content here`})}),(0,G.jsx)(M,{_icons:`kolicon-alert-warning`,_label:``,_variant:`danger`,_on:t,children:(0,G.jsx)(`span`,{slot:`expert`,children:`Delete with custom text`})}),(0,G.jsx)(M,{_label:``,_variant:`danger`,_on:t,children:(0,G.jsx)(Se,{_icons:`kolicon-alert-warning`,_label:`Delete with custom text`,slot:`expert`})}),(0,G.jsx)(ho,{_label:`Delete with custom text`})]})}),(0,G.jsx)(K,{id:`disabled-buttons-expert-slot`,heading:`Disabled Buttons with Expert Slot`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_disabled:!0,_icons:`kolicon-house`,_label:``,_variant:`primary`,_on:t,children:(0,G.jsx)(`span`,{slot:`expert`,children:`Disabled expert slot`})}),(0,G.jsx)(M,{_disabled:!0,_icons:`kolicon-eye-closed`,_label:``,_variant:`ghost`,_on:t,children:(0,G.jsx)(`span`,{slot:`expert`,children:`Another disabled one`})})]})})]})]})},_o=[{label:`Auto (instant)`,value:`auto`},{label:`Smooth (animated)`,value:`smooth`}],vo=[{label:`Start`,value:`start`},{label:`Center`,value:`center`},{label:`End`,value:`end`},{label:`Nearest`,value:`nearest`}],yo=[{label:`Behavior`,key:`behavior`,options:_o},{label:`Block (vertical alignment)`,key:`block`,options:vo},{label:`Inline (horizontal alignment)`,key:`inline`,options:vo}],bo={padding:`1rem`,marginTop:`1rem`,border:`1px solid #ccc`},xo=()=>{let e=(0,E.useRef)(null),t=(0,E.useRef)(null),[n,r]=(0,E.useState)({behavior:`auto`,block:`start`,inline:`start`}),[i,a]=(0,E.useState)(!1),o=(0,E.useCallback)(async()=>{e.current&&(a(!1),await e.current.focus({...n,afterFocus:()=>{a(!0)}}))},[n]),s=(0,E.useCallback)(async()=>{t.current&&(a(!1),await t.current.focus({...n,afterFocus:()=>{a(!0)}}))},[n]),c=(0,E.useCallback)((e,t)=>{r(n=>({...n,[e]:t}))},[]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates KolFocusOptions for manual focus control with scroll-into-view behavior. It showcases vertical scrolling (element positioned below viewport) and horizontal scrolling (element positioned outside viewport). The focus options control how the element is scrolled into view, with the afterFocus callback triggering after scrolling completes.`})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsxs)(K,{id:`scroll-behavior-options`,heading:`Scroll Behavior Options`,children:[(0,G.jsxs)(`p`,{children:[`These options control how elements are scrolled into view. `,(0,G.jsx)(`code`,{children:`preventScroll`}),` and `,(0,G.jsx)(`code`,{children:`focusVisible`}),` are always enabled for optimal focus management. Customize the scroll behavior and alignment below:`]}),(0,G.jsx)(`div`,{className:`grid gap-4`,children:yo.map((e,r)=>(0,G.jsx)(`div`,{className:`grid gap-2`,children:(0,G.jsx)(Re,{ref:r===0?t:null,_label:e.label,_options:e.options,_value:n[e.key],_on:{onChange:(t,n)=>{c(e.key,n)}}})},e.key))})]}),(0,G.jsxs)(K,{id:`scroll-example`,heading:`Scroll Example`,children:[(0,G.jsx)(`p`,{children:`The target button is positioned bottom-right. Scroll down and right to find it, then click "Focus Target" to apply scroll behavior.`}),(0,G.jsx)(`div`,{className:`flex gap-4`,children:(0,G.jsx)(M,{_label:`Focus Target`,_variant:`primary`,onClick:o})}),(0,G.jsxs)(`p`,{children:[`Callback invoked: `,(0,G.jsx)(`strong`,{children:i?`Yes ✓`:`No`})]}),(0,G.jsx)(`div`,{style:{...bo,overflow:`auto`,width:`500px`,height:`600px`},children:(0,G.jsxs)(`div`,{style:{width:`2400px`,height:`2400px`,padding:`1rem`,position:`relative`},children:[(0,G.jsx)(`div`,{style:{padding:`1rem`,backgroundColor:`#f9f9f9`,borderRadius:`4px`},children:`Content area (scroll to find button)`}),(0,G.jsx)(M,{ref:e,_label:`Back to Top`,_variant:`primary`,onClick:s,style:{position:`absolute`,bottom:`1rem`,right:`1rem`}})]})})]}),(0,G.jsx)(`hr`,{}),(0,G.jsx)(K,{id:`about-kol-focus-options`,heading:`About KolFocusOptions`,children:(0,G.jsxs)(`div`,{className:`indented-text`,children:[(0,G.jsx)(`p`,{children:`KolFocusOptions enables advanced focus control with scroll-into-view behavior:`}),(0,G.jsxs)(`ul`,{className:`list-disc pl-5`,children:[(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`preventScroll:`}),` Always enabled — prevents browser auto-scroll and uses custom scroll options instead`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`focusVisible:`}),` Always enabled — ensures the focus ring is visible after focus`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`behavior:`}),` "auto" (instant) or "smooth" (animated) scroll`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`block:`}),` Vertical alignment (start, center, end, nearest)`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`inline:`}),` Horizontal alignment (start, center, end, nearest)`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`afterFocus:`}),` Optional callback invoked after focus and scroll complete`]})]})]})})]})]})},So=()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates buttons with hidden labels. The label is still accessible to screen readers but visually hidden, showing only the icon. This is useful for icon-only buttons.`})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsx)(K,{id:`hide-label`,heading:`Buttons with Hidden Labels`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Home`,_variant:`primary`,_on:t}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-kolibri`,_label:`Like`,_variant:`secondary`,_on:t}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-cogwheel`,_label:`Subscribe`,_variant:`tertiary`,_on:t}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-cogwheel`,_label:`Buy me a coffee`,_variant:`normal`,_on:t}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-alert-warning`,_label:`Delete`,_variant:`danger`,_on:t}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-eye-closed`,_label:`Settings`,_variant:`ghost`,_on:t})]})}),(0,G.jsx)(K,{id:`comparison`,heading:`Comparison: With and Without Hidden Label`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_icons:`kolicon-house`,_label:`Home`,_variant:`primary`,_on:t}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Home`,_variant:`primary`,_on:t})]})}),(0,G.jsx)(K,{id:`disabled`,heading:`Disabled with Hidden Label`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_disabled:!0,_hideLabel:!0,_icons:`kolicon-house`,_label:`Home`,_variant:`primary`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_hideLabel:!0,_icons:`kolicon-kolibri`,_label:`Like`,_variant:`secondary`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_hideLabel:!0,_icons:`kolicon-cogwheel`,_label:`Subscribe`,_variant:`tertiary`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_hideLabel:!0,_icons:`kolicon-cogwheel`,_label:`Buy me a coffee`,_variant:`normal`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_hideLabel:!0,_icons:`kolicon-alert-warning`,_label:`Delete`,_variant:`danger`,_on:t})]})})]})]})},Co=()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story showcases buttons with icons in various positions and configurations. Icons can be placed on the left, right, top, bottom, or in multiple positions at once.`})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsx)(K,{id:`basic-positions`,heading:`Basic Icon Positions`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_icons:{left:`kolicon-chevron-left`},_label:`Icon Left`,_on:t}),(0,G.jsx)(M,{_icons:{right:`kolicon-chevron-right`},_label:`Icon Right`,_on:t}),(0,G.jsx)(M,{_icons:{top:`kolicon-chevron-up`},_label:`Icon Top`,_on:t}),(0,G.jsx)(M,{_icons:{bottom:`kolicon-chevron-down`},_label:`Icon Bottom`,_on:t})]})}),(0,G.jsx)(K,{id:`multiple-positions`,heading:`Multiple Icon Positions`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_icons:{left:`kolicon-chevron-left`,right:`kolicon-chevron-right`},_label:`Left & Right`,_on:t}),(0,G.jsx)(M,{_icons:{top:`kolicon-chevron-up`,bottom:`kolicon-chevron-down`},_label:`Top & Bottom`,_on:t})]})}),(0,G.jsx)(K,{id:`all-positions`,heading:`All Icon Positions`,fitContent:!0,children:(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,G.jsx)(M,{_icons:{top:`kolicon-chevron-up`,bottom:`kolicon-chevron-down`,left:`kolicon-chevron-left`,right:`kolicon-chevron-right`},_label:`All Directions`,_on:t})})}),(0,G.jsx)(K,{id:`icon-string`,heading:`Simple Icon String`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_icons:`kolicon-house`,_label:`Home Icon`,_on:t}),(0,G.jsx)(M,{_icons:`kolicon-kolibri`,_label:`Heart Icon`,_on:t}),(0,G.jsx)(M,{_icons:`kolicon-alert-warning`,_label:`Trash Icon`,_on:t})]})}),(0,G.jsx)(K,{id:`large-icon`,heading:`Large Icon on Top`,fitContent:!0,children:(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,G.jsx)(M,{_icons:{top:{style:{"font-size":`400%`},icon:`kolicon-house`}},_label:`Home`,_on:t})})})]})]})},wo=[`Quarterly report`,`Meeting notes`,`Travel expenses`],To=()=>{let[e,t]=(0,E.useState)([`Meeting notes`]),n=e=>t(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This story shows a button toggling between the two pin icons, `,(0,G.jsx)(`code`,{children:`kolicon-pin-pinned`}),` and `,(0,G.jsx)(`code`,{children:`kolicon-pin-unpinned`}),`. Icon and label change together, so the current state is conveyed visually as well as to screen readers.`]})}),(0,G.jsx)(K,{id:`pin-toggle`,heading:`Pin and unpin items`,fitContent:!0,children:(0,G.jsx)(`ul`,{className:`grid gap-2 list-none m-0 p-0`,children:wo.map(t=>{let r=e.includes(t);return(0,G.jsxs)(`li`,{className:`flex gap-2 items-center`,children:[(0,G.jsx)(M,{_hideLabel:!0,_icons:r?`kolicon-pin-pinned`:`kolicon-pin-unpinned`,_label:r?`Unpin ${t}`:`Pin ${t}`,_on:{onClick:()=>n(t)}}),(0,G.jsx)(`span`,{children:t})]},t)})})})]})},Eo=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates how the tooltip adapts its width when containing long text inside a row-reverse flex container. The effect becomes visible when inspecting the layout with DevTools and reducing the available width (e.g., by narrowing the screen).`})}),(0,G.jsx)(`div`,{className:`grid gap-8`,children:(0,G.jsx)(K,{id:`button-row-reverse-container`,heading:`Button in Row-Reverse Container`,children:(0,G.jsx)(`div`,{className:`flex flex-row-reverse`,children:(0,G.jsx)(M,{_icons:`kolicon-house`,_hideLabel:!0,_label:`This is a very, very long tooltip text that exceeds the width.`,_variant:`primary`})})})})]}),Do=()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e},n=E.useRef(e);return E.useEffect(()=>{n.current=e},[e]),E.useEffect(()=>{let e=e=>{e.altKey&&e.code===`KeyM`&&(e.preventDefault(),n.current())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates buttons with short keys. The short key is displayed as a visual indicator within the button label to communicate a recommended keyboard shortcut to the user.`})}),(0,G.jsxs)(pe,{_label:`Short keys are display-only`,_type:`info`,_variant:`card`,children:[(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`code`,{children:`_shortKey`}),` is `,(0,G.jsx)(`strong`,{children:`purely visual and assistive`}),`: it renders the badge and announces the shortcut via`,` `,(0,G.jsx)(`code`,{children:`aria-keyshortcuts`}),`, but it does `,(0,G.jsx)(`strong`,{children:`not`}),` bind a keyboard handler. Pressing the displayed combination on its own does nothing – you have to register the listener yourself (see the interactive example below).`]}),(0,G.jsxs)(`p`,{children:[`If you need a native, browser-handled shortcut instead, use`,` `,(0,G.jsx)(z,{_label:`_accessKey`,_href:`https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey`,_target:`_blank`}),`. Note that native access keys are triggered in a browser-specific way (e.g. `,(0,G.jsx)(`kbd`,{children:`Alt`}),` + `,(0,G.jsx)(`kbd`,{children:`Shift`}),` + key in Chrome on Windows).`]})]}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsx)(K,{id:`short-keys`,heading:`Buttons with Short Keys`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_label:`With S short key`,_shortKey:`S`,_on:t}),(0,G.jsx)(M,{_label:`Very small b`,_shortKey:`b`,_on:t}),(0,G.jsx)(M,{_label:`Short key does not appear in label`,_shortKey:`x`,_on:t})]})}),(0,G.jsx)(K,{id:`hide-label`,heading:`Short Key with Hidden Label`,fitContent:!0,children:(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,G.jsx)(M,{_label:`short key without label`,_hideLabel:!0,_shortKey:`k`,_icons:`kolicon-cogwheel`,_on:t})})}),(0,G.jsx)(K,{id:`inline-icons`,heading:`Short Key with Inline Icons`,fitContent:!0,children:(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,G.jsx)(M,{_label:`with inline icons`,_icons:{left:`kolicon-cogwheel`,right:`kolicon-cogwheel`},_shortKey:`n`,_on:t})})}),(0,G.jsxs)(`p`,{children:[`This button wires the announced short key up manually: a `,(0,G.jsx)(`code`,{children:`keydown`}),` listener triggers the same action as a click. Press `,(0,G.jsx)(`kbd`,{children:`Alt`}),` +`,` `,(0,G.jsx)(`kbd`,{children:`M`}),` (or click the button) to open the toast.`]}),(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:(0,G.jsx)(M,{_label:`With working M short key`,_shortKey:`m`,_on:t})})]})]})},Oo=()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates icon-only buttons with an animated spinning loader icon. The animation is applied using CSS parts to target the icon element directly.`})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsx)(K,{id:`animated-spinner-icon-css-part`,heading:`Animated Spinner Icon via CSS Part`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{className:`spinner-button`,_hideLabel:!0,_icons:{left:`kolicon-cogwheel`},_label:`Loading`,_variant:`primary`,_on:t}),(0,G.jsx)(M,{className:`spinner-button spinner-slow`,_hideLabel:!0,_icons:{left:`kolicon-cogwheel`},_label:`Syncing`,_variant:`secondary`,_on:t}),(0,G.jsx)(M,{className:`spinner-button spinner-slower`,_hideLabel:!0,_icons:{left:`kolicon-cogwheel`},_label:`Processing`,_variant:`tertiary`,_on:t})]})}),(0,G.jsx)(K,{id:`spinner-label`,heading:`Spinner with Label`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{className:`spinner-button`,_icons:{left:`kolicon-cogwheel`},_label:`Loading...`,_variant:`primary`,_on:t}),(0,G.jsx)(M,{className:`spinner-button`,_icons:{left:`kolicon-cogwheel`},_label:`Syncing...`,_variant:`secondary`,_on:t})]})})]}),(0,G.jsx)(`style`,{children:`
20
- @keyframes spin {
21
- from {
22
- transform: rotate(0deg);
23
- }
24
- to {
25
- transform: rotate(360deg);
26
- }
27
- }
28
-
29
- /* Target the icon part inside the button */
30
- .spinner-button::part(icon) {
31
- animation: spin 1s linear infinite;
32
- }
33
-
34
- .spinner-slow::part(icon) {
35
- animation-duration: 1.5s;
36
- }
37
-
38
- .spinner-slower::part(icon) {
39
- animation-duration: 2s;
40
- }
41
-
42
- @media (prefers-reduced-motion) {
43
- .spinner-button::part(icon){
44
- animation-duration: 10s;
45
- }
46
- }
47
- `})]})},ko=[`top`,`right`,`bottom`,`left`],Ao={button:{basic:fo,disabled:mo,"hide-label":So,icons:Co,"pin-toggle":To,spinner:Oo,width:()=>{let{dummyClickEventHandler:e}=Fa(),t={className:`w-8rem`,_on:{onClick:e}};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates buttons with custom widths. You can control the button width using CSS classes.`})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsx)(K,{id:`fixed-width-buttons-8rem`,heading:`Fixed Width Buttons (8rem)`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_label:`Primary`,_variant:`primary`,...t}),(0,G.jsx)(M,{_label:`Secondary`,_variant:`secondary`,...t}),(0,G.jsx)(M,{_label:`Normal`,_variant:`normal`,...t}),(0,G.jsx)(M,{_label:`Danger`,_variant:`danger`,...t}),(0,G.jsx)(M,{_label:`Ghost`,_variant:`ghost`,...t})]})}),(0,G.jsx)(K,{id:`fixed-width-disabled-buttons`,heading:`Fixed Width Disabled Buttons (8rem)`,fitContent:!0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_disabled:!0,_label:`Primary`,_variant:`primary`,...t}),(0,G.jsx)(M,{_disabled:!0,_label:`Secondary`,_variant:`secondary`,...t}),(0,G.jsx)(M,{_disabled:!0,_label:`Normal`,_variant:`normal`,...t}),(0,G.jsx)(M,{_disabled:!0,_label:`Danger`,_variant:`danger`,...t}),(0,G.jsx)(M,{_disabled:!0,_label:`Ghost`,_variant:`ghost`,...t})]})})]})]})},"access-key":La,"aria-description":Ra,baselined:za,"short-key":Do,"expert-slot":go,"row-reverse-tooltip":Eo,"tooltip-align":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsxs)(`p`,{children:[`With a hidden label, the label is shown as tooltip on hover and focus. `,(0,G.jsx)(`code`,{children:`_tooltipAlign`}),` places it on one of the four sides. A button places it on top by default, a link on the right.`]}),(0,G.jsx)(`p`,{children:`Hover or focus the elements to see the tooltips.`})]}),(0,G.jsxs)(K,{id:`tooltip-align`,className:`grid grid-cols-2 gap-16 p-16 justify-items-center`,skipSnapshot:!0,children:[ko.map(e=>(0,G.jsx)(M,{_label:`Tooltip ${e}`,_icons:`kolicon-alert-info`,_hideLabel:!0,_tooltipAlign:e},e)),(0,G.jsx)(M,{_label:`Button with default (top)`,_icons:`kolicon-check`,_hideLabel:!0}),(0,G.jsx)(z,{_label:`Link with default (right)`,_icons:`kolicon-link`,_hideLabel:!0,_href:`#/back-page`})]})]}),"focus-options":xo,"fixed-grid":po}},jo={card:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolCard shows a card with title and slot content. The second sample features a close button.`})}),(0,G.jsxs)(K,{id:`basic`,className:`w-full grid grid-cols-2 gap-4`,narrow:!0,children:[(0,G.jsx)(P,{_label:`Card with title and content`,children:(0,G.jsx)(`p`,{children:`Card contents.`})}),(0,G.jsx)(P,{_label:`Card with closer`,_hasCloser:!0,children:(0,G.jsx)(`p`,{children:`This card has a close button.`})})]})]}),"closer-callback":()=>{let[e,t]=(0,E.useState)(!0),[n,r]=(0,E.useState)(0);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`The close button of KolCard calls `,(0,G.jsx)(`code`,{children:`_on.onClose`}),`. The card does not hide itself; the application decides what happens. Here the callback removes the card, and the button below brings it back.`]})}),(0,G.jsxs)(K,{id:`closer-callback`,className:`grid gap-4`,skipSnapshot:!0,children:[e?(0,G.jsx)(P,{_label:`Card that closes itself`,_hasCloser:!0,_on:{onClose:()=>{t(!1),r(e=>e+1)}},children:(0,G.jsx)(`p`,{children:`Click the close button to remove the card.`})}):(0,G.jsx)(M,{_label:`Show the card again`,_on:{onClick:()=>t(!0)}}),(0,G.jsxs)(`p`,{"aria-live":`polite`,children:[`Closed `,n,` time(s).`]})]})]})},headlines:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows cards with all headline levels as title.`})}),(0,G.jsxs)(K,{id:`headlines`,className:`w-full grid grid-cols-2 gap-4`,children:[(0,G.jsx)(P,{_label:`Card with headline level 0`,_level:0,children:(0,G.jsx)(`p`,{children:`Card contents.`})}),(0,G.jsx)(P,{_label:`Card with headline level 1`,_level:1,children:(0,G.jsx)(`p`,{children:`Card contents.`})}),(0,G.jsx)(P,{_label:`Card with headline level 2`,_level:2,children:(0,G.jsx)(`p`,{children:`Card contents.`})}),(0,G.jsx)(P,{_label:`Card with headline level 3`,_level:3,children:(0,G.jsx)(`p`,{children:`Card contents.`})}),(0,G.jsx)(P,{_label:`Card with headline level 4`,_level:4,children:(0,G.jsx)(`p`,{children:`Card contents.`})}),(0,G.jsx)(P,{_label:`Card with headline level 5`,_level:5,children:(0,G.jsx)(`p`,{children:`Card contents.`})}),(0,G.jsx)(P,{_label:`Card with headline level 6`,_level:6,children:(0,G.jsx)(`p`,{children:`Card contents.`})})]})]}),linked:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolCards with links. The headline is wrapped with an a-tag. The whole card is clickable.`})}),(0,G.jsxs)(K,{id:`linked`,className:`w-full grid grid-cols-2 gap-4`,children:[(0,G.jsx)(P,{_label:`Card with title and content`,_href:`#/back-page`,children:(0,G.jsx)(`p`,{children:`This card has a link.`})}),(0,G.jsx)(P,{_label:`Card with title and content`,_href:`#/back-page`,_target:`_blank`,children:(0,G.jsx)(`p`,{children:`This card has a link and a target.`})})]})]})}},Mo=({RefComponent:e,showButtons:t=!0,...n})=>(0,G.jsx)(xe,{className:`w-full`,children:(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(e,{...n}),t&&(0,G.jsxs)(`div`,{className:`flex gap-4`,children:[(0,G.jsx)(M,{_label:`Submit`,_icons:`kolicon-chevron-right`,_type:`submit`,_variant:`primary`}),(0,G.jsx)(M,{_label:`Bunte Icons`,_icons:{left:{icon:`kolicon-house`,style:{color:`#cc006e`}},right:{icon:`kolicon-kolibri`,style:{color:`#b41b1b`}}},_type:`submit`,_variant:`secondary`}),(0,G.jsx)(M,{_label:`Reset`,_type:`reset`,_variant:`tertiary`}),(0,G.jsx)(M,{_label:`Help`,_variant:`ghost`})]})]})});function No({children:e}){let[t]=$r(),n=t.has(`noColumns`);return(0,G.jsx)(`div`,{className:n?``:`grid md:grid-cols-2 gap-4`,children:e})}var Po=({heading:e,level:t=2,children:n,...r})=>(0,G.jsxs)(`section`,{...r,children:[e?(0,G.jsx)(F,{_level:t,_label:e}):null,n]}),Fo=JSON.parse(`[{"id":4,"alpha2":"af","alpha3":"afg","name":"Afghanistan"},{"id":818,"alpha2":"eg","alpha3":"egy","name":"Ägypten"},{"id":8,"alpha2":"al","alpha3":"alb","name":"Albanien"},{"id":12,"alpha2":"dz","alpha3":"dza","name":"Algerien"},{"id":20,"alpha2":"ad","alpha3":"and","name":"Andorra"},{"id":24,"alpha2":"ao","alpha3":"ago","name":"Angola"},{"id":28,"alpha2":"ag","alpha3":"atg","name":"Antigua und Barbuda"},{"id":226,"alpha2":"gq","alpha3":"gnq","name":"Äquatorialguinea"},{"id":32,"alpha2":"ar","alpha3":"arg","name":"Argentinien"},{"id":51,"alpha2":"am","alpha3":"arm","name":"Armenien"},{"id":31,"alpha2":"az","alpha3":"aze","name":"Aserbaidschan"},{"id":231,"alpha2":"et","alpha3":"eth","name":"Äthiopien"},{"id":36,"alpha2":"au","alpha3":"aus","name":"Australien"},{"id":44,"alpha2":"bs","alpha3":"bhs","name":"Bahamas"},{"id":48,"alpha2":"bh","alpha3":"bhr","name":"Bahrain"},{"id":50,"alpha2":"bd","alpha3":"bgd","name":"Bangladesch"},{"id":52,"alpha2":"bb","alpha3":"brb","name":"Barbados"},{"id":112,"alpha2":"by","alpha3":"blr","name":"Belarus"},{"id":56,"alpha2":"be","alpha3":"bel","name":"Belgien"},{"id":84,"alpha2":"bz","alpha3":"blz","name":"Belize"},{"id":204,"alpha2":"bj","alpha3":"ben","name":"Benin"},{"id":64,"alpha2":"bt","alpha3":"btn","name":"Bhutan"},{"id":68,"alpha2":"bo","alpha3":"bol","name":"Bolivien"},{"id":70,"alpha2":"ba","alpha3":"bih","name":"Bosnien und Herzegowina"},{"id":72,"alpha2":"bw","alpha3":"bwa","name":"Botswana"},{"id":76,"alpha2":"br","alpha3":"bra","name":"Brasilien"},{"id":96,"alpha2":"bn","alpha3":"brn","name":"Brunei"},{"id":100,"alpha2":"bg","alpha3":"bgr","name":"Bulgarien"},{"id":854,"alpha2":"bf","alpha3":"bfa","name":"Burkina Faso"},{"id":108,"alpha2":"bi","alpha3":"bdi","name":"Burundi"},{"id":152,"alpha2":"cl","alpha3":"chl","name":"Chile"},{"id":156,"alpha2":"cn","alpha3":"chn","name":"China, Volksrepublik"},{"id":188,"alpha2":"cr","alpha3":"cri","name":"Costa Rica"},{"id":208,"alpha2":"dk","alpha3":"dnk","name":"Dänemark"},{"id":276,"alpha2":"de","alpha3":"deu","name":"Deutschland"},{"id":212,"alpha2":"dm","alpha3":"dma","name":"Dominica"},{"id":214,"alpha2":"do","alpha3":"dom","name":"Dominikanische Republik"},{"id":262,"alpha2":"dj","alpha3":"dji","name":"Dschibuti"},{"id":218,"alpha2":"ec","alpha3":"ecu","name":"Ecuador"},{"id":384,"alpha2":"ci","alpha3":"civ","name":"Elfenbeinküste"},{"id":222,"alpha2":"sv","alpha3":"slv","name":"El Salvador"},{"id":232,"alpha2":"er","alpha3":"eri","name":"Eritrea"},{"id":233,"alpha2":"ee","alpha3":"est","name":"Estland"},{"id":748,"alpha2":"sz","alpha3":"swz","name":"Eswatini"},{"id":242,"alpha2":"fj","alpha3":"fji","name":"Fidschi"},{"id":246,"alpha2":"fi","alpha3":"fin","name":"Finnland"},{"id":250,"alpha2":"fr","alpha3":"fra","name":"Frankreich"},{"id":266,"alpha2":"ga","alpha3":"gab","name":"Gabun"},{"id":270,"alpha2":"gm","alpha3":"gmb","name":"Gambia"},{"id":268,"alpha2":"ge","alpha3":"geo","name":"Georgien"},{"id":288,"alpha2":"gh","alpha3":"gha","name":"Ghana"},{"id":308,"alpha2":"gd","alpha3":"grd","name":"Grenada"},{"id":300,"alpha2":"gr","alpha3":"grc","name":"Griechenland"},{"id":320,"alpha2":"gt","alpha3":"gtm","name":"Guatemala"},{"id":324,"alpha2":"gn","alpha3":"gin","name":"Guinea"},{"id":624,"alpha2":"gw","alpha3":"gnb","name":"Guinea-Bissau"},{"id":328,"alpha2":"gy","alpha3":"guy","name":"Guyana"},{"id":332,"alpha2":"ht","alpha3":"hti","name":"Haiti"},{"id":340,"alpha2":"hn","alpha3":"hnd","name":"Honduras"},{"id":356,"alpha2":"in","alpha3":"ind","name":"Indien"},{"id":360,"alpha2":"id","alpha3":"idn","name":"Indonesien"},{"id":368,"alpha2":"iq","alpha3":"irq","name":"Irak"},{"id":364,"alpha2":"ir","alpha3":"irn","name":"Iran"},{"id":372,"alpha2":"ie","alpha3":"irl","name":"Irland"},{"id":352,"alpha2":"is","alpha3":"isl","name":"Island"},{"id":376,"alpha2":"il","alpha3":"isr","name":"Israel"},{"id":380,"alpha2":"it","alpha3":"ita","name":"Italien"},{"id":388,"alpha2":"jm","alpha3":"jam","name":"Jamaika"},{"id":392,"alpha2":"jp","alpha3":"jpn","name":"Japan"},{"id":887,"alpha2":"ye","alpha3":"yem","name":"Jemen"},{"id":400,"alpha2":"jo","alpha3":"jor","name":"Jordanien"},{"id":116,"alpha2":"kh","alpha3":"khm","name":"Kambodscha"},{"id":120,"alpha2":"cm","alpha3":"cmr","name":"Kamerun"},{"id":124,"alpha2":"ca","alpha3":"can","name":"Kanada"},{"id":132,"alpha2":"cv","alpha3":"cpv","name":"Kap Verde"},{"id":398,"alpha2":"kz","alpha3":"kaz","name":"Kasachstan"},{"id":634,"alpha2":"qa","alpha3":"qat","name":"Katar"},{"id":404,"alpha2":"ke","alpha3":"ken","name":"Kenia"},{"id":417,"alpha2":"kg","alpha3":"kgz","name":"Kirgisistan"},{"id":296,"alpha2":"ki","alpha3":"kir","name":"Kiribati"},{"id":170,"alpha2":"co","alpha3":"col","name":"Kolumbien"},{"id":174,"alpha2":"km","alpha3":"com","name":"Komoren"},{"id":180,"alpha2":"cd","alpha3":"cod","name":"Kongo, Demokratische Republik"},{"id":178,"alpha2":"cg","alpha3":"cog","name":"Kongo, Republik"},{"id":408,"alpha2":"kp","alpha3":"prk","name":"Korea, Nord (Nordkorea)"},{"id":410,"alpha2":"kr","alpha3":"kor","name":"Korea, Süd (Südkorea)"},{"id":191,"alpha2":"hr","alpha3":"hrv","name":"Kroatien"},{"id":192,"alpha2":"cu","alpha3":"cub","name":"Kuba"},{"id":414,"alpha2":"kw","alpha3":"kwt","name":"Kuwait"},{"id":418,"alpha2":"la","alpha3":"lao","name":"Laos"},{"id":426,"alpha2":"ls","alpha3":"lso","name":"Lesotho"},{"id":428,"alpha2":"lv","alpha3":"lva","name":"Lettland"},{"id":422,"alpha2":"lb","alpha3":"lbn","name":"Libanon"},{"id":430,"alpha2":"lr","alpha3":"lbr","name":"Liberia"},{"id":434,"alpha2":"ly","alpha3":"lby","name":"Libyen"},{"id":438,"alpha2":"li","alpha3":"lie","name":"Liechtenstein"},{"id":440,"alpha2":"lt","alpha3":"ltu","name":"Litauen"},{"id":442,"alpha2":"lu","alpha3":"lux","name":"Luxemburg"},{"id":450,"alpha2":"mg","alpha3":"mdg","name":"Madagaskar"},{"id":454,"alpha2":"mw","alpha3":"mwi","name":"Malawi"},{"id":458,"alpha2":"my","alpha3":"mys","name":"Malaysia"},{"id":462,"alpha2":"mv","alpha3":"mdv","name":"Malediven"},{"id":466,"alpha2":"ml","alpha3":"mli","name":"Mali"},{"id":470,"alpha2":"mt","alpha3":"mlt","name":"Malta"},{"id":504,"alpha2":"ma","alpha3":"mar","name":"Marokko"},{"id":584,"alpha2":"mh","alpha3":"mhl","name":"Marshallinseln"},{"id":478,"alpha2":"mr","alpha3":"mrt","name":"Mauretanien"},{"id":480,"alpha2":"mu","alpha3":"mus","name":"Mauritius"},{"id":484,"alpha2":"mx","alpha3":"mex","name":"Mexiko"},{"id":583,"alpha2":"fm","alpha3":"fsm","name":"Mikronesien"},{"id":498,"alpha2":"md","alpha3":"mda","name":"Moldau"},{"id":492,"alpha2":"mc","alpha3":"mco","name":"Monaco"},{"id":496,"alpha2":"mn","alpha3":"mng","name":"Mongolei"},{"id":499,"alpha2":"me","alpha3":"mne","name":"Montenegro"},{"id":508,"alpha2":"mz","alpha3":"moz","name":"Mosambik"},{"id":104,"alpha2":"mm","alpha3":"mmr","name":"Myanmar"},{"id":516,"alpha2":"na","alpha3":"nam","name":"Namibia"},{"id":520,"alpha2":"nr","alpha3":"nru","name":"Nauru"},{"id":524,"alpha2":"np","alpha3":"npl","name":"Nepal"},{"id":554,"alpha2":"nz","alpha3":"nzl","name":"Neuseeland"},{"id":558,"alpha2":"ni","alpha3":"nic","name":"Nicaragua"},{"id":528,"alpha2":"nl","alpha3":"nld","name":"Niederlande"},{"id":562,"alpha2":"ne","alpha3":"ner","name":"Niger"},{"id":566,"alpha2":"ng","alpha3":"nga","name":"Nigeria"},{"id":807,"alpha2":"mk","alpha3":"mkd","name":"Nordmazedonien"},{"id":578,"alpha2":"no","alpha3":"nor","name":"Norwegen"},{"id":512,"alpha2":"om","alpha3":"omn","name":"Oman"},{"id":40,"alpha2":"at","alpha3":"aut","name":"Österreich"},{"id":626,"alpha2":"tl","alpha3":"tls","name":"Osttimor"},{"id":586,"alpha2":"pk","alpha3":"pak","name":"Pakistan"},{"id":585,"alpha2":"pw","alpha3":"plw","name":"Palau"},{"id":591,"alpha2":"pa","alpha3":"pan","name":"Panama"},{"id":598,"alpha2":"pg","alpha3":"png","name":"Papua-Neuguinea"},{"id":600,"alpha2":"py","alpha3":"pry","name":"Paraguay"},{"id":604,"alpha2":"pe","alpha3":"per","name":"Peru"},{"id":608,"alpha2":"ph","alpha3":"phl","name":"Philippinen"},{"id":616,"alpha2":"pl","alpha3":"pol","name":"Polen"},{"id":620,"alpha2":"pt","alpha3":"prt","name":"Portugal"},{"id":646,"alpha2":"rw","alpha3":"rwa","name":"Ruanda"},{"id":642,"alpha2":"ro","alpha3":"rou","name":"Rumänien"},{"id":643,"alpha2":"ru","alpha3":"rus","name":"Russland"},{"id":90,"alpha2":"sb","alpha3":"slb","name":"Salomonen"},{"id":894,"alpha2":"zm","alpha3":"zmb","name":"Sambia"},{"id":882,"alpha2":"ws","alpha3":"wsm","name":"Samoa"},{"id":674,"alpha2":"sm","alpha3":"smr","name":"San Marino"},{"id":678,"alpha2":"st","alpha3":"stp","name":"São Tomé und Príncipe"},{"id":682,"alpha2":"sa","alpha3":"sau","name":"Saudi-Arabien"},{"id":752,"alpha2":"se","alpha3":"swe","name":"Schweden"},{"id":756,"alpha2":"ch","alpha3":"che","name":"Schweiz"},{"id":686,"alpha2":"sn","alpha3":"sen","name":"Senegal"},{"id":688,"alpha2":"rs","alpha3":"srb","name":"Serbien"},{"id":690,"alpha2":"sc","alpha3":"syc","name":"Seychellen"},{"id":694,"alpha2":"sl","alpha3":"sle","name":"Sierra Leone"},{"id":716,"alpha2":"zw","alpha3":"zwe","name":"Simbabwe"},{"id":702,"alpha2":"sg","alpha3":"sgp","name":"Singapur"},{"id":703,"alpha2":"sk","alpha3":"svk","name":"Slowakei"},{"id":705,"alpha2":"si","alpha3":"svn","name":"Slowenien"},{"id":706,"alpha2":"so","alpha3":"som","name":"Somalia"},{"id":724,"alpha2":"es","alpha3":"esp","name":"Spanien"},{"id":144,"alpha2":"lk","alpha3":"lka","name":"Sri Lanka"},{"id":659,"alpha2":"kn","alpha3":"kna","name":"St. Kitts und Nevis"},{"id":662,"alpha2":"lc","alpha3":"lca","name":"St. Lucia"},{"id":670,"alpha2":"vc","alpha3":"vct","name":"St. Vincent und die Grenadinen"},{"id":710,"alpha2":"za","alpha3":"zaf","name":"Südafrika"},{"id":729,"alpha2":"sd","alpha3":"sdn","name":"Sudan"},{"id":728,"alpha2":"ss","alpha3":"ssd","name":"Südsudan"},{"id":740,"alpha2":"sr","alpha3":"sur","name":"Suriname"},{"id":760,"alpha2":"sy","alpha3":"syr","name":"Syrien"},{"id":762,"alpha2":"tj","alpha3":"tjk","name":"Tadschikistan"},{"id":834,"alpha2":"tz","alpha3":"tza","name":"Tansania"},{"id":764,"alpha2":"th","alpha3":"tha","name":"Thailand"},{"id":768,"alpha2":"tg","alpha3":"tgo","name":"Togo"},{"id":776,"alpha2":"to","alpha3":"ton","name":"Tonga"},{"id":780,"alpha2":"tt","alpha3":"tto","name":"Trinidad und Tobago"},{"id":148,"alpha2":"td","alpha3":"tcd","name":"Tschad"},{"id":203,"alpha2":"cz","alpha3":"cze","name":"Tschechien"},{"id":788,"alpha2":"tn","alpha3":"tun","name":"Tunesien"},{"id":792,"alpha2":"tr","alpha3":"tur","name":"Türkei"},{"id":795,"alpha2":"tm","alpha3":"tkm","name":"Turkmenistan"},{"id":798,"alpha2":"tv","alpha3":"tuv","name":"Tuvalu"},{"id":800,"alpha2":"ug","alpha3":"uga","name":"Uganda"},{"id":804,"alpha2":"ua","alpha3":"ukr","name":"Ukraine"},{"id":348,"alpha2":"hu","alpha3":"hun","name":"Ungarn"},{"id":858,"alpha2":"uy","alpha3":"ury","name":"Uruguay"},{"id":860,"alpha2":"uz","alpha3":"uzb","name":"Usbekistan"},{"id":548,"alpha2":"vu","alpha3":"vut","name":"Vanuatu"},{"id":862,"alpha2":"ve","alpha3":"ven","name":"Venezuela"},{"id":784,"alpha2":"ae","alpha3":"are","name":"Vereinigte Arabische Emirate"},{"id":840,"alpha2":"us","alpha3":"usa","name":"Vereinigte Staaten"},{"id":826,"alpha2":"gb","alpha3":"gbr","name":"Vereinigtes Königreich"},{"id":704,"alpha2":"vn","alpha3":"vnm","name":"Vietnam"},{"id":140,"alpha2":"cf","alpha3":"caf","name":"Zentralafrikanische Republik"},{"id":196,"alpha2":"cy","alpha3":"cyp","name":"Zypern"}]`),Io=[...Fo.map(e=>({label:e.name,value:e.alpha2}))],Lo=[...Fo.map(e=>e.name)],Ro=({blockIdPrefix:e,snapshotOnly:t,...n})=>{let r=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...r(`hint`),children:(0,G.jsx)(_e,{...n,_hint:Ca,_label:`Label`,_suggestions:Lo,_value:`Deutschland`})}),(0,G.jsx)(K,{...r(`disabled`),children:(0,G.jsx)(_e,{...n,_label:`Disabled`,_suggestions:Lo,_value:`Deutschland`,_disabled:!0})}),(0,G.jsx)(K,{...r(`error`),children:(0,G.jsx)(_e,{...n,_suggestions:Lo,_msg:{_type:`error`,_description:q},_touched:!0,_label:`Label`,_placeholder:`Placeholder`,_required:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,G.jsx)(K,{...r(`access-key`),children:(0,G.jsx)(_e,{...n,_label:`With access key`,_suggestions:Lo,_value:`Deutschland`,_accessKey:`c`})}),(0,G.jsx)(K,{...r(`short-key`),skipSnapshot:n._hideLabel,children:(0,G.jsx)(_e,{...n,_label:`With short key`,_suggestions:Lo,_value:`Deutschland`,_shortKey:`s`})})]})},zo=e=>(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Text`,children:(0,G.jsx)(Ro,{blockIdPrefix:`label`,...e})}),(0,G.jsx)(Po,{heading:`Text (hideLabel)`,children:(0,G.jsx)(Ro,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,...e,_hideLabel:!0})})]}),Bo=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolCombobox combines a text input with a suggestion list, enabling users to either type in a value or to select on of the suggestions.`})}),(0,G.jsx)(Mo,{RefComponent:zo,showButtons:!1})]}),Vo=e=>{console.log(`${e.type} (Native Event)`,e)},Ho=e=>{console.log(`${e.type} (Callback Event)`,e)},Uo=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`A HTML only KolCombobox.`})}),(0,G.jsx)(_e,{_label:`With string array in html`,_suggestions:`['Herr','Frau','Firma']`,_value:`Herr`,_on:{onBlur:Ho,onChange:Ho,onClick:Ho,onFocus:Ho,onInput:Ho,onKeyDown:Ho},onBlur:Vo,onChange:Vo,onClick:Vo,onFocus:Vo,onInput:Vo,onKeyDown:Vo})]}),Wo=({show:e})=>e?(0,G.jsx)(`div`,{className:`loading-overlay`,children:(0,G.jsx)(He,{_label:`loading`,_show:e,_variant:`cycle`,style:{backgroundColor:`transparent`}})}):null,Go={combobox:{basic:Bo,html:Uo,"lazy-loaded":()=>{let[e,t]=(0,E.useState)([]),[n,r]=(0,E.useState)(!1);function i(){e.length>0||(r(!0),setTimeout(()=>{t(Lo),r(!1)},5e3))}return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This combobox loads its list of countries 5 seconds after the first input of the user to simulate a call to the server.`})}),(0,G.jsxs)(`section`,{className:`w-full relative p-3`,children:[(0,G.jsx)(_e,{_label:`Lazy loaded countries`,_suggestions:e,onInput:()=>i()}),(0,G.jsx)(Wo,{show:n})]})]})}}},Ko={details:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`KolDetails hides its content until opened. The open state can be toggled either by clicking the label or by setting the `,(0,G.jsx)(`code`,{children:`_open`}),`-prop programmatically. The sample includes an initially open state and a disabled but open Details component.`]})}),(0,G.jsxs)(K,{id:`basic`,children:[(0,G.jsx)(ve,{_label:`Closed initially`,children:(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.`})}),(0,G.jsx)(ve,{_disabled:!0,_label:`Open initially (disabled)`,_open:!0,children:(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.`})}),(0,G.jsx)(ve,{_label:`Open initially`,_open:!0,children:(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.`})})]})]})}},qo=()=>{let[e]=$r(),t=e.get(`show-dialog`),n=(0,E.useRef)(null),r=(0,E.useRef)(null),i={onClick:()=>n.current?.openModal()},a={onClick:()=>r.current?.openModal()};return(0,E.useEffect)(()=>{t===`true`&&(async()=>{await n.current?.openModal(),await r.current?.openModal()})()},[t]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`KolDialog supports the variants `,(0,G.jsx)(`code`,{children:`blank`}),` and `,(0,G.jsx)(`code`,{children:`card`}),`. The card variant includes a `,(0,G.jsx)(`code`,{children:`KolCard`}),` container and a closer button.`]})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(M,{_label:`Open blank dialog`,_on:i}),(0,G.jsx)(ye,{ref:n,_label:`Blank dialog`,_variant:`blank`,_width:`40%`,children:(0,G.jsxs)(`div`,{className:`bg-white p-4 rounded shadow`,children:[(0,G.jsx)(`p`,{className:`mt-0`,children:`You must add styling and a close button yourself.`}),(0,G.jsx)(M,{_label:`Open card dialog`,className:`mr`,_on:a}),(0,G.jsx)(M,{_label:`Close`,_on:{onClick:()=>n.current?.closeModal()}})]})})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(M,{_label:`Open card dialog`,_on:a}),(0,G.jsx)(ye,{ref:r,_label:`Card dialog`,_variant:`card`,_width:`30%`,children:(0,G.jsx)(`p`,{className:`mt-0`,children:`This variant wraps content inside a KolCard.`})})]})]})]})},Jo={dialog:{basic:qo,"scroll-lock":()=>{let e=(0,E.useRef)(null),t=(0,E.useRef)(null);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsxs)(`p`,{children:[`Demonstrates that opening `,(0,G.jsx)(`strong`,{children:`KolDialog`}),`/`,(0,G.jsx)(`strong`,{children:`KolModal`}),` or `,(0,G.jsx)(`strong`,{children:`KolDrawer`}),` modally locks the background scroll: the page behind the overlay must not scroll, neither via mouse wheel/touch over the backdrop nor by dragging the page scrollbar. Non-modal`,` `,(0,G.jsx)(`code`,{children:`show()`}),` does not lock.`]}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`strong`,{children:`How to test:`}),` scroll this long page down a bit, open the dialog or drawer below, then try to scroll the background (mouse wheel over the dimmed backdrop, or drag the scrollbar) – it should stay put. Close the overlay again and the page should scroll normally, restored to the same position without a layout shift.`]})]}),(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4 mb-4`,children:[(0,G.jsx)(M,{_label:`Open modal dialog`,_on:{onClick:()=>e.current?.showModal()}}),(0,G.jsx)(M,{_label:`Open modal drawer`,_on:{onClick:()=>t.current?.showModal()}})]}),(0,G.jsxs)(ye,{ref:e,_label:`Scroll lock dialog`,_variant:`card`,_width:`30%`,children:[(0,G.jsx)(`p`,{className:`mt-0`,children:`While I am open, the background must not scroll.`}),(0,G.jsx)(M,{_label:`Close`,_on:{onClick:()=>e.current?.closeModal()}})]}),(0,G.jsxs)(be,{ref:t,_label:`Scroll lock drawer`,_align:`right`,children:[(0,G.jsx)(`p`,{className:`mt-0`,children:`While I am open, the background must not scroll.`}),(0,G.jsx)(M,{_label:`Close`,_on:{onClick:()=>t.current?.close()}})]}),(0,G.jsx)(`div`,{style:{height:`200vh`,flexShrink:0},className:`border border-dashed border-gray p-4`,children:(0,G.jsx)(`p`,{children:`This tall block simulates a long page. Scroll down, open an overlay above, and try to scroll here.`})})]})},"with-alert":()=>{let e=(0,E.useRef)(null),[t,n]=(0,E.useState)([]),[r,i]=(0,E.useState)(!0),a=e=>n(t=>[...t,`${new Date().toLocaleTimeString()} – ${e}`]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsxs)(`p`,{children:[`Closing the `,(0,G.jsx)(`strong`,{children:`KolAlert`}),` inside the dialog must `,(0,G.jsx)(`em`,{children:`not`}),` trigger the dialog's `,(0,G.jsx)(`code`,{children:`onClose`}),` callback. Only closing the dialog itself (via the card closer or `,(0,G.jsx)(`code`,{children:`close()`}),`) should fire that callback.`]}),(0,G.jsxs)(`p`,{children:[`Watch the event log below: after clicking the alert closer you should see `,(0,G.jsx)(`em`,{children:`only`}),` "Alert onClose fired", not "Dialog onClose fired".`]})]}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(M,{_label:`Open dialog with alert`,_on:{onClick:()=>{i(!0),e.current?.showModal()}}}),(0,G.jsx)(ye,{ref:e,_label:`Dialog with KolAlert inside`,_variant:`card`,_width:`40%`,_on:{onToggle:e=>console.log(`Dialog onToggle triggered!`,e),onClose:()=>{a(`Dialog onClose fired`)}},children:(0,G.jsxs)(`div`,{className:`p-4`,children:[r&&(0,G.jsx)(pe,{_label:`Closeable alert`,_type:`info`,_variant:`card`,_hasCloser:!0,_on:{onClose:()=>{a(`Alert onClose fired`),i(!1)}},children:`Close this alert – the dialog must stay open and its onClose must NOT fire.`}),!r&&(0,G.jsx)(`p`,{children:`Alert was closed. The dialog is still open – correct behaviour!`})]})})]}),t.length>0&&(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:`Event log:`}),(0,G.jsx)(`ul`,{children:t.map((e,t)=>(0,G.jsx)(`li`,{children:e},t))})]})]})]})}}},Yo=[`left`,`top`,`right`,`bottom`].map(e=>({label:e,value:e})),Xo=({value:e=`left`,onChange:t})=>(0,G.jsx)(`div`,{className:`grid gap-4`,children:(0,G.jsx)(`div`,{className:`container my-4 d-grid gap-4`,children:(0,G.jsx)(ke,{_label:`Drawer alignment`,_value:e,_options:Yo,_orientation:`horizontal`,_on:{onChange:t}})})}),Zo={drawer:{basic:()=>{let[e]=$r(),t=e.get(`align`),n=e.get(`closer`)===`true`,r=(0,E.useRef)(null),[i,a]=(0,E.useState)(t||`left`),[o,s]=(0,E.useState)(n);return(0,E.useEffect)(()=>{t&&r.current?.showModal()},[t]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolDrawer shows a dialog attached to one of the sides of the viewport, when opened. This sample illustrates the four alignments.`})}),(0,G.jsx)(Xo,{value:i,onChange:(e,t)=>a(t)}),(0,G.jsx)(I,{_label:`Drawer has closer`,className:`mb-4`,_checked:o,_on:{onInput:(e,t)=>{s(t===!0)}}}),(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(be,{ref:r,_label:`I am a drawer`,_level:2,_align:i,_hasCloser:o,_on:{onClose:()=>console.log(`Drawer onClose triggered!`),onToggle:e=>console.log(`Drawer onToggle triggered!`,e)},children:(0,G.jsxs)(`div`,{className:i===`left`||i===`right`?`drawer-content-vertical`:``,children:[(0,G.jsx)(`p`,{className:`mt-0`,children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.`}),(0,G.jsx)(M,{_label:`Close drawer`,_on:{onClick:()=>r.current?.close()}})]})}),(0,G.jsx)(M,{_label:`Open drawer`,_on:{onClick:()=>r.current?.showModal()}})]})]})},controlled:()=>{let[e]=$r(),t=e.get(`align`),[n,r]=(0,E.useState)(!1),[i,a]=(0,E.useState)(t||`left`);return(0,G.jsxs)(`div`,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample shows the KolDrawer controlled by the property `,(0,G.jsx)(`code`,{children:`_open`}),` instead of methods.`]})}),(0,G.jsx)(Xo,{value:i,onChange:(e,t)=>a(t)}),(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(be,{_open:n,_align:i,_label:`I'm a controlled drawer`,_level:2,_on:{onClose:()=>r(!1)},children:(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet,`}),(0,G.jsx)(M,{_label:`Close drawer`,_on:{onClick:()=>r(!1)}})]})}),(0,G.jsx)(M,{_label:`Open drawer`,_on:{onClick:()=>r(!0)}})]})]})},scrolled:()=>{let e=(0,E.useRef)(null),[t,n]=(0,E.useState)(`bottom`),[r,i]=(0,E.useState)(!0);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample demonstrates how KolDrawer handles content that exceeds the drawer dimensions and shows the correct way to handle overflow. Use the "Enable Overflow Handling" toggle to see the difference between problematic behavior (content exceeding drawer bounds) and the proper solution (overflow handling within the slot content).`})}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-4 mb-4`,children:[(0,G.jsx)(Xo,{value:t,onChange:(e,t)=>n(t)}),(0,G.jsx)(I,{_label:`Enable Overflow Handling (Recommended)`,_checked:r,_on:{onChange:(e,t)=>i(!!t)}})]}),(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(be,{ref:e,_label:`Scrollable Drawer`,_level:2,_align:t,children:r?(0,G.jsx)(`div`,{style:{width:t===`left`||t===`right`?`90vw`:void 0,height:t===`top`||t===`bottom`?`90vh`:void 0,overflow:`auto`,padding:`0`,border:`1px solid #999`},children:(0,G.jsxs)(`div`,{style:{width:t===`left`||t===`right`?`150vw`:void 0,height:t===`top`||t===`bottom`?`150vh`:void 0,background:`linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)`,backgroundSize:`20px 20px`,backgroundPosition:`0 0, 0 10px, 10px -10px, -10px 0px`,border:`2px dashed #ccc`,padding:`20px`,display:`flex`,flexDirection:`column`,gap:`20px`},children:[(0,G.jsx)(`p`,{children:`✅ Content with proper overflow handling - scrollable within drawer bounds`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h3`,{children:`Large Content Area (Scrollable)`}),(0,G.jsxs)(`p`,{children:[`Container: `,t===`left`||t===`right`?`400px wide`:`90vw wide`,` ×`,` `,t===`top`||t===`bottom`?`90vh high`:`400px high`]}),(0,G.jsxs)(`p`,{children:[`Content: `,t===`left`||t===`right`?`150vw wide`:`400px wide`,` ×`,` `,t===`top`||t===`bottom`?`150vh high`:`400px high`]}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`strong`,{children:`Overflow Handling:`}),` Enabled - Container has fixed size with overflow: auto`]}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`With overflow handling enabled, this content scrolls properly within the drawer container. You can scroll horizontally/vertically to see all content.`}),(0,G.jsx)(`div`,{style:{marginTop:`auto`,paddingTop:`40px`},children:(0,G.jsx)(M,{_label:`Close drawer`,_on:{onClick:()=>e.current?.close()}})})]})]})}):(0,G.jsxs)(`div`,{style:{width:t===`left`||t===`right`?`150vw`:`400px`,height:t===`top`||t===`bottom`?`150vh`:`400px`,background:`linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)`,backgroundSize:`20px 20px`,backgroundPosition:`0 0, 0 10px, 10px -10px, -10px 0px`,border:`2px dashed #ccc`,padding:`20px`,display:`flex`,flexDirection:`column`,gap:`20px`},children:[(0,G.jsx)(`p`,{children:`❌ Content exceeding drawer bounds - problematic behavior`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h3`,{children:`Large Content Area`}),(0,G.jsxs)(`p`,{children:[`Width: `,t===`left`||t===`right`?`150vw (exceeds drawer width)`:`400px`]}),(0,G.jsxs)(`p`,{children:[`Height: `,t===`top`||t===`bottom`?`150vh (exceeds drawer height)`:`400px`]}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`strong`,{children:`Overflow Handling:`}),` Disabled - Content extends beyond drawer boundaries`]}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Without overflow handling, this content may extend beyond the drawer boundaries, causing layout issues.`}),(0,G.jsx)(`div`,{style:{marginTop:`auto`,paddingTop:`40px`},children:(0,G.jsx)(M,{_label:`Close drawer`,_on:{onClick:()=>e.current?.close()}})})]})]})}),(0,G.jsx)(M,{_label:`Open scrollable drawer`,_on:{onClick:()=>e.current?.open()}})]})]})},"big-content":()=>{let e=(0,E.useRef)(null),[t,n]=(0,E.useState)(`bottom`);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample demonstrates how KolDrawer handles content that exceeds the drawer dimensions.`})}),(0,G.jsx)(`div`,{className:`flex flex-col gap-4 mb-4`,children:(0,G.jsx)(Xo,{value:t,onChange:(e,t)=>n(t)})}),(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(be,{ref:e,_label:`Scrollable Drawer`,_align:t,_level:2,children:(0,G.jsxs)(`div`,{style:{width:t===`left`||t===`right`?`20vw`:void 0,height:t===`top`||t===`bottom`?`20vh`:void 0},children:[(0,G.jsx)(`h3`,{children:`Large Content Area (Scrollable)`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`div`,{style:{marginTop:`auto`,paddingTop:`40px`},children:(0,G.jsx)(M,{_label:`Close drawer`,_on:{onClick:()=>e.current?.close()}})})]})}),(0,G.jsx)(M,{_label:`Open scrollable drawer`,_on:{onClick:()=>e.current?.open()}})]})]})}}},Qo={form:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolForm renders a form around the input components provided in a slot. This sample shows a basic form with three input fields and a submit button.`})}),(0,G.jsx)(K,{id:`form-basic`,className:`grid gap-2`,children:(0,G.jsxs)(xe,{className:`w-full`,_on:{onSubmit:e=>console.log(`submitted:`,e)},children:[(0,G.jsx)(R,{id:`input1`,_label:`Input 1`}),(0,G.jsx)(R,{id:`input2`,_label:`Input 2`}),(0,G.jsx)(R,{id:`input3`,_label:`Input 3`}),(0,G.jsx)(M,{_label:`Submit`,_variant:`primary`,_type:`submit`})]})})]}),"error-list":()=>{let e=(0,E.useRef)(null);return(0,E.useEffect)(()=>{e.current?.focusErrorList()},[]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows a form with error messages.`})}),(0,G.jsx)(K,{id:`error-list`,children:(0,G.jsx)(xe,{className:`w-full`,ref:e,_on:{onSubmit:()=>{e.current?.focusErrorList()}},_errorList:[{message:`Error in Input 2 (default scroll behaviour)`,selector:`#input2`},{message:`Error in Input 3 (no scrolling, just alert)`,selector:()=>alert(`Error in Input 3`)},{message:`Error in Input 4 (custom scroll behaviour)`,selector:`#input4`,options:{behavior:`instant`,block:`start`,afterFocus:()=>console.log(`after Focus Input 4`)}}],children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsx)(R,{id:`input1`,_label:`Input 1`}),(0,G.jsx)(R,{id:`input2`,_label:`Input 2`,_touched:!0,_msg:{_description:`Input error`,_type:`error`}}),(0,G.jsx)(R,{id:`input3`,_label:`Input 3`,_touched:!0,_msg:{_description:`Input error`,_type:`error`}}),(0,G.jsx)(R,{id:`input4`,_label:`Input 4`,_touched:!0,_msg:{_description:`Input error`,_type:`error`}})]})})})]})},"error-list-scroll":()=>{let e=(0,E.useRef)(null);return(0,E.useEffect)(()=>{e.current?.focusErrorList()},[]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows a form with error messages.`})}),(0,G.jsx)(K,{id:`error-list`,children:(0,G.jsx)(xe,{className:`w-full`,ref:e,_on:{onSubmit:()=>{e.current?.focusErrorList()}},_errorList:[{message:`Error in Input 2 (default scroll behaviour)`,selector:`#input2`},{message:`Error in Input 3 (no scrolling, just alert)`,selector:()=>alert(`Error in Input 3`)},{message:`Error in Input 4 (custom scroll behaviour)`,selector:`#input4`,options:{behavior:`instant`,block:`start`,afterFocus:()=>console.log(`after Focus Input 4`)}}],children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-250`,children:[(0,G.jsx)(R,{id:`input1`,_label:`Input 1`}),(0,G.jsx)(R,{id:`input2`,_label:`Input 2`,_touched:!0,_msg:{_description:`Input error`,_type:`error`}}),(0,G.jsx)(R,{id:`input3`,_label:`Input 3`,_touched:!0,_msg:{_description:`Input error`,_type:`error`}}),(0,G.jsx)(R,{id:`input4`,_label:`Input 4`,_touched:!0,_msg:{_description:`Input error`,_type:`error`}}),(0,G.jsx)(`div`,{children:(0,G.jsx)(M,{_label:`ScrollTo`,_type:`submit`})})]})})})]})}}},$o=new WeakMap,es=e=>($o.has(e)===!1&&$o.set(e,(0,ai.createRoot)(e)),$o.get(e)),ts=[{monday:`Alex`,tuesday:`Anna`,wednesday:`Amalia`,thursday:`Arthur`,friday:`Alex`,saturday:`Andrea`,sunday:`Arnold`},{monday:`Helena`,tuesday:`Fabian`,wednesday:`Marie`,thursday:`Ben`,friday:`Marcus`,saturday:`Alex`,sunday:`Marcus`},{monday:`Fabian`,tuesday:`Helena`,wednesday:`Fabian`,thursday:`Maya`,friday:`Ben`,saturday:`Alex`,sunday:`Helena`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Samuel`,tuesday:`Selena`,wednesday:`Sandra`,thursday:`Salim`,friday:`Robert`,saturday:`Richard`,sunday:`Pamela`},{monday:`Samuel`,tuesday:`Selena`,wednesday:`Sandra`,thursday:`Salim`,friday:`Robert`,saturday:`Richard`,sunday:`Pamela`},{monday:`Finn`,tuesday:`Roger`,wednesday:`Christian`,thursday:`Caspar`,friday:`David`,saturday:`Bernard`,sunday:`Anna`},{monday:`Alex`,tuesday:`Anna`,wednesday:`Amalia`,thursday:`Arthur`,friday:`Alex`,saturday:`Andrea`,sunday:`Arnold`},{monday:`Helena`,tuesday:`Fabian`,wednesday:`Marie`,thursday:`Ben`,friday:`Marcus`,saturday:`Alex`,sunday:`Marcus`},{monday:`Fabian`,tuesday:`Helena`,wednesday:`Fabian`,thursday:`Maya`,friday:`Ben`,saturday:`Alex`,sunday:`Helena`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Samuel`,tuesday:`Selena`,wednesday:`Sandra`,thursday:`Salim`,friday:`Robert`,saturday:`Richard`,sunday:`Pamela`},{monday:`Samuel`,tuesday:`Selena`,wednesday:`Sandra`,thursday:`Salim`,friday:`Robert`,saturday:`Richard`,sunday:`Pamela`},{monday:`Finn`,tuesday:`Roger`,wednesday:`Christian`,thursday:`Caspar`,friday:`David`,saturday:`Bernard`,sunday:`Anna`},{monday:`Alex`,tuesday:`Anna`,wednesday:`Amalia`,thursday:`Arthur`,friday:`Alex`,saturday:`Andrea`,sunday:`Arnold`},{monday:`Helena`,tuesday:`Fabian`,wednesday:`Marie`,thursday:`Ben`,friday:`Marcus`,saturday:`Alex`,sunday:`Marcus`},{monday:`Fabian`,tuesday:`Helena`,wednesday:`Fabian`,thursday:`Maya`,friday:`Ben`,saturday:`Alex`,sunday:`Helena`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Samuel`,tuesday:`Selena`,wednesday:`Sandra`,thursday:`Salim`,friday:`Robert`,saturday:`Richard`,sunday:`Pamela`},{monday:`Samuel`,tuesday:`Selena`,wednesday:`Sandra`,thursday:`Salim`,friday:`Robert`,saturday:`Richard`,sunday:`Pamela`},{monday:`Finn`,tuesday:`Roger`,wednesday:`Christian`,thursday:`Caspar`,friday:`David`,saturday:`Bernard`,sunday:`Anna`},{monday:`Alex`,tuesday:`Anna`,wednesday:`Amalia`,thursday:`Arthur`,friday:`Alex`,saturday:`Andrea`,sunday:`Arnold`},{monday:`Helena`,tuesday:`Fabian`,wednesday:`Marie`,thursday:`Ben`,friday:`Marcus`,saturday:`Alex`,sunday:`Marcus`},{monday:`Fabian`,tuesday:`Helena`,wednesday:`Fabian`,thursday:`Maya`,friday:`Ben`,saturday:`Alex`,sunday:`Helena`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Samuel`,tuesday:`Selena`,wednesday:`Sandra`,thursday:`Salim`,friday:`Robert`,saturday:`Richard`,sunday:`Pamela`},{monday:`Samuel`,tuesday:`Selena`,wednesday:`Sandra`,thursday:`Salim`,friday:`Robert`,saturday:`Richard`,sunday:`Pamela`},{monday:`Finn`,tuesday:`Roger`,wednesday:`Christian`,thursday:`Caspar`,friday:`David`,saturday:`Bernard`,sunday:`Anna`},{monday:`Alex`,tuesday:`Anna`,wednesday:`Amalia`,thursday:`Arthur`,friday:`Alex`,saturday:`Andrea`,sunday:`Arnold`},{monday:`Helena`,tuesday:`Fabian`,wednesday:`Marie`,thursday:`Ben`,friday:`Marcus`,saturday:`Alex`,sunday:`Marcus`},{monday:`Fabian`,tuesday:`Helena`,wednesday:`Fabian`,thursday:`Maya`,friday:`Ben`,saturday:`Alex`,sunday:`Helena`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Hong`,tuesday:`Alex`,wednesday:`Kevin`,thursday:`Maya`,friday:`Fabian`,saturday:`Helena`,sunday:`Alex`},{monday:`Samuel`,tuesday:`Selena`,wednesday:`Sandra`,thursday:`Salim`,friday:`Robert`,saturday:`Richard`,sunday:`Pamela`},{monday:`Samuel`,tuesday:`Selena`,wednesday:`Sandra`,thursday:`Salim`,friday:`Robert`,saturday:`Richard`,sunday:`Pamela`},{monday:`Finn`,tuesday:`Roger`,wednesday:`Christian`,thursday:`Caspar`,friday:`David`,saturday:`Bernard`,sunday:`Anna`}];function ns(e){let{dummyClickEventHandler:t}=Fa(),n={onClick:t};return(0,G.jsx)(M,{...e,_on:n})}var rs={horizontal:[[{label:`Workdays`,colSpan:5,width:500},{label:`Weekend`,colSpan:2,width:200}],[{key:`monday`,label:`Monday`,render:(e,t)=>{let{label:n}=t;is(e,(0,G.jsx)(ns,{_label:n,style:{fontSize:`75%`}}))},compareFn:(e,t)=>e.monday<t.monday?-1:+(e.monday>t.monday),sortDirection:`ASC`,textAlign:`right`,width:100},{key:`tuesday`,label:`Tuesday`,render:(e,t)=>{let{label:n}=t;is(e,(0,G.jsx)(he,{_color:`#060`,_label:n}))},compareFn:(e,t)=>e.tuesday<t.tuesday?-1:+(e.tuesday>t.tuesday),sortDirection:`DESC`,width:100},{key:`wednesday`,label:`Wednesday`,render:(e,t)=>{let{label:n}=t;is(e,(0,G.jsx)(he,{_color:`#006`,_label:n}))},width:110},{key:`thursday`,label:`Thursday`,render:(e,t)=>{let{label:n}=t;is(e,(0,G.jsx)(he,{_color:`#600`,_label:n}))},width:100},{key:`friday`,label:`Friday`,render:(e,t)=>{let{label:n}=t;is(e,(0,G.jsx)(he,{_color:`#303`,_label:n}))},width:100},{key:`saturday`,label:`Saturday`,render:(e,t)=>{let{label:n}=t;is(e,(0,G.jsx)(he,{_color:`#330`,_label:n}))},width:100},{key:`sunday`,label:`Sunday`,render:(e,t)=>{let{label:n}=t;is(e,(0,G.jsx)(he,{_color:`#033`,_label:n}))},width:100}]],vertical:[[{label:`Early`,width:100},{label:`Noon`,width:100},{label:`Evening`,width:100},{label:`Night`,width:100}]]},is=(e,t)=>{let n=document.createElement(`div`);n.setAttribute(`role`,`presentation`),e.innerHTML=``,e.appendChild(n),es(n).render(t)},as={handout:{basic:()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[auto_1fr_1fr] items-center`,children:[(0,G.jsx)(je,{className:`block w-75px`,_labeled:!1}),(0,G.jsx)(F,{_label:``,_level:1,children:(0,G.jsxs)(`span`,{slot:`expert`,children:[`Kolibri-Handout `,(0,G.jsxs)(`small`,{children:[`for `,lo(co())]})]})}),(0,G.jsxs)(ve,{_label:`Abstract`,_open:!0,children:[`The handout shows a selection of KoliBri components in the style of `,(0,G.jsx)(`strong`,{children:lo(co())}),`. Since KoliBri offers self-contained, accessible web components that can be customized to your own corporate design using theming, you don't have to develop these components yourself. For more information read our documentation and follow us (`,(0,G.jsx)(z,{_label:`https://github.com/public-ui/kolibri`,_href:`https://github.com/public-ui/kolibri`,_target:`_blank`}),`).`]})]}),(0,G.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-6 md:grid-cols-6 xl:grid-cols-12`,children:[(0,G.jsx)(P,{className:`col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2`,_label:`Heading`,_level:2,children:(0,G.jsxs)(`div`,{slot:``,className:`grid gap-2 p-2`,children:[(0,G.jsx)(F,{_label:`Heading Level 1`,_level:1}),(0,G.jsx)(F,{_label:`Heading Level 2`,_level:2}),(0,G.jsx)(F,{_label:`Heading Level 3`,_level:3}),(0,G.jsx)(F,{_label:`Heading Level 4`,_level:4}),(0,G.jsx)(F,{_label:`Heading Level 5`,_level:5}),(0,G.jsx)(F,{_label:`Heading Level 6`,_level:6}),(0,G.jsx)(F,{_label:`Heading Level 6`,_secondaryHeadline:`Lessons`,_level:6})]})}),(0,G.jsx)(P,{className:`col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2`,_label:`Abbreviation and Progress`,_level:2,children:(0,G.jsxs)(`div`,{slot:``,className:`grid gap-2 p-2`,children:[(0,G.jsxs)(`p`,{children:[`I am `,(0,G.jsx)(fe,{children:`e.g.`}),` an abbreviation.`]}),(0,G.jsx)(Ie,{_variant:`bar`,_max:100,_value:33,_label:`Progress`}),(0,G.jsx)(Ie,{_variant:`cycle`,_max:100,_value:66,_label:`Progress`})]})}),(0,G.jsx)(P,{className:`col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-3`,_label:`Button, LinkButton and Tab`,_level:2,children:(0,G.jsx)(`div`,{slot:``,className:`grid gap-2 p-2`,children:(0,G.jsxs)(Ge,{_label:``,_selected:0,_tabs:[{_label:`Button`},{_label:`LinkButton`},{_label:`Disabled Tab`,_disabled:!0}],children:[(0,G.jsxs)(`div`,{className:`grid gap-2 py-2`,children:[(0,G.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,G.jsx)(M,{_icons:{left:`kolicon-chevron-left`},_label:`primary`,_variant:`primary`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_icons:{left:`kolicon-chevron-left`},_label:`primary`,_variant:`primary`,_on:t}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-chevron-left`,_label:`primary`,_variant:`primary`,_on:t})]}),(0,G.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,G.jsx)(M,{_icons:{right:`kolicon-chevron-right`},_label:`secondary`,_variant:`secondary`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_icons:{right:`kolicon-chevron-right`},_label:`secondary`,_variant:`secondary`,_on:t}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-chevron-right`,_label:`secondary`,_variant:`secondary`,_on:t})]}),(0,G.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,G.jsx)(M,{_icons:{top:`kolicon-chevron-up`},_label:`danger`,_variant:`danger`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_icons:{top:`kolicon-chevron-up`},_label:`danger`,_variant:`danger`,_on:t}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-chevron-up`,_label:`danger`,_variant:`danger`,_on:t})]}),(0,G.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,G.jsx)(M,{_icons:{bottom:`kolicon-chevron-down`},_label:`normal`,_variant:`normal`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_icons:{bottom:`kolicon-chevron-down`},_label:`normal`,_variant:`normal`,_on:t}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-chevron-down`,_label:`normal`,_variant:`normal`,_on:t})]}),(0,G.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,G.jsx)(M,{_label:`ghost`,_variant:`ghost`}),(0,G.jsx)(M,{_disabled:!0,_label:`ghost`,_variant:`ghost`}),(0,G.jsx)(M,{_icons:`kolicon-house`,_hideLabel:!0,_label:`ghost`,_variant:`ghost`,_on:t})]})]}),(0,G.jsxs)(`div`,{className:`grid gap-2 py-2`,children:[(0,G.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,G.jsx)(B,{_href:`#/back-page`,_icons:{left:`kolicon-chevron-left`},_label:`primary`,_variant:`primary`}),(0,G.jsx)(B,{_href:`#/back-page`,_icons:{left:`kolicon-chevron-left`},_label:`primary`,_variant:`primary`}),(0,G.jsx)(B,{_href:`#/back-page`,_hideLabel:!0,_icons:`kolicon-chevron-left`,_label:`primary`,_variant:`primary`})]}),(0,G.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,G.jsx)(B,{_href:`#/back-page`,_icons:{right:`kolicon-chevron-right`},_label:`secondary`,_variant:`secondary`}),(0,G.jsx)(B,{_href:`#/back-page`,_icons:{right:`kolicon-chevron-right`},_label:`secondary`,_variant:`secondary`}),(0,G.jsx)(B,{_href:`#/back-page`,_hideLabel:!0,_icons:`kolicon-chevron-right`,_label:`secondary`,_variant:`secondary`})]}),(0,G.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,G.jsx)(B,{_href:`#/back-page`,_icons:{top:`kolicon-chevron-up`},_label:`danger`,_variant:`danger`}),(0,G.jsx)(B,{_href:`#/back-page`,_icons:{top:`kolicon-chevron-up`},_label:`danger`,_variant:`danger`}),(0,G.jsx)(B,{_href:`#/back-page`,_hideLabel:!0,_icons:`kolicon-chevron-up`,_label:`danger`,_variant:`danger`})]}),(0,G.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,G.jsx)(B,{_href:`#/back-page`,_icons:{bottom:`kolicon-chevron-down`},_label:`normal`,_variant:`normal`}),(0,G.jsx)(B,{_href:`#/back-page`,_icons:{bottom:`kolicon-chevron-down`},_label:`normal`,_variant:`normal`}),(0,G.jsx)(B,{_href:`#/back-page`,_hideLabel:!0,_icons:`kolicon-chevron-down`,_label:`normal`,_variant:`normal`})]}),(0,G.jsxs)(`div`,{className:`grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center`,children:[(0,G.jsx)(B,{_href:`#/back-page`,_label:`ghost`,_variant:`ghost`}),(0,G.jsx)(B,{_href:`#/back-page`,_label:`ghost`,_variant:`ghost`}),(0,G.jsx)(B,{_href:`#/back-page`,_icons:`kolicon-house`,_hideLabel:!0,_label:`ghost`,_variant:`ghost`})]})]})]})})}),(0,G.jsx)(P,{className:`col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2`,_label:`Accordion, Link and ButtonLink`,_level:2,children:(0,G.jsxs)(`div`,{slot:``,className:`grid gap-2 p-2`,children:[(0,G.jsx)(j,{_label:`Links`,_level:3,_open:!0,children:(0,G.jsxs)(`div`,{className:`grid gap-2`,slot:``,children:[(0,G.jsx)(z,{_href:`#/back-page`,_label:`Link text`}),(0,G.jsx)(z,{_href:`#/back-page`,_icons:`kolicon-house`,_label:`Link text with icon`}),(0,G.jsx)(z,{_href:`#/back-page`,_icons:`kolicon-house`,_hideLabel:!0,_label:`Link text with icon only`}),(0,G.jsx)(z,{_href:`/`,_label:`Visited link`}),(0,G.jsxs)(`p`,{children:[`I am a `,(0,G.jsx)(z,{_href:`#/back-page`,_label:`externer Link`,_target:`w3c`}),` in the running text.`]})]})}),(0,G.jsx)(j,{_label:`ButtonLinks`,_level:3,children:(0,G.jsxs)(`div`,{className:`grid gap-2`,slot:``,children:[(0,G.jsx)(N,{_label:`Link text`}),(0,G.jsx)(N,{_icons:`kolicon-house`,_label:`Link text with icon`}),(0,G.jsx)(N,{_icons:`kolicon-house`,_hideLabel:!0,_label:`Link text with icon only`}),(0,G.jsxs)(`p`,{children:[`I am a `,(0,G.jsx)(N,{_label:`Link`}),` in the running text.`]}),(0,G.jsx)(N,{_icons:{left:`kolicon-chevron-left`,right:`kolicon-chevron-right`,top:`kolicon-chevron-up`,bottom:`kolicon-chevron-down`},_label:`Icons`})]})})]})}),(0,G.jsx)(P,{className:`col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-3`,_label:`Alert`,_level:2,children:(0,G.jsxs)(`div`,{slot:``,className:`grid gap-2 p-2`,children:[(0,G.jsx)(pe,{_label:`Default message`,_type:`default`,children:`This is the text of the alert.`}),(0,G.jsx)(pe,{_type:`success`,children:`Success message text`}),(0,G.jsx)(pe,{_type:`error`,_hasCloser:!0,children:`This is a error message text.`}),(0,G.jsx)(pe,{_label:`Info card`,_type:`info`,_variant:`card`,children:`This is the text of the alert.`}),(0,G.jsx)(pe,{_label:`Warning card`,_type:`warning`,_hasCloser:!0,_variant:`card`,children:`This is the text of the alert.`})]})}),(0,G.jsx)(P,{className:`col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2`,_label:`Nav and Breadcrumb`,_level:2,children:(0,G.jsxs)(`div`,{slot:``,className:`grid gap-2 p-2`,children:[(0,G.jsx)(`div`,{children:(0,G.jsx)(Ne,{_label:`Main navigation`,_links:[{_label:`Homepage`,_icons:`kolicon-house`,_href:`#/back-page`},{_label:`2 Navigation point`,_icons:`kolicon-house`,_href:`#/back-page`},{_active:!0,_label:`3 Navigation point`,_href:`#/back-page`,_icons:`kolicon-house`,_children:[{_label:`3.1 Navigation point`,_icons:`kolicon-house`,_href:`#/back-page`},{_label:`3.2 External navigation point`,_icons:`kolicon-house`,_href:`#/back-page`,_target:`_blank`},{_label:`3.3 Navigation point`,_href:`#/back-page`,_icons:`kolicon-house`,_children:[{_active:!0,_label:`3.3.1 Navigation point (active)`,_icons:`kolicon-house`,_href:`#/back-page`},{_label:`3.3.2 Navigation point`,_icons:`kolicon-house`,_href:`#/back-page`}]}]},{_label:`3 Navigation point`,_icons:`kolicon-house`,_href:`#/back-page`}],_hasCompactButton:!0})}),(0,G.jsx)(`div`,{children:(0,G.jsx)(ge,{_label:`Breadcrumb aus Text-Links`,_links:[{_label:`Homepage`,_href:`#/back-page`},{_label:`Bottom of the homepage`,_href:`#/back-page`},{_label:`Underside of the underside`,_href:`#/back-page`}]})})]})}),(0,G.jsx)(P,{className:`col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5`,_label:`Input`,_level:2,children:(0,G.jsx)(xe,{slot:``,children:(0,G.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2 md:grid-cols-3 p-2`,children:[(0,G.jsx)(we,{_label:`Color`}),(0,G.jsx)(Ee,{_label:`Upload file`}),(0,G.jsx)(De,{_label:`Number input`}),(0,G.jsx)(L,{_type:`date`,_label:`Date`}),(0,G.jsx)(Te,{_icons:`{'left': 'kolicon-house'}`,_msg:{_type:`error`,_description:`Test of an error message`},_touched:!0,_label:`E-mail address`}),(0,G.jsx)(R,{_hint:`I am a hint.`,_label:`First name`}),(0,G.jsx)(Oe,{_label:`password`}),(0,G.jsx)(Re,{_options:`[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]`,_label:`Stimmung`}),(0,G.jsx)(Ae,{_min:0,_max:50,_value:25,_label:`Slider`}),(0,G.jsx)(ke,{className:`herr-frau`,_options:`[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]`,_value:`1`,_label:`Salutation`}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(ke,{_orientation:`horizontal`,_options:`[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]`,_value:`0`,_label:`Salutation`}),(0,G.jsx)(I,{_label:``,children:(0,G.jsxs)(`span`,{slot:`expert`,children:[`I accept the `,(0,G.jsx)(fe,{children:`AGB`}),`.`]})})]}),(0,G.jsx)(H,{_rows:4,_label:`Textarea`})]})})}),(0,G.jsx)(P,{className:`col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5`,_label:`Table with Pagination`,_level:2,children:(0,G.jsx)(`div`,{slot:``,className:`gap-2 p-2 flex flex-col`,children:(0,G.jsx)(V,{_label:`Table`,_headers:rs,_data:ts,_pagination:!0})})})]}),(0,G.jsx)(Ye,{_label:`5.0.2-test.2`})]})}}},os={heading:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolHeading renders a heading with the given level.`})}),(0,G.jsxs)(K,{id:`basic`,children:[(0,G.jsx)(F,{_label:`I'm a H1-heading`,_level:1}),(0,G.jsx)(F,{_label:`I'm a H2-heading`,_level:2}),(0,G.jsx)(F,{_label:`I'm a H3-heading`,_level:3}),(0,G.jsx)(F,{_label:`I'm a H4-heading`,_level:4}),(0,G.jsx)(F,{_label:`I'm a H5-heading`,_level:5}),(0,G.jsx)(F,{_label:`I'm a H6-heading`,_level:6})]})]}),badge:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample shows KolHeading with its different levels and content provided using the export slot instead of the `,(0,G.jsx)(`code`,{children:`_label`}),`-property.`]})}),(0,G.jsxs)(K,{id:`badged`,children:[(0,G.jsx)(F,{_label:``,_level:1,children:(0,G.jsxs)(`span`,{slot:`expert`,children:[`A heading with a `,(0,G.jsx)(he,{_label:`Label`})]})}),(0,G.jsx)(F,{_label:``,_level:2,children:(0,G.jsxs)(`span`,{slot:`expert`,children:[`A heading with a `,(0,G.jsx)(he,{_color:`#86ffc6`,_label:`Label`})]})}),(0,G.jsx)(F,{_label:``,_level:3,children:(0,G.jsxs)(`span`,{slot:`expert`,children:[`A heading with a `,(0,G.jsx)(he,{_color:`#06539e`,_label:`Label`})]})}),(0,G.jsx)(F,{_label:``,_level:4,children:(0,G.jsxs)(`span`,{slot:`expert`,children:[`A heading with a `,(0,G.jsx)(he,{_color:`#ae0000`,_label:`Label`})]})}),(0,G.jsx)(F,{_label:``,_level:5,children:(0,G.jsxs)(`span`,{slot:`expert`,children:[`A heading with a `,(0,G.jsx)(he,{_color:`#8b008b`,_label:`Label`})]})}),(0,G.jsx)(F,{_label:``,_level:6,children:(0,G.jsxs)(`span`,{slot:`expert`,children:[`A heading with a `,(0,G.jsx)(he,{_color:`#ffc0cb`,_label:`Label`})]})})]})]}),paragraph:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolHeading with its different levels combined with some text content each.`})}),(0,G.jsxs)(K,{id:`paragraph`,children:[(0,G.jsx)(F,{_label:`Ich bin eine H1-Überschrift`,_level:1}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.`}),(0,G.jsx)(F,{_label:`Ich bin eine H2-Überschrift`,_level:2}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.`}),(0,G.jsx)(F,{_label:`Ich bin eine H3-Überschrift`,_level:3}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.`}),(0,G.jsx)(F,{_label:`Ich bin eine H4-Überschrift`,_level:4}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.`}),(0,G.jsx)(F,{_label:`Ich bin eine H5-Überschrift`,_level:5}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.`}),(0,G.jsx)(F,{_label:`Ich bin eine H6-Überschrift`,_level:6}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.`})]})]}),secondary:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample shows KolHeading with the prop `,(0,G.jsx)(`code`,{children:`_secondaryHeadline`}),` in use.`]})}),(0,G.jsx)(K,{id:`secondary`,children:(0,G.jsx)(F,{_label:`This is a H1 headline`,_secondaryHeadline:`This is a secondary headline`,_level:1})})]})}},ss={icon:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolIcon renders codicon icons. This sample shows regular icons and one with a custom style-property, changing the icon color.`})}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(Se,{className:`block`,_label:`Alert Info Icon`,_icons:`kolicon-alert-info`}),(0,G.jsx)(Se,{className:`block`,_label:`Kolibri Icon`,_icons:`kolicon-kolibri`}),(0,G.jsx)(Se,{className:`block`,_label:`House Icon`,_icons:`kolicon-house`}),(0,G.jsx)(Se,{className:`block`,_label:`Settings Icon`,_icons:`kolicon-settings`}),(0,G.jsx)(Se,{className:`block`,_label:`Pin Icon (pinned)`,_icons:`kolicon-pin-pinned`}),(0,G.jsx)(Se,{className:`block`,_label:`Pin Icon (unpinned)`,_icons:`kolicon-pin-unpinned`}),(0,G.jsx)(Se,{className:`block w-[1em] h-[1em]`,style:{color:`red`},_label:`House Icon`,_icons:`kolicon-house`}),(0,G.jsx)(Se,{className:`block`,_label:`Plus Icon`,_icons:`codicon codicon-plus`})]})]}),"all-kolicons":()=>{let[e,t]=(0,E.useState)({}),[n,r]=(0,E.useState)(null);return(0,E.useEffect)(()=>{let e=new AbortController;return fetch(`assets/kolicons/kolicons.json`,{signal:e.signal}).then(e=>{if(!e.ok)throw Error(`Failed to load kolicons: ${e.status} ${e.statusText}`.trim());return e.json()}).then(e=>{t(e)}).catch(t=>{if(e.signal.aborted)return;let n=t instanceof Error?t.message:`Failed to load kolicons`;r(n),console.error(t)}),()=>e.abort()},[]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows all kolicons with their names.`})}),n&&(0,G.jsx)(pe,{_alert:!0,_label:`Kolicons could not be loaded`,_type:`error`,children:n}),(0,G.jsx)(`div`,{className:`grid grid-cols-2 gap-8 p-8`,children:Object.entries(e).map(([e])=>(0,G.jsxs)(`div`,{className:`flex gap-4`,children:[(0,G.jsx)(Se,{_label:`Icon ${e}`,_icons:`kolicon-`+e}),(0,G.jsxs)(`span`,{children:[`kolicon-`,e]})]},e))})]})},font:()=>{let[e]=$r(),t=e.get(`theme`)??co(),n=(0,E.useMemo)(()=>t?$a(t,`iconVariants`):[],[t]),r=(0,E.useMemo)(()=>t?$a(t,`iconVariantsButton`):[],[t]),i=(0,E.useMemo)(()=>t?$a(t,`iconVariantsInput`):[],[t]),a=Array.isArray(n)&&n.length>0,o=Array.isArray(r)&&r.length>0,s=Array.isArray(i)&&i.length>0;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolIcon renders different icon fonts depending on your theme.`})}),(0,G.jsx)(K,{id:`icons`,className:`grid grid-cols-2 gap-8 p-8`,skipSnapshot:!a,children:a?n.map(e=>(0,G.jsxs)(`div`,{className:`flex gap-4`,children:[(0,G.jsx)(Se,{_label:e,_icons:e}),(0,G.jsxs)(`span`,{children:[`<KolIcon _icons='`,e,`' _label="`,e,`" />`]})]},e)):(0,G.jsx)(`p`,{children:`This theme has no variants for icons.`})}),(0,G.jsx)(K,{id:`buttons`,className:`grid grid-cols-2 gap-8 p-8`,skipSnapshot:!o,children:o?r.map(e=>(0,G.jsxs)(`div`,{className:`flex gap-4 items-center`,children:[(0,G.jsx)(M,{_icons:e,_label:`Button`,_variant:`primary`}),(0,G.jsxs)(`span`,{children:[`<KolButton _icons='`,e,`' _label="Button" _variant="primary" />`]})]},e)):(0,G.jsx)(`p`,{children:`This theme has no variants for icons in buttons.`})}),(0,G.jsx)(K,{id:`inputs`,className:`grid gap-8 p-8`,skipSnapshot:!s,children:s?i.map(e=>(0,G.jsxs)(`div`,{className:`flex gap-4 items-center`,children:[(0,G.jsx)(R,{_icons:e,_label:`Input with Icon`}),(0,G.jsxs)(`span`,{children:[`<KolInputText _icons='`,e,`' _label="Input with Icon" />`]})]},e)):(0,G.jsx)(`p`,{children:`This theme has no variants for icons in inputs.`})})]})}}},cs={image:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolImage renders an image. The sample shows an image with alternative text.`})}),(0,G.jsx)(K,{id:`basic`,fitContent:!0,children:(0,G.jsx)(Ce,{_alt:`KoliBri design system illustration showing three people working on laptops surrounded by UI components, charts, and the KoliBri hummingbird logo`,_src:`assets/sample-image.png`,className:`w-image`})})]}),events:()=>{let[e,t]=(0,E.useState)([]),[n,r]=(0,E.useState)([]),[i,a]=(0,E.useState)([]),[o,s]=(0,E.useState)([]),c=(0,E.useRef)(null);return(0,E.useEffect)(()=>{let e=c.current;if(!e)return;let t=()=>a(e=>[...e,new Date().toLocaleTimeString()]),n=()=>s(e=>[...e,new Date().toLocaleTimeString()]);return e.addEventListener(`error`,t),e.addEventListener(`load`,n),()=>{e.removeEventListener(`error`,t),e.removeEventListener(`load`,n)}},[]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolImage fires both _on.onError / _on.onLoad callbacks and native error / load DOM events on the host element.`})}),(0,G.jsx)(`h3`,{children:`Via _on prop`}),(0,G.jsx)(Ce,{_alt:`This image will fail to load`,_src:`/this-image-does-not-exist.png`,_on:{onError:()=>t(e=>[...e,new Date().toLocaleTimeString()]),onLoad:()=>r(e=>[...e,new Date().toLocaleTimeString()])}}),(0,G.jsxs)(`p`,{children:[`onError fired: `,e.length===0?`not yet`:e.join(`, `)]}),(0,G.jsxs)(`p`,{children:[`onLoad fired: `,n.length===0?`not yet`:n.join(`, `)]}),(0,G.jsx)(`h3`,{children:`Via native addEventListener`}),(0,G.jsx)(Ce,{ref:c,_alt:`KoliBri design system illustration`,_src:`sample-image.png`,className:`w-image`}),(0,G.jsxs)(`p`,{children:[`native error fired: `,i.length===0?`not yet`:i.join(`, `)]}),(0,G.jsxs)(`p`,{children:[`native load fired: `,o.length===0?`not yet`:o.join(`, `)]})]})}}},ls=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...i(`unchecked`),children:(0,G.jsx)(I,{...n,_label:`Not selected`,_value:!1,_required:!0})}),(0,G.jsx)(K,{...i(`indeterminate`),children:(0,G.jsx)(I,{...n,_label:`Indeterminate`,_value:null,_indeterminate:!0})}),(0,G.jsx)(K,{...i(`checked`),children:(0,G.jsx)(I,{...n,ref:r,_accessKey:`A`,_checked:!0,_label:`Selected`,_tooltipAlign:`right`,_value:!0})}),(0,G.jsx)(K,{...i(`long-label`),children:(0,G.jsx)(I,{...n,_checked:!0,_icons:{unchecked:`ckolicon-cross`},_label:`With a very long label and upheavals `.repeat(5),_value:!0})}),(0,G.jsx)(K,{...i(`disabled`),children:(0,G.jsx)(I,{...n,_disabled:!0,_label:`Disabled`,_value:!0,_hint:`Hint text`})}),(0,G.jsx)(K,{...i(`checked-disabled`),children:(0,G.jsx)(I,{...n,_checked:!0,_disabled:!0,_label:`Checked and disabled`})}),(0,G.jsx)(K,{...i(`indet-disabled`),children:(0,G.jsx)(I,{...n,_indeterminate:!0,_disabled:!0,_label:`Indeterminate and disabled`})}),(0,G.jsx)(K,{...i(`error`),children:(0,G.jsx)(I,{...n,_msg:{_type:`error`,_description:q},_label:`With error`,_touched:!0,_value:!0,_hint:`Hint text`,_required:!0})}),(0,G.jsx)(K,{...i(`access-key`),children:(0,G.jsx)(I,{...n,_label:`With access key`,_accessKey:`c`,_value:null})}),(0,G.jsx)(K,{...i(`short-key`),children:(0,G.jsx)(I,{...n,_label:`With short key`,_shortKey:`s`,_value:null})}),(0,G.jsx)(K,{...i(`info-popover`),children:(0,G.jsx)(I,{...n,_label:`With popover`,_value:!1,_required:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`},children:(0,G.jsx)(`span`,{slot:`expert`,children:`Expert Slot & required`})})})]})}),us=(0,E.forwardRef)(function(e,t){return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Label align "left" with label`,children:(0,G.jsx)(ls,{blockIdPrefix:`left`,...e,_labelAlign:`left`})}),(0,G.jsx)(Po,{heading:`Label align "left" without Label (hideLabel)`,children:(0,G.jsx)(ls,{blockIdPrefix:`left-hide`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0,_labelAlign:`left`})})]}),(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Label align "right" with label`,children:(0,G.jsx)(ls,{blockIdPrefix:`right`,...e})}),(0,G.jsx)(Po,{heading:`Label align "right" without Label (hideLabel)`,children:(0,G.jsx)(ls,{blockIdPrefix:`right-hide`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0})})]})]})}),ds=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolInputCheckbox renders a checkbox. The sample shows KolInputCheckbox in a form context with all variations and states.`})}),(0,G.jsx)(Mo,{RefComponent:us,showButtons:!1})]}),fs=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolInputCheckbox in the variant "button".`})}),(0,G.jsx)(Mo,{RefComponent:us,_variant:`button`,showButtons:!1})]}),ps=()=>{let[e,t]=(0,E.useState)([]),n=(0,E.useCallback)(e=>{t(t=>[`${new Date().toISOString().slice(11,23)} ${e}`,...t].slice(0,8))},[]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Clicking the label text while the checkbox is already focused must `,(0,G.jsx)(`strong`,{children:`not`}),` fire a spurious `,(0,G.jsx)(`code`,{children:`onBlur`}),`. To verify the fix: focus the checkbox (Tab or first click), then click its label text again — the event log should show only `,(0,G.jsx)(`code`,{children:`onChange`}),`, `,(0,G.jsx)(`strong`,{children:`not`}),` `,(0,G.jsx)(`code`,{children:`onBlur`}),` followed by `,(0,G.jsx)(`code`,{children:`onFocus`}),`.`]})}),(0,G.jsx)(I,{_label:`Accept terms and conditions`,_on:{onFocus:()=>n(`onFocus`),onBlur:()=>n(`onBlur`),onChange:(e,t)=>n(`onChange → ${String(t)}`)}}),(0,G.jsxs)(`section`,{style:{marginTop:`1rem`},children:[(0,G.jsx)(`p`,{children:(0,G.jsx)(`strong`,{children:`Event log (newest first):`})}),e.length===0?(0,G.jsx)(`p`,{children:`No events yet.`}):(0,G.jsx)(`ol`,{style:{fontFamily:`monospace`,fontSize:`0.875rem`},children:e.map((e,t)=>(0,G.jsx)(`li`,{children:e},t))})]})]})},ms=({label:e,blockId:t,renderInput:n})=>{let[r,i]=(0,E.useState)(null),[a,o]=(0,E.useState)(null),s=(0,E.useMemo)(()=>({onChange:(e,t)=>{i(t)},onInput:(e,t)=>{o(t)}}),[]);return(0,G.jsxs)(K,{id:t??ya(e),className:`grid gap-4 mb-6`,"aria-label":`Event callback demo: ${e}`,children:[n(s),(0,G.jsxs)(`div`,{className:`grid gap-2`,children:[(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`strong`,{children:`onInput value:`}),` `,(0,G.jsx)(`code`,{children:JSON.stringify(a)})]}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`strong`,{children:`onChange value:`}),` `,(0,G.jsx)(`code`,{children:JSON.stringify(r)})]})]})]})},hs={"input-checkbox":{basic:ds,"get-value":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolInputCheckbox`,renderInput:e=>(0,G.jsx)(I,{_label:`Accept terms`,_on:e})})]}),"focus-events":ps,switch:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolInputCheckbox in the variant "switch".`})}),(0,G.jsx)(Mo,{RefComponent:us,_variant:`switch`,showButtons:!1})]}),button:fs}},gs=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...i(`black-bg`),className:`black-background`,children:(0,G.jsx)(we,{...n,_msg:{_type:`error`,_description:q},_icons:{left:`kolicon-kolibri`},_label:`Color (Black background test)`,_value:`#f08080`})}),(0,G.jsx)(K,{...i(`suggestions-error`),children:(0,G.jsx)(we,{...n,_msg:{_type:`error`,_description:q},_label:`Color with error and suggestions`,_suggestions:`['#000000','#f08080', '#0000ff','#00ff00']`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-info`),children:(0,G.jsx)(we,{...n,_msg:{_type:`info`,_description:`Just a hint message.`},_label:`Color`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-warning`),children:(0,G.jsx)(we,{...n,_msg:{_type:`warning`,_description:`Small warning`},_label:`Color`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-success`),children:(0,G.jsx)(we,{...n,_msg:{_type:`success`,_description:`Success message`},_label:`Color`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-default`),children:(0,G.jsx)(we,{...n,_msg:{_type:`default`,_description:`Default message`},_label:`Color`,_touched:!0})}),(0,G.jsx)(K,{...i(`hint`),children:(0,G.jsx)(we,{...n,ref:r,_accessKey:`C`,_hint:`Hint text`,_label:`Color with hint`,_value:`#f08080`})}),(0,G.jsx)(K,{...i(`disabled`),children:(0,G.jsx)(we,{...n,_disabled:!0,_label:`Color (Disabled)`,_value:`#f08080`})}),(0,G.jsx)(K,{...i(`access-key`),children:(0,G.jsx)(we,{...n,_label:`With access key`,_accessKey:`c`})}),(0,G.jsx)(K,{...i(`short-key`),children:(0,G.jsx)(we,{...n,_label:`With short key`,_shortKey:`s`})}),(0,G.jsx)(K,{...i(`info-popover`),children:(0,G.jsx)(we,{...n,_label:`With short popover`,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})})]})}),_s=(0,E.forwardRef)(function(e,t){return(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Color`,children:(0,G.jsx)(gs,{blockIdPrefix:`label`,...e})}),(0,G.jsx)(Po,{heading:`Color (hideLabel)`,children:(0,G.jsx)(gs,{blockIdPrefix:`hide-label`,snapshotOnly:`suggestions-error`,ref:t,...e,_hideLabel:!0})})]})}),vs={"input-color":{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolInputColor renders a color input. The sample shows KolInputColor in a form context with all variations and states.`})}),(0,G.jsx)(Mo,{RefComponent:_s,showButtons:!1})]}),"get-value":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolInputColor`,renderInput:e=>(0,G.jsx)(we,{_label:`Pick color`,_on:e})})]})}},ys=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...i(`black-bg`),className:`black-background`,children:(0,G.jsx)(L,{...n,_type:`date`,_label:`Date input (Black background test)`,_required:!0})}),(0,G.jsx)(K,{...i(`datetime-local`),children:(0,G.jsx)(L,{...n,_type:`datetime-local`,_label:`Local-Datetime (Standard)`,_required:!0})}),(0,G.jsx)(K,{...i(`datetime-seconds`),children:(0,G.jsx)(L,{...n,_step:1,_type:`datetime-local`,_hint:Ca,_msg:{_type:`error`,_description:q},_label:`Local datetime (with seconds)`,_required:!0,_touched:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,G.jsx)(K,{...i(`msg-info`),children:(0,G.jsx)(L,{...n,_msg:{_type:`info`,_description:`Just a hint`},_label:`Date`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-warning`),children:(0,G.jsx)(L,{...n,_msg:{_type:`warning`,_description:`Small warning`},_label:`Date`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-success`),children:(0,G.jsx)(L,{...n,_msg:{_type:`success`,_description:`Success message`},_label:`Date`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-default`),children:(0,G.jsx)(L,{...n,_msg:{_type:`default`,_description:`Default message`},_label:`Date`,_touched:!0})}),(0,G.jsx)(K,{...i(`month`),children:(0,G.jsx)(L,{...n,_type:`month`,_label:`Month`,_required:!0})}),(0,G.jsx)(K,{...i(`week`),children:(0,G.jsx)(L,{...n,ref:r,_accessKey:`W`,_type:`week`,_label:`Week`,_required:!0})}),(0,G.jsx)(K,{...i(`time`),children:(0,G.jsx)(L,{...n,_type:`time`,_label:`Time (standard)`,_required:!0})}),(0,G.jsx)(K,{...i(`time-seconds`),children:(0,G.jsx)(L,{...n,_step:1,_type:`time`,_label:`Time (with seconds)`,_required:!0})}),(0,G.jsx)(K,{...i(`readonly`),children:(0,G.jsx)(L,{...n,_readOnly:!0,_label:`Date input (read-only)`,_required:!0})}),(0,G.jsx)(K,{...i(`disabled`),children:(0,G.jsx)(L,{...n,_disabled:!0,_label:`Date input (Disabled)`,_required:!0})}),(0,G.jsx)(K,{...i(`access-key`),children:(0,G.jsx)(L,{...n,_label:`With access key`,_accessKey:`s`})}),(0,G.jsx)(K,{...i(`short-key`),children:(0,G.jsx)(L,{...n,_label:`With short key`,_shortKey:`s`})})]})}),bs=({blockIdPrefix:e,...t})=>{let n=new Date(`January 10, 2024, 12:00`),r=new Date(`October 20, 2024, 15:00`);return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{id:`${e}-date-iso`,children:(0,G.jsx)(L,{...t,_type:`date`,_label:`Date with Iso`,_min:`2024-09-26`,_max:`2024-09-27`})}),(0,G.jsx)(K,{id:`${e}-date-object`,children:(0,G.jsx)(L,{...t,_type:`date`,_label:`Date with Date`,_min:n,_max:r})}),(0,G.jsx)(K,{id:`${e}-time-iso`,children:(0,G.jsx)(L,{...t,_type:`time`,_label:`Time with Iso`,_min:`12:00`,_max:`15:00`})}),(0,G.jsx)(K,{id:`${e}-time-object`,children:(0,G.jsx)(L,{...t,_type:`time`,_label:`Time with Date`,_min:n,_max:r})}),(0,G.jsx)(K,{id:`${e}-datetime-iso`,children:(0,G.jsx)(L,{...t,_type:`datetime-local`,_label:`DayTime with Iso`,_min:`2024-09-26T12:00`,_max:`2024-09-27T15:00`})}),(0,G.jsx)(K,{id:`${e}-datetime-object`,children:(0,G.jsx)(L,{...t,_type:`datetime-local`,_label:`DayTime with Date`,_min:n,_max:r})}),(0,G.jsx)(K,{id:`${e}-week-iso`,children:(0,G.jsx)(L,{...t,_type:`week`,_label:`Week with Iso`,_min:`2024-W10`,_max:`2024-W50`})}),(0,G.jsx)(K,{id:`${e}-week-object`,children:(0,G.jsx)(L,{...t,_type:`week`,_label:`Week with Date`,_min:n,_max:r})}),(0,G.jsx)(K,{id:`${e}-month-iso`,children:(0,G.jsx)(L,{...t,_type:`month`,_label:`Month with Iso`,_min:`2024-02`,_max:`2024-10`})}),(0,G.jsx)(K,{id:`${e}-month-object`,children:(0,G.jsx)(L,{...t,_type:`month`,_label:`Month with Date`,_min:n,_max:r})})]})},xs=(0,E.forwardRef)(function(e,t){return(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Date`,children:(0,G.jsx)(ys,{blockIdPrefix:`label`,...e})}),(0,G.jsx)(Po,{heading:`Date (hideLabel)`,children:(0,G.jsx)(ys,{blockIdPrefix:`hide-label`,snapshotOnly:`datetime-seconds`,ref:t,...e,_hideLabel:!0})}),(0,G.jsx)(Po,{heading:`Date (with min/max)`,children:(0,G.jsx)(bs,{blockIdPrefix:`min-max`,...e})})]})}),Ss=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolInputDate renders all types of fields for date and time input. The sample shows KolInputDate in a form context with all variations and states.`})}),(0,G.jsx)(Mo,{RefComponent:xs,showButtons:!1})]}),Cs=e=>String(e).padStart(2,`0`),ws=(e,t,n)=>{let r=new Date(e,t-1,n);return r.getFullYear()===e&&r.getMonth()===t-1&&r.getDate()===n};function Ts(e){let t=/^\s*(\d{1,2})\.(\d{1,2})\.(\d{4})\s*$/.exec(e);if(!t)return null;let n=+t[1],r=+t[2],i=+t[3];return ws(i,r,n)?`${i}-${Cs(r)}-${Cs(n)}`:null}function Es(e){return e instanceof HTMLElement&&e.tagName===`KOL-INPUT-DATE`}async function Ds(e,t){typeof e.setIsoValue==`function`?await e.setIsoValue(t):e.value===void 0?e._value===void 0?e.setAttribute(`_value`,t):e._value=t:e.value=t,e.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0})),e.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}var Os=()=>{let[e,t]=(0,E.useState)(`31.12.2025`),[n,r]=(0,E.useState)(``),i=(0,E.useRef)(null),a=(0,E.useMemo)(()=>Ts(e),[e]);(0,E.useEffect)(()=>{let e=new AbortController;return document.addEventListener(`focusin`,e=>{let t=e.composedPath?.()??[];i.current=t.find(Es)??null},{capture:!0,signal:e.signal}),()=>e.abort()},[]),(0,E.useEffect)(()=>{let e=new AbortController;return document.addEventListener(`paste`,e=>{let t=i.current;if(!t)return;let n=Ts(e.clipboardData?.getData(`text`)??``);n?(e.preventDefault(),Ds(t,n),r(`Pasted.`)):r(`Clipboard: unrecognized date. Use DD.MM.YYYY.`)},{capture:!0,signal:e.signal}),()=>e.abort()},[]);let o=(0,E.useCallback)(async e=>{r(``);try{await navigator.clipboard.writeText(e),r(`Copied.`)}catch{r(`Copy failed. Your browser may block clipboard access.`)}},[]),s=(0,E.useCallback)((e,n)=>{e?.target&&t(typeof n==`string`?n:String(n??``))},[]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Type a date in German format (`,(0,G.jsx)(`code`,{children:`DD.MM.YYYY`}),`), click `,(0,G.jsx)(`em`,{children:`Copy to Clipboard`}),`, then paste it into the date field below with `,(0,G.jsx)(`kbd`,{children:`Ctrl`}),`+`,(0,G.jsx)(`kbd`,{children:`V`}),`. The ISO conversion happens internally.`]})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,lang:`en`,children:[(0,G.jsxs)(`section`,{"aria-labelledby":`de-title`,children:[(0,G.jsx)(`h3`,{id:`de-title`,className:`text-lg font-semibold mb-2`,children:`German date (DD.MM.YYYY)`}),(0,G.jsxs)(`div`,{className:`grid gap-3`,children:[(0,G.jsx)(R,{className:`w-full`,_label:`German date (DD.MM.YYYY)`,_placeholder:`e.g., 31.12.2025`,_value:e,_type:`text`,_on:{onInput:s,onChange:s}}),(0,G.jsx)(`p`,{className:`opacity-80`,id:`button-desc`,children:`Click the button to copy the exact German date, then paste it into the date field below.`}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(M,{_label:`Copy to Clipboard`,_on:{onClick:()=>o(e)},"aria-describedby":`button-desc`}),!a&&(0,G.jsx)(`span`,{className:`text-red-600`,children:`Invalid date`})]}),(0,G.jsx)(L,{_type:`date`,_label:`Date (paste here with Ctrl+V)`,className:`w-full`})]})]}),(0,G.jsx)(`p`,{"aria-live":`polite`,role:`status`,className:`mt-2 opacity-80`,children:n})]})]})},ks=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolInputDate`,renderInput:e=>(0,G.jsx)(L,{_label:`Date`,_on:e})})]}),As=()=>{let e=(0,E.useRef)(null);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample demonstrates the KolInputDate `,(0,G.jsx)(`code`,{children:`reset`}),`-Method, which can be used to clear the field, even when it holds incomplete or invalid values.`]})}),(0,G.jsx)(L,{className:`w-full`,ref:e,_label:`Resettable Input Date`,_value:`2024-02-10`}),(0,G.jsx)(M,{className:`mt`,_label:`Reset`,_on:{onClick:()=>e.current?.reset()}})]})},js=[`default`,`error`,`info`,`success`,`warning`];function Ms(e){return{onChange:()=>e(e=>!e)}}var Ns={"input-date":{basic:Ss,"get-value":ks,"copy-paste":Os,reset:As,"show-hide-msg":()=>{let[e,t]=(0,E.useState)(!0),[n,r]=(0,E.useState)(!0),[i,a]=(0,E.useState)(!1),o=Ms(t),s=Ms(r),c=Ms(a);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This example shows how messages work in input fields.`})}),(0,G.jsxs)(`div`,{className:`flex gap-4 flex-col`,children:[(0,G.jsxs)(`div`,{className:`flex gap-4 items-center`,children:[(0,G.jsx)(I,{_label:`Toggle Msg`,_on:o,_checked:e,_variant:`button`}),(0,G.jsx)(I,{_label:`Toggle Touched`,_on:s,_checked:n,_variant:`button`}),(0,G.jsx)(I,{_label:`Toggle Hide Msg`,_on:c,_checked:i,_variant:`button`})]}),(0,G.jsxs)(`pre`,{children:[`Message exists: `,e?`Yes`:`No`,` (showMsg: `,e?`Yes`:`No`,`)`,(0,G.jsx)(`br`,{}),`Non-Error-Message visible: `,e&&!i?`Yes`:`No`,` (showMsg: `,e?`Yes`:`No`,`, hideMsg: `,i?`Yes`:`No`,`)`,(0,G.jsx)(`br`,{}),`Error-Message visible: `,e&&n&&!i?`Yes`:`No`,` (showMsg: `,e?`Yes`:`No`,`, isTouched: `,n?`Yes`:`No`,`, hideMsg: `,i?`Yes`:`No`,`)`]}),js.map(t=>(0,G.jsx)(L,{_hideMsg:i,_label:`Date (_msg, ${t})`,_msg:e?{_description:`${t} message`,_type:t}:void 0,_touched:n},t))]})]})}}},Ps=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...i(`black-bg`),className:`black-background`,children:(0,G.jsx)(Te,{...n,_required:!0,_value:`test@mail.de`,_msg:{_type:`error`,_description:q},_label:`E-Mail (Black background test)`})}),(0,G.jsx)(K,{...i(`suggestions`),children:(0,G.jsx)(Te,{...n,ref:r,_accessKey:`M`,_placeholder:`elke@mustermann.de`,_suggestions:`['test1@mail.de', 'test2@mail.de', 'test3@mail.de']`,_label:`E-Mail (list)`,_hint:Ca,_msg:{_type:`error`,_description:q},_touched:!0,_icons:{left:{icon:`kolicon-chevron-left`},right:{icon:`kolicon-chevron-right`}}})}),(0,G.jsx)(K,{...i(`info-popover`),children:(0,G.jsx)(Te,{...n,_required:!0,_label:`E-Mail`,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,G.jsx)(K,{...i(`msg-info`),children:(0,G.jsx)(Te,{...n,_msg:{_type:`info`,_description:`Just a hint`},_label:`E-Mail`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-warning`),children:(0,G.jsx)(Te,{...n,_msg:{_type:`warning`,_description:`Small warning`},_label:`E-Mail`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-success`),children:(0,G.jsx)(Te,{...n,_msg:{_type:`success`,_description:`Success message`},_label:`E-Mail`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-default`),children:(0,G.jsx)(Te,{...n,_msg:{_type:`default`,_description:`Default message`},_label:`E-Mail`,_touched:!0})}),(0,G.jsx)(K,{...i(`disabled`),children:(0,G.jsx)(Te,{...n,_disabled:!0,_value:`test@mail.de`,_label:`E-Mail (Disabled)`})}),(0,G.jsx)(K,{...i(`readonly`),children:(0,G.jsx)(Te,{...n,_readOnly:!0,_value:`test@mail.de`,_label:`E-Mail (Readonly)`})}),(0,G.jsx)(K,{...i(`access-key`),children:(0,G.jsx)(Te,{...n,_value:`test@mail.de`,_label:`With access key`,_accessKey:`c`})}),(0,G.jsx)(K,{...i(`short-key`),children:(0,G.jsx)(Te,{...n,_value:`test@mail.de`,_label:`With short key`,_shortKey:`s`})})]})}),Fs=(0,E.forwardRef)(function(e,t){return(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Email`,children:(0,G.jsx)(Ps,{blockIdPrefix:`label`,...e})}),(0,G.jsx)(Po,{heading:`Email (hideLabel)`,children:(0,G.jsx)(Ps,{blockIdPrefix:`hide-label`,snapshotOnly:`suggestions`,ref:t,...e,_hideLabel:!0})})]})}),Is={"input-email":{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolInputEmail renders an email input field. The sample shows KolInputEmail in a form context with all variations and states.`})}),(0,G.jsx)(Mo,{RefComponent:Fs,showButtons:!1})]}),counter:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story showcases an email input with a counter for the chars in the field. Maximal length is 30.`})}),(0,G.jsx)(K,{id:`counter`,children:(0,G.jsx)(Te,{_label:`E-Mail`,_value:`anderson@example.com`,_hasCounter:!0,_maxLength:30})})]}),"get-value":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolInputEmail`,renderInput:e=>(0,G.jsx)(Te,{_label:`E-Mail`,_on:e})})]})}},Ls={onClick:()=>console.log(`click`),onChange:(e,t)=>console.log(`onChange `,e,t),onInput:(e,t)=>console.log(`onInput`,e,t)},Rs=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...i(`black-bg`),className:`black-background`,children:(0,G.jsx)(Ee,{...n,_label:`Upload file (Black background test)`,_icons:{left:{icon:`kolicon-up`}},_touched:!0,_on:Ls})}),(0,G.jsx)(K,{...i(`error`),children:(0,G.jsx)(Ee,{...n,_required:!0,_hint:Ca,_msg:{_type:`error`,_description:q},_label:`Upload file (Error State)`,_icons:{left:{icon:`kolicon-up`}},_touched:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,G.jsx)(K,{...i(`msg-info`),children:(0,G.jsx)(Ee,{...n,_msg:{_type:`info`,_description:`Just a hint`},_label:`Upload file`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-warning`),children:(0,G.jsx)(Ee,{...n,_msg:{_type:`warning`,_description:`Small warning`},_label:`Upload file`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-success`),children:(0,G.jsx)(Ee,{...n,_msg:{_type:`success`,_description:`Success message`},_label:`Upload file`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-default`),children:(0,G.jsx)(Ee,{...n,_msg:{_type:`default`,_description:`Default message`},_label:`Upload file`,_touched:!0})}),(0,G.jsx)(K,{...i(`multiple`),children:(0,G.jsx)(Ee,{...n,ref:r,_accessKey:`h`,_multiple:!0,_msg:{_type:`error`,_description:q},_label:`Upload file (Multiple)`})}),(0,G.jsx)(K,{...i(`disabled`),children:(0,G.jsx)(Ee,{...n,_disabled:!0,_label:`Upload file (Disabled)`})}),(0,G.jsx)(K,{...i(`access-key`),children:(0,G.jsx)(Ee,{...n,_label:`With access key`,_accessKey:`c`})}),(0,G.jsx)(K,{...i(`short-key`),children:(0,G.jsx)(Ee,{...n,_label:`With short key`,_shortKey:`s`})})]})}),zs=(0,E.forwardRef)(function(e,t){return(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`File`,children:(0,G.jsx)(Rs,{blockIdPrefix:`label`,...e})}),(0,G.jsx)(Po,{heading:`File (hideLabel)`,children:(0,G.jsx)(Rs,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0})})]})}),Bs={"input-file":{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolInputFile renders a file input field. The sample shows KolInputFile in a form context with all variations and states.`})}),(0,G.jsx)(Mo,{RefComponent:zs,showButtons:!1})]}),"get-value":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolInputFile`,renderInput:e=>(0,G.jsx)(Ee,{_label:`Upload file`,_on:e})})]})}},Vs=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...i(`black-bg`),className:`black-background`,children:(0,G.jsx)(De,{...n,_required:!0,_touched:!0,_value:123,_label:`Number input (Black background test)`})}),(0,G.jsx)(K,{...i(`icons-error`),children:(0,G.jsx)(De,{...n,_required:!0,_msg:{_type:`error`,_description:q},_touched:!0,_placeholder:`Mit Icons`,_label:`Number input`,_icons:{left:{icon:`kolicon-kolibri`},right:{icon:`kolicon-kolibri`}},_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,G.jsx)(K,{...i(`msg-error`),children:(0,G.jsx)(De,{...n,_required:!0,_msg:{_type:`error`,_description:q},_touched:!0,_value:123,_label:`Number input`})}),(0,G.jsx)(K,{...i(`msg-warning`),children:(0,G.jsx)(De,{...n,_required:!0,_msg:{_type:`warning`,_description:q},_touched:!0,_value:123,_label:`Number input`})}),(0,G.jsx)(K,{...i(`msg-info`),children:(0,G.jsx)(De,{...n,_required:!0,_msg:{_type:`info`,_description:q},_touched:!0,_value:123,_label:`Number input`})}),(0,G.jsx)(K,{...i(`msg-success`),children:(0,G.jsx)(De,{...n,_required:!0,_msg:{_type:`success`,_description:q},_touched:!0,_value:123,_label:`Number input`})}),(0,G.jsx)(K,{...i(`min-max-step`),children:(0,G.jsx)(De,{...n,ref:r,_accessKey:`Z`,_max:10,_min:-10,_step:2,_label:`Number input (-10 to 10 in steps of 2)`})}),(0,G.jsx)(K,{...i(`hint`),children:(0,G.jsx)(De,{...n,_hint:`Hint text`,_value:123,_label:`Number input with hint`})}),(0,G.jsx)(K,{...i(`readonly`),children:(0,G.jsx)(De,{...n,_readOnly:!0,_value:123,_label:`Number input (Readonly)`})}),(0,G.jsx)(K,{...i(`disabled`),children:(0,G.jsx)(De,{...n,_disabled:!0,_value:123,_label:`Number input (Disabled)`})}),(0,G.jsx)(K,{...i(`access-key`),children:(0,G.jsx)(De,{...n,_label:`With access key`,_accessKey:`c`})}),(0,G.jsx)(K,{...i(`short-key`),children:(0,G.jsx)(De,{...n,_label:`With short key`,_shortKey:`s`})})]})}),Hs=(0,E.forwardRef)(function(e,t){return(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Number`,children:(0,G.jsx)(Vs,{blockIdPrefix:`label`,...e})}),(0,G.jsx)(Po,{heading:`Number (hideLabel)`,children:(0,G.jsx)(Vs,{blockIdPrefix:`hide-label`,snapshotOnly:`msg-error`,ref:t,...e,_hideLabel:!0})})]})}),Us=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolInputNumber encompasses basic functionalities, utilizing the min, max, and step attributes to restrict the range of input values. Despite these constraints, it allows free input that can ignore the defined minimum and maximum values, as well as step sizes. The component intentionally does not emphasize validation rules, supporting examples without form validation, and refrains from additional validation through native HTML element validation.`})}),(0,G.jsx)(Mo,{RefComponent:Hs,showButtons:!1})]}),Ws=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolInputNumber`,renderInput:e=>(0,G.jsx)(De,{_label:`Amount`,_on:e})})]}),Gs=e=>e.type===`checkbox`,Ks=e=>e.type===`file`,qs=e=>e instanceof Date,Js=e=>e==null,Ys=e=>typeof e==`object`,Xs=e=>!Js(e)&&!Array.isArray(e)&&Ys(e)&&!qs(e),Zs=e=>Xs(e)&&e.target?Gs(e.target)?e.target.checked:Ks(e.target)?e.target.files:e.target.value:e,Qs=/[.[\]'"]/,$s=e=>e.split(Qs).filter(Boolean);function ec(e,t){let n=$s(t),r=e._formValues,i=e._defaultValues;for(let e=0;e<n.length-1;e++){let t=n[e];if(r=r==null?r:r[t],i=i==null?i:i[t],r===null||i===null)return null}}var tc=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),nc=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function rc(e){if(typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e);let t=typeof Blob<`u`&&e instanceof Blob,n=typeof FileList<`u`&&e instanceof FileList;if(nc&&(t||n))return e;let r=Array.isArray(e);if(!r&&e.constructor!==Object)return e;let i=r?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=rc(e[t]));return i}var ic={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},ac={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},oc={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},sc=[oc.required,oc.min,oc.max,oc.minLength,oc.maxLength,oc.pattern,oc.validate],cc=`form`,lc=`root`,uc=[`__proto__`,`constructor`,`prototype`],dc=/^\w*$/,fc=e=>dc.test(e),pc=e=>e===void 0,X=(e,t,n)=>{if(!t||!Xs(e))return n;let r=fc(t)?[t]:$s(t);if(r.some(e=>uc.includes(e)))return n;let i=r.reduce((e,t)=>Js(e)?void 0:e[t],e);return pc(i)||i===e?pc(e[t])?n:e[t]:i},mc=e=>typeof e==`boolean`,hc=e=>typeof e==`function`,gc=(e,t,n)=>{let r=-1,i=fc(t)?[t]:$s(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=Xs(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(uc.includes(t))return;e[t]=a,e=e[t]}},_c=E.createContext(null);_c.displayName=`HookFormControlContext`;var vc=()=>E.useContext(_c),yc=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==ac.all&&(t._proxyFormState[i]=!r||ac.all),n&&(n[i]=!0),e[i]}});return i},bc=nc?E.useLayoutEffect:E.useEffect,xc=e=>{let t=e.constructor&&e.constructor.prototype;return Xs(t)&&t.hasOwnProperty(`isPrototypeOf`)},Sc=e=>Js(e)||!Ys(e),Cc=(e,t)=>t.length===0&&!Array.isArray(e)&&!xc(e);function wc(e,t,n=new WeakMap){if(e===t)return!0;if(Sc(e)||Sc(t))return Object.is(e,t);if(qs(e)&&qs(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(Cc(e,r)||Cc(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(qs(r)&&qs(e)||(Xs(r)||Array.isArray(r))&&(Xs(e)||Array.isArray(e))?!wc(r,e,n):!Object.is(r,e))return!1}}return!0}function Tc(e){let t=E.useRef(!1),n=E.useRef(!1),r=E.useRef(void 0),i=E.useRef(0);return i.current++,!n.current&&e&&(n.current=!0,r.current=rc(e())),{resyncIfNeeded:E.useCallback((e,a,o)=>{if(e&&(t.current||n.current&&i.current>1)){let e=a();wc(r.current,e)||o(e)}t.current=!0},[]),snapshot:E.useCallback((e,t)=>{e&&(r.current=rc(t()))},[])}}function Ec(e){let t=vc(),{control:n=t,disabled:r,name:i,exact:a}=e||{},o=()=>({...n._formState,defaultValues:n._defaultValues}),[s,c]=E.useState(o),l=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:u,snapshot:d}=Tc(o);return bc(()=>{u(!r,o,c);let e=n._subscribe({name:i,formState:l.current,exact:a,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}});return()=>{e(),d(!r,o)}},[n,i,r,a,u,d]),E.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),E.useMemo(()=>yc(s,n,l.current,!1),[s,n])}var Dc=e=>typeof e==`string`,Oc=(e,t,n,r,i)=>Dc(e)?(r&&t.watch.add(e),X(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),X(n,e,X(i,e)))):(r&&(t.watchAll=!0),n);function kc(e){let t=vc(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=E.useRef(i),l=E.useRef(s),u=E.useRef(n),d=E.useRef(r);l.current=s;let f=()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e},[p,m]=E.useState(f),h=E.useRef(p),g=E.useCallback(e=>{let t=Oc(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),_=E.useCallback(e=>{if(!a){let t=Oc(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);wc(e,h.current)||(m(e),h.current=e)}else m(t)}},[n._formValues,n._names,a,r]),{resyncIfNeeded:v,snapshot:y}=Tc(f),b=E.useRef(_);b.current=_;let x=E.useRef(g);x.current=g,bc(()=>{u.current!==n||!wc(d.current,r)?(u.current=n,d.current=r,b.current()):v(!a,()=>x.current(),e=>{m(e),h.current=e});let e=n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{b.current(e.values)}});return()=>{e(),y(!a,()=>x.current())}},[n,o,r,a,v,y]),E.useEffect(()=>n._removeUnmounted());let S=u.current!==n,C=d.current;return E.useMemo(()=>{if(a)return!1;let e=!S&&!wc(C,r);return S||e},[a,S,r,C])?g():p}function Ac(e){let t=vc(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=tc(i._names.array,n),l=kc({control:i,name:n,defaultValue:E.useMemo(()=>{let e=X(i._formValues,n,X(i._defaultValues,n,o));return pc(e)?ec(i,n):e},[i,n,o]),exact:s}),u=Ec({control:i,name:n,exact:s}),d=E.useRef(e),f=E.useRef(null),p=E.useRef(i.register(n,{...e.rules,value:l,...mc(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let m=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!X(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!X(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!X(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!X(u.validatingFields,n)},error:{enumerable:!0,get:()=>X(u.errors,n)}}),[u,n]),h=E.useCallback(e=>{let t=Zs(e);return X(i._fields,n)||(p.current=i.register(n,{...d.current.rules,value:t})),p.current.onChange({target:{value:Zs(e),name:n},type:ic.CHANGE})},[n,i]),g=E.useCallback(()=>p.current.onBlur({target:{value:X(i._formValues,n),name:n},type:ic.BLUR}),[n,i._formValues]),_=E.useCallback(e=>{e&&(f.current={focus:()=>hc(e.focus)&&e.focus(),select:()=>hc(e.select)&&e.select(),setCustomValidity:t=>hc(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>hc(e.reportValidity)&&e.reportValidity()});let t=X(i._fields,n);t&&t._f&&e&&(t._f.ref=f.current,t._f._c=!0)},[i._fields,n]),v=E.useMemo(()=>({name:n,value:l,...mc(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:h,onBlur:g,ref:_}),[n,r,u.disabled,h,g,_,l]);return E.useEffect(()=>{let e=i._options.shouldUnregister||a;p.current=i.register(n,{...d.current.rules,...mc(d.current.disabled)?{disabled:d.current.disabled}:{}});let t=(e,t)=>{let n=X(i._fields,e);n&&n._f&&(n._f.mount=t,n._f._c=t)};if(t(n,!0),e){let e=rc(X(a?i._defaultValues:i._options.values||i._defaultValues,n,X(i._options.defaultValues,n,d.current.defaultValue)));gc(i._defaultValues,n,e),pc(X(i._formValues,n))&&gc(i._formValues,n,e)}if(!c&&i.register(n,{...d.current.rules,...mc(d.current.disabled)?{disabled:d.current.disabled}:{}}),f.current){let e=X(i._fields,n);e&&e._f&&(e._f.ref=f.current)}return()=>{(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,c,a]),E.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),E.useMemo(()=>({field:v,formState:u,fieldState:m}),[v,u,m])}var jc=e=>e.render(Ac(e)),Mc=e=>({isOnSubmit:!e||e===ac.onSubmit,isOnBlur:e===ac.onBlur,isOnChange:e===ac.onChange,isOnAll:e===ac.all,isOnTouch:e===ac.onTouched}),Nc=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&e.charAt(n.length)===`.`)return!0;return!1},Pc=(e,t,n)=>{for(let r of n||Object.keys(e)){if(r===`_f`)continue;let i=n?X(e,r):e[r];if(i){let{_f:e}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],e.name)||e.ref&&t(e.ref,e.name)||Pc(i,t))return!0}else if((Xs(i)||Array.isArray(i))&&Pc(i,t))return!0}}},Fc=(e,t,n)=>{let r=X(e,n),i=Array.isArray(r)?r:[];return gc(i,lc,t[n]),gc(e,n,i),e},Ic=e=>Xs(e)&&!Object.keys(e).length,Lc=e=>{if(!nc)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Rc=e=>e.type===`radio`,zc=e=>e instanceof RegExp,Bc=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Vc={value:!1,isValid:!1},Hc={value:!0,isValid:!0},Uc=e=>{if(!Array.isArray(e))return Vc;if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}let t=e[0];return!t||!t.checked||t.disabled?Vc:!t.attributes||!(`value`in t.attributes)||pc(t.value)||t.value===``?Hc:{value:t.value,isValid:!0}},Wc={isValid:!1,value:null},Gc=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Wc):Wc;function Kc(e,t,n=`validate`){if(Dc(e)||Array.isArray(e)&&e.every(Dc)||mc(e)&&!e)return{type:n,message:Dc(e)?e:``,ref:t}}var qc=e=>Xs(e)&&!zc(e)?e:{value:e,message:``},Jc=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_,_c:v}=e._f,y=X(n,h);if(!_||t.has(h))return{};let b=s?s[0]:o,x=e=>{if(i&&b.reportValidity){let t=mc(e)?``:e||``;s?s.forEach(e=>hc(e.setCustomValidity)&&e.setCustomValidity(t)):b.setCustomValidity(t),b.reportValidity()}},S={},C=Rc(o),w=Gs(o),T=C||w,ee=(g||Ks(o))&&pc(o.value)&&pc(y)||Lc(o)&&o.value===``&&!v||y===``||Array.isArray(y)&&!y.length,te=Bc.bind(null,h,r,S),E=(e,t,n,r=oc.maxLength,i=oc.minLength)=>{let a=e?t:n;S[h]={type:e?r:i,message:a,ref:o,...te(e?r:i,a)}};if(a?!Array.isArray(y)||!y.length:c&&(!T&&(ee||Js(y))||mc(y)&&!y||w&&!Uc(s).isValid||C&&!Gc(s).isValid)){let{value:e,message:t}=Dc(c)?{value:!!c,message:c}:qc(c);if(e&&(S[h]={type:oc.required,message:t,ref:b,...te(oc.required,t)},!r))return x(t),S}if(!ee&&(!Js(d)||!Js(f))){let e,t,n=qc(f),i=qc(d);if(!Js(y)&&!qs(y)&&!isNaN(y)){let r=o.valueAsNumber||y&&+y;Js(n.value)||(e=r>n.value),Js(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(y),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;Dc(n.value)&&y&&(e=s?a(y)>a(n.value):c?y>n.value:r>new Date(n.value)),Dc(i.value)&&y&&(t=s?a(y)<a(i.value):c?y<i.value:r<new Date(i.value))}if((e||t)&&(E(!!e,n.message,i.message,oc.max,oc.min),!r))return x(S[h].message),S}if((l||u)&&!ee&&(Dc(y)||a&&Array.isArray(y))){let e=qc(l),t=qc(u),n=!Js(e.value)&&y.length>+e.value,i=!Js(t.value)&&y.length<+t.value;if((n||i)&&(E(n,e.message,t.message),!r))return x(S[h].message),S}if(p&&!ee&&Dc(y)){let{value:e,message:t}=qc(p);if(zc(e)&&!y.match(e)&&(S[h]={type:oc.pattern,message:t,ref:o,...te(oc.pattern,t)},!r))return x(t),S}if(m){if(hc(m)){let e=Kc(await m(y,n),b);if(e&&(S[h]={...e,...te(oc.validate,e.message)},!r))return x(e.message),S}else if(Xs(m)){let e={};for(let t in m){if(!Ic(e)&&!r)break;let i=Kc(await m[t](y,n),b,t);i&&(e={...i,...te(t,i.message)},r||x(i.message),r&&(S[h]=e))}if(!Ic(e)&&(S[h]={ref:b,...e},!r))return S}}let ne=S[h];return x(!ne||ne.message),S},Yc=e=>Array.isArray(e)?e:[e],Xc=e=>Array.isArray(e)?e.filter(Boolean):[];function Zc(e,t){let n=t.length-1,r=0;for(;r<n;){if(Js(e)){e=void 0;break}e=e[t[r]],r++}return e}function Qc(e){for(let t in e)if(e.hasOwnProperty(t)&&!pc(e[t]))return!1;return!0}function $c(e,t){if(Dc(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:fc(t)?[t]:$s(t);if(n.some(e=>uc.includes(String(e))))return e;let r=n.length===1?e:Zc(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Xs(r)&&Ic(r)||Array.isArray(r)&&Qc(r))&&$c(e,n.slice(0,-1)),e}var el=E.createContext(null);el.displayName=`HookFormContext`;var tl=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function nl(e,t){let n=Array.isArray(e)?[]:{};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];i&&(Xs(i)||Array.isArray(i))&&a?n[r]=nl(i,a):e[r]&&(n[r]=a)}return n}var rl=(e,t)=>e!==null&&Ys(e)&&Object.prototype.hasOwnProperty.call(e,t),il=(e,t)=>{if(!t)return!1;let n=e;for(let r of fc(t)?[t]:$s(t)){if(!rl(n,r))return rl(e,t);n=n[r]}return!0},al=e=>e.type===`select-multiple`,ol=e=>Rc(e)||Gs(e),sl=e=>Lc(e)&&e.isConnected;function cl(e){return Array.isArray(e)||Xs(e)}function ll(e,t,n=``,r=[]){for(let i in e){let a=n?`${n}.${i}`:i,o=e[i];cl(o)&&cl(X(t,a))?ll(o,t,a,r):r.push(a)}return r}var ul=e=>{for(let t in e)if(hc(e[t]))return!0;return!1};function dl(e){return Array.isArray(e)||Xs(e)&&!ul(e)}function fl(e){return!!(e&&`_f`in e)}function pl(e){return Array.isArray(e)?!e.some(e=>!pc(e)):!Object.keys(e).length}function ml(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function hl(e,t={},n){for(let r in e){let i=e[r],a=n&&n[r];dl(i)&&(!Array.isArray(i)||!fl(a))?(t[r]=Array.isArray(i)?[]:{},hl(i,t[r],a),pl(t[r])&&ml(t,r)):pc(i)||(t[r]=!0)}return t}function gl(e,t,n,r){n||=hl(t,{},r);for(let i in e){let a=e[i],o=r&&r[i];dl(a)&&(!Array.isArray(a)||!fl(o))?(pc(t)||Sc(n[i])?n[i]=hl(a,Array.isArray(a)?[]:{},o):gl(a,Js(t)?{}:t[i],n[i],o),pl(n[i])&&ml(n,i)):wc(a,t[i])?ml(n,i):n[i]=!0}return n}var _l=(e,t)=>{let n=t.split(`.`),r=[],i=n[0];for(let t=1;t<n.length;i+=`.`+n[t++])!isNaN(+n[t])&&e.has(i)&&r.push(`${i}.${n[t]}`);return r},vl=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>pc(e)?e:t?e===``?NaN:e&&+e:n&&Dc(e)?new Date(e):r?r(e):e;function yl(e){let t=e.ref;return Ks(t)?t.files:Rc(t)?Gc(e.refs).value:al(t)?[...t.selectedOptions].map(({value:e})=>e):Gs(t)?Uc(e.refs).value:vl(t.value,e)}var bl=(e,t,n,r)=>{let i={};for(let n of e){let e=X(t,n);e&&gc(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},xl=e=>pc(e)?e:zc(e)?e.source:Xs(e)?zc(e.value)?e.value.source:e.value:e,Sl=`AsyncFunction`,Cl=e=>{if(!e||!e.validate)return!1;if(hc(e.validate))return e.validate.constructor.name===Sl;if(Xs(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===Sl)return!0}return!1},wl=e=>e.mount&&(e.required||!pc(e.required)&&e.required!==!1||!pc(e.min)||!pc(e.max)||!pc(e.maxLength)||!pc(e.minLength)||e.pattern||e.validate);function Tl(e,t,n){let r=X(e,n);if(r?.type||r?.message||Array.isArray(r))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=X(t,r),o=X(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var El=(e,t,n,r)=>{n(e);let i=Object.keys(e).filter(e=>e!==`name`);return!i.length||r&&i.length>=Object.keys(t).length||i.find(e=>t[e]===(!r||ac.all))},Dl=(e,t,n)=>!e||!t||e===t||Yc(e).some(e=>e&&(n?e===t||e.startsWith(t+`.`):e.startsWith(t)||t.startsWith(e))),Ol=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e,kl=(e,t)=>{let n=X(e,t);!Xc(n).length&&!(n!=null&&n.root)&&$c(e,t)},Al={mode:ac.onSubmit,reValidateMode:ac.onChange,shouldFocusError:!0},jl=(e,t)=>{for(let n in e)n in t||delete e[n];Object.assign(e,t)},Ml={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Nl(e={}){let t={...Al,...e},n={...rc(Ml),isLoading:hc(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(Xs(t.defaultValues)||Xs(t.values))&&rc(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:rc(i),o={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c={},l={},u=0,d=Mc(t.mode),f=Mc(t.reValidateMode),p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={...p},h={...m},g=(...e)=>e.some(e=>m[e]||h[e]),_={array:tl(),state:tl()},v=0,y=0,b=t.criteriaMode===ac.all,x=(e,t)=>n=>{clearTimeout(l[e]),l[e]=setTimeout(t,n)},S=e=>{clearTimeout(l[e]),delete l[e],delete c[e]},C=e=>{S(e);let t=`${e}.`;for(let e of Object.keys(c))e.startsWith(t)&&S(e)},w=async e=>{if(!o.keepIsValid&&!t.disabled&&(g(`isValid`)||e)){let e=++v,i;t.resolver?(i=Ic((await k()).errors),e===v&&T()):i=await ce({fields:r,onlyCheckValid:!0,eventType:ic.VALID}),e===v&&i!==n.isValid&&_.state.next({isValid:i})}},T=(e,r)=>{!t.disabled&&g(`isValidating`,`validatingFields`)&&((e||s.mount).forEach(e=>{e&&(r?gc(n.validatingFields,e,r):$c(n.validatingFields,e))}),_.state.next({validatingFields:n.validatingFields,isValidating:!Ic(n.validatingFields)}))},ee=()=>{n.dirtyFields=gl(i,a,void 0,r)},te=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){o.action=!0;let t=X(r,e);if(o.actionArrayLengths.has(e)||o.actionArrayLengths.set(e,Array.isArray(t)?t.length:0),u&&Array.isArray(t)){let n=s(t,c.argA,c.argB);l&&gc(r,e,n)}let a=X(n.errors,e);if(u&&Array.isArray(a)){let t=a.root,r=s(a,c.argA,c.argB)||a;t&&(r.root=t),l&&gc(n.errors,e,r),kl(n.errors,e)}let d=X(n.touchedFields,e),f=u&&Array.isArray(d);if(f){let t=s(d,c.argA,c.argB);l&&gc(n.touchedFields,e,t)}let p=X(n.dirtyFields,e);if(u&&Array.isArray(p)){let t=s(p,c.argA,c.argB)||p;l&&gc(n.dirtyFields,e,t)}g(`dirtyFields`)&&ee(),_.state.next({name:e,isDirty:ue(e,i),dirtyFields:n.dirtyFields,...f&&{touchedFields:n.touchedFields},errors:n.errors,isValid:n.isValid})}else gc(a,e,i)},E=(e,t)=>{gc(n.errors,e,t),n.errors={...n.errors},_.state.next({errors:n.errors})},ne=e=>{Object.keys(c).forEach(S);let t=!Ic(e);n.errors=e,_.state.next({errors:n.errors,...t?{isValid:!1}:{}}),!t&&o.mount&&w()},re=e=>{let t=fc(e)?[e]:$s(e),n=a,r=i;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=Js(n)?n:n[i],r=Js(r)?r:r[i],n===null&&r!==null)return!0}return!1},ie=e=>{if(!o.actionArrayLengths.size)return!1;let t=fc(e)?[e]:$s(e),n=a,r=``,i=-1,s=0;for(let e=0;e<t.length;e++){if(Js(n))return!1;let a=t[e];if(r=r?`${r}.${a}`:a,Array.isArray(n)&&+a>=n.length)return i===-1?!1:e!==i||+a<s;if(o.actionArrayLengths.has(r)&&(i=e+1,s=o.actionArrayLengths.get(r)),n=n[a],pc(n)&&i!==-1&&e>i&&+t[i]<s)return!0}return!1},ae=(c,l,u,d)=>{let f=X(r,c);if(f){if(re(c)||ie(c))return;let r=pc(X(a,c)),p=X(a,c,pc(u)?X(i,c):u);pc(p)||d&&d.defaultChecked||l?gc(a,c,l?p:yl(f._f)):fe(c,p),o.mount&&!o.action&&(t.resolver&&g(`isValidating`,`validatingFields`)?Promise.resolve().then(()=>w()):w(),r&&n.isDirty&&g(`isDirty`)&&(ue()||(n.isDirty=!1,_.state.next({...n}))),e.shouldUnregister&&r&&!pc(X(a,c))&&Nc(c,s)&&(o.watch=!0))}},D=(e,o,s,c,l)=>{let u=!1,d=!1,f={name:e};if(!t.disabled||c===!0){if(!s||c){let t=wc(X(i,e),o);g(`isDirty`)&&(d=n.isDirty,n.isDirty=f.isDirty=!t||ue(),u=d!==f.isDirty),d=!!X(n.dirtyFields,e),t===n.isDirty?t?$c(n.dirtyFields,e):gc(n.dirtyFields,e,!0):jl(n.dirtyFields,gl(i,a,void 0,r)),f.dirtyFields=n.dirtyFields,u||=g(`dirtyFields`)&&d!==!t}if(s){let t=X(n.touchedFields,e);t||(gc(n.touchedFields,e,s),f.touchedFields=n.touchedFields,u||=g(`touchedFields`)&&t!==s)}u&&l&&_.state.next(f)}return u?f:{}},O=(e,r,i,a)=>{let o=X(n.errors,e),s=g(`isValid`)&&mc(r)&&n.isValid!==r;if(t.delayError&&i?(c[e]=x(e,()=>E(e,i)),c[e](t.delayError)):(S(e),i?gc(n.errors,e,i):$c(n.errors,e),n.errors={...n.errors}),(i?!wc(o,i):o)||!Ic(a)||s){let t={...a,...s&&mc(r)?{isValid:r}:{},errors:n.errors,name:e};_.state.next(t)}},k=async e=>(T(e,!0),await t.resolver(a,t.context,bl(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),oe=async e=>{let t=y,{errors:i}=await k(e);if(t!==y)return i;if(T(e),e){for(let t of e){let e=X(i,t);C(t);let a=s.array.has(t)&&Xs(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e))),o=X(r,t),c=Xs(o)&&Object.keys(o).some(e=>e!==`_f`);a?Fc(n.errors,{[t]:e},t):e?.type||e?.message||Array.isArray(e)||Xs(e)&&c?gc(n.errors,t,e):$c(n.errors,t)}n.errors={...n.errors}}else Object.keys(c).forEach(S),n.errors=i;return i},se=async({name:e,eventType:r})=>{if(t.validate){let i=y,o=await t.validate({formValues:a,formState:n,name:e,eventType:r});if(i!==y)return!0;if(Xs(o)){let e=!0;ye(cc);for(let t in o){let n=o[t];n&&(e=!1,be(`${cc}.${t}`,{message:Dc(n.message)?n.message:``,type:n.type||oc.validate}))}return e}return Dc(o)||!o?(be(cc,{message:o||``,type:oc.validate}),!1):(ye(cc),!0)}return!0},ce=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{let u=y;if(t.validate&&!l.runRootValidation&&(l.runRootValidation=!0,!await se({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let d=r[o];if(d){let{_f:r,...f}=d;if(r){let o=s.array.has(r.name),c=d._f&&Cl(d._f),f=g(`isValidating`,`validatingFields`);c&&f&&T([r.name],!0);let p=await Jc(d,s.disabled,a,b,t.shouldUseNativeValidation&&!i,o);if(u!==y)return l.valid;if(c&&f&&T([r.name]),p[r.name]&&(l.valid=!1,i)||(i||(S(r.name),X(p,r.name)?o?Fc(n.errors,p,r.name):gc(n.errors,r.name,p[r.name]):$c(n.errors,r.name)),e.shouldUseNativeValidation&&p[r.name]))break}!Ic(f)&&await ce({context:l,onlyCheckValid:i,fields:f,name:o,eventType:c})}}return l.valid},le=()=>{for(let e of s.unMount){let t=X(r,e);t&&(t._f.refs?t._f.refs.every(e=>!sl(e)):!sl(t._f.ref))&&Ce(e)}s.unMount=new Set},ue=(e,t)=>(e&&t&&gc(a,e,t),!wc(o.mount?a:i,i)),de=(e,t,n)=>Oc(e,s,{...o.mount?a:pc(t)||Dc(e)?i:t},n,t),A=e=>Xc(X(o.mount?a:i,e,t.shouldUnregister?X(i,e,[]):[])),fe=(e,t,n={},i=!1,o=!1,s=!1)=>{let c=X(r,e),l=t;if(c){let n=c._f;n&&(!n.disabled&&gc(a,e,vl(t,n)),l=Lc(n.ref)&&Js(t)?``:t,al(n.ref)?[...n.ref.options].forEach(e=>e.selected=l.includes(e.value)):n.refs?Gs(n.ref)?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(e.checked=Array.isArray(l)?!!l.find(t=>t===e.value):l===e.value||!!l)}):n.refs.forEach(e=>e.checked=e.value===l):Ks(n.ref)?n.ref.value=``:(n.ref.value=l,n.ref.type||o||s||_.state.next({name:e,values:i?a:rc(a)})))}(n.shouldDirty||n.shouldTouch)&&D(e,c&&c._f&&!c._f.disabled&&(c._f.valueAsNumber||c._f.valueAsDate||c._f.setValueAs)?vl(t,c._f):l,n.shouldTouch,n.shouldDirty,!o),n.shouldValidate&&N(e,{delayError:n.delayError}),n.shouldValidate&&c&&c._f&&c._f.deps&&(!Array.isArray(c._f.deps)||c._f.deps.length>0)&&N(c._f.deps)},j=(e,t,n,i=!1,o=!1,c=!1)=>{s.array.has(e)&&_.array.next({name:e,values:i?a:rc(a)});for(let a in t){if(!t.hasOwnProperty(a))continue;let l=t[a],u=e+`.`+a,d=X(r,u);(s.array.has(e)||Xs(l)||d&&!d._f)&&!qs(l)?j(u,l,n,i,o,c):fe(u,l,n,i,o,c)}},pe=(e,t,i,c,l=!1)=>{let u=X(r,e),d=s.array.has(e),f=c?t:rc(t),p=wc(X(a,e),f);if(p||gc(a,e,f),d)_.array.next({name:e,values:c?a:rc(a)}),g(`isDirty`,`dirtyFields`)&&i.shouldDirty&&(ee(),l||_.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:ue(e,f)})),i.shouldValidate&&N(e,{delayError:i.delayError});else{let t=Array.isArray(f)&&!f.length||Ic(f),n=!p&&!l;!u||u._f||Js(f)||t?fe(e,f,i,c,l,n):j(e,f,i,c,l,n)}if(!p&&!l){let t=Nc(e,s),r=c?a:rc(a);if(_.state.next({...t&&n,name:o.mount||t?e:void 0,values:r}),!d)for(let t of _l(s.array,e))_.state.next({name:t,values:r})}},me=(e,t,n={})=>pe(e,t,n,!1),he=(e,t={})=>{let r=hc(e)?e(a):e;if(!wc(a,r)){a={...a,...r};for(let e of s.mount)il(r,e)&&pe(e,X(r,e),t,!0,!0);_.state.next({...n,name:void 0,type:void 0,...u?{values:a}:{}}),t.shouldValidate&&w()}},ge=async e=>{o.mount=!0;let i=e.target,l=i.name,p=!0,m=X(r,l),h=e=>{p=Number.isNaN(e)||qs(e)&&isNaN(e.getTime())||wc(e,X(a,l,e))};if(m){let o,v,x=i.type?yl(m._f):Zs(e),S=e.type===ic.BLUR||e.type===ic.FOCUS_OUT,C=!wl(m._f)&&!t.validate&&!t.resolver&&!X(n.errors,l)&&!m._f.deps,ee=C||Ol(S,X(n.touchedFields,l),n.isSubmitted,f,d),te=Nc(l,s,S);if(gc(a,l,rc(x)),S){if(!i||!i.readOnly){m._f.onBlur&&m._f.onBlur(e);let t=c[l];t&&t(0)}}else m._f.onChange&&m._f.onChange(e);let E=D(l,x,S),ne=!Ic(E)||te;if(!S&&_.state.next({name:l,type:e.type,...u?{values:rc(a)}:{}}),ee)return C&&n.isValid||!g(`isValid`)||(t.mode===`onBlur`?S&&w():S||w()),ne&&_.state.next({name:l,...te?{}:E});if(!t.resolver&&t.validate&&await se({name:l,eventType:e.type}),!S&&te&&_.state.next({...n}),t.resolver){let e=y,{errors:t}=await k([l]);if(e!==y)return;if(T([l]),h(x),!p){!Ic(E)&&_.state.next(E);return}let i=Tl(n.errors,r,l),a=Tl(t,r,i.name||l);o=a.error,l=a.name,v=Ic(t)}else{let n=y;if(T([l],!0),o=(await Jc(m,s.disabled,a,b,t.shouldUseNativeValidation))[l],n!==y)return;if(T([l]),h(x),p){if(o)v=!1;else if(g(`isValid`)&&(v=await ce({fields:r,onlyCheckValid:!0,name:l,eventType:e.type}),n!==y))return}}p&&(m._f.deps&&(!Array.isArray(m._f.deps)||m._f.deps.length>0)&&N(m._f.deps),O(l,v,o,E))}},M=(e,t)=>{if(X(n.errors,t)&&e.focus)return e.focus(),1},N=async(e,i={})=>{let a,o,l=Yc(e);if(t.resolver){let t=y,n=await oe(pc(e)?e:l);if(a=Ic(n),o=e?!l.some(e=>X(n,e)):a,t!==y)return o}else e?(o=(await Promise.all(l.map(async e=>{let t=X(r,e);return await ce({fields:t&&t._f?{[e]:t}:t,eventType:ic.TRIGGER})}))).every(Boolean),(o||n.isValid)&&w()):o=a=await ce({fields:r,name:e,eventType:ic.TRIGGER});if(i.delayError&&t.delayError&&Dc(e)){let r=X(n.errors,e);r?($c(n.errors,e),c[e]=x(e,()=>E(e,r)),c[e](t.delayError)):S(e)}if(i.shouldTouch)for(let t of e?l:s.mount)!s.array.has(t)&&gc(n.touchedFields,t,!0);return _.state.next({...!Dc(e)||g(`isValid`)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},...i.shouldTouch&&g(`touchedFields`)?{touchedFields:n.touchedFields}:{},errors:n.errors}),i.shouldFocus&&!o&&Pc(r,M,e?l:s.mount),o},P=(e,t)=>{let r={...o.mount?a:i};return t&&(r=nl(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),pc(e)?r:Dc(e)?X(r,e):e.map(e=>X(r,e))},_e=e=>pc(e)?{...n.errors}:Dc(e)?X(n.errors,e):e.map(e=>X(n.errors,e)),ve=(e,t)=>{let r=t||n,i=X(r.errors,e);return{invalid:!!i,isDirty:!!X(r.dirtyFields,e),error:i,isValidating:!!X(r.validatingFields,e),isTouched:!!X(r.touchedFields,e)}},ye=e=>{let t=e?Yc(e):void 0;t?t.forEach(e=>{C(e),$c(n.errors,e),_.state.next({name:e,errors:n.errors})}):(Object.keys(c).forEach(S),n.errors={},_.state.next({errors:n.errors}))},be=(e,t,i)=>{C(e);let a=(X(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,types:l,...u}=X(n.errors,e)||{};gc(n.errors,e,{...u,...t,ref:a}),_.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},xe=(e,t)=>{if(hc(e)){u++;let{unsubscribe:n}=_.state.subscribe({next:n=>`values`in n&&e(n.values||de(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,u--,n())}}}return de(e,t,!0)},F=e=>{let t=!!e.formState?.values;t&&u++;let{unsubscribe:r}=_.state.subscribe({next:t=>{if(Dl(e.name,t.name,e.exact)&&El(t,e.formState||m,R,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}});if(!t)return r;let o=!1;return()=>{o||(o=!0,u--,r())}},Se=e=>(o.mount=!0,h={...h,...e.formState},F({...e,formState:{...p,...e.formState}})),Ce=(e,o={})=>{for(let c of e?Yc(e):s.mount)s.mount.delete(c),s.array.delete(c),s.disabled.delete(c),o.keepValue||($c(r,c),$c(a,c)),o.keepError||(C(c),$c(n.errors,c)),!o.keepDirty&&$c(n.dirtyFields,c),!o.keepTouched&&$c(n.touchedFields,c),!o.keepIsValidating&&$c(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&$c(i,c);u&&_.state.next({values:rc(a)}),_.state.next({...n,...o.keepDirty?{}:{isDirty:ue()},...o.keepIsValidating?{}:{isValidating:!Ic(n.validatingFields)}}),!o.keepIsValid&&w()},I=({disabled:e,name:t})=>{if(mc(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&w()}},we=(e,n={})=>{let a=X(r,e),c=mc(n.disabled)||mc(t.disabled),l=!s.registerName.has(e)&&a&&a._f&&!a._f.mount;if(gc(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&a._f){let t=X(r,e);for(let e of sc)e in n||delete t._f[e]}return a&&!l?I({disabled:mc(n.disabled)?n.disabled:t.disabled,name:e}):ae(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:xl(n.min),max:xl(n.max),minLength:xl(n.minLength),maxLength:xl(n.maxLength),pattern:xl(n.pattern)}:{},name:e,onChange:ge,onBlur:ge,ref:c=>{if(c){s.registerName.add(e),we(e,n),s.registerName.delete(e),a=X(r,e);let t=pc(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=ol(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;let u={...a._f};o?(u.refs=[...l.filter(sl),t,...Array.isArray(X(i,e))?[{}]:[]],u.ref={type:t.type,name:e}):(u.ref=t,delete u.refs),gc(r,e,{_f:u}),ae(e,!1,void 0,t)}else a=X(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(tc(s.array,e)&&o.action)&&s.unMount.add(e)}}},L=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&Pc(r,M,s.mount),Te=e=>{mc(e)&&(_.state.next({disabled:e}),Pc(r,(t,n)=>{let i=X(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0))},Ee=(e,i)=>async o=>{let l,u;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let d=rc(a);if(_.state.next({isSubmitting:!0}),t.resolver){let e=y,{errors:t,values:r}=await k();if(e!==y)return;T(),Object.keys(c).forEach(S),n.errors=t,d=rc(r)}else{let e=y;if(await ce({fields:r,eventType:ic.SUBMIT}),e!==y)return;$c(n.errors,lc)}if(s.disabled.size)for(let e of s.disabled)$c(d,e);if(Ic(n.errors)){_.state.next({errors:{}});try{l=await e(d,o)}catch(e){u=e}}else i&&await i({...n.errors},o),L(),setTimeout(L);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ic(n.errors)&&!u,submitCount:n.submitCount+1,errors:n.errors}),u)throw u;return l},De=(e,t={})=>{X(r,e)&&($c(n.validatingFields,e),pc(t.defaultValue)?me(e,rc(X(i,e))):(me(e,t.defaultValue),gc(i,e,rc(t.defaultValue))),t.keepTouched||$c(n.touchedFields,e),t.keepDirty||($c(n.dirtyFields,e),n.isDirty=t.defaultValue?ue(e,rc(X(i,e))):ue()),t.keepError||(C(e),$c(n.errors,e),w()),_.state.next({...n,isValidating:!Ic(n.validatingFields)}))},Oe=(e,l={})=>{y++;let u=e?rc(e):i,d=rc(u),f=Ic(e),p=d,h=r;if(Object.keys(c).forEach(S),l.keepDefaultValues||(i=u),!l.keepValues){if(l.keepDirtyValues){let e=new Set([...s.mount,...ll(gl(i,a,void 0,h),n.dirtyFields)]);for(let t of e){let e=X(n.dirtyFields,t),r=X(a,t),i=X(p,t);e&&!pc(r)?gc(p,t,r):!e&&!pc(i)&&me(t,i)}}else{if(nc&&pc(e))for(let e of s.mount){let t=X(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Lc(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(l.keepFieldsRef)for(let e of s.mount)me(e,X(p,e));else r={}}if(t.shouldUnregister){if(a=l.keepDefaultValues?rc(i):{},l.keepFieldsRef)for(let e of s.mount)gc(a,e,X(p,e))}else a=rc(p);_.array.next({values:{...p}}),_.state.next({name:void 0,type:void 0,values:{...p}})}s={mount:l.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!m.isValid||!!l.keepIsValid||!!l.keepDirtyValues||!t.shouldUnregister&&!Ic(p),o.watch=!!t.shouldUnregister,o.keepIsValid=!!l.keepIsValid,o.action=!1,o.actionArrayLengths.clear(),l.keepErrors||(n.errors={}),_.state.next({submitCount:l.keepSubmitCount?n.submitCount:0,isDirty:f?!1:l.keepDirty?n.isDirty:l.keepValues?ue():!(!l.keepDefaultValues||wc(e,i)),isSubmitted:l.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:f?{}:l.keepDirtyValues?l.keepDefaultValues&&a?gl(i,a,void 0,h):n.dirtyFields:l.keepDefaultValues&&e?gl(i,e,void 0,h):l.keepDirty?n.dirtyFields:l.keepValues?gl(i,a,void 0,h):{},touchedFields:l.keepTouched?n.touchedFields:{},...!l.keepIsValidating&&(n.isValidating||!Ic(n.validatingFields))?{validatingFields:{},isValidating:!1}:null,errors:l.keepErrors?n.errors:{},isSubmitSuccessful:l.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},ke=(e,n)=>Oe(hc(e)?e(a):e,{...t.resetOptions,...n}),Ae=(e,t={})=>{let n=X(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&hc(e.select)&&e.select()})}},R=e=>{let{name:t,type:r,values:i,...a}=e;n={...n,...a}};_.state.subscribe({next:R});let je={control:{register:we,unregister:Ce,getFieldState:ve,handleSubmit:Ee,setError:be,_subscribe:F,_runSchema:k,_updateIsValidating:T,_focusError:L,_getWatch:de,_getDirty:ue,_setValid:w,_setFieldArray:te,_setDisabledField:I,_setErrors:ne,_getFieldArray:A,_reset:Oe,_resetDefaultValues:()=>hc(t.defaultValues)&&t.defaultValues().then(e=>{ke(e,t.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:le,_disableForm:Te,_subjects:_,_proxyFormState:m,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e},d=Mc(t.mode),f=Mc(t.reValidateMode),b=t.criteriaMode===ac.all}},subscribe:Se,trigger:N,register:we,handleSubmit:Ee,watch:xe,setValue:me,setValues:he,getValues:P,getErrors:_e,reset:ke,resetField:De,resetDefaultValues:(e,t={})=>{if(i=rc(e),!t.keepDirty){let e=gl(i,a,void 0,r);n.dirtyFields=e,n.isDirty=!Ic(e)}t.keepIsValid||w(),_.state.next({...n,defaultValues:i})},clearErrors:ye,unregister:Ce,setError:be,setFocus:Ae,getFieldState:ve};return{...je,formControl:je}}function Pl(e={}){let t=E.useRef(void 0),n=E.useRef(void 0),r=E.useRef(e.formControl),i=E.useRef(!!e.validate),[a,o]=E.useState(()=>({...rc(Ml),isLoading:hc(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:hc(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl){if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:a},e.defaultValues&&!hc(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=Nl(e);t.current={...r,formState:a}}}let s=t.current.control;s._options={...e,validate:e.validate};let c=()=>({...s._formState,defaultValues:s._defaultValues}),{resyncIfNeeded:l,snapshot:u}=Tc(c);return bc(()=>{l(!0,c,o);let e=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState,defaultValues:s._defaultValues}),reRenderRoot:!0});return o(e=>({...e,isReady:!0})),s._formState.isReady=!0,()=>{e(),u(!0,c)}},[s,l,u]),E.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),E.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),E.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),E.useEffect(()=>{var n;i.current&&!e.validate&&((n=t.current)==null||n.clearErrors(cc)),i.current=!!e.validate},[e.validate]),E.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),E.useEffect(()=>{if(s._proxyFormState.isDirty){let e=s._getDirty();e!==a.isDirty&&s._subjects.state.next({isDirty:e})}},[s,a.isDirty]),E.useEffect(()=>{e.values&&!wc(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),s._options.resetOptions?.keepIsValid||s._setValid(),n.current=e.values,o(e=>({...e}))):s._resetDefaultValues()},[s,e.values]),E.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=E.useMemo(()=>yc(a,s),[s,a]),t.current}function Fl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Z;(function(e){e.event=`event`,e.props=`prop`})(Z||={});function Q(){}function Il(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(e,n){return e===t[n]})||(t=r,n=e.apply(void 0,r)),n}}function Ll(e){return!!(e||``).match(/\d/)}function Rl(e){return e==null}function zl(e){return typeof e==`number`&&isNaN(e)}function Bl(e){return Rl(e)||zl(e)||typeof e==`number`&&!isFinite(e)}function Vl(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function Hl(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Ul(e,t,n){var r=Hl(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,`$1`+t)}function Wl(e){var t=(0,E.useRef)(e);return t.current=e,(0,E.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function Gl(e,t){t===void 0&&(t=!0);var n=e[0]===`-`,r=n&&t;e=e.replace(`-`,``);var i=e.split(`.`);return{beforeDecimal:i[0],afterDecimal:i[1]||``,hasNegation:n,addNegation:r}}function Kl(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var n=e.split(`.`),r=n[0].replace(/^0+/,``)||`0`,i=n[1]||``;return(t?`-`:``)+r+(i?`.`+i:``)}function ql(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function Jl(e,t){return Array(t+1).join(e)}function Yl(e){var t=e+``,n=t[0]===`-`?`-`:``;n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(`.`,``);var o=1+a,s=i.length;return o<0?i=`0.`+Jl(`0`,Math.abs(o))+i:o>=s?i+=Jl(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function Xl(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=Gl(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=ql(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function Zl(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Ql=Il(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),$l=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function eu(e,t,n){return Math.min(Math.max(e,t),n)}function tu(e){return Math.max(e.selectionStart,e.selectionEnd)}function nu(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function ru(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function iu(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function au(e,t,n,r,i,a,o){o===void 0&&(o=iu);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p<l;p++){f[p]=-1;for(var m=0,h=u;m<h;m++)if(o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:m})&&d[m]!==!0){f[p]=m,d[m]=!0;break}}for(var g=r;g<l&&(f[g]===-1||!a(n[g]));)g++;var _=g===l||f[g]===-1?u:f[g];for(g=r-1;g>0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function ou(e,t,n,r){var i=e.length;if(t=eu(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function su(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Ll(e[n])||Ll(e[n-1]));return t}function cu(e,t,n,r,i,a){a===void 0&&(a=Q);var o=Wl(function(e,t){var n,a;return Bl(e)?(a=``,n=``):typeof e==`number`||t?(a=typeof e==`number`?Yl(e):e,n=r(a)):(a=i(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}}),s=(0,E.useState)(function(){return o(Rl(e)?t:e,n)}),c=s[0],l=s[1],u=Wl(function(e,t){e.formattedValue!==c.formattedValue&&l({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}),d=e,f=n;Rl(e)&&(d=c.numAsString,f=!0);var p=o(d,f);return(0,E.useMemo)(function(){l(p)},[p.formattedValue]),(0,E.useEffect)(function(){if(!Rl(t)&&Rl(e)&&c.formattedValue!==``){var n=parseFloat(c.numAsString);u({formattedValue:c.formattedValue,value:c.numAsString,floatValue:isNaN(n)?void 0:n},{event:void 0,source:Z.props})}},[]),[c,u]}function lu(e){return e.replace(/[^0-9]/g,``)}function uu(e){return e}function du(e){var t=e.type;t===void 0&&(t=`text`);var n=e.displayType;n===void 0&&(n=`input`);var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=uu);var s=e.removeFormatting;s===void 0&&(s=lu);var c=e.defaultValue,l=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=Q);var p=e.onKeyDown;p===void 0&&(p=Q);var m=e.onMouseUp;m===void 0&&(m=Q);var h=e.onFocus;h===void 0&&(h=Q);var g=e.onBlur;g===void 0&&(g=Q);var _=e.value,v=e.getCaretBoundary;v===void 0&&(v=su);var y=e.isValidInputCharacter;y===void 0&&(y=Ll);var b=e.isCharacterSame,x=Fl(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),S=cu(_,c,!!l,o,s,u),C=S[0],w=C.formattedValue,T=C.numAsString,ee=S[1],te=(0,E.useRef)(),ne=(0,E.useRef)({formattedValue:w,numAsString:T}),re=function(e,t){ne.current={formattedValue:e.formattedValue,numAsString:e.value},ee(e,t)},ie=(0,E.useState)(!1),ae=ie[0],D=ie[1],O=(0,E.useRef)(null),k=(0,E.useRef)({setCaretTimeout:null,focusTimeout:null});(0,E.useEffect)(function(){return D(!0),function(){clearTimeout(k.current.setCaretTimeout),clearTimeout(k.current.focusTimeout)}},[]);var oe=o,se=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},ce=function(e,t,n){(e.selectionStart!==0||e.selectionEnd!==e.value.length)&&(Zl(e,t),k.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&Zl(e,t)},0))},le=function(e,t,n){return ou(e,t,v(e),n)},ue=function(e,t,n){var r=v(t),i=au(t,w,e,n,r,y,b);return i=ou(t,i,r),i},de=function(e){var t=e.formattedValue;t===void 0&&(t=``);var n=e.input,r=e.source,i=e.event,a=e.numAsString,o;if(n){var s=e.inputValue||n.value,c=tu(n);n.value=t,o=ue(s,t,c),o!==void 0&&ce(n,o,t)}t!==w&&re(se(t,a),{event:i,source:r})};(0,E.useEffect)(function(){var e=ne.current,t=e.formattedValue,n=e.numAsString;(w!==t||T!==n)&&re(se(w,T),{event:void 0,source:Z.props})},[w,T]);var A=O.current?tu(O.current):void 0;(typeof window<`u`?E.useLayoutEffect:E.useEffect)(function(){var e=O.current;if(w!==ne.current.formattedValue&&e){var t=ue(ne.current.formattedValue,w,A);e.value=w,ce(e,t,w)}},[w]);var fe=function(e,t,n){var r=t.target,i=te.current?$l(te.current,r.selectionEnd):Ql(w,e),a=Object.assign(Object.assign({},i),{lastValue:w}),o=s(e,a),c=oe(o);if(o=s(c,void 0),d&&!d(se(c,o))){var l=t.target,u=ue(e,w,tu(l));return l.value=w,ce(l,u,w),!1}return de({formattedValue:c,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},j=function(e,t){t===void 0&&(t=0),te.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},pe=function(e){var t=e.target.value;fe(t,e,Z.event)&&f(e),te.current=void 0},me=function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o;n===`ArrowLeft`||n===`Backspace`?o=Math.max(r-1,0):n===`ArrowRight`?o=Math.min(r+1,a.length):n===`Delete`&&(o=r);var s=0;n===`Delete`&&r===i&&(s=1);var c=n===`ArrowLeft`||n===`ArrowRight`;if(o===void 0||r!==i&&!c)p(e),j(t,s);else{var l=o;c?(l=le(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!y(a[o])?l=le(a,o,`right`):n===`Backspace`&&!y(a[o])&&(l=le(a,o,`left`)),l!==o&&ce(t,l,a),p(e),j(t,s)}},he=function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(r===void 0&&(r=``),e===n){var i=le(r,e);i!==e&&ce(t,i,r)}};n(),requestAnimationFrame(function(){n()}),m(e),j(t)},ge=function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;O.current=t,k.current.focusTimeout=setTimeout(function(){var r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o=le(a,r);o!==r&&(r!==0||i!==a.length)&&ce(t,o,a),h(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},M=function(e){O.current=null,clearTimeout(k.current.focusTimeout),clearTimeout(k.current.setCaretTimeout),g(e)},N=ae&&nu()?`numeric`:void 0,P=Object.assign({inputMode:N},x,{type:t,value:w,onChange:pe,onKeyDown:me,onMouseUp:he,onFocus:ge,onBlur:M});if(n===`text`)return i?E.createElement(E.Fragment,null,i(w,x)||null):E.createElement(`span`,Object.assign({},x,{ref:a}),w);if(r){var _e=r;return E.createElement(_e,Object.assign({},P,{ref:a}))}return E.createElement(`input`,Object.assign({},P,{ref:a}))}function fu(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i=``);var a=t.suffix;a===void 0&&(a=``);var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s=`thousand`),e===``||e===`-`)return e;var c=pu(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=Gl(e,o),p=f.beforeDecimal,m=f.afterDecimal,h=f.addNegation;return n!==void 0&&(m=ql(m,n,!!r)),l&&(p=Ul(p,l,s)),i&&(p=i+p),a&&(m+=a),h&&(p=`-`+p),e=p+(d&&u||``)+m,e}function pu(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=`,`),r||=[t,`.`],{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function mu(e,t){e===void 0&&(e=``);var n=RegExp(`(-)`),r=RegExp(`(-)(.)*(-)`),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,``),i&&!a&&t&&(e=`-`+e),e}function hu(e,t){return RegExp(`(^-)|[0-9]|`+Vl(e),t?`g`:void 0)}function gu(e,t,n){return e===``||!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function _u(e,t,n){var r;t===void 0&&(t=ru(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a=``);var o=n.suffix;o===void 0&&(o=``);var s=n.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=pu(n),p=f.allowedDecimalSeparators,m=f.decimalSeparator,h=e[d]===m;if(Ll(e)&&(e===a||e===o)&&t.lastValue===``)return e;if(d-u===1&&p.indexOf(e[u])!==-1){var g=s===0?``:m;e=e.substring(0,u)+g+e.substring(u+1,e.length)}var _=function(e,t,n){var r=!1,i=!1;a.startsWith(`-`)?r=!1:e.startsWith(`--`)?(r=!1,i=!0):o.startsWith(`-`)&&e.length===o.length?r=!1:e[0]===`-`&&(r=!0);var s=+!!r;return i&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=_(e,u,d),y=v.hasNegation;r=v,e=r.value,u=r.start,d=r.end;var b=_(t.lastValue,c.start,c.end),x=b.start,S=b.end,C=b.value,w=e.substring(u,d);e.length&&C.length&&(x>C.length-o.length||S<a.length)&&!(w&&o.startsWith(w))&&(e=C);var T=0;e.startsWith(a)?T+=a.length:u<a.length&&(T=u),e=e.substring(T),d-=T;var ee=e.length,te=e.length-o.length;e.endsWith(o)?ee=te:(d>te||d>e.length-o.length)&&(ee=d),e=e.substring(0,ee),e=mu(y?`-`+e:e,i),e=(e.match(hu(m,!0))||[]).join(``);var E=e.indexOf(m);e=e.replace(new RegExp(Vl(m),`g`),function(e,t){return t===E?`.`:``});var ne=Gl(e,i),re=ne.beforeDecimal,ie=ne.afterDecimal,ae=ne.addNegation;return l.end-l.start<c.end-c.start&&re===``&&h&&!parseFloat(ie)&&(e=ae?`-`:``),e}function vu(e,t){var n=t.prefix;n===void 0&&(n=``);var r=t.suffix;r===void 0&&(r=``);var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]===`-`;i.fill(!1,0,Math.min(n.length+ +!!a,e.length));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function yu(e){var t=pu(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i=``);var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw Error(`
48
- Decimal separator can't be same as thousand separator.
49
- thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
50
- decimalSeparator: `+r+` (default value for decimalSeparator is .)
51
- `);return i.startsWith(`-`)&&a&&(console.error(`
52
- Prefix can't start with '-' when allowNegative is true.
53
- prefix: `+i+`
54
- allowNegative: `+a+`
55
- `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function bu(e){e=yu(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Q);var a=e.onBlur;a===void 0&&(a=Q);var o=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l=``);var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,m=Fl(e,[`decimalSeparator`,`allowedDecimalSeparators`,`thousandsGroupStyle`,`suffix`,`allowNegative`,`allowLeadingZeros`,`onKeyDown`,`onBlur`,`thousandSeparator`,`decimalScale`,`fixedDecimalScale`,`prefix`,`defaultValue`,`value`,`valueIsNumericString`,`onValueChange`]),h=pu(e),g=h.decimalSeparator,_=h.allowedDecimalSeparators,v=function(t){return fu(t,e)},y=function(t,n){return _u(t,n,e)},b=Rl(d)?u:d,x=f??gu(b,l,t);Rl(d)?Rl(u)||(x||=typeof u==`number`):x||=typeof d==`number`;var S=function(e){return Bl(e)?e:(typeof e==`number`&&(e=Yl(e)),x&&typeof s==`number`?Xl(e,s,!!c):e)},C=cu(S(d),S(u),!!x,v,y,p),w=C[0],T=w.numAsString,ee=w.formattedValue,te=C[1];return Object.assign(Object.assign({},m),{value:ee,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||Ll(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,i=e.currentValueIndex,a=e.formattedValueIndex,o=t[i],u=r[a],f=Ql(n,t).to,p=function(e){return y(e).indexOf(`.`)+l.length};return d===0&&c&&s&&t[f.start]===g&&p(t)<i&&p(r)>a?!1:i>=f.start&&i<f.end&&_&&_.includes(o)&&u===g?!0:o===u},onValueChange:te,format:v,removeFormatting:y,getCaretBoundary:function(t){return vu(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,u=t.selectionEnd,d=t.value;if(d===void 0&&(d=``),(r===`Backspace`||r===`Delete`)&&u<l.length&&d!==`-`)e.preventDefault();else if(a!==u)i(e);else{r===`Backspace`&&d[0]===`-`&&a===l.length+1&&n&&Zl(t,1),s&&c&&(r===`Backspace`&&d[a-1]===g?(Zl(t,a-1),e.preventDefault()):r===`Delete`&&d[a]===g&&e.preventDefault()),_?.includes(r)&&d[a]===g&&Zl(t,a+1);var f=o===!0?`,`:o;r===`Backspace`&&d[a-1]===f&&Zl(t,a-1),r===`Delete`&&d[a]===f&&Zl(t,a+1),i(e)}},onBlur:function(t){var n=T;n.match(/\d/g)||(n=``),r||(n=Kl(n)),c&&s&&(n=Xl(n,s,c)),n!==T&&te({formattedValue:fu(n,e),value:n,floatValue:parseFloat(n)},{event:t,source:Z.event}),a(t)}})}function xu(e){var t=bu(e);return E.createElement(du,Object.assign({},t))}var Su=class{parse(e){return e==null||e===``?``:String(e).replace(/[eE.,]/g,``).replace(/\d[+-]/g,``)}},Cu=/[.,+eE]/,wu=e=>{e.key.length===1&&!e.ctrlKey&&!e.metaKey&&Cu.test(e.key)&&e.preventDefault()};function Tu({_label:e,_msg:t,_touched:n,_on:r,_required:i,value:a,thousandSeparator:o=!0,suffix:s=`€`,...c}){let l=r&&typeof r==`object`?r:void 0;return(0,G.jsx)(xu,{...c,value:a,suffix:s,thousandSeparator:o,valueIsNumericString:!1,customInput:r=>{let a=r.value;return(0,G.jsx)(R,{...r,_value:a,_label:e,_msg:t,_touched:n,_required:i,_on:{onBlur:r.onBlur,onChange:r.onChange,onFocus:r.onFocus,onInput:r.onInput}})},onValueChange:e=>{let t=new Event(`input`);l?.onInput?.(t,e.floatValue)},onBlur:e=>{l?.onBlur?.(e.nativeEvent)}})}function Eu(e){let{name:t,control:n,rules:r,defaultValue:i,shouldUnregister:a,disabled:o,_label:s,_required:c,...l}=e;return(0,G.jsx)(jc,{name:t,control:n,rules:r,defaultValue:i,shouldUnregister:a,disabled:o,render:({field:e,fieldState:t})=>{let n=l._on;return(0,G.jsx)(Tu,{...l,_label:s,_required:c,value:e.value,_touched:t.isTouched,_msg:t.error?{_type:`error`,_description:t.error.message||String(t.error)}:void 0,_on:{onInput:(t,r)=>{e.onChange(r),n?.onInput?.(t,r)},onBlur:()=>e.onBlur()}})}})}function Du(){let e=new Su,[t,n]=E.useState(void 0),[r,i]=E.useState(-128),[a,o]=E.useState(!1),s=Pl({defaultValues:{currency:1e6},mode:`onTouched`}),c=s.watch();return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This example demonstrates formatting number input. The first example shows whole number formatting where decimal separators (. and ,) and scientific notation (e) are automatically removed on input. The second example shows currency formatting with react-number-format in a react-hook-form context.`})}),(0,G.jsxs)(`section`,{className:`w-full grid gap-4`,children:[(0,G.jsxs)(K,{id:`whole-number`,children:[(0,G.jsx)(xe,{children:(0,G.jsx)(De,{_label:`Whole number`,_step:1,_value:t??r,_on:{onKeyDown:wu,onBlur:()=>{o(!0)},onInput:(t,r)=>{let a=e.parse(r),o=a===``?void 0:Number(a);n(o),i(o)}}})}),(0,G.jsx)(`pre`,{className:`text-base mt-2`,children:JSON.stringify({value:r,touched:a},null,2)})]}),(0,G.jsxs)(K,{id:`currency`,children:[(0,G.jsx)(xe,{_on:{onSubmit:e=>{s.handleSubmit(async()=>{})(e)}},children:(0,G.jsx)(Eu,{control:s.control,name:`currency`,decimalScale:2,displayType:`input`,rules:{required:`Please enter a currency amount.`},_label:`Currency`,_required:!0})}),(0,G.jsx)(`pre`,{className:`text-base mt-2`,children:JSON.stringify(c,null,2)})]})]})]})}var Ou={"input-number":{basic:Us,"get-value":Ws,"number-formatter":Du}},ku=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...i(`black-bg`),className:`black-background`,children:(0,G.jsx)(Oe,{...n,_label:`Passwort (Black background test)`})}),(0,G.jsx)(K,{...i(`icons-error`),children:(0,G.jsx)(Oe,{...n,ref:r,_accessKey:`P`,_required:!0,_hint:Ca,_msg:{_type:`error`,_description:q},_placeholder:`Mit Icons`,_label:`Passwort`,_icons:{left:{icon:`kolicon-chevron-left`},right:{icon:`kolicon-chevron-right`}},_touched:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,G.jsx)(K,{...i(`msg-info`),children:(0,G.jsx)(Oe,{...n,_msg:{_type:`info`,_description:`Just a hint`},_label:`Passwort`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-warning`),children:(0,G.jsx)(Oe,{...n,_msg:{_type:`warning`,_description:`Small warning`},_label:`Passwort`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-success`),children:(0,G.jsx)(Oe,{...n,_msg:{_type:`success`,_description:`Success message`},_label:`Passwort`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-default`),children:(0,G.jsx)(Oe,{...n,_msg:{_type:`default`,_description:`Default message`},_label:`Passwort`,_touched:!0})}),(0,G.jsx)(K,{...i(`disabled`),children:(0,G.jsx)(Oe,{...n,_disabled:!0,_msg:{_type:`error`,_description:q},_label:`Passwort (Disabled)`,_touched:!0})}),(0,G.jsx)(K,{...i(`readonly`),children:(0,G.jsx)(Oe,{...n,_readOnly:!0,_label:`Passwort (Readonly)`})}),(0,G.jsx)(K,{...i(`access-key`),children:(0,G.jsx)(Oe,{...n,ref:r,_shortKey:`c`,_label:`With access key`})}),(0,G.jsx)(K,{...i(`short-key`),children:(0,G.jsx)(Oe,{...n,ref:r,_shortKey:`s`,_label:`With short key`})})]})}),Au=(0,E.forwardRef)(function(e,t){return(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Password`,children:(0,G.jsx)(ku,{blockIdPrefix:`label`,...e})}),(0,G.jsx)(Po,{heading:`Password (hideLabel)`,children:(0,G.jsx)(ku,{blockIdPrefix:`hide-label`,snapshotOnly:`icons-error`,ref:t,...e,_hideLabel:!0})})]})}),ju={"input-password":{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolInputPassword renders a password input field. The sample shows KolInputPassword in a form context with all variations and states.`})}),(0,G.jsx)(Mo,{RefComponent:Au,showButtons:!1})]}),counter:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story showcases a password input with a counter for the chars in the field. Maximal length is 30.`})}),(0,G.jsx)(K,{id:`counter`,children:(0,G.jsx)(Oe,{_label:`Password`,_value:`Hunter2`,_hasCounter:!0,_maxLength:30})})]}),"get-value":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolInputPassword`,renderInput:e=>(0,G.jsx)(Oe,{_label:`Password`,_on:e})})]}),"show-password":()=>{let e=(0,E.useRef)(null);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolInputPassword in the variant "visibility-toggle". It features a button to toggle between a visible and hidden password input.`})}),(0,G.jsx)(K,{id:`show-password`,children:(0,G.jsxs)(xe,{className:`w-full`,children:[(0,G.jsx)(Oe,{_placeholder:`With 'Show password' button`,_label:`Password`,ref:e,className:`block`,_visibilityToggle:!0}),(0,G.jsx)(Oe,{_placeholder:`With 'Show password' button`,_label:`Password`,ref:e,className:`block`,_visibilityToggle:!0,_value:`Password`}),(0,G.jsx)(Oe,{_placeholder:`With 'Show password' button and disabled`,_label:`Password`,ref:e,className:`block`,_disabled:!0,_visibilityToggle:!0})]})})]})}}},Mu=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...i(`black-bg`),className:`black-background`,children:(0,G.jsx)(ke,{...n,_options:`[{'disabled':true,'label':'Mrs. (disabled)','value':'Mrs.'},{'label':'Mr.'},{'label':'Company','value':'Company'}]`,_label:`Salutation (Black background test)`})}),(0,G.jsx)(K,{...i(`error`),children:(0,G.jsx)(ke,{...n,_required:!0,_msg:{_type:`error`,_description:q},_touched:!0,_value:`Company`,_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]`,_label:`Salutation (with error)`})}),(0,G.jsx)(K,{...i(`horizontal`),children:(0,G.jsx)(ke,{...n,ref:r,_orientation:`horizontal`,_required:!0,_value:`Company`,_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]`,_label:`Salutation (horizontal)`,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`},_tooltipAlign:`right`})}),(0,G.jsx)(K,{...i(`horizontal-disabled`),children:(0,G.jsx)(ke,{...n,_disabled:!0,_orientation:`horizontal`,_required:!0,_msg:{_type:`error`,_description:q},_touched:!0,_value:`Company`,_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]`,_label:`Salutation (horizontal with error)`})}),(0,G.jsx)(K,{...i(`disabled`),children:(0,G.jsx)(ke,{...n,_disabled:!0,_value:`Company`,_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]`,_label:`Salutation`,_touched:!0})}),(0,G.jsx)(K,{...i(`horizontal-hints`),children:(0,G.jsx)(ke,{...n,_orientation:`horizontal`,_required:!0,_msg:{_type:`error`,_description:q},_touched:!0,_value:`Company`,_options:[{label:`Mrs.`,value:`Mrs.`,hint:`Description for option "Mrs."`},{label:`Mr. (disabled)`,value:`Mr.`,hint:`Description for option "Mr."`,disabled:!0},{label:`Company`,value:`Company`,hint:`Description for option "Company"`}],_label:`Salutation (horizontal with error hint and description)`,_hint:Ca})})]})}),Nu=(0,E.forwardRef)(function(e,t){return(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Radio`,children:(0,G.jsx)(Mu,{blockIdPrefix:`label`,...e})}),(0,G.jsx)(Po,{heading:`Radio (hideLabel)`,children:(0,G.jsx)(Mu,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0})})]})}),Pu=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolInputRadio renders a set of radio buttons. The sample shows KolInputRadio in a form context with all variations and states.`})}),(0,G.jsx)(Mo,{RefComponent:Nu,showButtons:!1})]}),Fu=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolInputRadio`,renderInput:e=>(0,G.jsx)(ke,{_label:`Option`,_options:[{label:`One`,value:`one`},{label:`Two`,value:`two`}],_on:e})})]}),Iu=()=>{let[e,t]=(0,E.useState)(!0),[n,r]=(0,E.useState)(`horizontal`),i=[{label:`Field 1`,value:1},{label:`Field 2`,value:2}];return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample shows the `,(0,G.jsx)(`code`,{children:`horizontal`}),` and `,(0,G.jsx)(`code`,{children:`vertical`}),` orientation of KolInoutRadio. It also features a button to test re-rendering.`]})}),(0,G.jsxs)(`div`,{className:`flex gap-4`,children:[(0,G.jsx)(M,{_label:`Click me a few times`,_on:{onClick:()=>{t(e=>!e)}}}),(0,G.jsx)(I,{_label:`Switch orientation (horizontal/vertical)`,_on:{onChange:()=>{r(e=>e===`horizontal`?`vertical`:`horizontal`)}},_variant:`switch`})]}),e&&(0,G.jsx)(xe,{children:(0,G.jsxs)(K,{id:`orientation`,className:`container my-4 d-grid gap-4`,children:[(0,G.jsx)(ke,{_label:`Test (${n})`,_options:i,_orientation:n,_required:!0}),(0,G.jsx)(ke,{_hideLabel:!0,_label:`Test (${n})`,_options:i,_orientation:n,_required:!0})]})})]})},Lu=()=>{let e=[{label:`Field 1`,value:{id:1,name:`Option 1`}},{label:`Field 2`,value:{id:2,name:`Option 2`}}];return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsxs)(J,{children:[`This sample shows KolInputRadio with `,(0,G.jsx)(`code`,{children:`object`}),` and `,(0,G.jsx)(`code`,{children:`undefined`}),` values.`]}),(0,G.jsxs)(xe,{children:[(0,G.jsxs)(`p`,{children:[`In this example for `,(0,G.jsx)(`code`,{children:`KolInputRadio`}),`, the values of the options are defined as objects.`]}),(0,G.jsx)(K,{id:`object-value`,className:`container my-4 d-grid gap-4`,children:(0,G.jsx)(ke,{_value:e[1].value,_options:e,_label:`Test (with object value)`})}),(0,G.jsxs)(`p`,{children:[`In this example for `,(0,G.jsx)(`code`,{children:`KolInputRadio`}),`, no value is set.`]}),(0,G.jsx)(K,{id:`no-value`,className:`container my-4 d-grid gap-4`,children:(0,G.jsx)(ke,{_options:e,_label:`Test (without value)`})})]})]})},Ru=[{label:1,value:1,hint:`One person`},{label:2,value:2,hint:`Two persons`},{label:3,value:3,hint:`Three persons`}],zu=JSON.stringify([{label:`Mrs.`},{label:`Mr.`},{label:`Company`,value:`company`}]),Bu=[{label:`No`,value:!1},{label:`Yes`,value:!0}],Vu={"input-radio":{basic:Pu,"get-value":Fu,horizontal:Iu,object:Lu,"option-values":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`The options of KolInputRadio accept a number as `,(0,G.jsx)(`code`,{children:`label`}),`, which is shown as text, and an optional `,(0,G.jsx)(`code`,{children:`hint`}),` per option. An option without `,(0,G.jsx)(`code`,{children:`value`}),` uses its label as value, and a falsy value such as `,(0,G.jsx)(`code`,{children:`false`}),` is selected like any other value.`]})}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{id:`number-labels`,children:(0,G.jsx)(ke,{_label:`Number of persons (number labels with hints)`,_options:Ru,_value:2})}),(0,G.jsx)(K,{id:`label-as-value`,children:(0,G.jsx)(ke,{_label:`Salutation (options without value)`,_options:zu,_value:`Mr.`,_orientation:`horizontal`})}),(0,G.jsx)(K,{id:`falsy-value`,children:(0,G.jsx)(ke,{_label:`Newsletter (value false selected)`,_options:Bu,_value:!1,_orientation:`horizontal`})})]})]})}},Hu=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...i(`black-bg`),className:`black-background`,children:(0,G.jsx)(Ae,{...n,_min:0,_max:50,_msg:{_type:`error`,_description:q},_label:`Slider (Black background test)`,_icons:{left:{icon:`kolicon-chevron-left`},right:{icon:`kolicon-chevron-right`}},_touched:!0})}),(0,G.jsx)(K,{...i(`error`),children:(0,G.jsx)(Ae,{...n,ref:r,_accessKey:`F`,_min:0,_max:50,_step:10,_hint:Ca,_msg:{_type:`error`,_description:q},_label:`Slider with error`,_touched:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,G.jsx)(K,{...i(`msg-info`),children:(0,G.jsx)(Ae,{...n,_msg:{_type:`info`,_description:`Just a hint`},_label:`Slider`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-warning`),children:(0,G.jsx)(Ae,{...n,_msg:{_type:`warning`,_description:`Small warning`},_label:`Slider`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-success`),children:(0,G.jsx)(Ae,{...n,_msg:{_type:`success`,_description:`Success message`},_label:`Slider`,_touched:!0})}),(0,G.jsx)(K,{...i(`msg-default`),children:(0,G.jsx)(Ae,{...n,_msg:{_type:`default`,_description:`Default message`},_label:`Slider`,_touched:!0})}),(0,G.jsx)(K,{...i(`disabled`),children:(0,G.jsx)(Ae,{...n,_disabled:!0,_min:0,_max:50,_label:`Slider (disabled)`})}),(0,G.jsx)(K,{...i(`access-key`),children:(0,G.jsx)(Ae,{...n,_min:0,_max:50,_label:`With access key`,_accessKey:`c`})}),(0,G.jsx)(K,{...i(`short-key`),children:(0,G.jsx)(Ae,{...n,_min:0,_max:50,_label:`With short key`,_shortKey:`s`})}),(0,G.jsx)(K,{...i(`small-range`),children:(0,G.jsx)(Ae,{...n,_min:0,_max:5,_label:`Small range (max=5): number input should not be narrower than 4 digits wide`})})]})}),Uu=(0,E.forwardRef)(function(e,t){return(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Range`,children:(0,G.jsx)(Hu,{blockIdPrefix:`label`,...e})}),(0,G.jsx)(Po,{heading:`Range (hideLabel)`,children:(0,G.jsx)(Hu,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0})})]})}),Wu={"input-range":{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolInputRange renders a pair of range- and number fields wich are synchronized with each other. The sample shows KolInputRange in a form context with all variations and states.`})}),(0,G.jsx)(Mo,{RefComponent:Uu,showButtons:!1})]}),"get-value":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolInputRange`,renderInput:e=>(0,G.jsx)(Ae,{_label:`Range`,_on:e})})]})}},Gu=()=>(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates access keys and short keys for KolInputText. Access keys provide keyboard shortcuts for focusing inputs.`})}),(0,G.jsx)(K,{id:`access-key-value`,children:(0,G.jsx)(R,{_label:`With access key (Alt+F)`,_value:`Press Alt+F to focus`,_accessKey:`f`})}),(0,G.jsx)(K,{id:`short-key-value`,children:(0,G.jsx)(R,{_label:`With short key (Alt+N)`,_value:`Press Alt+N to focus`,_shortKey:`n`})}),(0,G.jsx)(K,{id:`access-key-placeholder`,children:(0,G.jsx)(R,{_label:`Access key (Alt+E)`,_value:``,_placeholder:`Email address`,_accessKey:`e`})}),(0,G.jsx)(K,{id:`short-key-placeholder`,children:(0,G.jsx)(R,{_label:`Short key (Alt+P)`,_value:``,_placeholder:`Phone number`,_shortKey:`p`})})]}),Ku=`
56
- label { display: block; }
57
- span { display: block; margin-bottom: 4px; }
58
- input { border: 1px solid #888; padding: 4px 8px; font: inherit; }
59
- `,qu=(e,t)=>{let n=e.getRootNode();return(t??``).trim().split(/\s+/).filter(Boolean).map(e=>n instanceof ShadowRoot?n.querySelector(`#${CSS.escape(e)}`):document.getElementById(e)).filter(e=>e!==null)},Ju=class extends HTMLElement{static get observedAttributes(){return[`aria-details`]}connectedCallback(){this._render()}attributeChangedCallback(){this.isConnected&&this._render()}_render(){this.innerHTML=`<style>${Ku}</style><label><span>Native input, no shadow root</span><input aria-label="Native light input"></label>`;let e=this.querySelector(`input`),t=this.getAttribute(`aria-details`);t?e.setAttribute(`aria-details`,t):e.removeAttribute(`aria-details`)}},Yu=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`})}static get observedAttributes(){return[`aria-details`]}connectedCallback(){this.shadowRoot.innerHTML=`<style>${Ku}</style><label><span>Native input, inside a shadow root</span><input aria-label="Native shadow input"></label>`,this._sync(this.getAttribute(`aria-details`))}attributeChangedCallback(e,t,n){this.isConnected&&this._sync(n)}_sync(e){let t=this.shadowRoot.querySelector(`input`);if(`ariaDetailsElements`in t)try{t.ariaDetailsElements=qu(this,e)}catch{}}};typeof customElements<`u`&&(customElements.get(`demo-input-light`)||customElements.define(`demo-input-light`,Ju),customElements.get(`demo-input-shadow`)||customElements.define(`demo-input-shadow`,Yu));var Xu=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsxs)(`p`,{children:[`Demonstrates how to use `,(0,G.jsx)(`code`,{children:`_ariaDetails`}),` to reference an external element that provides detailed information about form inputs. All inputs below reference the same details box via their `,(0,G.jsx)(`code`,{children:`_ariaDetails`}),` prop.`]}),(0,G.jsxs)(`p`,{children:[`The native inputs above are the control group: the first one declares a plain `,(0,G.jsx)(`code`,{children:`aria-details`}),` IDREF in the same tree, the second one is wrapped in a native web component whose shadow input bridges the reference via `,(0,G.jsx)(`code`,{children:`ariaDetailsElements`}),` — the same mechanism KoliBri uses. If a native case announces the details in a screen reader while the KoliBri fields do not, the gap is in KoliBri; if the native shadow case is silent too, the platform does not support the relation across the boundary yet (Safari/VoiceOver lacks element reflection — verify with NVDA or JAWS on Chromium instead).`]}),(0,G.jsxs)(`p`,{children:[`The last example below replicates the`,` `,(0,G.jsxs)(`a`,{href:`https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-details`,children:[`MDN example for `,(0,G.jsx)(`code`,{children:`aria-details`})]}),`: a term references its definition and an explanatory link — the canonical use outside of forms the attribute was designed for.`]})]}),(0,G.jsxs)(K,{id:`aria-details`,className:`grid gap-8`,children:[(0,G.jsxs)(`div`,{className:`grid gap-4 p-4 border border-gray-300 rounded`,children:[(0,G.jsx)(`h2`,{className:`text-lg font-semibold`,children:`Native reference implementations`}),(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`label`,{className:`block`,children:[(0,G.jsx)(`span`,{className:`block mb-2`,children:`Native HTML input (no web component)`}),(0,G.jsx)(`input`,{"aria-details":`details-box-native-light`,"aria-label":`Native light input`,className:`border border-gray-500 p-2`})]}),(0,G.jsx)(`div`,{id:`details-box-native-light`,className:`mt-2 p-2 bg-blue-50 border-l-4 border-blue-400 rounded text-sm text-blue-800`,children:`Details for the plain native input: the IDREF resolves in the same tree — no boundary to cross.`})]}),(0,G.jsx)(`div`,{children:E.createElement(`demo-input-light`,{"aria-details":`details-box-native-light`})}),(0,G.jsxs)(`div`,{children:[E.createElement(`demo-input-shadow`,{"aria-details":`details-box-native-shadow`}),(0,G.jsxs)(`div`,{id:`details-box-native-shadow`,className:`mt-2 p-2 bg-blue-50 border-l-4 border-blue-400 rounded text-sm text-blue-800`,children:[`Details for the native shadow input: the reference crosses the boundary via `,(0,G.jsx)(`code`,{children:`ariaDetailsElements`}),` on the input.`]})]})]}),(0,G.jsxs)(`div`,{className:`grid gap-4 p-4 border border-gray-300 rounded`,children:[(0,G.jsx)(`h2`,{className:`text-lg font-semibold`,children:`Form Inputs with Shared Details`}),(0,G.jsx)(R,{_label:`Email Address`,_ariaDetails:`details-box`,_placeholder:`user@example.com`,_hint:`We'll never share your email`}),(0,G.jsx)(Re,{_label:`Country`,_ariaDetails:`details-box`,_options:[{label:`Germany`,value:`de`},{label:`Austria`,value:`at`},{label:`Switzerland`,value:`ch`}]}),(0,G.jsx)(H,{_label:`Message`,_ariaDetails:`details-box`,_placeholder:`Enter your message here...`,_rows:4}),(0,G.jsx)(_e,{_label:`Favorite Language`,_ariaDetails:`details-box`,_suggestions:[`TypeScript`,`JavaScript`,`Python`,`Go`,`Rust`,`Java`]})]}),(0,G.jsxs)(`div`,{id:`details-box`,className:`p-4 bg-blue-50 border-l-4 border-blue-400 rounded`,role:`complementary`,children:[(0,G.jsx)(`h3`,{className:`font-semibold text-blue-900 mb-2`,children:`💡 Form Details`}),(0,G.jsxs)(`ul`,{className:`text-sm text-blue-800 space-y-2`,children:[(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`Email:`}),` Please enter a valid email address. We use this to contact you about your submission.`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`Country:`}),` Select your country of residence. This helps us provide localized support.`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`Message:`}),` Provide as much detail as possible. The more information you give, the better we can assist you.`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`Language:`}),` Choose your preferred programming language. This helps us recommend relevant resources.`]})]})]}),(0,G.jsxs)(`div`,{className:`grid gap-4 p-4 border border-gray-300 rounded`,children:[(0,G.jsx)(`h2`,{className:`text-lg font-semibold`,children:`MDN example: term & definition`}),(0,G.jsxs)(`p`,{children:[`The term below references two targets: the definition paragraph and the explanatory image link. Screen reader support for `,(0,G.jsx)(`code`,{children:`aria-details`}),` is heavily fragmented — check `,(0,G.jsx)(`a`,{href:`https://a11ysupport.io/tech/aria/aria-details_attribute`,children:`a11ysupport.io`}),` before relying on it.`]}),(0,G.jsxs)(`p`,{children:[`The `,(0,G.jsx)(`strong`,{children:`cubic-bezier()`}),` functional notation defines a cubic`,` `,(0,G.jsx)(`span`,{role:`term`,"aria-details":`bezier bezImg`,className:`underline decoration-dotted underline-offset-4`,children:`Bézier curve`}),`. As these curves are continuous, they are often used to smooth down the start and end of the curve and are therefore sometimes called easing functions.`]}),(0,G.jsxs)(`p`,{role:`definition`,id:`bezier`,className:`p-2 bg-blue-50 border-l-4 border-blue-400 rounded text-sm text-blue-800`,children:[`A `,(0,G.jsx)(`strong`,{children:`Bézier curve`}),`, (Pronounced \\ ˈbe-zē-ˌā \\ `,(0,G.jsx)(`i`,{"aria-description":`English pronunciation`,children:`BEH-zee-ay`}),`) is a mathematically described curve used in computer graphics and animation. The curve is defined by a set of control points with a minimum of two. Web related graphics and animations use Cubic Béziers, which are curves with four control points P`,(0,G.jsx)(`sub`,{children:`0`}),`, P`,(0,G.jsx)(`sub`,{children:`1`}),`, P`,(0,G.jsx)(`sub`,{children:`2`}),`, and P`,(0,G.jsx)(`sub`,{children:`3`}),`.`]}),(0,G.jsx)(`a`,{href:`https://developer.mozilla.org/en-US/docs/Web/CSS/easing-function`,id:`bezImg`,"aria-label":`Explanation of Bézier curve in CSS easing functions`,target:`_blank`,rel:`noreferrer`,className:`block w-fit`,children:(0,G.jsxs)(`svg`,{width:`200`,height:`160`,viewBox:`0 0 200 160`,role:`img`,"aria-label":`Cubic Bézier curve showing 4 control points.`,className:`border border-gray-400 rounded bg-white`,children:[(0,G.jsx)(`path`,{d:`M 20 130 C 60 10, 140 150, 180 30`,fill:`none`,stroke:`#0075ff`,strokeWidth:`2`}),(0,G.jsx)(`line`,{x1:`20`,y1:`130`,x2:`60`,y2:`10`,stroke:`#888`,strokeDasharray:`4 3`}),(0,G.jsx)(`line`,{x1:`140`,y1:`150`,x2:`180`,y2:`30`,stroke:`#888`,strokeDasharray:`4 3`}),(0,G.jsx)(`circle`,{cx:`20`,cy:`130`,r:`4`,fill:`#0075ff`}),(0,G.jsx)(`circle`,{cx:`60`,cy:`10`,r:`4`,fill:`#888`}),(0,G.jsx)(`circle`,{cx:`140`,cy:`150`,r:`4`,fill:`#888`}),(0,G.jsx)(`circle`,{cx:`180`,cy:`30`,r:`4`,fill:`#0075ff`}),(0,G.jsx)(`text`,{x:`12`,y:`148`,fontSize:`12`,fill:`#202020`,children:`P0`}),(0,G.jsx)(`text`,{x:`60`,y:`24`,fontSize:`12`,fill:`#202020`,textAnchor:`middle`,children:`P1`}),(0,G.jsx)(`text`,{x:`140`,y:`144`,fontSize:`12`,fill:`#202020`,textAnchor:`middle`,children:`P2`}),(0,G.jsx)(`text`,{x:`184`,y:`20`,fontSize:`12`,fill:`#202020`,textAnchor:`end`,children:`P3`})]})})]})]})]}),Zu=()=>(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story showcases the component placed on a colored background.`})}),(0,G.jsxs)(K,{id:`background-default`,className:`grid gap-4 bg-blue-400 p-4 rounded`,children:[(0,G.jsx)(`strong`,{children:`Default background:`}),(0,G.jsx)(R,{_label:`First name`,_value:`John Doe`})]}),(0,G.jsxs)(K,{id:`background-unset`,className:`grid gap-4 bg-blue-400 p-4 rounded`,children:[(0,G.jsx)(`strong`,{children:`Unset background:`}),(0,G.jsx)(R,{style:{backgroundColor:`unset`},_label:`First name`,_value:`John Doe`})]})]}),Qu=()=>(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story showcases the most important InputText variants: default, required, validation error, disabled, read-only, search with clear button, and with icons.`})}),(0,G.jsx)(K,{id:`events`,children:(0,G.jsx)(R,{_label:`Name`,_value:`Anderson-Clark`,_on:{onBlur:Ho,onChange:Ho,onClick:Ho,onFocus:Ho,onInput:Ho,onKeyDown:Ho},onBlur:Vo,onChange:Vo,onClick:Vo,onFocus:Vo,onInput:Vo,onKeyDown:Vo})}),(0,G.jsx)(K,{id:`error`,children:(0,G.jsx)(R,{_label:`Name`,_required:!0,_msg:{_type:`error`,_description:`Please enter your name`},_touched:!0})}),(0,G.jsx)(K,{id:`hint`,children:(0,G.jsx)(R,{_label:`Name`,_required:!0,_hint:`Enter your surname`})}),(0,G.jsx)(K,{id:`disabled`,children:(0,G.jsx)(R,{_label:`Name`,_value:`Anderson-Clark`,_disabled:!0})}),(0,G.jsx)(K,{id:`info-popover`,children:(0,G.jsx)(R,{_label:`Name`,_required:!0,_value:`Anderson-Clark`,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,G.jsx)(K,{id:`readonly-popover`,children:(0,G.jsx)(R,{_label:`Name`,_readOnly:!0,_value:`Anderson-Clark`,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,G.jsx)(K,{id:`icon`,children:(0,G.jsx)(R,{_label:`Name`,_icons:`kolicon-house`,_value:`Anderson-Clark`})}),(0,G.jsx)(K,{id:`search`,children:(0,G.jsx)(R,{_label:`Search`,_type:`search`,_value:`test`,_placeholder:`Search with clear button`})})]}),$u=()=>(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample demonstrates the clear button for search type input fields.`})}),(0,G.jsx)(K,{id:`search-empty`,children:(0,G.jsx)(R,{_label:`Search`,_type:`search`,_placeholder:`Enter search term`})}),(0,G.jsx)(K,{id:`search-value`,children:(0,G.jsx)(R,{_label:`Search (with value)`,_type:`search`,_value:`test`,_placeholder:`Enter search term`})}),(0,G.jsx)(K,{id:`search-disabled`,children:(0,G.jsx)(R,{_label:`Search (disabled)`,_type:`search`,_disabled:!0,_value:`test`,_placeholder:`Disabled search`})}),(0,G.jsx)(K,{id:`search-read-only`,children:(0,G.jsx)(R,{_label:`Search (read only)`,_type:`search`,_readOnly:!0,_value:`test`})}),(0,G.jsx)(K,{id:`text-no-clear-button`,children:(0,G.jsx)(R,{_label:`Text (no clear button)`,_type:`text`,_value:`test`,_placeholder:`Regular text input`})})]}),ed=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story showcases an input with a counter for the chars in the field. Maximal length is 30.`})}),(0,G.jsx)(K,{id:`counter`,children:(0,G.jsx)(R,{_label:`Name`,_icons:`kolicon-house`,_value:`Anderson-Clark`,_hasCounter:!0,_maxLength:30})})]}),td=()=>(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates the disabled state of KolInputText. Disabled inputs cannot be edited or focused.`})}),(0,G.jsx)(K,{id:`placeholder`,children:(0,G.jsx)(R,{_label:`Disabled with placeholder`,_placeholder:`Placeholder text`,_disabled:!0})}),(0,G.jsx)(K,{id:`value`,children:(0,G.jsx)(R,{_label:`Disabled with value`,_value:`This field is disabled`,_disabled:!0})}),(0,G.jsx)(K,{id:`error`,children:(0,G.jsx)(R,{_label:`Disabled with error message`,_value:`Invalid value`,_msg:{_type:`error`,_description:`Error message`},_disabled:!0,_touched:!0})}),(0,G.jsx)(K,{id:`enabled`,children:(0,G.jsx)(R,{_label:`Comparison: Enabled`,_value:`This field is enabled`})})]}),nd=()=>(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsxs)(J,{children:[(0,G.jsx)(`p`,{children:`This sample shows KolInputText with expert slot. The expert slot allows for complex custom content beyond simple text inputs.`}),(0,G.jsxs)(`p`,{children:[`For further information on the expert slot see its `,(0,G.jsx)(`a`,{href:`https://public-ui.github.io/docs/concepts/expert-slot`,children:`documentation`})]})]}),(0,G.jsx)(K,{id:`text`,children:(0,G.jsx)(R,{_label:``,_type:`text`,children:(0,G.jsx)(`span`,{slot:`expert`,children:`I am more than just a input field`})})}),(0,G.jsx)(K,{id:`badge`,children:(0,G.jsx)(R,{_label:``,_type:`text`,_value:`Complex example`,children:(0,G.jsxs)(`div`,{slot:`expert`,className:`flex items-center gap-2`,children:[(0,G.jsx)(he,{_label:`Premium`,_color:`#1a73e8`}),(0,G.jsx)(Se,{_icons:`kolicon-check`,_label:``}),(0,G.jsx)(`span`,{children:`Verified account with premium features`})]})})}),(0,G.jsx)(K,{id:`note`,children:(0,G.jsx)(R,{_label:``,_type:`text`,_placeholder:`Enter your email`,children:(0,G.jsxs)(`div`,{slot:`expert`,style:{padding:`0.5rem`,backgroundColor:`#f0f0f0`,borderRadius:`4px`},children:[(0,G.jsx)(`strong`,{children:`Note:`}),` This email will be used for account recovery and notifications.`]})})}),(0,G.jsx)(K,{id:`required`,children:(0,G.jsx)(R,{_label:``,_type:`text`,_required:!0,children:(0,G.jsxs)(`div`,{slot:`expert`,className:`inline-block`,children:[(0,G.jsx)(`span`,{className:`expert-slot-required-label`,children:`Username`}),(0,G.jsx)(Fe,{_label:`Help`,_icons:`kolicon-alert-info`,_variant:`ghost`,_hideLabel:!0,_inline:!0,children:(0,G.jsx)(`div`,{className:`w-sm p-2 border border-solid border-gray`,children:`You have to take care of the asterics on your own!`})})]})})}),(0,G.jsx)(K,{id:`readonly`,children:(0,G.jsx)(R,{_label:``,_type:`text`,_readOnly:!0,_value:`(read only) is also not appended`,children:(0,G.jsxs)(`div`,{slot:`expert`,className:`inline-block`,children:[(0,G.jsx)(`span`,{className:`expert-slot-required-label`,children:`Username`}),(0,G.jsx)(Fe,{_label:`Help`,_icons:`kolicon-alert-info`,_variant:`ghost`,_hideLabel:!0,_inline:!0,children:(0,G.jsx)(`div`,{className:`w-sm p-2 border border-solid border-gray`,children:`Readonly is also not appended`})})]})})})]}),rd=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolInputText`,renderInput:e=>(0,G.jsx)(R,{_label:`Name`,_on:e})})]}),id=()=>(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This story demonstrates the `,(0,G.jsx)(`code`,{children:`_hideLabel`}),` feature for KolInputText. It allows hiding the label visually while keeping it accessible for screen readers.`]})}),(0,G.jsx)(K,{id:`search`,children:(0,G.jsx)(R,{_hideLabel:!0,_label:`Search`,_placeholder:`Search...`,_type:`search`})}),(0,G.jsx)(K,{id:`error`,children:(0,G.jsx)(R,{_hideLabel:!0,_label:`Email`,_placeholder:`Enter email`,_msg:{_type:`error`,_description:`Invalid email format`},_touched:!0})}),(0,G.jsx)(K,{id:`address-group`,children:(0,G.jsxs)(`fieldset`,{className:`grid md:grid-cols-2 gap-4`,children:[(0,G.jsx)(`legend`,{children:`Street Address`}),(0,G.jsx)(pe,{className:`col-span-2`,_level:0,_type:`error`,children:`Please complete the address`}),(0,G.jsx)(R,{_hideLabel:!0,_hideMsg:!0,_label:`Street name`,_placeholder:`Street name`,_msg:{_type:`error`,_description:`Please complete the address`},_touched:!0}),(0,G.jsx)(R,{_hideLabel:!0,_hideMsg:!0,_label:`House number`,_placeholder:`Number`,_msg:{_type:`error`,_description:`Please complete the address`},_touched:!0})]})})]}),ad=()=>(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample shows the `,(0,G.jsx)(`code`,{children:`_hideMsg`}),` feature for KolInputText. It allows to hide the message from an input field and can be used, when the message (e.g. error) is already shown somewhere else, e.g. for a group of inputs.`]})}),(0,G.jsx)(K,{id:`single-error`,children:(0,G.jsx)(R,{_msg:{_type:`error`,_description:`Error message`},_label:`Input with error`,_touched:!0})}),(0,G.jsx)(K,{id:`combined-error`,children:(0,G.jsxs)(`fieldset`,{className:`grid md:grid-cols-2 gap-4`,children:[(0,G.jsx)(`legend`,{children:`Combined input field`}),(0,G.jsx)(pe,{className:`col-span-2`,_level:0,_type:`error`,children:`This is a combined error message`}),(0,G.jsx)(R,{_msg:{_type:`error`,_description:`This is a combined error message`},_hideMsg:!0,_label:`First input`,_touched:!0}),(0,G.jsx)(R,{_msg:{_type:`error`,_description:`This is a combined error message`},_hideMsg:!0,_label:`Second input with error`,_touched:!0})]})})]}),od=()=>(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates all available message types for KolInputText: default, info, error, warning, and success.`})}),(0,G.jsx)(K,{id:`msg-default`,children:(0,G.jsx)(R,{_label:`Default message`,_value:`Valid value`,_msg:{_type:`default`,_description:`This is a default message`},_touched:!0})}),(0,G.jsx)(K,{id:`msg-error`,children:(0,G.jsx)(R,{_label:`Error message`,_value:`Invalid value`,_msg:{_type:`error`,_description:`This is an error message`},_touched:!0})}),(0,G.jsx)(K,{id:`msg-info`,children:(0,G.jsx)(R,{_label:`Info message`,_value:`Some value`,_msg:{_type:`info`,_description:`This is an informational message`},_touched:!0})}),(0,G.jsx)(K,{id:`msg-success`,children:(0,G.jsx)(R,{_label:`Success message`,_value:`Valid value`,_msg:{_type:`success`,_description:`This is a success message`},_touched:!0})}),(0,G.jsx)(K,{id:`msg-warning`,children:(0,G.jsx)(R,{_label:`Warning message`,_value:`Valid value`,_msg:{_type:`warning`,_description:`This is a warning message`},_touched:!0})})]}),sd=()=>(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsxs)(J,{children:[(0,G.jsx)(`p`,{children:`Regression sample for #9073: when both _msg and _hasCounter are set, aria-describedby must reference both the message and counter elements.`}),(0,G.jsx)(`p`,{children:`Open DevTools and inspect each input to confirm aria-describedby contains both IDs.`})]}),(0,G.jsx)(K,{id:`warning`,children:(0,G.jsx)(R,{_label:`Warning + Counter`,_msg:{_type:`warning`,_description:`Bitte prüfen Sie Ihre Eingabe.`},_hasCounter:!0,_maxLength:30})}),(0,G.jsx)(K,{id:`error`,children:(0,G.jsx)(R,{_label:`Error + Counter (touched)`,_msg:{_type:`error`,_description:`Pflichtfeld – bitte ausfüllen.`},_hasCounter:!0,_maxLength:30,_touched:!0})}),(0,G.jsx)(K,{id:`info`,children:(0,G.jsx)(R,{_label:`Info + Counter`,_msg:{_type:`info`,_description:`Hinweis: maximal 20 Zeichen.`},_hasCounter:!0,_maxLength:20})})]}),cd=`^[A-Za-z]{3}-\\d{3}$`,ld=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample demonstrates HTML5 pattern validation for both native input and KolInputText components.`})}),(0,G.jsx)(K,{id:`pattern`,children:(0,G.jsxs)(`form`,{className:`grid gap-4`,children:[(0,G.jsxs)(`div`,{className:`grid gap-2`,children:[(0,G.jsx)(`label`,{htmlFor:`native-input`,children:`Native Input (Pattern: AAA-123, case-insensitive)`}),(0,G.jsx)(`input`,{id:`native-input`,name:`native-input`,pattern:cd,type:`text`})]}),(0,G.jsx)(R,{_label:`KoliBri Input (Pattern: AAA-123, case-insensitive)`,_name:`kolibri-input`,_pattern:cd,_hint:`Note: This input is not linked to the form element. The validation inside the Shadow DOM is currently not triggered on form submit.`}),(0,G.jsx)(`div`,{children:(0,G.jsx)(`button`,{type:`submit`,children:`Submit`})})]})})]}),ud=()=>(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates the placeholder feature of KolInputText.`})}),(0,G.jsx)(K,{id:`first-name`,children:(0,G.jsx)(R,{_label:`First name`,_placeholder:`Enter your first name`})}),(0,G.jsx)(K,{id:`email`,children:(0,G.jsx)(R,{_label:`Email address`,_placeholder:`user@example.com`})}),(0,G.jsx)(K,{id:`tel`,children:(0,G.jsx)(R,{_label:`Phone number`,_placeholder:`+49 123 456789`,_type:`tel`})}),(0,G.jsx)(K,{id:`url`,children:(0,G.jsx)(R,{_label:`Website`,_placeholder:`https://example.com`,_type:`url`})}),(0,G.jsx)(K,{id:`search`,children:(0,G.jsx)(R,{_label:`Search`,_placeholder:`Search...`,_type:`search`})})]}),dd=()=>(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story demonstrates the readonly state of KolInputText. Readonly inputs can be focused but not edited.`})}),(0,G.jsx)(K,{id:`placeholder`,children:(0,G.jsx)(R,{_label:`Readonly with placeholder`,_placeholder:`Placeholder text`,_readOnly:!0})}),(0,G.jsx)(K,{id:`value`,children:(0,G.jsx)(R,{_label:`Readonly with value`,_value:`This field is readonly`,_readOnly:!0})}),(0,G.jsx)(K,{id:`info`,children:(0,G.jsx)(R,{_label:`Readonly with info message`,_value:`Read-only value`,_msg:{_type:`info`,_description:`This field cannot be edited`},_readOnly:!0,_touched:!0})}),(0,G.jsx)(K,{id:`editable`,children:(0,G.jsx)(R,{_label:`Comparison: Editable`,_value:`This field is editable`})})]}),fd=()=>{let e=E.useRef(null);function t(){e.current?.focus(),e.current?.setSelectionStart(8)}function n(){e.current?.focus(),e.current?.setSelectionRange(2,5)}function r(){e.current?.focus(),e.current?.setRangeText(`INSERTED`,5,9,`select`)}return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows how to change the selection in a KolInputText.`})}),(0,G.jsxs)(K,{id:`select-range`,children:[(0,G.jsx)(R,{_value:`Very long value`,_label:`Text Input Label`,ref:e}),(0,G.jsx)(N,{_label:`Set Start`,onClick:t}),(0,G.jsx)(N,{_label:`Set Range`,onClick:n}),(0,G.jsx)(N,{_label:`Set Range Text`,onClick:r})]})]})},pd={_icons:`kolicon-alert-info`,_hideLabel:!0},md={left:{icon:`kolicon-eye`},right:{icon:`kolicon-check`}},hd=()=>{let e=Di.getInstance(document),t={onClick:()=>{e.enqueue({description:`Smart-Button clicked`,label:`Toaster`,type:`default`})}};return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows the smart button feature for KolInputText. It allows the usage of a button inside the bnput.`})}),(0,G.jsx)(K,{id:`enabled`,children:(0,G.jsx)(R,{_label:`Input with button and icons`,_type:`text`,_smartButton:{...pd,_label:`Open Toast`,_on:t},_icons:md})}),(0,G.jsx)(K,{id:`disabled`,children:(0,G.jsx)(R,{_label:`Disabled input with button and icons`,_disabled:!0,_type:`text`,_smartButton:{...pd,_label:`Disabled Button`},_icons:md})})]})},gd=class{SEPARATOR=` `;CHARS_PER_GROUP=4;KEEP_ALPHANUM=/[^a-zA-Z0-9]/g;parse(e){return e.replace(this.KEEP_ALPHANUM,``).toUpperCase()}format(e){let t=this.parse(e),n=RegExp(`(.{${this.CHARS_PER_GROUP}})(?!$)`,`g`);return t.replace(n,`$1${this.SEPARATOR}`)}adjustCursorPosition(e,t,n){let r=this.format(e),i=this.format(t);if(n>=r.length)return i.length;let a=0;for(let e=0;e<n&&e<r.length;e++)r[e]!==this.SEPARATOR&&a++;let o=0;for(let e=0;e<i.length;e++)if(i[e]!==this.SEPARATOR&&o++===a)return e;return i.length}},_d=class{LOCALE=navigator.language;CURRENCY_SYMBOL=` €`;parse(e){let t=e.replace(/[^\d.,]/g,``),n=t.lastIndexOf(`,`),r=t.lastIndexOf(`.`),i;return i=n>r?t.replace(/\./g,``).replace(`,`,`.`):r>n?t.replace(/,/g,``):t.replace(/[.,]/g,``),parseFloat(i)||0}format(e){let t=typeof e==`string`?this.parse(e):e;return new Intl.NumberFormat(this.LOCALE,{minimumFractionDigits:2,maximumFractionDigits:2}).format(t)+this.CURRENCY_SYMBOL}adjustCursorPosition(e,t,n){let r=this.format(e),i=this.format(t);if(n>=r.length)return i.length;let a=0;for(let e=0;e<n&&e<r.length;e++)/\d/.test(r[e])&&a++;let o=0;for(let e=0;e<i.length;e++)if(/\d/.test(i[e])&&o++===a)return e;return i.length}};function vd(){let e=new gd,t=new _d,n=Pl({defaultValues:{iban:`DE89370400440532013000`}}),r=Pl({defaultValues:{currency:1e6}}),i=t=>{let r=t.target,i=e.parse(r.value),a=e.adjustCursorPosition(n.getValues(`iban`),i,r.selectionStart||0);n.setValue(`iban`,i),requestAnimationFrame(()=>{requestAnimationFrame(()=>{r.setSelectionRange(a,a)})})};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsx)(`p`,{children:`This example demonstrates two different formatting strategies for input fields:`}),(0,G.jsxs)(`ul`,{children:[(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`Live Formatting (IBAN):`}),` Formatting happens while typing. The value is immediately formatted and displayed with intelligent cursor positioning. Best for fixed-format values where users expect visual feedback during input.`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`On-Blur Formatting (Currency):`}),` Formatting happens when leaving the field (onBlur event). Allows free typing without interruption. Best for numeric values where users might input in various formats.`]})]}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`strong`,{children:`Key Concept:`}),` The form model always stores the `,(0,G.jsx)(`em`,{children:`unformatted`}),` value (raw IBAN string, numeric currency value), while the input field displays the `,(0,G.jsx)(`em`,{children:`formatted`}),` value for better readability.`]})]}),(0,G.jsxs)(K,{id:`iban`,className:`w-full flex flex-col`,children:[(0,G.jsxs)(`div`,{className:`p-2`,children:[(0,G.jsx)(F,{_label:`Live Formatting - IBAN`,_level:2}),(0,G.jsx)(`p`,{className:`text-sm mb-2`,children:`Formatting occurs during input with intelligent cursor control`}),(0,G.jsx)(xe,{children:(0,G.jsx)(`form`,{onSubmit:n.handleSubmit(async()=>{}),children:(0,G.jsx)(jc,{name:`iban`,control:n.control,render:({field:t})=>(0,G.jsx)(`div`,{className:`block mt-2`,children:(0,G.jsx)(R,{id:`field-iban`,_label:`IBAN`,_value:e.format(t.value??``),_required:!0,_on:{onInput:i,onBlur:t.onBlur}})})})})})]}),(0,G.jsxs)(`div`,{className:`p-2`,children:[(0,G.jsx)(F,{_label:`Model (Unformatted Value)`,_level:2}),(0,G.jsx)(`pre`,{className:`text-base`,children:JSON.stringify(n.watch(),null,2)})]})]}),(0,G.jsxs)(K,{id:`currency`,className:`w-full flex flex-col`,children:[(0,G.jsxs)(`div`,{className:`p-2`,children:[(0,G.jsx)(F,{_label:`On-Blur Formatting - Currency`,_level:2}),(0,G.jsx)(`p`,{className:`text-sm mb-2`,children:`Formatting occurs when leaving the field (onBlur) for uninterrupted input`}),(0,G.jsx)(xe,{children:(0,G.jsx)(`form`,{onSubmit:r.handleSubmit(async()=>{}),children:(0,G.jsx)(jc,{name:`currency`,control:r.control,render:({field:e})=>(0,G.jsx)(`div`,{className:`block mt-2`,children:(0,G.jsx)(R,{id:`field-currency`,_label:`Currency`,_value:t.format(e.value??0),_on:{onBlur:n=>{let r=n.target,i=t.parse(r.value);e.onChange(i),e.onBlur()}}})})})})})]}),(0,G.jsxs)(`div`,{className:`p-2`,children:[(0,G.jsx)(F,{_label:`Model (Numeric Value)`,_level:2}),(0,G.jsx)(`pre`,{className:`text-base`,children:JSON.stringify(r.watch(),null,2)})]})]})]})}var $={"input-text":{"aria-details":Xu,basic:Qu,"clear-button":$u,"get-value":rd,"message-types":od,placeholder:ud,disabled:td,readonly:dd,counter:ed,"msg-and-counter":sd,"access-short-key":Gu,"hide-label":id,"hide-msg":ad,"text-formatter":vd,"smart-button":hd,"expert-slot":nd,pattern:ld,"select-range":fd,background:Zu,variant:()=>{let[e]=$r(),t=e.get(`theme`)??co(),n=(0,E.useMemo)(()=>t?$a(t,`inputVariants`):[],[t]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This story showcases input variants depending on your choosen theme.`})}),(0,G.jsx)(`div`,{className:`grid grid-cols-2 gap-8 p-8`,children:!Array.isArray(n)||n.length===0?(0,G.jsx)(K,{id:`no-variants`,children:(0,G.jsx)(`p`,{children:`This theme has no variants for inputs.`})}):n.map(e=>(0,G.jsxs)(K,{id:`variant-${ya(String(e))}`,heading:`Variante: ${String(e)}`,className:`grid gap-4 p-8`,children:[(0,G.jsx)(R,{_label:`Input Text`,_hint:`Enter your surname`,_variant:e,_msg:{_type:`error`,_description:`Error message`},_touched:!0,_hasCounter:!0}),(0,G.jsx)(Oe,{_label:`Input Passwort`,_variant:e}),(0,G.jsx)(we,{_label:`Input Color`,_variant:e}),(0,G.jsx)(L,{_label:`Input Date`,_variant:e}),(0,G.jsx)(Te,{_label:`Input Email`,_variant:e}),(0,G.jsx)(Ee,{_label:`Input File`,_variant:e}),(0,G.jsx)(De,{_label:`Input Number`,_variant:e}),(0,G.jsx)(Ae,{_label:`Input Range`,_variant:e}),(0,G.jsx)(Re,{_label:`Select`,_options:[{label:`Please select…`,value:``},{label:`One`,value:`one`},{label:`Two`,value:`two`}],_variant:e}),(0,G.jsx)(ze,{_label:`Single Select`,_options:[{label:`One`,value:`one`},{label:`Two`,value:`two`}],_variant:e}),(0,G.jsx)(_e,{_label:`Combobox`,_suggestions:`['Herr','Frau','Firma']`,_variant:e}),(0,G.jsx)(ke,{_label:`Radio Group`,_options:[{label:`Field 1`,value:1},{label:`Field 2`,value:2}],_variant:e}),(0,G.jsx)(H,{_label:`Textarea`,_variant:e})]},e))})]})}}},yd={kolibri:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolKolibri renders the KoliBri logo. The sample show the logo with and without label and with a custom color.`})}),(0,G.jsxs)(K,{id:`basic`,children:[(0,G.jsx)(F,{class:`block`,_level:3,_label:`Regular`}),(0,G.jsx)(je,{class:`block`,style:{width:300}}),(0,G.jsx)(F,{class:`block`,_level:3,_label:`Without Label`}),(0,G.jsx)(je,{class:`block`,style:{width:300},_labeled:!1}),(0,G.jsx)(F,{class:`block`,_level:3,_label:`Customized color`}),(0,G.jsx)(je,{class:`block`,style:{width:300},_color:`#cc006e`})]})]})}},bd={"link-button":{basic:()=>{let[e]=$r(),t=e.get(`theme`)??co(),n=(0,E.useMemo)(()=>t?$a(t,`buttonVariants`):[],[t]),{dummyClickEventHandler:r}=Fa(),i={onClick:r};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolLinkButton renders a link that looks like a button. The sample shows the different theme exclusive styling variants.`})}),(0,G.jsx)(`div`,{className:`grid gap-8`,children:(0,G.jsxs)(K,{id:`variants`,children:[(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4 items-center`,children:!Array.isArray(n)||n.length===0?(0,G.jsx)(`p`,{children:`This theme has no variants for this component.`}):n.map(e=>(0,G.jsx)(B,{_href:`#/back-page`,_icons:`kolicon-house`,_label:`${e}`,_variant:e,_on:i},e))}),(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4 items-center`,children:!Array.isArray(n)||n.length===0?(0,G.jsx)(`p`,{children:`This theme has no variants for this component.`}):n.map(e=>(0,G.jsx)(B,{_href:`#/back-page`,_hideLabel:!0,_icons:`kolicon-settings`,_label:`${e}`,_variant:e,_on:i},e))})]})})]})},"aria-description":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolLinkButton with aria-description`})}),(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,G.jsx)(B,{_href:`#/back-page`,_label:`Link Button Text without area description`}),(0,G.jsx)(B,{_href:`#/back-page`,_label:`Link Button Text`,_ariaDescription:`Link Button Aria Description`}),(0,G.jsx)(B,{_href:`#/back-page`,_label:`Link Button Text`,_ariaDescription:`Link Button Aria Description with external Link`,_target:`_blank`})]})]}),target:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolLinkButton with diffrent Targets`})}),(0,G.jsxs)(K,{id:`target`,className:`flex flex-wrap gap-2`,children:[(0,G.jsx)(B,{_href:`#/back-page`,_label:`Link Button Target default`}),(0,G.jsx)(B,{_href:`#/back-page`,_label:`Link Button Target _self`,_target:`_blank`}),(0,G.jsx)(B,{_href:`#/back-page`,_label:`Link Button Target _blank`,_target:`_blank`})]})]})}},xd={link:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`KolLink renders a link. This sample shows disabled links, links with hidden label, the boolean _inline property and links with different CSS`,` `,(0,G.jsx)(`code`,{children:`display`}),`-properties.`]})}),(0,G.jsxs)(K,{id:`basic`,children:[(0,G.jsx)(z,{_href:`#/back-page`,_inline:!1,_label:`Simple Link`}),(0,G.jsx)(z,{_disabled:!0,_href:`#/back-page`,_inline:!1,_label:`Simple Link (disabled)`}),(0,G.jsx)(z,{_hideLabel:!0,_icons:`kolicon-house`,_href:`#/back-page`,_inline:!1,_label:`Icon Link`}),(0,G.jsx)(z,{_disabled:!0,_hideLabel:!0,_icons:`kolicon-house`,_href:`#/back-page`,_inline:!1,_label:`Icon Link (disabled)`}),(0,G.jsxs)(`p`,{children:[`In this paragraph, a standard link `,(0,G.jsx)(z,{_href:`#/back-page`,_label:`Simple Link`}),` and a disabled link`,` `,(0,G.jsx)(z,{_disabled:!0,_href:`#/back-page`,_label:`Simple Link (disabled)`}),` are inserted. They are rendered by default as `,(0,G.jsx)(`strong`,{children:`inline elements`}),`.`]}),(0,G.jsxs)(`p`,{children:[`In this paragraph, a link is inserted that is rendered as an inline-block element.`,` `,(0,G.jsx)(z,{class:`d-inline-block`,_accessKey:`S`,_href:`#/back-page`,_label:`Simple Link`}),`. This allows you to assign width, height, and other properties to it using CSS styles.`,(0,G.jsx)(`br`,{}),(0,G.jsx)(`br`,{}),`After that, there is a link that is rendered as a block element. `,(0,G.jsx)(z,{class:`d-block`,_href:`#/back-page`,_label:`Simple Link`}),`, therefore, I span the entire width of the parent element, causing a line break.`]}),(0,G.jsx)(z,{_href:`#/back-page`,_inline:!1,_label:`Special Variant Link`,_variant:`theme-link`})]})]}),icons:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolLink with icons in different alignments and combinations.`})}),(0,G.jsxs)(K,{id:`icons`,children:[(0,G.jsx)(z,{_icons:`kolicon-house`,_label:`I am a link with an icon on the left`,_href:`#/back-page`}),(0,G.jsx)(z,{_icons:{right:`kolicon-house`},_label:`I am a link with an icon on the right`,_href:`#/back-page`}),(0,G.jsx)(z,{_icons:{top:`kolicon-house`},_label:`I am a link with an icon at the top`,_href:`#/back-page`}),(0,G.jsx)(z,{_icons:{bottom:`kolicon-house`},_label:`I am a link with icon below`,_href:`#/back-page`}),(0,G.jsx)(z,{_icons:{top:`kolicon-house`,right:`kolicon-house`,bottom:`kolicon-house`,left:`kolicon-house`},_label:`I am a link with all icons`,_href:`#/back-page`}),(0,G.jsx)(z,{_icons:`kolicon-house`,_href:`https://public-ui.github.io/`,_label:`I am a external link with an icon on the left`,_target:`_blank`}),(0,G.jsx)(z,{_icons:{right:`kolicon-house`},_href:`https://public-ui.github.io/`,_label:`I am a external linkwith an icon on the right`,_target:`_blank`}),(0,G.jsx)(z,{_icons:{top:`kolicon-house`},_href:`https://public-ui.github.io/`,_label:`I am a external link with an icon at the top`,_target:`_blank`}),(0,G.jsx)(z,{_icons:{bottom:`kolicon-house`},_href:`https://public-ui.github.io/`,_label:`I am a external link with icon below`,_target:`_blank`}),(0,G.jsx)(z,{_href:`https://public-ui.github.io/`,_label:`I am a external link with all icons`,_target:`_blank`,_icons:{top:`kolicon-house`,right:`kolicon-house`,bottom:`kolicon-house`,left:`kolicon-house`}})]})]}),image:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolLink can be used with slot-content instead of a label as well. This sample demonstrates the slot content used to display an image.`})}),(0,G.jsxs)(K,{id:`image`,children:[(0,G.jsx)(z,{_href:`#/back-page`,_label:`I am a link that is rendered as text`}),(0,G.jsx)(z,{_href:`#/back-page`,_label:``,children:(0,G.jsx)(Ce,{_alt:`KoliBri design system illustration showing three people working on laptops surrounded by UI components, charts, and the KoliBri hummingbird logo`,_src:`sample-image.png`,className:`w-image`,slot:`expert`})})]})]}),target:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample shows KolLink with different `,(0,G.jsx)(`code`,{children:`_target`}),`-properties.`]})}),(0,G.jsx)(K,{id:`target`,className:`text-base d-flex gap-4`,children:(0,G.jsxs)(`ul`,{children:[(0,G.jsx)(`li`,{children:(0,G.jsx)(z,{_href:`#/back-page`,_label:`Link without target`})}),(0,G.jsx)(`li`,{children:(0,G.jsx)(z,{_href:`#/back-page`,_label:`Link with target (_self)`,_target:`_self`})}),(0,G.jsx)(`li`,{children:(0,G.jsx)(z,{_href:`#/back-page`,_label:`Link with target (_blank)`,_target:`_blank`})}),(0,G.jsx)(`li`,{children:(0,G.jsx)(z,{_href:`#/back-page`,_icons:`kolicon-house`,_hideLabel:!0,_label:`Link without target`})}),(0,G.jsx)(`li`,{children:(0,G.jsx)(z,{_href:`#/back-page`,_icons:`kolicon-house`,_hideLabel:!0,_label:`Link with target (_self)`,_target:`_self`})}),(0,G.jsx)(`li`,{children:(0,G.jsx)(z,{_href:`#/back-page`,_icons:`kolicon-house`,_hideLabel:!0,_label:`Link with target (_blank)`,_target:`_blank`})})]})})]}),"aria-description":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolLink with aria-description`})}),(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(z,{_href:`#/back-page`,_label:`Link Text without aria description`}),(0,G.jsx)(z,{_href:`#/back-page`,_label:`Link Text`,_ariaDescription:`Link Area Description`})]})]}),"access-key":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolLink with access key. The access keys can be used to trigger the buttons using the keyboard.`})}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(z,{_href:`#/back-page`,_label:`With S access key`,_accessKey:`S`}),(0,G.jsx)(z,{_href:`#/back-page`,_label:`Very small s`,_accessKey:`s`}),(0,G.jsx)(z,{_href:`#/back-page`,_label:`Access key does not appear in label`,_accessKey:`s`}),(0,G.jsx)(z,{_hideLabel:!0,_icons:`kolicon-house`,_href:`#/back-page`,_label:`access key without label`,_accessKey:`s`})]})]}),"short-key":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolButton with short key without functionality. The short key is purely visual. Its functionality needs to be developed separately.`})}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(z,{_href:`#/back-page`,_label:`With S short key`,_shortKey:`S`}),(0,G.jsx)(z,{_href:`#/back-page`,_label:`Very small s`,_shortKey:`s`}),(0,G.jsx)(z,{_href:`#/back-page`,_label:`Short key does not appear in label`,_shortKey:`s`}),(0,G.jsx)(z,{_hideLabel:!0,_icons:`kolicon-house`,_href:`#/back-page`,_label:`short key without label`,_shortKey:`s`})]})]}),"react-router":()=>{let e=zn();return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows how KolLink works with react-router. Primary click uses preventDefault() and navigate(...), while right click open in new tab still follows _href. Make sure _href and navigate(...) point to the same path.`})}),(0,G.jsx)(`div`,{className:`grid gap-4`,children:(0,G.jsx)(z,{_href:`/back-page`,_inline:!1,_label:`Go to overview`,_on:{onClick:t=>{t.preventDefault(),e(`/back-page`)}}})})]})},"linked-headline":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows a linked headline with anchor.`})}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(z,{_href:`/#/link/linked-headline#headline1`,_label:``,children:(0,G.jsx)(F,{_label:`I'm H2-heading number one`,_level:2,slot:`expert`,id:`headline1`})}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(z,{_href:`/#/link/linked-headline#headline2`,_label:``,children:(0,G.jsx)(F,{_label:`I'm H2-heading number two`,_level:2,slot:`expert`,id:`headline2`})}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(z,{_href:`/#/link/linked-headline#headline3`,_label:``,children:(0,G.jsx)(F,{_label:`I'm H2-heading number three`,_level:2,slot:`expert`,id:`headline3`})}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`}),(0,G.jsx)(`p`,{children:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`})]})]}),"on-click":()=>{let[e,t]=(0,E.useState)(0);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsxs)(`p`,{children:[`This sample demonstrates the issue described in`,` `,(0,G.jsx)(`a`,{href:`https://github.com/public-ui/kolibri/issues/10726`,target:`_blank`,rel:`noopener noreferrer`,children:`#10726`}),`.`,(0,G.jsx)(`br`,{}),`Test the behavior of KolLink with onClick handlers and compare it to native <a> tags.`]}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`strong`,{children:`Expected behavior (like native <a> tag):`}),(0,G.jsxs)(`ul`,{children:[(0,G.jsx)(`li`,{children:`onClick without preventDefault: Execute onClick AND navigate to href`}),(0,G.jsx)(`li`,{children:`onClick with preventDefault: Execute onClick, BLOCK navigation`}),(0,G.jsx)(`li`,{children:`onClick returning false: Execute onClick, BLOCK navigation`})]})]}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`strong`,{children:`Current behavior (Issue #10726):`}),(0,G.jsxs)(`ul`,{children:[(0,G.jsx)(`li`,{children:`❌ onClick with preventDefault: Still navigates to href (should only execute onClick)`}),(0,G.jsx)(`li`,{children:`❌ onClick returning false: Still navigates to href (should only execute onClick)`})]})]})]}),(0,G.jsx)(K,{id:`on-click`,children:(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsxs)(`div`,{className:`bg-gray-100 p-4 rounded`,children:[(0,G.jsx)(`h2`,{className:`h3 mb-2`,children:`Test Results`}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`strong`,{children:`onClick executions:`}),` `,e]}),(0,G.jsx)(`p`,{className:`text-sm text-gray-600`,children:`(Open browser console to see detailed logs)`}),(0,G.jsx)(`p`,{className:`text-sm text-gray-600`,children:`Note: This demo uses href="#test" to avoid actual page reloads. Check the URL hash and console output.`})]}),(0,G.jsxs)(`div`,{className:`bg-white p-4 rounded border`,children:[(0,G.jsx)(`h3`,{className:`h4 mb-2`,children:`Test 1: onClick ohne preventDefault`}),(0,G.jsx)(`p`,{className:`text-sm text-gray-600 mb-2`,children:`Expected: Click increments counter AND adds #test-1 to URL`}),(0,G.jsx)(z,{_href:`#test-1`,_label:`Click me (no preventDefault)`,_on:{onClick:(e,n)=>{console.log(`Test 1: onClick ohne preventDefault`,{event:e,href:n}),t(e=>e+1)}},_inline:!1})]}),(0,G.jsxs)(`div`,{className:`bg-white p-4 rounded border`,children:[(0,G.jsx)(`h3`,{className:`h4 mb-2`,children:`Test 2: onClick mit preventDefault()`}),(0,G.jsx)(`p`,{className:`text-sm text-gray-600 mb-2`,children:`Expected: Click increments counter but does NOT add #test-2 to URL`}),(0,G.jsx)(z,{_href:`#test-2`,_label:`Click me (with preventDefault)`,_on:{onClick:(e,n)=>{console.log(`Test 2: onClick mit preventDefault`,{event:e,href:n}),t(e=>e+1),e.preventDefault()}},_inline:!1})]}),(0,G.jsxs)(`div`,{className:`bg-white p-4 rounded border`,children:[(0,G.jsx)(`h3`,{className:`h4 mb-2`,children:`Test 3: onClick returning false`}),(0,G.jsx)(`p`,{className:`text-sm text-gray-600 mb-2`,children:`Expected: Click increments counter but does NOT add #test-3 to URL`}),(0,G.jsx)(z,{_href:`#test-3`,_label:`Click me (return false)`,_on:{onClick:(e,n)=>(console.log(`Test 3: onClick mit return false`,{event:e,href:n}),t(e=>e+1),!1)},_inline:!1})]}),(0,G.jsxs)(`div`,{className:`bg-white p-4 rounded border`,children:[(0,G.jsx)(`h3`,{className:`h4 mb-2`,children:`Test 4: useNavigate Pattern (Issue #10726)`}),(0,G.jsx)(`p`,{className:`text-sm text-gray-600 mb-2`,children:`Expected: Click logs navigate action but does NOT add #test-4 to URL`}),(0,G.jsx)(z,{_href:`#test-4`,_label:`Click me (simulate useNavigate)`,_on:{onClick:(e,n)=>{console.log(`Test 4: onClick mit simulate navigate`,{event:e,href:n}),t(e=>e+1),e.preventDefault(),console.log(`Simulated navigate to:`,n)}},_inline:!1})]}),(0,G.jsxs)(`div`,{className:`bg-white p-4 rounded border`,children:[(0,G.jsx)(`h3`,{className:`h4 mb-2`,children:`Reference: Native <a> Tag`}),(0,G.jsx)(`p`,{className:`text-sm text-gray-600 mb-2`,children:`Test native <a> tag behavior for comparison`}),(0,G.jsxs)(`div`,{className:`grid gap-2`,children:[(0,G.jsx)(`a`,{href:`#native-test-1`,onClick:()=>{console.log(`Native a: onClick ohne preventDefault`),t(e=>e+1)},className:`btn btn-primary`,children:`Native: No preventDefault`}),(0,G.jsx)(`a`,{href:`#native-test-2`,onClick:e=>{console.log(`Native a: onClick mit preventDefault`),t(e=>e+1),e.preventDefault()},className:`btn btn-primary`,children:`Native: With preventDefault`}),(0,G.jsx)(`a`,{href:`#native-test-3`,onClick:()=>(console.log(`Native a: onClick mit return false`),t(e=>e+1),!1),className:`btn btn-primary`,children:`Native: Return false`})]})]})]})})]})},"link-variant":()=>{let[e]=$r(),t=e.get(`theme`)??co(),n=(0,E.useMemo)(()=>t?$a(t,`linkVariants`):[],[t]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows the theme specific variants of KolLink.`})}),(0,G.jsxs)(K,{id:`variants`,children:[(0,G.jsx)(z,{_href:`#/back-page`,_label:`Normal link without a variant`}),!Array.isArray(n)||n.length===0?(0,G.jsx)(`p`,{children:`This theme has no variants for this component.`}):n.map(e=>(0,G.jsx)(z,{_href:`#/back-page`,_label:`Theme exclusive variant: ${e}`,_variant:e},e))]})]})}}},Sd={meter:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolMeter renders a semantic meter element. You can use _min (default 0), _max (default 1) and _unit (default %) to customize it.`})}),(0,G.jsx)(`div`,{className:`grid gap-8`,children:(0,G.jsx)(K,{id:`basic`,heading:`Basic`,children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,G.jsx)(Me,{_label:`Storage used`,_value:.5}),(0,G.jsx)(Me,{_label:`Weight`,_max:100,_value:75,_unit:`kg`}),(0,G.jsx)(Me,{_label:`Temperature`,_min:-100,_max:100,_value:-50,_unit:`°C`})]})})})]}),clamped:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`A `,(0,G.jsx)(`code`,{children:`_value`}),` outside the range of `,(0,G.jsx)(`code`,{children:`_min`}),` and `,(0,G.jsx)(`code`,{children:`_max`}),` is clamped into it: a value above `,(0,G.jsx)(`code`,{children:`_max`}),` renders as`,` `,(0,G.jsx)(`code`,{children:`_max`}),`, a value below `,(0,G.jsx)(`code`,{children:`_min`}),` as `,(0,G.jsx)(`code`,{children:`_min`}),`.`]})}),(0,G.jsx)(`div`,{className:`grid gap-8`,children:(0,G.jsx)(K,{id:`clamped`,heading:`Values outside the range`,children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,G.jsx)(Me,{_label:`Value 140, maximum 100 (shows 100)`,_max:100,_value:140,_unit:`%`}),(0,G.jsx)(Me,{_label:`Value 60, range 0 to 100 (unchanged)`,_max:100,_value:60,_unit:`%`}),(0,G.jsx)(Me,{_label:`Value -20, minimum 0 (shows 0)`,_min:0,_max:100,_value:-20,_unit:`%`}),(0,G.jsx)(Me,{_label:`Value -40 °C, range -20 to 60 °C (shows -20 °C)`,_min:-20,_max:60,_value:-40,_unit:`°C`})]})})})]}),dynamic:()=>{let[e,t]=(0,E.useState)(120);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolMeter announces value changes immediately to screen readers. Use the buttons below to verify the live region updates without delay.`})}),(0,G.jsx)(`div`,{className:`grid gap-8`,children:(0,G.jsxs)(K,{id:`dynamic-value`,heading:`Dynamic value`,children:[(0,G.jsx)(Me,{_label:`Used hard disk space`,_max:500,_min:0,_unit:`GB`,_value:e}),(0,G.jsxs)(`div`,{className:`flex gap-4`,children:[(0,G.jsx)(M,{_label:`120 GB`,_on:{onClick:()=>t(120)},_variant:`secondary`}),(0,G.jsx)(M,{_label:`240 GB`,_on:{onClick:()=>t(240)},_variant:`secondary`}),(0,G.jsx)(M,{_label:`360 GB`,_on:{onClick:()=>t(360)},_variant:`secondary`}),(0,G.jsx)(M,{_label:`480 GB`,_on:{onClick:()=>t(480)},_variant:`secondary`})]})]})})]})},optimum:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`The _optimum prop indicates the preferred value. Combined with _low and _high, the browser uses it to determine whether the current value is in a good, acceptable or bad zone – which affects the semantic coloring.`})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsx)(K,{id:`optimum-medium-zone-good`,heading:`Optimum in medium zone (good = medium)`,children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,G.jsx)(Me,{_label:`Temperature is nice`,_min:-20,_max:60,_low:10,_high:30,_optimum:20,_value:20,_unit:`°C`}),(0,G.jsx)(Me,{_label:`It's too cold`,_min:-20,_max:60,_low:10,_high:30,_optimum:20,_value:-10,_unit:`°C`}),(0,G.jsx)(Me,{_label:`It's too hot`,_min:-20,_max:60,_low:10,_high:30,_optimum:20,_value:50,_unit:`°C`})]})}),(0,G.jsx)(K,{id:`optimum-low-zone-good-low`,heading:`Optimum in low zone (good = low)`,children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,G.jsx)(Me,{_label:`Memory Usage`,_max:100,_value:10,_low:25,_high:75,_optimum:10}),(0,G.jsx)(Me,{_label:`Memory Usage`,_max:100,_value:50,_low:25,_high:75,_optimum:10}),(0,G.jsx)(Me,{_label:`Memory Usage`,_max:100,_value:90,_low:25,_high:75,_optimum:10})]})}),(0,G.jsx)(K,{id:`optimum-high-zone-good-high`,heading:`Optimum in high zone (good = high)`,children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,G.jsx)(Me,{_label:`Battery level`,_max:100,_value:10,_low:25,_high:75,_optimum:90}),(0,G.jsx)(Me,{_label:`Battery level`,_max:100,_value:50,_low:25,_high:75,_optimum:90}),(0,G.jsx)(Me,{_label:`Battery level`,_max:100,_value:90,_low:25,_high:75,_optimum:90})]})})]})]}),orientation:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`The _orientation prop switches the meter bar between horizontal (default) and vertical. Vertical meters grow from bottom to top and are useful for tank fill levels, signal strength or similar scalar indicators.`})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsx)(K,{id:`vertical`,heading:`Vertical`,children:(0,G.jsxs)(`div`,{className:`flex flex-row gap-8 items-end`,children:[(0,G.jsx)(Me,{style:{"--kol-meter-vertical-height":`100`},_label:`Tank 100l`,_max:100,_value:50,_orientation:`vertical`,_unit:`l`}),(0,G.jsx)(Me,{style:{"--kol-meter-vertical-height":`150`},_label:`Tank 150l`,_max:150,_value:50,_orientation:`vertical`,_unit:`l`}),(0,G.jsx)(Me,{style:{"--kol-meter-vertical-height":`200`},_label:`Tank 200l`,_max:200,_value:150,_orientation:`vertical`,_unit:`l`})]})}),(0,G.jsx)(K,{id:`vertical-ranges-optimum`,heading:`Vertical with ranges and optimum`,children:(0,G.jsxs)(`div`,{className:`flex flex-row gap-8`,children:[(0,G.jsx)(Me,{_label:`Low`,_max:100,_value:10,_low:25,_high:75,_optimum:50,_orientation:`vertical`}),(0,G.jsx)(Me,{_label:`OK`,_max:100,_value:50,_low:25,_high:75,_optimum:50,_orientation:`vertical`}),(0,G.jsx)(Me,{_label:`High`,_max:100,_value:90,_low:25,_high:75,_optimum:50,_orientation:`vertical`})]})})]})]})}},Cd={modal:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(pe,{_label:`Component is DEPRECATED`,_type:`error`,_variant:`card`,className:`header-alert`,children:[`The Modal component was renamed to Dialog. Please use the Dialog sample instead.\xA0`,(0,G.jsx)(z,{_href:`/#/dialog`,_target:`_blank`,_label:`Open Dialog samples`})]}),(0,G.jsx)(qo,{})]})}},wd=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample shows KolNav with a link to the current page. This makes the component automatically assign `,(0,G.jsx)(`code`,{children:`aria-current="page"`}),`to it.`]})}),(0,G.jsx)(K,{id:`aria-current`,children:(0,G.jsx)(Ne,{class:`block w-sm`,_label:`Main navigation`,_links:[{_label:`Homepage`,_href:`#/back-page`},{_label:`Nav - aria-current (Current page)`,_href:`#/nav/aria-current`,_active:!0}]})})]}),Td=[{_label:`Homepage`,_icons:`kolicon-house`,_on:{onClick:()=>console.log(`Homepage clicked`)}},{_label:`2 Navigation point`,_href:`#/back-page`,_on:{onClick:()=>console.log(`Link clicked`)}},{_label:`3 Navigation point`,_href:`#/back-page`,_icons:`kolicon-house`,_children:[{_label:`3.1 Navigation point`,_icons:`kolicon-house`,_href:`#/back-page`},{_label:`3.2 Navigation point`,_href:`#/back-page`,_target:`asdasd`},{_label:`3.3 Navigation point`,_href:`#/back-page`,_children:[{_label:`3.3.1 Navigation point`,_href:`#/back-page`},{_label:`3.3.2 Navigation point`,_href:`#/back-page`}]},{_label:`3.4 Navigation point`,_href:`#/back-page`,_children:[{_label:`3.4.1 Navigation point`,_href:`#/back-page`,_children:[{_label:`3.4.1.1 Navigation point`,_href:`#/back-page`},{_label:`3.4.1.2 Navigation point (active)`,_href:`#/back-page`}]},{_label:`3.4.2 Navigation point`,_href:`#/back-page`}]},{_label:`3.5 Navigation point`,_href:`#/back-page`}]},{_label:`4 Navigation point with children and onClick`,_children:[{_label:`4.1 Nested link`,_href:`#/back-page`}],_on:{onClick:()=>console.log(`4.1 Nested link clicked`)}},{_label:`5 No own page, only category`,_active:!0,_children:[{_label:`5.1 Nested link`,_href:`#/back-page`}]},{_label:`6 No own page, with icon`,_icons:`kolicon-kolibri`,_children:[{_label:`6.1 Nested link`,_href:`#/back-page`}]}],Ed=[{_label:`Homepage`,_icons:`kolicon-house`,_on:{onClick:()=>console.log(`Homepage clicked`)}},{_label:`2 Navigation point`,_href:`#/back-page`,_on:{onClick:()=>console.log(`Link clicked`)}},{_label:`3 Navigation point`,_href:`#/back-page`,_icons:`kolicon-house`},{_label:`4 Navigation point with children and onClick`,_on:{onClick:()=>console.log(`4.1 Nested link clicked`)}},{_label:`5 No own page, only category`,_active:!0},{_label:`6 No own page, with icon`,_icons:`kolicon-kolibri`}],Dd=[{_label:`Homepage`,_icons:`kolicon-house`,_on:{onClick:()=>console.log(`Homepage clicked`)}},{_label:`2 Navigation point`,_href:`#/back-page`,_on:{onClick:()=>console.log(`Link clicked`)}},{_label:`3 Navigation point`,_href:`#/back-page`,_icons:`kolicon-house`,_children:[{_label:`3.1 Navigation point`,_icons:`kolicon-house`,_href:`#/back-page`},{_label:`3.2 Navigation point`,_target:`asdasd`},{_label:`3.3 Navigation point`,_href:`#/back-page`,_children:[{_label:`3.3.1 Navigation point`,_href:`#/back-page`,_active:!0},{_label:`3.3.2 Navigation point`,_href:`#/back-page`}]},{_label:`3.4 Navigation point`,_href:`#/back-page`,_children:[{_label:`3.4.1 Navigation point`,_href:`#/back-page`,_children:[{_label:`3.4.1.1 Navigation point`,_href:`#/back-page`},{_label:`3.4.1.2 Navigation point (active)`,_href:`#/back-page`}]},{_label:`3.4.2 Navigation point`,_href:`#/back-page`}]},{_label:`3.5 Navigation point`,_href:`#/back-page`}]}],Od={nav:{basic:()=>{let[e,t]=(0,E.useState)(!0);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolNav renders a navigation. In this sample, icons for the navigation elements can be shown or hidden using a checkbox and the navigation can be collapsed, showing only icons and no text labels.`})}),(0,G.jsxs)(`section`,{className:`grid gap-8`,children:[(0,G.jsx)(`section`,{children:(0,G.jsx)(I,{_label:`Show icons when expanded`,_checked:e,_on:{onChange:(e,n)=>{t(n)}}})}),(0,G.jsx)(K,{id:`navigation-submenu`,heading:`Navigation without submenu`,fitContent:!0,children:(0,G.jsx)(Ne,{class:`block w-fit`,_label:`Navigation without submenu`,_links:Ed,_hasCompactButton:!0,_hasIconsWhenExpanded:e})}),(0,G.jsx)(K,{id:`navigation-submenu-2`,heading:`Navigation with submenu`,fitContent:!0,children:(0,G.jsx)(Ne,{class:`block w-fit`,_label:`Navigation with submenu`,_links:Td,_hasCompactButton:!0,_hasIconsWhenExpanded:e})}),(0,G.jsx)(K,{id:`navigation-submenu-active`,heading:`Navigation with submenu active`,fitContent:!0,children:(0,G.jsx)(Ne,{class:`block w-fit`,_label:`Navigation with submenu active`,_links:Dd,_hasCompactButton:!0,_hasIconsWhenExpanded:e})})]})]})},"aria-current":wd}},kd={pagination:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolPagination renders a pagination for datasets. The sample shows the different states and variations of a pagination and the option to change the page size.`})}),(0,G.jsxs)(K,{id:`basic`,narrow:!0,children:[(0,G.jsx)(Pe,{_max:316514,_page:15475,_pageSize:20,_siblingCount:3,_boundaryCount:1,_label:`Large dataset, page in the middle (Entries 309481 to 309500 of 316514)`,_on:{}}),(0,G.jsx)(Pe,{_max:316514,_page:1,_pageSize:50,_siblingCount:2,_boundaryCount:1,_label:`Large dataset, first page (Entries 1 to 50 of 316514)`,_on:{}}),(0,G.jsx)(Pe,{_max:316514,_page:6331,_pageSize:50,_siblingCount:2,_boundaryCount:1,_label:`Large dataset, last page (Entries 316501 to 316514 of 316514)`,_on:{}}),(0,G.jsx)(Pe,{_max:14,_page:14,_pageSize:1,_siblingCount:1,_boundaryCount:2,_label:`Small dataset, last page (Entries 14 to 14 of 14)`,_on:{}}),(0,G.jsx)(Pe,{_max:4,_page:1,_pageSize:4,_siblingCount:0,_boundaryCount:2,_label:`Tiny dataset, first page (Entries 1 to 4 of 4)`,_on:{}}),(0,G.jsx)(Pe,{_max:10,_page:15,_pageSize:5,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:`Edge case: page exceeds max (corrected to page 2, Entries 6 to 10 of 10)`,_on:{}}),(0,G.jsx)(Pe,{_max:1e3,_page:10,_pageSize:25,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:`Medium dataset with boundary buttons only (Entries 226 to 250 of 1000)`,_on:{}}),(0,G.jsx)(Pe,{_max:379,_page:6,_pageSize:10,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:`With page size options`,_on:{},_pageSizeOptions:[10,25,50,100]}),(0,G.jsx)(Pe,{_max:100,_page:5,_pageSize:10,_siblingCount:1,_boundaryCount:1,_label:`Page size 10, sibling count 1 (Entries 41 to 50 of 100)`,_on:{}}),(0,G.jsx)(Pe,{_max:250,_page:3,_pageSize:30,_siblingCount:2,_boundaryCount:0,_label:`No boundary buttons, sibling count 2 (Entries 61 to 90 of 250)`,_on:{}})]})]}),"button-visibility":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample demonstrates how to show or hide the navigation buttons (first, previous, next, last) in a pagination. All examples use the same dataset configuration (_max=100, _page=5, _pageSize=10) to show the effect of different button visibility settings.`})}),(0,G.jsxs)(K,{id:`button-visibility`,children:[(0,G.jsx)(Pe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`Default: All buttons visible (first, previous, next, last)`,_on:{}}),(0,G.jsx)(Pe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`Only previous and next buttons`,_on:{},_hasButtons:{first:!1,last:!1,next:!0,previous:!0}}),(0,G.jsx)(Pe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`No navigation buttons, only page numbers`,_on:{},_hasButtons:!1})]}),(0,G.jsxs)(K,{id:`button-combinations`,skipSnapshot:!0,children:[(0,G.jsx)(Pe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`Only first and last buttons`,_on:{},_hasButtons:{first:!0,last:!0,next:!1,previous:!1}}),(0,G.jsx)(Pe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`All buttons except first`,_on:{},_hasButtons:{first:!1,last:!0,next:!0,previous:!0}}),(0,G.jsx)(Pe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`All buttons except last`,_on:{},_hasButtons:{first:!0,last:!1,next:!0,previous:!0}}),(0,G.jsx)(Pe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`All buttons except previous`,_on:{},_hasButtons:{first:!0,last:!0,next:!0,previous:!1}}),(0,G.jsx)(Pe,{_max:100,_page:5,_pageSize:10,_siblingCount:2,_boundaryCount:1,_label:`All buttons except next`,_on:{},_hasButtons:{first:!0,last:!0,next:!1,previous:!0}})]})]}),"sibling-boundary":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample demonstrates how _siblingCount and _boundaryCount affect the number of page buttons shown. All examples use the same dataset configuration (_max=20, _page=5, _pageSize=1) to clearly show the effect of these settings. _siblingCount controls how many page buttons appear next to the current page, while _boundaryCount controls how many buttons appear at the beginning and end of the pagination.`})}),(0,G.jsxs)(K,{id:`sibling-boundary`,children:[(0,G.jsx)(Pe,{_max:20,_page:5,_pageSize:1,_label:`Default: siblingCount=1, boundaryCount=1 (shows pages 1, 4, 5, 6, 20)`,_on:{}}),(0,G.jsx)(Pe,{_max:20,_page:5,_pageSize:1,_siblingCount:2,_boundaryCount:1,_label:`siblingCount=2, boundaryCount=1 (shows pages 1, 3, 4, 5, 6, 7, 20)`,_on:{}}),(0,G.jsx)(Pe,{_max:20,_page:5,_pageSize:1,_siblingCount:3,_boundaryCount:1,_label:`siblingCount=3, boundaryCount=1 (shows pages 1, 2, 3, 4, 5, 6, 7, 8, 20)`,_on:{}}),(0,G.jsx)(Pe,{_max:20,_page:5,_pageSize:1,_siblingCount:0,_boundaryCount:1,_label:`siblingCount=0, boundaryCount=1 (shows pages 1, 5, 20 only)`,_on:{}}),(0,G.jsx)(Pe,{_max:20,_page:5,_pageSize:1,_siblingCount:1,_boundaryCount:2,_label:`siblingCount=1, boundaryCount=2 (shows pages 1, 2, 4, 5, 6, 19, 20)`,_on:{}}),(0,G.jsx)(Pe,{_max:20,_page:5,_pageSize:1,_siblingCount:1,_boundaryCount:3,_label:`siblingCount=1, boundaryCount=3 (shows pages 1, 2, 3, 4, 5, 6, 18, 19, 20)`,_on:{}}),(0,G.jsx)(Pe,{_max:20,_page:5,_pageSize:1,_siblingCount:1,_boundaryCount:0,_label:`siblingCount=1, boundaryCount=0 (shows pages 4, 5, 6 only, with ellipsis)`,_on:{}}),(0,G.jsx)(Pe,{_max:20,_page:5,_pageSize:1,_siblingCount:0,_boundaryCount:0,_label:`siblingCount=0, boundaryCount=0 (shows page 5 only, with ellipsis on both sides)`,_on:{}}),(0,G.jsx)(Pe,{_max:20,_page:5,_pageSize:1,_siblingCount:5,_boundaryCount:2,_label:`siblingCount=5, boundaryCount=2 (shows almost all pages)`,_on:{}}),(0,G.jsx)(Pe,{_max:100,_page:50,_pageSize:1,_siblingCount:3,_boundaryCount:2,_label:`Larger dataset: _max=100, _page=50, siblingCount=3, boundaryCount=2`,_on:{}})]})]})}},Ad=[`top`,`right`,`bottom`,`left`],jd={"popover-button":{align:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`code`,{children:`_popoverAlign`}),` places the popover on one of the four sides of the button; the default is `,(0,G.jsx)(`code`,{children:`bottom`}),`. If there is not enough space, the popover moves to the opposite side.`]}),(0,G.jsx)(`p`,{children:`Open the buttons one after the other to compare the positions.`})]}),(0,G.jsx)(K,{id:`popover-align`,className:`grid grid-cols-2 gap-32 p-32 justify-items-center`,skipSnapshot:!0,children:Ad.map(e=>(0,G.jsx)(Fe,{_label:`Popover ${e}`,_popoverAlign:e,children:(0,G.jsxs)(`p`,{className:`m-0 p-2 bg-white`,children:[`Popover placed `,(0,G.jsx)(`strong`,{children:e}),`.`]})},e))})]}),basic:()=>{let{dummyClickEventHandler:e}=Fa(),t=E.useRef(null),n={onClick:e},r=[{type:`button`,_label:`Show`,_icons:`kolicon-eye`,_on:n},{type:`button`,_label:`Delete`,_icons:`kolicon-minus`,_on:n},{type:`button`,_label:`Add`,_icons:`kolicon-plus`,_on:n}];return(0,E.useEffect)(()=>{t.current&&(t.current.showPopover(),t.current.focus())},[]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`The PopoverButton component combines a button with a popover that appears when clicked. The popover can be positioned in different directions (top, right, bottom, left) using the `,(0,G.jsx)(`code`,{children:`_popoverAlign`}),` prop.`]})}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-4 items-center`,children:[(0,G.jsx)(Fe,{_label:`Actions`,_variant:`primary`,_icons:{right:`kolicon-chevron-down`},ref:t,children:(0,G.jsx)(Ke,{_label:`Action toolbar`,_items:r,_orientation:`vertical`})}),(0,G.jsx)(Fe,{_label:`Help`,_icons:`kolicon-alert-info`,_popoverAlign:`right`,_tooltipAlign:`bottom`,_hideLabel:!0,children:(0,G.jsxs)(`div`,{className:`w-sm p-2 border border-solid border-gray bg-white`,children:[(0,G.jsx)(F,{_label:`Help Information`,_level:0}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`u`,{children:`Lorem ipsum dolor sit amet`}),`, consectetur adipisicing elit. Aspernatur aut dolore dolores itaque praesentium reprehenderit sed voluptatum! Exercitationem ipsa magni maiores modi, placeat quas quos reprehenderit rerum sit veniam vitae.`]})]})})]})]})},inline:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`A PopoverButton inline with some dummy text. Here the PopoverButton has the height of the surrounding text. As statet in`,(0,G.jsx)(`a`,{href:`https://www.w3.org/WAI/WCAG21/Understanding/target-size.html`,children:`Understanding SC 2.5.5`}),` target size of a help icon in text can be smaller than 44px by 44px.`]})}),(0,G.jsx)(K,{id:`inline`,className:`flex flex-col gap-4`,children:(0,G.jsxs)(`p`,{children:[`Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur aut dolore dolores itaque praesentium.`,(0,G.jsx)(Fe,{_inline:!0,_label:`Help`,_icons:`kolicon-alert-info`,_popoverAlign:`right`,_tooltipAlign:`bottom`,_hideLabel:!0,children:(0,G.jsxs)(`div`,{className:`w-sm p-2 border border-solid border-gray`,children:[(0,G.jsx)(F,{_label:`Help Information`,_level:0}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`u`,{children:`Lorem ipsum dolor sit amet`}),`, consectetur adipisicing elit. Aspernatur aut dolore dolores itaque praesentium reprehenderit sed voluptatum! Exercitationem ipsa magni maiores modi, placeat quas quos reprehenderit rerum sit veniam vitae.`]})]})}),(0,G.jsx)(`br`,{}),`Exercitationem ipsa magni maiores modi, placeat quas quos reprehenderit rerum sit veniam vitae.`]})})]})}},Md={progress:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolProgress renders a progress indicator. The sample shows the variants "bar" and "cycle" with and without labels.`})}),(0,G.jsxs)(`div`,{className:`grid gap-4 grid-cols-1 sm:grid-cols-2`,children:[(0,G.jsxs)(K,{id:`percentages`,heading:`Percentages`,className:`flex flex-col gap-4`,children:[(0,G.jsx)(Ie,{_variant:`bar`,_max:7,_value:0}),(0,G.jsx)(Ie,{_variant:`bar`,_max:7,_value:2}),(0,G.jsx)(Ie,{_variant:`bar`,_max:7,_value:7}),(0,G.jsx)(Ie,{_variant:`cycle`,_max:7,_value:6})]}),(0,G.jsxs)(K,{id:`custom-units`,heading:`Custom units`,className:`flex flex-col gap-4`,children:[(0,G.jsx)(Ie,{_label:`Distance`,_variant:`bar`,_max:65434,_value:7236,_unit:`m`}),(0,G.jsx)(Ie,{_label:`12 Tasks to do`,_variant:`bar`,_max:12,_value:5,_unit:`tasks completed`}),(0,G.jsx)(Ie,{_label:`Max 150 kg`,_variant:`cycle`,_max:150,_value:42,_unit:`kg`})]}),(0,G.jsxs)(K,{id:`min-max`,heading:`Min & Max`,className:`flex flex-col gap-4`,children:[(0,G.jsx)(Ie,{_label:`More than max`,_variant:`bar`,_max:7,_value:14}),(0,G.jsx)(Ie,{_label:`Less than min`,_variant:`bar`,_max:7,_value:-7})]})]})]}),changing:()=>{let[e,t]=(0,E.useState)(5),[n,r]=(0,E.useState)(10);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This shows that values can be changed and that they are clamped at max value (here at 10).`})}),(0,G.jsxs)(`fieldset`,{title:`changing`,className:`flex flex-col gap-4`,children:[(0,G.jsxs)(`div`,{className:`flex gap-4`,children:[(0,G.jsx)(`button`,{onClick:()=>t(-2),children:`set -2`}),(0,G.jsx)(`button`,{onClick:()=>t(5),children:`set 5`}),(0,G.jsx)(`button`,{onClick:()=>t(13),children:`set 13`}),(0,G.jsx)(`button`,{onClick:()=>r(-1),children:`change max to -1`}),(0,G.jsx)(`button`,{onClick:()=>r(5),children:`change max to 5`}),(0,G.jsx)(`button`,{onClick:()=>r(10),children:`change max to 10`})]}),(0,G.jsx)(Ie,{_label:`Showing ${e} of ${n}`,_variant:`bar`,_max:n,_value:e}),(0,G.jsx)(Ie,{_variant:`cycle`,_max:n,_value:e})]})]})}}},Nd={quote:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolQuote renders a quote with optional citation. This sample shows a quote in the variant "inline" with a link for citation.`})}),(0,G.jsx)(K,{id:`basic`,children:(0,G.jsx)(Le,{_href:`https://datatracker.ietf.org/doc/html/rfc1149`,_quote:`Avian carriers can provide high delay.`,_variant:`inline`})})]}),block:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows a quote in the "block" variant.`})}),(0,G.jsx)(K,{id:`block`,children:(0,G.jsx)(Le,{_label:`RFC 1149`,_href:`https://datatracker.ietf.org/doc/html/rfc1149`,_quote:`Avian carriers can provide high delay, low throughput, and low altitude
60
- service. The connection topology is limited to a single point-to-point path
61
- for each carrier, used with standard carriers, but many carriers can be used
62
- without significant interference with each other, outside early spring.
63
- This is because of the 3D ether space available to the carriers, in contrast
64
- to the 1D ether used by IEEE802.3. The carriers have an intrinsic collision
65
- avoidance system, which increases availability.`,_variant:`block`})})]})}},Pd=[{label:`Prof. Dr. very long value with more word so it really really breaks the layout `,value:`long`},{label:`No salutation`,value:``},{label:`Mrs.`,value:`Mrs.`},{label:`Mr.`,value:`Mr.`},{label:`Divers`,value:`Divers`}],Fd=Pd.map((e,t)=>t===0?{label:`Select salutation`,value:``,disabled:!0}:e),Id=Io.reduce((e,t)=>{let n=t.label.charAt(0).toUpperCase();return e[n]||(e[n]={label:n,options:[]}),e[n].options.push({label:t.label,value:t.label}),e},{}),Ld=Object.values(Id),Rd=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...i(`salutation-icons`),children:(0,G.jsx)(Re,{...n,ref:r,_accessKey:`a`,_options:Pd,_label:`Salutation`,_icons:{left:{icon:`kolicon-chevron-left`},right:{icon:`kolicon-chevron-right`}}})}),(0,G.jsx)(K,{...i(`disabled`),children:(0,G.jsx)(Re,{...n,_options:Pd,_label:`Disabled`,_disabled:!0})}),(0,G.jsx)(K,{...i(`error`),children:(0,G.jsx)(Re,{...n,_options:Fd,_label:`Salutation with error`,_msg:{_type:`error`,_description:q},_touched:!0})}),(0,G.jsx)(K,{...i(`multiple`),children:(0,G.jsx)(Re,{...n,_options:Io,_label:`Multiple choice`,_multiple:!0})}),(0,G.jsx)(K,{...i(`multiple-error`),children:(0,G.jsx)(Re,{...n,_options:Io,_label:`Multiple choice with error`,_multiple:!0,_required:!0,_msg:{_type:`error`,_description:q},_hint:Ca,_touched:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,G.jsx)(K,{...i(`access-key`),children:(0,G.jsx)(Re,{...n,_options:Pd,_label:`With access key`,_accessKey:`c`})}),(0,G.jsx)(K,{...i(`short-key`),children:(0,G.jsx)(Re,{...n,_options:Pd,_label:`With short key`,_shortKey:`s`})}),(0,G.jsx)(K,{...i(`grouped`),children:(0,G.jsx)(Re,{...n,_options:Ld,_label:`With grouped by first letter`,_value:`Albanien`})}),(0,G.jsx)(K,{...i(`grouped-multiple`),children:(0,G.jsx)(Re,{...n,_options:Ld,_label:`With grouped by first letter (multiple)`,_multiple:!0,_value:[`Albanien`]})})]})}),zd=(0,E.forwardRef)(function(e,t){return(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Text`,children:(0,G.jsx)(Rd,{blockIdPrefix:`label`,...e})}),(0,G.jsx)(Po,{heading:`Text (hideLabel)`,children:(0,G.jsx)(Rd,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0})})]})}),Bd={select:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolSelect renders a select field. The sample shows KolSelect in a form context with all variations and states.`})}),(0,G.jsx)(Mo,{RefComponent:zd,showButtons:!1})]}),"get-value":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolSelect`,renderInput:e=>(0,G.jsx)(Re,{_label:`Select option`,_options:[{label:`Please select…`,value:``},{label:`One`,value:`one`},{label:`Two`,value:`two`}],_on:e})})]}),"multiple-dropdown":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`Shows KolSelect with multiple=true and rows=1 - a select with multiselection in a dropdown.`})}),(0,G.jsx)(ms,{label:`KolSelect`,renderInput:e=>(0,G.jsx)(Re,{_label:`Select options`,_options:[{label:`One`,value:`one`},{label:`Two`,value:`two`},{label:`Three`,value:`three`},{label:`Four`,value:`four`},{label:`Five`,value:`five`},{label:`Six`,value:`six`},{label:`Seven`,value:`seven`},{label:`Eight`,value:`eight`},{label:`Nine`,value:`nine`}],_multiple:!0,_rows:1,_on:e})})]})}},Vd=[{value:`1`,label:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam`},{value:`2`,label:`Lorem ipsum dolor`},{value:`3`,label:`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`},{value:`4`,label:`Lorem ipsum dolor`},{value:`5`,label:`Lorem ipsum dolor`},{value:`6`,label:`Lorem ipsum dolor`},{value:`7`,label:`Lorem ipsum dolor`},{value:`8`,label:`Lorem ipsum dolor`},{value:`2`,label:`Lorem ipsum dolor`}],Hd=({blockIdPrefix:e,snapshotOnly:t,...n})=>{let r=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...r(`hint`),children:(0,G.jsx)(ze,{...n,_hint:Ca,_label:`Label`,_options:Io,_value:`de`})}),(0,G.jsx)(K,{...r(`disabled`),children:(0,G.jsx)(ze,{...n,_label:`Disabled`,_options:Io,_value:`de`,_disabled:!0})}),(0,G.jsx)(K,{...r(`error`),children:(0,G.jsx)(ze,{...n,_options:Io,_msg:{_type:`error`,_description:q},_rows:3,_touched:!0,_label:`Label`,_placeholder:`Placeholder`,_required:!0,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,G.jsx)(K,{...r(`access-key`),children:(0,G.jsx)(ze,{...n,_label:`With access key`,_options:Io,_value:`de`,_accessKey:`c`})}),(0,G.jsx)(K,{...r(`short-key`),children:(0,G.jsx)(ze,{...n,_label:`With short key`,_options:Io,_value:`de`,_shortKey:`s`})}),(0,G.jsx)(K,{...r(`long-labels`),children:(0,G.jsx)(ze,{...n,_label:`With long labels`,_options:Vd,_placeholder:`Placeholder`})}),(0,G.jsx)(K,{...r(`no-clear-button`),children:(0,G.jsx)(ze,{...n,_label:`With hidden clear button`,_options:Io,_value:`de`,_hasClearButton:!1})}),(0,G.jsx)(K,{...r(`boolean-values`),children:(0,G.jsx)(ze,{...n,_label:`Boolean option values (Issue #9122)`,_options:[{label:`False`,value:!1},{label:`True`,value:!0}],_value:!1})}),(0,G.jsx)(K,{...r(`disabled-options`),children:(0,G.jsx)(ze,{...n,_hint:Ca,_label:`With disabled options`,_options:[{value:`bw`,label:`Baden-Württemberg`,disabled:!0},{value:`by`,label:`Bayern`,disabled:!0},{value:`be`,label:`Berlin`},{value:`bb`,label:`Brandenburg`},{value:`hb`,label:`Bremen`},{value:`hh`,label:`Hamburg`},{value:`he`,label:`Hessen`},{value:`mv`,label:`Mecklenburg-Vorpommern`},{value:`ni`,label:`Niedersachsen`,disabled:!0},{value:`nw`,label:`Nordrhein-Westfalen`},{value:`rp`,label:`Rheinland-Pfalz`},{value:`sl`,label:`Saarland`},{value:`sn`,label:`Sachsen`},{value:`st`,label:`Sachsen-Anhalt`,disabled:!0},{value:`sh`,label:`Schleswig-Holstein`},{value:`th`,label:`Thüringen`,disabled:!0}],_value:`be`})})]})},Ud=e=>(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Text`,children:(0,G.jsx)(Hd,{blockIdPrefix:`label`,...e})}),(0,G.jsx)(Po,{heading:`Text (hideLabel)`,children:(0,G.jsx)(Hd,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,...e,_hideLabel:!0})})]}),Wd=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`SingleSelect provides a select field for a single value, supported by a search field.`})}),(0,G.jsx)(Mo,{RefComponent:Ud,showButtons:!1})]}),Gd=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolSingleSelect`,renderInput:e=>(0,G.jsx)(ze,{_label:`Search option`,_options:[{label:`One`,value:`one`},{label:`Two`,value:`two`}],_on:e})})]}),Kd=({show:e})=>e?(0,G.jsx)(`div`,{className:`loading-overlay`,children:(0,G.jsx)(He,{_label:`loading`,_show:e,_variant:`cycle`,style:{backgroundColor:`transparent`}})}):null,qd=()=>{let[e,t]=(0,E.useState)([]),[n,r]=(0,E.useState)(!1);function i(){e.length>0||(r(!0),setTimeout(()=>{t(Io),r(!1)},5e3))}return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This single select loads its list of countries 5 seconds after the first input of the user to simulate a call to the server.`})}),(0,G.jsxs)(`section`,{className:`w-full relative p-3`,children:[(0,G.jsx)(ze,{_label:`Lazy loaded countries`,_options:e,onInput:()=>i()}),(0,G.jsx)(Kd,{show:n})]})]})},Jd=[{label:`Zero`,value:0},{label:`No`,value:!1},{label:`Empty string`,value:``},{label:`One`,value:1},{label:`Two (disabled)`,value:2,disabled:!0}],Yd=[{label:2024,value:2024},{label:2025,value:2025},{label:2026,value:2026}],Xd={"single-select":{basic:Wd,"get-value":Gd,"lazy-loaded":qd,"option-values":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`The options of KolSingleSelect accept any value, also falsy ones such as `,(0,G.jsx)(`code`,{children:`0`}),`, `,(0,G.jsx)(`code`,{children:`false`}),` or an empty string; the selected option is found by its value. A number as `,(0,G.jsx)(`code`,{children:`label`}),` is shown as text. Disabled options stay visible in the list but can not be selected.`]})}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{id:`falsy-zero`,children:(0,G.jsx)(ze,{_label:`Value 0 selected`,_options:Jd,_value:0})}),(0,G.jsx)(K,{id:`falsy-false`,children:(0,G.jsx)(ze,{_label:`Value false selected`,_options:Jd,_value:!1})}),(0,G.jsx)(K,{id:`number-labels`,children:(0,G.jsx)(ze,{_label:`Number labels (year)`,_options:Yd,_value:2025})})]})]})}},Zd={"skip-nav":{basic:()=>{let e=(0,E.useRef)(null);return(0,E.useEffect)(()=>{e.current?.focus()},[]),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsxs)(J,{children:[(0,G.jsx)(`p`,{children:`KolSkipNav renders a list of navigation links that are visually hidden by default and only visible on focus.`}),(0,G.jsx)(`p`,{children:`For testing purposes, click into the example and press the tab-key in order to focus the first link.`})]}),(0,G.jsx)(Ve,{ref:e,_label:`Hidden navigation`,_links:[{_label:`To the top`,_href:`#/back-page`},{_label:`To the form`,_href:`#/back-page`},{_label:`To the end`,_href:`#/back-page`}]})]})}}},Qd={spin:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`KolSpin renders a loading indicator. It supports the variants "dot" (default) and "cycle". With`,` `,(0,G.jsx)(`code`,{children:`_variant="none"`}),` and the expert slot a custom animation can be used – custom animations are not necessarily barrier-free. Color and size can be changed with the CSS properties `,(0,G.jsx)(`code`,{children:`--kol-spin-color`}),` and `,(0,G.jsx)(`code`,{children:`--kol-spin-size`}),`. The label (`,(0,G.jsx)(`code`,{children:`_label`}),`) is only exposed to assistive technology, so it does not change the visual appearance.`]})}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsx)(K,{id:`basic`,heading:`Variant dot (default)`,fitContent:!0,children:(0,G.jsx)(He,{_show:!0})}),(0,G.jsx)(K,{id:`cycle`,heading:`Variant cycle`,fitContent:!0,children:(0,G.jsx)(He,{_show:!0,_variant:`cycle`})}),(0,G.jsx)(K,{id:`custom`,heading:`Custom animation (expert slot)`,fitContent:!0,children:(0,G.jsx)(He,{_show:!0,_variant:`none`,children:(0,G.jsx)(`span`,{slot:`expert`,className:`loader`})})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(F,{_level:2,_label:`With label (screen reader only)`}),(0,G.jsx)(He,{_show:!0,_label:`Loading data...`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(F,{_level:2,_label:`Custom color and size (CSS properties)`}),(0,G.jsx)(He,{_show:!0,style:{"--kol-spin-color":`green`,"--kol-spin-size":`80`}})]})]})]})}},$d={"split-button":{basic:()=>{let{buttonWithTextClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`The `,(0,G.jsx)(`code`,{children:`SplitButton`}),` component combines a primary action button with a context menu. Clicking the main button triggers the`,(0,G.jsx)(`strong`,{children:` Edit`}),` action. The context menu opens a vertical list of additional actions:`,(0,G.jsx)(`strong`,{children:` Save`}),`, `,(0,G.jsx)(`strong`,{children:`Move`}),`, and `,(0,G.jsx)(`strong`,{children:`Delete`}),`.`]})}),(0,G.jsx)(K,{id:`basic`,className:`flex flex-col gap-4`,children:(0,G.jsx)(Ue,{_label:`Edit`,_on:t,children:(0,G.jsx)(Ke,{_label:`Action toolbar`,_items:[{type:`button`,_label:`Save`,_icons:`kolicon-check`,_on:t},{type:`button`,_label:`Move Up`,_icons:`kolicon-chevron-up`,_on:t},{type:`button`,_label:`Delete`,_icons:`kolicon-minus`,_on:t}],_orientation:`vertical`})})})]})},"with-context":()=>{let e=E.useRef(null);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon.`})}),(0,G.jsx)(`div`,{className:`flex gap-4`,children:(0,G.jsx)(Ue,{ref:e,_label:`Only the arrow opens`,children:(0,G.jsxs)(`div`,{style:{width:300,padding:16,border:`1px solid #ccc`},onClick:e=>e.stopPropagation(),children:[(0,G.jsx)(`p`,{children:`SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon.`}),(0,G.jsxs)(`div`,{style:{gap:16,display:`flex`,flexDirection:`column`},children:[(0,G.jsx)(R,{_label:`User`}),(0,G.jsx)(R,{_label:`Role`}),(0,G.jsx)(M,{_label:`Close`,_on:{onClick:()=>{e.current?.closePopup()}}})]})]})})})]})}}},ef={horizontal:[[{key:`id`,label:`ID`,width:80},{key:`project`,label:`Project`,width:200},{key:`owner`,label:`Owner`,width:140},{type:`action`,key:`actions`,label:`Actions`,textAlign:`left`,width:250,actions:e=>{let t=e;return[{type:`button`,_label:`Details`,_icons:`kolicon-eye`,_hideLabel:!0,_on:{onClick:()=>alert(`Details: ${t.id} - ${t.project}`)}},{type:`button`,_label:`Start`,_icons:`kolicon-chevron-right`,_variant:`secondary`,_on:{onClick:()=>alert(`Start task ${t.id}`)}},{type:`link`,_label:`View`,_href:`#/back-page?taskId=${t.id}`,_target:`_blank`,_icons:`kolicon-external-link`,_hideLabel:!1}]}},{type:`action`,key:`externalActions`,label:`External Actions`,textAlign:`right`,width:280,actions:e=>[{type:`link`,_label:`View on Dashboard`,_href:`#/back-page?taskId=${e.id}`,_target:`_blank`,_icons:`kolicon-external-link`,_hideLabel:!1}]}]]},tf=[{id:`T-01`,project:`Onboarding checklist`,owner:`Alex Rivera`},{id:`T-02`,project:`Accessibility audit`,owner:`Jamie Chen`}],nf=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`Simple example using the refactored action column: Actions are defined once in the column header definition using a factory function. Two rows with inline action buttons demonstrate clean separation between data and UI behavior.`})}),(0,G.jsx)(K,{id:`action-columns`,className:`w-full`,children:(0,G.jsx)(V,{_label:`Tasks with action buttons`,_headers:ef,_data:tf,className:`block`})})]}),rf=50,af=[`Max`,`Erika`,`John`,`Jane`,`Peter`,`Anna`,`Michael`,`Sarah`,`Thomas`,`Lisa`,`Daniel`,`Maria`,`Christian`,`Laura`,`Stefan`,`Julia`,`Andreas`,`Sophie`,`Markus`,`Emma`],of=[`Mustermann`,`Musterfrau`,`Doe`,`Smith`,`Schmidt`,`Müller`,`Weber`,`Meyer`,`Wagner`,`Becker`,`Fischer`,`Schneider`,`Hoffmann`,`Koch`,`Bauer`,`Richter`,`Klein`,`Wolf`,`Schröder`,`Neumann`],sf=[`active`,`inactive`,`pending`],cf=(e=>Array.from({length:e},(e,t)=>{let n=af[t%af.length],r=of[Math.floor(t/af.length)%of.length],i=sf[t%sf.length],a=t+1;return{id:a,name:`${n} ${r}`,email:`${n.toLowerCase()}.${r.toLowerCase()}${a>20?a:``}@example.com`,status:i}}))(rf),lf={horizontal:[[{key:`id`,label:`ID`,textAlign:`left`,width:60,compareFn:(e,t)=>e.id-t.id,sortDirection:`ASC`},{key:`name`,label:`Name`,textAlign:`left`,compareFn:(e,t)=>e.name.localeCompare(t.name,`de`),sortDirection:`ASC`,width:250},{key:`email`,label:`E-Mail`,textAlign:`left`,compareFn:(e,t)=>e.email.localeCompare(t.email,`de`),sortDirection:`ASC`,width:350},{key:`status`,label:`Status`,textAlign:`center`,width:100,compareFn:(e,t)=>e.status.localeCompare(t.status,`de`),sortDirection:`ASC`},{type:`action`,key:`actions`,label:`Aktionen`,textAlign:`center`,width:180,actions:e=>{let t=e;return[{type:`button`,_label:`Bearbeiten`,_icons:`kolicon-eye`,_hideLabel:!0,_tooltipAlign:`top`,_variant:`secondary`,_on:{onClick:()=>{console.log(`Edit clicked for:`,t),alert(`Bearbeiten: ${t.name}`)}}},{type:`button`,_label:`Löschen`,_icons:`kolicon-alert-error`,_hideLabel:!0,_tooltipAlign:`top`,_variant:`danger`,_on:{onClick:()=>{console.log(`Delete clicked for:`,t),alert(`Löschen: ${t.name}`)}}},{type:`button`,_label:`Details anzeigen`,_icons:`kolicon-alert-info`,_hideLabel:!0,_tooltipAlign:`top`,_variant:`normal`,_on:{onClick:()=>{console.log(`Details clicked for:`,t),alert(`Details: ${JSON.stringify(t,null,2)}`)}}}]}}]]},uf=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsxs)(`p`,{children:[`Performance demo: `,rf,` rows with action buttons defined once in the column header using the refactored approach. The factory function generates actions for each row on demand, eliminating redundant data and improving maintainability.`]}),(0,G.jsxs)(`p`,{children:[`Actions stay type-safe with `,(0,G.jsx)(`code`,{children:`ActionColumnPropType`}),` (ButtonProps or LinkProps), and no custom render functions are needed.`]})]}),(0,G.jsx)(`section`,{className:`w-full`,children:(0,G.jsx)(V,{_label:`Benutzerverwaltung mit Action-Spalte`,_headers:lf,_data:cf,className:`block`})})]}),df={horizontal:[[{key:`project`,label:`Project`,width:200},{key:`owner`,label:`Owner`,width:140},{label:`ID`,key:`id`,width:100,render:(e,t)=>{let{label:n}=t;return`Index: ${n}`}},{type:`action`,key:`actions`,label:`Actions`,width:100,actions:e=>{let t=e;return[{type:`button`,_label:`Details`,_icons:`kolicon-eye`,_hideLabel:!0,_on:{onClick:()=>alert(`Details: ${t.id} - ${t.project}`)}}]}}]]},ff=[{id:`T-01`,project:`Onboarding checklist`,owner:`Alex Rivera`,react:`test`},{id:`T-02`,project:`Accessibility audit`,owner:`Jamie Chen`,react:`test`}],pf=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`Simple example using the refactored action column: Actions are defined once in the column header definition using a factory function. Two rows with inline action buttons demonstrate clean separation between data and UI behavior.`})}),(0,G.jsx)(`section`,{className:`w-full`,children:(0,G.jsx)(V,{_label:`Tasks with action buttons`,_headers:df,_data:ff,className:`block`,_hasSettingsMenu:!0})})]}),mf=new WeakMap,hf=new WeakMap,gf=new WeakMap,_f=new WeakMap,vf=0,yf=`
66
- table { border-collapse: collapse; }
67
- th, td { border: 1px solid #888; padding: 4px 12px; }
68
- th { background: #f0f0f0; }
69
- `,bf=`
70
- <thead><tr><th scope="col">City</th><th scope="col">Country</th></tr></thead>
71
- <tbody><tr><td>Berlin</td><td>Germany</td></tr></tbody>
72
- `,xf=class extends HTMLElement{static get observedAttributes(){return[`aria-labelledby`]}connectedCallback(){this._render()}attributeChangedCallback(){this.isConnected&&this._render()}_render(){let e=this.getAttribute(`aria-labelledby`)??``;this.innerHTML=`<style>${yf}</style><table>${bf}</table>`;let t=this.querySelector(`table`);e?t.setAttribute(`aria-labelledby`,e):t.removeAttribute(`aria-labelledby`)}},Sf=class extends HTMLElement{constructor(){super(),this.id||=`nit-${++vf}`;try{mf.set(this,this.attachInternals())}catch{}}connectedCallback(){this.innerHTML=`<table aria-labelledby="${this.id}">${bf}</table>`}set labelElements(e){let t=mf.get(this);if(t)try{t.ariaLabelledByElements=e}catch{}}},Cf=class extends HTMLElement{constructor(){super();try{hf.set(this,this.attachInternals())}catch{}gf.set(this,this.attachShadow({mode:`open`}))}static get observedAttributes(){return[`aria-labelledby`]}connectedCallback(){let e=gf.get(this);e.innerHTML=`<style>demo-inner-table { display: block; }${yf}</style><demo-inner-table></demo-inner-table>`,_f.set(this,e.querySelector(`demo-inner-table`)),this._sync(this.getAttribute(`aria-labelledby`))}attributeChangedCallback(e,t,n){this.isConnected&&this._sync(n)}_sync(e){let t=this.getRootNode(),n=(e??``).trim().split(/\s+/).filter(Boolean).map(e=>t instanceof ShadowRoot?t.querySelector(`#${CSS.escape(e)}`):document.getElementById(e)).filter(e=>e!==null),r=hf.get(this);if(r)try{r.ariaLabelledByElements=n}catch{}let i=_f.get(this);i&&(i.labelElements=n)}};typeof customElements<`u`&&(customElements.get(`demo-table-light`)||customElements.define(`demo-table-light`,xf),customElements.get(`demo-inner-table`)||customElements.define(`demo-inner-table`,Sf),customElements.get(`demo-outer-table`)||customElements.define(`demo-outer-table`,Cf));var wf={_data:[{city:`Berlin`,country:`Germany`}],_headers:{horizontal:[[{key:`city`,label:`City`},{key:`country`,label:`Country`}]],vertical:[]},_label:`Label should always be filled`,_minWidth:`auto`},Tf=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Demonstrates how to label a table using an external heading via `,(0,G.jsx)(`code`,{children:`_ariaLabelledby`}),`. The referenced heading lives outside the component's Shadow DOM. KoliBri resolves the element reference via `,(0,G.jsx)(`code`,{children:`ElementInternals.ariaLabelledByElements`}),`, which crosses the Shadow DOM boundary — unlike a plain `,(0,G.jsx)(`code`,{children:`aria-labelledby`}),` attribute, which is scoped to the same tree.`]})}),(0,G.jsxs)(`section`,{className:`w-full flex flex-col gap-6`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h2`,{id:`caption-native`,children:`Native HTML (no Web Component)`}),(0,G.jsxs)(`p`,{children:[`Plain `,(0,G.jsx)(`code`,{children:`<table aria-labelledby="…">`}),`. No Shadow DOM — the IDREF resolves directly in the document tree.`]}),(0,G.jsxs)(`table`,{"aria-labelledby":`caption-native`,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{children:`City`}),(0,G.jsx)(`th`,{children:`Country`})]})}),(0,G.jsx)(`tbody`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`td`,{children:`Berlin`}),(0,G.jsx)(`td`,{children:`Germany`})]})})]})]}),(0,G.jsx)(`hr`,{"aria-hidden":`true`,className:`border-0`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h2`,{id:`caption-wc-light`,children:`Native Web Component — no Shadow DOM`}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`code`,{children:`demo-table-light`}),` renders the table into the light DOM (`,(0,G.jsx)(`code`,{children:`attachShadow`}),` not called). The table's `,(0,G.jsx)(`code`,{children:`aria-labelledby`}),` `,`IDREF resolves in the host document — no boundary to cross.`]}),E.createElement(`demo-table-light`,{"aria-labelledby":`caption-wc-light`})]}),(0,G.jsx)(`hr`,{"aria-hidden":`true`,className:`border-0`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h2`,{id:`caption-wc-shadow`,children:`Native Web Component — with Shadow DOM`}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`code`,{children:`demo-outer-table`}),` (shadow: open) resolves the IDREF via `,(0,G.jsx)(`code`,{children:`getRootNode()`}),` and sets`,` `,(0,G.jsx)(`code`,{children:`ElementInternals.ariaLabelledByElements`}),` on itself and on the inner element. The inner `,(0,G.jsx)(`code`,{children:`<table>`}),` references the inner element via IDREF — valid because both share the same shadow tree.`]}),E.createElement(`demo-outer-table`,{"aria-labelledby":`caption-wc-shadow`})]}),(0,G.jsx)(`hr`,{"aria-hidden":`true`,className:`border-0`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h2`,{id:`caption-stateless`,children:`kol-table-stateless`}),(0,G.jsxs)(`p`,{children:[`The `,(0,G.jsx)(`code`,{children:`<h2>`}),` above serves as the accessible label via `,(0,G.jsx)(`code`,{children:`_ariaLabelledby`}),`. No internal `,(0,G.jsx)(`code`,{children:`<caption>`}),` is rendered.`]}),(0,G.jsx)(We,{_ariaLabelledby:`caption-stateless`,...wf,_hasSettingsMenu:!0})]}),(0,G.jsx)(`hr`,{"aria-hidden":`true`,className:`border-0`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h2`,{id:`caption-stateful`,children:`kol-table-stateful`}),(0,G.jsxs)(`p`,{children:[`Same via the stateful wrapper — `,(0,G.jsx)(`code`,{children:`_ariaLabelledby`}),` is forwarded to the internal stateless implementation.`]}),(0,G.jsx)(V,{_ariaLabelledby:`caption-stateful`,...wf})]})]})]}),Ef=[{common_name:`African elephant`,scientific_name:`Loxodonta africana`,conservation_status:`Vulnerable`,habitat:`Savannas and forests`,diet:`Herbivore`,geographic_range:`Sub-Saharan Africa`},{common_name:`American bison`,scientific_name:`Bison bison`,conservation_status:`Near Threatened`,habitat:`Grasslands and plains`,diet:`Herbivore`,geographic_range:`North America`},{common_name:`Arctic fox`,scientific_name:`Vulpes lagopus`,conservation_status:`Least Concern`,habitat:`Tundra`,diet:`Omnivore`,geographic_range:`Arctic Circle`},{common_name:`Atlantic puffin`,scientific_name:`Fratercula arctica`,conservation_status:`Vulnerable`,habitat:`Coastal cliffs and open ocean`,diet:`Carnivore`,geographic_range:`North Atlantic Ocean`},{common_name:`Bengal tiger`,scientific_name:`Panthera tigris tigris`,conservation_status:`Endangered`,habitat:`Tropical forests and grasslands`,diet:`Carnivore`,geographic_range:`Indian subcontinent`},{common_name:`Black rhinoceros`,scientific_name:`Diceros bicornis`,conservation_status:`Critically Endangered`,habitat:`Savannas and shrublands`,diet:`Herbivore`,geographic_range:`Eastern and Southern Africa`},{common_name:`Blue whale`,scientific_name:`Balaenoptera musculus`,conservation_status:`Endangered`,habitat:`Open ocean`,diet:`Carnivore`,geographic_range:`Global oceans`},{common_name:`California condor`,scientific_name:`Gymnogyps californianus`,conservation_status:`Critically Endangered`,habitat:`Cliffs and scrublands`,diet:`Scavenger`,geographic_range:`Western United States`},{common_name:`Cheetah`,scientific_name:`Acinonyx jubatus`,conservation_status:`Vulnerable`,habitat:`Grasslands and savannas`,diet:`Carnivore`,geographic_range:`Africa and Iran`},{common_name:`Emperor penguin`,scientific_name:`Aptenodytes forsteri`,conservation_status:`Near Threatened`,habitat:`Sea ice and open ocean`,diet:`Carnivore`,geographic_range:`Antarctica`},{common_name:`Galápagos tortoise`,scientific_name:`Chelonoidis niger`,conservation_status:`Vulnerable`,habitat:`Volcanic highlands`,diet:`Herbivore`,geographic_range:`Galápagos Islands`},{common_name:`Giant anteater`,scientific_name:`Myrmecophaga tridactyla`,conservation_status:`Vulnerable`,habitat:`Grasslands and forests`,diet:`Insectivore`,geographic_range:`Central and South America`},{common_name:`Giant panda`,scientific_name:`Ailuropoda melanoleuca`,conservation_status:`Vulnerable`,habitat:`Temperate bamboo forests`,diet:`Herbivore`,geographic_range:`Central China`},{common_name:`Golden eagle`,scientific_name:`Aquila chrysaetos`,conservation_status:`Least Concern`,habitat:`Mountains and open plains`,diet:`Carnivore`,geographic_range:`Northern Hemisphere`},{common_name:`Gray wolf`,scientific_name:`Canis lupus`,conservation_status:`Least Concern`,habitat:`Forests and tundra`,diet:`Carnivore`,geographic_range:`Northern Hemisphere`},{common_name:`Great white shark`,scientific_name:`Carcharodon carcharias`,conservation_status:`Vulnerable`,habitat:`Coastal and offshore waters`,diet:`Carnivore`,geographic_range:`Global temperate seas`},{common_name:`Green sea turtle`,scientific_name:`Chelonia mydas`,conservation_status:`Endangered`,habitat:`Coastal waters and beaches`,diet:`Herbivore`,geographic_range:`Tropical and subtropical oceans`},{common_name:`Harpy eagle`,scientific_name:`Harpia harpyja`,conservation_status:`Near Threatened`,habitat:`Tropical rainforests`,diet:`Carnivore`,geographic_range:`Central and South America`},{common_name:`Humpback whale`,scientific_name:`Megaptera novaeangliae`,conservation_status:`Least Concern`,habitat:`Open ocean`,diet:`Carnivore`,geographic_range:`Global oceans`},{common_name:`Jaguar`,scientific_name:`Panthera onca`,conservation_status:`Near Threatened`,habitat:`Tropical rainforests and wetlands`,diet:`Carnivore`,geographic_range:`Central and South America`},{common_name:`Koala`,scientific_name:`Phascolarctos cinereus`,conservation_status:`Vulnerable`,habitat:`Eucalyptus woodlands`,diet:`Herbivore`,geographic_range:`Eastern Australia`},{common_name:`Monarch butterfly`,scientific_name:`Danaus plexippus`,conservation_status:`Endangered`,habitat:`Prairies and meadows`,diet:`Herbivore`,geographic_range:`North America`},{common_name:`Mountain gorilla`,scientific_name:`Gorilla beringei beringei`,conservation_status:`Endangered`,habitat:`Montane forests`,diet:`Herbivore`,geographic_range:`Central Africa`},{common_name:`Narwhal`,scientific_name:`Monodon monoceros`,conservation_status:`Near Threatened`,habitat:`Arctic waters`,diet:`Carnivore`,geographic_range:`Arctic Circle`},{common_name:`Okapi`,scientific_name:`Okapia johnstoni`,conservation_status:`Endangered`,habitat:`Rainforests`,diet:`Herbivore`,geographic_range:`Democratic Republic of the Congo`},{common_name:`Polar bear`,scientific_name:`Ursus maritimus`,conservation_status:`Vulnerable`,habitat:`Sea ice and tundra`,diet:`Carnivore`,geographic_range:`Arctic Circle`},{common_name:`Red kangaroo`,scientific_name:`Osphranter rufus`,conservation_status:`Least Concern`,habitat:`Deserts and grasslands`,diet:`Herbivore`,geographic_range:`Australia`},{common_name:`Red panda`,scientific_name:`Ailurus fulgens`,conservation_status:`Endangered`,habitat:`Temperate forests`,diet:`Omnivore`,geographic_range:`Eastern Himalayas`},{common_name:`Snow leopard`,scientific_name:`Panthera uncia`,conservation_status:`Vulnerable`,habitat:`Mountain ranges`,diet:`Carnivore`,geographic_range:`Central and South Asia`},{common_name:`Southern cassowary`,scientific_name:`Casuarius casuarius`,conservation_status:`Least Concern`,habitat:`Tropical rainforests`,diet:`Omnivore`,geographic_range:`New Guinea and northeastern Australia`},{common_name:`Tasmanian devil`,scientific_name:`Sarcophilus harrisii`,conservation_status:`Endangered`,habitat:`Forests and coastal scrub`,diet:`Carnivore`,geographic_range:`Tasmania`},{common_name:`Yellow-eyed penguin`,scientific_name:`Megadyptes antipodes`,conservation_status:`Endangered`,habitat:`Coastal forests and beaches`,diet:`Carnivore`,geographic_range:`New Zealand`}],Df=Array.from({length:200},(e,t)=>{let n=Ef[t%Ef.length];return{id:t+1,...n}});function Of(e){return Array.from({length:e},(e,t)=>{let n=Ef[t%Ef.length];return{id:t+1,...n}})}var kf={label:e=>`Selection for ${e.common_name}`,multiple:!0,keyPropertyName:`id`},Af=[{label:`ID`,key:`id`,textAlign:`right`,width:60},{label:`Common name`,key:`common_name`,textAlign:`left`,width:250},{label:`Scientific name`,key:`scientific_name`,textAlign:`left`,width:400},{label:`Conservation status`,key:`conservation_status`,textAlign:`left`,width:250},{label:`Habitat`,key:`habitat`,textAlign:`left`,width:400},{label:`Diet`,key:`diet`,textAlign:`left`,width:200},{label:`Geographic range`,key:`geographic_range`,textAlign:`left`,width:300}],jf=()=>{let[e,t]=$r(),[n,r]=(0,E.useState)(50),[i,a]=(0,E.useState)([0,0]),o=(0,E.useRef)(!1),[s,c]=(0,E.useState)(Af),l={horizontal:[s]};function u(){if(o.current)return;let n=e.get(`rows`);n?+n<5e3&&r(+n):t(e=>(e.append(`rows`,`50`),e));let i=e.get(`addCols`);if(i){if(+i<200){let e=[...Af];for(let t=0;t<+i;t++)e.push({label:`label`+t,key:`key`+t,textAlign:`left`,width:100});c(e)}}else t(e=>(e.append(`addCols`,`0`),e));let s=e.get(`fixedCols`);if(s){let e=s.split(`.`);a([+e[0],+e[1]])}else t(e=>(e.append(`fixedCols`,`0.0`),e));o.current=!0}return(0,E.useEffect)(()=>u(),[e]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsx)(`p`,{children:`You can change what this examples shows with query parameters. Change the values as you like:`}),(0,G.jsxs)(`ul`,{children:[(0,G.jsx)(`li`,{children:`rows=400 - loads 400 rows`}),(0,G.jsx)(`li`,{children:`addCols=10 - adds 10 empty columns to the end`}),(0,G.jsx)(`li`,{children:`fixedCols=2.1 - makes the first two and the last column sticky`})]})]}),(0,G.jsx)(F,{_level:2,_label:`Configurable table`}),(0,G.jsx)(V,{_label:`Animal species overview`,_data:Of(n),_headers:l,className:`block`,_selection:kf,_fixedCols:i})]})},Mf=[{left:`Left Example`,center:`Center Example`,right:`Right Example`}],Nf=()=>0,Pf=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTableStateful with columns headers and data in different text alignments.`})}),(0,G.jsxs)(K,{id:`column-alignment`,className:`w-full flex flex-col`,fitContent:!0,children:[(0,G.jsx)(F,{_label:`Simple table`,_level:3}),(0,G.jsx)(V,{_label:`Table for demonstration purposes with different text align properties`,_headers:{horizontal:[[{label:`left`,key:`left`,textAlign:`left`,width:160},{label:`center`,key:`center`,textAlign:`center`,width:160},{label:`right`,key:`right`,textAlign:`right`,width:160}]]},_data:Mf,className:`block`,style:{maxWidth:`600px`}}),(0,G.jsx)(F,{_label:`Table with sortable columns`,_level:3,className:`block mt-6`}),(0,G.jsx)(V,{_label:`Table for demonstration purposes with sortable columns`,_headers:{horizontal:[[{label:`left`,key:`left`,textAlign:`left`,compareFn:Nf,width:160},{label:`center`,key:`center`,textAlign:`center`,compareFn:Nf,width:160},{label:`right`,key:`right`,textAlign:`right`,compareFn:Nf,width:160}]]},_data:Mf,className:`block`,style:{maxWidth:`600px`}}),(0,G.jsx)(F,{_label:`Table some sortable columns`,_level:3,className:`block mt-6`}),(0,G.jsx)(V,{_label:`Table for demonstration purposes with some but not all columns sortable`,_headers:{horizontal:[[{label:`left`,key:`left`,textAlign:`left`,compareFn:Nf,width:160},{label:`center`,key:`center`,textAlign:`center`,compareFn:Nf,width:160},{label:`right`,key:`right`,textAlign:`right`,width:160}]]},_data:Mf,className:`block`,style:{maxWidth:`600px`}}),(0,G.jsx)(F,{_label:`Table with vertical heading`,_level:3,className:`block mt-6`}),(0,G.jsx)(V,{_label:`Table for demonstration purposes with vertical heading`,_headers:{horizontal:[[{label:`left`,key:`left`,textAlign:`left`,width:160},{label:`center`,key:`center`,textAlign:`center`,width:160},{label:`right`,key:`right`,textAlign:`right`,width:160}]],vertical:[[{label:`Vertical`,width:160}]]},_data:Mf,className:`block`,style:{maxWidth:`600px`}})]})]}),Ff=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTableStateful using vertical and horizontal headers, applying colspan and rowspan.`})}),(0,G.jsx)(K,{id:`complex-headers`,className:`w-full flex flex-col`,children:(0,G.jsx)(V,{_label:`Business hours`,_data:[{asp:`Center`,monday:`08:00`,tuesday:`08:00`,wednesday:`10:00`,thursday:`11:00`,friday:`08:00`,saturday:`09:00`,sunday:`10:00`},{asp:`Tiergarten`,monday:`08:00`,tuesday:`08:00`,wednesday:`10:00`,thursday:`11:00`,friday:`08:00`,saturday:`09:00`,sunday:`10:00`},{asp:`Maxvorstadt`,monday:`08:00`,tuesday:`08:00`,wednesday:`10:00`,thursday:`11:00`,friday:`08:00`,saturday:`09:00`,sunday:`10:00`}],_headers:{vertical:[[{label:`Berlin`,rowSpan:2,width:100},{label:`München`,width:100}]],horizontal:[[{label:`District`,rowSpan:2,key:`asp`,width:120,textAlign:`center`},{label:`Workdays`,colSpan:5,width:580,textAlign:`center`},{label:`Weekend`,colSpan:2,width:200,textAlign:`center`}],[{label:`Monday`,key:`monday`,width:50,textAlign:`center`},{label:`Tuesday`,key:`tuesday`,width:50,textAlign:`center`},{label:`Wednesday`,key:`wednesday`,width:50,textAlign:`center`},{label:`Thursday`,key:`thursday`,width:50,textAlign:`center`},{label:`Friday`,key:`friday`,width:50,textAlign:`center`},{label:`Saturday`,key:`saturday`,width:50,textAlign:`center`},{label:`Sunday`,key:`sunday`,width:50,textAlign:`center`}]]}})})]}),If=22,Lf=[{city:`Reykjavík`,temperature:6},{city:`Berlin`,temperature:21},{city:`Palma de Mallorca`,temperature:29},{city:`Cairo`,temperature:35},{city:`Helsinki`,temperature:14}],Rf={horizontal:[[{label:`City`,key:`city`,width:160},{label:`Temperature (°C)`,key:`temperature`,textAlign:`right`,width:160,compareFn:(e,t,n=`ASC`)=>{let r=e.temperature,i=t.temperature,a=Math.abs(r-If),o=Math.abs(i-If);return a===o?n===`DESC`?i-r:r-i:n===`DESC`?o-a:a-o},render:(e,t,n)=>{let r=Math.abs(n.temperature-If);return`${n.temperature} °C (Δ ${r} °C)`}}]]},zf=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample demonstrates how `,(0,G.jsx)(`code`,{children:`compareFn`}),` receives the current `,(0,G.jsx)(`code`,{children:`sortDirection`}),`. Ascending sorts show cities that are closest to 22\xA0°C first, descending sorts highlight the most extreme temperatures.`]})}),(0,G.jsx)(`section`,{className:`w-full`,children:(0,G.jsx)(V,{_label:`Direction aware compare function`,_data:Lf,_headers:Rf,className:`block`})})]}),Bf={horizontal:[[{label:`ID`,key:`id`,textAlign:`right`,width:160,sortDirection:`NOS`},{label:`Common name`,key:`common_name`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Scientific name`,key:`scientific_name`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Conservation status`,key:`conservation_status`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Habitat`,key:`habitat`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Diet`,key:`diet`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Geographic range`,key:`geographic_range`,textAlign:`left`,width:160,sortDirection:`NOS`}]]},Vf=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows an empty KolTableStateful.`})}),(0,G.jsx)(V,{_label:`Table for demonstration purposes`,_headers:Bf,_data:[]})]}),Hf=10,Uf=[`Max`,`Erika`,`John`,`Jane`,`Peter`,`Anna`,`Michael`,`Sarah`,`Thomas`,`Lisa`,`Daniel`,`Maria`,`Christian`,`Laura`,`Stefan`,`Julia`,`Andreas`,`Sophie`,`Markus`,`Emma`],Wf=[`Mustermann`,`Musterfrau`,`Doe`,`Smith`,`Schmidt`,`Müller`,`Weber`,`Meyer`,`Wagner`,`Becker`,`Fischer`,`Schneider`,`Hoffmann`,`Koch`,`Bauer`,`Richter`,`Klein`,`Wolf`,`Schröder`,`Neumann`],Gf=[`active`,`inactive`,`pending`],Kf=(e=>Array.from({length:e},(e,t)=>{let n=Uf[t%Uf.length],r=Wf[Math.floor(t/Uf.length)%Wf.length],i=Gf[t%Gf.length],a=t+1;return{id:a,name:`${n} ${r}`,email:`${n.toLowerCase()}.${r.toLowerCase()}${a>20?a:``}@example.com`,status:i}}))(Hf),qf=()=>{let[e,t]=E.useState(2),n=E.useMemo(()=>{let t=t=>(n,r)=>{let i=r.data;if(i.id===e+1){n.textContent=``;let e=document.createElement(`strong`);e.textContent=String(i[t]),n.appendChild(e)}else n.textContent=String(i[t])},n=e=>(t,n)=>{let r=t[e],i=n[e];return typeof r==`number`&&typeof i==`number`?r-i:typeof r==`string`&&typeof i==`string`?r.localeCompare(i,`de`):0};return{horizontal:[[{key:`id`,label:`ID`,textAlign:`left`,width:60,compareFn:n(`id`),render:t(`id`),sortDirection:`ASC`},{key:`name`,label:`Name`,textAlign:`left`,compareFn:n(`name`),render:t(`name`),sortDirection:`ASC`},{key:`email`,label:`E-Mail`,textAlign:`left`,compareFn:n(`email`),render:t(`email`),sortDirection:`ASC`},{key:`status`,label:`Status`,textAlign:`center`,width:100,compareFn:n(`status`),render:t(`status`),sortDirection:`ASC`}]]}},[e]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsx)(`p`,{children:`This sample demonstrates how to programmatically highlight a specific row in a table. You can change the highlighted row by using the input field above the table.`}),(0,G.jsxs)(`p`,{children:[`The highlighting is achieved by using a custom `,(0,G.jsx)(`code`,{children:`render`}),` function for each column, which checks if the current row's ID matches the selected highlight index and applies bold styling.`]})]}),(0,G.jsxs)(`section`,{className:`flex flex-col gap-4`,children:[(0,G.jsx)(De,{className:`self-start`,_label:`Highlight Row Index`,_value:e,_on:{onInput:(e,n)=>t(Number(n))},_min:0,_max:9}),(0,G.jsx)(V,{_label:`Benutzerverwaltung mit Hervorhebung`,_headers:n,_data:Kf,className:`block`})]})]})},Jf=Intl.DateTimeFormat(`de-DE`,{day:`2-digit`,month:`2-digit`,year:`numeric`}),Yf=[{order:0,date:new Date(`1981-05-26T21:33:43.612Z`)},{order:1,date:new Date(`1971-04-25T19:44:17.014Z`)},{order:2,date:new Date(`1986-07-10T11:39:29.539Z`)},{order:3,date:new Date(`1976-02-02T10:00:36.346Z`)},{order:4,date:new Date(`1998-07-07T12:50:36.016Z`)},{order:5,date:new Date(`1994-09-05T05:10:44.078Z`)},{order:6,date:new Date(`1986-05-23T13:05:01.874Z`)},{order:7,date:new Date(`1975-06-29T21:51:29.359Z`)},{order:8,date:new Date(`1974-05-15T23:47:02.499Z`)},{order:9,date:new Date(`1990-05-27T10:13:19.641Z`)},{order:10,date:new Date(`1993-10-20T03:54:08.739Z`)},{order:11,date:new Date(`2000-02-25T11:55:43.705Z`)},{order:12,date:new Date(`1988-08-27T09:59:12.251Z`)},{order:13,date:new Date(`1980-10-24T10:41:24.897Z`)},{order:14,date:new Date(`1995-01-25T12:31:27.983Z`)},{order:15,date:new Date(`1995-04-15T02:00:39.048Z`)},{order:16,date:new Date(`1994-03-15T19:13:04.564Z`)},{order:17,date:new Date(`1999-03-02T16:53:04.418Z`)},{order:18,date:new Date(`1982-08-23T18:37:38.014Z`)},{order:19,date:new Date(`1995-06-19T12:39:56.321Z`)},{order:20,date:new Date(`1994-09-23T15:03:35.746Z`)},{order:21,date:new Date(`1990-04-15T23:38:02.147Z`)},{order:22,date:new Date(`1983-08-01T10:36:44.006Z`)},{order:23,date:new Date(`1986-06-28T21:27:04.588Z`)},{order:24,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:25,date:new Date(`1998-07-14T15:52:29.010Z`)},{order:26,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:27,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:28,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:29,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:30,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:31,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:32,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:33,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:34,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:35,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:36,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:37,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:38,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:39,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:40,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:41,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:42,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:43,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:44,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:45,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:46,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:47,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:48,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:49,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:50,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:51,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:52,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:53,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:54,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:55,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:56,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:57,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:58,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:59,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:60,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:61,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:62,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:63,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:64,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:65,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:66,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:67,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:68,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:69,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:70,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:71,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:72,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:73,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:74,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:75,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:76,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:77,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:78,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:79,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:80,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:81,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:82,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:83,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:84,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:85,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:86,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:87,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:88,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:89,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:90,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:91,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:92,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:93,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:94,date:new Date(`1995-12-15T23:12:14.411Z`)},{order:95,date:new Date(`1986-08-14T19:34:40.904Z`)},{order:96,date:new Date(`1985-02-15T18:56:32.344Z`)},{order:97,date:new Date(`1989-09-06T10:49:30.896Z`)},{order:98,date:new Date(`1994-09-05T14:21:37.211Z`)},{order:99,date:new Date(`1995-12-15T23:12:14.411Z`)}],Xf=[{small:`Small Example`,large:`Larger Example`}],Zf={horizontal:[[{label:`Small Column`,key:`small`,textAlign:`left`,width:200},{label:`Large Column`,key:`large`,textAlign:`left`,width:300},{label:`Larger Column`,key:`large`,textAlign:`left`,width:400},{label:`Larger Column`,key:`large`,textAlign:`left`,width:400}]]},Qf={horizontal:[[{label:`Small Column`,key:`small`,textAlign:`left`,width:160},{label:`Large Column`,key:`large`,textAlign:`left`,width:160},{label:`Larger Column`,key:`large`,textAlign:`left`,width:160}]]},$f={horizontal:[[{label:`Order`,key:`order`,width:160},{label:`Date`,key:`date`,width:160,compareFn:()=>0,render:(e,t,n)=>Jf.format(n.date)}]]},ep=()=>{let[e,t]=(0,E.useState)(!0);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTableStateful with and without horizontal scrollbars. When a scrollbar is present, it should be possible to focus the table container and to scroll it using arrow keys.`})}),(0,G.jsxs)(`div`,{className:`w-[400px] flex flex-col gap-4`,children:[(0,G.jsx)(K,{id:`scrollbar-horizontal`,className:`w-full flex flex-col gap-4`,children:(0,G.jsx)(V,{_label:`Table for demonstration purposes with horizontal scrollbar.`,_headers:e?Zf:Qf,_data:Xf,className:`block`})}),(0,G.jsx)(V,{_label:`Table for demonstration horizontal scrolling with pagination.`,_headers:$f,_data:Yf,_pagination:!0}),(0,G.jsx)(K,{id:`scrollbar-horizontal-empty`,className:`w-full flex flex-col gap-4`,children:(0,G.jsx)(V,{_label:`Table for demonstration purposes with horizontal scrollbar with auto width calculation.`,_headers:e?Zf:Qf,_data:[],className:`block`})})]}),(0,G.jsx)(I,{_checked:e,_label:`Toggle width restriction`,_variant:`switch`,_on:{onChange:(e,n)=>{t(!!n)}}}),(0,G.jsx)(F,{_label:`Same table without scrollbar`,_level:2,className:`block mt-4`}),(0,G.jsx)(`p`,{className:`mt-0`,children:(0,G.jsx)(`i`,{children:`Scrollbar appears on very small viewport sizes`})}),(0,G.jsx)(K,{id:`scrollbar-horizontal-large`,className:`w-full flex flex-col gap-4`,skipSnapshot:!0,children:(0,G.jsx)(V,{_label:`Table for demonstration purposes without horizontal scrollbar`,_headers:Zf,_data:Xf,className:`block`,_pagination:!0})})]})};function tp(e){let{dummyClickEventHandler:t}=Fa(),n={onClick:t};return(0,G.jsx)(M,{...e,_on:n})}var np=e=>{let t=`${e}`,n=t.charAt(0).toUpperCase()+t.slice(1);return{label:n,key:t,textAlign:`left`,width:160,render:(t,r)=>{let{label:i}=r,a={_label:n,_variant:e,_icons:{right:`kolicon-kolibri`}};es(Xe(t)).render(i===`button`?(0,G.jsx)(tp,{...a}):(0,G.jsx)(B,{_href:`#/back-page`,...a}))}}},rp=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows a KolTableStateless with different interactive child elements. It can be used to assure themes show these child elements correctly.`})}),(0,G.jsxs)(`section`,{className:`w-full flex flex-col`,children:[(0,G.jsx)(We,{_label:`Button styles`,_headers:{horizontal:[[np(`primary`),np(`secondary`),np(`normal`),np(`danger`),np(`ghost`)]],vertical:[[{label:`Button`,width:120},{label:`Link-Button`,width:120}]]},_data:[{primary:`button`,secondary:`button`,normal:`button`,danger:`button`,ghost:`button`},{primary:`link-button`,secondary:`link-button`,normal:`link-button`,danger:`link-button`,ghost:`link-button`}],className:`block`}),(0,G.jsx)(We,{_label:`Link styles`,_headers:{horizontal:[[{key:`regular`,label:`Regular`,textAlign:`left`,width:180,render:(e,t)=>{let{label:n}=t,r={_label:n,_icons:{right:`kolicon-kolibri`}};es(Xe(e)).render(n===`button-link`?(0,G.jsx)(N,{...r}):(0,G.jsx)(z,{_href:`#/back-page`,...r}))}}]],vertical:[[{label:`Link`,width:140},{label:`Button-Link`,width:140}]]},_data:[{regular:`link`},{regular:`button-link`}],className:`block mt`})]})]}),ip=Intl.DateTimeFormat(`de-DE`,{day:`2-digit`,month:`2-digit`,year:`numeric`}),ap=[`Devon Chen`,`Fatima Alvi`,`Leon Köhler`,`Mila Schmidt`,`Sven Lindholm`],op=[`Customer Service`,`Digital Services`,`Infrastructure`,`Municipal Office`],sp=[`High`,`Medium`,`Low`],cp=[`Blocked`,`In progress`,`Ready`],lp=sp.reduce((e,t,n)=>(e[t]=n,e),{}),up=cp.reduce((e,t,n)=>(e[t]=n,e),{}),dp=Array.from({length:15}).map((e,t)=>({date:new Date(Date.now()-t*1e3*60*60*24),assignee:ap[t%ap.length],department:op[t%op.length],priority:sp[t%sp.length],status:cp[t%cp.length],openTickets:t*3%11})),fp=[{label:`Assignee`,key:`assignee`,compareFn:(e,t)=>e.assignee.localeCompare(t.assignee,`de`),sortDirection:`ASC`,width:200},{label:`Department`,key:`department`,compareFn:(e,t)=>e.department.localeCompare(t.department,`de`),width:200},{label:`Priority`,key:`priority`,textAlign:`center`,compareFn:(e,t)=>lp[e.priority]-lp[t.priority],sortDirection:`DESC`,width:150},{label:`Status`,key:`status`,textAlign:`center`,compareFn:(e,t)=>up[e.status]-up[t.status],width:150},{label:`Open tickets`,key:`openTickets`,textAlign:`right`,compareFn:(e,t)=>e.openTickets-t.openTickets,width:100},{label:`Last updated`,key:`date`,textAlign:`center`,render:(e,t,n)=>ip.format(n.date),compareFn:(e,t)=>e.date<t.date?-1:+(t.date<e.date),width:150}],pp={horizontal:[fp]},mp={vertical:[fp]},hp=()=>{let[e,t]=(0,E.useState)(mp),[n,r]=(0,E.useState)(pp);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`Multi-sort allows layering multiple column sorts at once. Compare the compact examples with the project backlog showcase to see how the sort order indicator helps track complex prioritisation.`})}),(0,G.jsxs)(`section`,{className:`w-full grid gap-6`,children:[(0,G.jsxs)(K,{id:`vertical`,heading:`Vertical`,children:[(0,G.jsx)(N,{_label:`Reset Table`,_on:{onClick:()=>t({vertical:[[...fp]]})}}),(0,G.jsx)(V,{_label:`Sort Table with Order and Date`,_data:dp.slice(0,10),_headers:e,className:`block`,_allowMultiSort:!0})]}),(0,G.jsxs)(K,{id:`horizontal`,heading:`Horizontal`,children:[(0,G.jsx)(N,{_label:`Reset Table`,_on:{onClick:()=>r({horizontal:[[...fp]]})}}),(0,G.jsx)(V,{_label:`Sort Table with Order and Date`,_data:dp,_headers:n,className:`block`,_allowMultiSort:!0})]})]})]})},gp=[{id:`1001`,name:`John`,age:30},{id:`1002`,name:`Jane`,age:25}],_p=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This example demonstrates a column that cannot be hidden in the settings.`})}),(0,G.jsx)(K,{id:`non-hidable`,fitContent:!0,children:(0,G.jsx)(V,{_label:`Table with a non-hidable column`,_hasSettingsMenu:!0,_headers:{horizontal:[[{key:`id`,label:`ID`,hidable:!1,width:160},{key:`name`,label:`Name`,width:160},{key:`age`,label:`Age`,width:160}]]},_data:gp,className:`block`,style:{maxWidth:`600px`}})})]}),vp={horizontal:[[{label:`Order`,key:`order`,width:160},{label:`Date`,key:`date`,width:160,render:(e,t,n)=>Jf.format(n.date)}]]},yp=()=>(0,G.jsxs)(`div`,{className:`w-full grid gap-14`,children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTableStateful with different pagination positions. All paginations hide the first and last buttons.`})}),(0,G.jsxs)(`section`,{className:`w-full flex flex-col gap-14`,children:[(0,G.jsx)(K,{id:`bottom`,heading:`Table with pagination at the bottom.`,children:(0,G.jsx)(V,{_label:`Sample table with pagination at the bottom`,_data:Yf,_headers:vp,_pagination:{_page:1,_hasButtons:{first:!1,next:!0,last:!1,previous:!0}},_paginationPosition:`bottom`,_variant:`small`})}),(0,G.jsx)(K,{id:`top`,heading:`Table with pagination at the top.`,children:(0,G.jsx)(V,{_label:`Sample table with pagination at the top`,_data:Yf,_headers:vp,_pagination:{_page:2,_hasButtons:{first:!0,next:!1,last:!0,previous:!1}},_paginationPosition:`top`})}),(0,G.jsx)(K,{id:`both`,heading:`Table with pagination at both top and bottom.`,children:(0,G.jsx)(V,{_label:`Sample table with pagination at both top and bottom`,_data:Yf,_headers:vp,_pagination:{_page:3,_hasButtons:{first:!1,next:!1,last:!1,previous:!1}},_paginationPosition:`both`})})]})]}),bp=[{columnA:`Column A`,columnB:`Column B`,columnC:`Column C`}],xp=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This example shows the table with predefined settings.`})}),(0,G.jsx)(V,{_label:`Table for demonstration purposes with predefined settings`,_hasSettingsMenu:!0,_headers:{horizontal:[[{key:`columnC`,visible:!0,label:`Column C`,width:450},{key:`columnB`,visible:!0,label:`Column B`,width:200},{key:`columnA`,visible:!1,label:`Column A`,width:160}]]},_data:bp,className:`block`})]});function Sp(e){let t=[],n=new Date(`1970-01-01`).getTime(),r=new Date(`2025-12-31`).getTime();for(let i=0;i<e;i++){let e=n+Math.random()*(r-n);t.push({order:i,shipped:Math.random()>.5,date:new Date(e)})}return t}var Cp=Sp(100);function wp({label:e,icons:t}){let{dummyClickEventHandler:n}=Fa();return(0,G.jsx)(M,{_label:e,_icons:t,_on:{onClick:n}})}var Tp={horizontal:[[{label:`#`,key:`order`,textAlign:`center`,width:100,render:(e,t)=>{let{label:n}=t;return`Index: ${n}`}},{label:`Status`,key:`shipped`,textAlign:`center`,width:100,render:(e,t)=>{let{label:n}=t,r=e;r.textContent=n?`Order has been dispatched 🚚`:`Order pending 📦`}},{label:`Date (string)`,key:`date`,width:150,textAlign:`center`,render:(e,t)=>{let{label:n}=t;e.innerHTML=`<strong>${Jf.format(n)}</strong>`},compareFn:(e,t)=>e.date.getTime()-t.date.getTime()},{label:`Action (react)`,key:`action`,width:250,render:e=>{es(Xe(e)).render((0,G.jsxs)(`div`,{style:{display:`grid`,gridAutoFlow:`column`,alignItems:`end`,gap:`4px`,width:`190px`},children:[(0,G.jsx)(R,{_label:`Input`}),(0,G.jsx)(wp,{label:`Save`,icons:{left:`kolicon-check`}})]}))}}]]},Ep=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTableStateful using React render functions for the cell contents.`})}),(0,G.jsx)(V,{_label:`Sort by date column`,_data:Cp,_headers:Tp,className:`w-full`,_hasSettingsMenu:!0})]}),Dp=[{id:`U-001`,name:`Andrea Schmidt`,team:`Design`,email:`andrea@example.org`,status:`Active`},{id:`U-002`,name:`Boris Klein`,team:`Engineering`,email:`boris@example.org`,status:`Active`},{id:`U-003`,name:`Chiara Russo`,team:`Support`,email:`chiara@example.org`,status:`On leave`}],Op=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This example demonstrates how the table settings respect column metadata. Some columns can be hidden, reordered, or resized, while others stay locked based on their `,(0,G.jsx)(`code`,{children:`hidable`}),`, `,(0,G.jsx)(`code`,{children:`sortable`}),`, and `,(0,G.jsx)(`code`,{children:`resizable`}),` flags.`]})}),(0,G.jsx)(V,{_label:`Table with column option restrictions`,_hasSettingsMenu:!0,_headers:{horizontal:[[{key:`id`,label:`ID`,hidable:!1,sortable:!1,visible:!0,width:240},{key:`name`,label:`Name`,visible:!0,width:480},{key:`team`,label:`Team`,sortable:!1,visible:!0,width:320},{key:`email`,label:`E-Mail`,resizable:!1,visible:!0,width:400},{key:`status`,label:`Status`,hidable:!1,resizable:!1,visible:!0,width:160}]]},_data:Dp,className:`block`,style:{maxWidth:`720px`}})]}),kp=Intl.DateTimeFormat(`de-DE`,{day:`2-digit`,month:`2-digit`,year:`numeric`}),Ap=(e=`ASC`)=>(t,n)=>{let r=t.date.getTime()-n.date.getTime();return e===`DESC`?-r:r},jp={horizontal:[[{label:`order`,key:`order`,textAlign:`center`,width:160},{label:`date`,key:`date`,textAlign:`center`,width:160,render:(e,t,n)=>kp.format(n.date),compareFn:(e,t,n)=>Ap(n)(e,t)}]]},Mp={vertical:[[{label:`order`,key:`order`,textAlign:`center`,width:160},{label:`date`,key:`date`,textAlign:`center`,width:160,render:(e,t,n)=>kp.format(n.date),compareFn:(e,t,n)=>Ap(n)(e,t)}]]},Np=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTableStateful with sortable columns. The sort-order can be changed by clicking the "date" header column.`})}),(0,G.jsxs)(`section`,{className:`w-full grid gap-4`,children:[(0,G.jsx)(K,{id:`vertical-headers`,heading:`Vertical headers`,children:(0,G.jsx)(V,{_label:`Sort a date column`,_data:Yf.slice(0,10),_headers:Mp,className:`block`})}),(0,G.jsx)(K,{id:`horizontal-headers`,heading:`Horizontal headers`,children:(0,G.jsx)(V,{_label:`Sort a date column`,_data:Yf,_headers:jp,className:`block`})})]})]}),Pp={horizontal:[[{key:`id`,label:`ID`,width:80},{key:`project`,label:`Project`},{key:`owner`,label:`Owner`,width:140},{type:`state`,key:`userStates`,label:`States`,textAlign:`left`,width:500}]]},Fp=[{id:`T-01`,project:`Onboarding checklist`,owner:`Alex Rivera`,userStates:[{type:`badge`,_label:`Logged out`,_color:`#aa0000`},{type:`badge`,_label:`In Project`,_color:`#0000aa`}]},{id:`T-02`,project:`Accessibility audit`,owner:`Jamie Chen`,userStates:[{type:`badge`,_label:`Logged in`,_color:`#00aa00`},{type:`badge`,_label:`In Project`,_color:`#0000aa`}]}],Ip=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`Simple example using the state column: States are defined once in the column header definition using a factory function.`})}),(0,G.jsx)(K,{id:`action-columns`,className:`w-full`,children:(0,G.jsx)(V,{_label:`Tasks with action buttons`,_headers:Pp,_data:Fp,className:`block`})})]}),Lp={horizontal:[[{label:`ID`,key:`id`,textAlign:`right`,width:160,sortDirection:`NOS`},{label:`Common name`,key:`common_name`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Scientific name`,key:`scientific_name`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Conservation status`,key:`conservation_status`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Habitat`,key:`habitat`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Diet`,key:`diet`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Geographic range`,key:`geographic_range`,textAlign:`left`,width:160,sortDirection:`NOS`}]]},Rp=()=>{let e=()=>new Promise(e=>setTimeout(()=>e({COMPLEX_DATA:Df}),5e4)),t=()=>{a(!0),e().then(e=>{r(e.COMPLEX_DATA.slice(0,15)),a(!1)})},[n,r]=(0,E.useState)([]),[i,a]=(0,E.useState)(!0);return(0,E.useEffect)(()=>t(),[]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows how KolTableStateful can load data async.`})}),(0,G.jsx)(`section`,{className:`w-full relative`,children:(0,G.jsx)(V,{_label:`Table for demonstration purposes`,_loading:i,_headers:Lp,_data:n})})]})},zp=T(C(((e,t,n)=>{((n,r)=>{typeof define==`function`&&define.amd?define([],r):typeof t==`object`&&e!==void 0?t.exports=r():n.Papa=r()})(n,function e(){var t=typeof self<`u`?self:typeof window<`u`?window:t===void 0?{}:t,n=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,i={},a=0,o={};function s(e){return e.charCodeAt(0)===65279?e.slice(1):e}function c(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine=``,this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=y(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new p(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,n){var i=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<i){let t=this._config.newline;t||=(a=this._config.quoteChar||`"`,this._handle.guessLineEndings(e,a)),e=[...e.split(t).slice(i)].join(t)}this.isFirstChunk&&x(this._config.beforeFirstChunk)&&(a=this._config.beforeFirstChunk(e))!==void 0&&(e=a),this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e,a=(this._partialLine=``,this._handle.parse(i,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=a.meta.cursor,i=(this._finished||(this._partialLine=i.substring(e-this._baseIndex),this._baseIndex=e),a&&a.data&&(this._rowCount+=a.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),r)t.postMessage({results:a,workerId:o.WORKER_ID,finished:i});else if(x(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=a=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!i||!x(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),i||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){x(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:o.WORKER_ID,error:e,finished:!1})}}function l(e){var t;(e||={}).chunkSize||(e.chunkSize=o.RemoteChunkSize),c.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.ontimeout=b(this._chunkTimeout,this),t.open(this._config.downloadRequestBody?`POST`:`GET`,this._input,!n),this._config.downloadTimeout&&!n&&(t.timeout=this._config.downloadTimeout),this._config.downloadRequestHeaders){var e,r=this._config.downloadRequestHeaders;for(e in r)t.setRequestHeader(e,r[e])}var i;this._config.chunkSize&&(i=this._start+this._config.chunkSize-1,t.setRequestHeader(`Range`,`bytes=`+this._start+`-`+i));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&t.status===0&&this._chunkError()}},this._chunkLoaded=function(){t.readyState===4&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>(e=e.getResponseHeader(`Content-Range`))===null?-1:parseInt(e.substring(e.lastIndexOf(`/`)+1)))(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))},this._chunkTimeout=function(){this._chunkError(`Request timed out after `+this._config.downloadTimeout+`ms`)}}function u(e){(e||={}).chunkSize||(e.chunkSize=o.LocalChunkSize),c.call(this,e);var t,n,r=typeof FileReader<`u`;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,i=(this._config.chunkSize&&(i=Math.min(this._start+this._config.chunkSize,this._input.size),e=n.call(e,this._start,i)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;c.call(this,e||={}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,n;if(!this._finished)return e=this._config.chunkSize,t=e?(n=t.substring(0,e),t.substring(e)):(n=t,``),this._finished=!t,this.parseChunk(n)}}function f(e){c.call(this,e||={});var t=[],n=!0,r=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on(`data`,this._streamData),this._input.on(`end`,this._streamEnd),this._input.on(`error`,this._streamError)},this._checkIsFinished=function(){r&&t.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=b(function(e){try{t.push(typeof e==`string`?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),r=!0,this._streamData(``)},this),this._streamCleanUp=b(function(){this._input.removeListener(`data`,this._streamData),this._input.removeListener(`end`,this._streamEnd),this._input.removeListener(`error`,this._streamError)},this)}function p(e){var t,n,r,i,a=2**53,s=-a,c=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,u=this,d=0,f=0,p=!1,g=!1,_=[],v={data:[],errors:[],meta:{}};function b(t){return e.skipEmptyLines===`greedy`?t.join(``).trim()===``:t.length===1&&t[0].length===0}function S(){if(v&&r&&(w(`Delimiter`,`UndetectableDelimiter`,`Unable to auto-detect delimiting character; defaulted to '`+o.DefaultDelimiter+`'`),r=!1),e.skipEmptyLines&&(v.data=v.data.filter(function(e){return!b(e)})),C()){if(v){if(Array.isArray(v.data[0])){for(var t=0;C()&&t<v.data.length;t++)v.data[t].forEach(e);v.data.splice(0,1)}else v.data.forEach(e)}function e(e){_.push(e)}}function n(t,n){for(var r=e.header?{}:[],i=0;i<t.length;i++){var o=i,u=t[i],u=((t,n)=>(t=>(e.dynamicTypingFunction&&e.dynamicTyping[t]===void 0&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?n===`true`||n===`TRUE`||n!==`false`&&n!==`FALSE`&&((e=>{if(c.test(e)&&(e=parseFloat(e),s<e&&e<a))return 1})(n)?parseFloat(n):l.test(n)?new Date(n):n===``?null:n):n)(o=e.header?i>=_.length?`__parsed_extra`:_[i]:o,u=e.transform?e.transform(u,o):u);o===`__parsed_extra`?(r[o]=r[o]||[],r[o].push(u)):r[o]=u}return e.header&&(i>_.length?w(`FieldMismatch`,`TooManyFields`,`Too many fields: expected `+_.length+` fields but parsed `+i,f+n):i<_.length&&w(`FieldMismatch`,`TooFewFields`,`Too few fields: expected `+_.length+` fields but parsed `+i,f+n)),r}var i;v&&(e.header||e.dynamicTyping||e.transform)&&(i=1,!v.data.length||Array.isArray(v.data[0])?(v.data=v.data.map(n),i=v.data.length):v.data=n(v.data,0),e.header&&v.meta&&(v.meta.fields=_),f+=i)}function C(){return e.header&&_.length===0}function w(e,t,n,r){e={type:e,code:t,message:n},r!==void 0&&(e.row=r),v.errors.push(e)}x(e.step)&&(i=e.step,e.step=function(t){v=t,C()?S():(S(),v.data.length!==0&&(d+=t.data.length,e.preview&&d>e.preview?n.abort():(v.data=v.data[0],i(v,u))))}),this.parse=function(i,a,s){var c=e.quoteChar||`"`,c=(e.newline||=this.guessLineEndings(i,c),r=!1,e.delimiter?x(e.delimiter)&&(e.delimiter=e.delimiter(i),v.meta.delimiter=e.delimiter):((c=((t,n,r,i,a)=>{var s,c,l,u;a||=[`,`,` `,`|`,`;`,o.RECORD_SEP,o.UNIT_SEP];for(var d=0;d<a.length;d++){for(var f,p=a[d],m=0,g=0,_=0,v=(l=void 0,new h({comments:i,delimiter:p,newline:n,preview:10}).parse(t)),y=0;y<v.data.length;y++)r&&b(v.data[y])?_++:(f=v.data[y].length,g+=f,l===void 0?l=f:0<f&&(m+=Math.abs(f-l),l=f));0<v.data.length&&(g/=v.data.length-_),1.99<g&&(c===void 0||m<c||m===c&&u<g)&&(c=m,s=p,u=g)}return{successful:!!(e.delimiter=s),bestDelimiter:s}})(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=c.bestDelimiter:(r=!0,e.delimiter=o.DefaultDelimiter),v.meta.delimiter=e.delimiter),y(e));return c.header=C(),e.preview&&e.header&&c.preview++,t=i,n=new h(c),v=n.parse(t,a,s),S(),p?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,n.abort(),t=x(e.chunk)?``:t.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(p=!1,u.streamer.parseChunk(t,!0)):setTimeout(u.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,n.abort(),v.meta.aborted=!0,x(e.complete)&&e.complete(v),t=``},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(m(t)+`([^]*?)`+m(t),`gm`),n=(e=e.replace(t,``)).split(`\r`),t=e.split(`
73
- `),e=1<t.length&&t[0].length<n[0].length;if(n.length===1||e)return`
74
- `;for(var r=0,i=0;i<n.length;i++)n[i][0]===`
75
- `&&r++;return r>=n.length/2?`\r
76
- `:`\r`}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function h(e){var t=(e||={}).delimiter,n=e.newline,r=e.comments,i=e.step,a=e.preview,c=e.fastMode,l=null,u=!1,d=e.quoteChar==null?`"`:e.quoteChar,f=d;if(e.escapeChar!==void 0&&(f=e.escapeChar),(typeof t!=`string`||-1<o.BAD_DELIMITERS.indexOf(t))&&(t=`,`),r===t)throw Error(`Comment character same as delimiter`);!0===r?r=`#`:(typeof r!=`string`||-1<o.BAD_DELIMITERS.indexOf(r))&&(r=!1),n!==`
77
- `&&n!==`\r`&&n!==`\r
78
- `&&(n=`
79
- `);var p=0,h=!1;this.parse=function(o,g,_){if(typeof o!=`string`)throw Error(`Input must be a string`);var v=o.length,y=t.length,b=n.length,S=r.length,C=x(i),w=[],T=[],ee=[],te=p=0;if(!o)return le();if(c||!1!==c&&o.indexOf(d)===-1){for(var E=o.split(n),ne=0;ne<E.length;ne++){if(ee=E[ne],p+=ee.length,ne!==E.length-1)p+=n.length;else if(_)return le();if(!r||ee.substring(0,S)!==r){if(C){if(w=[],k(ee.split(t)),ue(),h)return le()}else k(ee.split(t));if(a&&a<=ne)return w=w.slice(0,a),le(!0)}}return le()}for(var re=o.indexOf(t,p),ie=o.indexOf(n,p),ae=new RegExp(m(f)+m(d),`g`),D=o.indexOf(d,p);;)if(o[p]===d)for(D=p,p++;;){if((D=o.indexOf(d,D+1))===-1)return _||T.push({type:`Quotes`,code:`MissingQuotes`,message:`Quoted field unterminated`,row:w.length,index:p}),se();if(D===v-1)return se(o.substring(p,D).replace(ae,d));if(d===f&&o[D+1]===f)D++;else if(d===f||D===0||o[D-1]!==f){re!==-1&&re<D+1&&(re=o.indexOf(t,D+1));var O=oe((ie=ie!==-1&&ie<D+1?o.indexOf(n,D+1):ie)===-1?re:Math.min(re,ie));if(o.substr(D+1+O,y)===t){ee.push(o.substring(p,D).replace(ae,d)),o[p=D+1+O+y]!==d&&(D=o.indexOf(d,p)),re=o.indexOf(t,p),ie=o.indexOf(n,p);break}if(O=oe(ie),o.substring(D+1+O,D+1+O+b)===n){if(ee.push(o.substring(p,D).replace(ae,d)),ce(D+1+O+b),re=o.indexOf(t,p),D=o.indexOf(d,p),C&&(ue(),h))return le();if(a&&w.length>=a)return le(!0);break}T.push({type:`Quotes`,code:`InvalidQuotes`,message:`Trailing quote on quoted field is malformed`,row:w.length,index:p}),D++}}else if(r&&ee.length===0&&o.substring(p,p+S)===r){if(ie===-1)return le();p=ie+b,ie=o.indexOf(n,p),re=o.indexOf(t,p)}else if(re!==-1&&(re<ie||ie===-1))ee.push(o.substring(p,re)),p=re+y,re=o.indexOf(t,p);else{if(ie===-1)break;if(ee.push(o.substring(p,ie)),ce(ie+b),C&&(ue(),h))return le();if(a&&w.length>=a)return le(!0)}return se();function k(e){w.push(e),te=p}function oe(e){var t=0;return t=e!==-1&&(e=o.substring(D+1,e))&&e.trim()===``?e.length:t}function se(e){return _||(e===void 0&&(e=o.substring(p)),ee.push(e),p=v,k(ee),C&&ue()),le()}function ce(e){p=e,k(ee),ee=[],ie=o.indexOf(n,p)}function le(r){if(e.header&&!g&&w.length&&!u){var i=w[0],a=Object.create(null),o=new Set(i);let t=!1;for(let n=0;n<i.length;n++){let r=s(i[n]);if(a[r=x(e.transformHeader)?e.transformHeader(r,n):r]){let e,s=a[r];for(;e=r+`_`+s,s++,o.has(e););o.add(e),i[n]=e,a[r]++,t=!0,(l=l===null?{}:l)[e]=r}else a[r]=1,i[n]=r;o.add(r)}t&&console.warn(`Duplicate headers found and renamed.`),u=!0}return{data:w,errors:T,meta:{delimiter:t,linebreak:n,aborted:h,truncated:!!r,cursor:te+(g||0),renamedHeaders:l}}}function ue(){i(le()),w=[],T=[]}},this.abort=function(){h=!0},this.getCharIndex=function(){return p}}function g(e){var t=e.data,n=i[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){r=!0,_(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(x(n.userStep)){for(var o=0;o<t.results.data.length&&(n.userStep({data:t.results.data[o],errors:t.results.errors,meta:t.results.meta},a),!r);o++);delete t.results}else x(n.userChunk)&&(n.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!r&&_(t.workerId,t.results)}function _(e,t){var n=i[e];x(n.userComplete)&&n.userComplete(t),n.terminate(),delete i[e]}function v(){throw Error(`Not implemented.`)}function y(e){if(typeof e!=`object`||!e)return e;var t,n=Array.isArray(e)?[]:{};for(t in e)n[t]=y(e[t]);return n}function b(e,t){return function(){e.apply(t,arguments)}}function x(e){return typeof e==`function`}return o.parse=function(n,r){var c=(r||={}).dynamicTyping||!1;if(x(c)&&(r.dynamicTypingFunction=c,c={}),r.dynamicTyping=c,r.transform=!!x(r.transform)&&r.transform,r.downloadTimeout!==void 0){var c=parseInt(r.downloadTimeout);if(isNaN(c))throw Error(`Config downloadTimeout value (`+r.downloadTimeout+`) not parsable by parseInt(val).`);r.downloadTimeout=c}if(!r.worker||!o.WORKERS_SUPPORTED)return c=null,o.NODE_STREAM_INPUT,typeof n==`string`?(n=s(n),c=new(r.download?l:d)(r)):!0===n.readable&&x(n.read)&&x(n.on)?c=new f(r):(t.File&&n instanceof File||n instanceof Object)&&(c=new u(r)),c.stream(n);(c=(()=>{var n;return!!o.WORKERS_SUPPORTED&&(n=(()=>{var n=t.URL||t.webkitURL||null,r=e.toString();return o.BLOB_URL||=n.createObjectURL(new Blob([`var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; `,`(`,r,`)();`],{type:`text/javascript`}))})(),(n=new t.Worker(n)).onmessage=g,n.id=a++,i[n.id]=n)})()).userStep=r.step,c.userChunk=r.chunk,c.userComplete=r.complete,c.userError=r.error,r.step=x(r.step),r.chunk=x(r.chunk),r.complete=x(r.complete),r.error=x(r.error),delete r.worker,c.postMessage({input:n,config:r,workerId:c.id})},o.unparse=function(e,t){var n=!1,r=!0,i=`,`,a=`\r
80
- `,s=`"`,c=s+s,l=!1,u=null,d=!1,f=((()=>{if(typeof t==`object`){if(typeof t.delimiter!=`string`||o.BAD_DELIMITERS.filter(function(e){return t.delimiter.indexOf(e)!==-1}).length||(i=t.delimiter),typeof t.quotes!=`boolean`&&typeof t.quotes!=`function`&&!Array.isArray(t.quotes)||(n=t.quotes),typeof t.skipEmptyLines!=`boolean`&&typeof t.skipEmptyLines!=`string`||(l=t.skipEmptyLines),typeof t.newline==`string`&&(a=t.newline),typeof t.quoteChar==`string`&&(s=t.quoteChar,c=s+s),typeof t.header==`boolean`&&(r=t.header),Array.isArray(t.columns)){if(t.columns.length===0)throw Error(`Option columns is empty`);u=t.columns}t.escapeChar!==void 0&&(c=t.escapeChar+s),t.escapeFormulae instanceof RegExp?d=t.escapeFormulae:typeof t.escapeFormulae==`boolean`&&t.escapeFormulae&&(d=/^[=+\-@\t\r].*$/)}})(),new RegExp(m(s),`g`));if(typeof e==`string`&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return p(null,e,l);if(typeof e[0]==`object`)return p(u||Object.keys(e[0]),e,l)}else if(typeof e==`object`)return typeof e.data==`string`&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:typeof e.data[0]==`object`?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||typeof e.data[0]==`object`||(e.data=[e.data])),p(e.fields||[],e.data||[],l);throw Error(`Unable to serialize unrecognized input`);function p(e,t,n){var o=``,s=(typeof e==`string`&&(e=JSON.parse(e)),typeof t==`string`&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),c=!Array.isArray(t[0]);if(s&&r){for(var l=0;l<e.length;l++)0<l&&(o+=i),o+=h(e[l],l);0<t.length&&(o+=a)}for(var u=0;u<t.length;u++){var d=(s?e:t[u]).length,f=!1,p=s?Object.keys(t[u]).length===0:t[u].length===0;if(n&&!s&&(f=n===`greedy`?t[u].join(``).trim()===``:t[u].length===1&&t[u][0].length===0),n===`greedy`&&s){for(var m=[],g=0;g<d;g++){var _=c?e[g]:g;m.push(t[u][_])}f=m.join(``).trim()===``}if(!f){for(var v=0;v<d;v++){0<v&&!p&&(o+=i);var y=s&&c?e[v]:v;o+=h(t[u][y],v)}u<t.length-1&&(!n||0<d&&!p)&&(o+=a)}}return o}function h(e,t){var r,a,l;return e==null?``:e.constructor===Date?isNaN(e.getTime())?``:e.toISOString():(l=!1,d&&typeof e==`string`&&d.test(e)&&(e=`'`+e,l=!0),a=(r=e.toString()).replace(f,c),(l=l||!0===n||typeof n==`function`&&n(e,t)||Array.isArray(n)&&n[t]||((e,t)=>{for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1})(a,o.BAD_DELIMITERS)||-1<a.indexOf(i)||-1<r.indexOf(s)||a.charAt(0)===` `||a.charAt(a.length-1)===` `)?s+a+s:a)}},o.RECORD_SEP=``,o.UNIT_SEP=``,o.BYTE_ORDER_MARK=``,o.BAD_DELIMITERS=[`\r`,`
81
- `,`"`,o.BYTE_ORDER_MARK],o.WORKERS_SUPPORTED=!n&&!!t.Worker,o.NODE_STREAM_INPUT=1,o.LocalChunkSize=10485760,o.RemoteChunkSize=5242880,o.DefaultDelimiter=`,`,o.Parser=h,o.ParserHandle=p,o.NetworkStreamer=l,o.FileStreamer=u,o.StringStreamer=d,o.ReadableStreamStreamer=f,r&&(t.onmessage=function(e){e=e.data,o.WORKER_ID===void 0&&e&&(o.WORKER_ID=e.workerId),typeof e.input==`string`?t.postMessage({workerId:o.WORKER_ID,results:o.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=o.parse(e.input,e.config))&&t.postMessage({workerId:o.WORKER_ID,results:e,finished:!0})}),(l.prototype=Object.create(c.prototype)).constructor=l,(u.prototype=Object.create(c.prototype)).constructor=u,(d.prototype=Object.create(d.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,o})}))(),1),Bp={horizontal:[[{label:`Order`,key:`order`,width:160},{label:`Date`,key:`date`,width:160,render:(e,t,n)=>Jf.format(n.date)}]]},Vp=(e,t)=>{let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.append(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),0)},Hp=e=>{let t=e.trim().replace(/[<>:"/\\|?*\u0000-\u001F]/g,`-`).replace(/\.+$/,``);return t.length>0?t:`table-export`},Up=Yf.map(e=>({Date:Jf.format(e.date),Order:e.order})),Wp=()=>{let[e,t]=(0,E.useState)(`table-export`),n=(0,E.useCallback)((e,n)=>{t(String(n??``))},[]),r=Hp(e),i=(0,E.useCallback)(()=>{let e=zp.default.unparse(Up,{delimiter:`;`,newline:`\r
82
- `});Vp(new Blob([``,e],{type:`text/csv;charset=utf-8;header=present`}),`${r}.csv`)},[r]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows CSV export for KolTableStateful data, using browser Blob downloads and a configurable file name.`})}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(R,{_label:`Export file name`,_value:e,_hint:`The entered value is used for CSV export.`,_on:{onInput:n}}),(0,G.jsx)(`div`,{className:`flex gap-4`,children:(0,G.jsx)(M,{_label:`Export CSV`,_on:{onClick:i}})}),(0,G.jsx)(V,{_label:`Table with export actions`,_data:Yf,_headers:Bp,className:`block`})]})]})},Gp=[{name:`Charlie`,score:72},{name:`Alice`,score:95},{name:`Bob`,score:88},{name:`Diana`,score:61},{name:`Eve`,score:84}],Kp={horizontal:[[{key:`name`,label:`Name`,sortDirection:`ASC`,compareFn:(e,t)=>e.name.localeCompare(t.name)},{key:`score`,label:`Score`,textAlign:`right`,compareFn:(e,t)=>e.score-t.score}]]},qp=()=>{let e=(0,E.useRef)(null);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample demonstrates the `,(0,G.jsx)(`code`,{children:`resetSort()`}),` method on `,(0,G.jsx)(`code`,{children:`KolTableStateful`}),`. Sort the table manually by clicking on a column header, then press “Reset Sort” to restore the default sort order defined in `,(0,G.jsx)(`code`,{children:`_headers`}),`.`]})}),(0,G.jsxs)(`section`,{className:`w-full grid gap-4`,children:[(0,G.jsx)(M,{_label:`Reset Sort`,_on:{onClick:()=>{e.current?.resetSort?.()}}}),(0,G.jsx)(V,{ref:e,_label:`Table with resettable sort`,_data:Gp,_headers:Kp,className:`block`})]})]})},Jp=[{id:`U-001`,name:`Andrea Schmidt`,team:`Design`,email:`andrea@example.org`,status:`Active`},{id:`U-002`,name:`Boris Klein`,team:`Engineering`,email:`boris@example.org`,status:`Active`},{id:`U-003`,name:`Chiara Russo`,team:`Support`,email:`chiara@example.org`,status:`On leave`},{id:`U-004`,name:`Dmitri Volkov`,team:`Engineering`,email:`dmitri@example.org`,status:`Active`},{id:`U-005`,name:`Elena Costa`,team:`Design`,email:`elena@example.org`,status:`On leave`},{id:`U-006`,name:`Farid Haddad`,team:`Support`,email:`farid@example.org`,status:`Active`}],Yp=e=>(t,n,r=`ASC`)=>{let i=String(t[e]).localeCompare(String(n[e]));return r===`DESC`?-i:i},Xp=()=>({horizontal:[[{key:`id`,label:`ID`,visible:!0,width:120},{key:`name`,label:`Name`,visible:!0,width:240,compareFn:Yp(`name`)},{key:`team`,label:`Team`,visible:!0,width:200,compareFn:Yp(`team`)},{key:`email`,label:`E-Mail`,visible:!0,width:280},{key:`status`,label:`Status`,visible:!0,width:160,compareFn:Yp(`status`)}]]}),Zp=()=>{let[e,t]=(0,E.useState)(0);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This example demonstrates that column settings applied via the settings menu are remembered. Open the settings menu and change a column's width, visibility or order and apply. Then sort a column, switch the pagination page, select a row, or use the "Force parent re-render" button – the customized columns must stay as you configured them and must no longer reset to their defaults (issue #10344).`})}),(0,G.jsx)(M,{_label:`Force parent re-render (${e})`,_on:{onClick:()=>t(e=>e+1)},className:`block`}),(0,G.jsx)(V,{_label:`Table that remembers settings across sorting, pagination and selection`,_hasSettingsMenu:!0,_pagination:{_page:1,_pageSize:3},_selection:{label:e=>`Select ${e.name}`,keyPropertyName:`id`,selectedKeys:[]},_headers:Xp(),_data:Jp,className:`block`})]})},Qp={horizontal:[[{key:`id`,label:`ID`,width:80},{key:`project`,label:`Project`,width:200},{key:`owner`,label:`Owner`,width:200},{type:`action`,key:`actions`,label:`Actions`,width:250,actions:e=>{let t=e;return[{type:`button`,_label:`Details`,_icons:`kolicon-eye`,_hideLabel:!0,_on:{onClick:()=>alert(`Details: ${t.id} - ${t.project}`)}}]}}]]},$p=[{id:`T-01`,project:`Onboarding checklist`,owner:`Alex Rivera`},{id:`T-02`,project:`Accessibility audit`,owner:`Jamie Chen`},{id:`T-03`,project:`UX audit`,owner:`Tyler Gray`},{id:`T-04`,project:`Software Architectur`,owner:`Tess Richardson`}],em=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`Simple example using the refactored action column: Actions are defined once in the column header definition using a factory function. Two rows with inline action buttons demonstrate clean separation between data and UI behavior.`})}),(0,G.jsx)(K,{id:`selection`,className:`w-full`,children:(0,G.jsx)(V,{_label:`Tasks with action buttons`,_headers:Qp,_data:$p,className:`block`,_selection:{label:e=>`Selection for ${e.id}`,selectedKeys:[`T-01`],disabledKeys:[`T-04`],keyPropertyName:`id`},_on:{onSelectionChange:(e,t)=>{console.log(`Selection change via callback`,t)}}})})]}),tm={horizontal:[[{key:`id`,label:`ID`,width:80},{key:`project`,label:`Project`,width:200},{key:`owner`,label:`Owner`,width:200},{type:`action`,key:`actions`,label:`Actions`,width:250,actions:e=>{let t=e;return[{type:`button`,_label:`Start`,_icons:`kolicon-chevron-right`,_variant:`secondary`,_on:{onClick:()=>alert(`Start task ${t.id}`)}}]}}]]},nm=[{id:`T-01`,project:`Onboarding checklist`,owner:`Alex Rivera`},{id:`T-02`,project:`Accessibility audit`,owner:`Jamie Chen`},{id:`T-03`,project:`UX audit`,owner:`Tyler Gray`},{id:`T-04`,project:`Software Architectur`,owner:`Tess Richardson`}],rm=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`Simple example using the refactored action column: Actions are defined once in the column header definition using a factory function. Two rows with inline action buttons demonstrate clean separation between data and UI behavior.`})}),(0,G.jsx)(K,{id:`single-selection`,className:`w-full`,children:(0,G.jsx)(V,{_label:`Tasks with action buttons`,_headers:tm,_data:nm,className:`block`,_selection:{label:e=>`Selection for ${e.id}`,selectedKeys:[`T-01`],disabledKeys:[`T-04`],keyPropertyName:`id`,multiple:!1},_on:{onSelectionChange:(e,t)=>{console.log(`Selection change via callback`,t)}}})})]}),im=[{left:`Left Example`,center:`Center Example`,right:`Right Example`},{},{},{}],am=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows how KolTableStateless can be used directly, with the KolTableStateful wrapper.`})}),(0,G.jsx)(K,{id:`stateless`,className:`w-full`,fitContent:!0,children:(0,G.jsx)(We,{_label:`Table for demonstration purposes`,_headers:{horizontal:[[{key:`left`,label:`left`,textAlign:`left`,sortDirection:`ASC`,width:100},{key:`center`,label:`center`,textAlign:`center`,sortDirection:`DESC`,width:100},{key:`right`,label:`right`,textAlign:`right`,sortDirection:`NOS`,width:100},{key:`nosort`,label:`no sort option`,width:150}]],vertical:[[{key:`vertical-left`,label:`left`,textAlign:`left`,sortDirection:`ASC`},{key:`vertical-center`,label:`center`,textAlign:`center`,sortDirection:`DESC`},{key:`vertical-right`,label:`right`,textAlign:`right`,sortDirection:`NOS`},{key:`vertical-nosort`,label:`no sort option`}]]},_data:im,className:`block`,style:{maxWidth:`600px`},_on:{onSort:(e,t)=>{console.log(t)}}})})]}),om={horizontal:[[{label:`ID`,key:`id`,textAlign:`right`,width:160,sortDirection:`NOS`},{label:`Common name`,key:`common_name`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Scientific name`,key:`scientific_name`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Conservation status`,key:`conservation_status`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Habitat`,key:`habitat`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Diet`,key:`diet`,textAlign:`left`,width:160,sortDirection:`NOS`},{label:`Geographic range`,key:`geographic_range`,textAlign:`left`,width:160,sortDirection:`NOS`}]]},sm=()=>{let e=()=>new Promise(e=>setTimeout(()=>e({COMPLEX_DATA:Df}),5e3)),t=()=>{a(!0),e().then(e=>{r(e.COMPLEX_DATA.slice(0,15)),a(!1)})},[n,r]=(0,E.useState)([]),[i,a]=(0,E.useState)(!0);return(0,E.useEffect)(()=>t(),[]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows how KolTableStateless can be used async and with KolPagination. Paging and sorting are not functional here, because a backend would offer this in real life.`})}),(0,G.jsxs)(K,{id:`async`,className:`w-full relative`,children:[(0,G.jsx)(We,{_label:`Table for demonstration purposes`,_loading:i,_headers:om,_data:n,_on:{onSort:()=>t()}}),(0,G.jsx)(Pe,{_max:200,_page:1,_siblingCount:0,_boundaryCount:2,_pageSize:15,_on:{onChangePage:()=>t()}})]})]})},cm=[{id:`1001`,name:`Foo Bar`,internalIdentifier:`AAA1001`},{id:`1002`,name:`Foo Baz`,internalIdentifier:`AAA1002`},{id:`1003`,name:`This row is always unchecked`,internalIdentifier:`AAA1003`},{id:`1004`,name:`This row is always checked`,internalIdentifier:`AAA1004`}];function lm({label:e}){let{dummyClickEventHandler:t}=Fa();return(0,G.jsx)(M,{_label:e,_on:{onClick:t}})}var um=()=>{let[e,t]=(0,E.useState)([`AAA1002`,`AAA1004`]),n={label:e=>`Selection for ${e.name}`,selectedKeys:e,keyPropertyName:`internalIdentifier`,disabledKeys:[`AAA1003`,`AAA1004`]},r=(0,E.useRef)(null),i=({detail:e})=>{console.log(`Selection change via event`,e)};return(0,E.useEffect)(()=>{let e=r.current,t=`kolSelectionChange`;return e?.addEventListener(t,i),()=>{e?.removeEventListener(t,i)}},[r]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTableStateless with checkboxes for selection enabled.`})}),(0,G.jsx)(K,{id:`selection`,className:`w-full`,children:(0,G.jsx)(We,{_label:`Table with selection checkboxes`,_headers:{horizontal:[[{key:`id`,label:`#ID`,textAlign:`left`,width:70},{key:`name`,label:`Name`,textAlign:`left`,width:200},{key:`action`,label:`Action`,textAlign:`left`,render:(e,t)=>{let n=t.data?.id;es(Xe(e)).render((0,G.jsx)(lm,{label:`Click ${n}`}))},width:100}]]},_data:cm,_selection:n,_on:{onSelectionChange:(e,n)=>{console.log(`Selection change via callback`,n),t(n)}},className:`block`,ref:r})})]})},dm=[{id:`U1001`,name:`Alice Johnson`,role:`Admin`,email:`alice@example.org`,active:`Yes`},{id:`U1002`,name:`Bob Smith`,role:`Editor`,email:`bob@example.org`,active:`No`},{id:`U1003`,name:`Carol Lee`,role:`Viewer`,email:`carol@example.org`,active:`Yes`},{id:`U1004`,name:`David Kim`,role:`Editor`,email:`david@example.org`,active:`Yes`}],fm=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsxs)(`p`,{children:[`This sample shows `,(0,G.jsx)(`code`,{children:`KolTableStateless`}),` with the settings menu enabled via`,(0,G.jsx)(`code`,{children:`_hasSettingsMenu`}),`. Each column demonstrates a different combination of sorting and resizing options.`]}),(0,G.jsxs)(`p`,{children:[`Every column declares an explicit `,(0,G.jsx)(`code`,{children:`width`}),`, so the width fields in the settings menu show the current pixel values instead of starting empty. This also prevents a resizable column from collapsing when its width is adjusted from the menu.`]}),(0,G.jsxs)(`ul`,{children:[(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`ID`}),` keeps a fixed width with `,(0,G.jsx)(`code`,{children:`resizable: false`}),` while still allowing sorting.`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`Name`}),` represents the default behavior with both sorting and resizing enabled.`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`Role`}),` disables sorting but keeps `,(0,G.jsx)(`code`,{children:`resizable: true`}),` so users can widen the column if necessary.`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`E-Mail`}),` allows sorting but locks its width with `,(0,G.jsx)(`code`,{children:`resizable: false`}),` to keep the layout stable.`]}),(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`strong`,{children:`Active`}),` is neither sortable nor resizable to emphasise the status indicator.`]})]})]}),(0,G.jsx)(We,{_label:`Users (stateless with settings menu)`,className:`w-full`,_hasSettingsMenu:!0,_headers:{horizontal:[[{key:`id`,label:`ID`,textAlign:`center`,sortDirection:`NOS`,sortable:!0,resizable:!1,width:120},{key:`name`,label:`Name`,textAlign:`center`,sortDirection:`NOS`,sortable:!0,resizable:!0,width:200},{key:`role`,label:`Role`,textAlign:`center`,sortDirection:`NOS`,sortable:!1,resizable:!0,width:160},{key:`email`,label:`E-Mail`,textAlign:`center`,sortDirection:`NOS`,sortable:!0,resizable:!1,width:240},{key:`active`,label:`Active`,textAlign:`center`,sortDirection:`NOS`,sortable:!1,resizable:!1,width:120}]]},_data:dm,_on:{onSort:(e,t)=>console.log(`sort`,t),onSelectionChange:(e,t)=>console.log(`selection`,t),onChangeHeaderCells:(e,t)=>console.log(`header settings changed`,t)}})]}),pm=[{id:`1001`,name:`Foo Bar`,internalIdentifier:`AAA1001`},{id:`1002`,name:`Foo Baz`,internalIdentifier:`AAA1002`},{id:`1003`,name:`Foo Disabled`,internalIdentifier:`AAA1003`}];function mm({label:e}){let{dummyClickEventHandler:t}=Fa();return(0,G.jsx)(M,{_label:e,_on:{onClick:t}})}var hm=()=>{let[e,t]=(0,E.useState)([`1002`]),n={label:e=>`Selection for ${e.name}`,multiple:!1,selectedKeys:e,disabledKeys:[`AAA1003`],keyPropertyName:`internalIdentifier`},r=(0,E.useRef)(null),i=(0,E.useCallback)(({detail:e})=>{console.log(`Selection change via event`,e)},[]),a=(0,E.useCallback)((e,n)=>{console.log(`Selection change via callback`,n),t(n)},[]);(0,E.useEffect)(()=>{let e=r.current,t=`kolSelectionChange`;return e?.addEventListener(t,i),()=>{e?.removeEventListener(t,i)}},[r,i]);let o=(0,E.useCallback)((e,t)=>{let n=t.data?.id;es(Xe(e)).render((0,G.jsx)(mm,{label:`Click ${n}`}))},[]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTableStateless with checkboxes for selection enabled.`})}),(0,G.jsx)(K,{id:`single-selection`,className:`w-full`,fitContent:!0,children:(0,G.jsx)(We,{_label:`Table with selection checkboxes`,_headers:{horizontal:[[{key:`id`,label:`#ID`,textAlign:`left`,width:100},{key:`name`,label:`Name`,textAlign:`left`,width:200},{key:`action`,label:`Action`,textAlign:`left`,render:o,width:200}]]},_data:pm,_selection:n,_on:{onSelectionChange:a},className:`block`,ref:r})})]})},gm={label:e=>`Selection for ${e.common_name}`,multiple:!1,keyPropertyName:`internalIdentifier`},_m={horizontal:[[{label:`ID`,key:`id`,textAlign:`right`,width:60},{label:`Common name`,key:`common_name`,textAlign:`left`,width:250},{label:`Scientific name`,key:`scientific_name`,textAlign:`left`,width:400},{label:`Conservation status`,key:`conservation_status`,textAlign:`left`,width:250},{label:`Habitat`,key:`habitat`,textAlign:`left`,width:400},{label:`Diet`,key:`diet`,textAlign:`left`,width:200},{label:`Geographic range`,key:`geographic_range`,textAlign:`left`,width:300}]]},vm=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTableStateful with the first three and last columns sticky. It should be focusable and scrollable with the keyboard. The table headline should be sticky at the top of the table. The data lists animal species with conservation-focused details.`})}),(0,G.jsx)(K,{id:`sticky-cols`,heading:`Sticky columns`,children:(0,G.jsx)(V,{_label:`Animal species overview`,_data:Df,_headers:_m,className:`block`,_selection:gm,_fixedCols:[2,1]})})]}),ym={label:e=>`Selection for ${e.common_name}`,multiple:!1,keyPropertyName:`internalIdentifier`},bm={horizontal:[[{label:`ID`,key:`id`,textAlign:`right`,width:60},{label:`Common name`,key:`common_name`,textAlign:`left`,width:160},{label:`Scientific name`,key:`scientific_name`,textAlign:`left`,width:160},{label:`Conservation status`,key:`conservation_status`,textAlign:`left`,width:160},{label:`Habitat`,key:`habitat`,textAlign:`left`,width:160},{label:`Diet`,key:`diet`,textAlign:`left`,width:160},{label:`Geographic range`,key:`geographic_range`,textAlign:`left`,width:160}]]},xm=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTableStateful with vertical scrollbar. It should be focusable and scrollable with the keyboard. The table headline should be sticky at the top of the table, if your chosen theme supports sticky header. The table's maximum height is set to 75vh with the CSS property --kol-table-max-height. The data lists animal species with conservation-focused details.`})}),(0,G.jsx)(K,{id:`sticky-header`,heading:`Sticky headers`,children:(0,G.jsx)(V,{_label:`Animal species overview`,_data:Df,_headers:bm,className:`block`,_selection:ym,style:{"--kol-table-max-height":`75vh`}})})]}),Sm={horizontal:[[{label:`Order`,key:`order`,width:160},{label:`Date`,key:`date`,width:160,render:(e,t,n)=>Jf.format(n.date)}]]},Cm=()=>{let[e]=$r(),t=e.get(`theme`)??co(),n=(0,E.useMemo)(()=>t?$a(t,`tableVariants`):[],[t]);return(0,G.jsxs)(`div`,{className:`w-full grid gap-14`,children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTableStateful with different variants controlled by the theme.`})}),!Array.isArray(n)||n.length===0?(0,G.jsx)(K,{id:`variant-no`,children:(0,G.jsx)(`p`,{children:`This theme has no variants for tables.`})}):n.map((e,t)=>(0,G.jsx)(K,{id:`variant-`+t,className:`w-full flex flex-col gap-14`,children:(0,G.jsx)(V,{_label:`Table with variant: `+e,_data:Yf,_headers:Sm,_pagination:{_page:1,_hasButtons:{first:!1,next:!0,last:!1,previous:!0}},_paginationPosition:`bottom`,_variant:e})}))]})},wm=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTableStateful with footer data.`})}),(0,G.jsx)(K,{id:`with-footer`,children:(0,G.jsx)(V,{className:`w-full`,_label:`Business hours`,_headers:{horizontal:[[{label:`District`,key:`asp`,width:160},{label:`Monday`,key:`monday`,width:160},{label:`Tuesday`,key:`tuesday`,width:160},{label:`Wednesday`,key:`wednesday`,width:160},{label:`Thursday`,key:`thursday`,width:160},{label:`Friday`,key:`friday`,width:160}]]},_data:[{asp:`Center`,monday:`08:00`,tuesday:`08:00`,wednesday:`10:00`,thursday:`11:00`,friday:`08:00`},{asp:`Tiergarten`,monday:`08:00`,tuesday:`08:00`,wednesday:`10:00`,thursday:`11:00`,friday:`08:00`},{asp:`Maxvorstadt`,monday:`08:00`,tuesday:`08:00`,wednesday:`10:00`,thursday:`11:00`,friday:`08:00`}],_dataFoot:[{tuesday:`Lunch break from 11 to 14 o'clock`}]})})]}),Tm={horizontal:[[{label:`Order`,key:`order`,width:160},{label:`Date`,key:`date`,width:160,render:(e,t,n)=>Jf.format(n.date)}]]},Em={_page:2},Dm=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows how KolTableStateful can be navigated using a pagination.`})}),(0,G.jsx)(K,{id:`with-pagination`,className:`w-full`,children:(0,G.jsx)(V,{_label:`Table description`,_data:Yf,_headers:Tm,_pagination:Em})})]}),Om=[{id:1001,name:`Max Mustermann`,email:`max.mustermann@example.com`},{id:1002,name:`Erika Musterfrau`,email:`erika.musterfrau@example.com`},{id:1003,name:`John Doe`,email:`john.doe@example.com`},{id:1004,name:`Jane Doe`,email:`jane.doe@example.com`},{id:1005,name:`Peter Smith`,email:`peter.smith@example.com`},{id:1006,name:`Anna Smith`,email:`anna.smith@example.com`},{id:1007,name:`Michael Schmidt`,email:`michael.schmidt@example.com`},{id:1008,name:`Sarah Schmidt`,email:`sarah.schmidt@example.com`},{id:1009,name:`Thomas Müller`,email:`thomas.mueller@example.com`},{id:1010,name:`Lisa Müller`,email:`lisa.mueller@example.com`}],km={horizontal:[[{key:`id`,label:`ID`,textAlign:`left`,width:80,compareFn:(e,t)=>e.id-t.id,sortDirection:`ASC`},{key:`name`,label:`Name`,textAlign:`left`,compareFn:(e,t)=>e.name.localeCompare(t.name,`en`)},{key:`email`,label:`Email`,textAlign:`left`,compareFn:(e,t)=>e.email.localeCompare(t.email,`en`)}]]},Am=[`Ada`,`Bruno`,`Clara`,`Finn`,`Ida`,`Jonas`,`Lena`,`Nele`,`Otto`,`Sina`],jm=[`Bauer`,`Fuchs`,`Hirsch`,`Kraft`,`Lindner`,`Moor`,`Reuter`,`Schubert`,`Wagner`,`Winter`];function Mm(e){return e[Math.floor(Math.random()*e.length)]}function Nm(e){return e.reduce((e,t)=>Math.max(e,t.id),1e3)+1}function Pm(e){let t=Mm(Am),n=Mm(jm);return{id:e,name:`${t} ${n}`,email:`${t.toLowerCase()}.${n.toLowerCase()}@example.com`}}var Fm={table:{"column-alignment":Pf,"complex-headers":Ff,empty:Vf,"horizontal-scrollbar":ep,"interactive-child-elements":rp,"multi-sort":hp,"highlight-row":qf,"non-hidable-columns":_p,"pagination-position":yp,"predefined-settings":xp,"action-columns":nf,"action-columns-performance":uf,"state-columns":Ip,"render-cell":Ep,"settings-column-options":Op,"sort-data":Np,"direction-aware-sort":zf,"stateful-async":Rp,"stateful-export":Wp,"stateful-reset-sort":qp,"stateful-settings-persistence":Zp,"stateless-with-settings-menu":fm,"stateful-with-selection":em,"stateful-with-single-selection":rm,stateless:am,"stateless-async":sm,"stateless-with-selection":um,"stateless-with-single-selection":hm,"sticky-cols":vm,"sticky-header":xm,"with-footer":wm,"with-pagination":Dm,"with-toolbar":()=>{let[e,t]=(0,E.useState)(Om),[n,r]=(0,E.useState)([]),[i,a]=(0,E.useState)(!1),[o,s]=(0,E.useState)(null),c=o!==null&&e.some(e=>e.id===o.id),l={keyPropertyName:`id`,label:e=>`Select row ${e.name}`,multiple:i,selectedKeys:n},u=(e,t)=>{r((t??[]).map(e=>e.id))},d=(e,t)=>{a(t===!0),t!==!0&&n.length>1&&r([])},f=()=>{s(Pm(Nm(e)))},p=()=>{let t=e.find(e=>e.id===n[0]);t!==void 0&&s({...t})},m=()=>{s(null)},h=()=>{o!==null&&t(e=>c?e.map(e=>e.id===o.id?o:e):[...e,o]),s(null)},g=[{type:`button`,_label:`Add`,_icons:{left:{icon:`kolicon-plus`}},_variant:`primary`,_on:{onClick:f}},{type:`button`,_label:`Edit`,_variant:`secondary`,_disabled:n.length!==1,_on:{onClick:p}},{type:`button`,_label:`Delete`,_icons:{left:{icon:`kolicon-cross`}},_variant:`danger`,_disabled:n.length===0,_on:{onClick:()=>{n.length!==0&&(t(e.filter(e=>!n.includes(e.id))),r([]))}}}];return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample combines a toolbar with a table: a switch toggles between single and multiple selection. "Add" generates a new dummy record in a form and inserts it via "Create". "Edit" opens the selected row in the same form when exactly one row is selected. "Delete" removes all selected rows and is only enabled with a selection.`})}),(0,G.jsxs)(`section`,{className:`w-full`,children:[(0,G.jsx)(Ke,{_label:`Table actions`,_items:g}),(0,G.jsx)(I,{className:`block w-fit py-2`,_label:`Multiple selection`,_variant:`switch`,_checked:i,_value:!0,_on:{onInput:d}}),(0,G.jsx)(be,{_label:c?`Edit entry`:`Add entry`,_align:`right`,_level:2,_open:o!==null,_hasCloser:!0,_on:{onClose:m},children:o!==null&&(0,G.jsxs)(`div`,{className:`flex flex-col gap-4 py-4`,children:[(0,G.jsx)(R,{_label:`Name`,_value:o.name,_on:{onInput:(e,t)=>s({...o,name:String(t)})}}),(0,G.jsx)(R,{_label:`Email`,_value:o.email,_on:{onInput:(e,t)=>s({...o,email:String(t)})}}),(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,G.jsx)(M,{_label:c?`Save`:`Create`,_variant:`primary`,_on:{onClick:h}}),(0,G.jsx)(M,{_label:`Cancel`,_variant:`secondary`,_on:{onClick:m}})]})]})}),(0,G.jsx)(V,{_label:`User management`,_headers:km,_data:e,className:`block`,_selection:l,_on:{onSelectionChange:u}})]})]})},big:jf,"action-and-render":pf,variant:Cm,"aria-labelledby":Tf}},Im=[{_icons:`kolicon-check`,_label:`First tab`,_on:{onSelect:e=>{console.log(`First tab selected`,e)}}},{_icons:`kolicon-link-external`,_label:`Second Tab`},{_disabled:!0,_icons:`kolicon-house`,_label:`Disabled Tab`},{_icons:`kolicon-eye`,_label:`Last tab`}],Lm=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample shows KolTabs with the property `,(0,G.jsx)(`code`,{children:`_align`}),` set to `,(0,G.jsx)(`code`,{children:`left`}),`, `,(0,G.jsx)(`code`,{children:`right`}),`, `,(0,G.jsx)(`code`,{children:`top`}),` and `,(0,G.jsx)(`code`,{children:`bottom`}),`.`]})}),(0,G.jsx)(`div`,{className:`grid gap-8`,children:[`left`,`right`,`top`,`bottom`].map(e=>{let t=`Tabs with ${e} align`;return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(F,{_level:2,_label:t}),(0,G.jsxs)(Ge,{_tabs:Im,_align:e,_label:t,children:[(0,G.jsx)(`div`,{slot:`tab-0`,children:`Contents of Tab 1`}),(0,G.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`}),(0,G.jsx)(`div`,{slot:`tab-2`,children:`Contents of Tab 3`}),(0,G.jsx)(`div`,{slot:`tab-3`,children:`Contents of Tab 4`})]})]},e)})})]}),Rm=[{_icons:`kolicon-check`,_label:`First tab`,_on:{onSelect:e=>{console.log(`First tab selected`,e)}}},{_icons:`kolicon-link-external`,_label:`Second Tab`},{_disabled:!0,_icons:`kolicon-house`,_label:`Disabled Tab`},{_icons:`kolicon-eye`,_label:`Last tab`}],zm=Rm.map(e=>({...e,_icons:void 0})),Bm=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolTabs renders tab captions and their associated content. This sample shows tab captions with and without icons and disabled tabs.`})}),(0,G.jsx)(K,{id:`regular`,children:(0,G.jsxs)(Ge,{_tabs:zm,_label:`Regular tabs`,children:[(0,G.jsx)(`div`,{slot:`tab-0`,children:`Contents of Tab 1`}),(0,G.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`}),(0,G.jsx)(`div`,{slot:`tab-2`,children:`Contents of Tab 3`}),(0,G.jsx)(`div`,{slot:`tab-3`,children:`Contents of Tab 4`})]})}),(0,G.jsx)(K,{id:`icons`,children:(0,G.jsxs)(Ge,{_tabs:Rm,className:`mt-4`,_label:`Tabs with icons`,children:[(0,G.jsx)(`div`,{slot:`tab-0`,children:`Contents of Tab 1`}),(0,G.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`}),(0,G.jsx)(`div`,{slot:`tab-2`,children:`Contents of Tab 3`}),(0,G.jsx)(`div`,{slot:`tab-3`,children:`Contents of Tab 4`})]})})]}),Vm=[{_icons:`kolicon-check`,_label:`First tab`,_on:{onSelect:e=>{console.log(`First tab selected`,e)}}},{_icons:`kolicon-link-external`,_label:`Second Tab`},{_disabled:!0,_icons:`kolicon-house`,_label:`Disabled Tab`},{_icons:`kolicon-eye`,_label:`Last tab`}],Hm=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsxs)(`p`,{children:[`This sample shows KolTabs with the property `,(0,G.jsx)(`code`,{children:`_behavior`}),` set to `,(0,G.jsx)(`code`,{children:`select-manual`}),` and `,(0,G.jsx)(`code`,{children:`select-automatic`}),`.`]}),(0,G.jsx)(`p`,{children:`This property allows controlling when an arrow key is pressed whether the tab change takes place right away or only focuses the tab caption.`})]}),(0,G.jsxs)(`div`,{className:`grid gap-8`,children:[(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(F,{_level:2,_label:`Tabs with "select manual" behavior`}),(0,G.jsxs)(Ge,{_tabs:Vm,_behavior:`select-manual`,_label:`Tabs with select manual behavior`,children:[(0,G.jsx)(`div`,{slot:`tab-0`,children:`Contents of Tab 1`}),(0,G.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`}),(0,G.jsx)(`div`,{slot:`tab-2`,children:`Contents of Tab 3`}),(0,G.jsx)(`div`,{slot:`tab-3`,children:`Contents of Tab 4`})]})]}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(F,{_level:2,_label:`Tabs with "select automatic" behavior`}),(0,G.jsxs)(Ge,{_tabs:Vm,className:`mt-4`,_behavior:`select-automatic`,_label:`Tabs with select automatic behavior`,children:[(0,G.jsx)(`div`,{slot:`tab-0`,children:`Contents of Tab 1`}),(0,G.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`}),(0,G.jsx)(`div`,{slot:`tab-2`,children:`Contents of Tab 3`}),(0,G.jsx)(`div`,{slot:`tab-3`,children:`Contents of Tab 4`})]})]})]})]}),Um=()=>{let[e,t]=(0,E.useState)([{_label:`First tab`},{_label:`Second Tab`}]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTabs with a "create tab" button.`})}),(0,G.jsx)(K,{id:`create-button`,children:(0,G.jsxs)(Ge,{_tabs:e,className:`mt-4`,_label:`Tabs with create button`,_hasCreateButton:!0,_on:{onCreate:()=>{t([...e,{_label:`Tab #${e.length+1}`}])}},children:[e.map((e,t)=>(0,G.jsxs)(`div`,{slot:`tab-${t}`,children:[`Contents of `,e._label]},`tab-${t}`)),(0,G.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`})]})})]})},Wm=[{_hideLabel:!0,_icons:`kolicon-check`,_label:`First tab`,_on:{onSelect:e=>{console.log(`First tab selected`,e)}}},{_hideLabel:!0,_icons:`kolicon-link-external`,_label:`Second Tab`},{_disabled:!0,_hideLabel:!0,_icons:`kolicon-house`,_label:`Disabled Tab`},{_hideLabel:!0,_icons:`kolicon-eye`,_label:`Last tab`}],Gm={tabs:{basic:Bm,"create-button":Um,"icons-only":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolTabs with hidden labels.`})}),(0,G.jsx)(K,{id:`icons-only`,children:(0,G.jsxs)(Ge,{_label:`Tabs with icons`,_tabs:Wm,children:[(0,G.jsx)(`div`,{slot:`tab-0`,children:`Contents of Tab 1`}),(0,G.jsx)(`div`,{slot:`tab-1`,children:`Contents of Tab 2`}),(0,G.jsx)(`div`,{slot:`tab-2`,children:`Contents of Tab 3`}),(0,G.jsx)(`div`,{slot:`tab-3`,children:`Contents of Tab 4`})]})})]}),behavior:Hm,align:Lm}},Km=`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
83
- magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
84
- gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing
85
- elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos
86
- et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
87
- sit amet.`,qm=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample demonstrates the `,(0,G.jsx)(`code`,{children:`_adjustHeight`}),`-property of KolTextarea. The textarea automatically grows with its content.`]})}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{id:`adjust-height`,children:(0,G.jsx)(H,{_adjustHeight:!0,_value:Km,_label:`Text input (auto grow with value)`})}),(0,G.jsx)(H,{_adjustHeight:!0,_label:`Text input (auto grow with initial 3 rows)`,_rows:3})]})]}),Jm=(0,E.forwardRef)(function({blockIdPrefix:e,snapshotOnly:t,...n},r){let i=n=>({id:`${e}-${n}`,skipSnapshot:t!==void 0&&n!==t});return(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{...i(`black-bg`),className:`black-background`,children:(0,G.jsx)(H,{...n,ref:r,_placeholder:`Placeholder`,_label:`Text`})}),(0,G.jsx)(K,{...i(`error`),children:(0,G.jsx)(H,{...n,_placeholder:`Placeholder`,_required:!0,_msg:{_type:`error`,_description:q},_label:`Text`,_touched:!0,_hint:Ca,_infoPopover:{_label:`hint`,_content:`Ich bin ein Hinweis.`,_icons:`kolicon-alert-info`}})}),(0,G.jsx)(K,{...i(`msg-info`),children:(0,G.jsx)(H,{...n,_placeholder:`Placeholder`,_label:`Text`,_msg:{_type:`info`,_description:`Just a hint`},_touched:!0})}),(0,G.jsx)(K,{...i(`msg-warning`),children:(0,G.jsx)(H,{...n,_placeholder:`Placeholder`,_label:`Text`,_msg:{_type:`warning`,_description:`Small warning`},_touched:!0})}),(0,G.jsx)(K,{...i(`msg-success`),children:(0,G.jsx)(H,{...n,_placeholder:`Placeholder`,_label:`Text`,_msg:{_type:`success`,_description:`Success message`},_touched:!0})}),(0,G.jsx)(K,{...i(`msg-default`),children:(0,G.jsx)(H,{...n,_placeholder:`Placeholder`,_label:`Text`,_msg:{_type:`default`,_description:`Default message`},_touched:!0})}),(0,G.jsx)(K,{...i(`rows`),children:(0,G.jsx)(H,{...n,ref:r,_accessKey:`T`,_label:`Text (3 rows)`,_rows:3})}),(0,G.jsx)(K,{...i(`placeholder`),children:(0,G.jsx)(H,{...n,ref:r,_label:`Text (placeholder)`,_rows:3,_placeholder:`Placeholder`})}),(0,G.jsx)(K,{...i(`disabled-empty`),children:(0,G.jsx)(H,{...n,ref:r,_label:`Text (disabled & placeholder)`,_rows:3,_placeholder:`Placeholder`,_disabled:!0})}),(0,G.jsx)(K,{...i(`readonly`),children:(0,G.jsx)(H,{...n,ref:r,_label:`Text (readonly)`,_rows:3,_placeholder:`Placeholder`,_readOnly:!0})}),(0,G.jsx)(K,{...i(`disabled-value`),children:(0,G.jsx)(H,{...n,ref:r,_label:`Text (disabled & value)`,_rows:3,_placeholder:`Placeholder`,_value:`Lorem ipsum`,_disabled:!0})}),(0,G.jsx)(K,{...i(`access-key`),children:(0,G.jsx)(H,{...n,ref:r,_label:`With access key`,_rows:3,_placeholder:`Placeholder`,_value:`Lorem ipsum`,_accessKey:`c`})}),(0,G.jsx)(K,{...i(`short-key`),children:(0,G.jsx)(H,{...n,ref:r,_label:`With short key`,_rows:3,_placeholder:`Placeholder`,_value:`Lorem ipsum`,_shortKey:`s`})})]})}),Ym=(0,E.forwardRef)(function(e,t){return(0,G.jsxs)(No,{children:[(0,G.jsx)(Po,{heading:`Text`,children:(0,G.jsx)(Jm,{blockIdPrefix:`label`,...e})}),(0,G.jsx)(Po,{heading:`Text (hideLabel)`,children:(0,G.jsx)(Jm,{blockIdPrefix:`hide-label`,snapshotOnly:`error`,ref:t,...e,_hideLabel:!0})})]})}),Xm={textarea:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolTextarea renders a text field. The sample shows KolTextarea in a form context with different variations and states.`})}),(0,G.jsx)(Mo,{RefComponent:Ym,showButtons:!1})]}),"get-value":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`Shows the callback value from `,(0,G.jsx)(`code`,{children:`onInput`}),` while typing and from `,(0,G.jsx)(`code`,{children:`onChange`}),` after leaving the field.`]})}),(0,G.jsx)(ms,{label:`KolTextarea`,renderInput:e=>(0,G.jsx)(H,{_label:`Message`,_on:e})})]}),"adjust-height":qm,resize:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample demonstrates the `,(0,G.jsx)(`code`,{children:`_resize`}),`-property of KolTextarea. The sample textarea can (only) be resized in the given direction.`]})}),(0,G.jsx)(xe,{className:`w-full`,children:(0,G.jsxs)(K,{id:`resize`,className:`flex flex-col gap-4`,children:[(0,G.jsx)(H,{_label:`Text input (unset)`}),(0,G.jsx)(H,{_resize:`vertical`,_label:`Text input (vertical)`}),(0,G.jsx)(H,{_resize:`none`,_label:`Text input (none)`})]})})]}),rows:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample demonstrates the `,(0,G.jsx)(`code`,{children:`_rows`}),`-property of KolTextarea. The sample textarea has a fixed row number of 10.`]})}),(0,G.jsx)(K,{id:`rows`,children:(0,G.jsx)(xe,{className:`w-full`,children:(0,G.jsx)(H,{_rows:10,_label:`Texteingabe`})})})]}),"with-counter":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`The sample demonstrates various `,(0,G.jsx)(`code`,{children:`KolTextarea`}),` configurations — contrasting soft vs. hard `,(0,G.jsx)(`code`,{children:`_maxLength`}),` settings and the optional`,(0,G.jsx)(`code`,{children:`_hasCounter`}),` — including one instance without length limits.`]})}),(0,G.jsxs)(K,{id:`with-counter`,className:`w-full flex flex-col gap-4`,children:[(0,G.jsx)(H,{_label:`Textarea with soft max length`,_value:`Lorem Ipsum`,className:`mt-2`,_maxLength:20,_hasCounter:!0,_maxLengthBehavior:`soft`}),(0,G.jsx)(H,{_label:`Textarea with max length`,_value:`Lorem Ipsum`,className:`mt-2`,_maxLength:20}),(0,G.jsx)(H,{_label:`Textarea with max length and counter`,_value:`Lorem Ipsum`,className:`mt-2`,_maxLength:20,_hasCounter:!0}),(0,G.jsx)(H,{_label:`Textarea with counter`,_value:`Lorem Ipsum`,className:`mt-2`,_hasCounter:!0})]})]})}},Zm=()=>{let[e]=$r(),t=e.get(`type`),n=Di.getInstance(document),r=()=>{n.enqueue({description:`Toasty`,label:`Initial Toast`,type:`warning`,onClose:()=>{console.log(`Simple toast has been closed.`)}})};(0,E.useEffect)(()=>{t&&n.enqueue({description:`Toasty`,label:`Toast with type '${t}'`,type:t})},[t,n]);let i=()=>{n.enqueue({render:(e,{close:t})=>{es(e).render((0,G.jsx)(G.Fragment,{children:(0,G.jsx)(M,{_label:`Hello World from Toast!`,_on:{onClick:()=>{console.log(`Toast Button clicked!`),t()}}})}))},label:`Initial Toast`,type:`warning`})},a=async()=>{let e=await n.enqueue({description:`I will disappear in two seconds...`,label:`Good Bye`,type:`warning`});e&&setTimeout(e,2e3)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(pe,{_label:`Component is DEPRECATED`,_type:`error`,_variant:`card`,className:`header-alert`,children:[`For more information, please refer\xA0`,(0,G.jsx)(z,{_href:`https://public-ui.github.io/en/docs/components/toaster`,_target:`_blank`,_label:`to the documentation`}),`.`]}),(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample demonstrates the toast service with all its options.`})}),(0,G.jsx)(`section`,{className:`grid gap-4`,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,G.jsx)(M,{_label:`Show simple toast`,_on:{onClick:r}}),(0,G.jsx)(M,{_label:`Show complex toast`,_on:{onClick:i}}),(0,G.jsx)(M,{_label:`Show toast and close after 2 seconds`,_on:{onClick:()=>void a()}}),(0,G.jsx)(M,{_label:`Close all toasts`,_on:{onClick:()=>{n.closeAll()}}})]})})]})},Qm=[`default`,`info`,`success`,`warning`,`error`],$m=Qm.map(e=>({label:e,value:e})),eh=e=>typeof e==`string`&&Qm.includes(e),th={toast:{basic:Zm,configurator:()=>{let[e]=$r(),t=e.get(`type`),n=eh(t)?t:void 0,[r,i]=(0,E.useState)(()=>n??`default`),a=(0,E.useMemo)(()=>Di.getInstance(document),[]);return(0,E.useEffect)(()=>(Qm.forEach(e=>{a.enqueue({description:`Toasty`,label:`Toast with type '${e}'`,type:e})}),()=>{a.closeAll()}),[a]),(0,E.useEffect)(()=>{n&&i(n)},[n]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(pe,{_label:`Component is DEPRECATED`,_type:`error`,_variant:`card`,className:`header-alert`,children:[`For more information, please refer\xA0`,(0,G.jsx)(z,{_href:`https://public-ui.github.io/en/docs/components/toaster`,_target:`_blank`,_label:`to the documentation`}),`.`]}),(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample demonstrates the toast service with all its options. Use the configuration below to choose a toast type and open a toast with the card variant.`})}),(0,G.jsxs)(`section`,{className:`grid gap-4`,children:[(0,G.jsx)(ke,{_orientation:`horizontal`,_label:`Toast type`,_value:r,_options:$m,_on:{onChange:(e,t)=>{eh(t)&&i(t)}}}),(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,G.jsx)(M,{_label:`Open ${r} toast`,_on:{onClick:()=>{a.enqueue({description:`Toasty`,label:`Toast with type '${r}'`,type:r})}}}),(0,G.jsx)(M,{_label:`Close all toasts`,_on:{onClick:()=>{a.closeAll()}}})]})]})]})}}},nh={toolbar:{basic:()=>{let e=[{type:`button`,_label:`Back`,_hideLabel:!0,_icons:{left:{icon:`kolicon-chevron-left`}}},{type:`button`,_label:`Next`,_hideLabel:!0,_icons:{right:{icon:`kolicon-chevron-right`}}},{type:`hr`},{type:`link`,_href:`#/back-page`,_label:`Simple Link 1`},{type:`link`,_href:`#/back-page`,_label:`Simple Link 3`},{type:`hr`},{type:`button`,_label:`Bold`,_variant:`secondary`},{type:`button`,_label:`Delete`,_icons:{right:{icon:`kolicon-cross`}},_variant:`danger`}];return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolToolbars renders a set of given control elements grouped into one toolbar where focus can be moved using the keyboard arrow keys. The sample features button and link elements.`})}),(0,G.jsx)(K,{id:`horizontal`,heading:`Orientation horizontal`,fitContent:!0,narrow:!0,children:(0,G.jsx)(Ke,{class:`block w-fit`,_label:`Toolbar`,_items:e})}),(0,G.jsx)(K,{id:`vertical`,heading:`Orientation vertical`,fitContent:!0,children:(0,G.jsx)(Ke,{class:`block w-fit`,_label:`Toolbar`,_items:e,_orientation:`vertical`})})]})},disabled:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolToolbars with some of the elements disabled.`})}),(0,G.jsx)(K,{id:`disabled`,fitContent:!0,children:(0,G.jsx)(Ke,{_label:`Toolbar`,class:`block w-fit`,_items:[{type:`button`,_label:`Back`,_disabled:!0,_hideLabel:!0,_icons:{left:{icon:`kolicon-chevron-left`}}},{type:`button`,_label:`Next`,_hideLabel:!0,_icons:{right:{icon:`kolicon-chevron-right`}}},{type:`link`,_href:`#/back-page`,_label:`Simple Link 1`},{type:`link`,_href:`#/back-page`,_disabled:!0,_label:`Simple Link 3`},{type:`button`,_label:`Bold`}]})})]})}},rh=()=>{let e=[`🐶`,`🐱`,`🐭`,`🐹`,`🐰`,`🦊`,`🐻`,`🐼`,`🐨`,`🐯`,`🦁`,`🐮`,`🐷`,`🐽`,`🐸`,`🐵`];return e[Math.floor(Math.random()*e.length)]},ih={tree:{"basic/:subPage":()=>{let e=(0,E.useContext)(va),{subPage:t}=Vn(),[n,r]=(0,E.useState)(`1 Home`),[i,a]=(0,E.useState)(!1),[o,s]=(0,E.useState)(!1),[c,l]=(0,E.useState)(!0),u=()=>{r(`1 Home ${rh()}`)},d=n=>({_href:`#/tree/basic/${n}${e?`?hideMenus`:``}`,_active:n===t});return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolTree renders a keyboard accessible nested navigation. Branches of the tree can be collapsed or expanded.`})}),(0,G.jsx)(K,{id:`tree`,fitContent:!0,children:(0,G.jsxs)(qe,{_label:`Sitemap`,class:`block w-fit`,children:[(0,G.jsx)(Je,{_label:n,...d(`home`)}),(0,G.jsxs)(Je,{_label:`2 About (open initially)`,...d(`about`),_open:!0,children:[(0,G.jsx)(Je,{_label:`2.0 Legal`,...d(`legal`)}),(0,G.jsxs)(Je,{_label:`2.1 Team`,...d(`team`),children:[(0,G.jsx)(Je,{_label:`2.1.1. Values`,...d(`values`)}),(0,G.jsxs)(Je,{_label:`2.1.2. Members`,...d(`members`),children:[(0,G.jsx)(Je,{_label:`2.1.2.1 Humans`,...d(`humans`)}),i&&(0,G.jsx)(Je,{_label:`2.1.2.2 Pets`,...d(`pets`)})]}),(0,G.jsx)(Je,{_label:`2.1.3 Locations`,...d(`locations`),children:o&&(0,G.jsxs)(Je,{_label:`2.1.3.1 Europe`,...d(`europe`),children:[(0,G.jsx)(Je,{_label:`2.1.3.1.1 Denmark`,...d(`denmark`)}),(0,G.jsx)(Je,{_label:`2.1.3.1.2 Netherlands`,...d(`netherlands`)})]})})]})]}),c&&(0,G.jsxs)(Je,{_label:`3. Products`,...d(`products`),children:[(0,G.jsxs)(Je,{_label:`3.1 Home`,...d(`home-products`),children:[(0,G.jsx)(Je,{_label:`3.1.1 Refrigerators`,...d(`fridges`)}),(0,G.jsx)(Je,{_label:`3.1.2 Coffee makers`,...d(`coffee-makers`)})]}),(0,G.jsx)(Je,{_label:`3.1 Office`,...d(`office-products`),children:(0,G.jsx)(Je,{_label:`3.2.1 Printers`,...d(`printers`)})})]})]})}),(0,G.jsxs)(`p`,{children:[`Current tree item: `,t??`none`]}),(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,G.jsx)(M,{_label:`Change label for '1 Home'`,_on:{onClick:u}}),(0,G.jsx)(M,{_label:`Toggle '2.1.2.2 Pets'`,_on:{onClick:()=>a(!i)}}),(0,G.jsx)(M,{_label:`Toggle '2.2.1 Europe' (two levels at once)`,_on:{onClick:()=>s(!o)}}),(0,G.jsx)(M,{_label:`Toggle '3. Products'`,_on:{onClick:()=>l(!c)}})]})]})}}},ah={version:{basic:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolVersion renders a label showing the given version number.`})}),(0,G.jsx)(K,{id:`basic`,fitContent:!0,children:(0,G.jsx)(Ye,{_label:`1.1.1`})})]}),context:()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows KolVersion inline with text paragraph content.`})}),(0,G.jsx)(K,{id:`context`,children:(0,G.jsxs)(`p`,{children:[(0,G.jsx)(Ye,{_label:`1.0.0`}),` Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor.`]})})]})}},oh=[{left:`Left Example`,center:`Center Example`,right:`Right Example`}],sh=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolAccordion can have other KoliBri components as content. Some are shown here.`})}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(j,{_label:`With Combobox`,_open:!0,children:(0,G.jsx)(_e,{_label:`Combobox in Accordion`,_suggestions:`['Herr','Frau','Firma']`})}),(0,G.jsx)(j,{_label:`With Table`,_open:!0,children:(0,G.jsx)(V,{_label:`Table for demonstration purposes with different text align properties`,_headers:{horizontal:[[{label:`left`,key:`left`,textAlign:`left`,width:300},{label:`center`,key:`center`,textAlign:`center`,width:300},{label:`right`,key:`right`,textAlign:`right`,width:300}]]},_data:oh})})]})]}),ch=({label:e})=>{let t=Di.getInstance(document),n=(0,E.useRef)(null),r=(0,E.useRef)(null),i=()=>{t.enqueue({label:`Edit clicked`,description:`The button "edit" has been clicked for ${e}`,type:`info`})},a=()=>{t.enqueue({label:`Delete clicked`,description:`The button "delete" has been clicked for ${e}`,type:`warning`})};return(0,G.jsxs)(`div`,{style:{display:`flex`,gap:`calc(10rem / var(--kolibri-root-font-size, 16))`},onKeyUp:e=>{switch(e.code){case`KeyE`:n.current?.focus(),i();return;case`KeyD`:r.current?.focus(),a();return}},children:[(0,G.jsx)(M,{ref:n,_label:`Edit`,_shortKey:`e`,_on:{onClick:i}}),(0,G.jsx)(M,{ref:r,_label:`Delete`,_shortKey:`d`,_variant:`danger`,_on:{onClick:a}})]})},lh=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsx)(`p`,{children:`This scenario demonstrates an interactive table where each row contains buttons with shortcut keys. The shortcut keys provide visual keyboard indicators and are also functionally implemented.`}),(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`strong`,{children:`How to use:`}),` Move focus within one of the "Actions" cells and press "e" to edit or "d" to delete the corresponding row.`]})]}),(0,G.jsx)(`div`,{className:`grid gap-8`,children:(0,G.jsx)(K,{id:`interactive-table-button`,heading:`Interactive Table with Button Shortkeys`,children:(0,G.jsx)(V,{_label:`Interactive table with shortkey buttons in each row`,_data:[{label:`Row 1`},{label:`Row 2`},{label:`Row 3`},{label:`Row 4`}],_headers:{horizontal:[[{label:`Label`,key:`label`,textAlign:`left`,width:200},{label:`Actions`,key:`actions`,textAlign:`left`,width:150,render:(e,t)=>{let n=t.data;n?.label&&es(Xe(e)).render((0,G.jsx)(ch,{label:n.label}))}}]]},_pagination:{_page:1}})})})]}),uh=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This example show how different components works with tabIndex.`})}),(0,G.jsxs)(`div`,{className:`w-full grid gap-4`,children:[(0,G.jsx)(P,{_label:`Button`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(M,{_label:`Button 1, Tabindex 4`,_variant:`primary`,tabIndex:4}),(0,G.jsx)(M,{_disabled:!0,_label:`Button 2, Tabindex 3`,_variant:`primary`,tabIndex:3}),(0,G.jsx)(M,{_label:`Button 3, Tabindex 2`,_variant:`primary`,tabIndex:2}),(0,G.jsx)(M,{_label:`Button 4, Tabindex 1`,_variant:`primary`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`ButtonLink`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(N,{_label:`ButtonLink 1, Tabindex 4`,tabIndex:4}),(0,G.jsx)(N,{_disabled:!0,_label:`ButtonLink 2, Tabindex 3`,tabIndex:3}),(0,G.jsx)(N,{_label:`ButtonLink 3, Tabindex 2`,tabIndex:2}),(0,G.jsx)(N,{_label:`ButtonLink 4, Tabindex 1`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`Combobox`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(_e,{_hint:Ca,_label:`Combobox 1, Tabindex 4`,_suggestions:Lo,_value:`Deutschland`,tabIndex:4}),(0,G.jsx)(_e,{_disabled:!0,_hint:Ca,_label:`Combobox 2, Tabindex 3`,_suggestions:Lo,_value:`Deutschland`,tabIndex:3}),(0,G.jsx)(_e,{_touched:!0,_hint:Ca,_msg:{_type:`error`,_description:q},_label:`Combobox 3, Tabindex 2`,_suggestions:Lo,_value:`Deutschland`,tabIndex:2}),(0,G.jsx)(_e,{_hint:Ca,_label:`Combobox 4, Tabindex 1`,_suggestions:Lo,_value:`Deutschland`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`InputCheckbox`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(I,{_label:`InputCheckbox 4, Tabindex 1`,_value:!1,tabIndex:4}),(0,G.jsx)(I,{_disabled:!0,_label:`InputCheckbox 3, Tabindex 2`,_value:!1,tabIndex:3}),(0,G.jsx)(I,{_touched:!0,_label:`InputCheckbox 2, Tabindex 3`,_msg:{_type:`error`,_description:q},_value:!1,tabIndex:2}),(0,G.jsx)(I,{_label:`InputCheckbox 1, Tabindex 4`,_value:!1,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`InputColor`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(we,{_value:`#f08080`,_label:`InputCheckbox 1, Tabindex 4`,tabIndex:4}),(0,G.jsx)(we,{_disabled:!0,_value:`#f08080`,_label:`InputCheckbox 2, Tabindex 3`,tabIndex:3}),(0,G.jsx)(we,{_touched:!0,_value:`#f08080`,_label:`InputCheckbox 3, Tabindex 2`,_msg:{_type:`error`,_description:q},tabIndex:2}),(0,G.jsx)(we,{_value:`#f08080`,_label:`InputCheckbox 4, Tabindex 1`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`InputDate`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(L,{_type:`datetime-local`,_label:`InputCheckbox 1, Tabindex 4`,tabIndex:4}),(0,G.jsx)(L,{_disabled:!0,_type:`datetime-local`,_label:`InputCheckbox 2, Tabindex 3`,tabIndex:3}),(0,G.jsx)(L,{_touched:!0,_type:`datetime-local`,_label:`InputCheckbox 3, Tabindex 2`,_msg:{_type:`error`,_description:q},tabIndex:2}),(0,G.jsx)(L,{_type:`datetime-local`,_label:`InputCheckbox 4, Tabindex 1`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`InputEmail`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(Te,{_label:`InputEmail 1, Tabindex 4`,tabIndex:4}),(0,G.jsx)(Te,{_disabled:!0,_label:`InputEmail 2, Tabindex 3`,tabIndex:3}),(0,G.jsx)(Te,{_touched:!0,_label:`InputEmail 3, Tabindex 2`,_msg:{_type:`error`,_description:q},tabIndex:2}),(0,G.jsx)(Te,{_label:`InputEmail 4, Tabindex 1`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`InputFile`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(Ee,{_label:`InputFile 1, Tabindex 4`,tabIndex:4}),(0,G.jsx)(Ee,{_disabled:!0,_label:`InputFile 2, Tabindex 3`,tabIndex:3}),(0,G.jsx)(Ee,{_touched:!0,_label:`InputFile 3, Tabindex 2`,_msg:{_type:`error`,_description:q},tabIndex:2}),(0,G.jsx)(Ee,{_label:`InputFile 4, Tabindex 1`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`InputNumber`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(De,{_label:`InputNumber 1, Tabindex 4`,tabIndex:4}),(0,G.jsx)(De,{_disabled:!0,_label:`InputNumber 2, Tabindex 3`,tabIndex:3}),(0,G.jsx)(De,{_touched:!0,_label:`InputNumber 3, Tabindex 2`,_msg:{_type:`error`,_description:q},tabIndex:2}),(0,G.jsx)(De,{_label:`InputNumber 4, Tabindex 1`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`InputPassword`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(Oe,{_label:`InputPassword 1, Tabindex 4`,tabIndex:4}),(0,G.jsx)(Oe,{_disabled:!0,_label:`InputPassword 2, Tabindex 3`,tabIndex:3}),(0,G.jsx)(Oe,{_touched:!0,_label:`InputPassword 3, Tabindex 2`,_msg:{_type:`error`,_description:q},tabIndex:2}),(0,G.jsx)(Oe,{_label:`InputPassword 4, Tabindex 1`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`InputRadio`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(ke,{_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]`,_label:`InputRadio 1, Tabindex 4`,tabIndex:4}),(0,G.jsx)(ke,{_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]`,_label:`InputRadio 2, Tabindex 3`,_disabled:!0,tabIndex:3}),(0,G.jsx)(ke,{_touched:!0,_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]`,_label:`InputRadio 3, Tabindex 2`,_msg:{_type:`error`,_description:q},tabIndex:2}),(0,G.jsx)(ke,{_options:`[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]`,_label:`InputRadio 4, Tabindex 1`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`InputRange`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(Ae,{_label:`InputRange 1, Tabindex 4`,_min:0,_max:50,tabIndex:4}),(0,G.jsx)(Ae,{_disabled:!0,_label:`InputRange 2, Tabindex 3`,_min:0,_max:50,tabIndex:3}),(0,G.jsx)(Ae,{_touched:!0,_label:`InputRange 3, Tabindex 2`,_min:0,_max:50,_msg:{_type:`error`,_description:q},tabIndex:2}),(0,G.jsx)(Ae,{_label:`InputRange 4, Tabindex 1`,_min:0,_max:50,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`InputText`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(R,{_label:`InputText 1, Tabindex 4`,tabIndex:4}),(0,G.jsx)(R,{_disabled:!0,_label:`InputText 2, Tabindex 3`,tabIndex:3}),(0,G.jsx)(R,{_touched:!0,_label:`InputText 3, Tabindex 2`,_msg:{_type:`error`,_description:q},tabIndex:2}),(0,G.jsx)(R,{_label:`InputText 4, Tabindex 1`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`LinkButton`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(B,{_href:`#/back-page`,_label:`InputText 1, Tabindex 4`,_variant:`primary`,tabIndex:4}),(0,G.jsx)(B,{_disabled:!0,_href:`#/back-page`,_label:`InputText 2, Tabindex 3`,_variant:`primary`,tabIndex:3}),(0,G.jsx)(B,{_href:`#/back-page`,_label:`InputText 3, Tabindex 2`,_variant:`primary`,tabIndex:2}),(0,G.jsx)(B,{_href:`#/back-page`,_label:`InputText 4, Tabindex 1`,_variant:`primary`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`Link`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(z,{_href:`#/back-page`,_label:`InputText 1, Tabindex 4`,tabIndex:4}),(0,G.jsx)(z,{_disabled:!0,_href:`#/back-page`,_label:`InputText 2, Tabindex 3`,tabIndex:3}),(0,G.jsx)(z,{_href:`#/back-page`,_label:`InputText 3, Tabindex 2`,tabIndex:2}),(0,G.jsx)(z,{_href:`#/back-page`,_label:`InputText 4, Tabindex 1`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`SingleSelect`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(ze,{_label:`InputText 1, Tabindex 4`,_options:Io,_value:`de`,tabIndex:4}),(0,G.jsx)(ze,{_disabled:!0,_label:`InputText 2, Tabindex 3`,_options:Io,_value:`de`,tabIndex:3}),(0,G.jsx)(ze,{_touched:!0,_label:`InputText 3, Tabindex 2`,_options:Io,_msg:{_type:`error`,_description:q},_value:`de`,tabIndex:2}),(0,G.jsx)(ze,{_label:`InputText 4, Tabindex 1`,_options:Io,_value:`de`,tabIndex:1})]})}),(0,G.jsx)(P,{_label:`SplitButton`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(Ue,{_label:`InputText 1, Tabindex 4`,tabIndex:4,children:`Dropdown-Inhalt`}),(0,G.jsx)(Ue,{_label:`InputText 2, Tabindex 3`,tabIndex:3,_disabled:!0,children:`Dropdown-Inhalt`}),(0,G.jsx)(Ue,{_label:`InputText 3, Tabindex 2`,tabIndex:2,children:`Dropdown-Inhalt`}),(0,G.jsx)(Ue,{_label:`InputText 4, Tabindex 1`,tabIndex:1,children:`Dropdown-Inhalt`})]})}),(0,G.jsx)(P,{_label:`Textarea`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid sm:flex flex-wrap gap-4 items-end`,children:[(0,G.jsx)(H,{_label:`Textarea 1, Tabindex 4`,_rows:3,_placeholder:`Placeholder`,tabIndex:4}),(0,G.jsx)(H,{_disabled:!0,_label:`Textarea 2, Tabindex 3`,_rows:3,_placeholder:`Placeholder`,tabIndex:3}),(0,G.jsx)(H,{_touched:!0,_label:`Textarea 3, Tabindex 2`,_rows:3,_placeholder:`Placeholder`,_msg:{_type:`error`,_description:q},tabIndex:2}),(0,G.jsx)(H,{_label:`Textarea 4, Tabindex 1`,_rows:3,_placeholder:`Placeholder`,tabIndex:1})]})})]})]}),dh=()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample demonstrates how tooltip animation duration and width can be customized via`,(0,G.jsx)(`code`,{children:`--kolibri-tooltip-animation-duration`}),` and `,(0,G.jsx)(`code`,{children:`--kol-tooltip-width`}),`.`]})}),(0,G.jsxs)(`div`,{className:`flex justify-center items-center gap-4`,children:[(0,G.jsx)(M,{_label:`Custom duration`,_hideLabel:!0,style:{"--kolibri-tooltip-animation-duration":`2500ms`},_icons:`fa-solid fa-clock`,_on:t}),(0,G.jsx)(M,{_label:`Custom width`,_hideLabel:!0,style:{"--kol-tooltip-width":`400px`},_icons:`kolicon-chevron-up`,_on:t})]})]})},fh=()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolForm with KolInputDate inside to make sure enter on the date icon does not submit the form.`})}),(0,G.jsxs)(xe,{_on:{onSubmit:()=>{console.error(`submitted`),alert(`submitted`)}},children:[(0,G.jsx)(L,{_label:`date`,_name:`datum`}),(0,G.jsx)(M,{_label:`Submit`,_type:`submit`})]})]}),ph=[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}],mh=()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsx)(`p`,{children:`This example shows how deactivated interactive elements are displayed.`}),(0,G.jsxs)(`ul`,{children:[(0,G.jsx)(`li`,{children:`Deactivated interactive elements pose a particular challenge for accessibility.`}),(0,G.jsx)(`li`,{children:`It must not be possible to focus on deactivated interactive elements, otherwise the tab paths will be unnecessarily extended.`}),(0,G.jsx)(`li`,{children:`Deactivated interactive elements should be labelled clearly and legibly.`}),(0,G.jsx)(`li`,{children:`Deactivated interactive elements have a tooltip for sighted people and aria labelling for the screen readers reading mode if they are represented by an interpretable graphic.`})]}),(0,G.jsx)(`p`,{children:`This implementation ensures standardized use for all users.`})]}),(0,G.jsxs)(`div`,{className:`w-full grid gap-4`,children:[(0,G.jsx)(P,{_label:`Button`,_level:0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_label:`Label`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_label:`Label`,_on:t}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`fa-solid fa-house`,_label:`Label`,_on:t}),(0,G.jsx)(M,{_disabled:!0,_hideLabel:!0,_icons:`fa-solid fa-house`,_label:`Label`,_on:t})]})}),(0,G.jsx)(P,{_label:`ButtonLink`,_level:0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(N,{_label:`Label`}),(0,G.jsx)(N,{_disabled:!0,_label:`Label`}),(0,G.jsx)(N,{_hideLabel:!0,_icons:`fa-solid fa-house`,_label:`Label`}),(0,G.jsx)(N,{_hideLabel:!0,_icons:`fa-solid fa-house`,_disabled:!0,_label:`Label`})]})}),(0,G.jsx)(P,{_label:`Link`,_level:0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(z,{_href:`#`,_label:`Label`}),(0,G.jsx)(z,{_disabled:!0,_href:`#`,_label:`Label`}),(0,G.jsx)(z,{_hideLabel:!0,_href:`#`,_icons:`fa-solid fa-house`,_label:`Label`}),(0,G.jsx)(z,{_disabled:!0,_hideLabel:!0,_href:`#`,_icons:`fa-solid fa-house`,_label:`Label`})]})}),(0,G.jsx)(P,{_label:`LinkButton`,_level:0,children:(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(B,{_href:`#`,_label:`Label`}),(0,G.jsx)(B,{_disabled:!0,_href:`#`,_label:`Label`}),(0,G.jsx)(B,{_hideLabel:!0,_href:`#`,_icons:`fa-solid fa-house`,_label:`Label`}),(0,G.jsx)(B,{_disabled:!0,_hideLabel:!0,_href:`#`,_icons:`fa-solid fa-house`,_label:`Label`})]})}),(0,G.jsx)(P,{_label:`Accordion`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(j,{_label:`Label`,children:`Content`}),(0,G.jsx)(j,{_disabled:!0,_label:`Label`,children:`Content`}),(0,G.jsx)(j,{_label:`Label (open)`,_open:!0,children:`Content`}),(0,G.jsx)(j,{_disabled:!0,_label:`Label (open)`,_open:!0,children:`Content`})]})}),(0,G.jsx)(P,{_label:`Details`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(ve,{_label:`Label`,children:`Content`}),(0,G.jsx)(ve,{_disabled:!0,_label:`Label`,children:`Content`}),(0,G.jsx)(ve,{_label:`Label (open)`,_open:!0,children:`Content`}),(0,G.jsx)(ve,{_disabled:!0,_label:`Label (open)`,_open:!0,children:`Content`})]})}),[I,we,L,Te,Ee,De,Oe,Ae,R].map(e=>{let t=e.render.displayName;return(0,G.jsx)(P,{_label:t,_level:0,children:(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(e,{_label:`Label`}),(0,G.jsx)(e,{_disabled:!0,_label:`Label`}),(0,G.jsx)(e,{_hideLabel:!0,_label:`Label`}),(0,G.jsx)(e,{_disabled:!0,_hideLabel:!0,_label:`Label`})]})},t)}),[ke,Re].map(e=>{let t=e.render.displayName;return(0,G.jsx)(P,{_label:t,_level:0,children:(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(e,{_label:`Label`,_options:ph}),(0,G.jsx)(e,{_disabled:!0,_label:`Label`,_options:ph}),(0,G.jsx)(e,{_hideLabel:!0,_label:`Label`,_options:ph}),(0,G.jsx)(e,{_disabled:!0,_hideLabel:!0,_label:`Label`,_options:ph})]})},t)}),(0,G.jsx)(P,{_label:`KolTextarea`,_level:0,children:(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(H,{_label:`Label`,_rows:3}),(0,G.jsx)(H,{_disabled:!0,_label:`Label`,_rows:3}),(0,G.jsx)(H,{_hideLabel:!0,_label:`Label`,_rows:3}),(0,G.jsx)(H,{_disabled:!0,_hideLabel:!0,_label:`Label`,_rows:3})]})})]})]})},hh=()=>{let e=new Map;return e.set(`accordion`,(e,t)=>(0,G.jsx)(j,{className:`w-full`,_label:`Accordion here`,ref:t})),e.set(`badge`,(e,t)=>(0,G.jsx)(he,{className:`w-full`,_label:`Badge with button`,_smartButton:{_label:`Action`,_icons:`kolicon-house`,_on:{onClick:()=>{}}},ref:t})),e.set(`button`,(e,t)=>(0,G.jsx)(M,{_label:`Button here`,ref:t})),e.set(`buttonLink`,(e,t)=>(0,G.jsx)(N,{_label:`ButtonLink here`,ref:t})),e.set(`card`,(e,t)=>(0,G.jsx)(P,{className:`w-full`,_label:`Card with link here`,_href:`#`,ref:t})),e.set(`combobox`,(e,t)=>(0,G.jsx)(_e,{className:`w-full`,_label:`KolCombobox here`,_suggestions:[],ref:t})),e.set(`details`,(e,t)=>(0,G.jsx)(ve,{className:`w-full`,_label:`Details here`,ref:t,children:`detailed details`})),e.set(`inputCheckbox`,(e,t)=>(0,G.jsx)(I,{className:`w-full`,_name:`checkbox`,_label:`Checkbox`,ref:t})),e.set(`inputColor`,(e,t)=>(0,G.jsx)(we,{className:`w-full`,_name:`color`,_label:`Color`,ref:t})),e.set(`inputDate`,(e,t)=>(0,G.jsx)(L,{className:`w-full`,_name:`date`,_label:`Date`,ref:t})),e.set(`inputEmail`,(e,t)=>(0,G.jsx)(Te,{className:`w-full`,_name:`email`,_label:`Email`,ref:t})),e.set(`inputFile`,(e,t)=>(0,G.jsx)(Ee,{className:`w-full`,_name:`file`,_label:`File`,ref:t})),e.set(`inputFileMultiple`,(e,t)=>(0,G.jsx)(Ee,{className:`w-full`,_name:`file`,_label:`Files (multiple)`,_multiple:!0,ref:t})),e.set(`inputNumber`,(e,t)=>(0,G.jsx)(De,{className:`w-full`,_name:`number`,_label:`Number`,ref:t})),e.set(`inputPassword`,(e,t)=>(0,G.jsx)(Oe,{className:`w-full`,_name:`password`,_label:`Password`,ref:t})),e.set(`inputRadio`,(e,t)=>(0,G.jsx)(ke,{className:`w-full`,_name:`radio`,_label:`Radio`,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}],_value:`A`,ref:t})),e.set(`inputRange`,(e,t)=>(0,G.jsx)(Ae,{className:`w-full`,_name:`range`,_label:`Range`,ref:t})),e.set(`inputText`,(e,t)=>(0,G.jsx)(R,{className:`w-full`,_name:`text`,_label:`Text`,ref:t})),e.set(`link`,(e,t)=>(0,G.jsx)(z,{className:`w-full`,_label:`Link here`,_href:`#`,ref:t})),e.set(`linkButton`,(e,t)=>(0,G.jsx)(`div`,{children:(0,G.jsx)(B,{_label:`LinkButton here`,_href:`#`,ref:t})})),e.set(`popoverButton`,(e,t)=>(0,G.jsx)(Fe,{_label:`PopoverButton here`,ref:t})),e.set(`select`,(e,t)=>(0,G.jsx)(Re,{className:`w-full`,_name:`select`,_label:`Select`,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}],ref:t})),e.set(`selectMultiple`,(e,t)=>(0,G.jsx)(Re,{className:`w-full`,_name:`select`,_label:`Select (multiple)`,_multiple:!0,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}],_rows:2,ref:t})),e.set(`singleSelect`,(e,t)=>(0,G.jsx)(ze,{className:`w-full`,_name:`singleSelect`,_label:`Single Select`,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}],ref:t})),e.set(`skipNav`,(e,t)=>(0,G.jsx)(Ve,{_label:`SkipNav`,_links:[{_label:`Skip to main content`,_href:`#main`}],ref:t})),e.set(`splitButton`,(e,t)=>(0,G.jsx)(Ue,{_label:`SplitButton here`,ref:t})),e.set(`tabs`,(e,t)=>(0,G.jsx)(Ge,{className:`w-full`,_label:`Tabs here`,_tabs:[{_label:`Tab 1`},{_label:`Tab 2`},{_label:`Tab 3`}],ref:t,children:`Tab content`})),e.set(`textarea`,(e,t)=>(0,G.jsx)(H,{className:`w-full`,_name:`textarea`,_label:`Textarea`,_rows:5,ref:t})),e.set(`toolbar`,(e,t)=>(0,G.jsx)(Ke,{className:`w-full`,_label:`Toolbar here`,_items:[{type:`button`,_label:`Action 1`},{type:`button`,_label:`Action 2`}],ref:t})),e.set(`tree`,(e,t)=>(0,G.jsxs)(qe,{className:`w-full`,_label:`Tree here`,ref:t,children:[(0,G.jsx)(Je,{_label:`1 Home`,_href:`#`}),(0,G.jsxs)(Je,{_label:`2 Products`,_href:`#`,_open:!0,children:[(0,G.jsx)(Je,{_label:`2.1 Electronics`,_href:`#`}),(0,G.jsx)(Je,{_label:`2.2 Furniture`,_href:`#`})]}),(0,G.jsx)(Je,{_label:`3 Services`,_href:`#`})]})),e},gh=e=>{let t=[...(0,E.useMemo)(()=>hh(),[]).keys()].map(e=>e);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample serves for automated tests of the focus state for input components. When loading one of the examples linked below, focus will be set on the element initially. When testing manually, you may have to reload the page after opening an example.`})}),e.invalidComponent&&(0,G.jsx)(pe,{_type:`error`,_variant:`card`,children:`Component not found.`}),(0,G.jsx)(F,{_level:2,_label:`Focus Test Cases`}),(0,G.jsx)(`ul`,{children:t.map(e=>(0,G.jsx)(`li`,{children:(0,G.jsx)(z,{_label:e,_href:`#/scenarios/focus-elements?component=${e}`})},e))})]})},_h=()=>{let e=(0,E.useMemo)(()=>hh(),[]),[t]=$r(),n=t.get(`component`),r=n?e.get(n):void 0,i=(0,E.useMemo)(()=>r?(0,E.forwardRef)(r):null,[r]),a=(0,E.useCallback)(e=>{e&&e.focus()},[n]);return n?i?(0,G.jsx)(`div`,{children:(0,G.jsx)(i,{ref:a})}):(0,G.jsx)(gh,{invalidComponent:!0}):(0,G.jsx)(gh,{})},vh=[{name:`Elephant`,species:`Loxodonta`,habitat:`Savannah`,diet:`Herbivore`,lifespan:60},{name:`Tiger`,species:`Panthera tigris`,habitat:`Forest`,diet:`Carnivore`,lifespan:20},{name:`Kangaroo`,species:`Macropus`,habitat:`Grassland`,diet:`Herbivore`,lifespan:23},{name:`Penguin`,species:`Aptenodytes forsteri`,habitat:`Antarctica`,diet:`Carnivore`,lifespan:20},{name:`Giraffe`,species:`Giraffa camelopardalis`,habitat:`Savannah`,diet:`Herbivore`,lifespan:25},{name:`Panda`,species:`Ailuropoda melanoleuca`,habitat:`Forest`,diet:`Herbivore`,lifespan:20},{name:`Dolphin`,species:`Delphinus delphis`,habitat:`Ocean`,diet:`Carnivore`,lifespan:40},{name:`Eagle`,species:`Aquila chrysaetos`,habitat:`Mountains`,diet:`Carnivore`,lifespan:30},{name:`Koala`,species:`Phascolarctos cinereus`,habitat:`Forest`,diet:`Herbivore`,lifespan:18},{name:`Lion`,species:`Panthera leo`,habitat:`Savannah`,diet:`Carnivore`,lifespan:15},{name:`Zebra`,species:`Equus quagga`,habitat:`Savannah`,diet:`Herbivore`,lifespan:25},{name:`Wolf`,species:`Canis lupus`,habitat:`Forest`,diet:`Carnivore`,lifespan:14},{name:`Cheetah`,species:`Acinonyx jubatus`,habitat:`Savannah`,diet:`Carnivore`,lifespan:12},{name:`Polar Bear`,species:`Ursus maritimus`,habitat:`Arctic`,diet:`Carnivore`,lifespan:25},{name:`Rhinoceros`,species:`Rhinocerotidae`,habitat:`Savannah`,diet:`Herbivore`,lifespan:40},{name:`Hippopotamus`,species:`Hippopotamus amphibius`,habitat:`Rivers`,diet:`Herbivore`,lifespan:45},{name:`Chimpanzee`,species:`Pan troglodytes`,habitat:`Forest`,diet:`Omnivore`,lifespan:50},{name:`Orangutan`,species:`Pongo`,habitat:`Forest`,diet:`Omnivore`,lifespan:45},{name:`Leopard`,species:`Panthera pardus`,habitat:`Forest`,diet:`Carnivore`,lifespan:17},{name:`Hyena`,species:`Hyaenidae`,habitat:`Savannah`,diet:`Carnivore`,lifespan:25},{name:`Crocodile`,species:`Crocodylidae`,habitat:`Rivers`,diet:`Carnivore`,lifespan:70},{name:`Alligator`,species:`Alligatoridae`,habitat:`Swamps`,diet:`Carnivore`,lifespan:50},{name:`Ostrich`,species:`Struthio camelus`,habitat:`Savannah`,diet:`Omnivore`,lifespan:40},{name:`Flamingo`,species:`Phoenicopterus`,habitat:`Lakes`,diet:`Omnivore`,lifespan:30},{name:`Peacock`,species:`Pavo cristatus`,habitat:`Forest`,diet:`Omnivore`,lifespan:20},{name:`Parrot`,species:`Psittaciformes`,habitat:`Forest`,diet:`Omnivore`,lifespan:50},{name:`Toucan`,species:`Ramphastidae`,habitat:`Forest`,diet:`Omnivore`,lifespan:20},{name:`Sloth`,species:`Folivora`,habitat:`Forest`,diet:`Herbivore`,lifespan:30},{name:`Armadillo`,species:`Dasypodidae`,habitat:`Grassland`,diet:`Omnivore`,lifespan:15},{name:`Anteater`,species:`Myrmecophaga tridactyla`,habitat:`Forest`,diet:`Insectivore`,lifespan:14},{name:`Bat`,species:`Chiroptera`,habitat:`Caves`,diet:`Omnivore`,lifespan:20},{name:`Otter`,species:`Lutrinae`,habitat:`Rivers`,diet:`Carnivore`,lifespan:16},{name:`Beaver`,species:`Castor`,habitat:`Rivers`,diet:`Herbivore`,lifespan:24},{name:`Moose`,species:`Alces alces`,habitat:`Forest`,diet:`Herbivore`,lifespan:20},{name:`Deer`,species:`Cervidae`,habitat:`Forest`,diet:`Herbivore`,lifespan:20},{name:`Bison`,species:`Bison bison`,habitat:`Grassland`,diet:`Herbivore`,lifespan:20},{name:`Buffalo`,species:`Syncerus caffer`,habitat:`Savannah`,diet:`Herbivore`,lifespan:25},{name:`Camel`,species:`Camelus`,habitat:`Desert`,diet:`Herbivore`,lifespan:50},{name:`Llama`,species:`Lama glama`,habitat:`Mountains`,diet:`Herbivore`,lifespan:20},{name:`Alpaca`,species:`Vicugna pacos`,habitat:`Mountains`,diet:`Herbivore`,lifespan:20},{name:`Goat`,species:`Capra aegagrus hircus`,habitat:`Mountains`,diet:`Herbivore`,lifespan:18},{name:`Sheep`,species:`Ovis aries`,habitat:`Grassland`,diet:`Herbivore`,lifespan:12},{name:`Cow`,species:`Bos taurus`,habitat:`Grassland`,diet:`Herbivore`,lifespan:20},{name:`Pig`,species:`Sus scrofa domesticus`,habitat:`Farm`,diet:`Omnivore`,lifespan:15},{name:`Chicken`,species:`Gallus gallus domesticus`,habitat:`Farm`,diet:`Omnivore`,lifespan:10}],yh=[{_icons:`fa-solid fa-chart-pie`,_label:`Erster Tab`},{_icons:`fa-solid fa-calendar`,_label:`Zweiter Tab`,_disabled:!0},{_icons:`fa-solid fa-briefcase`,_label:`Deaktivierter Tab`,_disabled:!0},{_icons:`fa-solid fa-address-card`,_label:`Letzter Tab`,_disabled:!0}],bh={horizontal:[[{key:`name`,label:`Name`,textAlign:`left`},{key:`species`,label:`Species`,textAlign:`left`},{key:`habitat`,label:`Habitat`,textAlign:`left`},{key:`diet`,label:`Diet`,textAlign:`left`},{key:`lifespan`,label:`lifespan`,textAlign:`right`}]]};function xh(){return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This advanced scenario demonstrates a complex layout with KolTable featuring horizontal scrollbar within a tab-based navigation system. The table automatically calculates its minimum width based on column definitions and provides smooth horizontal scrolling when content exceeds the container width. This example showcases real-world usage in a dashboard-like interface with sidebar navigation and tabbed content areas.`})}),(0,G.jsxs)(`div`,{className:`mainlayout`,children:[(0,G.jsx)(`aside`,{className:`nav-area`,children:(0,G.jsx)(Ne,{_label:`Main navigation`,_links:Td,_hasCompactButton:!0,_hasIconsWhenExpanded:!0})}),(0,G.jsx)(`div`,{className:`content`,children:(0,G.jsxs)(Ge,{_tabs:yh,_align:`top`,_label:`Demo Tabs`,children:[(0,G.jsx)(`div`,{style:{overflow:`hidden`},children:(0,G.jsx)(V,{_label:`Table for demonstration purposes with horizontal scrollbar`,_headers:bh,_data:vh,_pagination:{_page:1},className:`block`})}),(0,G.jsx)(`div`,{}),(0,G.jsx)(`div`,{}),(0,G.jsx)(`div`,{})]})})]})]})}var Sh=()=>{let e=`Unrecognized phone number.`;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsx)(`p`,{children:`This sample shows how input components can be grouped together with just one error message, without repeating the message for every field.`}),(0,G.jsx)(`p`,{children:`The sample only demonstrates how the errors can be displayed, an actual validation logic is not part of the example.`})]}),(0,G.jsxs)(`fieldset`,{children:[(0,G.jsx)(`legend`,{children:`Phone number`}),(0,G.jsx)(pe,{_alert:!0,_type:`error`,_label:e}),(0,G.jsxs)(`div`,{className:`grid grid-cols-3 gap-4 max-w-2xl`,children:[(0,G.jsx)(Re,{_options:[{label:`United States +1`,value:`1`},{label:`Greece +30 `,value:`30`},{label:`Germany +49`,value:`49`},{label:`Japan +81`,value:`81`}],_label:`CountryCode `,_msg:{_description:e,_type:`error`},_touched:!0,_hideMsg:!0}),(0,G.jsx)(R,{_label:`Area code`,_msg:{_description:e,_type:`error`},_touched:!0,_hideMsg:!0}),(0,G.jsx)(R,{_label:`Local number`,_msg:{_description:e,_type:`error`},_touched:!0,_hideMsg:!0})]})]}),(0,G.jsxs)(`fieldset`,{className:`mt`,children:[(0,G.jsx)(`legend`,{children:`Pizza toppings`}),(0,G.jsx)(pe,{_alert:!0,_type:`error`,_label:`Choose at least two and up to five toppings.`}),[`Mushrooms`,`Bell Peppers`,`Onions`,`Olives`,`Spinach`,`Tomatoes`,`Artichokes`,`Zucchini`,`Jalapeños`,`Basil`].map(t=>(0,G.jsx)(I,{_label:t,_msg:{_description:e,_type:`error`},_touched:!0,_hideMsg:!0},t))]})]})},Ch=(0,E.createContext)(void 0),wh=(0,E.createContext)(!1),Th=e=>{let t=(0,E.useRef)(null),[n,r]=(0,E.useState)(void 0),[i,a]=(0,E.useState)(e.inputProps._value),o=e.formatter||JSON.stringify,s=(0,E.useContext)(Ch),c=(0,E.useContext)(wh),l=(0,E.useCallback)(async()=>{let e=await t.current?.getValue();r(e)},[]);(0,E.useEffect)(()=>{let e=()=>{l()};return s?.addEventListener(`runAll`,e),()=>{s?.removeEventListener(`runAll`,e)}},[s,l]);let u=Object.fromEntries([`onInput`,`onChange`,`onBlur`,`onClick`,`onFocus`,`onMouseDown`].map(t=>[t,(n,r)=>{c&&console.log(e.inputProps._label,t,r,n),t===`onInput`&&a(r)}]));return(0,G.jsx)(G.Fragment,{children:(0,G.jsxs)(`div`,{className:`grid grid-cols-3 items-end gap-4`,"data-testid":e.testId,children:[(0,G.jsx)(e.InputComponent,{ref:t,_on:u,...e.inputProps,_value:i}),(0,G.jsx)(M,{_label:`getValue()`,_on:{onClick:()=>{l()}}}),(0,G.jsx)(`pre`,{className:`text-base`,children:o(n)})]})})},Eh=()=>{let e=(0,E.useMemo)(()=>new EventTarget,[]),[t,n]=(0,E.useState)(!0);return(0,G.jsx)(G.Fragment,{children:(0,G.jsx)(Ch.Provider,{value:e,children:(0,G.jsxs)(wh.Provider,{value:t,children:[(0,G.jsx)(J,{children:(0,G.jsxs)(`p`,{children:[`This sample shows how the input components `,(0,G.jsx)(`code`,{children:`getValue()`}),` method works. It's called when clicking the "getValue()" button and prints the current value right next to itself.`]})}),(0,G.jsxs)(`section`,{className:`w-full flex flex-col`,children:[(0,G.jsx)(P,{_label:`Sample options`,className:`block ha mb-8`,children:(0,G.jsx)(I,{_label:`Log events to console`,_value:!0,_checked:t,_on:{onChange:(e,t)=>n(t)}})}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(Th,{testId:`scenario-inputText`,InputComponent:R,inputProps:{_label:`InputText`}}),(0,G.jsx)(Th,{testId:`scenario-inputCheckboxString`,InputComponent:I,inputProps:{_label:`KolInputCheckbox (value)`,_value:`Checkbox True Value`}}),(0,G.jsx)(Th,{testId:`scenario-inputCheckboxBoolean`,InputComponent:I,inputProps:{_label:`KolInputCheckbox (boolean)`}}),(0,G.jsx)(Th,{testId:`scenario-inputColor`,InputComponent:we,inputProps:{_label:`KolInputColor`}}),(0,G.jsx)(Th,{testId:`scenario-inputDate`,InputComponent:L,inputProps:{_label:`KolInputDate`}}),(0,G.jsx)(Th,{testId:`scenario-inputEmail`,InputComponent:Te,inputProps:{_label:`KolInputEmail`}}),(0,G.jsx)(Th,{testId:`scenario-inputFile`,InputComponent:Ee,inputProps:{_label:`KolInputFile`},formatter:e=>e instanceof FileList?`FileList{${Array.from(e).map(e=>e.name).join(`, `)}}`:JSON.stringify(e)}),(0,G.jsx)(Th,{testId:`scenario-inputNumber`,InputComponent:De,inputProps:{_label:`KolInputNumber`}}),(0,G.jsx)(Th,{testId:`scenario-inputPassword`,InputComponent:Oe,inputProps:{_label:`KolInputPassword`}}),(0,G.jsx)(Th,{testId:`scenario-inputRange`,InputComponent:Ae,inputProps:{_label:`KolInputRange`}}),(0,G.jsx)(Th,{testId:`scenario-inputRadio`,InputComponent:ke,inputProps:{_label:`KolInputRadio`,_orientation:`horizontal`,_options:[{label:`New York`,value:`New York`},{label:`Rio de Janeiro`,value:`Rio de Janeiro`},{label:`Rosenheim`,value:`Rosenheim`}],_value:`New York`}}),(0,G.jsx)(Th,{testId:`scenario-select`,InputComponent:Re,inputProps:{_label:`KolSelect`,_options:[{label:`New York`,value:`New York`},{label:`Rio de Janeiro`,value:`Rio de Janeiro`},{label:`Rosenheim`,value:`Rosenheim`}]}}),(0,G.jsx)(Th,{testId:`scenario-singleSelect`,InputComponent:ze,inputProps:{_label:`KolSingleSelect`,_options:[{label:`New York`,value:`New York`},{label:`Rio de Janeiro`,value:`Rio de Janeiro`},{label:`Rosenheim`,value:`Rosenheim`}],_value:`Rosenheim`}}),(0,G.jsx)(Th,{testId:`scenario-combobox`,InputComponent:_e,inputProps:{_label:`KolCombobox`,_suggestions:Lo,_value:`Deutschland`}}),(0,G.jsx)(Th,{testId:`scenario-textarea`,InputComponent:H,inputProps:{_label:`KolTextarea`}}),(0,G.jsx)(Th,{testId:`scenario-button`,InputComponent:M,inputProps:{_label:`KolButton`,_variant:`ghost`,_value:`KolButton value`}}),(0,G.jsx)(Th,{testId:`scenario-buttonLink`,InputComponent:N,inputProps:{_label:`KolButtonLink`,_value:`KolButtonLink value`}}),(0,G.jsxs)(`div`,{className:`grid grid-cols-3 gap-4`,children:[(0,G.jsx)(`div`,{}),(0,G.jsx)(M,{_label:`Run all`,_variant:`primary`,_on:{onClick:()=>{e.dispatchEvent(new Event(`runAll`))}}})]})]})]})]})})})},Dh=()=>{let e=e=>[{text:e},{text:`partly english`,lang:`en`},{text:` Label`,lang:`de`}],t=[{_label:e(`Link `),_href:`#/`},{_label:e(`Link `),_href:`#/`}],n=[{_label:e(`Tab `)},{_label:`Second Tab`}];return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`Label can use additional language attributes for screenreaders.`})}),(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(K,{id:`label-lang-accordion`,children:(0,G.jsx)(j,{_label:e(`Accordion `),children:(0,G.jsx)(`p`,{children:`Contents Accordion`})})}),(0,G.jsx)(K,{id:`label-lang-alert`,children:(0,G.jsx)(pe,{_label:e(`Alert `),children:`This is the text of the alert.`})}),(0,G.jsx)(K,{id:`label-lang-badge`,children:(0,G.jsx)(he,{_label:e(`Badge `)})}),(0,G.jsx)(K,{id:`label-lang-breadcrumb`,children:(0,G.jsx)(ge,{_label:`Breadcrumb`,_links:t})}),(0,G.jsx)(K,{id:`label-lang-button`,children:(0,G.jsx)(M,{_label:e(`Button `)})}),(0,G.jsx)(K,{id:`label-lang-button-link`,children:(0,G.jsx)(N,{_label:e(`ButtonLink `)})}),(0,G.jsx)(K,{id:`label-lang-card`,children:(0,G.jsx)(P,{_label:e(`Card `),children:`Inhaltsbereich`})}),(0,G.jsx)(K,{id:`label-lang-details`,children:(0,G.jsx)(ve,{_label:e(`Details `),children:(0,G.jsx)(`p`,{children:`Contents Details`})})}),(0,G.jsx)(K,{id:`label-lang-heading`,children:(0,G.jsx)(F,{_label:e(`Heading `),_level:1})}),(0,G.jsx)(K,{id:`label-lang-checkbox`,children:(0,G.jsx)(I,{_label:e(`Checkbox`)})}),(0,G.jsx)(K,{id:`label-lang-input`,children:(0,G.jsx)(R,{_label:e(`Input `)})}),(0,G.jsx)(K,{id:`label-lang-link`,children:(0,G.jsx)(z,{_label:e(`Link `),_href:``})}),(0,G.jsx)(K,{id:`label-lang-link-button`,children:(0,G.jsx)(B,{_label:e(`LinkButton `),_href:``})}),(0,G.jsx)(K,{id:`label-lang-meter`,children:(0,G.jsx)(Me,{_label:e(`Meter `),_max:1024,_min:0,_unit:`MB`,_value:512})}),(0,G.jsx)(K,{id:`label-lang-nav`,children:(0,G.jsx)(Ne,{_label:`Navi`,_links:t})}),(0,G.jsx)(K,{id:`label-lang-popover`,children:(0,G.jsx)(Fe,{_label:e(`Popover `),children:`Text`})}),(0,G.jsx)(K,{id:`label-lang-progress`,children:(0,G.jsx)(Ie,{_label:e(`Progress `),_max:100,_value:45,_variant:`bar`})}),(0,G.jsx)(K,{id:`label-lang-quote`,children:(0,G.jsx)(Le,{_href:`https://public-ui.github.io/docs`,_label:e(`Quote `),_quote:`Quote.`,_variant:`inline`})}),(0,G.jsx)(K,{id:`label-lang-table`,children:(0,G.jsx)(V,{_label:e(`Table `),_data:[],_headers:{horizontal:[[{label:`ID`,key:`id`,width:160}]]}})}),(0,G.jsx)(K,{id:`label-lang-tabs`,children:(0,G.jsx)(Ge,{_tabs:n,_label:`Regular tabs`})}),(0,G.jsx)(K,{id:`label-lang-toolbar`,children:(0,G.jsx)(Ke,{_label:`Toolbar`,_items:[{type:`button`,_label:e(`Button `)},{type:`link`,_label:e(`Link `),_href:`#`}]})}),(0,G.jsx)(K,{id:`label-lang-tree`,children:(0,G.jsx)(qe,{_label:`Tree`,children:(0,G.jsx)(Je,{_label:e(`TreeItem `),_href:`#/`})})})]})]})},Oh=()=>{let[e,t]=(0,E.useState)(100),[n,r]=(0,E.useState)(null),[i,a]=(0,E.useState)(null),[o,s]=(0,E.useState)(!1),c={onInput:(e,n)=>{t(n)}},l=(e,t)=>{switch(e){case`text`:return(0,G.jsx)(R,{_label:`TextInput #${t}`},t);case`number`:return(0,G.jsx)(De,{_label:`NumberInput #${t}`},t);case`checkbox`:return(0,G.jsx)(I,{_label:`Checkbox #${t}`},t);case`skeleton`:return(0,G.jsx)(Be,{_name:`skeleton-${t}`},t);default:return null}},u=()=>{if(!n)return null;let t=[];for(let r=1;r<=e;r++)t.push(l(n,r));return t},d=e=>{s(!0),a(null);let t=performance.now();r(e),setTimeout(()=>{let e=performance.now();a(e-t),s(!1)},0)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This example renders many KoliBri components to show the performance. Choose a component type and set the number of instances to render.`})}),(0,G.jsxs)(`div`,{className:`w-full mb-6`,children:[(0,G.jsx)(`div`,{className:`flex flex-wrap items-end gap-4 mb-4`,children:(0,G.jsx)(De,{_label:`Number of components`,_value:e,_min:1,_max:500,_on:c})}),(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4 mb-6`,children:[(0,G.jsx)(M,{_label:`Render TextInputs`,_variant:`primary`,onClick:()=>d(`text`)}),(0,G.jsx)(M,{_label:`Render NumberInputs`,_variant:`primary`,onClick:()=>d(`number`)}),(0,G.jsx)(M,{_label:`Render Checkboxes`,_variant:`primary`,onClick:()=>d(`checkbox`)}),(0,G.jsx)(M,{_label:`Render Skeletons`,_variant:`primary`,onClick:()=>d(`skeleton`)}),(0,G.jsx)(M,{_label:`Clear`,_variant:`secondary`,onClick:()=>{r(null),a(null),s(!1)}})]})]}),n&&(0,G.jsxs)(`div`,{className:`w-full mb-4`,children:[(0,G.jsxs)(`p`,{className:`text-sm text-gray-600 mb-2`,children:[`Rendering `,e,` `,n,` component`,e===1?``:`s`]}),o&&(0,G.jsx)(`p`,{className:`text-sm text-blue-600`,children:`⏱️ Measuring render time...`}),i!==null&&!o&&(0,G.jsxs)(`p`,{className:`text-sm text-green-600`,children:[`✅ Render time: `,i.toFixed(2),`ms`]})]}),(0,G.jsx)(`div`,{className:`w-full grid gap-4`,children:u()})]})},kh=e=>e.type===`checkbox`,Ah=e=>e.type===`file`,jh=e=>e instanceof Date,Mh=e=>e==null,Nh=e=>typeof e==`object`,Ph=e=>!Mh(e)&&!Array.isArray(e)&&Nh(e)&&!jh(e),Fh=e=>Ph(e)&&e.target?kh(e.target)?e.target.checked:Ah(e.target)?e.target.files:e.target.value:e,Ih=/[.[\]'"]/,Lh=e=>e.split(Ih).filter(Boolean);function Rh(e,t){let n=Lh(t),r=e._formValues,i=e._defaultValues;for(let e=0;e<n.length-1;e++){let t=n[e];if(r=r==null?r:r[t],i=i==null?i:i[t],r===null||i===null)return null}}var zh=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),Bh=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function Vh(e){if(typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e);let t=typeof Blob<`u`&&e instanceof Blob,n=typeof FileList<`u`&&e instanceof FileList;if(Bh&&(t||n))return e;let r=Array.isArray(e);if(!r&&e.constructor!==Object)return e;let i=r?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=Vh(e[t]));return i}var Hh={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},Uh={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},Wh={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`};Wh.required,Wh.min,Wh.max,Wh.minLength,Wh.maxLength,Wh.pattern,Wh.validate;var Gh=[`__proto__`,`constructor`,`prototype`],Kh=/^\w*$/,qh=e=>Kh.test(e),Jh=e=>e===void 0,Yh=(e,t,n)=>{if(!t||!Ph(e))return n;let r=qh(t)?[t]:Lh(t);if(r.some(e=>Gh.includes(e)))return n;let i=r.reduce((e,t)=>Mh(e)?void 0:e[t],e);return Jh(i)||i===e?Jh(e[t])?n:e[t]:i},Xh=e=>typeof e==`boolean`,Zh=e=>typeof e==`function`,Qh=(e,t,n)=>{let r=-1,i=qh(t)?[t]:Lh(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=Ph(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(Gh.includes(t))return;e[t]=a,e=e[t]}},$h=E.createContext(null);$h.displayName=`HookFormControlContext`;var eg=()=>E.useContext($h),tg=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==Uh.all&&(t._proxyFormState[i]=!r||Uh.all),n&&(n[i]=!0),e[i]}});return i},ng=Bh?E.useLayoutEffect:E.useEffect,rg=e=>{let t=e.constructor&&e.constructor.prototype;return Ph(t)&&t.hasOwnProperty(`isPrototypeOf`)},ig=e=>Mh(e)||!Nh(e),ag=(e,t)=>t.length===0&&!Array.isArray(e)&&!rg(e);function og(e,t,n=new WeakMap){if(e===t)return!0;if(ig(e)||ig(t))return Object.is(e,t);if(jh(e)&&jh(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(ag(e,r)||ag(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(jh(r)&&jh(e)||(Ph(r)||Array.isArray(r))&&(Ph(e)||Array.isArray(e))?!og(r,e,n):!Object.is(r,e))return!1}}return!0}function sg(e){let t=E.useRef(!1),n=E.useRef(!1),r=E.useRef(void 0),i=E.useRef(0);return i.current++,!n.current&&e&&(n.current=!0,r.current=Vh(e())),{resyncIfNeeded:E.useCallback((e,a,o)=>{if(e&&(t.current||n.current&&i.current>1)){let e=a();og(r.current,e)||o(e)}t.current=!0},[]),snapshot:E.useCallback((e,t)=>{e&&(r.current=Vh(t()))},[])}}function cg(e){let t=eg(),{control:n=t,disabled:r,name:i,exact:a}=e||{},o=()=>({...n._formState,defaultValues:n._defaultValues}),[s,c]=E.useState(o),l=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:u,snapshot:d}=sg(o);return ng(()=>{u(!r,o,c);let e=n._subscribe({name:i,formState:l.current,exact:a,callback:e=>{!r&&c({...n._formState,...e,defaultValues:n._defaultValues})}});return()=>{e(),d(!r,o)}},[n,i,r,a,u,d]),E.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),E.useMemo(()=>tg(s,n,l.current,!1),[s,n])}var lg=e=>typeof e==`string`,ug=(e,t,n,r,i)=>lg(e)?(r&&t.watch.add(e),Yh(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),Yh(n,e,Yh(i,e)))):(r&&(t.watchAll=!0),n);function dg(e){let t=eg(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=E.useRef(i),l=E.useRef(s),u=E.useRef(n),d=E.useRef(r);l.current=s;let f=()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e},[p,m]=E.useState(f),h=E.useRef(p),g=E.useCallback(e=>{let t=ug(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),_=E.useCallback(e=>{if(!a){let t=ug(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);og(e,h.current)||(m(e),h.current=e)}else m(t)}},[n._formValues,n._names,a,r]),{resyncIfNeeded:v,snapshot:y}=sg(f),b=E.useRef(_);b.current=_;let x=E.useRef(g);x.current=g,ng(()=>{u.current!==n||!og(d.current,r)?(u.current=n,d.current=r,b.current()):v(!a,()=>x.current(),e=>{m(e),h.current=e});let e=n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{b.current(e.values)}});return()=>{e(),y(!a,()=>x.current())}},[n,o,r,a,v,y]),E.useEffect(()=>n._removeUnmounted());let S=u.current!==n,C=d.current;return E.useMemo(()=>{if(a)return!1;let e=!S&&!og(C,r);return S||e},[a,S,r,C])?g():p}function fg(e){let t=eg(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=zh(i._names.array,n),l=dg({control:i,name:n,defaultValue:E.useMemo(()=>{let e=Yh(i._formValues,n,Yh(i._defaultValues,n,o));return Jh(e)?Rh(i,n):e},[i,n,o]),exact:s}),u=cg({control:i,name:n,exact:s}),d=E.useRef(e),f=E.useRef(null),p=E.useRef(i.register(n,{...e.rules,value:l,...Xh(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let m=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Yh(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!Yh(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Yh(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Yh(u.validatingFields,n)},error:{enumerable:!0,get:()=>Yh(u.errors,n)}}),[u,n]),h=E.useCallback(e=>{let t=Fh(e);return Yh(i._fields,n)||(p.current=i.register(n,{...d.current.rules,value:t})),p.current.onChange({target:{value:Fh(e),name:n},type:Hh.CHANGE})},[n,i]),g=E.useCallback(()=>p.current.onBlur({target:{value:Yh(i._formValues,n),name:n},type:Hh.BLUR}),[n,i._formValues]),_=E.useCallback(e=>{e&&(f.current={focus:()=>Zh(e.focus)&&e.focus(),select:()=>Zh(e.select)&&e.select(),setCustomValidity:t=>Zh(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>Zh(e.reportValidity)&&e.reportValidity()});let t=Yh(i._fields,n);t&&t._f&&e&&(t._f.ref=f.current,t._f._c=!0)},[i._fields,n]),v=E.useMemo(()=>({name:n,value:l,...Xh(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:h,onBlur:g,ref:_}),[n,r,u.disabled,h,g,_,l]);return E.useEffect(()=>{let e=i._options.shouldUnregister||a;p.current=i.register(n,{...d.current.rules,...Xh(d.current.disabled)?{disabled:d.current.disabled}:{}});let t=(e,t)=>{let n=Yh(i._fields,e);n&&n._f&&(n._f.mount=t,n._f._c=t)};if(t(n,!0),e){let e=Vh(Yh(a?i._defaultValues:i._options.values||i._defaultValues,n,Yh(i._options.defaultValues,n,d.current.defaultValue)));Qh(i._defaultValues,n,e),Jh(Yh(i._formValues,n))&&Qh(i._formValues,n,e)}if(!c&&i.register(n,{...d.current.rules,...Xh(d.current.disabled)?{disabled:d.current.disabled}:{}}),f.current){let e=Yh(i._fields,n);e&&e._f&&(e._f.ref=f.current)}return()=>{(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,c,a]),E.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),E.useMemo(()=>({field:v,formState:u,fieldState:m}),[v,u,m])}var pg=e=>e.render(fg(e)),mg=E.createContext(null);mg.displayName=`HookFormContext`,Uh.onSubmit,Uh.onChange;function hg(e,t){let n=E.forwardRef((n,r)=>{let{name:i,control:a,rules:o,defaultValue:s,shouldUnregister:c,...l}=n;return E.createElement(pg,{name:i,control:a,rules:o,defaultValue:s,shouldUnregister:c,disabled:n._disabled,render:({field:n,fieldState:a})=>{let o=l._on,s={...l,ref:e=>{r&&(typeof r==`function`?r(e):r.current=e),e&&n.ref(e)},_name:i,_touched:a.isTouched,_disabled:n.disabled,_msg:a.error?{_type:`error`,_description:a.error.message||a.error.toString?.()||`Unknown error`}:void 0,_on:{...o||{},onInput:(e,t)=>{n.onChange(t),o?.onInput?.(e,t)},onChange:(e,t)=>{n.onChange(t),o?.onChange?.(e,t)},onBlur:e=>{n.onBlur(),o?.onBlur?.(e)}}};return t&&(s[t]=n.value),E.createElement(e,{...s})}})});return n.displayName=`withController(${e.displayName||e.name||`Component`})`,n}var gg=hg(R,`_value`),_g=hg(Oe,`_value`),vg=hg(Te,`_value`),yg=hg(De,`_value`),bg=hg(Ae,`_value`),xg=hg(L,`_value`),Sg=hg(we,`_value`),Cg=hg(Ee),wg=hg(H,`_value`),Tg=hg(_e,`_value`),Eg=hg(Re,`_value`),Dg=hg(ze,`_value`),Og=hg(ke,`_value`),kg=hg(I,`_checked`),Ag={firstName:``,lastName:``,email:``,password:``,age:18,volume:50,birthday:``,favoriteColor:`#000000`,cv:null,bio:``,country:``,language:`de`,framework:``,gender:``,termsAccepted:!1},jg=[{label:`English`,value:`en`},{label:`German`,value:`de`},{label:`French`,value:`fr`}],Mg=[{label:`React`,value:`react`},{label:`Vue`,value:`vue`},{label:`Stencil`,value:`stencil`}],Ng=[{label:`Male`,value:`male`},{label:`Female`,value:`female`},{label:`Other`,value:`other`}],Pg=[`firstName`,`lastName`,`email`,`password`,`age`,`volume`,`birthday`,`favoriteColor`,`cv`,`bio`,`country`,`language`,`framework`,`gender`,`termsAccepted`],Fg=()=>{let{control:e,handleSubmit:t,setValue:n,getValues:r,trigger:i}=Pl({defaultValues:Ag,mode:`onTouched`,shouldFocusError:!0}),a=()=>{Pg.forEach(e=>{n(e,r(e),{shouldTouch:!0,shouldValidate:!0})})},o=e=>{alert(JSON.stringify(e,null,2))},s=e=>{a(),i(void 0,{shouldFocus:!0}),console.warn(`Validation errors:`,e)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample demonstrates a form using React Hook Form with KoliBri adapters wrapped in a KolForm. All inputs are validated, and error messages are shown on submit.`})}),(0,G.jsx)(xe,{className:`w-full max-w-xl`,_on:{onSubmit:e=>{t(o,s)(e)}},children:(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(gg,{name:`firstName`,control:e,_label:`First Name`,rules:{required:`First name is required`},_required:!0}),(0,G.jsx)(gg,{name:`lastName`,control:e,_label:`Last Name`,rules:{required:`Last name is required`},_required:!0}),(0,G.jsx)(vg,{name:`email`,control:e,_label:`Email`,rules:{required:`Email is required`},_required:!0}),(0,G.jsx)(_g,{name:`password`,control:e,_label:`Password`,rules:{required:`Password is required`},_required:!0}),(0,G.jsx)(yg,{name:`age`,control:e,_label:`Age`,rules:{required:`Age is required`,min:0},_required:!0}),(0,G.jsx)(bg,{name:`volume`,control:e,_label:`Volume (0–100)`,_min:0,_max:100}),(0,G.jsx)(xg,{name:`birthday`,control:e,_label:`Birthday`,rules:{required:`Birthday is required`}}),(0,G.jsx)(Sg,{name:`favoriteColor`,control:e,_label:`Favorite Color`,id:`favoriteColor`}),(0,G.jsx)(Cg,{name:`cv`,control:e,_label:`Upload CV`,rules:{required:`Please upload your CV`},_required:!0}),(0,G.jsx)(wg,{name:`bio`,control:e,_label:`Bio`,rules:{required:`Please provide a short bio`},_required:!0}),(0,G.jsx)(Tg,{control:e,rules:{required:`Please select a country`},name:`country`,_label:`Country`,_suggestions:Lo,_required:!0}),(0,G.jsx)(Eg,{control:e,rules:{required:`Please select a language`},name:`language`,_label:`Preferred Language`,_options:jg,_required:!0}),(0,G.jsx)(Dg,{rules:{required:`Please select a framework`},control:e,name:`framework`,_label:`Favorite Framework`,_options:Mg,_required:!0}),(0,G.jsx)(Og,{control:e,rules:{required:`Please select your gender`},name:`gender`,_label:`Gender`,_options:Ng,_required:!0}),(0,G.jsx)(kg,{name:`termsAccepted`,control:e,_label:`I accept the terms and conditions`,rules:{required:`You must accept the terms`},_required:!0}),(0,G.jsx)(M,{_label:`Submit`,_type:`submit`})]})})]})},Ig={first:``,second:``},Lg={scenarios:{"button-shortkey-table":lh,"change-tabindex":uh,"custom-tooltip-css-properties":dh,"date-in-form":fh,"disabled-interactive-scenario":mh,"focus-elements":_h,"label-lang":Dh,"input-group-with-error":Sh,"inputs-get-value":Eh,"react-hook-form-adapter":Fg,"react-hook-form-adapter-disabled":()=>{let{control:e,handleSubmit:t,watch:n}=Pl({defaultValues:Ig}),r=e=>{alert(JSON.stringify(e,null,2))};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows two fields of which just one can be filled. The other gets disabled.`})}),(0,G.jsx)(xe,{className:`w-full max-w-xl`,_on:{onSubmit:e=>{t(r)(e)}},children:(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(gg,{name:`first`,control:e,_label:`First`,_disabled:!!n(`second`)}),(0,G.jsx)(gg,{name:`second`,control:e,_label:`Second`,_disabled:!!n(`first`)}),(0,G.jsx)(M,{_label:`Submit`,_type:`submit`})]})})]})},"same-height-of-all-interactive-elements":()=>{let{dummyClickEventHandler:e}=Fa(),t={onClick:e};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`All interactive elements, such as buttons and input fields, should have the same height to ensure a consistent and visually balanced user interface.`})}),(0,G.jsxs)(`div`,{className:`w-full flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_icons:`kolicon-house`,_label:`Button`,_on:t}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Button`,_on:t}),(0,G.jsx)(B,{_href:`#`,_icons:`kolicon-house`,_label:`Link-Button`,_on:t}),(0,G.jsx)(B,{_hideLabel:!0,_href:`#`,_icons:`kolicon-house`,_label:`Link-Button`,_on:t}),(0,G.jsx)(_e,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Combobox`,_suggestions:[]}),(0,G.jsx)(we,{_hideLabel:!0,_icons:{left:`kolicon-house`},_label:`Input-Color`}),(0,G.jsx)(Ee,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-File`}),(0,G.jsx)(L,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-Date`}),(0,G.jsx)(Te,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-Email`}),(0,G.jsx)(De,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-Number`}),(0,G.jsx)(Oe,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-Password`}),(0,G.jsx)(Ae,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-Range`}),(0,G.jsx)(R,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Input-Text`}),(0,G.jsx)(Re,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Select`,_options:[]}),(0,G.jsx)(ze,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Single Select`,_options:[]}),(0,G.jsx)(H,{_hideLabel:!0,_icons:`kolicon-house`,_label:`Textarea`})]})]})},"same-height-of-all-form-elements-with-label":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`All form elements with labels, should have the same height and gaps to ensure a consistent and visually balanced user interface.`})}),(0,G.jsxs)(`div`,{className:`w-full flex flex-wrap gap-4`,children:[(0,G.jsx)(_e,{_icons:`kolicon-house`,_label:`Combobox`,_suggestions:[]}),(0,G.jsx)(we,{_icons:{left:`kolicon-house`},_label:`Input-Color`}),(0,G.jsx)(Ee,{_icons:`kolicon-house`,_label:`Input-File`}),(0,G.jsx)(L,{_icons:`kolicon-house`,_label:`Input-Date`}),(0,G.jsx)(Te,{_icons:`kolicon-house`,_label:`Input-Email`}),(0,G.jsx)(De,{_icons:`kolicon-house`,_label:`Input-Number`}),(0,G.jsx)(Oe,{_icons:`kolicon-house`,_label:`Input-Password`}),(0,G.jsx)(Ae,{_icons:`kolicon-house`,_label:`Input-Range`}),(0,G.jsx)(R,{_icons:`kolicon-house`,_label:`Input-Text`}),(0,G.jsx)(Re,{_icons:`kolicon-house`,_label:`Select`,_options:[]}),(0,G.jsx)(ze,{_icons:`kolicon-house`,_label:`Single Select`,_options:[]}),(0,G.jsx)(H,{_icons:`kolicon-house`,_label:`Textarea`})]})]}),"static-form":()=>{let{searchParams:e}=new URL(location.href);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(J,{children:[(0,G.jsx)(`p`,{children:`This sample shows how KoliBri can be used in a static form context.`}),(0,G.jsxs)(`ol`,{children:[(0,G.jsxs)(`li`,{children:[`First you have to enable the `,(0,G.jsx)(`code`,{children:`experimental mode`}),`:`,` `,(0,G.jsx)(`code`,{className:`bg-gray-200`,children:`<meta name="kolibri" content="dev-mode=false;experimental-mode=true;" />`})]}),(0,G.jsxs)(`li`,{children:[`Currently you have to use a native `,(0,G.jsx)(`code`,{children:`form`}),` element:`,` `,(0,G.jsx)(`code`,{className:`bg-gray-200`,children:`<form method="GET">...</form>`})]}),(0,G.jsxs)(`li`,{children:[`It is important in static usage to give every input a `,(0,G.jsx)(`code`,{children:`name`}),` attribute:`,` `,(0,G.jsx)(`code`,{className:`bg-gray-200`,children:`<KolInputColor _name="color" _label="Color" />`})]}),(0,G.jsxs)(`li`,{children:[`Last of all one button should have the type `,(0,G.jsx)(`code`,{children:`submit`}),`:`,` `,(0,G.jsx)(`code`,{className:`bg-gray-200`,children:`<KolButton _label="Submit" _type="submit" _variant="primary" />`})]})]})]}),(0,G.jsxs)(`section`,{className:`w-full flex flex-col`,children:[e.size>0&&(0,G.jsxs)(`div`,{className:`grid gap-4`,children:[(0,G.jsx)(F,{_level:2,_label:`Submitted data`}),(0,G.jsx)(`pre`,{className:`text-base`,children:(0,G.jsx)(`code`,{children:JSON.stringify(Object.fromEntries(e.entries()),null,2)})})]}),(0,G.jsxs)(`form`,{className:`grid gap-4`,method:`get`,noValidate:!0,children:[(0,G.jsx)(I,{_name:`checkbox`,_label:`Checkbox`}),(0,G.jsx)(we,{_name:`color`,_label:`Color`}),(0,G.jsx)(L,{_name:`date`,_label:`Date`}),(0,G.jsx)(Te,{_name:`email`,_label:`Email`}),(0,G.jsx)(Ee,{_name:`file`,_label:`File`}),(0,G.jsx)(Ee,{_name:`file`,_label:`Files (multiple)`,_multiple:!0}),(0,G.jsx)(De,{_name:`number`,_label:`Number`}),(0,G.jsx)(Oe,{_name:`password`,_label:`Password`}),(0,G.jsx)(ke,{_name:`radio`,_label:`Radio`,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}]}),(0,G.jsx)(Ae,{_name:`range`,_label:`Range`}),(0,G.jsx)(R,{_name:`text`,_label:`Text`}),(0,G.jsx)(Re,{_name:`select`,_label:`Select`,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}]}),(0,G.jsx)(Re,{_name:`select`,_label:`Select (multiple)`,_multiple:!0,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}],_rows:2}),(0,G.jsx)(ze,{_name:`singleSelect`,_label:`Single Select`,_options:[{label:`Option A`,value:`A`},{label:`Option B`,value:`B`}]}),(0,G.jsx)(_e,{_name:`combobox`,_label:`Combobox`,_suggestions:Lo}),(0,G.jsx)(H,{_name:`textarea`,_label:`Textarea`,_rows:5}),(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[(0,G.jsx)(M,{_label:`Submit`,_type:`submit`,_variant:`primary`}),(0,G.jsx)(M,{_label:`Reset`,_type:`reset`})]}),(0,G.jsx)(`input`,{type:`hidden`,value:crypto.randomUUID(),name:`random`})]})]})]})},"table-horizontal-scrollbar-advanced":xh,"toolbar-item-order":()=>{let[e,t]=(0,E.useState)(!1),[n,r]=(0,E.useState)(!1),i=()=>{t(!0),setTimeout(()=>{t(!1)},2e3)},a=()=>{r(!0),setTimeout(()=>{r(!1)},2e3)},o=(0,E.useMemo)(()=>Array.from({length:5},(t,n)=>({type:`button`,_label:`Button ${n+1}`,_on:{onClick:i},_icons:e?`fa-solid fa-spinner fa-spin`:void 0,_disabled:e})),[e]),s=(0,E.useMemo)(()=>Array.from({length:5},(e,t)=>({type:`button`,_label:`Button ${t+1}`,_on:{onClick:a},_disabled:n,_icons:n?`fa-solid fa-spinner fa-spin`:void 0})),[n]);return(0,G.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1rem`},children:[(0,G.jsx)(F,{_label:`Disabled Toolbar Buttons Bug (solved)`}),(0,G.jsx)(F,{_label:`icon vor disabled`,_level:2}),(0,G.jsx)(Ke,{_label:`KolToolbar A`,_items:o}),(0,G.jsx)(F,{_label:`disabled vor icon`,_level:2}),(0,G.jsxs)(`p`,{children:[`Klicke auf einen der `,s.length-1,` ersten Buttons hatte zur Folge, dass die nachfolgenden Buttons kaputt gehen.`]}),(0,G.jsx)(Ke,{_label:`KolToolbar B`,_items:s})]})},"tooltip-positioning":()=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This example demonstrates tooltip positioning within container query contexts. Container queries can interfere with fixed positioning, causing tooltips to render incorrectly relative to the viewport. The layout containment fix ensures tooltips position properly even when their parent elements use container-based sizing and layout rules.`})}),(0,G.jsx)(`div`,{style:{container:`test / size`,contain:`layout`},children:(0,G.jsx)(Fe,{_label:`Sample PopoverButton—Click for Popover`,_icons:`kolicon-alert-info`,_tooltipAlign:`right`,_hideLabel:!0,children:`This is an explanation shown on click.`})})]}),"accordion-components":sh,"z-index":()=>{let[e]=$r(),t=e.get(`show-dialog`),n=(0,E.useRef)(null);return(0,E.useEffect)(()=>{t===`true`&&n.current?.openModal()},[]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`This sample shows the combination of a few components overlaying content. Dialog, Popover, Tooltip`})}),(0,G.jsx)(`div`,{className:`grid gap-8`,children:(0,G.jsxs)(`div`,{children:[(0,G.jsx)(M,{_label:`Open card dialog`,_on:{onClick:()=>n.current?.openModal()}}),(0,G.jsxs)(ye,{ref:n,_label:`Card dialog`,_variant:`card`,_width:`30%`,children:[(0,G.jsx)(Fe,{_label:`Help`,_icons:`kolicon-alert-info`,_popoverAlign:`right`,_tooltipAlign:`bottom`,_hideLabel:!0,children:(0,G.jsxs)(`div`,{className:`w-sm p-2 border border-solid border-gray`,children:[(0,G.jsxs)(`p`,{children:[(0,G.jsx)(`u`,{children:`Lorem ipsum dolor sit amet`}),`, consectetur adipisicing elit. Aspernatur aut dolore dolores itaque praesentium reprehenderit sed voluptatum! Exercitationem ipsa magni maiores modi, placeat quas quos reprehenderit rerum sit veniam vitae.`]}),(0,G.jsx)(M,{_hideLabel:!0,_icons:`kolicon-check`,_label:`OK`,_variant:`primary`})]})}),(0,G.jsx)(_e,{_label:`With string array in html`,_suggestions:`['Herr','Frau','Firma']`,_value:`Herr`,_hideLabel:!0}),(0,G.jsx)(De,{_label:`Amount`})]})]})})]})},"performance-test":Oh,skeleton:()=>{let e=(0,E.useRef)(null),t=(0,E.useRef)(null),n=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`millisecond`,maximumFractionDigits:1}),r=new Intl.DateTimeFormat(`de-DE`,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),[i,a]=(0,E.useState)(3),[o,s]=(0,E.useState)([]),[c,l]=(0,E.useState)(``),[u,d]=(0,E.useState)(0),[f,p]=(0,E.useState)(20),[m,h]=(0,E.useState)(0),[g,_]=(0,E.useState)(null),[v,y]=(0,E.useState)(!1),b=(0,E.useRef)(0),x=(0,E.useRef)(20),S=(0,E.useRef)(0),C=e=>{let t=new Date,n=r.format(t),i=u+1;a(e.detail),l(n),d(i),s(t=>[{timestamp:n,count:e.detail,id:i},...t.slice(0,4)])},w=(0,E.useCallback)(()=>{if(S.current+=1,S.current>=x.current){let e=performance.now()-b.current;_(e),y(!1)}},[]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J,{children:(0,G.jsx)(`p`,{children:`KolSkeleton demonstriert Event-Emitter mit automatischem Intervall. Die Komponente emittiert alle 2 Sekunden ein "loaded" Event mit dem aktuellen Count-Wert. Über die Buttons kann die Komponente getoggled und fokussiert werden. Der interne ClickButton erhöht bei Klick den Counter.`})}),(0,G.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-4 mb-4 items-center`,children:[(0,G.jsxs)(`div`,{className:`grid sm:grid-cols-2 gap-4`,children:[(0,G.jsx)(M,{_label:`Toggle Sichtbarkeit`,_on:{onClick:()=>e.current?.toggle()},_variant:`primary`}),(0,G.jsx)(M,{_label:`Fokus auf Button`,_on:{onClick:()=>e.current?.focus()},_variant:`secondary`})]}),(0,G.jsxs)(`div`,{className:`grid sm:grid-cols-2 gap-4 items-center`,children:[(0,G.jsx)(Ae,{ref:t,_label:`Anzahl der Skeletons`,_hideLabel:!0,_min:1,_max:1e4,_step:25,_value:f,_on:{onChange:(e,t)=>{let n=Number(t);p(n),S.current=0,x.current=n,b.current=performance.now(),_(null),y(!0),h(e=>e+1)},onBlur:()=>{t.current&&(t.current._value=f)}}}),(0,G.jsxs)(`span`,{className:`text-sm text-gray-600 whitespace-nowrap`,children:[f,` Skeletons`]})]})]}),(0,G.jsxs)(`div`,{className:`mb-4 px-3 py-2 border border-gray-300 rounded bg-gray-50 flex items-center gap-4 text-sm`,children:[(0,G.jsx)(`span`,{className:`font-semibold`,children:`Benchmark:`}),(0,G.jsx)(`span`,{className:v?`text-orange-600 font-bold`:g===null?`text-gray-400`:`text-green-600`,children:v?`Rendering…`:g===null?`Bereit`:`Fertig`}),(0,G.jsx)(`span`,{className:`font-bold text-blue-600`,"aria-live":`polite`,children:g===null?`—`:n.format(g)})]}),(0,G.jsx)(`div`,{className:`flex flex-wrap gap-4`,children:Array.from({length:f},(t,n)=>(0,G.jsx)(Be,{_name:`Example ${n}`,onLoaded:n===0?C:void 0,onRendered:w,ref:n===0?e:void 0},`skeleton-${m}-${n}`))}),(0,G.jsxs)(`div`,{className:`mt-6 p-4 border border-gray-300 rounded-lg bg-gray-50`,children:[(0,G.jsx)(`h3`,{className:`text-lg font-semibold mb-3`,children:`Event Monitor`}),(0,G.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:`font-medium`,children:`Aktueller Count-Wert:`}),(0,G.jsx)(`p`,{className:`text-2xl font-bold text-blue-600`,"aria-live":`polite`,children:i})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:`font-medium`,children:`Letztes Event:`}),(0,G.jsx)(`p`,{className:`text-lg`,"aria-live":`polite`,children:c||`Noch kein Event empfangen`})]})]}),(0,G.jsxs)(`div`,{className:`mt-4`,children:[(0,G.jsxs)(`p`,{className:`font-medium mb-2`,children:[`Events empfangen: `,(0,G.jsx)(`span`,{className:`font-bold`,children:u})]}),o.length>0&&(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:`font-medium mb-2`,children:`Event-Historie (letzte 5):`}),(0,G.jsx)(`ul`,{className:`text-sm space-y-1 max-h-32 overflow-y-auto`,children:o.map(e=>(0,G.jsxs)(`li`,{className:`flex justify-between items-center p-2 bg-white rounded border`,children:[(0,G.jsxs)(`span`,{children:[`#`,e.id,`: Count = `,e.count]}),(0,G.jsx)(`span`,{className:`text-gray-500`,children:e.timestamp})]},e.id))})]})]}),(0,G.jsx)(`div`,{className:`mt-4 p-3 bg-blue-50 rounded`,children:(0,G.jsxs)(`p`,{className:`text-sm text-blue-800`,children:[`💡 `,(0,G.jsx)(`strong`,{children:`Tipp:`}),` Die Komponente emittiert automatisch alle 2 Sekunden ein Event. Klicke auf den "Click Button" in der Komponente, um den Count-Wert zu erhöhen.`]})})]})]})}}},Rg={...as,...wa,...Ta,...Oa,...ka,...Aa,...Na,...Ia,...Ao,...jo,...Go,...Ko,...Jo,...Zo,...Qo,...os,...ss,...cs,...hs,...vs,...Ns,...Is,...Bs,...Ou,...ju,...Vu,...Wu,...$,...yd,...bd,...xd,...Sd,...Cd,...Od,...kd,...jd,...Md,...Nd,...Bd,...Zd,...Qd,...Xd,...$d,...Fm,...Gm,...Xm,...th,...nh,...ih,...ah,...Lg};Y(localStorage);var zg=({customThemes:e})=>{let t=In(),[n,r]=$r(),i=n.has(`hideMenus`),a=(0,E.useMemo)(()=>{let t=[Ba,...e&&e.length>0?e:Va];return ao(t),t},[e]),o=n.get(`theme`)??co(),[s,c]=(0,E.useState)(()=>Qa.isInitialized(a));(0,E.useEffect)(()=>{let e=!0,t=Qa.isInitialized(a),n=t=>{e&&c(t)};if(t)setTimeout(()=>n(!0),0);else return n(!1),Qa.initialize(a).then(()=>{n(!0)}),()=>{e=!1}},[a]);let l=(e,t=`/`)=>{let n=[];for(let r in e)if(e[r]){let i=e[r],a=`${t}${r}`;typeof i==`function`?n.push(a):typeof i==`object`&&i&&(n=n.concat(l(i,`${a}/`)))}return n},u=e=>{let t=[];for(let n in e)if(e[n]){let r=e[n],i=`/${n}`;if(typeof r==`function`)t.push((0,G.jsx)(lr,{path:i,element:(0,G.jsx)(r,{})},i)),t.push((0,G.jsx)(lr,{path:`${i}/all`,element:(0,G.jsx)(`div`,{className:`d-grid gap-4`,children:a.map(e=>(0,G.jsxs)(`div`,{className:`d-grid gap-2`,children:[(0,G.jsx)(`div`,{className:`mt-4`,children:(0,G.jsx)(`strong`,{children:e.name})}),(0,G.jsx)(`div`,{className:`my-2`,children:(0,G.jsx)(r,{})}),(0,G.jsx)(`hr`,{"aria-hidden":`true`})]},e.key))})},`${i}/all`));else if(typeof r==`object`&&r){let e=Object.keys(r);e.length>0&&t.push((0,G.jsx)(lr,{path:`${i}/*`,element:(0,G.jsxs)(dr,{children:[(0,G.jsx)(lr,{path:`/`,element:(0,G.jsx)(cr,{to:e[0]})}),u(r)]})},i))}}return t},d=(0,E.useMemo)(()=>l(Rg),[]),f=(0,E.useMemo)(()=>u(Rg),[]),p=new Map;d.forEach(e=>{let t=e.split(`/`);p.has(t[1])||p.set(t[1],{label:t[1],value:e})}),so(o),ia(),_a();let m=Ha.includes(o),[h,g]=ra(m);return(0,E.useEffect)(()=>{document.title=`KoliBri-Handout - ${lo(co())} | v${Mi.version}`,document.body.setAttribute(`class`,o),document.body.dataset.theme=o},[o]),s?(0,G.jsx)(va.Provider,{value:i,children:(0,G.jsxs)(`div`,{className:i?``:`app-container`,"data-theme":o,children:[!i&&(0,G.jsx)(Ji,{version:Mi.version,themes:a,theme:o,sample:t.pathname,routes:Rg,routeList:d,buildDate:`2026-11-07T05:23:41.588Z`,commitHash:`7bb2c7b`,colorScheme:h,supportsDark:m,onThemeChange:e=>{r(t=>(t.set(`theme`,e),t)),window.location.reload()},onColorSchemeChange:g}),(0,G.jsx)(`main`,{className:`flex flex-col items-stretch p-4`,id:`route-container`,children:(0,G.jsxs)(dr,{children:[f,(0,G.jsx)(lr,{path:`*`,element:(0,G.jsx)(cr,{to:d[0],replace:!0})}),(0,G.jsx)(lr,{path:`back-page`,element:(0,G.jsx)(Pi,{})})]})})]})}):(0,G.jsx)(va.Provider,{value:i,children:(0,G.jsx)(`main`,{className:`flex flex-col items-stretch p-4`,id:`route-container`,children:(0,G.jsx)(`p`,{children:`Loading data`})})})},Bg=new URL(`https://x`+location.hash.substring(1)).searchParams.has(`enableI18nOverwriting`),Vg=new URL(`https://x`+location.hash.substring(1)).searchParams.has(`enableThemePatching`),Hg=new URL(`https://x`+location.hash.substring(1)).searchParams.has(`enableTagNameTransformer`),Ug=e=>`${e}-sample`;Hg&&ce(Ug);var Wg=async()=>{throw Error(`Environment variable THEME_MODULE not specified. The visual-tests app must be started via "kolibri-visual-test".`)};(async()=>{try{await fi(await Wg(),()=>{ji(window,{transformTagName:Hg?Ug:void 0})},{environment:`production`,reflectInputValues:!0,theme:void 0,translation:{name:`en`},translations:Bg?new Set([e=>e(`en`,{"kol-error":`Tiny error!`}),e=>e(`de`,{"kol-error":`Kleiner Fehler!`})]):void 0,transformTagName:Hg?Ug:void 0}),Vg&&l.patchTheme(`default`,{"KOL-BUTTON":`
88
- button {
89
- border: 1px solid red;
90
- }`,"KOL-SPIN":`
91
- .bg-spin-2 {
92
- background-color: red;
93
- }
94
- .bg-spin-3 {
95
- background-color: gold;
96
- }`},{append:!0})}catch(e){console.warn(`Theme registration failed:`,e)}let e=r(),t=e?[{key:e,name:e}]:void 0;uo(t);let n=document.querySelector(`div#app`);n instanceof HTMLDivElement&&(0,ai.createRoot)(n).render((0,G.jsx)(E.StrictMode,{children:(0,G.jsx)(Jr,{children:(0,G.jsx)(zg,{customThemes:t})})}))})();export{mi as a,xi as i,Ei as n,li as o,Ti as r,Si as t};
97
- //# sourceMappingURL=index-DuT7dHeQ.js.map