@uva-glass/component-library 3.56.0 → 3.57.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 (395) hide show
  1. package/dist/{Accordion-DaCqVof1.js → Accordion-DQNoRsg_.js} +2 -2
  2. package/dist/{Accordion-DaCqVof1.js.map → Accordion-DQNoRsg_.js.map} +1 -1
  3. package/dist/{AccordionCard-CD5H9gR1.js → AccordionCard-C4k8EI39.js} +2 -2
  4. package/dist/{AccordionCard-CD5H9gR1.js.map → AccordionCard-C4k8EI39.js.map} +1 -1
  5. package/dist/{ActionList-C0hD9noC.js → ActionList-D2GC2qPX.js} +2 -2
  6. package/dist/{ActionList-C0hD9noC.js.map → ActionList-D2GC2qPX.js.map} +1 -1
  7. package/dist/{AddCatalogueLinkForm-DNv2tEdF.js → AddCatalogueLinkForm-Di0xm7Ep.js} +5 -5
  8. package/dist/{AddCatalogueLinkForm-DNv2tEdF.js.map → AddCatalogueLinkForm-Di0xm7Ep.js.map} +1 -1
  9. package/dist/{AppStatusBar-BK0yaC4G.js → AppStatusBar-DW-w7Nzp.js} +2 -2
  10. package/dist/{AppStatusBar-BK0yaC4G.js.map → AppStatusBar-DW-w7Nzp.js.map} +1 -1
  11. package/dist/{ButtonGroup-ZqGGZ1rz.js → ButtonGroup-D2z5UWTR.js} +2 -2
  12. package/dist/{ButtonGroup-ZqGGZ1rz.js.map → ButtonGroup-D2z5UWTR.js.map} +1 -1
  13. package/dist/{Card-BH1ySOiP.js → Card-DENYj3eR.js} +3 -3
  14. package/dist/{Card-BH1ySOiP.js.map → Card-DENYj3eR.js.map} +1 -1
  15. package/dist/{CheckboxButtonBar-DpNnwLzI.js → CheckboxButtonBar-OrJSqUTN.js} +5 -5
  16. package/dist/{CheckboxButtonBar-DpNnwLzI.js.map → CheckboxButtonBar-OrJSqUTN.js.map} +1 -1
  17. package/dist/{Column-BwCVSZrG.js → Column-jJBZgP8m.js} +2 -2
  18. package/dist/{Column-BwCVSZrG.js.map → Column-jJBZgP8m.js.map} +1 -1
  19. package/dist/{Container-DK25h_-f.js → Container-DOcrVe7u.js} +2 -2
  20. package/dist/{Container-DK25h_-f.js.map → Container-DOcrVe7u.js.map} +1 -1
  21. package/dist/{ControlsButton-9uR_zW_F.js → ControlsButton-Byx4XQtB.js} +2 -2
  22. package/dist/{ControlsButton-9uR_zW_F.js.map → ControlsButton-Byx4XQtB.js.map} +1 -1
  23. package/dist/{CopyableText-hSqhyUWx.js → CopyableText-BKsM-TuS.js} +2 -2
  24. package/dist/{CopyableText-hSqhyUWx.js.map → CopyableText-BKsM-TuS.js.map} +1 -1
  25. package/dist/{DataTable-C46IkAmF.js → DataTable-Cgn_RKTA.js} +2 -2
  26. package/dist/{DataTable-C46IkAmF.js.map → DataTable-Cgn_RKTA.js.map} +1 -1
  27. package/dist/{Drawer-BbVJqFQI.js → Drawer-fUw0LEuj.js} +3 -3
  28. package/dist/{Drawer-BbVJqFQI.js.map → Drawer-fUw0LEuj.js.map} +1 -1
  29. package/dist/{EmptyStateDataDisplay-IT2P3ius.js → EmptyStateDataDisplay-FBDAGO88.js} +2 -2
  30. package/dist/{EmptyStateDataDisplay-IT2P3ius.js.map → EmptyStateDataDisplay-FBDAGO88.js.map} +1 -1
  31. package/dist/{ExpandableInfoPanel-DMfcJFP3.js → ExpandableInfoPanel-BmbgbAjf.js} +2 -2
  32. package/dist/{ExpandableInfoPanel-DMfcJFP3.js.map → ExpandableInfoPanel-BmbgbAjf.js.map} +1 -1
  33. package/dist/{FeedbackBar-DRbJVniP.js → FeedbackBar-DEDpoNy7.js} +3 -3
  34. package/dist/{FeedbackBar-DRbJVniP.js.map → FeedbackBar-DEDpoNy7.js.map} +1 -1
  35. package/dist/{FeedbackBox-CaSxB4uc.js → FeedbackBox-BpOf_dxg.js} +2 -2
  36. package/dist/{FeedbackBox-CaSxB4uc.js.map → FeedbackBox-BpOf_dxg.js.map} +1 -1
  37. package/dist/{Fieldset-D01_rj_p.js → Fieldset-CgnLyAyS.js} +2 -2
  38. package/dist/{Fieldset-D01_rj_p.js.map → Fieldset-CgnLyAyS.js.map} +1 -1
  39. package/dist/{FormField-CcV84TfI.js → FormField-ByjTkKKq.js} +2 -2
  40. package/dist/{FormField-CcV84TfI.js.map → FormField-ByjTkKKq.js.map} +1 -1
  41. package/dist/{IconButton-CSNMVEG1.js → IconButton-BZVNomru.js} +2 -2
  42. package/dist/{IconButton-CSNMVEG1.js.map → IconButton-BZVNomru.js.map} +1 -1
  43. package/dist/{InfoMessage-COywXu4O.js → InfoMessage-CCEg222m.js} +2 -2
  44. package/dist/{InfoMessage-COywXu4O.js.map → InfoMessage-CCEg222m.js.map} +1 -1
  45. package/dist/{Input-BzKvzbzP.js → Input-CF3dxqTC.js} +2 -2
  46. package/dist/{Input-BzKvzbzP.js.map → Input-CF3dxqTC.js.map} +1 -1
  47. package/dist/{InputField-T01uazlI.js → InputField-asFsxHvx.js} +2 -2
  48. package/dist/{InputField-T01uazlI.js.map → InputField-asFsxHvx.js.map} +1 -1
  49. package/dist/{Label-D0ACrYG3.js → Label-52ny6d06.js} +2 -2
  50. package/dist/{Label-D0ACrYG3.js.map → Label-52ny6d06.js.map} +1 -1
  51. package/dist/{Lexical.prod-8zZnpGo4.js → Lexical.prod-nAj5fF96.js} +2200 -1708
  52. package/dist/Lexical.prod-nAj5fF96.js.map +1 -0
  53. package/dist/LexicalClipboard.prod-B9sWgdS2.js +348 -0
  54. package/dist/LexicalClipboard.prod-B9sWgdS2.js.map +1 -0
  55. package/dist/{LexicalComposerContext.prod-y_BRxu3Z.js → LexicalComposerContext.prod-DumMmRBt.js} +2 -2
  56. package/dist/LexicalComposerContext.prod-DumMmRBt.js.map +1 -0
  57. package/dist/LexicalHtml.prod-RCMsF0qt.js +2139 -0
  58. package/dist/LexicalHtml.prod-RCMsF0qt.js.map +1 -0
  59. package/dist/{LexicalLink.prod-BVUv9-sZ.js → LexicalLink.prod-BcBNTFEb.js} +212 -195
  60. package/dist/LexicalLink.prod-BcBNTFEb.js.map +1 -0
  61. package/dist/LexicalList.prod-THQt9B32.js +890 -0
  62. package/dist/LexicalList.prod-THQt9B32.js.map +1 -0
  63. package/dist/{LexicalTable.prod-D_9Dr3kL.js → LexicalTable.prod-BpHQYpBM.js} +691 -608
  64. package/dist/LexicalTable.prod-BpHQYpBM.js.map +1 -0
  65. package/dist/LexicalUtils.prod-7S6iuu9A.js +347 -0
  66. package/dist/LexicalUtils.prod-7S6iuu9A.js.map +1 -0
  67. package/dist/{LinkContextMenu-CTu2nP2j.js → LinkContextMenu-Byu3AEqp.js} +2 -2
  68. package/dist/{LinkContextMenu-CTu2nP2j.js.map → LinkContextMenu-Byu3AEqp.js.map} +1 -1
  69. package/dist/{MenuLink-La_3ANEL.js → MenuLink-sK2_W2zs.js} +2 -2
  70. package/dist/{MenuLink-La_3ANEL.js.map → MenuLink-sK2_W2zs.js.map} +1 -1
  71. package/dist/{ModalDialog-J7xcPcnS.js → ModalDialog-4V70sxK_.js} +3 -3
  72. package/dist/{ModalDialog-J7xcPcnS.js.map → ModalDialog-4V70sxK_.js.map} +1 -1
  73. package/dist/{MultiSelectBox-BmBxa6PH.js → MultiSelectBox-D34qAgzc.js} +2 -2
  74. package/dist/{MultiSelectBox-BmBxa6PH.js.map → MultiSelectBox-D34qAgzc.js.map} +1 -1
  75. package/dist/{MultiSelectItem-6d8kQgFs.js → MultiSelectItem-hx3Y4Lmk.js} +2 -2
  76. package/dist/{MultiSelectItem-6d8kQgFs.js.map → MultiSelectItem-hx3Y4Lmk.js.map} +1 -1
  77. package/dist/{Notification-BAqCenxt.js → Notification-BhqWENfu.js} +2 -2
  78. package/dist/{Notification-BAqCenxt.js.map → Notification-BhqWENfu.js.map} +1 -1
  79. package/dist/{OverlayCloseButton-j-7mC4Zz.js → OverlayCloseButton-Dt6Yec8G.js} +2 -2
  80. package/dist/{OverlayCloseButton-j-7mC4Zz.js.map → OverlayCloseButton-Dt6Yec8G.js.map} +1 -1
  81. package/dist/{OverlayStepBar-Cj_-0waE.js → OverlayStepBar-BiC06Itd.js} +2 -2
  82. package/dist/{OverlayStepBar-Cj_-0waE.js.map → OverlayStepBar-BiC06Itd.js.map} +1 -1
  83. package/dist/{PageOverlay-DqwdG5ve.js → PageOverlay-BR9ypiar.js} +3 -3
  84. package/dist/{PageOverlay-DqwdG5ve.js.map → PageOverlay-BR9ypiar.js.map} +1 -1
  85. package/dist/{PasteHandlerPlugin-Bc6n-G35.js → PasteHandlerPlugin-DyTXcFsj.js} +6 -6
  86. package/dist/{PasteHandlerPlugin-Bc6n-G35.js.map → PasteHandlerPlugin-DyTXcFsj.js.map} +1 -1
  87. package/dist/{Periods-C5cxLlWt.js → Periods-B4ms3N24.js} +2 -2
  88. package/dist/{Periods-C5cxLlWt.js.map → Periods-B4ms3N24.js.map} +1 -1
  89. package/dist/{ProgrammeCard-CAAOSWKa.js → ProgrammeCard-DdCFNx0d.js} +2 -2
  90. package/dist/{ProgrammeCard-CAAOSWKa.js.map → ProgrammeCard-DdCFNx0d.js.map} +1 -1
  91. package/dist/{RadioButton-CKALsbBb.js → RadioButton-DmBpXwIS.js} +2 -2
  92. package/dist/{RadioButton-CKALsbBb.js.map → RadioButton-DmBpXwIS.js.map} +1 -1
  93. package/dist/{RadioGroup-DhnnBRJu.js → RadioGroup-DlQjMmpa.js} +3 -3
  94. package/dist/{RadioGroup-DhnnBRJu.js.map → RadioGroup-DlQjMmpa.js.map} +1 -1
  95. package/dist/{Repeater-Bnoqqz0X.js → Repeater-BAEfOMZI.js} +2 -2
  96. package/dist/{Repeater-Bnoqqz0X.js.map → Repeater-BAEfOMZI.js.map} +1 -1
  97. package/dist/{SectionNotification-BT0Z2edJ.js → SectionNotification-CN-NdGL8.js} +2 -2
  98. package/dist/{SectionNotification-BT0Z2edJ.js.map → SectionNotification-CN-NdGL8.js.map} +1 -1
  99. package/dist/{Slider-dCmT0VM2.js → Slider-Czd2xAGf.js} +2 -2
  100. package/dist/{Slider-dCmT0VM2.js.map → Slider-Czd2xAGf.js.map} +1 -1
  101. package/dist/{SortableProvider-DV6gWmq_.js → SortableProvider-D-6Ttz0h.js} +2 -2
  102. package/dist/{SortableProvider-DV6gWmq_.js.map → SortableProvider-D-6Ttz0h.js.map} +1 -1
  103. package/dist/{StatusBage-CfEIuIPa.js → StatusBage-hJmNPqtk.js} +2 -2
  104. package/dist/{StatusBage-CfEIuIPa.js.map → StatusBage-hJmNPqtk.js.map} +1 -1
  105. package/dist/{StatusPill-CbJV4t-V.js → StatusPill-vdqU92pW.js} +2 -2
  106. package/dist/{StatusPill-CbJV4t-V.js.map → StatusPill-vdqU92pW.js.map} +1 -1
  107. package/dist/{TableCellContextMenu-9V8mnPmU.js → TableCellContextMenu--4IdoKAU.js} +3 -3
  108. package/dist/{TableCellContextMenu-9V8mnPmU.js.map → TableCellContextMenu--4IdoKAU.js.map} +1 -1
  109. package/dist/TableCellResizerPlugin-Dn8Ks2Lm.js +208 -0
  110. package/dist/TableCellResizerPlugin-Dn8Ks2Lm.js.map +1 -0
  111. package/dist/{TextArea-GR2ZWwLh.js → TextArea-D_VoyGIO.js} +2 -2
  112. package/dist/{TextArea-GR2ZWwLh.js.map → TextArea-D_VoyGIO.js.map} +1 -1
  113. package/dist/{ToggleSwitch-b54K58vY.js → ToggleSwitch-ev4Jh4y-.js} +2 -2
  114. package/dist/{ToggleSwitch-b54K58vY.js.map → ToggleSwitch-ev4Jh4y-.js.map} +1 -1
  115. package/dist/{VarIndicator-DoMWwSUm.js → VarIndicator-D0cnlcIf.js} +2 -2
  116. package/dist/{VarIndicator-DoMWwSUm.js.map → VarIndicator-D0cnlcIf.js.map} +1 -1
  117. package/dist/{chunk-FON5IJBZ-BBb6rYhU.js → chunk-5WKL7XVT-3IraU-Ja.js} +19 -24
  118. package/dist/chunk-5WKL7XVT-3IraU-Ja.js.map +1 -0
  119. package/dist/{client-DJaPTT6C.js → client-BcEWjSJP.js} +2 -2
  120. package/dist/client-BcEWjSJP.js.map +1 -0
  121. package/dist/{clsx-BWCAbrjV.js → clsx-C67XSbzZ.js} +2 -2
  122. package/dist/clsx-C67XSbzZ.js.map +1 -0
  123. package/dist/components/Accordion/Accordion.js +1 -1
  124. package/dist/components/Accordion/Accordion.stories.js +2 -2
  125. package/dist/components/Accordion/Accordion.test.js +4 -4
  126. package/dist/components/Accordion/index.js +1 -1
  127. package/dist/components/AccordionCard/AccordionCard.js +1 -1
  128. package/dist/components/AccordionCard/AccordionCard.stories.js +2 -2
  129. package/dist/components/AccordionCard/AccordionCard.test.js +4 -4
  130. package/dist/components/AccordionCard/index.js +1 -1
  131. package/dist/components/ActionList/ActionList.js +1 -1
  132. package/dist/components/ActionList/ActionList.stories.js +1 -1
  133. package/dist/components/ActionList/ActionList.test.js +4 -4
  134. package/dist/components/ActionList/index.js +1 -1
  135. package/dist/components/AppStatusBar/AppStatusBar.js +1 -1
  136. package/dist/components/AppStatusBar/AppStatusBar.stories.js +1 -1
  137. package/dist/components/AppStatusBar/AppStatusBar.test.js +3 -3
  138. package/dist/components/AppStatusBar/index.js +1 -1
  139. package/dist/components/Attention/Attention.test.js +2 -2
  140. package/dist/components/Backdrop/Backdrop.stories.js +1 -1
  141. package/dist/components/Backdrop/Backdrop.test.js +2 -2
  142. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  143. package/dist/components/ButtonGroup/ButtonGroup.stories.js +2 -2
  144. package/dist/components/ButtonGroup/index.js +1 -1
  145. package/dist/components/Buttons/Button.js +1 -1
  146. package/dist/components/Buttons/Button.stories.js +1 -1
  147. package/dist/components/Buttons/Button.test.js +2 -2
  148. package/dist/components/Buttons/LinkButton.js +1 -1
  149. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  150. package/dist/components/Buttons/LinkButton.test.js +2 -2
  151. package/dist/components/Buttons/MenuButton.js +1 -1
  152. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  153. package/dist/components/Buttons/MenuButton.test.js +2 -2
  154. package/dist/components/Card/Card.js +1 -1
  155. package/dist/components/Card/Card.stories.js +1 -1
  156. package/dist/components/Card/Card.test.js +3 -3
  157. package/dist/components/Card/index.js +1 -1
  158. package/dist/components/Checkbox/Checkbox.stories.js +3 -3
  159. package/dist/components/Checkbox/Checkbox.test.js +3 -3
  160. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +1 -1
  161. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +3 -3
  162. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -3
  163. package/dist/components/CheckboxButtonBar/index.js +1 -1
  164. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  165. package/dist/components/CheckboxTree/CheckboxTree.stories.js +3 -3
  166. package/dist/components/CheckboxTree/index.js +1 -1
  167. package/dist/components/Chip/Chip.stories.js +1 -1
  168. package/dist/components/ControlsButton/ControlsButton.js +1 -1
  169. package/dist/components/ControlsButton/ControlsButton.stories.js +3 -3
  170. package/dist/components/ControlsButton/index.js +1 -1
  171. package/dist/components/CopyableText/CopyableText.js +1 -1
  172. package/dist/components/CopyableText/CopyableText.stories.js +1 -1
  173. package/dist/components/CopyableText/index.js +1 -1
  174. package/dist/components/DataTable/DataTable.js +1 -1
  175. package/dist/components/DataTable/DataTable.stories.js +1 -1
  176. package/dist/components/DataTable/index.js +1 -1
  177. package/dist/components/Drawer/Drawer.js +1 -1
  178. package/dist/components/Drawer/Drawer.stories.js +3 -3
  179. package/dist/components/Drawer/index.js +1 -1
  180. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js +1 -1
  181. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js +1 -1
  182. package/dist/components/EmptyStateDataDisplay/index.js +1 -1
  183. package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js +1 -1
  184. package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js +2 -2
  185. package/dist/components/ExpandableInfoPanel/index.js +1 -1
  186. package/dist/components/FeedbackBar/FeedbackBar.js +1 -1
  187. package/dist/components/FeedbackBar/FeedbackBar.stories.js +3 -3
  188. package/dist/components/FeedbackBar/FeedbackBar.test.js +3 -3
  189. package/dist/components/FeedbackBar/index.js +1 -1
  190. package/dist/components/FeedbackBox/FeedbackBox.js +1 -1
  191. package/dist/components/FeedbackBox/FeedbackBox.stories.js +3 -3
  192. package/dist/components/FeedbackBox/index.js +1 -1
  193. package/dist/components/Fieldset/Fieldset.js +1 -1
  194. package/dist/components/Fieldset/Fieldset.stories.js +5 -5
  195. package/dist/components/Fieldset/index.js +1 -1
  196. package/dist/components/FormField/FormField.js +1 -1
  197. package/dist/components/FormField/FormField.stories.js +4 -4
  198. package/dist/components/FormField/index.js +1 -1
  199. package/dist/components/FormInput/FormInput.js +1 -1
  200. package/dist/components/FormInput/FormInput.stories.js +2 -2
  201. package/dist/components/FormInput/index.js +1 -1
  202. package/dist/components/GridRow/Column/Column.js +1 -1
  203. package/dist/components/GridRow/Column/index.js +1 -1
  204. package/dist/components/GridRow/GridRow.js +2 -2
  205. package/dist/components/IconButton/IconButton.js +1 -1
  206. package/dist/components/IconButton/IconButton.stories.js +2 -2
  207. package/dist/components/IconButton/index.js +1 -1
  208. package/dist/components/InfoMessage/InfoMessage.js +1 -1
  209. package/dist/components/InfoMessage/InfoMessage.stories.js +1 -1
  210. package/dist/components/InfoMessage/index.js +1 -1
  211. package/dist/components/Input/Input.js +1 -1
  212. package/dist/components/Input/Input.stories.js +1 -1
  213. package/dist/components/Input/index.js +1 -1
  214. package/dist/components/InputField/InputField.js +1 -1
  215. package/dist/components/InputField/InputField.stories.js +3 -3
  216. package/dist/components/InputField/index.js +1 -1
  217. package/dist/components/Label/Label.js +1 -1
  218. package/dist/components/Label/Label.stories.js +1 -1
  219. package/dist/components/Label/Label.test.js +3 -3
  220. package/dist/components/Label/index.js +1 -1
  221. package/dist/components/MenuLink/MenuLink.js +1 -1
  222. package/dist/components/MenuLink/MenuLink.stories.js +1 -1
  223. package/dist/components/MenuLink/index.js +1 -1
  224. package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -1
  225. package/dist/components/MetaDataList/MetaDataList.stories.js +1 -1
  226. package/dist/components/ModalDialog/ModalDialog.js +1 -1
  227. package/dist/components/ModalDialog/ModalDialog.stories.js +6 -6
  228. package/dist/components/ModalDialog/index.js +1 -1
  229. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  230. package/dist/components/MultiSelect/MultiSelect.stories.js +3 -3
  231. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  232. package/dist/components/MultiSelect/components/MultiSelectItem.js +1 -1
  233. package/dist/components/MultiSelect/index.js +1 -1
  234. package/dist/components/MultiSelectBox/MultiSelectBox.js +1 -1
  235. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +2 -2
  236. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +3 -3
  237. package/dist/components/MultiSelectBox/index.js +1 -1
  238. package/dist/components/Notification/Notification.js +1 -1
  239. package/dist/components/Notification/Notification.stories.js +2 -2
  240. package/dist/components/Notification/Notification.test.js +3 -3
  241. package/dist/components/Notification/index.js +1 -1
  242. package/dist/components/OverlayCloseButton/OverlayCloseButton.js +1 -1
  243. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +3 -3
  244. package/dist/components/OverlayCloseButton/index.js +1 -1
  245. package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
  246. package/dist/components/OverlayStepBar/OverlayStepBar.stories.js +1 -1
  247. package/dist/components/OverlayStepBar/index.js +1 -1
  248. package/dist/components/PageOverlay/PageOverlay.js +1 -1
  249. package/dist/components/PageOverlay/PageOverlay.stories.js +6 -6
  250. package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -1
  251. package/dist/components/PageOverlay/index.js +1 -1
  252. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  253. package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -2
  254. package/dist/components/PeriodSelector/index.js +1 -1
  255. package/dist/components/Periods/Periods.js +1 -1
  256. package/dist/components/Periods/Periods.stories.js +1 -1
  257. package/dist/components/Periods/index.js +1 -1
  258. package/dist/components/ProgrammeCard/ProgrammeCard.js +1 -1
  259. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
  260. package/dist/components/ProgrammeCard/index.js +1 -1
  261. package/dist/components/RadioButton/RadioButton.js +1 -1
  262. package/dist/components/RadioButton/RadioButton.stories.js +1 -1
  263. package/dist/components/RadioButton/index.js +1 -1
  264. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  265. package/dist/components/RadioGroup/RadioGroup.stories.js +2 -2
  266. package/dist/components/RadioGroup/Radiogroup.test.js +3 -3
  267. package/dist/components/RadioGroup/index.js +1 -1
  268. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  269. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -2
  270. package/dist/components/RadioTabSelector/index.js +1 -1
  271. package/dist/components/Repeater/Repeater.js +1 -1
  272. package/dist/components/Repeater/Repeater.stories.js +2 -2
  273. package/dist/components/Repeater/index.js +1 -1
  274. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  275. package/dist/components/RteEditor/EditorHeader/index.js +1 -1
  276. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +5 -5
  277. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +1 -1
  278. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +1 -1
  279. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +37 -37
  280. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -1
  281. package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -1
  282. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  283. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  284. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -1
  285. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  286. package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -1
  287. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +15 -15
  288. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
  289. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
  290. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
  291. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  292. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  293. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
  294. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js +1 -1
  295. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -1
  296. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +30 -30
  297. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +2 -2
  298. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -1
  299. package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -1
  300. package/dist/components/RteEditor/Plugins/index.js +4 -4
  301. package/dist/components/RteEditor/RteEditor.js +1 -1
  302. package/dist/components/RteEditor/RteEditor.stories.js +2 -2
  303. package/dist/components/RteEditor/helpers.js +4 -4
  304. package/dist/components/RteEditor/index.js +1 -1
  305. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +18 -18
  306. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +17 -17
  307. package/dist/components/SearchField/SearchField.js +1 -1
  308. package/dist/components/SectionNotification/SectionNotification.js +1 -1
  309. package/dist/components/SectionNotification/SectionNotification.stories.js +1 -1
  310. package/dist/components/SectionNotification/index.js +1 -1
  311. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  312. package/dist/components/SelectListbox/components/SelectButton.js +1 -1
  313. package/dist/components/SelectListbox/components/SelectOption.js +1 -1
  314. package/dist/components/Slider/Slider.js +1 -1
  315. package/dist/components/Slider/Slider.stories.js +1 -1
  316. package/dist/components/Slider/index.js +1 -1
  317. package/dist/components/Sortable/Sortable.js +1 -1
  318. package/dist/components/Sortable/Sortable.stories.js +2 -2
  319. package/dist/components/Sortable/SortableProvider.js +1 -1
  320. package/dist/components/Sortable/components/SortableContainer.js +1 -1
  321. package/dist/components/Sortable/components/SortableItem.js +2 -2
  322. package/dist/components/StatusBadge/StatusBadge.stories.js +1 -1
  323. package/dist/components/StatusBadge/StatusBadge.test.js +3 -3
  324. package/dist/components/StatusBadge/StatusBage.js +1 -1
  325. package/dist/components/StatusBadge/index.js +1 -1
  326. package/dist/components/StatusPill/StatusPill.js +1 -1
  327. package/dist/components/StatusPill/StatusPill.stories.js +2 -2
  328. package/dist/components/StatusPill/index.js +1 -1
  329. package/dist/components/TextArea/TextArea.js +1 -1
  330. package/dist/components/TextArea/TextArea.stories.js +2 -2
  331. package/dist/components/TextArea/TextArea.test.js +4 -4
  332. package/dist/components/TextArea/index.js +1 -1
  333. package/dist/components/ToggleSwitch/ToggleSwitch.js +1 -1
  334. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +2 -2
  335. package/dist/components/ToggleSwitch/index.js +1 -1
  336. package/dist/components/Tooltip/Tooltip.stories.js +1 -1
  337. package/dist/components/VarIndicator/VarIndicator.js +1 -1
  338. package/dist/components/VarIndicator/VarIndicator.stories.js +2 -2
  339. package/dist/components/VarIndicator/VarIndicator.test.js +4 -4
  340. package/dist/components/VarIndicator/index.js +1 -1
  341. package/dist/components/WeekSelector/components/WeekSelectorOption.js +1 -1
  342. package/dist/components/index.js +42 -42
  343. package/dist/components-KU0q76JR.js +2150 -0
  344. package/dist/components-KU0q76JR.js.map +1 -0
  345. package/dist/{lib-Do6N-CJR.js → dist-C6Ar8a59.js} +2799 -714
  346. package/dist/dist-C6Ar8a59.js.map +1 -0
  347. package/dist/{esm-BJhEQquH.js → esm-B6Pg-v2v.js} +89 -89
  348. package/dist/esm-B6Pg-v2v.js.map +1 -0
  349. package/dist/{helpers-z8cqBNoz.js → helpers-BzYayeT-.js} +9 -9
  350. package/dist/helpers-BzYayeT-.js.map +1 -0
  351. package/dist/index.js +42 -42
  352. package/dist/{react-18-BAudFSEM.js → react-18-DbbN8Pdb.js} +3 -3
  353. package/dist/react-18-DbbN8Pdb.js.map +1 -0
  354. package/dist/react.esm-56DGmlLk.js +8884 -0
  355. package/dist/react.esm-56DGmlLk.js.map +1 -0
  356. package/dist/setupTests.js +6 -1196
  357. package/dist/setupTests.js.map +1 -1
  358. package/dist/storyComponents/Container/Container.js +1 -1
  359. package/dist/storyComponents/Container/index.js +1 -1
  360. package/dist/storybook__react.d.js +17 -17
  361. package/dist/storybook__react.d.js.map +1 -1
  362. package/dist/{test-Bd7kXF_B.js → test-WxLxsxwA.js} +56 -57
  363. package/dist/test-WxLxsxwA.js.map +1 -0
  364. package/dist/{test-utils-DcI4ZXle.js → test-utils-CMrZ33U0.js} +2 -2
  365. package/dist/test-utils-CMrZ33U0.js.map +1 -0
  366. package/package.json +38 -25
  367. package/dist/Lexical.prod-8zZnpGo4.js.map +0 -1
  368. package/dist/LexicalClipboard.prod-hbxbsROy.js +0 -651
  369. package/dist/LexicalClipboard.prod-hbxbsROy.js.map +0 -1
  370. package/dist/LexicalComposerContext.prod-y_BRxu3Z.js.map +0 -1
  371. package/dist/LexicalExtension.prod-v8IpET5E.js +0 -913
  372. package/dist/LexicalExtension.prod-v8IpET5E.js.map +0 -1
  373. package/dist/LexicalLink.prod-BVUv9-sZ.js.map +0 -1
  374. package/dist/LexicalList.prod-CCPDDafy.js +0 -806
  375. package/dist/LexicalList.prod-CCPDDafy.js.map +0 -1
  376. package/dist/LexicalTable.prod-D_9Dr3kL.js.map +0 -1
  377. package/dist/LexicalUtils.prod-BWhWP8es.js +0 -343
  378. package/dist/LexicalUtils.prod-BWhWP8es.js.map +0 -1
  379. package/dist/TableCellResizerPlugin-Djym940U.js +0 -208
  380. package/dist/TableCellResizerPlugin-Djym940U.js.map +0 -1
  381. package/dist/chunk-FON5IJBZ-BBb6rYhU.js.map +0 -1
  382. package/dist/client-DJaPTT6C.js.map +0 -1
  383. package/dist/clsx-BWCAbrjV.js.map +0 -1
  384. package/dist/components-D6_Sx8Hs.js +0 -1995
  385. package/dist/components-D6_Sx8Hs.js.map +0 -1
  386. package/dist/dist-Dlg0QxSO.js +0 -2225
  387. package/dist/dist-Dlg0QxSO.js.map +0 -1
  388. package/dist/esm-BJhEQquH.js.map +0 -1
  389. package/dist/helpers-z8cqBNoz.js.map +0 -1
  390. package/dist/lib-Do6N-CJR.js.map +0 -1
  391. package/dist/react-18-BAudFSEM.js.map +0 -1
  392. package/dist/react.esm-GvSawg5E.js +0 -3297
  393. package/dist/react.esm-GvSawg5E.js.map +0 -1
  394. package/dist/test-Bd7kXF_B.js.map +0 -1
  395. package/dist/test-utils-DcI4ZXle.js.map +0 -1
