@dbmx/confy 0.0.3

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 (1416) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE.md +22 -0
  3. package/README.md +0 -0
  4. package/esm/ConfyProvider/index.js +7 -0
  5. package/esm/ConfyProvider/index.js.map +1 -0
  6. package/esm/_virtual/AsymmetricMatcher.js +4 -0
  7. package/esm/_virtual/AsymmetricMatcher.js.map +1 -0
  8. package/esm/_virtual/ConvertAnsi.js +4 -0
  9. package/esm/_virtual/ConvertAnsi.js.map +1 -0
  10. package/esm/_virtual/DOMCollection.js +4 -0
  11. package/esm/_virtual/DOMCollection.js.map +1 -0
  12. package/esm/_virtual/DOMElement.js +4 -0
  13. package/esm/_virtual/DOMElement.js.map +1 -0
  14. package/esm/_virtual/Immutable.js +4 -0
  15. package/esm/_virtual/Immutable.js.map +1 -0
  16. package/esm/_virtual/ReactElement.js +4 -0
  17. package/esm/_virtual/ReactElement.js.map +1 -0
  18. package/esm/_virtual/ReactTestComponent.js +4 -0
  19. package/esm/_virtual/ReactTestComponent.js.map +1 -0
  20. package/esm/_virtual/_commonjs-dynamic-modules.js +6 -0
  21. package/esm/_virtual/_commonjs-dynamic-modules.js.map +1 -0
  22. package/esm/_virtual/_commonjsHelpers.js +33 -0
  23. package/esm/_virtual/_commonjsHelpers.js.map +1 -0
  24. package/esm/_virtual/_rollupPluginBabelHelpers.js +568 -0
  25. package/esm/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
  26. package/esm/_virtual/alertRole.js +4 -0
  27. package/esm/_virtual/alertRole.js.map +1 -0
  28. package/esm/_virtual/alertdialogRole.js +4 -0
  29. package/esm/_virtual/alertdialogRole.js.map +1 -0
  30. package/esm/_virtual/applicationRole.js +4 -0
  31. package/esm/_virtual/applicationRole.js.map +1 -0
  32. package/esm/_virtual/ariaAbstractRoles.js +4 -0
  33. package/esm/_virtual/ariaAbstractRoles.js.map +1 -0
  34. package/esm/_virtual/ariaDpubRoles.js +4 -0
  35. package/esm/_virtual/ariaDpubRoles.js.map +1 -0
  36. package/esm/_virtual/ariaGraphicsRoles.js +4 -0
  37. package/esm/_virtual/ariaGraphicsRoles.js.map +1 -0
  38. package/esm/_virtual/ariaLiteralRoles.js +4 -0
  39. package/esm/_virtual/ariaLiteralRoles.js.map +1 -0
  40. package/esm/_virtual/ariaPropsMap.js +4 -0
  41. package/esm/_virtual/ariaPropsMap.js.map +1 -0
  42. package/esm/_virtual/articleRole.js +4 -0
  43. package/esm/_virtual/articleRole.js.map +1 -0
  44. package/esm/_virtual/asyncUtils.js +4 -0
  45. package/esm/_virtual/asyncUtils.js.map +1 -0
  46. package/esm/_virtual/bannerRole.js +4 -0
  47. package/esm/_virtual/bannerRole.js.map +1 -0
  48. package/esm/_virtual/blockquoteRole.js +4 -0
  49. package/esm/_virtual/blockquoteRole.js.map +1 -0
  50. package/esm/_virtual/buttonRole.js +4 -0
  51. package/esm/_virtual/buttonRole.js.map +1 -0
  52. package/esm/_virtual/captionRole.js +4 -0
  53. package/esm/_virtual/captionRole.js.map +1 -0
  54. package/esm/_virtual/cellRole.js +4 -0
  55. package/esm/_virtual/cellRole.js.map +1 -0
  56. package/esm/_virtual/checkboxRole.js +4 -0
  57. package/esm/_virtual/checkboxRole.js.map +1 -0
  58. package/esm/_virtual/cleanup.js +4 -0
  59. package/esm/_virtual/cleanup.js.map +1 -0
  60. package/esm/_virtual/codeRole.js +4 -0
  61. package/esm/_virtual/codeRole.js.map +1 -0
  62. package/esm/_virtual/collections.js +4 -0
  63. package/esm/_virtual/collections.js.map +1 -0
  64. package/esm/_virtual/columnheaderRole.js +4 -0
  65. package/esm/_virtual/columnheaderRole.js.map +1 -0
  66. package/esm/_virtual/comboboxRole.js +4 -0
  67. package/esm/_virtual/comboboxRole.js.map +1 -0
  68. package/esm/_virtual/commandRole.js +4 -0
  69. package/esm/_virtual/commandRole.js.map +1 -0
  70. package/esm/_virtual/complementaryRole.js +4 -0
  71. package/esm/_virtual/complementaryRole.js.map +1 -0
  72. package/esm/_virtual/compositeRole.js +4 -0
  73. package/esm/_virtual/compositeRole.js.map +1 -0
  74. package/esm/_virtual/console.js +4 -0
  75. package/esm/_virtual/console.js.map +1 -0
  76. package/esm/_virtual/contentinfoRole.js +4 -0
  77. package/esm/_virtual/contentinfoRole.js.map +1 -0
  78. package/esm/_virtual/createTestHarness.js +4 -0
  79. package/esm/_virtual/createTestHarness.js.map +1 -0
  80. package/esm/_virtual/createTimeoutController.js +4 -0
  81. package/esm/_virtual/createTimeoutController.js.map +1 -0
  82. package/esm/_virtual/definitionRole.js +4 -0
  83. package/esm/_virtual/definitionRole.js.map +1 -0
  84. package/esm/_virtual/deletionRole.js +4 -0
  85. package/esm/_virtual/deletionRole.js.map +1 -0
  86. package/esm/_virtual/dialogRole.js +4 -0
  87. package/esm/_virtual/dialogRole.js.map +1 -0
  88. package/esm/_virtual/directoryRole.js +4 -0
  89. package/esm/_virtual/directoryRole.js.map +1 -0
  90. package/esm/_virtual/docAbstractRole.js +4 -0
  91. package/esm/_virtual/docAbstractRole.js.map +1 -0
  92. package/esm/_virtual/docAcknowledgmentsRole.js +4 -0
  93. package/esm/_virtual/docAcknowledgmentsRole.js.map +1 -0
  94. package/esm/_virtual/docAfterwordRole.js +4 -0
  95. package/esm/_virtual/docAfterwordRole.js.map +1 -0
  96. package/esm/_virtual/docAppendixRole.js +4 -0
  97. package/esm/_virtual/docAppendixRole.js.map +1 -0
  98. package/esm/_virtual/docBacklinkRole.js +4 -0
  99. package/esm/_virtual/docBacklinkRole.js.map +1 -0
  100. package/esm/_virtual/docBiblioentryRole.js +4 -0
  101. package/esm/_virtual/docBiblioentryRole.js.map +1 -0
  102. package/esm/_virtual/docBibliographyRole.js +4 -0
  103. package/esm/_virtual/docBibliographyRole.js.map +1 -0
  104. package/esm/_virtual/docBibliorefRole.js +4 -0
  105. package/esm/_virtual/docBibliorefRole.js.map +1 -0
  106. package/esm/_virtual/docChapterRole.js +4 -0
  107. package/esm/_virtual/docChapterRole.js.map +1 -0
  108. package/esm/_virtual/docColophonRole.js +4 -0
  109. package/esm/_virtual/docColophonRole.js.map +1 -0
  110. package/esm/_virtual/docConclusionRole.js +4 -0
  111. package/esm/_virtual/docConclusionRole.js.map +1 -0
  112. package/esm/_virtual/docCoverRole.js +4 -0
  113. package/esm/_virtual/docCoverRole.js.map +1 -0
  114. package/esm/_virtual/docCreditRole.js +4 -0
  115. package/esm/_virtual/docCreditRole.js.map +1 -0
  116. package/esm/_virtual/docCreditsRole.js +4 -0
  117. package/esm/_virtual/docCreditsRole.js.map +1 -0
  118. package/esm/_virtual/docDedicationRole.js +4 -0
  119. package/esm/_virtual/docDedicationRole.js.map +1 -0
  120. package/esm/_virtual/docEndnoteRole.js +4 -0
  121. package/esm/_virtual/docEndnoteRole.js.map +1 -0
  122. package/esm/_virtual/docEndnotesRole.js +4 -0
  123. package/esm/_virtual/docEndnotesRole.js.map +1 -0
  124. package/esm/_virtual/docEpigraphRole.js +4 -0
  125. package/esm/_virtual/docEpigraphRole.js.map +1 -0
  126. package/esm/_virtual/docEpilogueRole.js +4 -0
  127. package/esm/_virtual/docEpilogueRole.js.map +1 -0
  128. package/esm/_virtual/docErrataRole.js +4 -0
  129. package/esm/_virtual/docErrataRole.js.map +1 -0
  130. package/esm/_virtual/docExampleRole.js +4 -0
  131. package/esm/_virtual/docExampleRole.js.map +1 -0
  132. package/esm/_virtual/docFootnoteRole.js +4 -0
  133. package/esm/_virtual/docFootnoteRole.js.map +1 -0
  134. package/esm/_virtual/docForewordRole.js +4 -0
  135. package/esm/_virtual/docForewordRole.js.map +1 -0
  136. package/esm/_virtual/docGlossaryRole.js +4 -0
  137. package/esm/_virtual/docGlossaryRole.js.map +1 -0
  138. package/esm/_virtual/docGlossrefRole.js +4 -0
  139. package/esm/_virtual/docGlossrefRole.js.map +1 -0
  140. package/esm/_virtual/docIndexRole.js +4 -0
  141. package/esm/_virtual/docIndexRole.js.map +1 -0
  142. package/esm/_virtual/docIntroductionRole.js +4 -0
  143. package/esm/_virtual/docIntroductionRole.js.map +1 -0
  144. package/esm/_virtual/docNoterefRole.js +4 -0
  145. package/esm/_virtual/docNoterefRole.js.map +1 -0
  146. package/esm/_virtual/docNoticeRole.js +4 -0
  147. package/esm/_virtual/docNoticeRole.js.map +1 -0
  148. package/esm/_virtual/docPagebreakRole.js +4 -0
  149. package/esm/_virtual/docPagebreakRole.js.map +1 -0
  150. package/esm/_virtual/docPagelistRole.js +4 -0
  151. package/esm/_virtual/docPagelistRole.js.map +1 -0
  152. package/esm/_virtual/docPartRole.js +4 -0
  153. package/esm/_virtual/docPartRole.js.map +1 -0
  154. package/esm/_virtual/docPrefaceRole.js +4 -0
  155. package/esm/_virtual/docPrefaceRole.js.map +1 -0
  156. package/esm/_virtual/docPrologueRole.js +4 -0
  157. package/esm/_virtual/docPrologueRole.js.map +1 -0
  158. package/esm/_virtual/docPullquoteRole.js +4 -0
  159. package/esm/_virtual/docPullquoteRole.js.map +1 -0
  160. package/esm/_virtual/docQnaRole.js +4 -0
  161. package/esm/_virtual/docQnaRole.js.map +1 -0
  162. package/esm/_virtual/docSubtitleRole.js +4 -0
  163. package/esm/_virtual/docSubtitleRole.js.map +1 -0
  164. package/esm/_virtual/docTipRole.js +4 -0
  165. package/esm/_virtual/docTipRole.js.map +1 -0
  166. package/esm/_virtual/docTocRole.js +4 -0
  167. package/esm/_virtual/docTocRole.js.map +1 -0
  168. package/esm/_virtual/documentRole.js +4 -0
  169. package/esm/_virtual/documentRole.js.map +1 -0
  170. package/esm/_virtual/domMap.js +4 -0
  171. package/esm/_virtual/domMap.js.map +1 -0
  172. package/esm/_virtual/elementRoleMap.js +4 -0
  173. package/esm/_virtual/elementRoleMap.js.map +1 -0
  174. package/esm/_virtual/emphasisRole.js +4 -0
  175. package/esm/_virtual/emphasisRole.js.map +1 -0
  176. package/esm/_virtual/error.js +4 -0
  177. package/esm/_virtual/error.js.map +1 -0
  178. package/esm/_virtual/escapeHTML.js +4 -0
  179. package/esm/_virtual/escapeHTML.js.map +1 -0
  180. package/esm/_virtual/feedRole.js +4 -0
  181. package/esm/_virtual/feedRole.js.map +1 -0
  182. package/esm/_virtual/figureRole.js +4 -0
  183. package/esm/_virtual/figureRole.js.map +1 -0
  184. package/esm/_virtual/formRole.js +4 -0
  185. package/esm/_virtual/formRole.js.map +1 -0
  186. package/esm/_virtual/genericRole.js +4 -0
  187. package/esm/_virtual/genericRole.js.map +1 -0
  188. package/esm/_virtual/graphicsDocumentRole.js +4 -0
  189. package/esm/_virtual/graphicsDocumentRole.js.map +1 -0
  190. package/esm/_virtual/graphicsObjectRole.js +4 -0
  191. package/esm/_virtual/graphicsObjectRole.js.map +1 -0
  192. package/esm/_virtual/graphicsSymbolRole.js +4 -0
  193. package/esm/_virtual/graphicsSymbolRole.js.map +1 -0
  194. package/esm/_virtual/gridRole.js +4 -0
  195. package/esm/_virtual/gridRole.js.map +1 -0
  196. package/esm/_virtual/gridcellRole.js +4 -0
  197. package/esm/_virtual/gridcellRole.js.map +1 -0
  198. package/esm/_virtual/groupRole.js +4 -0
  199. package/esm/_virtual/groupRole.js.map +1 -0
  200. package/esm/_virtual/headingRole.js +4 -0
  201. package/esm/_virtual/headingRole.js.map +1 -0
  202. package/esm/_virtual/imgRole.js +4 -0
  203. package/esm/_virtual/imgRole.js.map +1 -0
  204. package/esm/_virtual/index.js +4 -0
  205. package/esm/_virtual/index.js.map +1 -0
  206. package/esm/_virtual/index10.js +4 -0
  207. package/esm/_virtual/index10.js.map +1 -0
  208. package/esm/_virtual/index11.js +4 -0
  209. package/esm/_virtual/index11.js.map +1 -0
  210. package/esm/_virtual/index12.js +4 -0
  211. package/esm/_virtual/index12.js.map +1 -0
  212. package/esm/_virtual/index13.js +4 -0
  213. package/esm/_virtual/index13.js.map +1 -0
  214. package/esm/_virtual/index2.js +4 -0
  215. package/esm/_virtual/index2.js.map +1 -0
  216. package/esm/_virtual/index3.js +4 -0
  217. package/esm/_virtual/index3.js.map +1 -0
  218. package/esm/_virtual/index4.js +4 -0
  219. package/esm/_virtual/index4.js.map +1 -0
  220. package/esm/_virtual/index5.js +4 -0
  221. package/esm/_virtual/index5.js.map +1 -0
  222. package/esm/_virtual/index6.js +4 -0
  223. package/esm/_virtual/index6.js.map +1 -0
  224. package/esm/_virtual/index7.js +4 -0
  225. package/esm/_virtual/index7.js.map +1 -0
  226. package/esm/_virtual/index8.js +4 -0
  227. package/esm/_virtual/index8.js.map +1 -0
  228. package/esm/_virtual/index9.js +4 -0
  229. package/esm/_virtual/index9.js.map +1 -0
  230. package/esm/_virtual/inputRole.js +4 -0
  231. package/esm/_virtual/inputRole.js.map +1 -0
  232. package/esm/_virtual/insertionRole.js +4 -0
  233. package/esm/_virtual/insertionRole.js.map +1 -0
  234. package/esm/_virtual/iterationDecorator.js +4 -0
  235. package/esm/_virtual/iterationDecorator.js.map +1 -0
  236. package/esm/_virtual/iteratorProxy.js +4 -0
  237. package/esm/_virtual/iteratorProxy.js.map +1 -0
  238. package/esm/_virtual/landmarkRole.js +4 -0
  239. package/esm/_virtual/landmarkRole.js.map +1 -0
  240. package/esm/_virtual/linkRole.js +4 -0
  241. package/esm/_virtual/linkRole.js.map +1 -0
  242. package/esm/_virtual/listRole.js +4 -0
  243. package/esm/_virtual/listRole.js.map +1 -0
  244. package/esm/_virtual/listboxRole.js +4 -0
  245. package/esm/_virtual/listboxRole.js.map +1 -0
  246. package/esm/_virtual/listitemRole.js +4 -0
  247. package/esm/_virtual/listitemRole.js.map +1 -0
  248. package/esm/_virtual/logRole.js +4 -0
  249. package/esm/_virtual/logRole.js.map +1 -0
  250. package/esm/_virtual/lz-string.js +4 -0
  251. package/esm/_virtual/lz-string.js.map +1 -0
  252. package/esm/_virtual/mainRole.js +4 -0
  253. package/esm/_virtual/mainRole.js.map +1 -0
  254. package/esm/_virtual/markup.js +4 -0
  255. package/esm/_virtual/markup.js.map +1 -0
  256. package/esm/_virtual/marqueeRole.js +4 -0
  257. package/esm/_virtual/marqueeRole.js.map +1 -0
  258. package/esm/_virtual/mathRole.js +4 -0
  259. package/esm/_virtual/mathRole.js.map +1 -0
  260. package/esm/_virtual/menuRole.js +4 -0
  261. package/esm/_virtual/menuRole.js.map +1 -0
  262. package/esm/_virtual/menubarRole.js +4 -0
  263. package/esm/_virtual/menubarRole.js.map +1 -0
  264. package/esm/_virtual/menuitemRole.js +4 -0
  265. package/esm/_virtual/menuitemRole.js.map +1 -0
  266. package/esm/_virtual/menuitemcheckboxRole.js +4 -0
  267. package/esm/_virtual/menuitemcheckboxRole.js.map +1 -0
  268. package/esm/_virtual/menuitemradioRole.js +4 -0
  269. package/esm/_virtual/menuitemradioRole.js.map +1 -0
  270. package/esm/_virtual/meterRole.js +4 -0
  271. package/esm/_virtual/meterRole.js.map +1 -0
  272. package/esm/_virtual/navigationRole.js +4 -0
  273. package/esm/_virtual/navigationRole.js.map +1 -0
  274. package/esm/_virtual/noneRole.js +4 -0
  275. package/esm/_virtual/noneRole.js.map +1 -0
  276. package/esm/_virtual/noteRole.js +4 -0
  277. package/esm/_virtual/noteRole.js.map +1 -0
  278. package/esm/_virtual/optionRole.js +4 -0
  279. package/esm/_virtual/optionRole.js.map +1 -0
  280. package/esm/_virtual/paragraphRole.js +4 -0
  281. package/esm/_virtual/paragraphRole.js.map +1 -0
  282. package/esm/_virtual/presentationRole.js +4 -0
  283. package/esm/_virtual/presentationRole.js.map +1 -0
  284. package/esm/_virtual/progressbarRole.js +4 -0
  285. package/esm/_virtual/progressbarRole.js.map +1 -0
  286. package/esm/_virtual/pure.js +4 -0
  287. package/esm/_virtual/pure.js.map +1 -0
  288. package/esm/_virtual/radioRole.js +4 -0
  289. package/esm/_virtual/radioRole.js.map +1 -0
  290. package/esm/_virtual/radiogroupRole.js +4 -0
  291. package/esm/_virtual/radiogroupRole.js.map +1 -0
  292. package/esm/_virtual/rangeRole.js +4 -0
  293. package/esm/_virtual/rangeRole.js.map +1 -0
  294. package/esm/_virtual/react-error-boundary.esm.js +7 -0
  295. package/esm/_virtual/react-error-boundary.esm.js.map +1 -0
  296. package/esm/_virtual/react-is.production.min.js +4 -0
  297. package/esm/_virtual/react-is.production.min.js.map +1 -0
  298. package/esm/_virtual/react.js +4 -0
  299. package/esm/_virtual/react.js.map +1 -0
  300. package/esm/_virtual/regionRole.js +4 -0
  301. package/esm/_virtual/regionRole.js.map +1 -0
  302. package/esm/_virtual/roleElementMap.js +4 -0
  303. package/esm/_virtual/roleElementMap.js.map +1 -0
  304. package/esm/_virtual/rolesMap.js +4 -0
  305. package/esm/_virtual/rolesMap.js.map +1 -0
  306. package/esm/_virtual/roletypeRole.js +4 -0
  307. package/esm/_virtual/roletypeRole.js.map +1 -0
  308. package/esm/_virtual/rowRole.js +4 -0
  309. package/esm/_virtual/rowRole.js.map +1 -0
  310. package/esm/_virtual/rowgroupRole.js +4 -0
  311. package/esm/_virtual/rowgroupRole.js.map +1 -0
  312. package/esm/_virtual/rowheaderRole.js +4 -0
  313. package/esm/_virtual/rowheaderRole.js.map +1 -0
  314. package/esm/_virtual/scrollbarRole.js +4 -0
  315. package/esm/_virtual/scrollbarRole.js.map +1 -0
  316. package/esm/_virtual/searchRole.js +4 -0
  317. package/esm/_virtual/searchRole.js.map +1 -0
  318. package/esm/_virtual/searchboxRole.js +4 -0
  319. package/esm/_virtual/searchboxRole.js.map +1 -0
  320. package/esm/_virtual/sectionRole.js +4 -0
  321. package/esm/_virtual/sectionRole.js.map +1 -0
  322. package/esm/_virtual/sectionheadRole.js +4 -0
  323. package/esm/_virtual/sectionheadRole.js.map +1 -0
  324. package/esm/_virtual/selectRole.js +4 -0
  325. package/esm/_virtual/selectRole.js.map +1 -0
  326. package/esm/_virtual/separatorRole.js +4 -0
  327. package/esm/_virtual/separatorRole.js.map +1 -0
  328. package/esm/_virtual/sliderRole.js +4 -0
  329. package/esm/_virtual/sliderRole.js.map +1 -0
  330. package/esm/_virtual/spinbuttonRole.js +4 -0
  331. package/esm/_virtual/spinbuttonRole.js.map +1 -0
  332. package/esm/_virtual/statusRole.js +4 -0
  333. package/esm/_virtual/statusRole.js.map +1 -0
  334. package/esm/_virtual/strongRole.js +4 -0
  335. package/esm/_virtual/strongRole.js.map +1 -0
  336. package/esm/_virtual/structureRole.js +4 -0
  337. package/esm/_virtual/structureRole.js.map +1 -0
  338. package/esm/_virtual/subscriptRole.js +4 -0
  339. package/esm/_virtual/subscriptRole.js.map +1 -0
  340. package/esm/_virtual/superscriptRole.js +4 -0
  341. package/esm/_virtual/superscriptRole.js.map +1 -0
  342. package/esm/_virtual/switchRole.js +4 -0
  343. package/esm/_virtual/switchRole.js.map +1 -0
  344. package/esm/_virtual/tabRole.js +4 -0
  345. package/esm/_virtual/tabRole.js.map +1 -0
  346. package/esm/_virtual/tableRole.js +4 -0
  347. package/esm/_virtual/tableRole.js.map +1 -0
  348. package/esm/_virtual/tablistRole.js +4 -0
  349. package/esm/_virtual/tablistRole.js.map +1 -0
  350. package/esm/_virtual/tabpanelRole.js +4 -0
  351. package/esm/_virtual/tabpanelRole.js.map +1 -0
  352. package/esm/_virtual/termRole.js +4 -0
  353. package/esm/_virtual/termRole.js.map +1 -0
  354. package/esm/_virtual/textboxRole.js +4 -0
  355. package/esm/_virtual/textboxRole.js.map +1 -0
  356. package/esm/_virtual/timeRole.js +4 -0
  357. package/esm/_virtual/timeRole.js.map +1 -0
  358. package/esm/_virtual/timerRole.js +4 -0
  359. package/esm/_virtual/timerRole.js.map +1 -0
  360. package/esm/_virtual/toolbarRole.js +4 -0
  361. package/esm/_virtual/toolbarRole.js.map +1 -0
  362. package/esm/_virtual/tooltipRole.js +4 -0
  363. package/esm/_virtual/tooltipRole.js.map +1 -0
  364. package/esm/_virtual/treeRole.js +4 -0
  365. package/esm/_virtual/treeRole.js.map +1 -0
  366. package/esm/_virtual/treegridRole.js +4 -0
  367. package/esm/_virtual/treegridRole.js.map +1 -0
  368. package/esm/_virtual/treeitemRole.js +4 -0
  369. package/esm/_virtual/treeitemRole.js.map +1 -0
  370. package/esm/_virtual/url-join.js +4 -0
  371. package/esm/_virtual/url-join.js.map +1 -0
  372. package/esm/_virtual/widgetRole.js +4 -0
  373. package/esm/_virtual/widgetRole.js.map +1 -0
  374. package/esm/_virtual/windowRole.js +4 -0
  375. package/esm/_virtual/windowRole.js.map +1 -0
  376. package/esm/actions.js +15 -0
  377. package/esm/actions.js.map +1 -0
  378. package/esm/components/App/hooks.js +24 -0
  379. package/esm/components/App/hooks.js.map +1 -0
  380. package/esm/components/App/index.js +227 -0
  381. package/esm/components/App/index.js.map +1 -0
  382. package/esm/components/AuthIFrame/index.js +50 -0
  383. package/esm/components/AuthIFrame/index.js.map +1 -0
  384. package/esm/components/AuthProvider/index.js +7 -0
  385. package/esm/components/AuthProvider/index.js.map +1 -0
  386. package/esm/components/AuthRedirect/index.js +82 -0
  387. package/esm/components/AuthRedirect/index.js.map +1 -0
  388. package/esm/components/Avatar/index.js +134 -0
  389. package/esm/components/Avatar/index.js.map +1 -0
  390. package/esm/components/Buttons/Clear.js +36 -0
  391. package/esm/components/Buttons/Clear.js.map +1 -0
  392. package/esm/components/Buttons/Select.js +30 -0
  393. package/esm/components/Buttons/Select.js.map +1 -0
  394. package/esm/components/Buttons/SourceFile.js +30 -0
  395. package/esm/components/Buttons/SourceFile.js.map +1 -0
  396. package/esm/components/Buttons/cancel.js +40 -0
  397. package/esm/components/Buttons/cancel.js.map +1 -0
  398. package/esm/components/Buttons/clone.js +30 -0
  399. package/esm/components/Buttons/clone.js.map +1 -0
  400. package/esm/components/Buttons/confirm.js +30 -0
  401. package/esm/components/Buttons/confirm.js.map +1 -0
  402. package/esm/components/Buttons/continue.js +30 -0
  403. package/esm/components/Buttons/continue.js.map +1 -0
  404. package/esm/components/Buttons/create.js +43 -0
  405. package/esm/components/Buttons/create.js.map +1 -0
  406. package/esm/components/Buttons/delete.js +29 -0
  407. package/esm/components/Buttons/delete.js.map +1 -0
  408. package/esm/components/Buttons/download.js +30 -0
  409. package/esm/components/Buttons/download.js.map +1 -0
  410. package/esm/components/Buttons/downloadCSV.js +30 -0
  411. package/esm/components/Buttons/downloadCSV.js.map +1 -0
  412. package/esm/components/Buttons/edit.js +43 -0
  413. package/esm/components/Buttons/edit.js.map +1 -0
  414. package/esm/components/Buttons/goBack.js +24 -0
  415. package/esm/components/Buttons/goBack.js.map +1 -0
  416. package/esm/components/Buttons/invite.js +30 -0
  417. package/esm/components/Buttons/invite.js.map +1 -0
  418. package/esm/components/Buttons/logs.js +30 -0
  419. package/esm/components/Buttons/logs.js.map +1 -0
  420. package/esm/components/Buttons/menuItem.js +25 -0
  421. package/esm/components/Buttons/menuItem.js.map +1 -0
  422. package/esm/components/Buttons/messages.js +95 -0
  423. package/esm/components/Buttons/messages.js.map +1 -0
  424. package/esm/components/Buttons/refresh.js +29 -0
  425. package/esm/components/Buttons/refresh.js.map +1 -0
  426. package/esm/components/Buttons/resendinvite.js +29 -0
  427. package/esm/components/Buttons/resendinvite.js.map +1 -0
  428. package/esm/components/Buttons/reset.js +28 -0
  429. package/esm/components/Buttons/reset.js.map +1 -0
  430. package/esm/components/Buttons/start.js +43 -0
  431. package/esm/components/Buttons/start.js.map +1 -0
  432. package/esm/components/Buttons/summary.js +30 -0
  433. package/esm/components/Buttons/summary.js.map +1 -0
  434. package/esm/components/Buttons/update.js +30 -0
  435. package/esm/components/Buttons/update.js.map +1 -0
  436. package/esm/components/Buttons/upload.js +30 -0
  437. package/esm/components/Buttons/upload.js.map +1 -0
  438. package/esm/components/Confy/hooks.js +24 -0
  439. package/esm/components/Confy/hooks.js.map +1 -0
  440. package/esm/components/Confy/index.js +90 -0
  441. package/esm/components/Confy/index.js.map +1 -0
  442. package/esm/components/Content/index.js +32 -0
  443. package/esm/components/Content/index.js.map +1 -0
  444. package/esm/components/DataList/index.js +97 -0
  445. package/esm/components/DataList/index.js.map +1 -0
  446. package/esm/components/DatagridFormatters/AvatarFormatter/index.js +67 -0
  447. package/esm/components/DatagridFormatters/AvatarFormatter/index.js.map +1 -0
  448. package/esm/components/DatagridFormatters/DateFormatter/index.js +24 -0
  449. package/esm/components/DatagridFormatters/DateFormatter/index.js.map +1 -0
  450. package/esm/components/DatagridFormatters/URLFormatter/index.js +28 -0
  451. package/esm/components/DatagridFormatters/URLFormatter/index.js.map +1 -0
  452. package/esm/components/Drawers/DrawerRightSide.js +131 -0
  453. package/esm/components/Drawers/DrawerRightSide.js.map +1 -0
  454. package/esm/components/Drawers/index.js +2 -0
  455. package/esm/components/Drawers/index.js.map +1 -0
  456. package/esm/components/ErrorBoundary.js +67 -0
  457. package/esm/components/ErrorBoundary.js.map +1 -0
  458. package/esm/components/Forbidden/index.js +63 -0
  459. package/esm/components/Forbidden/index.js.map +1 -0
  460. package/esm/components/Forbidden/messages.js +23 -0
  461. package/esm/components/Forbidden/messages.js.map +1 -0
  462. package/esm/components/FormDialog/FormDialog.js +64 -0
  463. package/esm/components/FormDialog/FormDialog.js.map +1 -0
  464. package/esm/components/FormDialog/index.js +2 -0
  465. package/esm/components/FormDialog/index.js.map +1 -0
  466. package/esm/components/FormatDate/index.js +25 -0
  467. package/esm/components/FormatDate/index.js.map +1 -0
  468. package/esm/components/GobackBtn/index.js +27 -0
  469. package/esm/components/GobackBtn/index.js.map +1 -0
  470. package/esm/components/Graph/index.js +145 -0
  471. package/esm/components/Graph/index.js.map +1 -0
  472. package/esm/components/Header/index.js +103 -0
  473. package/esm/components/Header/index.js.map +1 -0
  474. package/esm/components/LanguageProvider/index.js +22 -0
  475. package/esm/components/LanguageProvider/index.js.map +1 -0
  476. package/esm/components/Layout/index.js +166 -0
  477. package/esm/components/Layout/index.js.map +1 -0
  478. package/esm/components/Layout/utils.js +12 -0
  479. package/esm/components/Layout/utils.js.map +1 -0
  480. package/esm/components/LoadingProvider/index.js +34 -0
  481. package/esm/components/LoadingProvider/index.js.map +1 -0
  482. package/esm/components/LoadingScreen/index.js +24 -0
  483. package/esm/components/LoadingScreen/index.js.map +1 -0
  484. package/esm/components/MenuItem/index.js +120 -0
  485. package/esm/components/MenuItem/index.js.map +1 -0
  486. package/esm/components/MenuItem/messages.js +71 -0
  487. package/esm/components/MenuItem/messages.js.map +1 -0
  488. package/esm/components/MenuProvider/index.js +27 -0
  489. package/esm/components/MenuProvider/index.js.map +1 -0
  490. package/esm/components/ModulesProvider/index.js +7 -0
  491. package/esm/components/ModulesProvider/index.js.map +1 -0
  492. package/esm/components/Nav/index.js +23 -0
  493. package/esm/components/Nav/index.js.map +1 -0
  494. package/esm/components/NavProvider/index.js +7 -0
  495. package/esm/components/NavProvider/index.js.map +1 -0
  496. package/esm/components/NavSelectMembers/index.js +90 -0
  497. package/esm/components/NavSelectMembers/index.js.map +1 -0
  498. package/esm/components/NavTitle/index.js +24 -0
  499. package/esm/components/NavTitle/index.js.map +1 -0
  500. package/esm/components/NavigationProvider/index.js +25 -0
  501. package/esm/components/NavigationProvider/index.js.map +1 -0
  502. package/esm/components/Notification/index.js +65 -0
  503. package/esm/components/Notification/index.js.map +1 -0
  504. package/esm/components/NotificationProvider/index.js +28 -0
  505. package/esm/components/NotificationProvider/index.js.map +1 -0
  506. package/esm/components/Page/index.js +29 -0
  507. package/esm/components/Page/index.js.map +1 -0
  508. package/esm/components/PageContent/index.js +31 -0
  509. package/esm/components/PageContent/index.js.map +1 -0
  510. package/esm/components/PageHeader/index.js +70 -0
  511. package/esm/components/PageHeader/index.js.map +1 -0
  512. package/esm/components/RoutesProvider/index.js +7 -0
  513. package/esm/components/RoutesProvider/index.js.map +1 -0
  514. package/esm/components/SelectMemberMenu/index.js +99 -0
  515. package/esm/components/SelectMemberMenu/index.js.map +1 -0
  516. package/esm/components/SelectMemberMenu/messages.js +11 -0
  517. package/esm/components/SelectMemberMenu/messages.js.map +1 -0
  518. package/esm/components/UserCard/index.js +73 -0
  519. package/esm/components/UserCard/index.js.map +1 -0
  520. package/esm/components/UserCard/messages.js +15 -0
  521. package/esm/components/UserCard/messages.js.map +1 -0
  522. package/esm/components/utils/ListChipsColors.js +11 -0
  523. package/esm/components/utils/ListChipsColors.js.map +1 -0
  524. package/esm/ducks/auth.js +54 -0
  525. package/esm/ducks/auth.js.map +1 -0
  526. package/esm/ducks/config.js +42 -0
  527. package/esm/ducks/config.js.map +1 -0
  528. package/esm/ducks/core.js +131 -0
  529. package/esm/ducks/core.js.map +1 -0
  530. package/esm/ducks/index.js +18 -0
  531. package/esm/ducks/index.js.map +1 -0
  532. package/esm/ducks/language.js +33 -0
  533. package/esm/ducks/language.js.map +1 -0
  534. package/esm/ducks/members.js +82 -0
  535. package/esm/ducks/members.js.map +1 -0
  536. package/esm/ducks/storage.js +57 -0
  537. package/esm/ducks/storage.js.map +1 -0
  538. package/esm/ducks/utils.js +58 -0
  539. package/esm/ducks/utils.js.map +1 -0
  540. package/esm/forms/Checkbox/index.js +36 -0
  541. package/esm/forms/Checkbox/index.js.map +1 -0
  542. package/esm/forms/DateField/index.js +31 -0
  543. package/esm/forms/DateField/index.js.map +1 -0
  544. package/esm/forms/DateTimePicker/index.js +51 -0
  545. package/esm/forms/DateTimePicker/index.js.map +1 -0
  546. package/esm/forms/MultiSelectField/index.js +64 -0
  547. package/esm/forms/MultiSelectField/index.js.map +1 -0
  548. package/esm/forms/Select/index.js +48 -0
  549. package/esm/forms/Select/index.js.map +1 -0
  550. package/esm/forms/Switch/index.js +31 -0
  551. package/esm/forms/Switch/index.js.map +1 -0
  552. package/esm/forms/TextField/index.js +58 -0
  553. package/esm/forms/TextField/index.js.map +1 -0
  554. package/esm/forms/utils.js +135 -0
  555. package/esm/forms/utils.js.map +1 -0
  556. package/esm/hooks/auth.js +9 -0
  557. package/esm/hooks/auth.js.map +1 -0
  558. package/esm/hooks/config.js +9 -0
  559. package/esm/hooks/config.js.map +1 -0
  560. package/esm/hooks/loading.js +9 -0
  561. package/esm/hooks/loading.js.map +1 -0
  562. package/esm/hooks/members.js +25 -0
  563. package/esm/hooks/members.js.map +1 -0
  564. package/esm/hooks/menu.js +9 -0
  565. package/esm/hooks/menu.js.map +1 -0
  566. package/esm/hooks/modules.js +9 -0
  567. package/esm/hooks/modules.js.map +1 -0
  568. package/esm/hooks/nav.js +9 -0
  569. package/esm/hooks/nav.js.map +1 -0
  570. package/esm/hooks/notification.js +26 -0
  571. package/esm/hooks/notification.js.map +1 -0
  572. package/esm/hooks/roles.js +17 -0
  573. package/esm/hooks/roles.js.map +1 -0
  574. package/esm/hooks/routes.js +9 -0
  575. package/esm/hooks/routes.js.map +1 -0
  576. package/esm/hooks/user.js +9 -0
  577. package/esm/hooks/user.js.map +1 -0
  578. package/esm/hooks/window.js +31 -0
  579. package/esm/hooks/window.js.map +1 -0
  580. package/esm/index.js +14 -0
  581. package/esm/index.js.map +1 -0
  582. package/esm/lib/api/apiKeys.js +51 -0
  583. package/esm/lib/api/apiKeys.js.map +1 -0
  584. package/esm/lib/api/config.js +14 -0
  585. package/esm/lib/api/config.js.map +1 -0
  586. package/esm/lib/api/dataBuckets.js +18 -0
  587. package/esm/lib/api/dataBuckets.js.map +1 -0
  588. package/esm/lib/api/index.js +91 -0
  589. package/esm/lib/api/index.js.map +1 -0
  590. package/esm/lib/api/jobs.js +56 -0
  591. package/esm/lib/api/jobs.js.map +1 -0
  592. package/esm/lib/api/members.js +33 -0
  593. package/esm/lib/api/members.js.map +1 -0
  594. package/esm/lib/api/people.js +50 -0
  595. package/esm/lib/api/people.js.map +1 -0
  596. package/esm/lib/api/roles.js +17 -0
  597. package/esm/lib/api/roles.js.map +1 -0
  598. package/esm/lib/api/routes.js +43 -0
  599. package/esm/lib/api/routes.js.map +1 -0
  600. package/esm/lib/api/servicesMap.js +17 -0
  601. package/esm/lib/api/servicesMap.js.map +1 -0
  602. package/esm/lib/api/spaces.js +32 -0
  603. package/esm/lib/api/spaces.js.map +1 -0
  604. package/esm/lib/api/storage.js +94 -0
  605. package/esm/lib/api/storage.js.map +1 -0
  606. package/esm/menu.js +14 -0
  607. package/esm/menu.js.map +1 -0
  608. package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
  609. package/esm/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  610. package/esm/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +8 -0
  611. package/esm/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  612. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
  613. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  614. package/esm/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js +2751 -0
  615. package/esm/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js.map +1 -0
  616. package/esm/node_modules/@testing-library/dom/node_modules/ansi-styles/index.js +174 -0
  617. package/esm/node_modules/@testing-library/dom/node_modules/ansi-styles/index.js.map +1 -0
  618. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js +190 -0
  619. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js.map +1 -0
  620. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js +617 -0
  621. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js.map +1 -0
  622. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js +120 -0
  623. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js.map +1 -0
  624. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js +99 -0
  625. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js.map +1 -0
  626. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js +83 -0
  627. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js.map +1 -0
  628. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js +131 -0
  629. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js.map +1 -0
  630. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js +250 -0
  631. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js.map +1 -0
  632. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js +170 -0
  633. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js.map +1 -0
  634. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js +82 -0
  635. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js.map +1 -0
  636. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js +17 -0
  637. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js.map +1 -0
  638. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js +158 -0
  639. package/esm/node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js.map +1 -0
  640. package/esm/node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js +27 -0
  641. package/esm/node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  642. package/esm/node_modules/@testing-library/dom/node_modules/react-is/index.js +11 -0
  643. package/esm/node_modules/@testing-library/dom/node_modules/react-is/index.js.map +1 -0
  644. package/esm/node_modules/@testing-library/react/dist/@testing-library/react.esm.js +369 -0
  645. package/esm/node_modules/@testing-library/react/dist/@testing-library/react.esm.js.map +1 -0
  646. package/esm/node_modules/@testing-library/react-hooks/dom/index.js +7 -0
  647. package/esm/node_modules/@testing-library/react-hooks/dom/index.js.map +1 -0
  648. package/esm/node_modules/@testing-library/react-hooks/lib/core/asyncUtils.js +112 -0
  649. package/esm/node_modules/@testing-library/react-hooks/lib/core/asyncUtils.js.map +1 -0
  650. package/esm/node_modules/@testing-library/react-hooks/lib/core/cleanup.js +48 -0
  651. package/esm/node_modules/@testing-library/react-hooks/lib/core/cleanup.js.map +1 -0
  652. package/esm/node_modules/@testing-library/react-hooks/lib/core/console.js +50 -0
  653. package/esm/node_modules/@testing-library/react-hooks/lib/core/console.js.map +1 -0
  654. package/esm/node_modules/@testing-library/react-hooks/lib/core/index.js +147 -0
  655. package/esm/node_modules/@testing-library/react-hooks/lib/core/index.js.map +1 -0
  656. package/esm/node_modules/@testing-library/react-hooks/lib/dom/index.js +34 -0
  657. package/esm/node_modules/@testing-library/react-hooks/lib/dom/index.js.map +1 -0
  658. package/esm/node_modules/@testing-library/react-hooks/lib/dom/pure.js +113 -0
  659. package/esm/node_modules/@testing-library/react-hooks/lib/dom/pure.js.map +1 -0
  660. package/esm/node_modules/@testing-library/react-hooks/lib/helpers/createTestHarness.js +73 -0
  661. package/esm/node_modules/@testing-library/react-hooks/lib/helpers/createTestHarness.js.map +1 -0
  662. package/esm/node_modules/@testing-library/react-hooks/lib/helpers/createTimeoutController.js +43 -0
  663. package/esm/node_modules/@testing-library/react-hooks/lib/helpers/createTimeoutController.js.map +1 -0
  664. package/esm/node_modules/@testing-library/react-hooks/lib/helpers/error.js +18 -0
  665. package/esm/node_modules/@testing-library/react-hooks/lib/helpers/error.js.map +1 -0
  666. package/esm/node_modules/@testing-library/react-hooks/lib/types/react.js +23 -0
  667. package/esm/node_modules/@testing-library/react-hooks/lib/types/react.js.map +1 -0
  668. package/esm/node_modules/ansi-regex/index.js +11 -0
  669. package/esm/node_modules/ansi-regex/index.js.map +1 -0
  670. package/esm/node_modules/aria-query/lib/ariaPropsMap.js +175 -0
  671. package/esm/node_modules/aria-query/lib/ariaPropsMap.js.map +1 -0
  672. package/esm/node_modules/aria-query/lib/domMap.js +324 -0
  673. package/esm/node_modules/aria-query/lib/domMap.js.map +1 -0
  674. package/esm/node_modules/aria-query/lib/elementRoleMap.js +110 -0
  675. package/esm/node_modules/aria-query/lib/elementRoleMap.js.map +1 -0
  676. package/esm/node_modules/aria-query/lib/etc/roles/abstract/commandRole.js +29 -0
  677. package/esm/node_modules/aria-query/lib/etc/roles/abstract/commandRole.js.map +1 -0
  678. package/esm/node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js +27 -0
  679. package/esm/node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js.map +1 -0
  680. package/esm/node_modules/aria-query/lib/etc/roles/abstract/inputRole.js +31 -0
  681. package/esm/node_modules/aria-query/lib/etc/roles/abstract/inputRole.js.map +1 -0
  682. package/esm/node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js +24 -0
  683. package/esm/node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js.map +1 -0
  684. package/esm/node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js +28 -0
  685. package/esm/node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js.map +1 -0
  686. package/esm/node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js +57 -0
  687. package/esm/node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js.map +1 -0
  688. package/esm/node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js +39 -0
  689. package/esm/node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js.map +1 -0
  690. package/esm/node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js +24 -0
  691. package/esm/node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js.map +1 -0
  692. package/esm/node_modules/aria-query/lib/etc/roles/abstract/selectRole.js +26 -0
  693. package/esm/node_modules/aria-query/lib/etc/roles/abstract/selectRole.js.map +1 -0
  694. package/esm/node_modules/aria-query/lib/etc/roles/abstract/structureRole.js +24 -0
  695. package/esm/node_modules/aria-query/lib/etc/roles/abstract/structureRole.js.map +1 -0
  696. package/esm/node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js +24 -0
  697. package/esm/node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js.map +1 -0
  698. package/esm/node_modules/aria-query/lib/etc/roles/abstract/windowRole.js +26 -0
  699. package/esm/node_modules/aria-query/lib/etc/roles/abstract/windowRole.js.map +1 -0
  700. package/esm/node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js +48 -0
  701. package/esm/node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js.map +1 -0
  702. package/esm/node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js +129 -0
  703. package/esm/node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js.map +1 -0
  704. package/esm/node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js +21 -0
  705. package/esm/node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js.map +1 -0
  706. package/esm/node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js +258 -0
  707. package/esm/node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js.map +1 -0
  708. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js +35 -0
  709. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js.map +1 -0
  710. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js +35 -0
  711. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js.map +1 -0
  712. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js +35 -0
  713. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js.map +1 -0
  714. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js +35 -0
  715. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js.map +1 -0
  716. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js +32 -0
  717. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js.map +1 -0
  718. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js +35 -0
  719. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js.map +1 -0
  720. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js +35 -0
  721. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js.map +1 -0
  722. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js +32 -0
  723. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js.map +1 -0
  724. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js +35 -0
  725. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js.map +1 -0
  726. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js +35 -0
  727. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js.map +1 -0
  728. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js +35 -0
  729. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js.map +1 -0
  730. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js +35 -0
  731. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js.map +1 -0
  732. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js +35 -0
  733. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js.map +1 -0
  734. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js +35 -0
  735. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js.map +1 -0
  736. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js +35 -0
  737. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js.map +1 -0
  738. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js +35 -0
  739. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js.map +1 -0
  740. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js +35 -0
  741. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js.map +1 -0
  742. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js +35 -0
  743. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js.map +1 -0
  744. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js +35 -0
  745. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js.map +1 -0
  746. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js +35 -0
  747. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js.map +1 -0
  748. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js +30 -0
  749. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js.map +1 -0
  750. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js +35 -0
  751. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js.map +1 -0
  752. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js +35 -0
  753. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js.map +1 -0
  754. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js +35 -0
  755. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js.map +1 -0
  756. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js +32 -0
  757. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js.map +1 -0
  758. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js +35 -0
  759. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js.map +1 -0
  760. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js +35 -0
  761. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js.map +1 -0
  762. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js +32 -0
  763. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js.map +1 -0
  764. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js +35 -0
  765. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js.map +1 -0
  766. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js +34 -0
  767. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js.map +1 -0
  768. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js +35 -0
  769. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js.map +1 -0
  770. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js +35 -0
  771. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js.map +1 -0
  772. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js +35 -0
  773. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js.map +1 -0
  774. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js +35 -0
  775. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js.map +1 -0
  776. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js +29 -0
  777. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js.map +1 -0
  778. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js +35 -0
  779. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js.map +1 -0
  780. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js +35 -0
  781. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js.map +1 -0
  782. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js +35 -0
  783. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js.map +1 -0
  784. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js +35 -0
  785. package/esm/node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js.map +1 -0
  786. package/esm/node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js +45 -0
  787. package/esm/node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js.map +1 -0
  788. package/esm/node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js +49 -0
  789. package/esm/node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js.map +1 -0
  790. package/esm/node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js +30 -0
  791. package/esm/node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js.map +1 -0
  792. package/esm/node_modules/aria-query/lib/etc/roles/literal/alertRole.js +32 -0
  793. package/esm/node_modules/aria-query/lib/etc/roles/literal/alertRole.js.map +1 -0
  794. package/esm/node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js +29 -0
  795. package/esm/node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js.map +1 -0
  796. package/esm/node_modules/aria-query/lib/etc/roles/literal/applicationRole.js +35 -0
  797. package/esm/node_modules/aria-query/lib/etc/roles/literal/applicationRole.js.map +1 -0
  798. package/esm/node_modules/aria-query/lib/etc/roles/literal/articleRole.js +32 -0
  799. package/esm/node_modules/aria-query/lib/etc/roles/literal/articleRole.js.map +1 -0
  800. package/esm/node_modules/aria-query/lib/etc/roles/literal/bannerRole.js +30 -0
  801. package/esm/node_modules/aria-query/lib/etc/roles/literal/bannerRole.js.map +1 -0
  802. package/esm/node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js +24 -0
  803. package/esm/node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js.map +1 -0
  804. package/esm/node_modules/aria-query/lib/etc/roles/literal/buttonRole.js +106 -0
  805. package/esm/node_modules/aria-query/lib/etc/roles/literal/buttonRole.js.map +1 -0
  806. package/esm/node_modules/aria-query/lib/etc/roles/literal/captionRole.js +24 -0
  807. package/esm/node_modules/aria-query/lib/etc/roles/literal/captionRole.js.map +1 -0
  808. package/esm/node_modules/aria-query/lib/etc/roles/literal/cellRole.js +35 -0
  809. package/esm/node_modules/aria-query/lib/etc/roles/literal/cellRole.js.map +1 -0
  810. package/esm/node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js +47 -0
  811. package/esm/node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js.map +1 -0
  812. package/esm/node_modules/aria-query/lib/etc/roles/literal/codeRole.js +24 -0
  813. package/esm/node_modules/aria-query/lib/etc/roles/literal/codeRole.js.map +1 -0
  814. package/esm/node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js +35 -0
  815. package/esm/node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js.map +1 -0
  816. package/esm/node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js +137 -0
  817. package/esm/node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js.map +1 -0
  818. package/esm/node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js +29 -0
  819. package/esm/node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js.map +1 -0
  820. package/esm/node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js +30 -0
  821. package/esm/node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js.map +1 -0
  822. package/esm/node_modules/aria-query/lib/etc/roles/literal/definitionRole.js +29 -0
  823. package/esm/node_modules/aria-query/lib/etc/roles/literal/definitionRole.js.map +1 -0
  824. package/esm/node_modules/aria-query/lib/etc/roles/literal/deletionRole.js +24 -0
  825. package/esm/node_modules/aria-query/lib/etc/roles/literal/deletionRole.js.map +1 -0
  826. package/esm/node_modules/aria-query/lib/etc/roles/literal/dialogRole.js +29 -0
  827. package/esm/node_modules/aria-query/lib/etc/roles/literal/dialogRole.js.map +1 -0
  828. package/esm/node_modules/aria-query/lib/etc/roles/literal/directoryRole.js +26 -0
  829. package/esm/node_modules/aria-query/lib/etc/roles/literal/directoryRole.js.map +1 -0
  830. package/esm/node_modules/aria-query/lib/etc/roles/literal/documentRole.js +33 -0
  831. package/esm/node_modules/aria-query/lib/etc/roles/literal/documentRole.js.map +1 -0
  832. package/esm/node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js +24 -0
  833. package/esm/node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js.map +1 -0
  834. package/esm/node_modules/aria-query/lib/etc/roles/literal/feedRole.js +24 -0
  835. package/esm/node_modules/aria-query/lib/etc/roles/literal/feedRole.js.map +1 -0
  836. package/esm/node_modules/aria-query/lib/etc/roles/literal/figureRole.js +29 -0
  837. package/esm/node_modules/aria-query/lib/etc/roles/literal/figureRole.js.map +1 -0
  838. package/esm/node_modules/aria-query/lib/etc/roles/literal/formRole.js +51 -0
  839. package/esm/node_modules/aria-query/lib/etc/roles/literal/formRole.js.map +1 -0
  840. package/esm/node_modules/aria-query/lib/etc/roles/literal/genericRole.js +34 -0
  841. package/esm/node_modules/aria-query/lib/etc/roles/literal/genericRole.js.map +1 -0
  842. package/esm/node_modules/aria-query/lib/etc/roles/literal/gridRole.js +36 -0
  843. package/esm/node_modules/aria-query/lib/etc/roles/literal/gridRole.js.map +1 -0
  844. package/esm/node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js +42 -0
  845. package/esm/node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js.map +1 -0
  846. package/esm/node_modules/aria-query/lib/etc/roles/literal/groupRole.js +42 -0
  847. package/esm/node_modules/aria-query/lib/etc/roles/literal/groupRole.js.map +1 -0
  848. package/esm/node_modules/aria-query/lib/etc/roles/literal/headingRole.js +58 -0
  849. package/esm/node_modules/aria-query/lib/etc/roles/literal/headingRole.js.map +1 -0
  850. package/esm/node_modules/aria-query/lib/etc/roles/literal/imgRole.js +47 -0
  851. package/esm/node_modules/aria-query/lib/etc/roles/literal/imgRole.js.map +1 -0
  852. package/esm/node_modules/aria-query/lib/etc/roles/literal/insertionRole.js +24 -0
  853. package/esm/node_modules/aria-query/lib/etc/roles/literal/insertionRole.js.map +1 -0
  854. package/esm/node_modules/aria-query/lib/etc/roles/literal/linkRole.js +52 -0
  855. package/esm/node_modules/aria-query/lib/etc/roles/literal/linkRole.js.map +1 -0
  856. package/esm/node_modules/aria-query/lib/etc/roles/literal/listRole.js +39 -0
  857. package/esm/node_modules/aria-query/lib/etc/roles/literal/listRole.js.map +1 -0
  858. package/esm/node_modules/aria-query/lib/etc/roles/literal/listboxRole.js +75 -0
  859. package/esm/node_modules/aria-query/lib/etc/roles/literal/listboxRole.js.map +1 -0
  860. package/esm/node_modules/aria-query/lib/etc/roles/literal/listitemRole.js +39 -0
  861. package/esm/node_modules/aria-query/lib/etc/roles/literal/listitemRole.js.map +1 -0
  862. package/esm/node_modules/aria-query/lib/etc/roles/literal/logRole.js +26 -0
  863. package/esm/node_modules/aria-query/lib/etc/roles/literal/logRole.js.map +1 -0
  864. package/esm/node_modules/aria-query/lib/etc/roles/literal/mainRole.js +29 -0
  865. package/esm/node_modules/aria-query/lib/etc/roles/literal/mainRole.js.map +1 -0
  866. package/esm/node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js +24 -0
  867. package/esm/node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js.map +1 -0
  868. package/esm/node_modules/aria-query/lib/etc/roles/literal/mathRole.js +29 -0
  869. package/esm/node_modules/aria-query/lib/etc/roles/literal/mathRole.js.map +1 -0
  870. package/esm/node_modules/aria-query/lib/etc/roles/literal/menuRole.js +46 -0
  871. package/esm/node_modules/aria-query/lib/etc/roles/literal/menuRole.js.map +1 -0
  872. package/esm/node_modules/aria-query/lib/etc/roles/literal/menubarRole.js +31 -0
  873. package/esm/node_modules/aria-query/lib/etc/roles/literal/menubarRole.js.map +1 -0
  874. package/esm/node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js +50 -0
  875. package/esm/node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js.map +1 -0
  876. package/esm/node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js +31 -0
  877. package/esm/node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js.map +1 -0
  878. package/esm/node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js +31 -0
  879. package/esm/node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js.map +1 -0
  880. package/esm/node_modules/aria-query/lib/etc/roles/literal/meterRole.js +30 -0
  881. package/esm/node_modules/aria-query/lib/etc/roles/literal/meterRole.js.map +1 -0
  882. package/esm/node_modules/aria-query/lib/etc/roles/literal/navigationRole.js +29 -0
  883. package/esm/node_modules/aria-query/lib/etc/roles/literal/navigationRole.js.map +1 -0
  884. package/esm/node_modules/aria-query/lib/etc/roles/literal/noneRole.js +24 -0
  885. package/esm/node_modules/aria-query/lib/etc/roles/literal/noneRole.js.map +1 -0
  886. package/esm/node_modules/aria-query/lib/etc/roles/literal/noteRole.js +24 -0
  887. package/esm/node_modules/aria-query/lib/etc/roles/literal/noteRole.js.map +1 -0
  888. package/esm/node_modules/aria-query/lib/etc/roles/literal/optionRole.js +46 -0
  889. package/esm/node_modules/aria-query/lib/etc/roles/literal/optionRole.js.map +1 -0
  890. package/esm/node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js +24 -0
  891. package/esm/node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js.map +1 -0
  892. package/esm/node_modules/aria-query/lib/etc/roles/literal/presentationRole.js +24 -0
  893. package/esm/node_modules/aria-query/lib/etc/roles/literal/presentationRole.js.map +1 -0
  894. package/esm/node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js +36 -0
  895. package/esm/node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js.map +1 -0
  896. package/esm/node_modules/aria-query/lib/etc/roles/literal/radioRole.js +39 -0
  897. package/esm/node_modules/aria-query/lib/etc/roles/literal/radioRole.js.map +1 -0
  898. package/esm/node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js +34 -0
  899. package/esm/node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js.map +1 -0
  900. package/esm/node_modules/aria-query/lib/etc/roles/literal/regionRole.js +51 -0
  901. package/esm/node_modules/aria-query/lib/etc/roles/literal/regionRole.js.map +1 -0
  902. package/esm/node_modules/aria-query/lib/etc/roles/literal/rowRole.js +37 -0
  903. package/esm/node_modules/aria-query/lib/etc/roles/literal/rowRole.js.map +1 -0
  904. package/esm/node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js +39 -0
  905. package/esm/node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js.map +1 -0
  906. package/esm/node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js +44 -0
  907. package/esm/node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js.map +1 -0
  908. package/esm/node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js +33 -0
  909. package/esm/node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js.map +1 -0
  910. package/esm/node_modules/aria-query/lib/etc/roles/literal/searchRole.js +24 -0
  911. package/esm/node_modules/aria-query/lib/etc/roles/literal/searchRole.js.map +1 -0
  912. package/esm/node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js +36 -0
  913. package/esm/node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js.map +1 -0
  914. package/esm/node_modules/aria-query/lib/etc/roles/literal/separatorRole.js +36 -0
  915. package/esm/node_modules/aria-query/lib/etc/roles/literal/separatorRole.js.map +1 -0
  916. package/esm/node_modules/aria-query/lib/etc/roles/literal/sliderRole.js +44 -0
  917. package/esm/node_modules/aria-query/lib/etc/roles/literal/sliderRole.js.map +1 -0
  918. package/esm/node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js +40 -0
  919. package/esm/node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js.map +1 -0
  920. package/esm/node_modules/aria-query/lib/etc/roles/literal/statusRole.js +32 -0
  921. package/esm/node_modules/aria-query/lib/etc/roles/literal/statusRole.js.map +1 -0
  922. package/esm/node_modules/aria-query/lib/etc/roles/literal/strongRole.js +24 -0
  923. package/esm/node_modules/aria-query/lib/etc/roles/literal/strongRole.js.map +1 -0
  924. package/esm/node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js +24 -0
  925. package/esm/node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js.map +1 -0
  926. package/esm/node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js +24 -0
  927. package/esm/node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js.map +1 -0
  928. package/esm/node_modules/aria-query/lib/etc/roles/literal/switchRole.js +31 -0
  929. package/esm/node_modules/aria-query/lib/etc/roles/literal/switchRole.js.map +1 -0
  930. package/esm/node_modules/aria-query/lib/etc/roles/literal/tabRole.js +31 -0
  931. package/esm/node_modules/aria-query/lib/etc/roles/literal/tabRole.js.map +1 -0
  932. package/esm/node_modules/aria-query/lib/etc/roles/literal/tableRole.js +32 -0
  933. package/esm/node_modules/aria-query/lib/etc/roles/literal/tableRole.js.map +1 -0
  934. package/esm/node_modules/aria-query/lib/etc/roles/literal/tablistRole.js +33 -0
  935. package/esm/node_modules/aria-query/lib/etc/roles/literal/tablistRole.js.map +1 -0
  936. package/esm/node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js +24 -0
  937. package/esm/node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js.map +1 -0
  938. package/esm/node_modules/aria-query/lib/etc/roles/literal/termRole.js +34 -0
  939. package/esm/node_modules/aria-query/lib/etc/roles/literal/termRole.js.map +1 -0
  940. package/esm/node_modules/aria-query/lib/etc/roles/literal/textboxRole.js +104 -0
  941. package/esm/node_modules/aria-query/lib/etc/roles/literal/textboxRole.js.map +1 -0
  942. package/esm/node_modules/aria-query/lib/etc/roles/literal/timeRole.js +24 -0
  943. package/esm/node_modules/aria-query/lib/etc/roles/literal/timeRole.js.map +1 -0
  944. package/esm/node_modules/aria-query/lib/etc/roles/literal/timerRole.js +24 -0
  945. package/esm/node_modules/aria-query/lib/etc/roles/literal/timerRole.js.map +1 -0
  946. package/esm/node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js +31 -0
  947. package/esm/node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js.map +1 -0
  948. package/esm/node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js +24 -0
  949. package/esm/node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js.map +1 -0
  950. package/esm/node_modules/aria-query/lib/etc/roles/literal/treeRole.js +30 -0
  951. package/esm/node_modules/aria-query/lib/etc/roles/literal/treeRole.js.map +1 -0
  952. package/esm/node_modules/aria-query/lib/etc/roles/literal/treegridRole.js +24 -0
  953. package/esm/node_modules/aria-query/lib/etc/roles/literal/treegridRole.js.map +1 -0
  954. package/esm/node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js +29 -0
  955. package/esm/node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js.map +1 -0
  956. package/esm/node_modules/aria-query/lib/index.js +36 -0
  957. package/esm/node_modules/aria-query/lib/index.js.map +1 -0
  958. package/esm/node_modules/aria-query/lib/roleElementMap.js +99 -0
  959. package/esm/node_modules/aria-query/lib/roleElementMap.js.map +1 -0
  960. package/esm/node_modules/aria-query/lib/rolesMap.js +125 -0
  961. package/esm/node_modules/aria-query/lib/rolesMap.js.map +1 -0
  962. package/esm/node_modules/aria-query/lib/util/iterationDecorator.js +20 -0
  963. package/esm/node_modules/aria-query/lib/util/iterationDecorator.js.map +1 -0
  964. package/esm/node_modules/aria-query/lib/util/iteratorProxy.js +35 -0
  965. package/esm/node_modules/aria-query/lib/util/iteratorProxy.js.map +1 -0
  966. package/esm/node_modules/array-buffer-byte-length/index.js +18 -0
  967. package/esm/node_modules/array-buffer-byte-length/index.js.map +1 -0
  968. package/esm/node_modules/available-typed-arrays/index.js +21 -0
  969. package/esm/node_modules/available-typed-arrays/index.js.map +1 -0
  970. package/esm/node_modules/call-bind/callBound.js +19 -0
  971. package/esm/node_modules/call-bind/callBound.js.map +1 -0
  972. package/esm/node_modules/call-bind/index.js +36 -0
  973. package/esm/node_modules/call-bind/index.js.map +1 -0
  974. package/esm/node_modules/call-bind-apply-helpers/actualApply.js +16 -0
  975. package/esm/node_modules/call-bind-apply-helpers/actualApply.js.map +1 -0
  976. package/esm/node_modules/call-bind-apply-helpers/applyBind.js +15 -0
  977. package/esm/node_modules/call-bind-apply-helpers/applyBind.js.map +1 -0
  978. package/esm/node_modules/call-bind-apply-helpers/functionApply.js +14 -0
  979. package/esm/node_modules/call-bind-apply-helpers/functionApply.js.map +1 -0
  980. package/esm/node_modules/call-bind-apply-helpers/functionCall.js +14 -0
  981. package/esm/node_modules/call-bind-apply-helpers/functionCall.js.map +1 -0
  982. package/esm/node_modules/call-bind-apply-helpers/index.js +21 -0
  983. package/esm/node_modules/call-bind-apply-helpers/index.js.map +1 -0
  984. package/esm/node_modules/call-bind-apply-helpers/reflectApply.js +5 -0
  985. package/esm/node_modules/call-bind-apply-helpers/reflectApply.js.map +1 -0
  986. package/esm/node_modules/call-bound/index.js +22 -0
  987. package/esm/node_modules/call-bound/index.js.map +1 -0
  988. package/esm/node_modules/classnames/index.js +83 -0
  989. package/esm/node_modules/classnames/index.js.map +1 -0
  990. package/esm/node_modules/deep-equal/index.js +412 -0
  991. package/esm/node_modules/deep-equal/index.js.map +1 -0
  992. package/esm/node_modules/define-data-property/index.js +62 -0
  993. package/esm/node_modules/define-data-property/index.js.map +1 -0
  994. package/esm/node_modules/define-properties/index.js +52 -0
  995. package/esm/node_modules/define-properties/index.js.map +1 -0
  996. package/esm/node_modules/dom-accessibility-api/dist/accessible-description.js +37 -0
  997. package/esm/node_modules/dom-accessibility-api/dist/accessible-description.js.map +1 -0
  998. package/esm/node_modules/dom-accessibility-api/dist/accessible-name-and-description.js +537 -0
  999. package/esm/node_modules/dom-accessibility-api/dist/accessible-name-and-description.js.map +1 -0
  1000. package/esm/node_modules/dom-accessibility-api/dist/accessible-name.js +26 -0
  1001. package/esm/node_modules/dom-accessibility-api/dist/accessible-name.js.map +1 -0
  1002. package/esm/node_modules/dom-accessibility-api/dist/getRole.js +187 -0
  1003. package/esm/node_modules/dom-accessibility-api/dist/getRole.js.map +1 -0
  1004. package/esm/node_modules/dom-accessibility-api/dist/polyfills/SetLike.js +62 -0
  1005. package/esm/node_modules/dom-accessibility-api/dist/polyfills/SetLike.js.map +1 -0
  1006. package/esm/node_modules/dom-accessibility-api/dist/polyfills/array.from.js +76 -0
  1007. package/esm/node_modules/dom-accessibility-api/dist/polyfills/array.from.js.map +1 -0
  1008. package/esm/node_modules/dom-accessibility-api/dist/util.js +83 -0
  1009. package/esm/node_modules/dom-accessibility-api/dist/util.js.map +1 -0
  1010. package/esm/node_modules/dunder-proto/get.js +43 -0
  1011. package/esm/node_modules/dunder-proto/get.js.map +1 -0
  1012. package/esm/node_modules/es-define-property/index.js +15 -0
  1013. package/esm/node_modules/es-define-property/index.js.map +1 -0
  1014. package/esm/node_modules/es-errors/eval.js +5 -0
  1015. package/esm/node_modules/es-errors/eval.js.map +1 -0
  1016. package/esm/node_modules/es-errors/index.js +5 -0
  1017. package/esm/node_modules/es-errors/index.js.map +1 -0
  1018. package/esm/node_modules/es-errors/range.js +5 -0
  1019. package/esm/node_modules/es-errors/range.js.map +1 -0
  1020. package/esm/node_modules/es-errors/ref.js +5 -0
  1021. package/esm/node_modules/es-errors/ref.js.map +1 -0
  1022. package/esm/node_modules/es-errors/syntax.js +5 -0
  1023. package/esm/node_modules/es-errors/syntax.js.map +1 -0
  1024. package/esm/node_modules/es-errors/type.js +5 -0
  1025. package/esm/node_modules/es-errors/type.js.map +1 -0
  1026. package/esm/node_modules/es-errors/uri.js +5 -0
  1027. package/esm/node_modules/es-errors/uri.js.map +1 -0
  1028. package/esm/node_modules/es-get-iterator/node.js +13 -0
  1029. package/esm/node_modules/es-get-iterator/node.js.map +1 -0
  1030. package/esm/node_modules/es-object-atoms/index.js +5 -0
  1031. package/esm/node_modules/es-object-atoms/index.js.map +1 -0
  1032. package/esm/node_modules/for-each/index.js +65 -0
  1033. package/esm/node_modules/for-each/index.js.map +1 -0
  1034. package/esm/node_modules/function-bind/implementation.js +94 -0
  1035. package/esm/node_modules/function-bind/implementation.js.map +1 -0
  1036. package/esm/node_modules/function-bind/index.js +17 -0
  1037. package/esm/node_modules/function-bind/index.js.map +1 -0
  1038. package/esm/node_modules/functions-have-names/index.js +32 -0
  1039. package/esm/node_modules/functions-have-names/index.js.map +1 -0
  1040. package/esm/node_modules/get-intrinsic/index.js +404 -0
  1041. package/esm/node_modules/get-intrinsic/index.js.map +1 -0
  1042. package/esm/node_modules/get-proto/Object.getPrototypeOf.js +18 -0
  1043. package/esm/node_modules/get-proto/Object.getPrototypeOf.js.map +1 -0
  1044. package/esm/node_modules/get-proto/Reflect.getPrototypeOf.js +14 -0
  1045. package/esm/node_modules/get-proto/Reflect.getPrototypeOf.js.map +1 -0
  1046. package/esm/node_modules/get-proto/index.js +41 -0
  1047. package/esm/node_modules/get-proto/index.js.map +1 -0
  1048. package/esm/node_modules/gopd/gOPD.js +5 -0
  1049. package/esm/node_modules/gopd/gOPD.js.map +1 -0
  1050. package/esm/node_modules/gopd/index.js +18 -0
  1051. package/esm/node_modules/gopd/index.js.map +1 -0
  1052. package/esm/node_modules/has-bigints/index.js +12 -0
  1053. package/esm/node_modules/has-bigints/index.js.map +1 -0
  1054. package/esm/node_modules/has-property-descriptors/index.js +25 -0
  1055. package/esm/node_modules/has-property-descriptors/index.js.map +1 -0
  1056. package/esm/node_modules/has-symbols/index.js +26 -0
  1057. package/esm/node_modules/has-symbols/index.js.map +1 -0
  1058. package/esm/node_modules/has-symbols/shams.js +46 -0
  1059. package/esm/node_modules/has-symbols/shams.js.map +1 -0
  1060. package/esm/node_modules/has-tostringtag/shams.js +11 -0
  1061. package/esm/node_modules/has-tostringtag/shams.js.map +1 -0
  1062. package/esm/node_modules/hasown/index.js +11 -0
  1063. package/esm/node_modules/hasown/index.js.map +1 -0
  1064. package/esm/node_modules/history/esm/history.js +468 -0
  1065. package/esm/node_modules/history/esm/history.js.map +1 -0
  1066. package/esm/node_modules/is-arguments/index.js +48 -0
  1067. package/esm/node_modules/is-arguments/index.js.map +1 -0
  1068. package/esm/node_modules/is-array-buffer/index.js +48 -0
  1069. package/esm/node_modules/is-array-buffer/index.js.map +1 -0
  1070. package/esm/node_modules/is-bigint/index.js +47 -0
  1071. package/esm/node_modules/is-bigint/index.js.map +1 -0
  1072. package/esm/node_modules/is-boolean-object/index.js +32 -0
  1073. package/esm/node_modules/is-boolean-object/index.js.map +1 -0
  1074. package/esm/node_modules/is-callable/index.js +102 -0
  1075. package/esm/node_modules/is-callable/index.js.map +1 -0
  1076. package/esm/node_modules/is-date-object/index.js +31 -0
  1077. package/esm/node_modules/is-date-object/index.js.map +1 -0
  1078. package/esm/node_modules/is-map/index.js +48 -0
  1079. package/esm/node_modules/is-map/index.js.map +1 -0
  1080. package/esm/node_modules/is-number-object/index.js +33 -0
  1081. package/esm/node_modules/is-number-object/index.js.map +1 -0
  1082. package/esm/node_modules/is-regex/index.js +75 -0
  1083. package/esm/node_modules/is-regex/index.js.map +1 -0
  1084. package/esm/node_modules/is-set/index.js +47 -0
  1085. package/esm/node_modules/is-set/index.js.map +1 -0
  1086. package/esm/node_modules/is-shared-array-buffer/index.js +27 -0
  1087. package/esm/node_modules/is-shared-array-buffer/index.js.map +1 -0
  1088. package/esm/node_modules/is-string/index.js +35 -0
  1089. package/esm/node_modules/is-string/index.js.map +1 -0
  1090. package/esm/node_modules/is-symbol/index.js +48 -0
  1091. package/esm/node_modules/is-symbol/index.js.map +1 -0
  1092. package/esm/node_modules/is-weakmap/index.js +47 -0
  1093. package/esm/node_modules/is-weakmap/index.js.map +1 -0
  1094. package/esm/node_modules/is-weakset/index.js +50 -0
  1095. package/esm/node_modules/is-weakset/index.js.map +1 -0
  1096. package/esm/node_modules/isarray/index.js +8 -0
  1097. package/esm/node_modules/isarray/index.js.map +1 -0
  1098. package/esm/node_modules/lz-string/libs/lz-string.js +516 -0
  1099. package/esm/node_modules/lz-string/libs/lz-string.js.map +1 -0
  1100. package/esm/node_modules/math-intrinsics/abs.js +5 -0
  1101. package/esm/node_modules/math-intrinsics/abs.js.map +1 -0
  1102. package/esm/node_modules/math-intrinsics/floor.js +5 -0
  1103. package/esm/node_modules/math-intrinsics/floor.js.map +1 -0
  1104. package/esm/node_modules/math-intrinsics/isNaN.js +7 -0
  1105. package/esm/node_modules/math-intrinsics/isNaN.js.map +1 -0
  1106. package/esm/node_modules/math-intrinsics/max.js +5 -0
  1107. package/esm/node_modules/math-intrinsics/max.js.map +1 -0
  1108. package/esm/node_modules/math-intrinsics/min.js +5 -0
  1109. package/esm/node_modules/math-intrinsics/min.js.map +1 -0
  1110. package/esm/node_modules/math-intrinsics/pow.js +5 -0
  1111. package/esm/node_modules/math-intrinsics/pow.js.map +1 -0
  1112. package/esm/node_modules/math-intrinsics/round.js +5 -0
  1113. package/esm/node_modules/math-intrinsics/round.js.map +1 -0
  1114. package/esm/node_modules/math-intrinsics/sign.js +14 -0
  1115. package/esm/node_modules/math-intrinsics/sign.js.map +1 -0
  1116. package/esm/node_modules/object-inspect/index.js +547 -0
  1117. package/esm/node_modules/object-inspect/index.js.map +1 -0
  1118. package/esm/node_modules/object-inspect/util.inspect.js +6 -0
  1119. package/esm/node_modules/object-inspect/util.inspect.js.map +1 -0
  1120. package/esm/node_modules/object-is/implementation.js +19 -0
  1121. package/esm/node_modules/object-is/implementation.js.map +1 -0
  1122. package/esm/node_modules/object-is/index.js +25 -0
  1123. package/esm/node_modules/object-is/index.js.map +1 -0
  1124. package/esm/node_modules/object-is/polyfill.js +10 -0
  1125. package/esm/node_modules/object-is/polyfill.js.map +1 -0
  1126. package/esm/node_modules/object-is/shim.js +18 -0
  1127. package/esm/node_modules/object-is/shim.js.map +1 -0
  1128. package/esm/node_modules/object-keys/implementation.js +134 -0
  1129. package/esm/node_modules/object-keys/implementation.js.map +1 -0
  1130. package/esm/node_modules/object-keys/index.js +36 -0
  1131. package/esm/node_modules/object-keys/index.js.map +1 -0
  1132. package/esm/node_modules/object-keys/isArguments.js +18 -0
  1133. package/esm/node_modules/object-keys/isArguments.js.map +1 -0
  1134. package/esm/node_modules/object.assign/implementation.js +52 -0
  1135. package/esm/node_modules/object.assign/implementation.js.map +1 -0
  1136. package/esm/node_modules/object.assign/index.js +29 -0
  1137. package/esm/node_modules/object.assign/index.js.map +1 -0
  1138. package/esm/node_modules/object.assign/polyfill.js +58 -0
  1139. package/esm/node_modules/object.assign/polyfill.js.map +1 -0
  1140. package/esm/node_modules/object.assign/shim.js +18 -0
  1141. package/esm/node_modules/object.assign/shim.js.map +1 -0
  1142. package/esm/node_modules/possible-typed-array-names/index.js +17 -0
  1143. package/esm/node_modules/possible-typed-array-names/index.js.map +1 -0
  1144. package/esm/node_modules/prop-types/factoryWithThrowingShims.js +75 -0
  1145. package/esm/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  1146. package/esm/node_modules/prop-types/index.js +22 -0
  1147. package/esm/node_modules/prop-types/index.js.map +1 -0
  1148. package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +22 -0
  1149. package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  1150. package/esm/node_modules/ramda/es/allPass.js +53 -0
  1151. package/esm/node_modules/ramda/es/allPass.js.map +1 -0
  1152. package/esm/node_modules/ramda/es/append.js +32 -0
  1153. package/esm/node_modules/ramda/es/append.js.map +1 -0
  1154. package/esm/node_modules/ramda/es/ascend.js +38 -0
  1155. package/esm/node_modules/ramda/es/ascend.js.map +1 -0
  1156. package/esm/node_modules/ramda/es/assoc.js +38 -0
  1157. package/esm/node_modules/ramda/es/assoc.js.map +1 -0
  1158. package/esm/node_modules/ramda/es/assocPath.js +57 -0
  1159. package/esm/node_modules/ramda/es/assocPath.js.map +1 -0
  1160. package/esm/node_modules/ramda/es/bind.js +36 -0
  1161. package/esm/node_modules/ramda/es/bind.js.map +1 -0
  1162. package/esm/node_modules/ramda/es/clone.js +33 -0
  1163. package/esm/node_modules/ramda/es/clone.js.map +1 -0
  1164. package/esm/node_modules/ramda/es/compose.js +38 -0
  1165. package/esm/node_modules/ramda/es/compose.js.map +1 -0
  1166. package/esm/node_modules/ramda/es/curryN.js +60 -0
  1167. package/esm/node_modules/ramda/es/curryN.js.map +1 -0
  1168. package/esm/node_modules/ramda/es/dissoc.js +34 -0
  1169. package/esm/node_modules/ramda/es/dissoc.js.map +1 -0
  1170. package/esm/node_modules/ramda/es/empty.js +41 -0
  1171. package/esm/node_modules/ramda/es/empty.js.map +1 -0
  1172. package/esm/node_modules/ramda/es/equals.js +37 -0
  1173. package/esm/node_modules/ramda/es/equals.js.map +1 -0
  1174. package/esm/node_modules/ramda/es/filter.js +53 -0
  1175. package/esm/node_modules/ramda/es/filter.js.map +1 -0
  1176. package/esm/node_modules/ramda/es/find.js +48 -0
  1177. package/esm/node_modules/ramda/es/find.js.map +1 -0
  1178. package/esm/node_modules/ramda/es/forEach.js +56 -0
  1179. package/esm/node_modules/ramda/es/forEach.js.map +1 -0
  1180. package/esm/node_modules/ramda/es/identity.js +29 -0
  1181. package/esm/node_modules/ramda/es/identity.js.map +1 -0
  1182. package/esm/node_modules/ramda/es/includes.js +32 -0
  1183. package/esm/node_modules/ramda/es/includes.js.map +1 -0
  1184. package/esm/node_modules/ramda/es/internal/_arity.js +65 -0
  1185. package/esm/node_modules/ramda/es/internal/_arity.js.map +1 -0
  1186. package/esm/node_modules/ramda/es/internal/_arrayFromIterator.js +13 -0
  1187. package/esm/node_modules/ramda/es/internal/_arrayFromIterator.js.map +1 -0
  1188. package/esm/node_modules/ramda/es/internal/_checkForMethod.js +28 -0
  1189. package/esm/node_modules/ramda/es/internal/_checkForMethod.js.map +1 -0
  1190. package/esm/node_modules/ramda/es/internal/_clone.js +57 -0
  1191. package/esm/node_modules/ramda/es/internal/_clone.js.map +1 -0
  1192. package/esm/node_modules/ramda/es/internal/_cloneRegExp.js +6 -0
  1193. package/esm/node_modules/ramda/es/internal/_cloneRegExp.js.map +1 -0
  1194. package/esm/node_modules/ramda/es/internal/_complement.js +8 -0
  1195. package/esm/node_modules/ramda/es/internal/_complement.js.map +1 -0
  1196. package/esm/node_modules/ramda/es/internal/_concat.js +37 -0
  1197. package/esm/node_modules/ramda/es/internal/_concat.js.map +1 -0
  1198. package/esm/node_modules/ramda/es/internal/_curry1.js +23 -0
  1199. package/esm/node_modules/ramda/es/internal/_curry1.js.map +1 -0
  1200. package/esm/node_modules/ramda/es/internal/_curry2.js +35 -0
  1201. package/esm/node_modules/ramda/es/internal/_curry2.js.map +1 -0
  1202. package/esm/node_modules/ramda/es/internal/_curry3.js +53 -0
  1203. package/esm/node_modules/ramda/es/internal/_curry3.js.map +1 -0
  1204. package/esm/node_modules/ramda/es/internal/_curryN.js +46 -0
  1205. package/esm/node_modules/ramda/es/internal/_curryN.js.map +1 -0
  1206. package/esm/node_modules/ramda/es/internal/_dispatchable.js +50 -0
  1207. package/esm/node_modules/ramda/es/internal/_dispatchable.js.map +1 -0
  1208. package/esm/node_modules/ramda/es/internal/_equals.js +170 -0
  1209. package/esm/node_modules/ramda/es/internal/_equals.js.map +1 -0
  1210. package/esm/node_modules/ramda/es/internal/_filter.js +18 -0
  1211. package/esm/node_modules/ramda/es/internal/_filter.js.map +1 -0
  1212. package/esm/node_modules/ramda/es/internal/_functionName.js +8 -0
  1213. package/esm/node_modules/ramda/es/internal/_functionName.js.map +1 -0
  1214. package/esm/node_modules/ramda/es/internal/_has.js +6 -0
  1215. package/esm/node_modules/ramda/es/internal/_has.js.map +1 -0
  1216. package/esm/node_modules/ramda/es/internal/_identity.js +6 -0
  1217. package/esm/node_modules/ramda/es/internal/_identity.js.map +1 -0
  1218. package/esm/node_modules/ramda/es/internal/_includes.js +8 -0
  1219. package/esm/node_modules/ramda/es/internal/_includes.js.map +1 -0
  1220. package/esm/node_modules/ramda/es/internal/_includesWith.js +17 -0
  1221. package/esm/node_modules/ramda/es/internal/_includesWith.js.map +1 -0
  1222. package/esm/node_modules/ramda/es/internal/_indexOf.js +71 -0
  1223. package/esm/node_modules/ramda/es/internal/_indexOf.js.map +1 -0
  1224. package/esm/node_modules/ramda/es/internal/_isArguments.js +16 -0
  1225. package/esm/node_modules/ramda/es/internal/_isArguments.js.map +1 -0
  1226. package/esm/node_modules/ramda/es/internal/_isArray.js +18 -0
  1227. package/esm/node_modules/ramda/es/internal/_isArray.js.map +1 -0
  1228. package/esm/node_modules/ramda/es/internal/_isArrayLike.js +58 -0
  1229. package/esm/node_modules/ramda/es/internal/_isArrayLike.js.map +1 -0
  1230. package/esm/node_modules/ramda/es/internal/_isFunction.js +7 -0
  1231. package/esm/node_modules/ramda/es/internal/_isFunction.js.map +1 -0
  1232. package/esm/node_modules/ramda/es/internal/_isInteger.js +14 -0
  1233. package/esm/node_modules/ramda/es/internal/_isInteger.js.map +1 -0
  1234. package/esm/node_modules/ramda/es/internal/_isObject.js +6 -0
  1235. package/esm/node_modules/ramda/es/internal/_isObject.js.map +1 -0
  1236. package/esm/node_modules/ramda/es/internal/_isPlaceholder.js +6 -0
  1237. package/esm/node_modules/ramda/es/internal/_isPlaceholder.js.map +1 -0
  1238. package/esm/node_modules/ramda/es/internal/_isRegExp.js +6 -0
  1239. package/esm/node_modules/ramda/es/internal/_isRegExp.js.map +1 -0
  1240. package/esm/node_modules/ramda/es/internal/_isString.js +6 -0
  1241. package/esm/node_modules/ramda/es/internal/_isString.js.map +1 -0
  1242. package/esm/node_modules/ramda/es/internal/_isTransformer.js +6 -0
  1243. package/esm/node_modules/ramda/es/internal/_isTransformer.js.map +1 -0
  1244. package/esm/node_modules/ramda/es/internal/_map.js +15 -0
  1245. package/esm/node_modules/ramda/es/internal/_map.js.map +1 -0
  1246. package/esm/node_modules/ramda/es/internal/_objectIs.js +17 -0
  1247. package/esm/node_modules/ramda/es/internal/_objectIs.js.map +1 -0
  1248. package/esm/node_modules/ramda/es/internal/_pipe.js +8 -0
  1249. package/esm/node_modules/ramda/es/internal/_pipe.js.map +1 -0
  1250. package/esm/node_modules/ramda/es/internal/_quote.js +8 -0
  1251. package/esm/node_modules/ramda/es/internal/_quote.js.map +1 -0
  1252. package/esm/node_modules/ramda/es/internal/_reduce.js +74 -0
  1253. package/esm/node_modules/ramda/es/internal/_reduce.js.map +1 -0
  1254. package/esm/node_modules/ramda/es/internal/_reduced.js +9 -0
  1255. package/esm/node_modules/ramda/es/internal/_reduced.js.map +1 -0
  1256. package/esm/node_modules/ramda/es/internal/_toISOString.js +15 -0
  1257. package/esm/node_modules/ramda/es/internal/_toISOString.js.map +1 -0
  1258. package/esm/node_modules/ramda/es/internal/_toString.js +62 -0
  1259. package/esm/node_modules/ramda/es/internal/_toString.js.map +1 -0
  1260. package/esm/node_modules/ramda/es/internal/_xfBase.js +11 -0
  1261. package/esm/node_modules/ramda/es/internal/_xfBase.js.map +1 -0
  1262. package/esm/node_modules/ramda/es/internal/_xfilter.js +29 -0
  1263. package/esm/node_modules/ramda/es/internal/_xfilter.js.map +1 -0
  1264. package/esm/node_modules/ramda/es/internal/_xfind.js +43 -0
  1265. package/esm/node_modules/ramda/es/internal/_xfind.js.map +1 -0
  1266. package/esm/node_modules/ramda/es/internal/_xmap.js +29 -0
  1267. package/esm/node_modules/ramda/es/internal/_xmap.js.map +1 -0
  1268. package/esm/node_modules/ramda/es/internal/_xtake.js +33 -0
  1269. package/esm/node_modules/ramda/es/internal/_xtake.js.map +1 -0
  1270. package/esm/node_modules/ramda/es/internal/_xwrap.js +28 -0
  1271. package/esm/node_modules/ramda/es/internal/_xwrap.js.map +1 -0
  1272. package/esm/node_modules/ramda/es/invoker.js +56 -0
  1273. package/esm/node_modules/ramda/es/invoker.js.map +1 -0
  1274. package/esm/node_modules/ramda/es/is.js +34 -0
  1275. package/esm/node_modules/ramda/es/is.js.map +1 -0
  1276. package/esm/node_modules/ramda/es/isEmpty.js +34 -0
  1277. package/esm/node_modules/ramda/es/isEmpty.js.map +1 -0
  1278. package/esm/node_modules/ramda/es/isNil.js +28 -0
  1279. package/esm/node_modules/ramda/es/isNil.js.map +1 -0
  1280. package/esm/node_modules/ramda/es/join.js +28 -0
  1281. package/esm/node_modules/ramda/es/join.js.map +1 -0
  1282. package/esm/node_modules/ramda/es/keys.js +92 -0
  1283. package/esm/node_modules/ramda/es/keys.js.map +1 -0
  1284. package/esm/node_modules/ramda/es/map.js +68 -0
  1285. package/esm/node_modules/ramda/es/map.js.map +1 -0
  1286. package/esm/node_modules/ramda/es/mapObjIndexed.js +37 -0
  1287. package/esm/node_modules/ramda/es/mapObjIndexed.js.map +1 -0
  1288. package/esm/node_modules/ramda/es/max.js +28 -0
  1289. package/esm/node_modules/ramda/es/max.js.map +1 -0
  1290. package/esm/node_modules/ramda/es/nth.js +39 -0
  1291. package/esm/node_modules/ramda/es/nth.js.map +1 -0
  1292. package/esm/node_modules/ramda/es/omit.js +43 -0
  1293. package/esm/node_modules/ramda/es/omit.js.map +1 -0
  1294. package/esm/node_modules/ramda/es/path.js +32 -0
  1295. package/esm/node_modules/ramda/es/path.js.map +1 -0
  1296. package/esm/node_modules/ramda/es/paths.js +47 -0
  1297. package/esm/node_modules/ramda/es/paths.js.map +1 -0
  1298. package/esm/node_modules/ramda/es/pick.js +40 -0
  1299. package/esm/node_modules/ramda/es/pick.js.map +1 -0
  1300. package/esm/node_modules/ramda/es/pipe.js +39 -0
  1301. package/esm/node_modules/ramda/es/pipe.js.map +1 -0
  1302. package/esm/node_modules/ramda/es/pluck.js +40 -0
  1303. package/esm/node_modules/ramda/es/pluck.js.map +1 -0
  1304. package/esm/node_modules/ramda/es/prop.js +33 -0
  1305. package/esm/node_modules/ramda/es/prop.js.map +1 -0
  1306. package/esm/node_modules/ramda/es/propEq.js +37 -0
  1307. package/esm/node_modules/ramda/es/propEq.js.map +1 -0
  1308. package/esm/node_modules/ramda/es/reduce.js +56 -0
  1309. package/esm/node_modules/ramda/es/reduce.js.map +1 -0
  1310. package/esm/node_modules/ramda/es/reject.js +37 -0
  1311. package/esm/node_modules/ramda/es/reject.js.map +1 -0
  1312. package/esm/node_modules/ramda/es/reverse.js +36 -0
  1313. package/esm/node_modules/ramda/es/reverse.js.map +1 -0
  1314. package/esm/node_modules/ramda/es/slice.js +38 -0
  1315. package/esm/node_modules/ramda/es/slice.js.map +1 -0
  1316. package/esm/node_modules/ramda/es/sort.js +31 -0
  1317. package/esm/node_modules/ramda/es/sort.js.map +1 -0
  1318. package/esm/node_modules/ramda/es/split.js +29 -0
  1319. package/esm/node_modules/ramda/es/split.js.map +1 -0
  1320. package/esm/node_modules/ramda/es/tail.js +42 -0
  1321. package/esm/node_modules/ramda/es/tail.js.map +1 -0
  1322. package/esm/node_modules/ramda/es/take.js +59 -0
  1323. package/esm/node_modules/ramda/es/take.js.map +1 -0
  1324. package/esm/node_modules/ramda/es/test.js +35 -0
  1325. package/esm/node_modules/ramda/es/test.js.map +1 -0
  1326. package/esm/node_modules/ramda/es/toPairs.js +38 -0
  1327. package/esm/node_modules/ramda/es/toPairs.js.map +1 -0
  1328. package/esm/node_modules/ramda/es/toString.js +48 -0
  1329. package/esm/node_modules/ramda/es/toString.js.map +1 -0
  1330. package/esm/node_modules/ramda/es/toUpper.js +24 -0
  1331. package/esm/node_modules/ramda/es/toUpper.js.map +1 -0
  1332. package/esm/node_modules/ramda/es/type.js +36 -0
  1333. package/esm/node_modules/ramda/es/type.js.map +1 -0
  1334. package/esm/node_modules/ramda/es/values.js +39 -0
  1335. package/esm/node_modules/ramda/es/values.js.map +1 -0
  1336. package/esm/node_modules/react-error-boundary/dist/react-error-boundary.esm.js +137 -0
  1337. package/esm/node_modules/react-error-boundary/dist/react-error-boundary.esm.js.map +1 -0
  1338. package/esm/node_modules/regexp.prototype.flags/implementation.js +42 -0
  1339. package/esm/node_modules/regexp.prototype.flags/implementation.js.map +1 -0
  1340. package/esm/node_modules/regexp.prototype.flags/index.js +25 -0
  1341. package/esm/node_modules/regexp.prototype.flags/index.js.map +1 -0
  1342. package/esm/node_modules/regexp.prototype.flags/polyfill.js +43 -0
  1343. package/esm/node_modules/regexp.prototype.flags/polyfill.js.map +1 -0
  1344. package/esm/node_modules/regexp.prototype.flags/shim.js +33 -0
  1345. package/esm/node_modules/regexp.prototype.flags/shim.js.map +1 -0
  1346. package/esm/node_modules/reselect/es/defaultMemoize.js +150 -0
  1347. package/esm/node_modules/reselect/es/defaultMemoize.js.map +1 -0
  1348. package/esm/node_modules/reselect/es/index.js +107 -0
  1349. package/esm/node_modules/reselect/es/index.js.map +1 -0
  1350. package/esm/node_modules/resolve-pathname/esm/resolve-pathname.js +76 -0
  1351. package/esm/node_modules/resolve-pathname/esm/resolve-pathname.js.map +1 -0
  1352. package/esm/node_modules/safe-regex-test/index.js +31 -0
  1353. package/esm/node_modules/safe-regex-test/index.js.map +1 -0
  1354. package/esm/node_modules/set-function-length/index.js +49 -0
  1355. package/esm/node_modules/set-function-length/index.js.map +1 -0
  1356. package/esm/node_modules/set-function-name/index.js +29 -0
  1357. package/esm/node_modules/set-function-name/index.js.map +1 -0
  1358. package/esm/node_modules/side-channel/index.js +50 -0
  1359. package/esm/node_modules/side-channel/index.js.map +1 -0
  1360. package/esm/node_modules/side-channel-list/index.js +117 -0
  1361. package/esm/node_modules/side-channel-list/index.js.map +1 -0
  1362. package/esm/node_modules/side-channel-map/index.js +74 -0
  1363. package/esm/node_modules/side-channel-map/index.js.map +1 -0
  1364. package/esm/node_modules/side-channel-weakmap/index.js +91 -0
  1365. package/esm/node_modules/side-channel-weakmap/index.js.map +1 -0
  1366. package/esm/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +9 -0
  1367. package/esm/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -0
  1368. package/esm/node_modules/url-join/lib/url-join.js +88 -0
  1369. package/esm/node_modules/url-join/lib/url-join.js.map +1 -0
  1370. package/esm/node_modules/which-boxed-primitive/index.js +38 -0
  1371. package/esm/node_modules/which-boxed-primitive/index.js.map +1 -0
  1372. package/esm/node_modules/which-collection/index.js +31 -0
  1373. package/esm/node_modules/which-collection/index.js.map +1 -0
  1374. package/esm/node_modules/which-typed-array/index.js +125 -0
  1375. package/esm/node_modules/which-typed-array/index.js.map +1 -0
  1376. package/esm/reducers.js +14 -0
  1377. package/esm/reducers.js.map +1 -0
  1378. package/esm/routes/index.js +56 -0
  1379. package/esm/routes/index.js.map +1 -0
  1380. package/esm/selectors/auth.js +10 -0
  1381. package/esm/selectors/auth.js.map +1 -0
  1382. package/esm/selectors/config.js +8 -0
  1383. package/esm/selectors/config.js.map +1 -0
  1384. package/esm/selectors/core.js +11 -0
  1385. package/esm/selectors/core.js.map +1 -0
  1386. package/esm/selectors/members.js +17 -0
  1387. package/esm/selectors/members.js.map +1 -0
  1388. package/esm/selectors/menu.js +8 -0
  1389. package/esm/selectors/menu.js.map +1 -0
  1390. package/esm/selectors/storage.js +8 -0
  1391. package/esm/selectors/storage.js.map +1 -0
  1392. package/esm/sponsor/index.js +26 -0
  1393. package/esm/sponsor/index.js.map +1 -0
  1394. package/esm/sponsor/messages.js +11 -0
  1395. package/esm/sponsor/messages.js.map +1 -0
  1396. package/esm/store/configureStore.dev.js +12 -0
  1397. package/esm/store/configureStore.dev.js.map +1 -0
  1398. package/esm/store/configureStore.prod.js +11 -0
  1399. package/esm/store/configureStore.prod.js.map +1 -0
  1400. package/esm/store/configureStore.test.js +12 -0
  1401. package/esm/store/configureStore.test.js.map +1 -0
  1402. package/esm/store/index.js +10 -0
  1403. package/esm/store/index.js.map +1 -0
  1404. package/esm/store/middlewares.js +36 -0
  1405. package/esm/store/middlewares.js.map +1 -0
  1406. package/esm/testing/index.js +89 -0
  1407. package/esm/testing/index.js.map +1 -0
  1408. package/esm/theme.js +47 -0
  1409. package/esm/theme.js.map +1 -0
  1410. package/esm/utils/date.js +11 -0
  1411. package/esm/utils/date.js.map +1 -0
  1412. package/esm/utils/filterModes.js +6 -0
  1413. package/esm/utils/filterModes.js.map +1 -0
  1414. package/esm/utils/sdmx.js +7 -0
  1415. package/esm/utils/sdmx.js.map +1 -0
  1416. package/package.json +167 -0