@@ -1,2225 +0,0 @@
1
- import { i as e, t } from "./chunk-CWhphoD1.js";
2
- import { t as n } from "./lib-Do6N-CJR.js";
3
- //#region node_modules/min-indent/index.js
4
- var r = /* @__PURE__ */ t(((e, t) => {
5
- t.exports = (e) => {
6
- let t = e.match(/^[ \t]*(?=\S)/gm);
7
- return t ? t.reduce((e, t) => Math.min(e, t.length), Infinity) : 0;
8
- };
9
- })), i = /* @__PURE__ */ t(((e, t) => {
10
- var n = r();
11
- t.exports = (e) => {
12
- let t = n(e);
13
- if (t === 0) return e;
14
- let r = RegExp(`^[ \\t]{${t}}`, "gm");
15
- return e.replace(r, "");
16
- };
17
- })), a = /* @__PURE__ */ t(((e, t) => {
18
- t.exports = (e, t = 1, n) => {
19
- if (n = {
20
- indent: " ",
21
- includeEmptyLines: !1,
22
- ...n
23
- }, typeof e != "string") throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);
24
- if (typeof t != "number") throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);
25
- if (typeof n.indent != "string") throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);
26
- if (t === 0) return e;
27
- let r = n.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
28
- return e.replace(r, n.indent.repeat(t));
29
- };
30
- })), o = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
31
- var n = i(), r = a();
32
- t.exports = (e, t = 0, i) => r(n(e), t, i);
33
- })))(), 1), s = class extends Error {
34
- reason;
35
- filename;
36
- line;
37
- column;
38
- source;
39
- constructor(e, t, n, r, i) {
40
- super(`${e}:${n}:${r}: ${t}`), this.reason = t, this.filename = e, this.line = n, this.column = r, this.source = i;
41
- }
42
- }, c = class {
43
- start;
44
- end;
45
- source;
46
- constructor(e, t, n) {
47
- this.start = e, this.end = t, this.source = n;
48
- }
49
- }, l;
50
- (function(e) {
51
- e.stylesheet = "stylesheet", e.rule = "rule", e.declaration = "declaration", e.comment = "comment", e.atRule = "at-rule", e.container = "container", e.charset = "charset", e.counterStyle = "counter-style", e.document = "document", e.customMedia = "custom-media", e.fontFace = "font-face", e.fontFeatureValues = "font-feature-values", e.host = "host", e.import = "import", e.keyframes = "keyframes", e.keyframe = "keyframe", e.layer = "layer", e.media = "media", e.namespace = "namespace", e.page = "page", e.pageMarginBox = "page-margin-box", e.positionTry = "position-try", e.property = "property", e.scope = "scope", e.startingStyle = "starting-style", e.supports = "supports", e.viewTransition = "view-transition";
52
- })(l ||= {});
53
- var u = (e, t, n) => {
54
- let r = n, i = 1e4;
55
- do {
56
- let n = t.map((t) => e.indexOf(t, r));
57
- n.push(e.indexOf("\\", r));
58
- let a = n.filter((e) => e !== -1);
59
- if (a.length === 0) return -1;
60
- let o = Math.min(...a);
61
- if (e[o] !== "\\") return o;
62
- r = o + 2, i--;
63
- } while (i > 0);
64
- throw Error("Too many escaping");
65
- }, d = (e, t, n) => {
66
- let r = n, i = 1e4;
67
- do {
68
- let n = t.map((t) => e.indexOf(t, r));
69
- n.push(e.indexOf("(", r)), n.push(e.indexOf("\"", r)), n.push(e.indexOf("'", r)), n.push(e.indexOf("\\", r));
70
- let a = n.filter((e) => e !== -1);
71
- if (a.length === 0) return -1;
72
- let o = Math.min(...a);
73
- switch (e[o]) {
74
- case "\\":
75
- r = o + 2;
76
- break;
77
- case "(":
78
- {
79
- let t = d(e, [")"], o + 1);
80
- if (t === -1) return -1;
81
- r = t + 1;
82
- }
83
- break;
84
- case "\"":
85
- {
86
- let t = u(e, ["\""], o + 1);
87
- if (t === -1) return -1;
88
- r = t + 1;
89
- }
90
- break;
91
- case "'":
92
- {
93
- let t = u(e, ["'"], o + 1);
94
- if (t === -1) return -1;
95
- r = t + 1;
96
- }
97
- break;
98
- default: return o;
99
- }
100
- i--;
101
- } while (i > 0);
102
- throw Error("Too many escaping");
103
- }, f = /\/\*[^]*?(?:\*\/|$)/g;
104
- function p(e) {
105
- return e ? e.trim() : "";
106
- }
107
- function m(e, t) {
108
- let n = e && typeof e.type == "string", r = n ? e : t;
109
- for (let t in e) {
110
- let n = e[t];
111
- Array.isArray(n) ? n.forEach((e) => {
112
- m(e, r);
113
- }) : n && typeof n == "object" && m(n, r);
114
- }
115
- return n && Object.defineProperty(e, "parent", {
116
- configurable: !0,
117
- writable: !0,
118
- enumerable: !1,
119
- value: t || null
120
- }), e;
121
- }
122
- var h = (e, t) => {
123
- t ||= {};
124
- let n = 1, r = 1;
125
- function i() {
126
- let e = {
127
- line: n,
128
- column: r
129
- };
130
- return (i) => (i.position = new c(e, {
131
- line: n,
132
- column: r
133
- }, t?.source || ""), _(), i);
134
- }
135
- let a = [];
136
- function o(i) {
137
- let o = new s(t?.source || "", i, n, r, e);
138
- if (!t?.silent) throw o;
139
- a.push(o);
140
- }
141
- function u() {
142
- let t = /^{\s*/.exec(e);
143
- return !!t && (g(t), !0);
144
- }
145
- function h() {
146
- let t = /^}/.exec(e);
147
- return !!t && (g(t), !0);
148
- }
149
- function g(t) {
150
- let i = t[0];
151
- return function(e) {
152
- let t = e.match(/\n/g);
153
- t && (n += t.length);
154
- let i = e.lastIndexOf("\n");
155
- r = ~i ? e.length - i : r + e.length;
156
- }(i), e = e.slice(i.length), t;
157
- }
158
- function _() {
159
- let t = /^\s*/.exec(e);
160
- t && g(t);
161
- }
162
- function v(e) {
163
- e ||= [];
164
- let t = y();
165
- for (; t;) e.push(t), t = y();
166
- return e;
167
- }
168
- function y() {
169
- let t = i();
170
- if (e.charAt(0) !== "/" || e.charAt(1) !== "*") return;
171
- let n = /^\/\*[^]*?\*\//.exec(e);
172
- return n ? (g(n), t({
173
- type: l.comment,
174
- comment: n[0].slice(2, -2)
175
- })) : o("End of comment missing");
176
- }
177
- function b() {
178
- let t = d(e, ["{"]);
179
- if (t === -1 || t === 0) return;
180
- let n = e.substring(0, t);
181
- return g([n]), ((e, t) => {
182
- let n = [], r = 0;
183
- for (; r < e.length;) {
184
- let i = d(e, t, r);
185
- if (i === -1) return n.push(e.substring(r)), n;
186
- n.push(e.substring(r, i)), r = i + 1;
187
- }
188
- return n;
189
- })(p(n).replace(f, ""), [","]).map((e) => p(e));
190
- }
191
- function x() {
192
- let t = i(), n = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(e);
193
- if (!n) return;
194
- g(n);
195
- let r = p(n[0]), a = /^:\s*/.exec(e);
196
- if (!a) return o("property missing ':'");
197
- g(a);
198
- let s = "", c = d(e, [";", "}"]);
199
- c !== -1 && (s = e.substring(0, c), g([s]), s = p(s).replace(f, ""));
200
- let u = t({
201
- type: l.declaration,
202
- property: r.replace(f, ""),
203
- value: s
204
- }), m = /^[;\s]*/.exec(e);
205
- return m && g(m), u;
206
- }
207
- function S() {
208
- let n = [];
209
- if (!u()) return o("missing '{'");
210
- v(n);
211
- let r = x();
212
- for (; r;) n.push(r), v(n), r = x();
213
- for (; t?.silent && e.length && e.charAt(0) !== "}";) {
214
- let t = e.indexOf(";"), i = e.indexOf("}");
215
- if (t === -1 || !(i === -1 || t < i)) break;
216
- for (g([e.substring(0, t + 1)]), _(), v(n), r = x(); r;) n.push(r), v(n), r = x();
217
- }
218
- return h() ? n : o("missing '}'");
219
- }
220
- function C() {
221
- let t = d(e, ["{"]);
222
- if (t === -1) return !1;
223
- let n = d(e, [";"]), r = d(e, ["}"]);
224
- return !(n !== -1 && n < t) && !(r !== -1 && r < t);
225
- }
226
- function w() {
227
- let n = [];
228
- if (!u()) return o("missing '{'");
229
- for (v(n); e.length && e.charAt(0) !== "}";) {
230
- if (e.charAt(0) === "@") {
231
- let e = A();
232
- if (e) {
233
- n.push(e), v(n);
234
- continue;
235
- }
236
- }
237
- if (C()) {
238
- let e = j();
239
- if (e) {
240
- n.push(e), v(n);
241
- continue;
242
- }
243
- }
244
- let r = x();
245
- if (!r) {
246
- if (t?.silent) {
247
- let t = e.indexOf(";"), r = e.indexOf("}");
248
- if (t !== -1 && (r === -1 || t < r)) {
249
- g([e.substring(0, t + 1)]), _(), v(n);
250
- continue;
251
- }
252
- }
253
- break;
254
- }
255
- n.push(r), v(n);
256
- }
257
- return h() ? n : o("missing '}'");
258
- }
259
- function T() {
260
- let n = [];
261
- for (_(), v(n); e.length && e.charAt(0) !== "}";) {
262
- if (e.charAt(0) === "@") {
263
- let e = A();
264
- if (e) {
265
- n.push(e), v(n);
266
- continue;
267
- }
268
- }
269
- if (C()) {
270
- let e = j();
271
- if (e) {
272
- n.push(e), v(n);
273
- continue;
274
- }
275
- }
276
- let r = x();
277
- if (!r) {
278
- if (t?.silent) {
279
- let t = e.indexOf(";"), r = e.indexOf("}");
280
- if (t !== -1 && (r === -1 || t < r)) {
281
- g([e.substring(0, t + 1)]), _(), v(n);
282
- continue;
283
- }
284
- }
285
- break;
286
- }
287
- n.push(r), v(n);
288
- }
289
- return n;
290
- }
291
- function E() {
292
- let t = [], n = i(), r = /^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);
293
- for (; r;) {
294
- let n = g(r);
295
- t.push(n[1]);
296
- let i = /^,\s*/.exec(e);
297
- i && g(i), r = /^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);
298
- }
299
- if (t.length) return n({
300
- type: l.keyframe,
301
- values: t,
302
- declarations: S() || []
303
- });
304
- }
305
- let D = RegExp(`^@(${[
306
- "top-left-corner",
307
- "top-left",
308
- "top-center",
309
- "top-right",
310
- "top-right-corner",
311
- "bottom-left-corner",
312
- "bottom-left",
313
- "bottom-center",
314
- "bottom-right",
315
- "bottom-right-corner",
316
- "left-top",
317
- "left-middle",
318
- "left-bottom",
319
- "right-top",
320
- "right-middle",
321
- "right-bottom"
322
- ].join("|")})(?![\\w-])\\s*`), ee = k("import"), te = k("charset"), O = k("namespace");
323
- function k(t) {
324
- let n = RegExp("^@" + t + "\\s*((?::?[^;'\"]|\"(?:\\\\\"|[^\"])*?\"|'(?:\\\\'|[^'])*?')+)(?:;|$)");
325
- return () => {
326
- let r = i(), a = n.exec(e);
327
- if (!a) return;
328
- let o = g(a), s = { type: t };
329
- return s[t] = o[1].trim(), r(s);
330
- };
331
- }
332
- function A() {
333
- if (e[0] === "@") return function() {
334
- let t = i(), n = /^@([-\w]+)?keyframes\s*/.exec(e);
335
- if (!n) return;
336
- let r = g(n)[1], a = /^([-\w]+)\s*/.exec(e);
337
- if (!a) return o("@keyframes missing name");
338
- let s = g(a)[1];
339
- if (!u()) return o("@keyframes missing '{'");
340
- let c = v(), d = E();
341
- for (; d;) c.push(d), c = c.concat(v()), d = E();
342
- return h() ? t({
343
- type: l.keyframes,
344
- name: s,
345
- vendor: r,
346
- keyframes: c
347
- }) : o("@keyframes missing '}'");
348
- }() || function() {
349
- let t = i(), n = /^@media *([^{]+)/.exec(e);
350
- if (!n) return;
351
- let r = p(g(n)[1]);
352
- if (!u()) return o("@media missing '{'");
353
- let a = T();
354
- return h() ? t({
355
- type: l.media,
356
- media: r,
357
- rules: a
358
- }) : o("@media missing '}'");
359
- }() || function() {
360
- let t = i(), n = /^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(e);
361
- if (!n) return;
362
- let r = g(n);
363
- return t({
364
- type: l.customMedia,
365
- name: p(r[1]),
366
- media: p(r[2])
367
- });
368
- }() || function() {
369
- let t = i(), n = /^@supports *([^{]+)/.exec(e);
370
- if (!n) return;
371
- let r = p(g(n)[1]);
372
- if (!u()) return o("@supports missing '{'");
373
- let a = T();
374
- return h() ? t({
375
- type: l.supports,
376
- supports: r,
377
- rules: a
378
- }) : o("@supports missing '}'");
379
- }() || ee() || te() || O() || function() {
380
- let t = i(), n = /^@([-\w]+)?document *([^{]+)/.exec(e);
381
- if (!n) return;
382
- let r = g(n), a = p(r[1]), s = p(r[2]);
383
- if (!u()) return o("@document missing '{'");
384
- let c = T();
385
- return h() ? t({
386
- type: l.document,
387
- document: s,
388
- vendor: a,
389
- rules: c
390
- }) : o("@document missing '}'");
391
- }() || function() {
392
- let t = i(), n = /^@page */.exec(e);
393
- if (!n) return;
394
- g(n);
395
- let r = b() || [];
396
- if (!u()) return o("@page missing '{'");
397
- let a = [];
398
- for (v(a); e.length && e.charAt(0) !== "}";) {
399
- if (e.charAt(0) === "@") {
400
- let e = A();
401
- if (e) {
402
- a.push(e), v(a);
403
- continue;
404
- }
405
- }
406
- let t = x();
407
- if (!t) break;
408
- a.push(t), v(a);
409
- }
410
- return h() ? t({
411
- type: l.page,
412
- selectors: r,
413
- declarations: a
414
- }) : o("@page missing '}'");
415
- }() || function() {
416
- let t = i(), n = /^@host\s*/.exec(e);
417
- if (!n) return;
418
- if (g(n), !u()) return o("@host missing '{'");
419
- let r = T();
420
- return h() ? t({
421
- type: l.host,
422
- rules: r
423
- }) : o("@host missing '}'");
424
- }() || function() {
425
- let t = i(), n = /^@font-face\s*/.exec(e);
426
- if (!n) return;
427
- if (g(n), !u()) return o("@font-face missing '{'");
428
- let r = v(), a = x();
429
- for (; a;) r.push(a), r = r.concat(v()), a = x();
430
- return h() ? t({
431
- type: l.fontFace,
432
- declarations: r
433
- }) : o("@font-face missing '}'");
434
- }() || function() {
435
- let t = i(), n = /^@font-feature-values\s+([^{]+)/.exec(e);
436
- if (!n) return;
437
- let r = p(g(n)[1]);
438
- if (!u()) return o("@font-feature-values missing '{'");
439
- let a = T();
440
- return h() ? t({
441
- type: l.fontFeatureValues,
442
- fontFamily: r,
443
- rules: a
444
- }) : o("@font-feature-values missing '}'");
445
- }() || function() {
446
- let t = i(), n = /^@container *([^{]+)/.exec(e);
447
- if (!n) return;
448
- let r = p(g(n)[1]);
449
- if (!u()) return o("@container missing '{'");
450
- let a = T();
451
- return h() ? t({
452
- type: l.container,
453
- container: r,
454
- rules: a
455
- }) : o("@container missing '}'");
456
- }() || function() {
457
- let t = i(), n = /^@starting-style\s*/.exec(e);
458
- if (!n) return;
459
- if (g(n), !u()) return o("@starting-style missing '{'");
460
- let r = T();
461
- return h() ? t({
462
- type: l.startingStyle,
463
- rules: r
464
- }) : o("@starting-style missing '}'");
465
- }() || function() {
466
- let t = i(), n = /^@layer *([^{;@]+)/.exec(e);
467
- if (!n) return;
468
- let r = p(g(n)[1]);
469
- if (!u()) {
470
- let n = /^[;\s]*/.exec(e);
471
- return n && g(n), t({
472
- type: l.layer,
473
- layer: r
474
- });
475
- }
476
- let a = T();
477
- return h() ? t({
478
- type: l.layer,
479
- layer: r,
480
- rules: a
481
- }) : o("@layer missing '}'");
482
- }() || function() {
483
- let t = i(), n = /^@property\s+(--[-\w]+)\s*/.exec(e);
484
- if (!n) return;
485
- let r = g(n)[1];
486
- if (!u()) return o("@property missing '{'");
487
- let a = v(), s = x();
488
- for (; s;) a.push(s), a = a.concat(v()), s = x();
489
- return h() ? t({
490
- type: l.property,
491
- name: r,
492
- declarations: a
493
- }) : o("@property missing '}'");
494
- }() || function() {
495
- let t = i(), n = /^@counter-style\s+([-\w]+)\s*/.exec(e);
496
- if (!n) return;
497
- let r = g(n)[1];
498
- if (!u()) return o("@counter-style missing '{'");
499
- let a = v(), s = x();
500
- for (; s;) a.push(s), a = a.concat(v()), s = x();
501
- return h() ? t({
502
- type: l.counterStyle,
503
- name: r,
504
- declarations: a
505
- }) : o("@counter-style missing '}'");
506
- }() || function() {
507
- let t = i(), n = /^@scope\s*([^{]*)/.exec(e);
508
- if (!n) return;
509
- let r = p(g(n)[1]);
510
- if (!u()) return o("@scope missing '{'");
511
- let a = T();
512
- return h() ? t({
513
- type: l.scope,
514
- scope: r,
515
- rules: a
516
- }) : o("@scope missing '}'");
517
- }() || function() {
518
- let t = i(), n = /^@view-transition\s*/.exec(e);
519
- if (!n) return;
520
- if (g(n), !u()) return o("@view-transition missing '{'");
521
- let r = v(), a = x();
522
- for (; a;) r.push(a), r = r.concat(v()), a = x();
523
- return h() ? t({
524
- type: l.viewTransition,
525
- declarations: r
526
- }) : o("@view-transition missing '}'");
527
- }() || function() {
528
- let t = i(), n = /^@position-try\s+(--[-\w]+)\s*/.exec(e);
529
- if (!n) return;
530
- let r = g(n)[1];
531
- if (!u()) return o("@position-try missing '{'");
532
- let a = v(), s = x();
533
- for (; s;) a.push(s), a = a.concat(v()), s = x();
534
- return h() ? t({
535
- type: l.positionTry,
536
- name: r,
537
- declarations: a
538
- }) : o("@position-try missing '}'");
539
- }() || function() {
540
- let t = i(), n = D.exec(e);
541
- if (!n) return;
542
- let r = g(n)[1];
543
- if (!u()) return o(`@${r} missing '{'`);
544
- let a = v(), s = x();
545
- for (; s;) a.push(s), a = a.concat(v()), s = x();
546
- return h() ? t({
547
- type: l.pageMarginBox,
548
- name: r,
549
- declarations: a
550
- }) : o(`@${r} missing '}'`);
551
- }() || function() {
552
- let t = i(), n = /^@([-\w]+)\s*/.exec(e);
553
- if (!n) return;
554
- let r = g(n)[1], a = "", s = d(e, ["{", ";"]);
555
- if (s !== -1 && s > 0 && (a = p(e.substring(0, s)), g([e.substring(0, s)])), u()) {
556
- let e = T();
557
- return h() ? t({
558
- type: l.atRule,
559
- name: r,
560
- prelude: a,
561
- rules: e
562
- }) : o(`@${r} missing '}'`);
563
- }
564
- let c = /^[;\s]*/.exec(e);
565
- return c && g(c), t({
566
- type: l.atRule,
567
- name: r,
568
- prelude: a
569
- });
570
- }();
571
- }
572
- function j() {
573
- let e = i(), t = b();
574
- return t ? (v(), e({
575
- type: l.rule,
576
- selectors: t,
577
- declarations: w() || []
578
- })) : o("selector missing");
579
- }
580
- return m(function() {
581
- let n = function() {
582
- let n, r = [];
583
- for (_(), v(r); e.length;) {
584
- if (e.charAt(0) === "}") {
585
- if (t?.silent) {
586
- o("extra '}'"), g(["}"]), _(), v(r);
587
- continue;
588
- }
589
- break;
590
- }
591
- if (n = A() || j(), !n) {
592
- if (t?.silent) {
593
- g([e.charAt(0)]), _(), v(r);
594
- continue;
595
- }
596
- break;
597
- }
598
- r.push(n), v(r);
599
- }
600
- return r;
601
- }();
602
- return {
603
- type: l.stylesheet,
604
- stylesheet: {
605
- source: t?.source,
606
- rules: n,
607
- parsingErrors: a
608
- }
609
- };
610
- }());
611
- }, g = Object.prototype.toString;
612
- function _(e) {
613
- return typeof e == "function" || g.call(e) === "[object Function]";
614
- }
615
- function v(e) {
616
- var t = Number(e);
617
- return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t));
618
- }
619
- var y = 2 ** 53 - 1;
620
- function b(e) {
621
- var t = v(e);
622
- return Math.min(Math.max(t, 0), y);
623
- }
624
- function x(e, t) {
625
- var n = Array, r = Object(e);
626
- if (e == null) throw TypeError("Array.from requires an array-like object - not null or undefined");
627
- if (t !== void 0 && !_(t)) throw TypeError("Array.from: when provided, the second argument must be a function");
628
- for (var i = b(r.length), a = _(n) ? Object(new n(i)) : Array(i), o = 0, s; o < i;) s = r[o], t ? a[o] = t(s, o) : a[o] = s, o += 1;
629
- return a.length = i, a;
630
- }
631
- //#endregion
632
- //#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
633
- function S(e) {
634
- "@babel/helpers - typeof";
635
- return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
636
- return typeof e;
637
- } : function(e) {
638
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
639
- }, S(e);
640
- }
641
- function C(e, t) {
642
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
643
- }
644
- function w(e, t) {
645
- for (var n = 0; n < t.length; n++) {
646
- var r = t[n];
647
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, D(r.key), r);
648
- }
649
- }
650
- function T(e, t, n) {
651
- return t && w(e.prototype, t), n && w(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
652
- }
653
- function E(e, t, n) {
654
- return t = D(t), t in e ? Object.defineProperty(e, t, {
655
- value: n,
656
- enumerable: !0,
657
- configurable: !0,
658
- writable: !0
659
- }) : e[t] = n, e;
660
- }
661
- function D(e) {
662
- var t = ee(e, "string");
663
- return S(t) === "symbol" ? t : String(t);
664
- }
665
- function ee(e, t) {
666
- if (S(e) !== "object" || e === null) return e;
667
- var n = e[Symbol.toPrimitive];
668
- if (n !== void 0) {
669
- var r = n.call(e, t || "default");
670
- if (S(r) !== "object") return r;
671
- throw TypeError("@@toPrimitive must return a primitive value.");
672
- }
673
- return (t === "string" ? String : Number)(e);
674
- }
675
- var te = typeof Set > "u" ? Set : /* @__PURE__ */ function() {
676
- function e() {
677
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
678
- C(this, e), E(this, "items", void 0), this.items = t;
679
- }
680
- return T(e, [
681
- {
682
- key: "add",
683
- value: function(e) {
684
- return this.has(e) === !1 && this.items.push(e), this;
685
- }
686
- },
687
- {
688
- key: "clear",
689
- value: function() {
690
- this.items = [];
691
- }
692
- },
693
- {
694
- key: "delete",
695
- value: function(e) {
696
- var t = this.items.length;
697
- return this.items = this.items.filter(function(t) {
698
- return t !== e;
699
- }), t !== this.items.length;
700
- }
701
- },
702
- {
703
- key: "forEach",
704
- value: function(e) {
705
- var t = this;
706
- this.items.forEach(function(n) {
707
- e(n, n, t);
708
- });
709
- }
710
- },
711
- {
712
- key: "has",
713
- value: function(e) {
714
- return this.items.indexOf(e) !== -1;
715
- }
716
- },
717
- {
718
- key: "size",
719
- get: function() {
720
- return this.items.length;
721
- }
722
- }
723
- ]), e;
724
- }();
725
- //#endregion
726
- //#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/getRole.mjs
727
- function O(e) {
728
- return e.localName ?? e.tagName.toLowerCase();
729
- }
730
- var k = {
731
- article: "article",
732
- aside: "complementary",
733
- button: "button",
734
- datalist: "listbox",
735
- dd: "definition",
736
- details: "group",
737
- dialog: "dialog",
738
- dt: "term",
739
- fieldset: "group",
740
- figure: "figure",
741
- form: "form",
742
- footer: "contentinfo",
743
- h1: "heading",
744
- h2: "heading",
745
- h3: "heading",
746
- h4: "heading",
747
- h5: "heading",
748
- h6: "heading",
749
- header: "banner",
750
- hr: "separator",
751
- html: "document",
752
- legend: "legend",
753
- li: "listitem",
754
- math: "math",
755
- main: "main",
756
- menu: "list",
757
- nav: "navigation",
758
- ol: "list",
759
- optgroup: "group",
760
- option: "option",
761
- output: "status",
762
- progress: "progressbar",
763
- section: "region",
764
- summary: "button",
765
- table: "table",
766
- tbody: "rowgroup",
767
- textarea: "textbox",
768
- tfoot: "rowgroup",
769
- td: "cell",
770
- th: "columnheader",
771
- thead: "rowgroup",
772
- tr: "row",
773
- ul: "list"
774
- }, A = {
775
- caption: new Set(["aria-label", "aria-labelledby"]),
776
- code: new Set(["aria-label", "aria-labelledby"]),
777
- deletion: new Set(["aria-label", "aria-labelledby"]),
778
- emphasis: new Set(["aria-label", "aria-labelledby"]),
779
- generic: new Set([
780
- "aria-label",
781
- "aria-labelledby",
782
- "aria-roledescription"
783
- ]),
784
- insertion: new Set(["aria-label", "aria-labelledby"]),
785
- none: new Set(["aria-label", "aria-labelledby"]),
786
- paragraph: new Set(["aria-label", "aria-labelledby"]),
787
- presentation: new Set(["aria-label", "aria-labelledby"]),
788
- strong: new Set(["aria-label", "aria-labelledby"]),
789
- subscript: new Set(["aria-label", "aria-labelledby"]),
790
- superscript: new Set(["aria-label", "aria-labelledby"])
791
- };
792
- function j(e, t) {
793
- return [
794
- "aria-atomic",
795
- "aria-busy",
796
- "aria-controls",
797
- "aria-current",
798
- "aria-description",
799
- "aria-describedby",
800
- "aria-details",
801
- "aria-dropeffect",
802
- "aria-flowto",
803
- "aria-grabbed",
804
- "aria-hidden",
805
- "aria-keyshortcuts",
806
- "aria-label",
807
- "aria-labelledby",
808
- "aria-live",
809
- "aria-owns",
810
- "aria-relevant",
811
- "aria-roledescription"
812
- ].some(function(n) {
813
- var r;
814
- return e.hasAttribute(n) && !((r = A[t]) != null && r.has(n));
815
- });
816
- }
817
- function ne(e, t) {
818
- return j(e, t);
819
- }
820
- function re(e) {
821
- var t = ae(e);
822
- if (t === null || M.indexOf(t) !== -1) {
823
- var n = ie(e);
824
- if (M.indexOf(t || "") === -1 || ne(e, n || "")) return n;
825
- }
826
- return t;
827
- }
828
- function ie(e) {
829
- var t = k[O(e)];
830
- if (t !== void 0) return t;
831
- switch (O(e)) {
832
- case "a":
833
- case "area":
834
- case "link":
835
- if (e.hasAttribute("href")) return "link";
836
- break;
837
- case "img": return e.getAttribute("alt") === "" && !ne(e, "img") ? "presentation" : "img";
838
- case "input":
839
- var n = e.type;
840
- switch (n) {
841
- case "button":
842
- case "image":
843
- case "reset":
844
- case "submit": return "button";
845
- case "checkbox":
846
- case "radio": return n;
847
- case "range": return "slider";
848
- case "email":
849
- case "tel":
850
- case "text":
851
- case "url": return e.hasAttribute("list") ? "combobox" : "textbox";
852
- case "search": return e.hasAttribute("list") ? "combobox" : "searchbox";
853
- case "number": return "spinbutton";
854
- default: return null;
855
- }
856
- case "select": return e.hasAttribute("multiple") || e.size > 1 ? "listbox" : "combobox";
857
- }
858
- return null;
859
- }
860
- function ae(e) {
861
- var t = e.getAttribute("role");
862
- if (t !== null) {
863
- var n = t.trim().split(" ")[0];
864
- if (n.length > 0) return n;
865
- }
866
- return null;
867
- }
868
- //#endregion
869
- //#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/util.mjs
870
- var M = ["presentation", "none"];
871
- function N(e) {
872
- return e !== null && e.nodeType === e.ELEMENT_NODE;
873
- }
874
- function oe(e) {
875
- return N(e) && O(e) === "caption";
876
- }
877
- function P(e) {
878
- return N(e) && O(e) === "input";
879
- }
880
- function se(e) {
881
- return N(e) && O(e) === "optgroup";
882
- }
883
- function ce(e) {
884
- return N(e) && O(e) === "select";
885
- }
886
- function le(e) {
887
- return N(e) && O(e) === "table";
888
- }
889
- function ue(e) {
890
- return N(e) && O(e) === "textarea";
891
- }
892
- function de(e) {
893
- var t = (e.ownerDocument === null ? e : e.ownerDocument).defaultView;
894
- if (t === null) throw TypeError("no window available");
895
- return t;
896
- }
897
- function fe(e) {
898
- return N(e) && O(e) === "fieldset";
899
- }
900
- function pe(e) {
901
- return N(e) && O(e) === "legend";
902
- }
903
- function me(e) {
904
- return N(e) && O(e) === "slot";
905
- }
906
- function he(e) {
907
- return N(e) && e.ownerSVGElement !== void 0;
908
- }
909
- function ge(e) {
910
- return N(e) && O(e) === "svg";
911
- }
912
- function _e(e) {
913
- return he(e) && O(e) === "title";
914
- }
915
- function F(e, t) {
916
- if (N(e) && e.hasAttribute(t)) {
917
- var n = e.getAttribute(t).split(" "), r = e.getRootNode ? e.getRootNode() : e.ownerDocument;
918
- return n.map(function(e) {
919
- return r.getElementById(e);
920
- }).filter(function(e) {
921
- return e !== null;
922
- });
923
- }
924
- return [];
925
- }
926
- function I(e, t) {
927
- return N(e) ? t.indexOf(re(e)) !== -1 : !1;
928
- }
929
- //#endregion
930
- //#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
931
- function ve(e) {
932
- return e.trim().replace(/\s\s+/g, " ");
933
- }
934
- function ye(e, t) {
935
- if (!N(e)) return !1;
936
- if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true") return !0;
937
- var n = t(e);
938
- return n.getPropertyValue("display") === "none" || n.getPropertyValue("visibility") === "hidden";
939
- }
940
- function be(e) {
941
- return I(e, [
942
- "button",
943
- "combobox",
944
- "listbox",
945
- "textbox"
946
- ]) || xe(e, "range");
947
- }
948
- function xe(e, t) {
949
- if (!N(e)) return !1;
950
- switch (t) {
951
- case "range": return I(e, [
952
- "meter",
953
- "progressbar",
954
- "scrollbar",
955
- "slider",
956
- "spinbutton"
957
- ]);
958
- default: throw TypeError(`No knowledge about abstract role '${t}'. This is likely a bug :(`);
959
- }
960
- }
961
- function Se(e, t) {
962
- var n = x(e.querySelectorAll(t));
963
- return F(e, "aria-owns").forEach(function(e) {
964
- n.push.apply(n, x(e.querySelectorAll(t)));
965
- }), n;
966
- }
967
- function Ce(e) {
968
- return ce(e) ? e.selectedOptions || Se(e, "[selected]") : Se(e, "[aria-selected=\"true\"]");
969
- }
970
- function we(e) {
971
- return I(e, M);
972
- }
973
- function Te(e) {
974
- return oe(e);
975
- }
976
- function Ee(e) {
977
- return I(e, [
978
- "button",
979
- "cell",
980
- "checkbox",
981
- "columnheader",
982
- "gridcell",
983
- "heading",
984
- "label",
985
- "legend",
986
- "link",
987
- "menuitem",
988
- "menuitemcheckbox",
989
- "menuitemradio",
990
- "option",
991
- "radio",
992
- "row",
993
- "rowheader",
994
- "switch",
995
- "tab",
996
- "tooltip",
997
- "treeitem"
998
- ]);
999
- }
1000
- function De(e) {
1001
- return !1;
1002
- }
1003
- function Oe(e) {
1004
- return P(e) || ue(e) ? e.value : e.textContent || "";
1005
- }
1006
- function ke(e) {
1007
- var t = e.getPropertyValue("content");
1008
- return /^["'].*["']$/.test(t) ? t.slice(1, -1) : "";
1009
- }
1010
- function Ae(e) {
1011
- var t = O(e);
1012
- return t === "button" || t === "input" && e.getAttribute("type") !== "hidden" || t === "meter" || t === "output" || t === "progress" || t === "select" || t === "textarea";
1013
- }
1014
- function je(e) {
1015
- if (Ae(e)) return e;
1016
- var t = null;
1017
- return e.childNodes.forEach(function(e) {
1018
- if (t === null && N(e)) {
1019
- var n = je(e);
1020
- n !== null && (t = n);
1021
- }
1022
- }), t;
1023
- }
1024
- function Me(e) {
1025
- if (e.control !== void 0) return e.control;
1026
- var t = e.getAttribute("for");
1027
- return t === null ? je(e) : e.ownerDocument.getElementById(t);
1028
- }
1029
- function Ne(e) {
1030
- var t = e.labels;
1031
- if (t === null) return t;
1032
- if (t !== void 0) return x(t);
1033
- if (!Ae(e)) return null;
1034
- var n = e.ownerDocument;
1035
- return x(n.querySelectorAll("label")).filter(function(t) {
1036
- return Me(t) === e;
1037
- });
1038
- }
1039
- function Pe(e) {
1040
- var t = e.assignedNodes();
1041
- return t.length === 0 ? x(e.childNodes) : t;
1042
- }
1043
- function Fe(e) {
1044
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = new te(), r = de(e), i = t.compute, a = i === void 0 ? "name" : i, o = t.computedStyleSupportsPseudoElements, s = o === void 0 ? t.getComputedStyle !== void 0 : o, c = t.getComputedStyle, l = c === void 0 ? r.getComputedStyle.bind(r) : c, u = t.hidden, d = u === void 0 ? !1 : u;
1045
- function f(e, t) {
1046
- var n = "";
1047
- if (N(e) && s && (n = `${ke(l(e, "::before"))} ${n}`), (me(e) ? Pe(e) : x(e.childNodes).concat(F(e, "aria-owns"))).forEach(function(e) {
1048
- var r = g(e, {
1049
- isEmbeddedInLabel: t.isEmbeddedInLabel,
1050
- isReferenced: !1,
1051
- recursion: !0
1052
- }), i = (N(e) ? l(e).getPropertyValue("display") : "inline") === "inline" ? "" : " ";
1053
- n += `${i}${r}${i}`;
1054
- }), N(e) && s) {
1055
- var r = ke(l(e, "::after"));
1056
- n = `${n} ${r}`;
1057
- }
1058
- return n.trim();
1059
- }
1060
- function p(e, t) {
1061
- var r = e.getAttributeNode(t);
1062
- return r !== null && !n.has(r) && r.value.trim() !== "" ? (n.add(r), r.value) : null;
1063
- }
1064
- function m(e) {
1065
- return N(e) ? p(e, "title") : null;
1066
- }
1067
- function h(e) {
1068
- if (!N(e)) return null;
1069
- if (fe(e)) {
1070
- n.add(e);
1071
- for (var t = x(e.childNodes), r = 0; r < t.length; r += 1) {
1072
- var i = t[r];
1073
- if (pe(i)) return g(i, {
1074
- isEmbeddedInLabel: !1,
1075
- isReferenced: !1,
1076
- recursion: !1
1077
- });
1078
- }
1079
- } else if (le(e)) {
1080
- n.add(e);
1081
- for (var a = x(e.childNodes), o = 0; o < a.length; o += 1) {
1082
- var s = a[o];
1083
- if (oe(s)) return g(s, {
1084
- isEmbeddedInLabel: !1,
1085
- isReferenced: !1,
1086
- recursion: !1
1087
- });
1088
- }
1089
- } else if (ge(e)) {
1090
- n.add(e);
1091
- for (var c = x(e.childNodes), l = 0; l < c.length; l += 1) {
1092
- var u = c[l];
1093
- if (_e(u)) return u.textContent;
1094
- }
1095
- return null;
1096
- } else if (O(e) === "img" || O(e) === "area") {
1097
- var d = p(e, "alt");
1098
- if (d !== null) return d;
1099
- } else if (se(e)) {
1100
- var m = p(e, "label");
1101
- if (m !== null) return m;
1102
- }
1103
- if (P(e) && (e.type === "button" || e.type === "submit" || e.type === "reset")) {
1104
- var h = p(e, "value");
1105
- if (h !== null) return h;
1106
- if (e.type === "submit") return "Submit";
1107
- if (e.type === "reset") return "Reset";
1108
- }
1109
- var _ = Ne(e);
1110
- if (_ !== null && _.length !== 0) return n.add(e), x(_).map(function(e) {
1111
- return g(e, {
1112
- isEmbeddedInLabel: !0,
1113
- isReferenced: !1,
1114
- recursion: !0
1115
- });
1116
- }).filter(function(e) {
1117
- return e.length > 0;
1118
- }).join(" ");
1119
- if (P(e) && e.type === "image") {
1120
- var v = p(e, "alt");
1121
- if (v !== null) return v;
1122
- var y = p(e, "title");
1123
- return y === null ? "Submit Query" : y;
1124
- }
1125
- if (I(e, ["button"])) {
1126
- var b = f(e, {
1127
- isEmbeddedInLabel: !1,
1128
- isReferenced: !1
1129
- });
1130
- if (b !== "") return b;
1131
- }
1132
- return null;
1133
- }
1134
- function g(e, t) {
1135
- if (n.has(e)) return "";
1136
- if (!d && ye(e, l) && !t.isReferenced) return n.add(e), "";
1137
- var r = N(e) ? e.getAttributeNode("aria-labelledby") : null, i = r !== null && !n.has(r) ? F(e, "aria-labelledby") : [];
1138
- if (a === "name" && !t.isReferenced && i.length > 0) return n.add(r), i.map(function(e) {
1139
- return g(e, {
1140
- isEmbeddedInLabel: t.isEmbeddedInLabel,
1141
- isReferenced: !0,
1142
- recursion: !1
1143
- });
1144
- }).join(" ");
1145
- var o = t.recursion && be(e) && a === "name";
1146
- if (!o) {
1147
- var s = (N(e) && e.getAttribute("aria-label") || "").trim();
1148
- if (s !== "" && a === "name") return n.add(e), s;
1149
- if (!we(e)) {
1150
- var c = h(e);
1151
- if (c !== null) return n.add(e), c;
1152
- }
1153
- }
1154
- if (I(e, ["menu"])) return n.add(e), "";
1155
- if (o || t.isEmbeddedInLabel || t.isReferenced) {
1156
- if (I(e, ["combobox", "listbox"])) {
1157
- n.add(e);
1158
- var u = Ce(e);
1159
- return u.length === 0 ? P(e) ? e.value : "" : x(u).map(function(e) {
1160
- return g(e, {
1161
- isEmbeddedInLabel: t.isEmbeddedInLabel,
1162
- isReferenced: !1,
1163
- recursion: !0
1164
- });
1165
- }).join(" ");
1166
- }
1167
- if (xe(e, "range")) return n.add(e), e.hasAttribute("aria-valuetext") ? e.getAttribute("aria-valuetext") : e.hasAttribute("aria-valuenow") ? e.getAttribute("aria-valuenow") : e.getAttribute("value") || "";
1168
- if (I(e, ["textbox"])) return n.add(e), Oe(e);
1169
- }
1170
- if (Ee(e) || N(e) && t.isReferenced || Te(e) || De(e)) {
1171
- var p = f(e, {
1172
- isEmbeddedInLabel: t.isEmbeddedInLabel,
1173
- isReferenced: !1
1174
- });
1175
- if (p !== "") return n.add(e), p;
1176
- }
1177
- if (e.nodeType === e.TEXT_NODE) return n.add(e), e.textContent || "";
1178
- if (t.recursion) return n.add(e), f(e, {
1179
- isEmbeddedInLabel: t.isEmbeddedInLabel,
1180
- isReferenced: !1
1181
- });
1182
- var _ = m(e);
1183
- return _ === null ? (n.add(e), "") : (n.add(e), _);
1184
- }
1185
- return ve(g(e, {
1186
- isEmbeddedInLabel: !1,
1187
- isReferenced: a === "description",
1188
- recursion: !1
1189
- }));
1190
- }
1191
- //#endregion
1192
- //#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-description.mjs
1193
- function L(e) {
1194
- "@babel/helpers - typeof";
1195
- return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1196
- return typeof e;
1197
- } : function(e) {
1198
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1199
- }, L(e);
1200
- }
1201
- function Ie(e, t) {
1202
- var n = Object.keys(e);
1203
- if (Object.getOwnPropertySymbols) {
1204
- var r = Object.getOwnPropertySymbols(e);
1205
- t && (r = r.filter(function(t) {
1206
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
1207
- })), n.push.apply(n, r);
1208
- }
1209
- return n;
1210
- }
1211
- function Le(e) {
1212
- for (var t = 1; t < arguments.length; t++) {
1213
- var n = arguments[t] == null ? {} : arguments[t];
1214
- t % 2 ? Ie(Object(n), !0).forEach(function(t) {
1215
- Re(e, t, n[t]);
1216
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ie(Object(n)).forEach(function(t) {
1217
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
1218
- });
1219
- }
1220
- return e;
1221
- }
1222
- function Re(e, t, n) {
1223
- return t = ze(t), t in e ? Object.defineProperty(e, t, {
1224
- value: n,
1225
- enumerable: !0,
1226
- configurable: !0,
1227
- writable: !0
1228
- }) : e[t] = n, e;
1229
- }
1230
- function ze(e) {
1231
- var t = Be(e, "string");
1232
- return L(t) === "symbol" ? t : String(t);
1233
- }
1234
- function Be(e, t) {
1235
- if (L(e) !== "object" || e === null) return e;
1236
- var n = e[Symbol.toPrimitive];
1237
- if (n !== void 0) {
1238
- var r = n.call(e, t || "default");
1239
- if (L(r) !== "object") return r;
1240
- throw TypeError("@@toPrimitive must return a primitive value.");
1241
- }
1242
- return (t === "string" ? String : Number)(e);
1243
- }
1244
- function Ve(e) {
1245
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = F(e, "aria-describedby").map(function(e) {
1246
- return Fe(e, Le(Le({}, t), {}, { compute: "description" }));
1247
- }).join(" ");
1248
- if (n === "") {
1249
- var r = e.getAttribute("aria-description");
1250
- n = r === null ? "" : r;
1251
- }
1252
- if (n === "") {
1253
- var i = e.getAttribute("title");
1254
- n = i === null ? "" : i;
1255
- }
1256
- return n;
1257
- }
1258
- //#endregion
1259
- //#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name.mjs
1260
- function He(e) {
1261
- return I(e, [
1262
- "caption",
1263
- "code",
1264
- "deletion",
1265
- "emphasis",
1266
- "generic",
1267
- "insertion",
1268
- "none",
1269
- "paragraph",
1270
- "presentation",
1271
- "strong",
1272
- "subscript",
1273
- "superscript"
1274
- ]);
1275
- }
1276
- function Ue(e) {
1277
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1278
- return He(e) ? "" : Fe(e, t);
1279
- }
1280
- //#endregion
1281
- //#region node_modules/picocolors/picocolors.browser.js
1282
- var We = /* @__PURE__ */ t(((e, t) => {
1283
- var n = String, r = function() {
1284
- return {
1285
- isColorSupported: !1,
1286
- reset: n,
1287
- bold: n,
1288
- dim: n,
1289
- italic: n,
1290
- underline: n,
1291
- inverse: n,
1292
- hidden: n,
1293
- strikethrough: n,
1294
- black: n,
1295
- red: n,
1296
- green: n,
1297
- yellow: n,
1298
- blue: n,
1299
- magenta: n,
1300
- cyan: n,
1301
- white: n,
1302
- gray: n,
1303
- bgBlack: n,
1304
- bgRed: n,
1305
- bgGreen: n,
1306
- bgYellow: n,
1307
- bgBlue: n,
1308
- bgMagenta: n,
1309
- bgCyan: n,
1310
- bgWhite: n,
1311
- blackBright: n,
1312
- redBright: n,
1313
- greenBright: n,
1314
- yellowBright: n,
1315
- blueBright: n,
1316
- magentaBright: n,
1317
- cyanBright: n,
1318
- whiteBright: n,
1319
- bgBlackBright: n,
1320
- bgRedBright: n,
1321
- bgGreenBright: n,
1322
- bgYellowBright: n,
1323
- bgBlueBright: n,
1324
- bgMagentaBright: n,
1325
- bgCyanBright: n,
1326
- bgWhiteBright: n
1327
- };
1328
- };
1329
- t.exports = r(), t.exports.createColors = r;
1330
- })), Ge = /* @__PURE__ */ t(((e, t) => {
1331
- (function(n, r) {
1332
- typeof e == "object" ? t.exports = r(n) : typeof define == "function" && define.amd ? define([], r.bind(n, n)) : r(n);
1333
- })(typeof global < "u" ? global : e, function(e) {
1334
- if (e.CSS && e.CSS.escape) return e.CSS.escape;
1335
- var t = function(e) {
1336
- if (arguments.length == 0) throw TypeError("`CSS.escape` requires an argument.");
1337
- for (var t = String(e), n = t.length, r = -1, i, a = "", o = t.charCodeAt(0); ++r < n;) {
1338
- if (i = t.charCodeAt(r), i == 0) {
1339
- a += "�";
1340
- continue;
1341
- }
1342
- if (i >= 1 && i <= 31 || i == 127 || r == 0 && i >= 48 && i <= 57 || r == 1 && i >= 48 && i <= 57 && o == 45) {
1343
- a += "\\" + i.toString(16) + " ";
1344
- continue;
1345
- }
1346
- if (r == 0 && n == 1 && i == 45) {
1347
- a += "\\" + t.charAt(r);
1348
- continue;
1349
- }
1350
- if (i >= 128 || i == 45 || i == 95 || i >= 48 && i <= 57 || i >= 65 && i <= 90 || i >= 97 && i <= 122) {
1351
- a += t.charAt(r);
1352
- continue;
1353
- }
1354
- a += "\\" + t.charAt(r);
1355
- }
1356
- return a;
1357
- };
1358
- return e.CSS ||= {}, e.CSS.escape = t, t;
1359
- });
1360
- })), R = n(), Ke = /* @__PURE__ */ e(We(), 1), qe = /* @__PURE__ */ e(Ge(), 1), Je = class extends Error {
1361
- constructor(e, t, n, r) {
1362
- /* istanbul ignore next */
1363
- super(), Error.captureStackTrace && Error.captureStackTrace(this, n);
1364
- let i = "";
1365
- try {
1366
- i = r.utils.printWithType("Received", t, r.utils.printReceived);
1367
- } catch {}
1368
- this.message = [
1369
- r.utils.matcherHint(`${r.isNot ? ".not" : ""}.${n.name}`, "received", ""),
1370
- "",
1371
- `${r.utils.RECEIVED_COLOR("received")} value must ${e}.`,
1372
- i
1373
- ].join("\n");
1374
- }
1375
- }, Ye = class extends Je {
1376
- constructor(...e) {
1377
- super("be an HTMLElement or an SVGElement", ...e);
1378
- }
1379
- }, Xe = class extends Je {
1380
- constructor(...e) {
1381
- super("be a Node", ...e);
1382
- }
1383
- };
1384
- function Ze(e, t, ...n) {
1385
- if (!e || !e.ownerDocument || !e.ownerDocument.defaultView) throw new t(e, ...n);
1386
- }
1387
- function Qe(e, ...t) {
1388
- if (Ze(e, Xe, ...t), !(e instanceof e.ownerDocument.defaultView.Node)) throw new Xe(e, ...t);
1389
- }
1390
- function z(e, ...t) {
1391
- Ze(e, Ye, ...t);
1392
- let n = e.ownerDocument.defaultView;
1393
- if (!(e instanceof n.HTMLElement) && !(e instanceof n.SVGElement)) throw new Ye(e, ...t);
1394
- }
1395
- var $e = class extends Error {
1396
- constructor(e, t, n) {
1397
- super(), Error.captureStackTrace && Error.captureStackTrace(this, t), this.message = [
1398
- e.message,
1399
- "",
1400
- n.utils.RECEIVED_COLOR("Failing css:"),
1401
- n.utils.RECEIVED_COLOR(`${e.css}`)
1402
- ].join("\n");
1403
- }
1404
- };
1405
- function et(e, ...t) {
1406
- let n = h(`selector { ${e} }`, { silent: !0 }).stylesheet;
1407
- if (n.parsingErrors && n.parsingErrors.length > 0) {
1408
- let { reason: r, line: i } = n.parsingErrors[0];
1409
- throw new $e({
1410
- css: e,
1411
- message: `Syntax error parsing expected css: ${r} on line: ${i}`
1412
- }, ...t);
1413
- }
1414
- return n.rules[0].declarations.filter((e) => e.type === "declaration").reduce((e, { property: t, value: n }) => Object.assign(e, { [t]: n }), {});
1415
- }
1416
- function tt(e, t) {
1417
- return typeof t == "string" ? t : e.utils.stringify(t);
1418
- }
1419
- function B(e, t, n, r, i, a) {
1420
- return [
1421
- `${t}\n`,
1422
- `${n}:\n${e.utils.EXPECTED_COLOR((0, o.default)(tt(e, r), 2))}`,
1423
- `${i}:\n${e.utils.RECEIVED_COLOR((0, o.default)(tt(e, a), 2))}`
1424
- ].join("\n");
1425
- }
1426
- function nt(e, t) {
1427
- return t instanceof RegExp ? t.test(e) : e.includes(String(t));
1428
- }
1429
- function V(e, t) {
1430
- console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`, t);
1431
- }
1432
- function H(e) {
1433
- return e.replace(/\s+/g, " ").trim();
1434
- }
1435
- function U(e) {
1436
- return e.tagName && e.tagName.toLowerCase();
1437
- }
1438
- function rt({ multiple: e, options: t }) {
1439
- let n = [...t].filter((e) => e.selected);
1440
- if (e) return [...n].map((e) => e.value);
1441
- if (n.length !== 0) return n[0].value;
1442
- }
1443
- function it(e) {
1444
- switch (e.type) {
1445
- case "number": return e.value === "" ? null : Number(e.value);
1446
- case "checkbox": return e.checked;
1447
- default: return e.value;
1448
- }
1449
- }
1450
- var at = [
1451
- "meter",
1452
- "progressbar",
1453
- "slider",
1454
- "spinbutton"
1455
- ];
1456
- function ot(e) {
1457
- if (at.includes(e.getAttribute("role"))) return Number(e.getAttribute("aria-valuenow"));
1458
- }
1459
- function st(e) {
1460
- if (e) switch (e.tagName.toLowerCase()) {
1461
- case "input": return it(e);
1462
- case "select": return rt(e);
1463
- default: return e.value ?? ot(e);
1464
- }
1465
- }
1466
- function ct(e, { wordConnector: t = ", ", lastWordConnector: n = " and " } = {}) {
1467
- return [e.slice(0, -1).join(t), e[e.length - 1]].join(e.length > 1 ? n : "");
1468
- }
1469
- function W(e, t) {
1470
- return Array.isArray(e) && Array.isArray(t) ? [...new Set(e)].every((e) => new Set(t).has(e)) : e === t;
1471
- }
1472
- function G(e, t) {
1473
- return V("toBeInTheDOM", "Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."), e && z(e, G, this), t && z(t, G, this), {
1474
- pass: t ? t.contains(e) : !!e,
1475
- message: () => [
1476
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeInTheDOM`, "element", ""),
1477
- "",
1478
- "Received:",
1479
- ` ${this.utils.printReceived(e && e.cloneNode(!1))}`
1480
- ].join("\n")
1481
- };
1482
- }
1483
- function lt(e) {
1484
- (e !== null || !this.isNot) && z(e, lt, this);
1485
- let t = e === null ? !1 : e.ownerDocument === e.getRootNode({ composed: !0 }), n = () => `expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`, r = () => "element could not be found in the document";
1486
- return {
1487
- pass: t,
1488
- message: () => [
1489
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeInTheDocument`, "element", ""),
1490
- "",
1491
- this.utils.RECEIVED_COLOR(this.isNot ? n() : r())
1492
- ].join("\n")
1493
- };
1494
- }
1495
- function ut(e) {
1496
- return V("toBeEmpty", "Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."), z(e, ut, this), {
1497
- pass: e.innerHTML === "",
1498
- message: () => [
1499
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeEmpty`, "element", ""),
1500
- "",
1501
- "Received:",
1502
- ` ${this.utils.printReceived(e.innerHTML)}`
1503
- ].join("\n")
1504
- };
1505
- }
1506
- function dt(e) {
1507
- return z(e, dt, this), {
1508
- pass: ft(e),
1509
- message: () => [
1510
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeEmptyDOMElement`, "element", ""),
1511
- "",
1512
- "Received:",
1513
- ` ${this.utils.printReceived(e.innerHTML)}`
1514
- ].join("\n")
1515
- };
1516
- }
1517
- function ft(e) {
1518
- return [...e.childNodes].filter((e) => e.nodeType !== 8).length === 0;
1519
- }
1520
- function K(e, t) {
1521
- return z(e, K, this), t !== null && z(t, K, this), {
1522
- pass: e.contains(t),
1523
- message: () => [
1524
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toContainElement`, "element", "element"),
1525
- "",
1526
- this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot ? "contains:" : "does not contain:"} ${this.utils.stringify(t && t.cloneNode(!1))}
1527
- `)
1528
- ].join("\n")
1529
- };
1530
- }
1531
- function pt(e, t) {
1532
- let n = e.ownerDocument.createElement("div");
1533
- return n.innerHTML = t, n.innerHTML;
1534
- }
1535
- function mt(e, t) {
1536
- if (z(e, mt, this), typeof t != "string") throw Error(`.toContainHTML() expects a string value, got ${t}`);
1537
- return {
1538
- pass: e.outerHTML.includes(pt(e, t)),
1539
- message: () => [
1540
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toContainHTML`, "element", ""),
1541
- "Expected:",
1542
- ` ${this.utils.EXPECTED_COLOR(t)}`,
1543
- "Received:",
1544
- ` ${this.utils.printReceived(e.cloneNode(!0))}`
1545
- ].join("\n")
1546
- };
1547
- }
1548
- function ht(e, t, n = { normalizeWhitespace: !0 }) {
1549
- Qe(e, ht, this);
1550
- let r = n.normalizeWhitespace ? H(e.textContent) : e.textContent.replace(/\u00a0/g, " "), i = r !== "" && t === "";
1551
- return {
1552
- pass: !i && nt(r, t),
1553
- message: () => {
1554
- let e = this.isNot ? "not to" : "to";
1555
- return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveTextContent`, "element", ""), i ? "Checking with empty string will always match, use .toBeEmptyDOMElement() instead" : `Expected element ${e} have text content`, t, "Received", r);
1556
- }
1557
- };
1558
- }
1559
- function q(e, t) {
1560
- z(e, q, this);
1561
- let n = Ve(e), r = arguments.length === 1, i = !1;
1562
- return i = r ? n !== "" : t instanceof RegExp ? t.test(n) : this.equals(n, t), {
1563
- pass: i,
1564
- message: () => {
1565
- let e = this.isNot ? "not to" : "to";
1566
- return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.${q.name}`, "element", ""), `Expected element ${e} have accessible description`, t, "Received", n);
1567
- }
1568
- };
1569
- }
1570
- var J = "aria-invalid", gt = ["false"];
1571
- function _t(e, t) {
1572
- z(e, _t, this);
1573
- let n = this.isNot ? "not to" : "to", r = this.isNot ? ".not.toHaveAccessibleErrorMessage" : ".toHaveAccessibleErrorMessage", i = e.getAttribute("aria-errormessage");
1574
- if (i && /\s+/.test(i)) return {
1575
- pass: !1,
1576
- message: () => B(this, this.utils.matcherHint(r, "element"), "Expected element's `aria-errormessage` attribute to be empty or a single, valid ID", "", "Received", `aria-errormessage="${i}"`)
1577
- };
1578
- let a = e.getAttribute(J);
1579
- if (!e.hasAttribute(J) || gt.includes(a)) return {
1580
- pass: !1,
1581
- message: () => B(this, this.utils.matcherHint(r, "element"), "Expected element to be marked as invalid with attribute", `${J}="true"`, "Received", e.hasAttribute("aria-invalid") ? `${J}="${e.getAttribute(J)}` : null)
1582
- };
1583
- let o = H(e.ownerDocument.getElementById(i)?.textContent ?? "");
1584
- return {
1585
- pass: t === void 0 ? !!o : t instanceof RegExp ? t.test(o) : this.equals(o, t),
1586
- message: () => B(this, this.utils.matcherHint(r, "element"), `Expected element ${n} have accessible error message`, t ?? "", "Received", o)
1587
- };
1588
- }
1589
- var vt = xt(R.elementRoles);
1590
- function Y(e, t) {
1591
- z(e, Y, this);
1592
- let n = yt(e);
1593
- return {
1594
- pass: n.some((e) => e === t),
1595
- message: () => {
1596
- let e = this.isNot ? "not to" : "to";
1597
- return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.${Y.name}`, "element", ""), `Expected element ${e} have role`, t, "Received", n.join(", "));
1598
- }
1599
- };
1600
- }
1601
- function yt(e) {
1602
- return e.hasAttribute("role") ? e.getAttribute("role").split(" ").filter(Boolean) : bt(e);
1603
- }
1604
- function bt(e) {
1605
- for (let { match: t, roles: n } of vt) if (t(e)) return [...n];
1606
- /* istanbul ignore next */
1607
- return [];
1608
- }
1609
- function xt(e) {
1610
- function t({ name: e, attributes: t }) {
1611
- return `${e}${t.map(({ name: e, value: t, constraints: n = [] }) => n.indexOf("undefined") === -1 ? t ? `[${e}="${t}"]` : `[${e}]` : `:not([${e}])`).join("")}`;
1612
- }
1613
- function n({ attributes: e = [] }) {
1614
- return e.length;
1615
- }
1616
- function r({ specificity: e }, { specificity: t }) {
1617
- return t - e;
1618
- }
1619
- function i(e) {
1620
- let { attributes: n = [] } = e, r = n.findIndex((e) => e.value && e.name === "type" && e.value === "text");
1621
- r >= 0 && (n = [...n.slice(0, r), ...n.slice(r + 1)]);
1622
- let i = t({
1623
- ...e,
1624
- attributes: n
1625
- });
1626
- return (e) => r >= 0 && e.type !== "text" ? !1 : e.matches(i);
1627
- }
1628
- let a = [];
1629
- for (let [t, r] of e.entries()) a = [...a, {
1630
- match: i(t),
1631
- roles: Array.from(r),
1632
- specificity: n(t)
1633
- }];
1634
- return a.sort(r);
1635
- }
1636
- function X(e, t) {
1637
- z(e, X, this);
1638
- let n = Ue(e), r = arguments.length === 1, i = !1;
1639
- return i = r ? n !== "" : t instanceof RegExp ? t.test(n) : this.equals(n, t), {
1640
- pass: i,
1641
- message: () => {
1642
- let e = this.isNot ? "not to" : "to";
1643
- return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.${X.name}`, "element", ""), `Expected element ${e} have accessible name`, t, "Received", n);
1644
- }
1645
- };
1646
- }
1647
- function St(e, t, n) {
1648
- return n === void 0 ? t : `${t}=${e(n)}`;
1649
- }
1650
- function Ct(e, t, n) {
1651
- return n === void 0 ? `element.hasAttribute(${e(t)})` : `element.getAttribute(${e(t)}) === ${e(n)}`;
1652
- }
1653
- function wt(e, t, n) {
1654
- z(e, wt, this);
1655
- let r = n !== void 0, i = e.hasAttribute(t), a = e.getAttribute(t);
1656
- return {
1657
- pass: r ? i && this.equals(a, n) : i,
1658
- message: () => {
1659
- let e = this.isNot ? "not to" : "to", o = i ? St(this.utils.stringify, t, a) : null, s = this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveAttribute`, "element", this.utils.printExpected(t), {
1660
- secondArgument: r ? this.utils.printExpected(n) : void 0,
1661
- comment: Ct(this.utils.stringify, t, n)
1662
- });
1663
- return B(this, s, `Expected the element ${e} have attribute`, St(this.utils.stringify, t, n), "Received", o);
1664
- }
1665
- };
1666
- }
1667
- function Tt(e) {
1668
- let t = e.pop(), n, r;
1669
- return typeof t == "object" && !(t instanceof RegExp) ? (n = e, r = t) : (n = e.concat(t), r = { exact: !1 }), {
1670
- expectedClassNames: n,
1671
- options: r
1672
- };
1673
- }
1674
- function Et(e) {
1675
- return e ? e.split(/\s+/).filter((e) => e.length > 0) : [];
1676
- }
1677
- function Dt(e, t) {
1678
- return e.every((e) => typeof e == "string" ? t.includes(e) : t.some((t) => e.test(t)));
1679
- }
1680
- function Ot(e, ...t) {
1681
- z(e, Ot, this);
1682
- let { expectedClassNames: n, options: r } = Tt(t), i = Et(e.getAttribute("class")), a = n.reduce((e, t) => e.concat(typeof t == "string" || !t ? Et(t) : t), []), o = a.some((e) => e instanceof RegExp);
1683
- if (r.exact && o) throw Error("Exact option does not support RegExp expected class names");
1684
- return r.exact ? {
1685
- pass: Dt(a, i) && a.length === i.length,
1686
- message: () => {
1687
- let e = this.isNot ? "not to" : "to";
1688
- return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveClass`, "element", this.utils.printExpected(a.join(" "))), `Expected the element ${e} have EXACTLY defined classes`, a.join(" "), "Received", i.join(" "));
1689
- }
1690
- } : a.length > 0 ? {
1691
- pass: Dt(a, i),
1692
- message: () => {
1693
- let e = this.isNot ? "not to" : "to";
1694
- return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveClass`, "element", this.utils.printExpected(a.join(" "))), `Expected the element ${e} have class`, a.join(" "), "Received", i.join(" "));
1695
- }
1696
- } : {
1697
- pass: this.isNot ? i.length > 0 : !1,
1698
- message: () => this.isNot ? B(this, this.utils.matcherHint(".not.toHaveClass", "element", ""), "Expected the element to have classes", "(none)", "Received", i.join(" ")) : [this.utils.matcherHint(".toHaveClass", "element"), "At least one expected class must be provided."].join("\n")
1699
- };
1700
- }
1701
- function kt(e, t) {
1702
- let n = {}, r = e.createElement("div");
1703
- return Object.keys(t).forEach((e) => {
1704
- r.style[e] = t[e], n[e] = r.style[e];
1705
- }), n;
1706
- }
1707
- function At(e, t) {
1708
- return !!Object.keys(e).length && Object.entries(e).every(([e, n]) => {
1709
- let r = e.startsWith("--"), i = [e];
1710
- return r || i.push(e.toLowerCase()), i.some((e) => t[e] === n || t.getPropertyValue(e) === n);
1711
- });
1712
- }
1713
- function jt(e) {
1714
- return Object.keys(e).sort().map((t) => `${t}: ${e[t]};`).join("\n");
1715
- }
1716
- function Mt(e, t, n) {
1717
- let r = Array.from(n).filter((e) => t[e] !== void 0).reduce((e, t) => Object.assign(e, { [t]: n.getPropertyValue(t) }), {});
1718
- return e(jt(t), jt(r)).replace(`${Ke.default.red("+ Received")}\n`, "");
1719
- }
1720
- function Z(e, t) {
1721
- z(e, Z, this);
1722
- let n = typeof t == "object" ? t : et(t, Z, this), { getComputedStyle: r } = e.ownerDocument.defaultView, i = kt(e.ownerDocument, n), a = r(e);
1723
- return {
1724
- pass: At(i, a),
1725
- message: () => {
1726
- let e = `${this.isNot ? ".not" : ""}.toHaveStyle`;
1727
- return [this.utils.matcherHint(e, "element", ""), Mt(this.utils.diff, i, a)].join("\n\n");
1728
- }
1729
- };
1730
- }
1731
- function Nt(e) {
1732
- return z(e, Nt, this), {
1733
- pass: e.ownerDocument.activeElement === e,
1734
- message: () => [
1735
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveFocus`, "element", ""),
1736
- "",
1737
- ...this.isNot ? ["Received element is focused:", ` ${this.utils.printReceived(e)}`] : [
1738
- "Expected element with focus:",
1739
- ` ${this.utils.printExpected(e)}`,
1740
- "Received element with focus:",
1741
- ` ${this.utils.printReceived(e.ownerDocument.activeElement)}`
1742
- ]
1743
- ].join("\n")
1744
- };
1745
- }
1746
- function Pt(e) {
1747
- let t = [...new Set(e.map((e) => e.type))];
1748
- if (t.length !== 1) throw Error("Multiple form elements with the same name must be of the same type");
1749
- switch (t[0]) {
1750
- case "radio": {
1751
- let t = e.find((e) => e.checked);
1752
- return t ? t.value : void 0;
1753
- }
1754
- case "checkbox": return e.filter((e) => e.checked).map((e) => e.value);
1755
- default: return e.map((e) => e.value);
1756
- }
1757
- }
1758
- function Ft(e, t) {
1759
- let n = [...e.querySelectorAll(`[name="${(0, qe.default)(t)}"]`)];
1760
- if (n.length !== 0) switch (n.length) {
1761
- case 1: return st(n[0]);
1762
- default: return Pt(n);
1763
- }
1764
- }
1765
- function It(e) {
1766
- return /\[\]$/.test(e) ? e.slice(0, -2) : e;
1767
- }
1768
- function Lt(e) {
1769
- return Array.from(e.elements).map((e) => e.name).reduce((t, n) => ({
1770
- ...t,
1771
- [It(n)]: Ft(e, n)
1772
- }), {});
1773
- }
1774
- function Rt(e, t) {
1775
- if (z(e, Rt, this), !e.elements) throw Error("toHaveFormValues must be called on a form or a fieldset");
1776
- let n = Lt(e);
1777
- return {
1778
- pass: Object.entries(t).every(([e, t]) => W(n[e], t)),
1779
- message: () => {
1780
- let e = this.isNot ? "not to" : "to", r = `${this.isNot ? ".not" : ""}.toHaveFormValues`, i = Object.keys(n).filter((e) => t.hasOwnProperty(e)).reduce((e, t) => ({
1781
- ...e,
1782
- [t]: n[t]
1783
- }), {});
1784
- return [
1785
- this.utils.matcherHint(r, "element", ""),
1786
- `Expected the element ${e} have form values`,
1787
- this.utils.diff(t, i)
1788
- ].join("\n\n");
1789
- }
1790
- };
1791
- }
1792
- function zt(e) {
1793
- let { getComputedStyle: t } = e.ownerDocument.defaultView, { display: n, visibility: r, opacity: i } = t(e);
1794
- return n !== "none" && r !== "hidden" && r !== "collapse" && i !== "0" && i !== 0;
1795
- }
1796
- function Bt(e, t) {
1797
- let n;
1798
- return n = t ? e.nodeName === "DETAILS" && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0 : e.nodeName === "DETAILS" ? e.hasAttribute("open") : !0, !e.hasAttribute("hidden") && n;
1799
- }
1800
- function Vt(e, t) {
1801
- return zt(e) && Bt(e, t) && (!e.parentElement || Vt(e.parentElement, e));
1802
- }
1803
- function Ht(e) {
1804
- z(e, Ht, this);
1805
- let t = e.ownerDocument === e.getRootNode({ composed: !0 }), n = t && Vt(e);
1806
- return {
1807
- pass: n,
1808
- message: () => {
1809
- let r = n ? "is" : "is not";
1810
- return [
1811
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeVisible`, "element", ""),
1812
- "",
1813
- `Received element ${r} visible${t ? "" : " (element is not in the document)"}:`,
1814
- ` ${this.utils.printReceived(e.cloneNode(!1))}`
1815
- ].join("\n");
1816
- }
1817
- };
1818
- }
1819
- var Ut = [
1820
- "fieldset",
1821
- "input",
1822
- "select",
1823
- "optgroup",
1824
- "option",
1825
- "button",
1826
- "textarea"
1827
- ];
1828
- function Wt(e, t) {
1829
- return U(e) === "legend" && U(t) === "fieldset" && e.isSameNode(Array.from(t.children).find((e) => U(e) === "legend"));
1830
- }
1831
- function Gt(e, t) {
1832
- return Jt(t) && !Wt(e, t);
1833
- }
1834
- function Kt(e) {
1835
- return e.includes("-");
1836
- }
1837
- function qt(e) {
1838
- let t = U(e);
1839
- return Ut.includes(t) || Kt(t);
1840
- }
1841
- function Jt(e) {
1842
- return qt(e) && e.hasAttribute("disabled");
1843
- }
1844
- function Yt(e) {
1845
- let t = e.parentElement;
1846
- return !!t && (Gt(e, t) || Yt(t));
1847
- }
1848
- function Xt(e) {
1849
- return qt(e) && (Jt(e) || Yt(e));
1850
- }
1851
- function Zt(e) {
1852
- z(e, Zt, this);
1853
- let t = Xt(e);
1854
- return {
1855
- pass: t,
1856
- message: () => {
1857
- let n = t ? "is" : "is not";
1858
- return [
1859
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeDisabled`, "element", ""),
1860
- "",
1861
- `Received element ${n} disabled:`,
1862
- ` ${this.utils.printReceived(e.cloneNode(!1))}`
1863
- ].join("\n");
1864
- }
1865
- };
1866
- }
1867
- function Qt(e) {
1868
- z(e, Qt, this);
1869
- let t = !Xt(e);
1870
- return {
1871
- pass: t,
1872
- message: () => {
1873
- let n = t ? "is" : "is not";
1874
- return [
1875
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeEnabled`, "element", ""),
1876
- "",
1877
- `Received element ${n} enabled:`,
1878
- ` ${this.utils.printReceived(e.cloneNode(!1))}`
1879
- ].join("\n");
1880
- }
1881
- };
1882
- }
1883
- var $t = ["select", "textarea"], en = [
1884
- "input",
1885
- "select",
1886
- "textarea"
1887
- ], tn = [
1888
- "color",
1889
- "hidden",
1890
- "range",
1891
- "submit",
1892
- "image",
1893
- "reset"
1894
- ], nn = [
1895
- "checkbox",
1896
- "combobox",
1897
- "gridcell",
1898
- "listbox",
1899
- "radiogroup",
1900
- "spinbutton",
1901
- "textbox",
1902
- "tree"
1903
- ];
1904
- function rn(e) {
1905
- return $t.includes(U(e)) && e.hasAttribute("required");
1906
- }
1907
- function an(e) {
1908
- return U(e) === "input" && e.hasAttribute("required") && (e.hasAttribute("type") && !tn.includes(e.getAttribute("type")) || !e.hasAttribute("type"));
1909
- }
1910
- function on(e) {
1911
- return e.hasAttribute("aria-required") && e.getAttribute("aria-required") === "true" && (en.includes(U(e)) || e.hasAttribute("role") && nn.includes(e.getAttribute("role")));
1912
- }
1913
- function sn(e) {
1914
- z(e, sn, this);
1915
- let t = rn(e) || an(e) || on(e);
1916
- return {
1917
- pass: t,
1918
- message: () => {
1919
- let n = t ? "is" : "is not";
1920
- return [
1921
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeRequired`, "element", ""),
1922
- "",
1923
- `Received element ${n} required:`,
1924
- ` ${this.utils.printReceived(e.cloneNode(!1))}`
1925
- ].join("\n");
1926
- }
1927
- };
1928
- }
1929
- var cn = [
1930
- "form",
1931
- "input",
1932
- "select",
1933
- "textarea"
1934
- ];
1935
- function ln(e) {
1936
- return e.hasAttribute("aria-invalid") && e.getAttribute("aria-invalid") !== "false";
1937
- }
1938
- function un(e) {
1939
- return cn.includes(U(e));
1940
- }
1941
- function dn(e) {
1942
- let t = ln(e);
1943
- return un(e) ? t || !e.checkValidity() : t;
1944
- }
1945
- function fn(e) {
1946
- z(e, fn, this);
1947
- let t = dn(e);
1948
- return {
1949
- pass: t,
1950
- message: () => {
1951
- let n = t ? "is" : "is not";
1952
- return [
1953
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeInvalid`, "element", ""),
1954
- "",
1955
- `Received element ${n} currently invalid:`,
1956
- ` ${this.utils.printReceived(e.cloneNode(!1))}`
1957
- ].join("\n");
1958
- }
1959
- };
1960
- }
1961
- function pn(e) {
1962
- z(e, pn, this);
1963
- let t = !dn(e);
1964
- return {
1965
- pass: t,
1966
- message: () => {
1967
- let n = t ? "is" : "is not";
1968
- return [
1969
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeValid`, "element", ""),
1970
- "",
1971
- `Received element ${n} currently valid:`,
1972
- ` ${this.utils.printReceived(e.cloneNode(!1))}`
1973
- ].join("\n");
1974
- }
1975
- };
1976
- }
1977
- function mn(e, t) {
1978
- if (z(e, mn, this), e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type)) throw Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");
1979
- let n = st(e), r = t !== void 0, i = t, a = n;
1980
- return t == n && t !== n && (i = `${t} (${typeof t})`, a = `${n} (${typeof n})`), {
1981
- pass: r ? W(n, t) : !!n,
1982
- message: () => {
1983
- let e = this.isNot ? "not to" : "to", n = this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveValue`, "element", t);
1984
- return B(this, n, `Expected the element ${e} have value`, r ? i : "(any)", "Received", a);
1985
- }
1986
- };
1987
- }
1988
- function hn(e, t) {
1989
- z(e, hn, this);
1990
- let n = e.tagName.toLowerCase();
1991
- if (![
1992
- "select",
1993
- "input",
1994
- "textarea"
1995
- ].includes(n)) throw Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");
1996
- if (n === "input" && ["radio", "checkbox"].includes(e.type)) throw Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);
1997
- let r = gn(n, e), i = _n(t), a = i.filter((e) => r.some((t) => e instanceof RegExp ? e.test(t) : this.equals(t, String(e)))).length, o = a === r.length, s = a === i.length;
1998
- return {
1999
- pass: o && s,
2000
- message: () => B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveDisplayValue`, "element", ""), `Expected element ${this.isNot ? "not " : ""}to have display value`, t, "Received", r)
2001
- };
2002
- }
2003
- function gn(e, t) {
2004
- return e === "select" ? Array.from(t).filter((e) => e.selected).map((e) => e.textContent) : [t.value];
2005
- }
2006
- function _n(e) {
2007
- return e instanceof Array ? e : [e];
2008
- }
2009
- function vn(e) {
2010
- z(e, vn, this);
2011
- let t = () => e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type);
2012
- if (!t() && !(xn(e.getAttribute("role")) && ["true", "false"].includes(e.getAttribute("aria-checked")))) return {
2013
- pass: !1,
2014
- message: () => `only inputs with type="checkbox" or type="radio" or elements with ${yn()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`
2015
- };
2016
- let n = () => t() ? e.checked : e.getAttribute("aria-checked") === "true";
2017
- return {
2018
- pass: n(),
2019
- message: () => {
2020
- let t = n() ? "is" : "is not";
2021
- return [
2022
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeChecked`, "element", ""),
2023
- "",
2024
- `Received element ${t} checked:`,
2025
- ` ${this.utils.printReceived(e.cloneNode(!1))}`
2026
- ].join("\n");
2027
- }
2028
- };
2029
- }
2030
- function yn() {
2031
- return ct(bn().map((e) => `role="${e}"`), { lastWordConnector: " or " });
2032
- }
2033
- function bn() {
2034
- return R.roles.keys().filter(xn);
2035
- }
2036
- function xn(e) {
2037
- return R.roles.get(e)?.props["aria-checked"] !== void 0;
2038
- }
2039
- function Sn(e) {
2040
- z(e, Sn, this);
2041
- let t = () => e.tagName.toLowerCase() === "input" && e.type === "checkbox";
2042
- if (!t() && e.getAttribute("role") !== "checkbox") return {
2043
- pass: !1,
2044
- message: () => "only inputs with type=\"checkbox\" or elements with role=\"checkbox\" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead"
2045
- };
2046
- let n = () => {
2047
- let n = e.getAttribute("aria-checked") === "mixed";
2048
- return t() && e.indeterminate || n;
2049
- };
2050
- return {
2051
- pass: n(),
2052
- message: () => {
2053
- let t = n() ? "is" : "is not";
2054
- return [
2055
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBePartiallyChecked`, "element", ""),
2056
- "",
2057
- `Received element ${t} partially checked:`,
2058
- ` ${this.utils.printReceived(e.cloneNode(!1))}`
2059
- ].join("\n");
2060
- }
2061
- };
2062
- }
2063
- function Cn(e, t) {
2064
- V("toHaveDescription", "Please use toHaveAccessibleDescription."), z(e, Cn, this);
2065
- let n = t !== void 0, r = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean), i = "";
2066
- if (r.length > 0) {
2067
- let t = e.ownerDocument;
2068
- i = H(r.map((e) => t.getElementById(e)).filter(Boolean).map((e) => e.textContent).join(" "));
2069
- }
2070
- return {
2071
- pass: n ? t instanceof RegExp ? t.test(i) : this.equals(i, t) : !!i,
2072
- message: () => {
2073
- let e = this.isNot ? "not to" : "to";
2074
- return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveDescription`, "element", ""), `Expected the element ${e} have description`, this.utils.printExpected(t), "Received", this.utils.printReceived(i));
2075
- }
2076
- };
2077
- }
2078
- function wn(e, t) {
2079
- if (V("toHaveErrorMessage", "Please use toHaveAccessibleErrorMessage."), z(e, wn, this), !e.hasAttribute("aria-invalid") || e.getAttribute("aria-invalid") === "false") {
2080
- let t = this.isNot ? ".not" : "";
2081
- return {
2082
- pass: !1,
2083
- message: () => B(this, this.utils.matcherHint(`${t}.toHaveErrorMessage`, "element", ""), "Expected the element to have invalid state indicated by", "aria-invalid=\"true\"", "Received", e.hasAttribute("aria-invalid") ? `aria-invalid="${e.getAttribute("aria-invalid")}"` : this.utils.printReceived(""))
2084
- };
2085
- }
2086
- let n = t !== void 0, r = (e.getAttribute("aria-errormessage") || "").split(/\s+/).filter(Boolean), i = "";
2087
- if (r.length > 0) {
2088
- let t = e.ownerDocument;
2089
- i = H(r.map((e) => t.getElementById(e)).filter(Boolean).map((e) => e.textContent).join(" "));
2090
- }
2091
- return {
2092
- pass: n ? t instanceof RegExp ? t.test(i) : this.equals(i, t) : !!i,
2093
- message: () => {
2094
- let e = this.isNot ? "not to" : "to";
2095
- return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveErrorMessage`, "element", ""), `Expected the element ${e} have error message`, this.utils.printExpected(t), "Received", this.utils.printReceived(i));
2096
- }
2097
- };
2098
- }
2099
- function Tn(e) {
2100
- let t = e.ownerDocument.getSelection();
2101
- if (["input", "textarea"].includes(e.tagName.toLowerCase())) return ["radio", "checkbox"].includes(e.type) ? "" : e.value.toString().substring(e.selectionStart, e.selectionEnd);
2102
- if (t.anchorNode === null || t.focusNode === null) return "";
2103
- let n = t.getRangeAt(0), r = e.ownerDocument.createRange();
2104
- if (t.containsNode(e, !1)) r.selectNodeContents(e), t.removeAllRanges(), t.addRange(r);
2105
- else if (!(e.contains(t.anchorNode) && e.contains(t.focusNode))) {
2106
- let i = e === n.startContainer || e.contains(n.startContainer), a = e === n.endContainer || e.contains(n.endContainer);
2107
- t.removeAllRanges(), (i || a) && (r.selectNodeContents(e), i && r.setStart(n.startContainer, n.startOffset), a && r.setEnd(n.endContainer, n.endOffset), t.addRange(r));
2108
- }
2109
- let i = t.toString();
2110
- return t.removeAllRanges(), t.addRange(n), i;
2111
- }
2112
- function En(e, t) {
2113
- z(e, En, this);
2114
- let n = t !== void 0;
2115
- if (n && typeof t != "string") throw Error("expected selection must be a string or undefined");
2116
- let r = Tn(e);
2117
- return {
2118
- pass: n ? W(r, t) : !!r,
2119
- message: () => {
2120
- let e = this.isNot ? "not to" : "to", i = this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveSelection`, "element", t);
2121
- return B(this, i, `Expected the element ${e} have selection`, n ? t : "(any)", "Received", r);
2122
- }
2123
- };
2124
- }
2125
- function Dn(e) {
2126
- z(e, Dn, this);
2127
- let t = (e.getAttribute("role") || "").split(" ").map((e) => e.trim()), n = e.tagName.toLowerCase() === "button" || e.tagName.toLowerCase() === "input" && e.type === "button" || t.includes("button"), r = e.getAttribute("aria-pressed");
2128
- return !n || !(r === "true" || r === "false") ? {
2129
- pass: !1,
2130
- message: () => "Only button or input with type=\"button\" or element with role=\"button\" and a valid aria-pressed attribute can be used with .toBePressed()"
2131
- } : {
2132
- pass: n && r === "true",
2133
- message: () => {
2134
- let e = this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBePressed`, "element", "");
2135
- return B(this, e, "Expected element to have", `aria-pressed="${this.isNot ? "false" : "true"}"`, "Received", `aria-pressed="${r}"`);
2136
- }
2137
- };
2138
- }
2139
- function Q(e) {
2140
- z(e, Q, this);
2141
- let t = (e.getAttribute("role") || "").split(" ").map((e) => e.trim()), n = e.tagName.toLowerCase() === "button" || e.tagName.toLowerCase() === "input" && e.type === "button" || t.includes("button"), r = e.getAttribute("aria-pressed");
2142
- return !n || !(r === "true" || r === "false" || r === "mixed") ? {
2143
- pass: !1,
2144
- message: () => "Only button or input with type=\"button\" or element with role=\"button\" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()"
2145
- } : {
2146
- pass: n && r === "mixed",
2147
- message: () => {
2148
- let e = this.isNot ? "not to" : "to", t = this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBePartiallyPressed`, "element", "");
2149
- return B(this, t, `Expected element ${e} have`, "aria-pressed=\"mixed\"", "Received", `aria-pressed="${r}"`);
2150
- }
2151
- };
2152
- }
2153
- var On = 1, kn = 2, An = 4, jn = 8, Mn = 16, Nn = 32, Pn = {
2154
- [On]: "Node.DOCUMENT_POSITION_DISCONNECTED",
2155
- [kn]: "Node.DOCUMENT_POSITION_PRECEDING",
2156
- [An]: "Node.DOCUMENT_POSITION_FOLLOWING",
2157
- [jn]: "Node.DOCUMENT_POSITION_CONTAINS",
2158
- [Mn]: "Node.DOCUMENT_POSITION_CONTAINED_BY",
2159
- [Nn]: "Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"
2160
- };
2161
- function Fn(e) {
2162
- return e in Pn ? `${Pn[e]} (${e})` : `Unknown document position (${e})`;
2163
- }
2164
- function In(e, t) {
2165
- return function(n, r) {
2166
- z(n, $, this), z(r, $, this);
2167
- let i = n.compareDocumentPosition(r);
2168
- return {
2169
- pass: i === t,
2170
- message: () => [
2171
- this.utils.matcherHint(`${this.isNot ? ".not" : ""}.${e}`, "element", "secondElement"),
2172
- "",
2173
- `Received: ${Fn(i)}`
2174
- ].join("\n")
2175
- };
2176
- };
2177
- }
2178
- function $(e, t) {
2179
- return In("toAppearBefore", An).apply(this, [e, t]);
2180
- }
2181
- function Ln(e, t) {
2182
- return In("toAppearAfter", kn).apply(this, [e, t]);
2183
- }
2184
- var Rn = /*#__PURE__*/ Object.freeze({
2185
- __proto__: null,
2186
- toAppearAfter: Ln,
2187
- toAppearBefore: $,
2188
- toBeChecked: vn,
2189
- toBeDisabled: Zt,
2190
- toBeEmpty: ut,
2191
- toBeEmptyDOMElement: dt,
2192
- toBeEnabled: Qt,
2193
- toBeInTheDOM: G,
2194
- toBeInTheDocument: lt,
2195
- toBeInvalid: fn,
2196
- toBePartiallyChecked: Sn,
2197
- toBePartiallyPressed: Q,
2198
- toBePressed: Dn,
2199
- toBeRequired: sn,
2200
- toBeValid: pn,
2201
- toBeVisible: Ht,
2202
- toContainElement: K,
2203
- toContainHTML: mt,
2204
- toHaveAccessibleDescription: q,
2205
- toHaveAccessibleErrorMessage: _t,
2206
- toHaveAccessibleName: X,
2207
- toHaveAttribute: wt,
2208
- toHaveClass: Ot,
2209
- toHaveDescription: Cn,
2210
- toHaveDisplayValue: hn,
2211
- toHaveErrorMessage: wn,
2212
- toHaveFocus: Nt,
2213
- toHaveFormValues: Rt,
2214
- toHaveRole: Y,
2215
- toHaveSelection: En,
2216
- toHaveStyle: Z,
2217
- toHaveTextContent: ht,
2218
- toHaveValue: mn
2219
- });
2220
- //#endregion
2221
- //#region node_modules/@testing-library/jest-dom/dist/index.mjs
2222
- expect.extend(Rn);
2223
- //#endregion
2224
-
2225
- //# sourceMappingURL=dist-Dlg0QxSO.js.map