@@ -0,0 +1,2751 @@
1
+ import { commonjsRequire } from '../../../../../_virtual/_commonjs-dynamic-modules.js';
2
+ import { format as format_1, plugins as plugins_1 } from '../../node_modules/pretty-format/build/index.js';
3
+ import { computeAccessibleDescription } from '../../../../dom-accessibility-api/dist/accessible-description.js';
4
+ import { computeAccessibleName } from '../../../../dom-accessibility-api/dist/accessible-name.js';
5
+ import { elementRoles as elementRoles_1, roles as roles_1, roleElements as roleElements_1 } from '../../../../aria-query/lib/index.js';
6
+ import lzString from '../../../../lz-string/libs/lz-string.js';
7
+
8
+ /**
9
+ * Source: https://github.com/facebook/jest/blob/e7bb6a1e26ffab90611b2593912df15b69315611/packages/pretty-format/src/plugins/DOMElement.ts
10
+ */
11
+ /* eslint-disable -- trying to stay as close to the original as possible */
12
+ /* istanbul ignore file */
13
+
14
+ function escapeHTML(str) {
15
+ return str.replace(/</g, '&lt;').replace(/>/g, '&gt;');
16
+ }
17
+ // Return empty string if keys is empty.
18
+ const printProps = (keys, props, config, indentation, depth, refs, printer) => {
19
+ const indentationNext = indentation + config.indent;
20
+ const colors = config.colors;
21
+ return keys.map(key => {
22
+ const value = props[key];
23
+ let printed = printer(value, config, indentationNext, depth, refs);
24
+ if (typeof value !== 'string') {
25
+ if (printed.indexOf('\n') !== -1) {
26
+ printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation;
27
+ }
28
+ printed = '{' + printed + '}';
29
+ }
30
+ return config.spacingInner + indentation + colors.prop.open + key + colors.prop.close + '=' + colors.value.open + printed + colors.value.close;
31
+ }).join('');
32
+ };
33
+
34
+ // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType#node_type_constants
35
+ const NodeTypeTextNode = 3;
36
+
37
+ // Return empty string if children is empty.
38
+ const printChildren = (children, config, indentation, depth, refs, printer) => children.map(child => {
39
+ const printedChild = typeof child === 'string' ? printText(child, config) : printer(child, config, indentation, depth, refs);
40
+ if (printedChild === '' && typeof child === 'object' && child !== null && child.nodeType !== NodeTypeTextNode) {
41
+ // A plugin serialized this Node to '' meaning we should ignore it.
42
+ return '';
43
+ }
44
+ return config.spacingOuter + indentation + printedChild;
45
+ }).join('');
46
+ const printText = (text, config) => {
47
+ const contentColor = config.colors.content;
48
+ return contentColor.open + escapeHTML(text) + contentColor.close;
49
+ };
50
+ const printComment = (comment, config) => {
51
+ const commentColor = config.colors.comment;
52
+ return commentColor.open + '<!--' + escapeHTML(comment) + '-->' + commentColor.close;
53
+ };
54
+
55
+ // Separate the functions to format props, children, and element,
56
+ // so a plugin could override a particular function, if needed.
57
+ // Too bad, so sad: the traditional (but unnecessary) space
58
+ // in a self-closing tagColor requires a second test of printedProps.
59
+ const printElement = (type, printedProps, printedChildren, config, indentation) => {
60
+ const tagColor = config.colors.tag;
61
+ return tagColor.open + '<' + type + (printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open) + (printedChildren ? '>' + tagColor.close + printedChildren + config.spacingOuter + indentation + tagColor.open + '</' + type : (printedProps && !config.min ? '' : ' ') + '/') + '>' + tagColor.close;
62
+ };
63
+ const printElementAsLeaf = (type, config) => {
64
+ const tagColor = config.colors.tag;
65
+ return tagColor.open + '<' + type + tagColor.close + ' …' + tagColor.open + ' />' + tagColor.close;
66
+ };
67
+ const ELEMENT_NODE$1 = 1;
68
+ const TEXT_NODE$1 = 3;
69
+ const COMMENT_NODE$1 = 8;
70
+ const FRAGMENT_NODE = 11;
71
+ const ELEMENT_REGEXP = /^((HTML|SVG)\w*)?Element$/;
72
+ const testNode = val => {
73
+ const constructorName = val.constructor.name;
74
+ const {
75
+ nodeType,
76
+ tagName
77
+ } = val;
78
+ const isCustomElement = typeof tagName === 'string' && tagName.includes('-') || typeof val.hasAttribute === 'function' && val.hasAttribute('is');
79
+ return nodeType === ELEMENT_NODE$1 && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE$1 && constructorName === 'Text' || nodeType === COMMENT_NODE$1 && constructorName === 'Comment' || nodeType === FRAGMENT_NODE && constructorName === 'DocumentFragment';
80
+ };
81
+ function nodeIsText(node) {
82
+ return node.nodeType === TEXT_NODE$1;
83
+ }
84
+ function nodeIsComment(node) {
85
+ return node.nodeType === COMMENT_NODE$1;
86
+ }
87
+ function nodeIsFragment(node) {
88
+ return node.nodeType === FRAGMENT_NODE;
89
+ }
90
+ function createDOMElementFilter(filterNode) {
91
+ return {
92
+ test: val => {
93
+ var _val$constructor2;
94
+ return (val == null || (_val$constructor2 = val.constructor) == null ? undefined : _val$constructor2.name) && testNode(val);
95
+ },
96
+ serialize: (node, config, indentation, depth, refs, printer) => {
97
+ if (nodeIsText(node)) {
98
+ return printText(node.data, config);
99
+ }
100
+ if (nodeIsComment(node)) {
101
+ return printComment(node.data, config);
102
+ }
103
+ const type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
104
+ if (++depth > config.maxDepth) {
105
+ return printElementAsLeaf(type, config);
106
+ }
107
+ return printElement(type, printProps(nodeIsFragment(node) ? [] : Array.from(node.attributes).map(attr => attr.name).sort(), nodeIsFragment(node) ? {} : Array.from(node.attributes).reduce((props, attribute) => {
108
+ props[attribute.name] = attribute.value;
109
+ return props;
110
+ }, {}), config, indentation + config.indent, depth, refs, printer), printChildren(Array.prototype.slice.call(node.childNodes || node.children).filter(filterNode), config, indentation + config.indent, depth, refs, printer), config, indentation);
111
+ }
112
+ };
113
+ }
114
+
115
+ // We try to load node dependencies
116
+ let chalk = null;
117
+ let readFileSync = null;
118
+ let codeFrameColumns = null;
119
+ try {
120
+ const nodeRequire = module && commonjsRequire;
121
+ readFileSync = nodeRequire.call(module, 'fs').readFileSync;
122
+ codeFrameColumns = nodeRequire.call(module, '@babel/code-frame').codeFrameColumns;
123
+ chalk = nodeRequire.call(module, 'chalk');
124
+ } catch {
125
+ // We're in a browser environment
126
+ }
127
+
128
+ // frame has the form "at myMethod (location/to/my/file.js:10:2)"
129
+ function getCodeFrame(frame) {
130
+ const locationStart = frame.indexOf('(') + 1;
131
+ const locationEnd = frame.indexOf(')');
132
+ const frameLocation = frame.slice(locationStart, locationEnd);
133
+ const frameLocationElements = frameLocation.split(':');
134
+ const [filename, line, column] = [frameLocationElements[0], parseInt(frameLocationElements[1], 10), parseInt(frameLocationElements[2], 10)];
135
+ let rawFileContents = '';
136
+ try {
137
+ rawFileContents = readFileSync(filename, 'utf-8');
138
+ } catch {
139
+ return '';
140
+ }
141
+ const codeFrame = codeFrameColumns(rawFileContents, {
142
+ start: {
143
+ line,
144
+ column
145
+ }
146
+ }, {
147
+ highlightCode: true,
148
+ linesBelow: 0
149
+ });
150
+ return chalk.dim(frameLocation) + "\n" + codeFrame + "\n";
151
+ }
152
+ function getUserCodeFrame() {
153
+ // If we couldn't load dependencies, we can't generate the user trace
154
+ /* istanbul ignore next */
155
+ if (!readFileSync || !codeFrameColumns) {
156
+ return '';
157
+ }
158
+ const err = new Error();
159
+ const firstClientCodeFrame = err.stack.split('\n').slice(1) // Remove first line which has the form "Error: TypeError"
160
+ .find(frame => !frame.includes('node_modules/')); // Ignore frames from 3rd party libraries
161
+
162
+ return getCodeFrame(firstClientCodeFrame);
163
+ }
164
+
165
+ // Constant node.nodeType for text nodes, see:
166
+ // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType#Node_type_constants
167
+ const TEXT_NODE = 3;
168
+ function jestFakeTimersAreEnabled() {
169
+ /* istanbul ignore else */
170
+ // eslint-disable-next-line
171
+ if (typeof jest !== 'undefined' && jest !== null) {
172
+ return (
173
+ // legacy timers
174
+ setTimeout._isMockFunction === true ||
175
+ // modern timers
176
+ // eslint-disable-next-line prefer-object-has-own -- not supported by our support matrix
177
+ Object.prototype.hasOwnProperty.call(setTimeout, 'clock')
178
+ );
179
+ }
180
+ // istanbul ignore next
181
+ return false;
182
+ }
183
+ function getDocument() {
184
+ /* istanbul ignore if */
185
+ if (typeof window === 'undefined') {
186
+ throw new Error('Could not find default container');
187
+ }
188
+ return window.document;
189
+ }
190
+ function getWindowFromNode(node) {
191
+ if (node.defaultView) {
192
+ // node is document
193
+ return node.defaultView;
194
+ } else if (node.ownerDocument && node.ownerDocument.defaultView) {
195
+ // node is a DOM node
196
+ return node.ownerDocument.defaultView;
197
+ } else if (node.window) {
198
+ // node is window
199
+ return node.window;
200
+ } else if (node.ownerDocument && node.ownerDocument.defaultView === null) {
201
+ throw new Error("It looks like the window object is not available for the provided node.");
202
+ } else if (node.then instanceof Function) {
203
+ throw new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?");
204
+ } else if (Array.isArray(node)) {
205
+ throw new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?");
206
+ } else if (typeof node.debug === 'function' && typeof node.logTestingPlaygroundURL === 'function') {
207
+ throw new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?");
208
+ } else {
209
+ // The user passed something unusual to a calling function
210
+ throw new Error("The given node is not an Element, the node type is: " + typeof node + ".");
211
+ }
212
+ }
213
+ function checkContainerType(container) {
214
+ if (!container || !(typeof container.querySelector === 'function') || !(typeof container.querySelectorAll === 'function')) {
215
+ throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got " + getTypeName(container) + ".");
216
+ }
217
+ function getTypeName(object) {
218
+ if (typeof object === 'object') {
219
+ return object === null ? 'null' : object.constructor.name;
220
+ }
221
+ return typeof object;
222
+ }
223
+ }
224
+
225
+ const shouldHighlight = () => {
226
+ let colors;
227
+ try {
228
+ var _process;
229
+ colors = JSON.parse((_process = process) == null || (_process = _process.env) == null ? void 0 : _process.COLORS);
230
+ } catch (e) {
231
+ // If this throws, process?.env?.COLORS wasn't parsable. Since we only
232
+ // care about `true` or `false`, we can safely ignore the error.
233
+ }
234
+ if (typeof colors === 'boolean') {
235
+ // If `colors` is set explicitly (both `true` and `false`), use that value.
236
+ return colors;
237
+ } else {
238
+ // If `colors` is not set, colorize if we're in node.
239
+ return typeof process !== 'undefined' && process.versions !== undefined && process.versions.node !== undefined;
240
+ }
241
+ };
242
+ const {
243
+ DOMCollection
244
+ } = plugins_1;
245
+
246
+ // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType#node_type_constants
247
+ const ELEMENT_NODE = 1;
248
+ const COMMENT_NODE = 8;
249
+
250
+ // https://github.com/facebook/jest/blob/615084195ae1ae61ddd56162c62bbdda17587569/packages/pretty-format/src/plugins/DOMElement.ts#L50
251
+ function filterCommentsAndDefaultIgnoreTagsTags(value) {
252
+ return value.nodeType !== COMMENT_NODE && (value.nodeType !== ELEMENT_NODE || !value.matches(getConfig().defaultIgnore));
253
+ }
254
+ function prettyDOM(dom, maxLength, options) {
255
+ if (options === undefined) {
256
+ options = {};
257
+ }
258
+ if (!dom) {
259
+ dom = getDocument().body;
260
+ }
261
+ if (typeof maxLength !== 'number') {
262
+ maxLength = typeof process !== 'undefined' && process.env.DEBUG_PRINT_LIMIT || 7000;
263
+ }
264
+ if (maxLength === 0) {
265
+ return '';
266
+ }
267
+ if (dom.documentElement) {
268
+ dom = dom.documentElement;
269
+ }
270
+ let domTypeName = typeof dom;
271
+ if (domTypeName === 'object') {
272
+ domTypeName = dom.constructor.name;
273
+ } else {
274
+ // To don't fall with `in` operator
275
+ dom = {};
276
+ }
277
+ if (!('outerHTML' in dom)) {
278
+ throw new TypeError("Expected an element or document but got " + domTypeName);
279
+ }
280
+ const {
281
+ filterNode = filterCommentsAndDefaultIgnoreTagsTags,
282
+ ...prettyFormatOptions
283
+ } = options;
284
+ const debugContent = format_1(dom, {
285
+ plugins: [createDOMElementFilter(filterNode), DOMCollection],
286
+ printFunctionName: false,
287
+ highlight: shouldHighlight(),
288
+ ...prettyFormatOptions
289
+ });
290
+ return maxLength !== undefined && dom.outerHTML.length > maxLength ? debugContent.slice(0, maxLength) + "..." : debugContent;
291
+ }
292
+ const logDOM = function () {
293
+ const userCodeFrame = getUserCodeFrame();
294
+ if (userCodeFrame) {
295
+ console.log(prettyDOM(...arguments) + "\n\n" + userCodeFrame);
296
+ } else {
297
+ console.log(prettyDOM(...arguments));
298
+ }
299
+ };
300
+
301
+ // It would be cleaner for this to live inside './queries', but
302
+ // other parts of the code assume that all exports from
303
+ // './queries' are query functions.
304
+ let config = {
305
+ testIdAttribute: 'data-testid',
306
+ asyncUtilTimeout: 1000,
307
+ // asyncWrapper and advanceTimersWrapper is to support React's async `act` function.
308
+ // forcing react-testing-library to wrap all async functions would've been
309
+ // a total nightmare (consider wrapping every findBy* query and then also
310
+ // updating `within` so those would be wrapped too. Total nightmare).
311
+ // so we have this config option that's really only intended for
312
+ // react-testing-library to use. For that reason, this feature will remain
313
+ // undocumented.
314
+ asyncWrapper: cb => cb(),
315
+ unstable_advanceTimersWrapper: cb => cb(),
316
+ eventWrapper: cb => cb(),
317
+ // default value for the `hidden` option in `ByRole` queries
318
+ defaultHidden: false,
319
+ // default value for the `ignore` option in `ByText` queries
320
+ defaultIgnore: 'script, style',
321
+ // showOriginalStackTrace flag to show the full error stack traces for async errors
322
+ showOriginalStackTrace: false,
323
+ // throw errors w/ suggestions for better queries. Opt in so off by default.
324
+ throwSuggestions: false,
325
+ // called when getBy* queries fail. (message, container) => Error
326
+ getElementError(message, container) {
327
+ const prettifiedDOM = prettyDOM(container);
328
+ const error = new Error([message, "Ignored nodes: comments, " + config.defaultIgnore + "\n" + prettifiedDOM].filter(Boolean).join('\n\n'));
329
+ error.name = 'TestingLibraryElementError';
330
+ return error;
331
+ },
332
+ _disableExpensiveErrorDiagnostics: false,
333
+ computedStyleSupportsPseudoElements: false
334
+ };
335
+ function runWithExpensiveErrorDiagnosticsDisabled(callback) {
336
+ try {
337
+ config._disableExpensiveErrorDiagnostics = true;
338
+ return callback();
339
+ } finally {
340
+ config._disableExpensiveErrorDiagnostics = false;
341
+ }
342
+ }
343
+ function configure(newConfig) {
344
+ if (typeof newConfig === 'function') {
345
+ // Pass the existing config out to the provided function
346
+ // and accept a delta in return
347
+ newConfig = newConfig(config);
348
+ }
349
+
350
+ // Merge the incoming config delta
351
+ config = {
352
+ ...config,
353
+ ...newConfig
354
+ };
355
+ }
356
+ function getConfig() {
357
+ return config;
358
+ }
359
+
360
+ const labelledNodeNames = ['button', 'meter', 'output', 'progress', 'select', 'textarea', 'input'];
361
+ function getTextContent(node) {
362
+ if (labelledNodeNames.includes(node.nodeName.toLowerCase())) {
363
+ return '';
364
+ }
365
+ if (node.nodeType === TEXT_NODE) return node.textContent;
366
+ return Array.from(node.childNodes).map(childNode => getTextContent(childNode)).join('');
367
+ }
368
+ function getLabelContent(element) {
369
+ let textContent;
370
+ if (element.tagName.toLowerCase() === 'label') {
371
+ textContent = getTextContent(element);
372
+ } else {
373
+ textContent = element.value || element.textContent;
374
+ }
375
+ return textContent;
376
+ }
377
+
378
+ // Based on https://github.com/eps1lon/dom-accessibility-api/pull/352
379
+ function getRealLabels(element) {
380
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- types are not aware of older browsers that don't implement `labels`
381
+ if (element.labels !== undefined) {
382
+ var _labels;
383
+ return (_labels = element.labels) != null ? _labels : [];
384
+ }
385
+ if (!isLabelable(element)) return [];
386
+ const labels = element.ownerDocument.querySelectorAll('label');
387
+ return Array.from(labels).filter(label => label.control === element);
388
+ }
389
+ function isLabelable(element) {
390
+ return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(element.tagName) || element.tagName === 'INPUT' && element.getAttribute('type') !== 'hidden';
391
+ }
392
+ function getLabels(container, element, _temp) {
393
+ let {
394
+ selector = '*'
395
+ } = _temp === undefined ? {} : _temp;
396
+ const ariaLabelledBy = element.getAttribute('aria-labelledby');
397
+ const labelsId = ariaLabelledBy ? ariaLabelledBy.split(' ') : [];
398
+ return labelsId.length ? labelsId.map(labelId => {
399
+ const labellingElement = container.querySelector("[id=\"" + labelId + "\"]");
400
+ return labellingElement ? {
401
+ content: getLabelContent(labellingElement),
402
+ formControl: null
403
+ } : {
404
+ content: '',
405
+ formControl: null
406
+ };
407
+ }) : Array.from(getRealLabels(element)).map(label => {
408
+ const textToMatch = getLabelContent(label);
409
+ const formControlSelector = 'button, input, meter, output, progress, select, textarea';
410
+ const labelledFormControl = Array.from(label.querySelectorAll(formControlSelector)).filter(formControlElement => formControlElement.matches(selector))[0];
411
+ return {
412
+ content: textToMatch,
413
+ formControl: labelledFormControl
414
+ };
415
+ });
416
+ }
417
+
418
+ function assertNotNullOrUndefined(matcher) {
419
+ if (matcher === null || matcher === undefined) {
420
+ throw new Error( // eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- implicitly converting `T` to `string`
421
+ "It looks like " + matcher + " was passed instead of a matcher. Did you do something like getByText(" + matcher + ")?");
422
+ }
423
+ }
424
+ function fuzzyMatches(textToMatch, node, matcher, normalizer) {
425
+ if (typeof textToMatch !== 'string') {
426
+ return false;
427
+ }
428
+ assertNotNullOrUndefined(matcher);
429
+ const normalizedText = normalizer(textToMatch);
430
+ if (typeof matcher === 'string' || typeof matcher === 'number') {
431
+ return normalizedText.toLowerCase().includes(matcher.toString().toLowerCase());
432
+ } else if (typeof matcher === 'function') {
433
+ return matcher(normalizedText, node);
434
+ } else {
435
+ return matchRegExp(matcher, normalizedText);
436
+ }
437
+ }
438
+ function matches(textToMatch, node, matcher, normalizer) {
439
+ if (typeof textToMatch !== 'string') {
440
+ return false;
441
+ }
442
+ assertNotNullOrUndefined(matcher);
443
+ const normalizedText = normalizer(textToMatch);
444
+ if (matcher instanceof Function) {
445
+ return matcher(normalizedText, node);
446
+ } else if (matcher instanceof RegExp) {
447
+ return matchRegExp(matcher, normalizedText);
448
+ } else {
449
+ return normalizedText === String(matcher);
450
+ }
451
+ }
452
+ function getDefaultNormalizer(_temp) {
453
+ let {
454
+ trim = true,
455
+ collapseWhitespace = true
456
+ } = _temp === undefined ? {} : _temp;
457
+ return text => {
458
+ let normalizedText = text;
459
+ normalizedText = trim ? normalizedText.trim() : normalizedText;
460
+ normalizedText = collapseWhitespace ? normalizedText.replace(/\s+/g, ' ') : normalizedText;
461
+ return normalizedText;
462
+ };
463
+ }
464
+
465
+ /**
466
+ * Constructs a normalizer to pass to functions in matches.js
467
+ * @param {boolean|undefined} trim The user-specified value for `trim`, without
468
+ * any defaulting having been applied
469
+ * @param {boolean|undefined} collapseWhitespace The user-specified value for
470
+ * `collapseWhitespace`, without any defaulting having been applied
471
+ * @param {Function|undefined} normalizer The user-specified normalizer
472
+ * @returns {Function} A normalizer
473
+ */
474
+
475
+ function makeNormalizer(_ref) {
476
+ let {
477
+ trim,
478
+ collapseWhitespace,
479
+ normalizer
480
+ } = _ref;
481
+ if (!normalizer) {
482
+ // No custom normalizer specified. Just use default.
483
+ return getDefaultNormalizer({
484
+ trim,
485
+ collapseWhitespace
486
+ });
487
+ }
488
+ if (typeof trim !== 'undefined' || typeof collapseWhitespace !== 'undefined') {
489
+ // They've also specified a value for trim or collapseWhitespace
490
+ throw new Error('trim and collapseWhitespace are not supported with a normalizer. ' + 'If you want to use the default trim and collapseWhitespace logic in your normalizer, ' + 'use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');
491
+ }
492
+ return normalizer;
493
+ }
494
+ function matchRegExp(matcher, text) {
495
+ const match = matcher.test(text);
496
+ if (matcher.global && matcher.lastIndex !== 0) {
497
+ console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp.");
498
+ matcher.lastIndex = 0;
499
+ }
500
+ return match;
501
+ }
502
+
503
+ function getNodeText(node) {
504
+ if (node.matches('input[type=submit], input[type=button], input[type=reset]')) {
505
+ return node.value;
506
+ }
507
+ return Array.from(node.childNodes).filter(child => child.nodeType === TEXT_NODE && Boolean(child.textContent)).map(c => c.textContent).join('');
508
+ }
509
+
510
+ const elementRoleList = buildElementRoleList(elementRoles_1);
511
+
512
+ /**
513
+ * @param {Element} element -
514
+ * @returns {boolean} - `true` if `element` and its subtree are inaccessible
515
+ */
516
+ function isSubtreeInaccessible(element) {
517
+ if (element.hidden === true) {
518
+ return true;
519
+ }
520
+ if (element.getAttribute('aria-hidden') === 'true') {
521
+ return true;
522
+ }
523
+ const window = element.ownerDocument.defaultView;
524
+ if (window.getComputedStyle(element).display === 'none') {
525
+ return true;
526
+ }
527
+ return false;
528
+ }
529
+
530
+ /**
531
+ * Partial implementation https://www.w3.org/TR/wai-aria-1.2/#tree_exclusion
532
+ * which should only be used for elements with a non-presentational role i.e.
533
+ * `role="none"` and `role="presentation"` will not be excluded.
534
+ *
535
+ * Implements aria-hidden semantics (i.e. parent overrides child)
536
+ * Ignores "Child Presentational: True" characteristics
537
+ *
538
+ * @param {Element} element -
539
+ * @param {object} [options] -
540
+ * @param {function (element: Element): boolean} options.isSubtreeInaccessible -
541
+ * can be used to return cached results from previous isSubtreeInaccessible calls
542
+ * @returns {boolean} true if excluded, otherwise false
543
+ */
544
+ function isInaccessible(element, options) {
545
+ if (options === undefined) {
546
+ options = {};
547
+ }
548
+ const {
549
+ isSubtreeInaccessible: isSubtreeInaccessibleImpl = isSubtreeInaccessible
550
+ } = options;
551
+ const window = element.ownerDocument.defaultView;
552
+ // since visibility is inherited we can exit early
553
+ if (window.getComputedStyle(element).visibility === 'hidden') {
554
+ return true;
555
+ }
556
+ let currentElement = element;
557
+ while (currentElement) {
558
+ if (isSubtreeInaccessibleImpl(currentElement)) {
559
+ return true;
560
+ }
561
+ currentElement = currentElement.parentElement;
562
+ }
563
+ return false;
564
+ }
565
+ function getImplicitAriaRoles(currentNode) {
566
+ // eslint bug here:
567
+ // eslint-disable-next-line no-unused-vars
568
+ for (const {
569
+ match,
570
+ roles
571
+ } of elementRoleList) {
572
+ if (match(currentNode)) {
573
+ return [...roles];
574
+ }
575
+ }
576
+ return [];
577
+ }
578
+ function buildElementRoleList(elementRolesMap) {
579
+ function makeElementSelector(_ref) {
580
+ let {
581
+ name,
582
+ attributes
583
+ } = _ref;
584
+ return "" + name + attributes.map(_ref2 => {
585
+ let {
586
+ name: attributeName,
587
+ value,
588
+ constraints = []
589
+ } = _ref2;
590
+ const shouldNotExist = constraints.indexOf('undefined') !== -1;
591
+ if (shouldNotExist) {
592
+ return ":not([" + attributeName + "])";
593
+ } else if (value) {
594
+ return "[" + attributeName + "=\"" + value + "\"]";
595
+ } else {
596
+ return "[" + attributeName + "]";
597
+ }
598
+ }).join('');
599
+ }
600
+ function getSelectorSpecificity(_ref3) {
601
+ let {
602
+ attributes = []
603
+ } = _ref3;
604
+ return attributes.length;
605
+ }
606
+ function bySelectorSpecificity(_ref4, _ref5) {
607
+ let {
608
+ specificity: leftSpecificity
609
+ } = _ref4;
610
+ let {
611
+ specificity: rightSpecificity
612
+ } = _ref5;
613
+ return rightSpecificity - leftSpecificity;
614
+ }
615
+ function match(element) {
616
+ let {
617
+ attributes = []
618
+ } = element;
619
+
620
+ // https://github.com/testing-library/dom-testing-library/issues/814
621
+ const typeTextIndex = attributes.findIndex(attribute => attribute.value && attribute.name === 'type' && attribute.value === 'text');
622
+ if (typeTextIndex >= 0) {
623
+ // not using splice to not mutate the attributes array
624
+ attributes = [...attributes.slice(0, typeTextIndex), ...attributes.slice(typeTextIndex + 1)];
625
+ }
626
+ const selector = makeElementSelector({
627
+ ...element,
628
+ attributes
629
+ });
630
+ return node => {
631
+ if (typeTextIndex >= 0 && node.type !== 'text') {
632
+ return false;
633
+ }
634
+ return node.matches(selector);
635
+ };
636
+ }
637
+ let result = [];
638
+
639
+ // eslint bug here:
640
+ // eslint-disable-next-line no-unused-vars
641
+ for (const [element, roles] of elementRolesMap.entries()) {
642
+ result = [...result, {
643
+ match: match(element),
644
+ roles: Array.from(roles),
645
+ specificity: getSelectorSpecificity(element)
646
+ }];
647
+ }
648
+ return result.sort(bySelectorSpecificity);
649
+ }
650
+ function getRoles(container, _temp) {
651
+ let {
652
+ hidden = false
653
+ } = _temp === undefined ? {} : _temp;
654
+ function flattenDOM(node) {
655
+ return [node, ...Array.from(node.children).reduce((acc, child) => [...acc, ...flattenDOM(child)], [])];
656
+ }
657
+ return flattenDOM(container).filter(element => {
658
+ return hidden === false ? isInaccessible(element) === false : true;
659
+ }).reduce((acc, node) => {
660
+ let roles = [];
661
+ // TODO: This violates html-aria which does not allow any role on every element
662
+ if (node.hasAttribute('role')) {
663
+ roles = node.getAttribute('role').split(' ').slice(0, 1);
664
+ } else {
665
+ roles = getImplicitAriaRoles(node);
666
+ }
667
+ return roles.reduce((rolesAcc, role) => Array.isArray(rolesAcc[role]) ? {
668
+ ...rolesAcc,
669
+ [role]: [...rolesAcc[role], node]
670
+ } : {
671
+ ...rolesAcc,
672
+ [role]: [node]
673
+ }, acc);
674
+ }, {});
675
+ }
676
+ function prettyRoles(dom, _ref6) {
677
+ let {
678
+ hidden,
679
+ includeDescription
680
+ } = _ref6;
681
+ const roles = getRoles(dom, {
682
+ hidden
683
+ });
684
+ // We prefer to skip generic role, we don't recommend it
685
+ return Object.entries(roles).filter(_ref7 => {
686
+ let [role] = _ref7;
687
+ return role !== 'generic';
688
+ }).map(_ref8 => {
689
+ let [role, elements] = _ref8;
690
+ const delimiterBar = '-'.repeat(50);
691
+ const elementsString = elements.map(el => {
692
+ const nameString = "Name \"" + computeAccessibleName(el, {
693
+ computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements
694
+ }) + "\":\n";
695
+ const domString = prettyDOM(el.cloneNode(false));
696
+ if (includeDescription) {
697
+ const descriptionString = "Description \"" + computeAccessibleDescription(el, {
698
+ computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements
699
+ }) + "\":\n";
700
+ return "" + nameString + descriptionString + domString;
701
+ }
702
+ return "" + nameString + domString;
703
+ }).join('\n\n');
704
+ return role + ":\n\n" + elementsString + "\n\n" + delimiterBar;
705
+ }).join('\n');
706
+ }
707
+
708
+ /**
709
+ * @param {Element} element -
710
+ * @returns {boolean | undefined} - false/true if (not)selected, undefined if not selectable
711
+ */
712
+ function computeAriaSelected(element) {
713
+ // implicit value from html-aam mappings: https://www.w3.org/TR/html-aam-1.0/#html-attribute-state-and-property-mappings
714
+ // https://www.w3.org/TR/html-aam-1.0/#details-id-97
715
+ if (element.tagName === 'OPTION') {
716
+ return element.selected;
717
+ }
718
+
719
+ // explicit value
720
+ return checkBooleanAttribute(element, 'aria-selected');
721
+ }
722
+
723
+ /**
724
+ * @param {Element} element -
725
+ * @returns {boolean} -
726
+ */
727
+ function computeAriaBusy(element) {
728
+ // https://www.w3.org/TR/wai-aria-1.1/#aria-busy
729
+ return element.getAttribute('aria-busy') === 'true';
730
+ }
731
+
732
+ /**
733
+ * @param {Element} element -
734
+ * @returns {boolean | undefined} - false/true if (not)checked, undefined if not checked-able
735
+ */
736
+ function computeAriaChecked(element) {
737
+ // implicit value from html-aam mappings: https://www.w3.org/TR/html-aam-1.0/#html-attribute-state-and-property-mappings
738
+ // https://www.w3.org/TR/html-aam-1.0/#details-id-56
739
+ // https://www.w3.org/TR/html-aam-1.0/#details-id-67
740
+ if ('indeterminate' in element && element.indeterminate) {
741
+ return undefined;
742
+ }
743
+ if ('checked' in element) {
744
+ return element.checked;
745
+ }
746
+
747
+ // explicit value
748
+ return checkBooleanAttribute(element, 'aria-checked');
749
+ }
750
+
751
+ /**
752
+ * @param {Element} element -
753
+ * @returns {boolean | undefined} - false/true if (not)pressed, undefined if not press-able
754
+ */
755
+ function computeAriaPressed(element) {
756
+ // https://www.w3.org/TR/wai-aria-1.1/#aria-pressed
757
+ return checkBooleanAttribute(element, 'aria-pressed');
758
+ }
759
+
760
+ /**
761
+ * @param {Element} element -
762
+ * @returns {boolean | string | null} -
763
+ */
764
+ function computeAriaCurrent(element) {
765
+ var _ref9, _checkBooleanAttribut;
766
+ // https://www.w3.org/TR/wai-aria-1.1/#aria-current
767
+ return (_ref9 = (_checkBooleanAttribut = checkBooleanAttribute(element, 'aria-current')) != null ? _checkBooleanAttribut : element.getAttribute('aria-current')) != null ? _ref9 : false;
768
+ }
769
+
770
+ /**
771
+ * @param {Element} element -
772
+ * @returns {boolean | undefined} - false/true if (not)expanded, undefined if not expand-able
773
+ */
774
+ function computeAriaExpanded(element) {
775
+ // https://www.w3.org/TR/wai-aria-1.1/#aria-expanded
776
+ return checkBooleanAttribute(element, 'aria-expanded');
777
+ }
778
+ function checkBooleanAttribute(element, attribute) {
779
+ const attributeValue = element.getAttribute(attribute);
780
+ if (attributeValue === 'true') {
781
+ return true;
782
+ }
783
+ if (attributeValue === 'false') {
784
+ return false;
785
+ }
786
+ return undefined;
787
+ }
788
+
789
+ /**
790
+ * @param {Element} element -
791
+ * @returns {number | undefined} - number if implicit heading or aria-level present, otherwise undefined
792
+ */
793
+ function computeHeadingLevel(element) {
794
+ // https://w3c.github.io/html-aam/#el-h1-h6
795
+ // https://w3c.github.io/html-aam/#el-h1-h6
796
+ const implicitHeadingLevels = {
797
+ H1: 1,
798
+ H2: 2,
799
+ H3: 3,
800
+ H4: 4,
801
+ H5: 5,
802
+ H6: 6
803
+ };
804
+ // explicit aria-level value
805
+ // https://www.w3.org/TR/wai-aria-1.2/#aria-level
806
+ const ariaLevelAttribute = element.getAttribute('aria-level') && Number(element.getAttribute('aria-level'));
807
+ return ariaLevelAttribute || implicitHeadingLevels[element.tagName];
808
+ }
809
+
810
+ /**
811
+ * @param {Element} element -
812
+ * @returns {number | undefined} -
813
+ */
814
+ function computeAriaValueNow(element) {
815
+ const valueNow = element.getAttribute('aria-valuenow');
816
+ return valueNow === null ? undefined : +valueNow;
817
+ }
818
+
819
+ /**
820
+ * @param {Element} element -
821
+ * @returns {number | undefined} -
822
+ */
823
+ function computeAriaValueMax(element) {
824
+ const valueMax = element.getAttribute('aria-valuemax');
825
+ return valueMax === null ? undefined : +valueMax;
826
+ }
827
+
828
+ /**
829
+ * @param {Element} element -
830
+ * @returns {number | undefined} -
831
+ */
832
+ function computeAriaValueMin(element) {
833
+ const valueMin = element.getAttribute('aria-valuemin');
834
+ return valueMin === null ? undefined : +valueMin;
835
+ }
836
+
837
+ /**
838
+ * @param {Element} element -
839
+ * @returns {string | undefined} -
840
+ */
841
+ function computeAriaValueText(element) {
842
+ const valueText = element.getAttribute('aria-valuetext');
843
+ return valueText === null ? undefined : valueText;
844
+ }
845
+
846
+ const normalize = getDefaultNormalizer();
847
+ function escapeRegExp(string) {
848
+ return string.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
849
+ }
850
+ function getRegExpMatcher(string) {
851
+ return new RegExp(escapeRegExp(string.toLowerCase()), 'i');
852
+ }
853
+ function makeSuggestion(queryName, element, content, _ref) {
854
+ let {
855
+ variant,
856
+ name
857
+ } = _ref;
858
+ let warning = '';
859
+ const queryOptions = {};
860
+ const queryArgs = [['Role', 'TestId'].includes(queryName) ? content : getRegExpMatcher(content)];
861
+ if (name) {
862
+ queryOptions.name = getRegExpMatcher(name);
863
+ }
864
+ if (queryName === 'Role' && isInaccessible(element)) {
865
+ queryOptions.hidden = true;
866
+ warning = "Element is inaccessible. This means that the element and all its children are invisible to screen readers.\n If you are using the aria-hidden prop, make sure this is the right choice for your case.\n ";
867
+ }
868
+ if (Object.keys(queryOptions).length > 0) {
869
+ queryArgs.push(queryOptions);
870
+ }
871
+ const queryMethod = variant + "By" + queryName;
872
+ return {
873
+ queryName,
874
+ queryMethod,
875
+ queryArgs,
876
+ variant,
877
+ warning,
878
+ toString() {
879
+ if (warning) {
880
+ console.warn(warning);
881
+ }
882
+ let [text, options] = queryArgs;
883
+ text = typeof text === 'string' ? "'" + text + "'" : text;
884
+ options = options ? ", { " + Object.entries(options).map(_ref2 => {
885
+ let [k, v] = _ref2;
886
+ return k + ": " + v;
887
+ }).join(', ') + " }" : '';
888
+ return queryMethod + "(" + text + options + ")";
889
+ }
890
+ };
891
+ }
892
+ function canSuggest(currentMethod, requestedMethod, data) {
893
+ return data && (true);
894
+ }
895
+ function getSuggestedQuery(element, variant, method) {
896
+ var _element$getAttribute, _getImplicitAriaRoles;
897
+ if (variant === undefined) {
898
+ variant = 'get';
899
+ }
900
+ // don't create suggestions for script and style elements
901
+ if (element.matches(getConfig().defaultIgnore)) {
902
+ return undefined;
903
+ }
904
+
905
+ //We prefer to suggest something else if the role is generic
906
+ const role = (_element$getAttribute = element.getAttribute('role')) != null ? _element$getAttribute : (_getImplicitAriaRoles = getImplicitAriaRoles(element)) == null ? undefined : _getImplicitAriaRoles[0];
907
+ if (role !== 'generic' && canSuggest('Role', method, role)) {
908
+ return makeSuggestion('Role', element, role, {
909
+ variant,
910
+ name: computeAccessibleName(element, {
911
+ computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements
912
+ })
913
+ });
914
+ }
915
+ const labelText = getLabels(document, element).map(label => label.content).join(' ');
916
+ if (canSuggest('LabelText', method, labelText)) {
917
+ return makeSuggestion('LabelText', element, labelText, {
918
+ variant
919
+ });
920
+ }
921
+ const placeholderText = element.getAttribute('placeholder');
922
+ if (canSuggest('PlaceholderText', method, placeholderText)) {
923
+ return makeSuggestion('PlaceholderText', element, placeholderText, {
924
+ variant
925
+ });
926
+ }
927
+ const textContent = normalize(getNodeText(element));
928
+ if (canSuggest('Text', method, textContent)) {
929
+ return makeSuggestion('Text', element, textContent, {
930
+ variant
931
+ });
932
+ }
933
+ if (canSuggest('DisplayValue', method, element.value)) {
934
+ return makeSuggestion('DisplayValue', element, normalize(element.value), {
935
+ variant
936
+ });
937
+ }
938
+ const alt = element.getAttribute('alt');
939
+ if (canSuggest('AltText', method, alt)) {
940
+ return makeSuggestion('AltText', element, alt, {
941
+ variant
942
+ });
943
+ }
944
+ const title = element.getAttribute('title');
945
+ if (canSuggest('Title', method, title)) {
946
+ return makeSuggestion('Title', element, title, {
947
+ variant
948
+ });
949
+ }
950
+ const testId = element.getAttribute(getConfig().testIdAttribute);
951
+ if (canSuggest('TestId', method, testId)) {
952
+ return makeSuggestion('TestId', element, testId, {
953
+ variant
954
+ });
955
+ }
956
+ return undefined;
957
+ }
958
+
959
+ // This is so the stack trace the developer sees is one that's
960
+ // closer to their code (because async stack traces are hard to follow).
961
+ function copyStackTrace(target, source) {
962
+ target.stack = source.stack.replace(source.message, target.message);
963
+ }
964
+ function waitFor(callback, _ref) {
965
+ let {
966
+ container = getDocument(),
967
+ timeout = getConfig().asyncUtilTimeout,
968
+ showOriginalStackTrace = getConfig().showOriginalStackTrace,
969
+ stackTraceError,
970
+ interval = 50,
971
+ onTimeout = error => {
972
+ Object.defineProperty(error, 'message', {
973
+ value: getConfig().getElementError(error.message, container).message
974
+ });
975
+ return error;
976
+ },
977
+ mutationObserverOptions = {
978
+ subtree: true,
979
+ childList: true,
980
+ attributes: true,
981
+ characterData: true
982
+ }
983
+ } = _ref;
984
+ if (typeof callback !== 'function') {
985
+ throw new TypeError('Received `callback` arg must be a function');
986
+ }
987
+ return new Promise(async (resolve, reject) => {
988
+ let lastError, intervalId, observer;
989
+ let finished = false;
990
+ let promiseStatus = 'idle';
991
+ const overallTimeoutTimer = setTimeout(handleTimeout, timeout);
992
+ const usingJestFakeTimers = jestFakeTimersAreEnabled();
993
+ if (usingJestFakeTimers) {
994
+ const {
995
+ unstable_advanceTimersWrapper: advanceTimersWrapper
996
+ } = getConfig();
997
+ checkCallback();
998
+ // this is a dangerous rule to disable because it could lead to an
999
+ // infinite loop. However, eslint isn't smart enough to know that we're
1000
+ // setting finished inside `onDone` which will be called when we're done
1001
+ // waiting or when we've timed out.
1002
+ // eslint-disable-next-line no-unmodified-loop-condition
1003
+ while (!finished) {
1004
+ if (!jestFakeTimersAreEnabled()) {
1005
+ const error = new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
1006
+ if (!showOriginalStackTrace) copyStackTrace(error, stackTraceError);
1007
+ reject(error);
1008
+ return;
1009
+ }
1010
+
1011
+ // In this rare case, we *need* to wait for in-flight promises
1012
+ // to resolve before continuing. We don't need to take advantage
1013
+ // of parallelization so we're fine.
1014
+ // https://stackoverflow.com/a/59243586/971592
1015
+ // eslint-disable-next-line no-await-in-loop
1016
+ await advanceTimersWrapper(async () => {
1017
+ // we *could* (maybe should?) use `advanceTimersToNextTimer` but it's
1018
+ // possible that could make this loop go on forever if someone is using
1019
+ // third party code that's setting up recursive timers so rapidly that
1020
+ // the user's timer's don't get a chance to resolve. So we'll advance
1021
+ // by an interval instead. (We have a test for this case).
1022
+ jest.advanceTimersByTime(interval);
1023
+ });
1024
+
1025
+ // Could have timed-out
1026
+ if (finished) {
1027
+ break;
1028
+ }
1029
+ // It's really important that checkCallback is run *before* we flush
1030
+ // in-flight promises. To be honest, I'm not sure why, and I can't quite
1031
+ // think of a way to reproduce the problem in a test, but I spent
1032
+ // an entire day banging my head against a wall on this.
1033
+ checkCallback();
1034
+ }
1035
+ } else {
1036
+ try {
1037
+ checkContainerType(container);
1038
+ } catch (e) {
1039
+ reject(e);
1040
+ return;
1041
+ }
1042
+ intervalId = setInterval(checkRealTimersCallback, interval);
1043
+ const {
1044
+ MutationObserver
1045
+ } = getWindowFromNode(container);
1046
+ observer = new MutationObserver(checkRealTimersCallback);
1047
+ observer.observe(container, mutationObserverOptions);
1048
+ checkCallback();
1049
+ }
1050
+ function onDone(error, result) {
1051
+ finished = true;
1052
+ clearTimeout(overallTimeoutTimer);
1053
+ if (!usingJestFakeTimers) {
1054
+ clearInterval(intervalId);
1055
+ observer.disconnect();
1056
+ }
1057
+ if (error) {
1058
+ reject(error);
1059
+ } else {
1060
+ resolve(result);
1061
+ }
1062
+ }
1063
+ function checkRealTimersCallback() {
1064
+ if (jestFakeTimersAreEnabled()) {
1065
+ const error = new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
1066
+ if (!showOriginalStackTrace) copyStackTrace(error, stackTraceError);
1067
+ return reject(error);
1068
+ } else {
1069
+ return checkCallback();
1070
+ }
1071
+ }
1072
+ function checkCallback() {
1073
+ if (promiseStatus === 'pending') return;
1074
+ try {
1075
+ const result = runWithExpensiveErrorDiagnosticsDisabled(callback);
1076
+ if (typeof (result == null ? void 0 : result.then) === 'function') {
1077
+ promiseStatus = 'pending';
1078
+ result.then(resolvedValue => {
1079
+ promiseStatus = 'resolved';
1080
+ onDone(null, resolvedValue);
1081
+ }, rejectedValue => {
1082
+ promiseStatus = 'rejected';
1083
+ lastError = rejectedValue;
1084
+ });
1085
+ } else {
1086
+ onDone(null, result);
1087
+ }
1088
+ // If `callback` throws, wait for the next mutation, interval, or timeout.
1089
+ } catch (error) {
1090
+ // Save the most recent callback error to reject the promise with it in the event of a timeout
1091
+ lastError = error;
1092
+ }
1093
+ }
1094
+ function handleTimeout() {
1095
+ let error;
1096
+ if (lastError) {
1097
+ error = lastError;
1098
+ if (!showOriginalStackTrace && error.name === 'TestingLibraryElementError') {
1099
+ copyStackTrace(error, stackTraceError);
1100
+ }
1101
+ } else {
1102
+ error = new Error('Timed out in waitFor.');
1103
+ if (!showOriginalStackTrace) {
1104
+ copyStackTrace(error, stackTraceError);
1105
+ }
1106
+ }
1107
+ onDone(onTimeout(error), null);
1108
+ }
1109
+ });
1110
+ }
1111
+ function waitForWrapper(callback, options) {
1112
+ // create the error here so its stack trace is as close to the
1113
+ // calling code as possible
1114
+ const stackTraceError = new Error('STACK_TRACE_MESSAGE');
1115
+ return getConfig().asyncWrapper(() => waitFor(callback, {
1116
+ stackTraceError,
1117
+ ...options
1118
+ }));
1119
+ }
1120
+
1121
+ /*
1122
+ eslint
1123
+ max-lines-per-function: ["error", {"max": 200}],
1124
+ */
1125
+
1126
+ function getElementError(message, container) {
1127
+ return getConfig().getElementError(message, container);
1128
+ }
1129
+ function getMultipleElementsFoundError(message, container) {
1130
+ return getElementError(message + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", container);
1131
+ }
1132
+ function queryAllByAttribute(attribute, container, text, _temp) {
1133
+ let {
1134
+ exact = true,
1135
+ collapseWhitespace,
1136
+ trim,
1137
+ normalizer
1138
+ } = _temp === undefined ? {} : _temp;
1139
+ const matcher = exact ? matches : fuzzyMatches;
1140
+ const matchNormalizer = makeNormalizer({
1141
+ collapseWhitespace,
1142
+ trim,
1143
+ normalizer
1144
+ });
1145
+ return Array.from(container.querySelectorAll("[" + attribute + "]")).filter(node => matcher(node.getAttribute(attribute), node, text, matchNormalizer));
1146
+ }
1147
+
1148
+ // this accepts a query function and returns a function which throws an error
1149
+ // if more than one elements is returned, otherwise it returns the first
1150
+ // element or null
1151
+ function makeSingleQuery(allQuery, getMultipleError) {
1152
+ return function (container) {
1153
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1154
+ args[_key - 1] = arguments[_key];
1155
+ }
1156
+ const els = allQuery(container, ...args);
1157
+ if (els.length > 1) {
1158
+ const elementStrings = els.map(element => getElementError(null, element).message).join('\n\n');
1159
+ throw getMultipleElementsFoundError(getMultipleError(container, ...args) + "\n\nHere are the matching elements:\n\n" + elementStrings, container);
1160
+ }
1161
+ return els[0] || null;
1162
+ };
1163
+ }
1164
+ function getSuggestionError(suggestion, container) {
1165
+ return getConfig().getElementError("A better query is available, try this:\n" + suggestion.toString() + "\n", container);
1166
+ }
1167
+
1168
+ // this accepts a query function and returns a function which throws an error
1169
+ // if an empty list of elements is returned
1170
+ function makeGetAllQuery(allQuery, getMissingError) {
1171
+ return function (container) {
1172
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1173
+ args[_key2 - 1] = arguments[_key2];
1174
+ }
1175
+ const els = allQuery(container, ...args);
1176
+ if (!els.length) {
1177
+ throw getConfig().getElementError(getMissingError(container, ...args), container);
1178
+ }
1179
+ return els;
1180
+ };
1181
+ }
1182
+
1183
+ // this accepts a getter query function and returns a function which calls
1184
+ // waitFor and passing a function which invokes the getter.
1185
+ function makeFindQuery(getter) {
1186
+ return (container, text, options, waitForOptions) => {
1187
+ return waitForWrapper(() => {
1188
+ return getter(container, text, options);
1189
+ }, {
1190
+ container,
1191
+ ...waitForOptions
1192
+ });
1193
+ };
1194
+ }
1195
+ const wrapSingleQueryWithSuggestion = (query, queryAllByName, variant) => function (container) {
1196
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
1197
+ args[_key3 - 1] = arguments[_key3];
1198
+ }
1199
+ const element = query(container, ...args);
1200
+ const [{
1201
+ suggest = getConfig().throwSuggestions
1202
+ } = {}] = args.slice(-1);
1203
+ if (element && suggest) {
1204
+ const suggestion = getSuggestedQuery(element, variant);
1205
+ if (suggestion && !queryAllByName.endsWith(suggestion.queryName)) {
1206
+ throw getSuggestionError(suggestion.toString(), container);
1207
+ }
1208
+ }
1209
+ return element;
1210
+ };
1211
+ const wrapAllByQueryWithSuggestion = (query, queryAllByName, variant) => function (container) {
1212
+ for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
1213
+ args[_key4 - 1] = arguments[_key4];
1214
+ }
1215
+ const els = query(container, ...args);
1216
+ const [{
1217
+ suggest = getConfig().throwSuggestions
1218
+ } = {}] = args.slice(-1);
1219
+ if (els.length && suggest) {
1220
+ // get a unique list of all suggestion messages. We are only going to make a suggestion if
1221
+ // all the suggestions are the same
1222
+ const uniqueSuggestionMessages = [...new Set(els.map(element => {
1223
+ var _getSuggestedQuery;
1224
+ return (_getSuggestedQuery = getSuggestedQuery(element, variant)) == null ? undefined : _getSuggestedQuery.toString();
1225
+ }))];
1226
+ if (
1227
+ // only want to suggest if all the els have the same suggestion.
1228
+ uniqueSuggestionMessages.length === 1 && !queryAllByName.endsWith(
1229
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- TODO: Can this be null at runtime?
1230
+ getSuggestedQuery(els[0], variant).queryName)) {
1231
+ throw getSuggestionError(uniqueSuggestionMessages[0], container);
1232
+ }
1233
+ }
1234
+ return els;
1235
+ };
1236
+
1237
+ // TODO: This deviates from the published declarations
1238
+ // However, the implementation always required a dyadic (after `container`) not variadic `queryAllBy` considering the implementation of `makeFindQuery`
1239
+ // This is at least statically true and can be verified by accepting `QueryMethod<Arguments, HTMLElement[]>`
1240
+ function buildQueries(queryAllBy, getMultipleError, getMissingError) {
1241
+ const queryBy = wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllBy, getMultipleError), queryAllBy.name, 'query');
1242
+ const getAllBy = makeGetAllQuery(queryAllBy, getMissingError);
1243
+ const getBy = makeSingleQuery(getAllBy, getMultipleError);
1244
+ const getByWithSuggestions = wrapSingleQueryWithSuggestion(getBy, queryAllBy.name, 'get');
1245
+ const getAllWithSuggestions = wrapAllByQueryWithSuggestion(getAllBy, queryAllBy.name.replace('query', 'get'), 'getAll');
1246
+ const findAllBy = makeFindQuery(wrapAllByQueryWithSuggestion(getAllBy, queryAllBy.name, 'findAll'));
1247
+ const findBy = makeFindQuery(wrapSingleQueryWithSuggestion(getBy, queryAllBy.name, 'find'));
1248
+ return [queryBy, getAllWithSuggestions, getByWithSuggestions, findAllBy, findBy];
1249
+ }
1250
+
1251
+ function queryAllLabels(container) {
1252
+ return Array.from(container.querySelectorAll('label,input')).map(node => {
1253
+ return {
1254
+ node,
1255
+ textToMatch: getLabelContent(node)
1256
+ };
1257
+ }).filter(_ref => {
1258
+ let {
1259
+ textToMatch
1260
+ } = _ref;
1261
+ return textToMatch !== null;
1262
+ });
1263
+ }
1264
+ const queryAllLabelsByText = function (container, text, _temp) {
1265
+ let {
1266
+ exact = true,
1267
+ trim,
1268
+ collapseWhitespace,
1269
+ normalizer
1270
+ } = _temp === undefined ? {} : _temp;
1271
+ const matcher = exact ? matches : fuzzyMatches;
1272
+ const matchNormalizer = makeNormalizer({
1273
+ collapseWhitespace,
1274
+ trim,
1275
+ normalizer
1276
+ });
1277
+ const textToMatchByLabels = queryAllLabels(container);
1278
+ return textToMatchByLabels.filter(_ref2 => {
1279
+ let {
1280
+ node,
1281
+ textToMatch
1282
+ } = _ref2;
1283
+ return matcher(textToMatch, node, text, matchNormalizer);
1284
+ }).map(_ref3 => {
1285
+ let {
1286
+ node
1287
+ } = _ref3;
1288
+ return node;
1289
+ });
1290
+ };
1291
+ const queryAllByLabelText = function (container, text, _temp2) {
1292
+ let {
1293
+ selector = '*',
1294
+ exact = true,
1295
+ collapseWhitespace,
1296
+ trim,
1297
+ normalizer
1298
+ } = _temp2 === undefined ? {} : _temp2;
1299
+ checkContainerType(container);
1300
+ const matcher = exact ? matches : fuzzyMatches;
1301
+ const matchNormalizer = makeNormalizer({
1302
+ collapseWhitespace,
1303
+ trim,
1304
+ normalizer
1305
+ });
1306
+ const matchingLabelledElements = Array.from(container.querySelectorAll('*')).filter(element => {
1307
+ return getRealLabels(element).length || element.hasAttribute('aria-labelledby');
1308
+ }).reduce((labelledElements, labelledElement) => {
1309
+ const labelList = getLabels(container, labelledElement, {
1310
+ selector
1311
+ });
1312
+ labelList.filter(label => Boolean(label.formControl)).forEach(label => {
1313
+ if (matcher(label.content, label.formControl, text, matchNormalizer) && label.formControl) {
1314
+ labelledElements.push(label.formControl);
1315
+ }
1316
+ });
1317
+ const labelsValue = labelList.filter(label => Boolean(label.content)).map(label => label.content);
1318
+ if (matcher(labelsValue.join(' '), labelledElement, text, matchNormalizer)) {
1319
+ labelledElements.push(labelledElement);
1320
+ }
1321
+ if (labelsValue.length > 1) {
1322
+ labelsValue.forEach((labelValue, index) => {
1323
+ if (matcher(labelValue, labelledElement, text, matchNormalizer)) {
1324
+ labelledElements.push(labelledElement);
1325
+ }
1326
+ const labelsFiltered = [...labelsValue];
1327
+ labelsFiltered.splice(index, 1);
1328
+ if (labelsFiltered.length > 1) {
1329
+ if (matcher(labelsFiltered.join(' '), labelledElement, text, matchNormalizer)) {
1330
+ labelledElements.push(labelledElement);
1331
+ }
1332
+ }
1333
+ });
1334
+ }
1335
+ return labelledElements;
1336
+ }, []).concat(queryAllByAttribute('aria-label', container, text, {
1337
+ exact,
1338
+ normalizer: matchNormalizer
1339
+ }));
1340
+ return Array.from(new Set(matchingLabelledElements)).filter(element => element.matches(selector));
1341
+ };
1342
+
1343
+ // the getAll* query would normally look like this:
1344
+ // const getAllByLabelText = makeGetAllQuery(
1345
+ // queryAllByLabelText,
1346
+ // (c, text) => `Unable to find a label with the text of: ${text}`,
1347
+ // )
1348
+ // however, we can give a more helpful error message than the generic one,
1349
+ // so we're writing this one out by hand.
1350
+ const getAllByLabelText = function (container, text) {
1351
+ for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1352
+ rest[_key - 2] = arguments[_key];
1353
+ }
1354
+ const els = queryAllByLabelText(container, text, ...rest);
1355
+ if (!els.length) {
1356
+ const labels = queryAllLabelsByText(container, text, ...rest);
1357
+ if (labels.length) {
1358
+ const tagNames = labels.map(label => getTagNameOfElementAssociatedWithLabelViaFor(container, label)).filter(tagName => !!tagName);
1359
+ if (tagNames.length) {
1360
+ throw getConfig().getElementError(tagNames.map(tagName => "Found a label with the text of: " + text + ", however the element associated with this label (<" + tagName + " />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <" + tagName + " />, you can use aria-label or aria-labelledby instead.").join('\n\n'), container);
1361
+ } else {
1362
+ throw getConfig().getElementError("Found a label with the text of: " + text + ", however no form control was found associated to that label. Make sure you're using the \"for\" attribute or \"aria-labelledby\" attribute correctly.", container);
1363
+ }
1364
+ } else {
1365
+ throw getConfig().getElementError("Unable to find a label with the text of: " + text, container);
1366
+ }
1367
+ }
1368
+ return els;
1369
+ };
1370
+ function getTagNameOfElementAssociatedWithLabelViaFor(container, label) {
1371
+ const htmlFor = label.getAttribute('for');
1372
+ if (!htmlFor) {
1373
+ return null;
1374
+ }
1375
+ const element = container.querySelector("[id=\"" + htmlFor + "\"]");
1376
+ return element ? element.tagName.toLowerCase() : null;
1377
+ }
1378
+
1379
+ // the reason mentioned above is the same reason we're not using buildQueries
1380
+ const getMultipleError$7 = (c, text) => "Found multiple elements with the text of: " + text;
1381
+ const queryByLabelText = wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllByLabelText, getMultipleError$7), queryAllByLabelText.name, 'query');
1382
+ const getByLabelText = makeSingleQuery(getAllByLabelText, getMultipleError$7);
1383
+ const findAllByLabelText = makeFindQuery(wrapAllByQueryWithSuggestion(getAllByLabelText, getAllByLabelText.name, 'findAll'));
1384
+ const findByLabelText = makeFindQuery(wrapSingleQueryWithSuggestion(getByLabelText, getAllByLabelText.name, 'find'));
1385
+ const getAllByLabelTextWithSuggestions = wrapAllByQueryWithSuggestion(getAllByLabelText, getAllByLabelText.name, 'getAll');
1386
+ const getByLabelTextWithSuggestions = wrapSingleQueryWithSuggestion(getByLabelText, getAllByLabelText.name, 'get');
1387
+ const queryAllByLabelTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByLabelText, queryAllByLabelText.name, 'queryAll');
1388
+
1389
+ const queryAllByPlaceholderText = function () {
1390
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1391
+ args[_key] = arguments[_key];
1392
+ }
1393
+ checkContainerType(args[0]);
1394
+ return queryAllByAttribute('placeholder', ...args);
1395
+ };
1396
+ const getMultipleError$6 = (c, text) => "Found multiple elements with the placeholder text of: " + text;
1397
+ const getMissingError$6 = (c, text) => "Unable to find an element with the placeholder text of: " + text;
1398
+ const queryAllByPlaceholderTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByPlaceholderText, queryAllByPlaceholderText.name, 'queryAll');
1399
+ const [queryByPlaceholderText, getAllByPlaceholderText, getByPlaceholderText, findAllByPlaceholderText, findByPlaceholderText] = buildQueries(queryAllByPlaceholderText, getMultipleError$6, getMissingError$6);
1400
+
1401
+ const queryAllByText = function (container, text, _temp) {
1402
+ let {
1403
+ selector = '*',
1404
+ exact = true,
1405
+ collapseWhitespace,
1406
+ trim,
1407
+ ignore = getConfig().defaultIgnore,
1408
+ normalizer
1409
+ } = _temp === undefined ? {} : _temp;
1410
+ checkContainerType(container);
1411
+ const matcher = exact ? matches : fuzzyMatches;
1412
+ const matchNormalizer = makeNormalizer({
1413
+ collapseWhitespace,
1414
+ trim,
1415
+ normalizer
1416
+ });
1417
+ let baseArray = [];
1418
+ if (typeof container.matches === 'function' && container.matches(selector)) {
1419
+ baseArray = [container];
1420
+ }
1421
+ return [...baseArray, ...Array.from(container.querySelectorAll(selector))]
1422
+ // TODO: `matches` according lib.dom.d.ts can get only `string` but according our code it can handle also boolean :)
1423
+ .filter(node => !ignore || !node.matches(ignore)).filter(node => matcher(getNodeText(node), node, text, matchNormalizer));
1424
+ };
1425
+ const getMultipleError$5 = (c, text) => "Found multiple elements with the text: " + text;
1426
+ const getMissingError$5 = function (c, text, options) {
1427
+ if (options === undefined) {
1428
+ options = {};
1429
+ }
1430
+ const {
1431
+ collapseWhitespace,
1432
+ trim,
1433
+ normalizer,
1434
+ selector
1435
+ } = options;
1436
+ const matchNormalizer = makeNormalizer({
1437
+ collapseWhitespace,
1438
+ trim,
1439
+ normalizer
1440
+ });
1441
+ const normalizedText = matchNormalizer(text.toString());
1442
+ const isNormalizedDifferent = normalizedText !== text.toString();
1443
+ const isCustomSelector = (selector != null ? selector : '*') !== '*';
1444
+ return "Unable to find an element with the text: " + (isNormalizedDifferent ? normalizedText + " (normalized from '" + text + "')" : text) + (isCustomSelector ? ", which matches selector '" + selector + "'" : '') + ". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.";
1445
+ };
1446
+ const queryAllByTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByText, queryAllByText.name, 'queryAll');
1447
+ const [queryByText, getAllByText, getByText, findAllByText, findByText] = buildQueries(queryAllByText, getMultipleError$5, getMissingError$5);
1448
+
1449
+ const queryAllByDisplayValue = function (container, value, _temp) {
1450
+ let {
1451
+ exact = true,
1452
+ collapseWhitespace,
1453
+ trim,
1454
+ normalizer
1455
+ } = _temp === undefined ? {} : _temp;
1456
+ checkContainerType(container);
1457
+ const matcher = exact ? matches : fuzzyMatches;
1458
+ const matchNormalizer = makeNormalizer({
1459
+ collapseWhitespace,
1460
+ trim,
1461
+ normalizer
1462
+ });
1463
+ return Array.from(container.querySelectorAll("input,textarea,select")).filter(node => {
1464
+ if (node.tagName === 'SELECT') {
1465
+ const selectedOptions = Array.from(node.options).filter(option => option.selected);
1466
+ return selectedOptions.some(optionNode => matcher(getNodeText(optionNode), optionNode, value, matchNormalizer));
1467
+ } else {
1468
+ return matcher(node.value, node, value, matchNormalizer);
1469
+ }
1470
+ });
1471
+ };
1472
+ const getMultipleError$4 = (c, value) => "Found multiple elements with the display value: " + value + ".";
1473
+ const getMissingError$4 = (c, value) => "Unable to find an element with the display value: " + value + ".";
1474
+ const queryAllByDisplayValueWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByDisplayValue, queryAllByDisplayValue.name, 'queryAll');
1475
+ const [queryByDisplayValue, getAllByDisplayValue, getByDisplayValue, findAllByDisplayValue, findByDisplayValue] = buildQueries(queryAllByDisplayValue, getMultipleError$4, getMissingError$4);
1476
+
1477
+ // Valid tags are img, input, area and custom elements
1478
+ const VALID_TAG_REGEXP = /^(img|input|area|.+-.+)$/i;
1479
+ const queryAllByAltText = function (container, alt, options) {
1480
+ if (options === undefined) {
1481
+ options = {};
1482
+ }
1483
+ checkContainerType(container);
1484
+ return queryAllByAttribute('alt', container, alt, options).filter(node => VALID_TAG_REGEXP.test(node.tagName));
1485
+ };
1486
+ const getMultipleError$3 = (c, alt) => "Found multiple elements with the alt text: " + alt;
1487
+ const getMissingError$3 = (c, alt) => "Unable to find an element with the alt text: " + alt;
1488
+ const queryAllByAltTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByAltText, queryAllByAltText.name, 'queryAll');
1489
+ const [queryByAltText, getAllByAltText, getByAltText, findAllByAltText, findByAltText] = buildQueries(queryAllByAltText, getMultipleError$3, getMissingError$3);
1490
+
1491
+ const isSvgTitle = node => {
1492
+ var _node$parentElement;
1493
+ return node.tagName.toLowerCase() === 'title' && ((_node$parentElement = node.parentElement) == null ? undefined : _node$parentElement.tagName.toLowerCase()) === 'svg';
1494
+ };
1495
+ const queryAllByTitle = function (container, text, _temp) {
1496
+ let {
1497
+ exact = true,
1498
+ collapseWhitespace,
1499
+ trim,
1500
+ normalizer
1501
+ } = _temp === undefined ? {} : _temp;
1502
+ checkContainerType(container);
1503
+ const matcher = exact ? matches : fuzzyMatches;
1504
+ const matchNormalizer = makeNormalizer({
1505
+ collapseWhitespace,
1506
+ trim,
1507
+ normalizer
1508
+ });
1509
+ return Array.from(container.querySelectorAll('[title], svg > title')).filter(node => matcher(node.getAttribute('title'), node, text, matchNormalizer) || isSvgTitle(node) && matcher(getNodeText(node), node, text, matchNormalizer));
1510
+ };
1511
+ const getMultipleError$2 = (c, title) => "Found multiple elements with the title: " + title + ".";
1512
+ const getMissingError$2 = (c, title) => "Unable to find an element with the title: " + title + ".";
1513
+ const queryAllByTitleWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByTitle, queryAllByTitle.name, 'queryAll');
1514
+ const [queryByTitle, getAllByTitle, getByTitle, findAllByTitle, findByTitle] = buildQueries(queryAllByTitle, getMultipleError$2, getMissingError$2);
1515
+
1516
+ /* eslint-disable complexity */
1517
+ const queryAllByRole = function (container, role, _temp) {
1518
+ let {
1519
+ hidden = getConfig().defaultHidden,
1520
+ name,
1521
+ description,
1522
+ queryFallbacks = false,
1523
+ selected,
1524
+ busy,
1525
+ checked,
1526
+ pressed,
1527
+ current,
1528
+ level,
1529
+ expanded,
1530
+ value: {
1531
+ now: valueNow,
1532
+ min: valueMin,
1533
+ max: valueMax,
1534
+ text: valueText
1535
+ } = {}
1536
+ } = _temp === undefined ? {} : _temp;
1537
+ checkContainerType(container);
1538
+ if (selected !== undefined) {
1539
+ var _allRoles$get;
1540
+ // guard against unknown roles
1541
+ if (((_allRoles$get = roles_1.get(role)) == null ? undefined : _allRoles$get.props['aria-selected']) === undefined) {
1542
+ throw new Error("\"aria-selected\" is not supported on role \"" + role + "\".");
1543
+ }
1544
+ }
1545
+ if (busy !== undefined) {
1546
+ var _allRoles$get2;
1547
+ // guard against unknown roles
1548
+ if (((_allRoles$get2 = roles_1.get(role)) == null ? undefined : _allRoles$get2.props['aria-busy']) === undefined) {
1549
+ throw new Error("\"aria-busy\" is not supported on role \"" + role + "\".");
1550
+ }
1551
+ }
1552
+ if (checked !== undefined) {
1553
+ var _allRoles$get3;
1554
+ // guard against unknown roles
1555
+ if (((_allRoles$get3 = roles_1.get(role)) == null ? undefined : _allRoles$get3.props['aria-checked']) === undefined) {
1556
+ throw new Error("\"aria-checked\" is not supported on role \"" + role + "\".");
1557
+ }
1558
+ }
1559
+ if (pressed !== undefined) {
1560
+ var _allRoles$get4;
1561
+ // guard against unknown roles
1562
+ if (((_allRoles$get4 = roles_1.get(role)) == null ? undefined : _allRoles$get4.props['aria-pressed']) === undefined) {
1563
+ throw new Error("\"aria-pressed\" is not supported on role \"" + role + "\".");
1564
+ }
1565
+ }
1566
+ if (current !== undefined) {
1567
+ var _allRoles$get5;
1568
+ /* istanbul ignore next */
1569
+ // guard against unknown roles
1570
+ // All currently released ARIA versions support `aria-current` on all roles.
1571
+ // Leaving this for symetry and forward compatibility
1572
+ if (((_allRoles$get5 = roles_1.get(role)) == null ? undefined : _allRoles$get5.props['aria-current']) === undefined) {
1573
+ throw new Error("\"aria-current\" is not supported on role \"" + role + "\".");
1574
+ }
1575
+ }
1576
+ if (level !== undefined) {
1577
+ // guard against using `level` option with any role other than `heading`
1578
+ if (role !== 'heading') {
1579
+ throw new Error("Role \"" + role + "\" cannot have \"level\" property.");
1580
+ }
1581
+ }
1582
+ if (valueNow !== undefined) {
1583
+ var _allRoles$get6;
1584
+ // guard against unknown roles
1585
+ if (((_allRoles$get6 = roles_1.get(role)) == null ? undefined : _allRoles$get6.props['aria-valuenow']) === undefined) {
1586
+ throw new Error("\"aria-valuenow\" is not supported on role \"" + role + "\".");
1587
+ }
1588
+ }
1589
+ if (valueMax !== undefined) {
1590
+ var _allRoles$get7;
1591
+ // guard against unknown roles
1592
+ if (((_allRoles$get7 = roles_1.get(role)) == null ? undefined : _allRoles$get7.props['aria-valuemax']) === undefined) {
1593
+ throw new Error("\"aria-valuemax\" is not supported on role \"" + role + "\".");
1594
+ }
1595
+ }
1596
+ if (valueMin !== undefined) {
1597
+ var _allRoles$get8;
1598
+ // guard against unknown roles
1599
+ if (((_allRoles$get8 = roles_1.get(role)) == null ? undefined : _allRoles$get8.props['aria-valuemin']) === undefined) {
1600
+ throw new Error("\"aria-valuemin\" is not supported on role \"" + role + "\".");
1601
+ }
1602
+ }
1603
+ if (valueText !== undefined) {
1604
+ var _allRoles$get9;
1605
+ // guard against unknown roles
1606
+ if (((_allRoles$get9 = roles_1.get(role)) == null ? undefined : _allRoles$get9.props['aria-valuetext']) === undefined) {
1607
+ throw new Error("\"aria-valuetext\" is not supported on role \"" + role + "\".");
1608
+ }
1609
+ }
1610
+ if (expanded !== undefined) {
1611
+ var _allRoles$get10;
1612
+ // guard against unknown roles
1613
+ if (((_allRoles$get10 = roles_1.get(role)) == null ? undefined : _allRoles$get10.props['aria-expanded']) === undefined) {
1614
+ throw new Error("\"aria-expanded\" is not supported on role \"" + role + "\".");
1615
+ }
1616
+ }
1617
+ const subtreeIsInaccessibleCache = new WeakMap();
1618
+ function cachedIsSubtreeInaccessible(element) {
1619
+ if (!subtreeIsInaccessibleCache.has(element)) {
1620
+ subtreeIsInaccessibleCache.set(element, isSubtreeInaccessible(element));
1621
+ }
1622
+ return subtreeIsInaccessibleCache.get(element);
1623
+ }
1624
+ return Array.from(container.querySelectorAll(
1625
+ // Only query elements that can be matched by the following filters
1626
+ makeRoleSelector(role))).filter(node => {
1627
+ const isRoleSpecifiedExplicitly = node.hasAttribute('role');
1628
+ if (isRoleSpecifiedExplicitly) {
1629
+ const roleValue = node.getAttribute('role');
1630
+ if (queryFallbacks) {
1631
+ return roleValue.split(' ').filter(Boolean).some(roleAttributeToken => roleAttributeToken === role);
1632
+ }
1633
+ // other wise only send the first token to match
1634
+ const [firstRoleAttributeToken] = roleValue.split(' ');
1635
+ return firstRoleAttributeToken === role;
1636
+ }
1637
+ const implicitRoles = getImplicitAriaRoles(node);
1638
+ return implicitRoles.some(implicitRole => {
1639
+ return implicitRole === role;
1640
+ });
1641
+ }).filter(element => {
1642
+ if (selected !== undefined) {
1643
+ return selected === computeAriaSelected(element);
1644
+ }
1645
+ if (busy !== undefined) {
1646
+ return busy === computeAriaBusy(element);
1647
+ }
1648
+ if (checked !== undefined) {
1649
+ return checked === computeAriaChecked(element);
1650
+ }
1651
+ if (pressed !== undefined) {
1652
+ return pressed === computeAriaPressed(element);
1653
+ }
1654
+ if (current !== undefined) {
1655
+ return current === computeAriaCurrent(element);
1656
+ }
1657
+ if (expanded !== undefined) {
1658
+ return expanded === computeAriaExpanded(element);
1659
+ }
1660
+ if (level !== undefined) {
1661
+ return level === computeHeadingLevel(element);
1662
+ }
1663
+ if (valueNow !== undefined || valueMax !== undefined || valueMin !== undefined || valueText !== undefined) {
1664
+ let valueMatches = true;
1665
+ if (valueNow !== undefined) {
1666
+ valueMatches && (valueMatches = valueNow === computeAriaValueNow(element));
1667
+ }
1668
+ if (valueMax !== undefined) {
1669
+ valueMatches && (valueMatches = valueMax === computeAriaValueMax(element));
1670
+ }
1671
+ if (valueMin !== undefined) {
1672
+ valueMatches && (valueMatches = valueMin === computeAriaValueMin(element));
1673
+ }
1674
+ if (valueText !== undefined) {
1675
+ var _computeAriaValueText;
1676
+ valueMatches && (valueMatches = matches((_computeAriaValueText = computeAriaValueText(element)) != null ? _computeAriaValueText : null, element, valueText, text => text));
1677
+ }
1678
+ return valueMatches;
1679
+ }
1680
+ // don't care if aria attributes are unspecified
1681
+ return true;
1682
+ }).filter(element => {
1683
+ if (name === undefined) {
1684
+ // Don't care
1685
+ return true;
1686
+ }
1687
+ return matches(computeAccessibleName(element, {
1688
+ computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements
1689
+ }), element, name, text => text);
1690
+ }).filter(element => {
1691
+ if (description === undefined) {
1692
+ // Don't care
1693
+ return true;
1694
+ }
1695
+ return matches(computeAccessibleDescription(element, {
1696
+ computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements
1697
+ }), element, description, text => text);
1698
+ }).filter(element => {
1699
+ return hidden === false ? isInaccessible(element, {
1700
+ isSubtreeInaccessible: cachedIsSubtreeInaccessible
1701
+ }) === false : true;
1702
+ });
1703
+ };
1704
+ function makeRoleSelector(role) {
1705
+ var _roleElements$get;
1706
+ const explicitRoleSelector = "*[role~=\"" + role + "\"]";
1707
+ const roleRelations = (_roleElements$get = roleElements_1.get(role)) != null ? _roleElements$get : new Set();
1708
+ const implicitRoleSelectors = new Set(Array.from(roleRelations).map(_ref => {
1709
+ let {
1710
+ name
1711
+ } = _ref;
1712
+ return name;
1713
+ }));
1714
+
1715
+ // Current transpilation config sometimes assumes `...` is always applied to arrays.
1716
+ // `...` is equivalent to `Array.prototype.concat` for arrays.
1717
+ // If you replace this code with `[explicitRoleSelector, ...implicitRoleSelectors]`, make sure every transpilation target retains the `...` in favor of `Array.prototype.concat`.
1718
+ return [explicitRoleSelector].concat(Array.from(implicitRoleSelectors)).join(',');
1719
+ }
1720
+ const getNameHint = name => {
1721
+ let nameHint = '';
1722
+ if (name === undefined) {
1723
+ nameHint = '';
1724
+ } else if (typeof name === 'string') {
1725
+ nameHint = " and name \"" + name + "\"";
1726
+ } else {
1727
+ nameHint = " and name `" + name + "`";
1728
+ }
1729
+ return nameHint;
1730
+ };
1731
+ const getMultipleError$1 = function (c, role, _temp2) {
1732
+ let {
1733
+ name
1734
+ } = _temp2 === undefined ? {} : _temp2;
1735
+ return "Found multiple elements with the role \"" + role + "\"" + getNameHint(name);
1736
+ };
1737
+ const getMissingError$1 = function (container, role, _temp3) {
1738
+ let {
1739
+ hidden = getConfig().defaultHidden,
1740
+ name,
1741
+ description
1742
+ } = _temp3 === undefined ? {} : _temp3;
1743
+ if (getConfig()._disableExpensiveErrorDiagnostics) {
1744
+ return "Unable to find role=\"" + role + "\"" + getNameHint(name);
1745
+ }
1746
+ let roles = '';
1747
+ Array.from(container.children).forEach(childElement => {
1748
+ roles += prettyRoles(childElement, {
1749
+ hidden,
1750
+ includeDescription: description !== undefined
1751
+ });
1752
+ });
1753
+ let roleMessage;
1754
+ if (roles.length === 0) {
1755
+ if (hidden === false) {
1756
+ roleMessage = 'There are no accessible roles. But there might be some inaccessible roles. ' + 'If you wish to access them, then set the `hidden` option to `true`. ' + 'Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole';
1757
+ } else {
1758
+ roleMessage = 'There are no available roles.';
1759
+ }
1760
+ } else {
1761
+ roleMessage = ("\nHere are the " + (hidden === false ? 'accessible' : 'available') + " roles:\n\n " + roles.replace(/\n/g, '\n ').replace(/\n\s\s\n/g, '\n\n') + "\n").trim();
1762
+ }
1763
+ let nameHint = '';
1764
+ if (name === undefined) {
1765
+ nameHint = '';
1766
+ } else if (typeof name === 'string') {
1767
+ nameHint = " and name \"" + name + "\"";
1768
+ } else {
1769
+ nameHint = " and name `" + name + "`";
1770
+ }
1771
+ let descriptionHint = '';
1772
+ if (description === undefined) {
1773
+ descriptionHint = '';
1774
+ } else if (typeof description === 'string') {
1775
+ descriptionHint = " and description \"" + description + "\"";
1776
+ } else {
1777
+ descriptionHint = " and description `" + description + "`";
1778
+ }
1779
+ return ("\nUnable to find an " + (hidden === false ? 'accessible ' : '') + "element with the role \"" + role + "\"" + nameHint + descriptionHint + "\n\n" + roleMessage).trim();
1780
+ };
1781
+ const queryAllByRoleWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByRole, queryAllByRole.name, 'queryAll');
1782
+ const [queryByRole, getAllByRole, getByRole, findAllByRole, findByRole] = buildQueries(queryAllByRole, getMultipleError$1, getMissingError$1);
1783
+
1784
+ const getTestIdAttribute = () => getConfig().testIdAttribute;
1785
+ const queryAllByTestId = function () {
1786
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1787
+ args[_key] = arguments[_key];
1788
+ }
1789
+ checkContainerType(args[0]);
1790
+ return queryAllByAttribute(getTestIdAttribute(), ...args);
1791
+ };
1792
+ const getMultipleError = (c, id) => "Found multiple elements by: [" + getTestIdAttribute() + "=\"" + id + "\"]";
1793
+ const getMissingError = (c, id) => "Unable to find an element by: [" + getTestIdAttribute() + "=\"" + id + "\"]";
1794
+ const queryAllByTestIdWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByTestId, queryAllByTestId.name, 'queryAll');
1795
+ const [queryByTestId, getAllByTestId, getByTestId, findAllByTestId, findByTestId] = buildQueries(queryAllByTestId, getMultipleError, getMissingError);
1796
+
1797
+ var queries = /*#__PURE__*/Object.freeze({
1798
+ __proto__: null,
1799
+ queryAllByLabelText: queryAllByLabelTextWithSuggestions,
1800
+ queryByLabelText: queryByLabelText,
1801
+ getAllByLabelText: getAllByLabelTextWithSuggestions,
1802
+ getByLabelText: getByLabelTextWithSuggestions,
1803
+ findAllByLabelText: findAllByLabelText,
1804
+ findByLabelText: findByLabelText,
1805
+ queryByPlaceholderText: queryByPlaceholderText,
1806
+ queryAllByPlaceholderText: queryAllByPlaceholderTextWithSuggestions,
1807
+ getByPlaceholderText: getByPlaceholderText,
1808
+ getAllByPlaceholderText: getAllByPlaceholderText,
1809
+ findAllByPlaceholderText: findAllByPlaceholderText,
1810
+ findByPlaceholderText: findByPlaceholderText,
1811
+ queryByText: queryByText,
1812
+ queryAllByText: queryAllByTextWithSuggestions,
1813
+ getByText: getByText,
1814
+ getAllByText: getAllByText,
1815
+ findAllByText: findAllByText,
1816
+ findByText: findByText,
1817
+ queryByDisplayValue: queryByDisplayValue,
1818
+ queryAllByDisplayValue: queryAllByDisplayValueWithSuggestions,
1819
+ getByDisplayValue: getByDisplayValue,
1820
+ getAllByDisplayValue: getAllByDisplayValue,
1821
+ findAllByDisplayValue: findAllByDisplayValue,
1822
+ findByDisplayValue: findByDisplayValue,
1823
+ queryByAltText: queryByAltText,
1824
+ queryAllByAltText: queryAllByAltTextWithSuggestions,
1825
+ getByAltText: getByAltText,
1826
+ getAllByAltText: getAllByAltText,
1827
+ findAllByAltText: findAllByAltText,
1828
+ findByAltText: findByAltText,
1829
+ queryByTitle: queryByTitle,
1830
+ queryAllByTitle: queryAllByTitleWithSuggestions,
1831
+ getByTitle: getByTitle,
1832
+ getAllByTitle: getAllByTitle,
1833
+ findAllByTitle: findAllByTitle,
1834
+ findByTitle: findByTitle,
1835
+ queryByRole: queryByRole,
1836
+ queryAllByRole: queryAllByRoleWithSuggestions,
1837
+ getAllByRole: getAllByRole,
1838
+ getByRole: getByRole,
1839
+ findAllByRole: findAllByRole,
1840
+ findByRole: findByRole,
1841
+ queryByTestId: queryByTestId,
1842
+ queryAllByTestId: queryAllByTestIdWithSuggestions,
1843
+ getByTestId: getByTestId,
1844
+ getAllByTestId: getAllByTestId,
1845
+ findAllByTestId: findAllByTestId,
1846
+ findByTestId: findByTestId
1847
+ });
1848
+
1849
+ /**
1850
+ * @typedef {{[key: string]: Function}} FuncMap
1851
+ */
1852
+
1853
+ /**
1854
+ * @param {HTMLElement} element container
1855
+ * @param {FuncMap} queries object of functions
1856
+ * @param {Object} initialValue for reducer
1857
+ * @returns {FuncMap} returns object of functions bound to container
1858
+ */
1859
+ function getQueriesForElement(element, queries$1, initialValue) {
1860
+ if (queries$1 === undefined) {
1861
+ queries$1 = queries;
1862
+ }
1863
+ if (initialValue === undefined) {
1864
+ initialValue = {};
1865
+ }
1866
+ return Object.keys(queries$1).reduce((helpers, key) => {
1867
+ const fn = queries$1[key];
1868
+ helpers[key] = fn.bind(null, element);
1869
+ return helpers;
1870
+ }, initialValue);
1871
+ }
1872
+
1873
+ /*
1874
+ eslint
1875
+ require-await: "off"
1876
+ */
1877
+
1878
+ const eventMap = {
1879
+ // Clipboard Events
1880
+ copy: {
1881
+ EventType: 'ClipboardEvent',
1882
+ defaultInit: {
1883
+ bubbles: true,
1884
+ cancelable: true,
1885
+ composed: true
1886
+ }
1887
+ },
1888
+ cut: {
1889
+ EventType: 'ClipboardEvent',
1890
+ defaultInit: {
1891
+ bubbles: true,
1892
+ cancelable: true,
1893
+ composed: true
1894
+ }
1895
+ },
1896
+ paste: {
1897
+ EventType: 'ClipboardEvent',
1898
+ defaultInit: {
1899
+ bubbles: true,
1900
+ cancelable: true,
1901
+ composed: true
1902
+ }
1903
+ },
1904
+ // Composition Events
1905
+ compositionEnd: {
1906
+ EventType: 'CompositionEvent',
1907
+ defaultInit: {
1908
+ bubbles: true,
1909
+ cancelable: true,
1910
+ composed: true
1911
+ }
1912
+ },
1913
+ compositionStart: {
1914
+ EventType: 'CompositionEvent',
1915
+ defaultInit: {
1916
+ bubbles: true,
1917
+ cancelable: true,
1918
+ composed: true
1919
+ }
1920
+ },
1921
+ compositionUpdate: {
1922
+ EventType: 'CompositionEvent',
1923
+ defaultInit: {
1924
+ bubbles: true,
1925
+ cancelable: true,
1926
+ composed: true
1927
+ }
1928
+ },
1929
+ // Keyboard Events
1930
+ keyDown: {
1931
+ EventType: 'KeyboardEvent',
1932
+ defaultInit: {
1933
+ bubbles: true,
1934
+ cancelable: true,
1935
+ charCode: 0,
1936
+ composed: true
1937
+ }
1938
+ },
1939
+ keyPress: {
1940
+ EventType: 'KeyboardEvent',
1941
+ defaultInit: {
1942
+ bubbles: true,
1943
+ cancelable: true,
1944
+ charCode: 0,
1945
+ composed: true
1946
+ }
1947
+ },
1948
+ keyUp: {
1949
+ EventType: 'KeyboardEvent',
1950
+ defaultInit: {
1951
+ bubbles: true,
1952
+ cancelable: true,
1953
+ charCode: 0,
1954
+ composed: true
1955
+ }
1956
+ },
1957
+ // Focus Events
1958
+ focus: {
1959
+ EventType: 'FocusEvent',
1960
+ defaultInit: {
1961
+ bubbles: false,
1962
+ cancelable: false,
1963
+ composed: true
1964
+ }
1965
+ },
1966
+ blur: {
1967
+ EventType: 'FocusEvent',
1968
+ defaultInit: {
1969
+ bubbles: false,
1970
+ cancelable: false,
1971
+ composed: true
1972
+ }
1973
+ },
1974
+ focusIn: {
1975
+ EventType: 'FocusEvent',
1976
+ defaultInit: {
1977
+ bubbles: true,
1978
+ cancelable: false,
1979
+ composed: true
1980
+ }
1981
+ },
1982
+ focusOut: {
1983
+ EventType: 'FocusEvent',
1984
+ defaultInit: {
1985
+ bubbles: true,
1986
+ cancelable: false,
1987
+ composed: true
1988
+ }
1989
+ },
1990
+ // Form Events
1991
+ change: {
1992
+ EventType: 'Event',
1993
+ defaultInit: {
1994
+ bubbles: true,
1995
+ cancelable: false
1996
+ }
1997
+ },
1998
+ input: {
1999
+ EventType: 'InputEvent',
2000
+ defaultInit: {
2001
+ bubbles: true,
2002
+ cancelable: false,
2003
+ composed: true
2004
+ }
2005
+ },
2006
+ invalid: {
2007
+ EventType: 'Event',
2008
+ defaultInit: {
2009
+ bubbles: false,
2010
+ cancelable: true
2011
+ }
2012
+ },
2013
+ submit: {
2014
+ EventType: 'Event',
2015
+ defaultInit: {
2016
+ bubbles: true,
2017
+ cancelable: true
2018
+ }
2019
+ },
2020
+ reset: {
2021
+ EventType: 'Event',
2022
+ defaultInit: {
2023
+ bubbles: true,
2024
+ cancelable: true
2025
+ }
2026
+ },
2027
+ // Mouse Events
2028
+ click: {
2029
+ EventType: 'MouseEvent',
2030
+ defaultInit: {
2031
+ bubbles: true,
2032
+ cancelable: true,
2033
+ button: 0,
2034
+ composed: true
2035
+ }
2036
+ },
2037
+ contextMenu: {
2038
+ EventType: 'MouseEvent',
2039
+ defaultInit: {
2040
+ bubbles: true,
2041
+ cancelable: true,
2042
+ composed: true
2043
+ }
2044
+ },
2045
+ dblClick: {
2046
+ EventType: 'MouseEvent',
2047
+ defaultInit: {
2048
+ bubbles: true,
2049
+ cancelable: true,
2050
+ composed: true
2051
+ }
2052
+ },
2053
+ drag: {
2054
+ EventType: 'DragEvent',
2055
+ defaultInit: {
2056
+ bubbles: true,
2057
+ cancelable: true,
2058
+ composed: true
2059
+ }
2060
+ },
2061
+ dragEnd: {
2062
+ EventType: 'DragEvent',
2063
+ defaultInit: {
2064
+ bubbles: true,
2065
+ cancelable: false,
2066
+ composed: true
2067
+ }
2068
+ },
2069
+ dragEnter: {
2070
+ EventType: 'DragEvent',
2071
+ defaultInit: {
2072
+ bubbles: true,
2073
+ cancelable: true,
2074
+ composed: true
2075
+ }
2076
+ },
2077
+ dragExit: {
2078
+ EventType: 'DragEvent',
2079
+ defaultInit: {
2080
+ bubbles: true,
2081
+ cancelable: false,
2082
+ composed: true
2083
+ }
2084
+ },
2085
+ dragLeave: {
2086
+ EventType: 'DragEvent',
2087
+ defaultInit: {
2088
+ bubbles: true,
2089
+ cancelable: false,
2090
+ composed: true
2091
+ }
2092
+ },
2093
+ dragOver: {
2094
+ EventType: 'DragEvent',
2095
+ defaultInit: {
2096
+ bubbles: true,
2097
+ cancelable: true,
2098
+ composed: true
2099
+ }
2100
+ },
2101
+ dragStart: {
2102
+ EventType: 'DragEvent',
2103
+ defaultInit: {
2104
+ bubbles: true,
2105
+ cancelable: true,
2106
+ composed: true
2107
+ }
2108
+ },
2109
+ drop: {
2110
+ EventType: 'DragEvent',
2111
+ defaultInit: {
2112
+ bubbles: true,
2113
+ cancelable: true,
2114
+ composed: true
2115
+ }
2116
+ },
2117
+ mouseDown: {
2118
+ EventType: 'MouseEvent',
2119
+ defaultInit: {
2120
+ bubbles: true,
2121
+ cancelable: true,
2122
+ composed: true
2123
+ }
2124
+ },
2125
+ mouseEnter: {
2126
+ EventType: 'MouseEvent',
2127
+ defaultInit: {
2128
+ bubbles: false,
2129
+ cancelable: false,
2130
+ composed: true
2131
+ }
2132
+ },
2133
+ mouseLeave: {
2134
+ EventType: 'MouseEvent',
2135
+ defaultInit: {
2136
+ bubbles: false,
2137
+ cancelable: false,
2138
+ composed: true
2139
+ }
2140
+ },
2141
+ mouseMove: {
2142
+ EventType: 'MouseEvent',
2143
+ defaultInit: {
2144
+ bubbles: true,
2145
+ cancelable: true,
2146
+ composed: true
2147
+ }
2148
+ },
2149
+ mouseOut: {
2150
+ EventType: 'MouseEvent',
2151
+ defaultInit: {
2152
+ bubbles: true,
2153
+ cancelable: true,
2154
+ composed: true
2155
+ }
2156
+ },
2157
+ mouseOver: {
2158
+ EventType: 'MouseEvent',
2159
+ defaultInit: {
2160
+ bubbles: true,
2161
+ cancelable: true,
2162
+ composed: true
2163
+ }
2164
+ },
2165
+ mouseUp: {
2166
+ EventType: 'MouseEvent',
2167
+ defaultInit: {
2168
+ bubbles: true,
2169
+ cancelable: true,
2170
+ composed: true
2171
+ }
2172
+ },
2173
+ // Selection Events
2174
+ select: {
2175
+ EventType: 'Event',
2176
+ defaultInit: {
2177
+ bubbles: true,
2178
+ cancelable: false
2179
+ }
2180
+ },
2181
+ // Touch Events
2182
+ touchCancel: {
2183
+ EventType: 'TouchEvent',
2184
+ defaultInit: {
2185
+ bubbles: true,
2186
+ cancelable: false,
2187
+ composed: true
2188
+ }
2189
+ },
2190
+ touchEnd: {
2191
+ EventType: 'TouchEvent',
2192
+ defaultInit: {
2193
+ bubbles: true,
2194
+ cancelable: true,
2195
+ composed: true
2196
+ }
2197
+ },
2198
+ touchMove: {
2199
+ EventType: 'TouchEvent',
2200
+ defaultInit: {
2201
+ bubbles: true,
2202
+ cancelable: true,
2203
+ composed: true
2204
+ }
2205
+ },
2206
+ touchStart: {
2207
+ EventType: 'TouchEvent',
2208
+ defaultInit: {
2209
+ bubbles: true,
2210
+ cancelable: true,
2211
+ composed: true
2212
+ }
2213
+ },
2214
+ // UI Events
2215
+ resize: {
2216
+ EventType: 'UIEvent',
2217
+ defaultInit: {
2218
+ bubbles: false,
2219
+ cancelable: false
2220
+ }
2221
+ },
2222
+ scroll: {
2223
+ EventType: 'UIEvent',
2224
+ defaultInit: {
2225
+ bubbles: false,
2226
+ cancelable: false
2227
+ }
2228
+ },
2229
+ // Wheel Events
2230
+ wheel: {
2231
+ EventType: 'WheelEvent',
2232
+ defaultInit: {
2233
+ bubbles: true,
2234
+ cancelable: true,
2235
+ composed: true
2236
+ }
2237
+ },
2238
+ // Media Events
2239
+ abort: {
2240
+ EventType: 'Event',
2241
+ defaultInit: {
2242
+ bubbles: false,
2243
+ cancelable: false
2244
+ }
2245
+ },
2246
+ canPlay: {
2247
+ EventType: 'Event',
2248
+ defaultInit: {
2249
+ bubbles: false,
2250
+ cancelable: false
2251
+ }
2252
+ },
2253
+ canPlayThrough: {
2254
+ EventType: 'Event',
2255
+ defaultInit: {
2256
+ bubbles: false,
2257
+ cancelable: false
2258
+ }
2259
+ },
2260
+ durationChange: {
2261
+ EventType: 'Event',
2262
+ defaultInit: {
2263
+ bubbles: false,
2264
+ cancelable: false
2265
+ }
2266
+ },
2267
+ emptied: {
2268
+ EventType: 'Event',
2269
+ defaultInit: {
2270
+ bubbles: false,
2271
+ cancelable: false
2272
+ }
2273
+ },
2274
+ encrypted: {
2275
+ EventType: 'Event',
2276
+ defaultInit: {
2277
+ bubbles: false,
2278
+ cancelable: false
2279
+ }
2280
+ },
2281
+ ended: {
2282
+ EventType: 'Event',
2283
+ defaultInit: {
2284
+ bubbles: false,
2285
+ cancelable: false
2286
+ }
2287
+ },
2288
+ loadedData: {
2289
+ EventType: 'Event',
2290
+ defaultInit: {
2291
+ bubbles: false,
2292
+ cancelable: false
2293
+ }
2294
+ },
2295
+ loadedMetadata: {
2296
+ EventType: 'Event',
2297
+ defaultInit: {
2298
+ bubbles: false,
2299
+ cancelable: false
2300
+ }
2301
+ },
2302
+ loadStart: {
2303
+ EventType: 'ProgressEvent',
2304
+ defaultInit: {
2305
+ bubbles: false,
2306
+ cancelable: false
2307
+ }
2308
+ },
2309
+ pause: {
2310
+ EventType: 'Event',
2311
+ defaultInit: {
2312
+ bubbles: false,
2313
+ cancelable: false
2314
+ }
2315
+ },
2316
+ play: {
2317
+ EventType: 'Event',
2318
+ defaultInit: {
2319
+ bubbles: false,
2320
+ cancelable: false
2321
+ }
2322
+ },
2323
+ playing: {
2324
+ EventType: 'Event',
2325
+ defaultInit: {
2326
+ bubbles: false,
2327
+ cancelable: false
2328
+ }
2329
+ },
2330
+ progress: {
2331
+ EventType: 'ProgressEvent',
2332
+ defaultInit: {
2333
+ bubbles: false,
2334
+ cancelable: false
2335
+ }
2336
+ },
2337
+ rateChange: {
2338
+ EventType: 'Event',
2339
+ defaultInit: {
2340
+ bubbles: false,
2341
+ cancelable: false
2342
+ }
2343
+ },
2344
+ seeked: {
2345
+ EventType: 'Event',
2346
+ defaultInit: {
2347
+ bubbles: false,
2348
+ cancelable: false
2349
+ }
2350
+ },
2351
+ seeking: {
2352
+ EventType: 'Event',
2353
+ defaultInit: {
2354
+ bubbles: false,
2355
+ cancelable: false
2356
+ }
2357
+ },
2358
+ stalled: {
2359
+ EventType: 'Event',
2360
+ defaultInit: {
2361
+ bubbles: false,
2362
+ cancelable: false
2363
+ }
2364
+ },
2365
+ suspend: {
2366
+ EventType: 'Event',
2367
+ defaultInit: {
2368
+ bubbles: false,
2369
+ cancelable: false
2370
+ }
2371
+ },
2372
+ timeUpdate: {
2373
+ EventType: 'Event',
2374
+ defaultInit: {
2375
+ bubbles: false,
2376
+ cancelable: false
2377
+ }
2378
+ },
2379
+ volumeChange: {
2380
+ EventType: 'Event',
2381
+ defaultInit: {
2382
+ bubbles: false,
2383
+ cancelable: false
2384
+ }
2385
+ },
2386
+ waiting: {
2387
+ EventType: 'Event',
2388
+ defaultInit: {
2389
+ bubbles: false,
2390
+ cancelable: false
2391
+ }
2392
+ },
2393
+ // Events
2394
+ load: {
2395
+ // TODO: load events can be UIEvent or Event depending on what generated them
2396
+ // This is where this abstraction breaks down.
2397
+ // But the common targets are <img />, <script /> and window.
2398
+ // Neither of these targets receive a UIEvent
2399
+ EventType: 'Event',
2400
+ defaultInit: {
2401
+ bubbles: false,
2402
+ cancelable: false
2403
+ }
2404
+ },
2405
+ error: {
2406
+ EventType: 'Event',
2407
+ defaultInit: {
2408
+ bubbles: false,
2409
+ cancelable: false
2410
+ }
2411
+ },
2412
+ // Animation Events
2413
+ animationStart: {
2414
+ EventType: 'AnimationEvent',
2415
+ defaultInit: {
2416
+ bubbles: true,
2417
+ cancelable: false
2418
+ }
2419
+ },
2420
+ animationEnd: {
2421
+ EventType: 'AnimationEvent',
2422
+ defaultInit: {
2423
+ bubbles: true,
2424
+ cancelable: false
2425
+ }
2426
+ },
2427
+ animationIteration: {
2428
+ EventType: 'AnimationEvent',
2429
+ defaultInit: {
2430
+ bubbles: true,
2431
+ cancelable: false
2432
+ }
2433
+ },
2434
+ // Transition Events
2435
+ transitionCancel: {
2436
+ EventType: 'TransitionEvent',
2437
+ defaultInit: {
2438
+ bubbles: true,
2439
+ cancelable: false
2440
+ }
2441
+ },
2442
+ transitionEnd: {
2443
+ EventType: 'TransitionEvent',
2444
+ defaultInit: {
2445
+ bubbles: true,
2446
+ cancelable: true
2447
+ }
2448
+ },
2449
+ transitionRun: {
2450
+ EventType: 'TransitionEvent',
2451
+ defaultInit: {
2452
+ bubbles: true,
2453
+ cancelable: false
2454
+ }
2455
+ },
2456
+ transitionStart: {
2457
+ EventType: 'TransitionEvent',
2458
+ defaultInit: {
2459
+ bubbles: true,
2460
+ cancelable: false
2461
+ }
2462
+ },
2463
+ // pointer events
2464
+ pointerOver: {
2465
+ EventType: 'PointerEvent',
2466
+ defaultInit: {
2467
+ bubbles: true,
2468
+ cancelable: true,
2469
+ composed: true
2470
+ }
2471
+ },
2472
+ pointerEnter: {
2473
+ EventType: 'PointerEvent',
2474
+ defaultInit: {
2475
+ bubbles: false,
2476
+ cancelable: false
2477
+ }
2478
+ },
2479
+ pointerDown: {
2480
+ EventType: 'PointerEvent',
2481
+ defaultInit: {
2482
+ bubbles: true,
2483
+ cancelable: true,
2484
+ composed: true
2485
+ }
2486
+ },
2487
+ pointerMove: {
2488
+ EventType: 'PointerEvent',
2489
+ defaultInit: {
2490
+ bubbles: true,
2491
+ cancelable: true,
2492
+ composed: true
2493
+ }
2494
+ },
2495
+ pointerUp: {
2496
+ EventType: 'PointerEvent',
2497
+ defaultInit: {
2498
+ bubbles: true,
2499
+ cancelable: true,
2500
+ composed: true
2501
+ }
2502
+ },
2503
+ pointerCancel: {
2504
+ EventType: 'PointerEvent',
2505
+ defaultInit: {
2506
+ bubbles: true,
2507
+ cancelable: false,
2508
+ composed: true
2509
+ }
2510
+ },
2511
+ pointerOut: {
2512
+ EventType: 'PointerEvent',
2513
+ defaultInit: {
2514
+ bubbles: true,
2515
+ cancelable: true,
2516
+ composed: true
2517
+ }
2518
+ },
2519
+ pointerLeave: {
2520
+ EventType: 'PointerEvent',
2521
+ defaultInit: {
2522
+ bubbles: false,
2523
+ cancelable: false
2524
+ }
2525
+ },
2526
+ gotPointerCapture: {
2527
+ EventType: 'PointerEvent',
2528
+ defaultInit: {
2529
+ bubbles: true,
2530
+ cancelable: false,
2531
+ composed: true
2532
+ }
2533
+ },
2534
+ lostPointerCapture: {
2535
+ EventType: 'PointerEvent',
2536
+ defaultInit: {
2537
+ bubbles: true,
2538
+ cancelable: false,
2539
+ composed: true
2540
+ }
2541
+ },
2542
+ // history events
2543
+ popState: {
2544
+ EventType: 'PopStateEvent',
2545
+ defaultInit: {
2546
+ bubbles: true,
2547
+ cancelable: false
2548
+ }
2549
+ },
2550
+ // window events
2551
+ offline: {
2552
+ EventType: 'Event',
2553
+ defaultInit: {
2554
+ bubbles: false,
2555
+ cancelable: false
2556
+ }
2557
+ },
2558
+ online: {
2559
+ EventType: 'Event',
2560
+ defaultInit: {
2561
+ bubbles: false,
2562
+ cancelable: false
2563
+ }
2564
+ }
2565
+ };
2566
+ const eventAliasMap = {
2567
+ doubleClick: 'dblClick'
2568
+ };
2569
+
2570
+ function fireEvent(element, event) {
2571
+ return getConfig().eventWrapper(() => {
2572
+ if (!event) {
2573
+ throw new Error("Unable to fire an event - please provide an event object.");
2574
+ }
2575
+ if (!element) {
2576
+ throw new Error("Unable to fire a \"" + event.type + "\" event - please provide a DOM element.");
2577
+ }
2578
+ return element.dispatchEvent(event);
2579
+ });
2580
+ }
2581
+ function createEvent(eventName, node, init, _temp) {
2582
+ let {
2583
+ EventType = 'Event',
2584
+ defaultInit = {}
2585
+ } = _temp === undefined ? {} : _temp;
2586
+ if (!node) {
2587
+ throw new Error("Unable to fire a \"" + eventName + "\" event - please provide a DOM element.");
2588
+ }
2589
+ const eventInit = {
2590
+ ...defaultInit,
2591
+ ...init
2592
+ };
2593
+ const {
2594
+ target: {
2595
+ value,
2596
+ files,
2597
+ ...targetProperties
2598
+ } = {}
2599
+ } = eventInit;
2600
+ if (value !== undefined) {
2601
+ setNativeValue(node, value);
2602
+ }
2603
+ if (files !== undefined) {
2604
+ // input.files is a read-only property so this is not allowed:
2605
+ // input.files = [file]
2606
+ // so we have to use this workaround to set the property
2607
+ Object.defineProperty(node, 'files', {
2608
+ configurable: true,
2609
+ enumerable: true,
2610
+ writable: true,
2611
+ value: files
2612
+ });
2613
+ }
2614
+ Object.assign(node, targetProperties);
2615
+ const window = getWindowFromNode(node);
2616
+ const EventConstructor = window[EventType] || window.Event;
2617
+ let event;
2618
+ /* istanbul ignore else */
2619
+ if (typeof EventConstructor === 'function') {
2620
+ event = new EventConstructor(eventName, eventInit);
2621
+ } else {
2622
+ // IE11 polyfill from https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill
2623
+ event = window.document.createEvent(EventType);
2624
+ const {
2625
+ bubbles,
2626
+ cancelable,
2627
+ detail,
2628
+ ...otherInit
2629
+ } = eventInit;
2630
+ event.initEvent(eventName, bubbles, cancelable, detail);
2631
+ Object.keys(otherInit).forEach(eventKey => {
2632
+ event[eventKey] = otherInit[eventKey];
2633
+ });
2634
+ }
2635
+
2636
+ // DataTransfer is not supported in jsdom: https://github.com/jsdom/jsdom/issues/1568
2637
+ const dataTransferProperties = ['dataTransfer', 'clipboardData'];
2638
+ dataTransferProperties.forEach(dataTransferKey => {
2639
+ const dataTransferValue = eventInit[dataTransferKey];
2640
+ if (typeof dataTransferValue === 'object') {
2641
+ /* istanbul ignore if */
2642
+ if (typeof window.DataTransfer === 'function') {
2643
+ Object.defineProperty(event, dataTransferKey, {
2644
+ value: Object.getOwnPropertyNames(dataTransferValue).reduce((acc, propName) => {
2645
+ Object.defineProperty(acc, propName, {
2646
+ value: dataTransferValue[propName]
2647
+ });
2648
+ return acc;
2649
+ }, new window.DataTransfer())
2650
+ });
2651
+ } else {
2652
+ Object.defineProperty(event, dataTransferKey, {
2653
+ value: dataTransferValue
2654
+ });
2655
+ }
2656
+ }
2657
+ });
2658
+ return event;
2659
+ }
2660
+ Object.keys(eventMap).forEach(key => {
2661
+ const {
2662
+ EventType,
2663
+ defaultInit
2664
+ } = eventMap[key];
2665
+ const eventName = key.toLowerCase();
2666
+ createEvent[key] = (node, init) => createEvent(eventName, node, init, {
2667
+ EventType,
2668
+ defaultInit
2669
+ });
2670
+ fireEvent[key] = (node, init) => fireEvent(node, createEvent[key](node, init));
2671
+ });
2672
+
2673
+ // function written after some investigation here:
2674
+ // https://github.com/facebook/react/issues/10135#issuecomment-401496776
2675
+ function setNativeValue(element, value) {
2676
+ const {
2677
+ set: valueSetter
2678
+ } = Object.getOwnPropertyDescriptor(element, 'value') || {};
2679
+ const prototype = Object.getPrototypeOf(element);
2680
+ const {
2681
+ set: prototypeValueSetter
2682
+ } = Object.getOwnPropertyDescriptor(prototype, 'value') || {};
2683
+ if (prototypeValueSetter && valueSetter !== prototypeValueSetter) {
2684
+ prototypeValueSetter.call(element, value);
2685
+ } else {
2686
+ /* istanbul ignore if */
2687
+ // eslint-disable-next-line no-lonely-if -- Can't be ignored by istanbul otherwise
2688
+ if (valueSetter) {
2689
+ valueSetter.call(element, value);
2690
+ } else {
2691
+ throw new Error('The given element does not have a value setter');
2692
+ }
2693
+ }
2694
+ }
2695
+ Object.keys(eventAliasMap).forEach(aliasKey => {
2696
+ const key = eventAliasMap[aliasKey];
2697
+ fireEvent[aliasKey] = function () {
2698
+ return fireEvent[key](...arguments);
2699
+ };
2700
+ });
2701
+
2702
+ /* eslint complexity:["error", 9] */
2703
+
2704
+ // WARNING: `lz-string` only has a default export but statically we assume named exports are allowd
2705
+ function unindent(string) {
2706
+ // remove white spaces first, to save a few bytes.
2707
+ // testing-playground will reformat on load any ways.
2708
+ return string.replace(/[ \t]*[\n][ \t]*/g, '\n');
2709
+ }
2710
+ function encode(value) {
2711
+ return lzString.compressToEncodedURIComponent(unindent(value));
2712
+ }
2713
+ function getPlaygroundUrl(markup) {
2714
+ return "https://testing-playground.com/#markup=" + encode(markup);
2715
+ }
2716
+ const debug = (element, maxLength, options) => Array.isArray(element) ? element.forEach(el => logDOM(el, maxLength, options)) : logDOM(element, maxLength, options);
2717
+ const logTestingPlaygroundURL = function (element) {
2718
+ if (element === undefined) {
2719
+ element = getDocument().body;
2720
+ }
2721
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
2722
+ if (!element || !('innerHTML' in element)) {
2723
+ console.log("The element you're providing isn't a valid DOM element.");
2724
+ return;
2725
+ }
2726
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
2727
+ if (!element.innerHTML) {
2728
+ console.log("The provided element doesn't have any children.");
2729
+ return;
2730
+ }
2731
+ const playgroundUrl = getPlaygroundUrl(element.innerHTML);
2732
+ console.log("Open this URL in your browser\n\n" + playgroundUrl);
2733
+ return playgroundUrl;
2734
+ };
2735
+ const initialValue = {
2736
+ debug,
2737
+ logTestingPlaygroundURL
2738
+ };
2739
+ typeof document !== 'undefined' && document.body // eslint-disable-line @typescript-eslint/no-unnecessary-condition
2740
+ ? getQueriesForElement(document.body, queries, initialValue) : Object.keys(queries).reduce((helpers, key) => {
2741
+ // `key` is for all intents and purposes the type of keyof `helpers`, which itself is the type of `initialValue` plus incoming properties from `queries`
2742
+ // if `Object.keys(something)` returned Array<keyof typeof something> this explicit type assertion would not be necessary
2743
+ // see https://stackoverflow.com/questions/55012174/why-doesnt-object-keys-return-a-keyof-type-in-typescript
2744
+ helpers[key] = () => {
2745
+ throw new TypeError('For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error');
2746
+ };
2747
+ return helpers;
2748
+ }, initialValue);
2749
+
2750
+ export { buildQueries, configure, createEvent, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, fireEvent, getAllByAltText, getAllByDisplayValue, getAllByLabelTextWithSuggestions as getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelTextWithSuggestions as getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getMultipleElementsFoundError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, makeFindQuery, makeGetAllQuery, makeSingleQuery, prettyDOM, queries, queryAllByAltTextWithSuggestions as queryAllByAltText, queryAllByAttribute, queryAllByDisplayValueWithSuggestions as queryAllByDisplayValue, queryAllByLabelTextWithSuggestions as queryAllByLabelText, queryAllByPlaceholderTextWithSuggestions as queryAllByPlaceholderText, queryAllByRoleWithSuggestions as queryAllByRole, queryAllByTestIdWithSuggestions as queryAllByTestId, queryAllByTextWithSuggestions as queryAllByText, queryAllByTitleWithSuggestions as queryAllByTitle, queryByAltText, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, waitForWrapper as waitFor, getQueriesForElement as within, wrapAllByQueryWithSuggestion, wrapSingleQueryWithSuggestion };
2751
+ //# sourceMappingURL=dom.esm.js.map