ece-docs-components 1.0.39 → 1.0.41

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 (359) hide show
  1. package/dist/cjs/_virtual/Parser.js +6 -0
  2. package/dist/cjs/_virtual/Parser.js.map +1 -0
  3. package/dist/cjs/_virtual/Tokenizer.js +6 -0
  4. package/dist/cjs/_virtual/Tokenizer.js.map +1 -0
  5. package/dist/cjs/_virtual/attributes-to-props.js +6 -0
  6. package/dist/cjs/_virtual/attributes-to-props.js.map +1 -0
  7. package/dist/cjs/_virtual/decode-codepoint.js +6 -0
  8. package/dist/cjs/_virtual/decode-codepoint.js.map +1 -0
  9. package/dist/cjs/_virtual/decode-data-html.js +6 -0
  10. package/dist/cjs/_virtual/decode-data-html.js.map +1 -0
  11. package/dist/cjs/_virtual/decode-data-html2.js +6 -0
  12. package/dist/cjs/_virtual/decode-data-html2.js.map +1 -0
  13. package/dist/cjs/_virtual/decode-data-xml.js +6 -0
  14. package/dist/cjs/_virtual/decode-data-xml.js.map +1 -0
  15. package/dist/cjs/_virtual/decode-data-xml2.js +6 -0
  16. package/dist/cjs/_virtual/decode-data-xml2.js.map +1 -0
  17. package/dist/cjs/_virtual/decode.js +6 -0
  18. package/dist/cjs/_virtual/decode.js.map +1 -0
  19. package/dist/cjs/_virtual/decode2.js +6 -0
  20. package/dist/cjs/_virtual/decode2.js.map +1 -0
  21. package/dist/cjs/_virtual/decode_codepoint.js +6 -0
  22. package/dist/cjs/_virtual/decode_codepoint.js.map +1 -0
  23. package/dist/cjs/_virtual/dom-to-react.js +6 -0
  24. package/dist/cjs/_virtual/dom-to-react.js.map +1 -0
  25. package/dist/cjs/_virtual/encode-html.js +6 -0
  26. package/dist/cjs/_virtual/encode-html.js.map +1 -0
  27. package/dist/cjs/_virtual/encode.js +6 -0
  28. package/dist/cjs/_virtual/encode.js.map +1 -0
  29. package/dist/cjs/_virtual/escape.js +6 -0
  30. package/dist/cjs/_virtual/escape.js.map +1 -0
  31. package/dist/cjs/_virtual/feeds.js +6 -0
  32. package/dist/cjs/_virtual/feeds.js.map +1 -0
  33. package/dist/cjs/_virtual/foreignNames.js +6 -0
  34. package/dist/cjs/_virtual/foreignNames.js.map +1 -0
  35. package/dist/cjs/_virtual/helpers.js +6 -0
  36. package/dist/cjs/_virtual/helpers.js.map +1 -0
  37. package/dist/cjs/_virtual/html-to-dom.js +6 -0
  38. package/dist/cjs/_virtual/html-to-dom.js.map +1 -0
  39. package/dist/cjs/_virtual/index.js +4 -4
  40. package/dist/cjs/_virtual/index10.js +6 -0
  41. package/dist/cjs/_virtual/index10.js.map +1 -0
  42. package/dist/cjs/_virtual/index11.js +6 -0
  43. package/dist/cjs/_virtual/index11.js.map +1 -0
  44. package/dist/cjs/_virtual/index2.js +2 -4
  45. package/dist/cjs/_virtual/index2.js.map +1 -1
  46. package/dist/cjs/_virtual/index3.js +2 -2
  47. package/dist/cjs/_virtual/index4.js +2 -2
  48. package/dist/cjs/_virtual/index5.js +2 -2
  49. package/dist/cjs/_virtual/index6.js +2 -2
  50. package/dist/cjs/_virtual/index7.js +6 -0
  51. package/dist/cjs/_virtual/index7.js.map +1 -0
  52. package/dist/cjs/_virtual/index8.js +6 -0
  53. package/dist/cjs/_virtual/index8.js.map +1 -0
  54. package/dist/cjs/_virtual/index9.js +6 -0
  55. package/dist/cjs/_virtual/index9.js.map +1 -0
  56. package/dist/cjs/_virtual/legacy.js +6 -0
  57. package/dist/cjs/_virtual/legacy.js.map +1 -0
  58. package/dist/cjs/_virtual/manipulation.js +6 -0
  59. package/dist/cjs/_virtual/manipulation.js.map +1 -0
  60. package/dist/cjs/_virtual/node.js +6 -0
  61. package/dist/cjs/_virtual/node.js.map +1 -0
  62. package/dist/cjs/_virtual/possibleStandardNamesOptimized.js +6 -0
  63. package/dist/cjs/_virtual/possibleStandardNamesOptimized.js.map +1 -0
  64. package/dist/cjs/_virtual/querying.js +6 -0
  65. package/dist/cjs/_virtual/querying.js.map +1 -0
  66. package/dist/cjs/_virtual/stringify.js +6 -0
  67. package/dist/cjs/_virtual/stringify.js.map +1 -0
  68. package/dist/cjs/_virtual/traversal.js +6 -0
  69. package/dist/cjs/_virtual/traversal.js.map +1 -0
  70. package/dist/cjs/_virtual/types.js +6 -0
  71. package/dist/cjs/_virtual/types.js.map +1 -0
  72. package/dist/cjs/_virtual/utilities.js +6 -0
  73. package/dist/cjs/_virtual/utilities.js.map +1 -0
  74. package/dist/cjs/_virtual/utilities2.js +6 -0
  75. package/dist/cjs/_virtual/utilities2.js.map +1 -0
  76. package/dist/cjs/_virtual/utilities3.js +6 -0
  77. package/dist/cjs/_virtual/utilities3.js.map +1 -0
  78. package/dist/cjs/components/Alert.js +2 -0
  79. package/dist/cjs/components/Alert.js.map +1 -1
  80. package/dist/cjs/components/Breadcrumb.js +4 -0
  81. package/dist/cjs/components/Breadcrumb.js.map +1 -1
  82. package/dist/cjs/components/Modal.js +7 -4
  83. package/dist/cjs/components/Modal.js.map +1 -1
  84. package/dist/cjs/components/Progress.js +9 -5
  85. package/dist/cjs/components/Progress.js.map +1 -1
  86. package/dist/cjs/components/Sidebar.js +1 -1
  87. package/dist/cjs/components/Sidebar.js.map +1 -1
  88. package/dist/cjs/components/StatusBar.js +7 -1
  89. package/dist/cjs/components/StatusBar.js.map +1 -1
  90. package/dist/cjs/node_modules/dom-serializer/lib/foreignNames.js +116 -0
  91. package/dist/cjs/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
  92. package/dist/cjs/node_modules/dom-serializer/lib/index.js +245 -0
  93. package/dist/cjs/node_modules/dom-serializer/lib/index.js.map +1 -0
  94. package/dist/cjs/node_modules/domelementtype/lib/index.js +70 -0
  95. package/dist/cjs/node_modules/domelementtype/lib/index.js.map +1 -0
  96. package/dist/cjs/node_modules/domhandler/lib/index.js +182 -0
  97. package/dist/cjs/node_modules/domhandler/lib/index.js.map +1 -0
  98. package/dist/cjs/node_modules/domhandler/lib/node.js +488 -0
  99. package/dist/cjs/node_modules/domhandler/lib/node.js.map +1 -0
  100. package/dist/cjs/node_modules/domutils/lib/feeds.js +205 -0
  101. package/dist/cjs/node_modules/domutils/lib/feeds.js.map +1 -0
  102. package/dist/cjs/node_modules/domutils/lib/helpers.js +156 -0
  103. package/dist/cjs/node_modules/domutils/lib/helpers.js.map +1 -0
  104. package/dist/cjs/node_modules/domutils/lib/index.js +56 -0
  105. package/dist/cjs/node_modules/domutils/lib/index.js.map +1 -0
  106. package/dist/cjs/node_modules/domutils/lib/legacy.js +183 -0
  107. package/dist/cjs/node_modules/domutils/lib/legacy.js.map +1 -0
  108. package/dist/cjs/node_modules/domutils/lib/manipulation.js +155 -0
  109. package/dist/cjs/node_modules/domutils/lib/manipulation.js.map +1 -0
  110. package/dist/cjs/node_modules/domutils/lib/querying.js +169 -0
  111. package/dist/cjs/node_modules/domutils/lib/querying.js.map +1 -0
  112. package/dist/cjs/node_modules/domutils/lib/stringify.js +107 -0
  113. package/dist/cjs/node_modules/domutils/lib/stringify.js.map +1 -0
  114. package/dist/cjs/node_modules/domutils/lib/traversal.js +139 -0
  115. package/dist/cjs/node_modules/domutils/lib/traversal.js.map +1 -0
  116. package/dist/cjs/node_modules/entities/lib/decode.js +554 -0
  117. package/dist/cjs/node_modules/entities/lib/decode.js.map +1 -0
  118. package/dist/cjs/node_modules/entities/lib/decode_codepoint.js +91 -0
  119. package/dist/cjs/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  120. package/dist/cjs/node_modules/entities/lib/encode.js +92 -0
  121. package/dist/cjs/node_modules/entities/lib/encode.js.map +1 -0
  122. package/dist/cjs/node_modules/entities/lib/escape.js +137 -0
  123. package/dist/cjs/node_modules/entities/lib/escape.js.map +1 -0
  124. package/dist/cjs/node_modules/entities/lib/generated/decode-data-html.js +22 -0
  125. package/dist/cjs/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  126. package/dist/cjs/node_modules/entities/lib/generated/decode-data-xml.js +22 -0
  127. package/dist/cjs/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  128. package/dist/cjs/node_modules/entities/lib/generated/encode-html.js +25 -0
  129. package/dist/cjs/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  130. package/dist/cjs/node_modules/entities/lib/index.js +144 -0
  131. package/dist/cjs/node_modules/entities/lib/index.js.map +1 -0
  132. package/dist/cjs/node_modules/html-dom-parser/lib/index.js +47 -0
  133. package/dist/cjs/node_modules/html-dom-parser/lib/index.js.map +1 -0
  134. package/dist/cjs/node_modules/html-dom-parser/lib/server/html-to-dom.js +46 -0
  135. package/dist/cjs/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -0
  136. package/dist/cjs/node_modules/html-dom-parser/lib/server/utilities.js +32 -0
  137. package/dist/cjs/node_modules/html-dom-parser/lib/server/utilities.js.map +1 -0
  138. package/dist/cjs/node_modules/html-dom-parser/lib/types.js +16 -0
  139. package/dist/cjs/node_modules/html-dom-parser/lib/types.js.map +1 -0
  140. package/dist/cjs/node_modules/html-react-parser/esm/index.js +10 -0
  141. package/dist/cjs/node_modules/html-react-parser/esm/index.js.map +1 -0
  142. package/dist/cjs/node_modules/html-react-parser/lib/attributes-to-props.js +89 -0
  143. package/dist/cjs/node_modules/html-react-parser/lib/attributes-to-props.js.map +1 -0
  144. package/dist/cjs/node_modules/html-react-parser/lib/dom-to-react.js +138 -0
  145. package/dist/cjs/node_modules/html-react-parser/lib/dom-to-react.js.map +1 -0
  146. package/dist/cjs/node_modules/html-react-parser/lib/index.js +55 -0
  147. package/dist/cjs/node_modules/html-react-parser/lib/index.js.map +1 -0
  148. package/dist/cjs/node_modules/html-react-parser/lib/utilities.js +121 -0
  149. package/dist/cjs/node_modules/html-react-parser/lib/utilities.js.map +1 -0
  150. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Parser.js +542 -0
  151. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -0
  152. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +805 -0
  153. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -0
  154. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/index.js +143 -0
  155. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -0
  156. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +92 -0
  157. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  158. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +529 -0
  159. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  160. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +23 -0
  161. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  162. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +23 -0
  163. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  164. package/dist/cjs/node_modules/inline-style-parser/cjs/index.js +274 -0
  165. package/dist/cjs/node_modules/inline-style-parser/cjs/index.js.map +1 -0
  166. package/dist/cjs/node_modules/react-property/lib/index.js +534 -0
  167. package/dist/cjs/node_modules/react-property/lib/index.js.map +1 -0
  168. package/dist/cjs/node_modules/react-property/lib/possibleStandardNamesOptimized.js +507 -0
  169. package/dist/cjs/node_modules/react-property/lib/possibleStandardNamesOptimized.js.map +1 -0
  170. package/dist/cjs/node_modules/style-to-js/cjs/index.js +40 -0
  171. package/dist/cjs/node_modules/style-to-js/cjs/index.js.map +1 -0
  172. package/dist/cjs/node_modules/style-to-js/cjs/utilities.js +60 -0
  173. package/dist/cjs/node_modules/style-to-js/cjs/utilities.js.map +1 -0
  174. package/dist/cjs/node_modules/style-to-object/cjs/index.js +58 -0
  175. package/dist/cjs/node_modules/style-to-object/cjs/index.js.map +1 -0
  176. package/dist/esm/_virtual/Parser.js +4 -0
  177. package/dist/esm/_virtual/Parser.js.map +1 -0
  178. package/dist/esm/_virtual/Tokenizer.js +4 -0
  179. package/dist/esm/_virtual/Tokenizer.js.map +1 -0
  180. package/dist/esm/_virtual/_commonjsHelpers.js +6 -0
  181. package/dist/esm/_virtual/_commonjsHelpers.js.map +1 -0
  182. package/dist/esm/_virtual/attributes-to-props.js +4 -0
  183. package/dist/esm/_virtual/attributes-to-props.js.map +1 -0
  184. package/dist/esm/_virtual/decode-codepoint.js +4 -0
  185. package/dist/esm/_virtual/decode-codepoint.js.map +1 -0
  186. package/dist/esm/_virtual/decode-data-html.js +4 -0
  187. package/dist/esm/_virtual/decode-data-html.js.map +1 -0
  188. package/dist/esm/_virtual/decode-data-html2.js +4 -0
  189. package/dist/esm/_virtual/decode-data-html2.js.map +1 -0
  190. package/dist/esm/_virtual/decode-data-xml.js +4 -0
  191. package/dist/esm/_virtual/decode-data-xml.js.map +1 -0
  192. package/dist/esm/_virtual/decode-data-xml2.js +4 -0
  193. package/dist/esm/_virtual/decode-data-xml2.js.map +1 -0
  194. package/dist/esm/_virtual/decode.js +4 -0
  195. package/dist/esm/_virtual/decode.js.map +1 -0
  196. package/dist/esm/_virtual/decode2.js +4 -0
  197. package/dist/esm/_virtual/decode2.js.map +1 -0
  198. package/dist/esm/_virtual/decode_codepoint.js +4 -0
  199. package/dist/esm/_virtual/decode_codepoint.js.map +1 -0
  200. package/dist/esm/_virtual/dom-to-react.js +4 -0
  201. package/dist/esm/_virtual/dom-to-react.js.map +1 -0
  202. package/dist/esm/_virtual/encode-html.js +4 -0
  203. package/dist/esm/_virtual/encode-html.js.map +1 -0
  204. package/dist/esm/_virtual/encode.js +4 -0
  205. package/dist/esm/_virtual/encode.js.map +1 -0
  206. package/dist/esm/_virtual/escape.js +4 -0
  207. package/dist/esm/_virtual/escape.js.map +1 -0
  208. package/dist/esm/_virtual/feeds.js +4 -0
  209. package/dist/esm/_virtual/feeds.js.map +1 -0
  210. package/dist/esm/_virtual/foreignNames.js +4 -0
  211. package/dist/esm/_virtual/foreignNames.js.map +1 -0
  212. package/dist/esm/_virtual/helpers.js +4 -0
  213. package/dist/esm/_virtual/helpers.js.map +1 -0
  214. package/dist/esm/_virtual/html-to-dom.js +4 -0
  215. package/dist/esm/_virtual/html-to-dom.js.map +1 -0
  216. package/dist/esm/_virtual/index.js +8 -0
  217. package/dist/esm/_virtual/index.js.map +1 -0
  218. package/dist/esm/_virtual/index10.js +4 -0
  219. package/dist/esm/_virtual/index10.js.map +1 -0
  220. package/dist/esm/_virtual/index11.js +4 -0
  221. package/dist/esm/_virtual/index11.js.map +1 -0
  222. package/dist/esm/_virtual/index2.js +4 -0
  223. package/dist/esm/_virtual/index2.js.map +1 -0
  224. package/dist/esm/_virtual/index3.js +4 -0
  225. package/dist/esm/_virtual/index3.js.map +1 -0
  226. package/dist/esm/_virtual/index4.js +4 -0
  227. package/dist/esm/_virtual/index4.js.map +1 -0
  228. package/dist/esm/_virtual/index5.js +4 -0
  229. package/dist/esm/_virtual/index5.js.map +1 -0
  230. package/dist/esm/_virtual/index6.js +4 -0
  231. package/dist/esm/_virtual/index6.js.map +1 -0
  232. package/dist/esm/_virtual/index7.js +4 -0
  233. package/dist/esm/_virtual/index7.js.map +1 -0
  234. package/dist/esm/_virtual/index8.js +4 -0
  235. package/dist/esm/_virtual/index8.js.map +1 -0
  236. package/dist/esm/_virtual/index9.js +4 -0
  237. package/dist/esm/_virtual/index9.js.map +1 -0
  238. package/dist/esm/_virtual/legacy.js +4 -0
  239. package/dist/esm/_virtual/legacy.js.map +1 -0
  240. package/dist/esm/_virtual/manipulation.js +4 -0
  241. package/dist/esm/_virtual/manipulation.js.map +1 -0
  242. package/dist/esm/_virtual/node.js +4 -0
  243. package/dist/esm/_virtual/node.js.map +1 -0
  244. package/dist/esm/_virtual/possibleStandardNamesOptimized.js +4 -0
  245. package/dist/esm/_virtual/possibleStandardNamesOptimized.js.map +1 -0
  246. package/dist/esm/_virtual/querying.js +4 -0
  247. package/dist/esm/_virtual/querying.js.map +1 -0
  248. package/dist/esm/_virtual/stringify.js +4 -0
  249. package/dist/esm/_virtual/stringify.js.map +1 -0
  250. package/dist/esm/_virtual/traversal.js +4 -0
  251. package/dist/esm/_virtual/traversal.js.map +1 -0
  252. package/dist/esm/_virtual/types.js +4 -0
  253. package/dist/esm/_virtual/types.js.map +1 -0
  254. package/dist/esm/_virtual/utilities.js +4 -0
  255. package/dist/esm/_virtual/utilities.js.map +1 -0
  256. package/dist/esm/_virtual/utilities2.js +4 -0
  257. package/dist/esm/_virtual/utilities2.js.map +1 -0
  258. package/dist/esm/_virtual/utilities3.js +4 -0
  259. package/dist/esm/_virtual/utilities3.js.map +1 -0
  260. package/dist/esm/components/Alert.js +2 -0
  261. package/dist/esm/components/Alert.js.map +1 -1
  262. package/dist/esm/components/Breadcrumb.js +4 -0
  263. package/dist/esm/components/Breadcrumb.js.map +1 -1
  264. package/dist/esm/components/Modal.js +7 -4
  265. package/dist/esm/components/Modal.js.map +1 -1
  266. package/dist/esm/components/Progress.d.ts +1 -0
  267. package/dist/esm/components/Progress.js +9 -5
  268. package/dist/esm/components/Progress.js.map +1 -1
  269. package/dist/esm/components/Sidebar.js +1 -1
  270. package/dist/esm/components/Sidebar.js.map +1 -1
  271. package/dist/esm/components/StatusBar.js +7 -1
  272. package/dist/esm/components/StatusBar.js.map +1 -1
  273. package/dist/esm/node_modules/dom-serializer/lib/foreignNames.js +114 -0
  274. package/dist/esm/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
  275. package/dist/esm/node_modules/dom-serializer/lib/index.js +243 -0
  276. package/dist/esm/node_modules/dom-serializer/lib/index.js.map +1 -0
  277. package/dist/esm/node_modules/domelementtype/lib/index.js +68 -0
  278. package/dist/esm/node_modules/domelementtype/lib/index.js.map +1 -0
  279. package/dist/esm/node_modules/domhandler/lib/index.js +180 -0
  280. package/dist/esm/node_modules/domhandler/lib/index.js.map +1 -0
  281. package/dist/esm/node_modules/domhandler/lib/node.js +486 -0
  282. package/dist/esm/node_modules/domhandler/lib/node.js.map +1 -0
  283. package/dist/esm/node_modules/domutils/lib/feeds.js +203 -0
  284. package/dist/esm/node_modules/domutils/lib/feeds.js.map +1 -0
  285. package/dist/esm/node_modules/domutils/lib/helpers.js +154 -0
  286. package/dist/esm/node_modules/domutils/lib/helpers.js.map +1 -0
  287. package/dist/esm/node_modules/domutils/lib/index.js +54 -0
  288. package/dist/esm/node_modules/domutils/lib/index.js.map +1 -0
  289. package/dist/esm/node_modules/domutils/lib/legacy.js +181 -0
  290. package/dist/esm/node_modules/domutils/lib/legacy.js.map +1 -0
  291. package/dist/esm/node_modules/domutils/lib/manipulation.js +153 -0
  292. package/dist/esm/node_modules/domutils/lib/manipulation.js.map +1 -0
  293. package/dist/esm/node_modules/domutils/lib/querying.js +167 -0
  294. package/dist/esm/node_modules/domutils/lib/querying.js.map +1 -0
  295. package/dist/esm/node_modules/domutils/lib/stringify.js +105 -0
  296. package/dist/esm/node_modules/domutils/lib/stringify.js.map +1 -0
  297. package/dist/esm/node_modules/domutils/lib/traversal.js +137 -0
  298. package/dist/esm/node_modules/domutils/lib/traversal.js.map +1 -0
  299. package/dist/esm/node_modules/entities/lib/decode.js +552 -0
  300. package/dist/esm/node_modules/entities/lib/decode.js.map +1 -0
  301. package/dist/esm/node_modules/entities/lib/decode_codepoint.js +89 -0
  302. package/dist/esm/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  303. package/dist/esm/node_modules/entities/lib/encode.js +90 -0
  304. package/dist/esm/node_modules/entities/lib/encode.js.map +1 -0
  305. package/dist/esm/node_modules/entities/lib/escape.js +135 -0
  306. package/dist/esm/node_modules/entities/lib/escape.js.map +1 -0
  307. package/dist/esm/node_modules/entities/lib/generated/decode-data-html.js +20 -0
  308. package/dist/esm/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  309. package/dist/esm/node_modules/entities/lib/generated/decode-data-xml.js +20 -0
  310. package/dist/esm/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  311. package/dist/esm/node_modules/entities/lib/generated/encode-html.js +23 -0
  312. package/dist/esm/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  313. package/dist/esm/node_modules/entities/lib/index.js +142 -0
  314. package/dist/esm/node_modules/entities/lib/index.js.map +1 -0
  315. package/dist/esm/node_modules/html-dom-parser/lib/index.js +45 -0
  316. package/dist/esm/node_modules/html-dom-parser/lib/index.js.map +1 -0
  317. package/dist/esm/node_modules/html-dom-parser/lib/server/html-to-dom.js +44 -0
  318. package/dist/esm/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -0
  319. package/dist/esm/node_modules/html-dom-parser/lib/server/utilities.js +30 -0
  320. package/dist/esm/node_modules/html-dom-parser/lib/server/utilities.js.map +1 -0
  321. package/dist/esm/node_modules/html-dom-parser/lib/types.js +14 -0
  322. package/dist/esm/node_modules/html-dom-parser/lib/types.js.map +1 -0
  323. package/dist/esm/node_modules/html-react-parser/esm/index.js +6 -0
  324. package/dist/esm/node_modules/html-react-parser/esm/index.js.map +1 -0
  325. package/dist/esm/node_modules/html-react-parser/lib/attributes-to-props.js +87 -0
  326. package/dist/esm/node_modules/html-react-parser/lib/attributes-to-props.js.map +1 -0
  327. package/dist/esm/node_modules/html-react-parser/lib/dom-to-react.js +136 -0
  328. package/dist/esm/node_modules/html-react-parser/lib/dom-to-react.js.map +1 -0
  329. package/dist/esm/node_modules/html-react-parser/lib/index.js +53 -0
  330. package/dist/esm/node_modules/html-react-parser/lib/index.js.map +1 -0
  331. package/dist/esm/node_modules/html-react-parser/lib/utilities.js +119 -0
  332. package/dist/esm/node_modules/html-react-parser/lib/utilities.js.map +1 -0
  333. package/dist/esm/node_modules/htmlparser2/dist/commonjs/Parser.js +540 -0
  334. package/dist/esm/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -0
  335. package/dist/esm/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +803 -0
  336. package/dist/esm/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -0
  337. package/dist/esm/node_modules/htmlparser2/dist/commonjs/index.js +141 -0
  338. package/dist/esm/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -0
  339. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +90 -0
  340. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  341. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +527 -0
  342. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  343. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +21 -0
  344. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  345. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +21 -0
  346. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  347. package/dist/esm/node_modules/inline-style-parser/cjs/index.js +272 -0
  348. package/dist/esm/node_modules/inline-style-parser/cjs/index.js.map +1 -0
  349. package/dist/esm/node_modules/react-property/lib/index.js +532 -0
  350. package/dist/esm/node_modules/react-property/lib/index.js.map +1 -0
  351. package/dist/esm/node_modules/react-property/lib/possibleStandardNamesOptimized.js +505 -0
  352. package/dist/esm/node_modules/react-property/lib/possibleStandardNamesOptimized.js.map +1 -0
  353. package/dist/esm/node_modules/style-to-js/cjs/index.js +38 -0
  354. package/dist/esm/node_modules/style-to-js/cjs/index.js.map +1 -0
  355. package/dist/esm/node_modules/style-to-js/cjs/utilities.js +58 -0
  356. package/dist/esm/node_modules/style-to-js/cjs/utilities.js.map +1 -0
  357. package/dist/esm/node_modules/style-to-object/cjs/index.js +56 -0
  358. package/dist/esm/node_modules/style-to-object/cjs/index.js.map +1 -0
  359. package/package.json +3 -2
@@ -0,0 +1,203 @@
1
+ import { __exports as feeds } from '../../../_virtual/feeds.js';
2
+ import { __require as requireStringify } from './stringify.js';
3
+ import { __require as requireLegacy } from './legacy.js';
4
+
5
+ var hasRequiredFeeds;
6
+
7
+ function requireFeeds () {
8
+ if (hasRequiredFeeds) return feeds;
9
+ hasRequiredFeeds = 1;
10
+ Object.defineProperty(feeds, "__esModule", { value: true });
11
+ feeds.getFeed = getFeed;
12
+ var stringify_js_1 = /*@__PURE__*/ requireStringify();
13
+ var legacy_js_1 = /*@__PURE__*/ requireLegacy();
14
+ /**
15
+ * Get the feed object from the root of a DOM tree.
16
+ *
17
+ * @category Feeds
18
+ * @param doc - The DOM to to extract the feed from.
19
+ * @returns The feed.
20
+ */
21
+ function getFeed(doc) {
22
+ var feedRoot = getOneElement(isValidFeed, doc);
23
+ return !feedRoot
24
+ ? null
25
+ : feedRoot.name === "feed"
26
+ ? getAtomFeed(feedRoot)
27
+ : getRssFeed(feedRoot);
28
+ }
29
+ /**
30
+ * Parse an Atom feed.
31
+ *
32
+ * @param feedRoot The root of the feed.
33
+ * @returns The parsed feed.
34
+ */
35
+ function getAtomFeed(feedRoot) {
36
+ var _a;
37
+ var childs = feedRoot.children;
38
+ var feed = {
39
+ type: "atom",
40
+ items: (0, legacy_js_1.getElementsByTagName)("entry", childs).map(function (item) {
41
+ var _a;
42
+ var children = item.children;
43
+ var entry = { media: getMediaElements(children) };
44
+ addConditionally(entry, "id", "id", children);
45
+ addConditionally(entry, "title", "title", children);
46
+ var href = (_a = getOneElement("link", children)) === null || _a === void 0 ? void 0 : _a.attribs["href"];
47
+ if (href) {
48
+ entry.link = href;
49
+ }
50
+ var description = fetch("summary", children) || fetch("content", children);
51
+ if (description) {
52
+ entry.description = description;
53
+ }
54
+ var pubDate = fetch("updated", children);
55
+ if (pubDate) {
56
+ entry.pubDate = new Date(pubDate);
57
+ }
58
+ return entry;
59
+ }),
60
+ };
61
+ addConditionally(feed, "id", "id", childs);
62
+ addConditionally(feed, "title", "title", childs);
63
+ var href = (_a = getOneElement("link", childs)) === null || _a === void 0 ? void 0 : _a.attribs["href"];
64
+ if (href) {
65
+ feed.link = href;
66
+ }
67
+ addConditionally(feed, "description", "subtitle", childs);
68
+ var updated = fetch("updated", childs);
69
+ if (updated) {
70
+ feed.updated = new Date(updated);
71
+ }
72
+ addConditionally(feed, "author", "email", childs, true);
73
+ return feed;
74
+ }
75
+ /**
76
+ * Parse a RSS feed.
77
+ *
78
+ * @param feedRoot The root of the feed.
79
+ * @returns The parsed feed.
80
+ */
81
+ function getRssFeed(feedRoot) {
82
+ var _a, _b;
83
+ var childs = (_b = (_a = getOneElement("channel", feedRoot.children)) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : [];
84
+ var feed = {
85
+ type: feedRoot.name.substr(0, 3),
86
+ id: "",
87
+ items: (0, legacy_js_1.getElementsByTagName)("item", feedRoot.children).map(function (item) {
88
+ var children = item.children;
89
+ var entry = { media: getMediaElements(children) };
90
+ addConditionally(entry, "id", "guid", children);
91
+ addConditionally(entry, "title", "title", children);
92
+ addConditionally(entry, "link", "link", children);
93
+ addConditionally(entry, "description", "description", children);
94
+ var pubDate = fetch("pubDate", children) || fetch("dc:date", children);
95
+ if (pubDate)
96
+ entry.pubDate = new Date(pubDate);
97
+ return entry;
98
+ }),
99
+ };
100
+ addConditionally(feed, "title", "title", childs);
101
+ addConditionally(feed, "link", "link", childs);
102
+ addConditionally(feed, "description", "description", childs);
103
+ var updated = fetch("lastBuildDate", childs);
104
+ if (updated) {
105
+ feed.updated = new Date(updated);
106
+ }
107
+ addConditionally(feed, "author", "managingEditor", childs, true);
108
+ return feed;
109
+ }
110
+ var MEDIA_KEYS_STRING = ["url", "type", "lang"];
111
+ var MEDIA_KEYS_INT = [
112
+ "fileSize",
113
+ "bitrate",
114
+ "framerate",
115
+ "samplingrate",
116
+ "channels",
117
+ "duration",
118
+ "height",
119
+ "width",
120
+ ];
121
+ /**
122
+ * Get all media elements of a feed item.
123
+ *
124
+ * @param where Nodes to search in.
125
+ * @returns Media elements.
126
+ */
127
+ function getMediaElements(where) {
128
+ return (0, legacy_js_1.getElementsByTagName)("media:content", where).map(function (elem) {
129
+ var attribs = elem.attribs;
130
+ var media = {
131
+ medium: attribs["medium"],
132
+ isDefault: !!attribs["isDefault"],
133
+ };
134
+ for (var _i = 0, MEDIA_KEYS_STRING_1 = MEDIA_KEYS_STRING; _i < MEDIA_KEYS_STRING_1.length; _i++) {
135
+ var attrib = MEDIA_KEYS_STRING_1[_i];
136
+ if (attribs[attrib]) {
137
+ media[attrib] = attribs[attrib];
138
+ }
139
+ }
140
+ for (var _a = 0, MEDIA_KEYS_INT_1 = MEDIA_KEYS_INT; _a < MEDIA_KEYS_INT_1.length; _a++) {
141
+ var attrib = MEDIA_KEYS_INT_1[_a];
142
+ if (attribs[attrib]) {
143
+ media[attrib] = parseInt(attribs[attrib], 10);
144
+ }
145
+ }
146
+ if (attribs["expression"]) {
147
+ media.expression = attribs["expression"];
148
+ }
149
+ return media;
150
+ });
151
+ }
152
+ /**
153
+ * Get one element by tag name.
154
+ *
155
+ * @param tagName Tag name to look for
156
+ * @param node Node to search in
157
+ * @returns The element or null
158
+ */
159
+ function getOneElement(tagName, node) {
160
+ return (0, legacy_js_1.getElementsByTagName)(tagName, node, true, 1)[0];
161
+ }
162
+ /**
163
+ * Get the text content of an element with a certain tag name.
164
+ *
165
+ * @param tagName Tag name to look for.
166
+ * @param where Node to search in.
167
+ * @param recurse Whether to recurse into child nodes.
168
+ * @returns The text content of the element.
169
+ */
170
+ function fetch(tagName, where, recurse) {
171
+ if (recurse === void 0) { recurse = false; }
172
+ return (0, stringify_js_1.textContent)((0, legacy_js_1.getElementsByTagName)(tagName, where, recurse, 1)).trim();
173
+ }
174
+ /**
175
+ * Adds a property to an object if it has a value.
176
+ *
177
+ * @param obj Object to be extended
178
+ * @param prop Property name
179
+ * @param tagName Tag name that contains the conditionally added property
180
+ * @param where Element to search for the property
181
+ * @param recurse Whether to recurse into child nodes.
182
+ */
183
+ function addConditionally(obj, prop, tagName, where, recurse) {
184
+ if (recurse === void 0) { recurse = false; }
185
+ var val = fetch(tagName, where, recurse);
186
+ if (val)
187
+ obj[prop] = val;
188
+ }
189
+ /**
190
+ * Checks if an element is a feed root node.
191
+ *
192
+ * @param value The name of the element to check.
193
+ * @returns Whether an element is a feed root node.
194
+ */
195
+ function isValidFeed(value) {
196
+ return value === "rss" || value === "feed" || value === "rdf:RDF";
197
+ }
198
+
199
+ return feeds;
200
+ }
201
+
202
+ export { requireFeeds as __require };
203
+ //# sourceMappingURL=feeds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feeds.js","sources":["../../../../../node_modules/domutils/lib/feeds.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getFeed = getFeed;\nvar stringify_js_1 = require(\"./stringify.js\");\nvar legacy_js_1 = require(\"./legacy.js\");\n/**\n * Get the feed object from the root of a DOM tree.\n *\n * @category Feeds\n * @param doc - The DOM to to extract the feed from.\n * @returns The feed.\n */\nfunction getFeed(doc) {\n var feedRoot = getOneElement(isValidFeed, doc);\n return !feedRoot\n ? null\n : feedRoot.name === \"feed\"\n ? getAtomFeed(feedRoot)\n : getRssFeed(feedRoot);\n}\n/**\n * Parse an Atom feed.\n *\n * @param feedRoot The root of the feed.\n * @returns The parsed feed.\n */\nfunction getAtomFeed(feedRoot) {\n var _a;\n var childs = feedRoot.children;\n var feed = {\n type: \"atom\",\n items: (0, legacy_js_1.getElementsByTagName)(\"entry\", childs).map(function (item) {\n var _a;\n var children = item.children;\n var entry = { media: getMediaElements(children) };\n addConditionally(entry, \"id\", \"id\", children);\n addConditionally(entry, \"title\", \"title\", children);\n var href = (_a = getOneElement(\"link\", children)) === null || _a === void 0 ? void 0 : _a.attribs[\"href\"];\n if (href) {\n entry.link = href;\n }\n var description = fetch(\"summary\", children) || fetch(\"content\", children);\n if (description) {\n entry.description = description;\n }\n var pubDate = fetch(\"updated\", children);\n if (pubDate) {\n entry.pubDate = new Date(pubDate);\n }\n return entry;\n }),\n };\n addConditionally(feed, \"id\", \"id\", childs);\n addConditionally(feed, \"title\", \"title\", childs);\n var href = (_a = getOneElement(\"link\", childs)) === null || _a === void 0 ? void 0 : _a.attribs[\"href\"];\n if (href) {\n feed.link = href;\n }\n addConditionally(feed, \"description\", \"subtitle\", childs);\n var updated = fetch(\"updated\", childs);\n if (updated) {\n feed.updated = new Date(updated);\n }\n addConditionally(feed, \"author\", \"email\", childs, true);\n return feed;\n}\n/**\n * Parse a RSS feed.\n *\n * @param feedRoot The root of the feed.\n * @returns The parsed feed.\n */\nfunction getRssFeed(feedRoot) {\n var _a, _b;\n var childs = (_b = (_a = getOneElement(\"channel\", feedRoot.children)) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : [];\n var feed = {\n type: feedRoot.name.substr(0, 3),\n id: \"\",\n items: (0, legacy_js_1.getElementsByTagName)(\"item\", feedRoot.children).map(function (item) {\n var children = item.children;\n var entry = { media: getMediaElements(children) };\n addConditionally(entry, \"id\", \"guid\", children);\n addConditionally(entry, \"title\", \"title\", children);\n addConditionally(entry, \"link\", \"link\", children);\n addConditionally(entry, \"description\", \"description\", children);\n var pubDate = fetch(\"pubDate\", children) || fetch(\"dc:date\", children);\n if (pubDate)\n entry.pubDate = new Date(pubDate);\n return entry;\n }),\n };\n addConditionally(feed, \"title\", \"title\", childs);\n addConditionally(feed, \"link\", \"link\", childs);\n addConditionally(feed, \"description\", \"description\", childs);\n var updated = fetch(\"lastBuildDate\", childs);\n if (updated) {\n feed.updated = new Date(updated);\n }\n addConditionally(feed, \"author\", \"managingEditor\", childs, true);\n return feed;\n}\nvar MEDIA_KEYS_STRING = [\"url\", \"type\", \"lang\"];\nvar MEDIA_KEYS_INT = [\n \"fileSize\",\n \"bitrate\",\n \"framerate\",\n \"samplingrate\",\n \"channels\",\n \"duration\",\n \"height\",\n \"width\",\n];\n/**\n * Get all media elements of a feed item.\n *\n * @param where Nodes to search in.\n * @returns Media elements.\n */\nfunction getMediaElements(where) {\n return (0, legacy_js_1.getElementsByTagName)(\"media:content\", where).map(function (elem) {\n var attribs = elem.attribs;\n var media = {\n medium: attribs[\"medium\"],\n isDefault: !!attribs[\"isDefault\"],\n };\n for (var _i = 0, MEDIA_KEYS_STRING_1 = MEDIA_KEYS_STRING; _i < MEDIA_KEYS_STRING_1.length; _i++) {\n var attrib = MEDIA_KEYS_STRING_1[_i];\n if (attribs[attrib]) {\n media[attrib] = attribs[attrib];\n }\n }\n for (var _a = 0, MEDIA_KEYS_INT_1 = MEDIA_KEYS_INT; _a < MEDIA_KEYS_INT_1.length; _a++) {\n var attrib = MEDIA_KEYS_INT_1[_a];\n if (attribs[attrib]) {\n media[attrib] = parseInt(attribs[attrib], 10);\n }\n }\n if (attribs[\"expression\"]) {\n media.expression = attribs[\"expression\"];\n }\n return media;\n });\n}\n/**\n * Get one element by tag name.\n *\n * @param tagName Tag name to look for\n * @param node Node to search in\n * @returns The element or null\n */\nfunction getOneElement(tagName, node) {\n return (0, legacy_js_1.getElementsByTagName)(tagName, node, true, 1)[0];\n}\n/**\n * Get the text content of an element with a certain tag name.\n *\n * @param tagName Tag name to look for.\n * @param where Node to search in.\n * @param recurse Whether to recurse into child nodes.\n * @returns The text content of the element.\n */\nfunction fetch(tagName, where, recurse) {\n if (recurse === void 0) { recurse = false; }\n return (0, stringify_js_1.textContent)((0, legacy_js_1.getElementsByTagName)(tagName, where, recurse, 1)).trim();\n}\n/**\n * Adds a property to an object if it has a value.\n *\n * @param obj Object to be extended\n * @param prop Property name\n * @param tagName Tag name that contains the conditionally added property\n * @param where Element to search for the property\n * @param recurse Whether to recurse into child nodes.\n */\nfunction addConditionally(obj, prop, tagName, where, recurse) {\n if (recurse === void 0) { recurse = false; }\n var val = fetch(tagName, where, recurse);\n if (val)\n obj[prop] = val;\n}\n/**\n * Checks if an element is a feed root node.\n *\n * @param value The name of the element to check.\n * @returns Whether an element is a feed root node.\n */\nfunction isValidFeed(value) {\n return value === \"rss\" || value === \"feed\" || value === \"rdf:RDF\";\n}\n//# sourceMappingURL=feeds.js.map"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAAC,KAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAA,KAAA,CAAA,OAAe,GAAG,OAAO;CACzB,IAAI,cAAc,iBAAGA,gBAAA,EAAyB;CAC9C,IAAI,WAAW,iBAAGC,aAAA,EAAsB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,OAAO,CAAC,GAAG,EAAE;KAClB,IAAI,QAAQ,GAAG,aAAa,CAAC,WAAW,EAAE,GAAG,CAAC;AAClD,KAAI,OAAO,CAAC;WACF;WACA,QAAQ,CAAC,IAAI,KAAK;eACd,WAAW,CAAC,QAAQ;eACpB,UAAU,CAAC,QAAQ,CAAC;AAClC,CAAA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,WAAW,CAAC,QAAQ,EAAE;AAC/B,KAAI,IAAI,EAAE;AACV,KAAI,IAAI,MAAM,GAAG,QAAQ,CAAC,QAAQ;KAC9B,IAAI,IAAI,GAAG;SACP,IAAI,EAAE,MAAM;AACpB,SAAQ,KAAK,EAAE,IAAI,WAAW,CAAC,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,UAAU,IAAI,EAAE;AAC1F,aAAY,IAAI,EAAE;AAClB,aAAY,IAAI,QAAQ,GAAG,IAAI,CAAC,QAAQ;aAC5B,IAAI,KAAK,GAAG,EAAE,KAAK,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAAE;aACjD,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC;aAC7C,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC;AAC/D,aAA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AK,MAAM,EAAE,EAAE,OAAO,GAAG,KAAK,CAAC,CAAA;KAC1C,OAAO,IAAI,cAAc,CAAC,WAAW,EAAE,IAAI,WAAW,CAAC,oBAAoB,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;AACpH,CAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,gBAAgB,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;KAC1D,IAAI,OAAO,KAAK,MAAM,EAAE,EAAE,OAAO,GAAG,KAAK,CAAC,CAAA;KAC1C,IAAI,GAAG,GAAG,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;AAC5C,KAAI,IAAI,GAAG;AACX,SAAQ,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG;AACvB,CAAA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,WAAW,CAAC,KAAK,EAAE;KACxB,OAAO,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,SAAS;AACrE,CAAA;AACA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,154 @@
1
+ import { __exports as helpers } from '../../../_virtual/helpers.js';
2
+ import { __require as requireLib } from '../../domhandler/lib/index.js';
3
+
4
+ var hasRequiredHelpers;
5
+
6
+ function requireHelpers () {
7
+ if (hasRequiredHelpers) return helpers;
8
+ hasRequiredHelpers = 1;
9
+ Object.defineProperty(helpers, "__esModule", { value: true });
10
+ helpers.DocumentPosition = void 0;
11
+ helpers.removeSubsets = removeSubsets;
12
+ helpers.compareDocumentPosition = compareDocumentPosition;
13
+ helpers.uniqueSort = uniqueSort;
14
+ var domhandler_1 = /*@__PURE__*/ requireLib();
15
+ /**
16
+ * Given an array of nodes, remove any member that is contained by another
17
+ * member.
18
+ *
19
+ * @category Helpers
20
+ * @param nodes Nodes to filter.
21
+ * @returns Remaining nodes that aren't contained by other nodes.
22
+ */
23
+ function removeSubsets(nodes) {
24
+ var idx = nodes.length;
25
+ /*
26
+ * Check if each node (or one of its ancestors) is already contained in the
27
+ * array.
28
+ */
29
+ while (--idx >= 0) {
30
+ var node = nodes[idx];
31
+ /*
32
+ * Remove the node if it is not unique.
33
+ * We are going through the array from the end, so we only
34
+ * have to check nodes that preceed the node under consideration in the array.
35
+ */
36
+ if (idx > 0 && nodes.lastIndexOf(node, idx - 1) >= 0) {
37
+ nodes.splice(idx, 1);
38
+ continue;
39
+ }
40
+ for (var ancestor = node.parent; ancestor; ancestor = ancestor.parent) {
41
+ if (nodes.includes(ancestor)) {
42
+ nodes.splice(idx, 1);
43
+ break;
44
+ }
45
+ }
46
+ }
47
+ return nodes;
48
+ }
49
+ /**
50
+ * @category Helpers
51
+ * @see {@link http://dom.spec.whatwg.org/#dom-node-comparedocumentposition}
52
+ */
53
+ var DocumentPosition;
54
+ (function (DocumentPosition) {
55
+ DocumentPosition[DocumentPosition["DISCONNECTED"] = 1] = "DISCONNECTED";
56
+ DocumentPosition[DocumentPosition["PRECEDING"] = 2] = "PRECEDING";
57
+ DocumentPosition[DocumentPosition["FOLLOWING"] = 4] = "FOLLOWING";
58
+ DocumentPosition[DocumentPosition["CONTAINS"] = 8] = "CONTAINS";
59
+ DocumentPosition[DocumentPosition["CONTAINED_BY"] = 16] = "CONTAINED_BY";
60
+ })(DocumentPosition || (helpers.DocumentPosition = DocumentPosition = {}));
61
+ /**
62
+ * Compare the position of one node against another node in any other document,
63
+ * returning a bitmask with the values from {@link DocumentPosition}.
64
+ *
65
+ * Document order:
66
+ * > There is an ordering, document order, defined on all the nodes in the
67
+ * > document corresponding to the order in which the first character of the
68
+ * > XML representation of each node occurs in the XML representation of the
69
+ * > document after expansion of general entities. Thus, the document element
70
+ * > node will be the first node. Element nodes occur before their children.
71
+ * > Thus, document order orders element nodes in order of the occurrence of
72
+ * > their start-tag in the XML (after expansion of entities). The attribute
73
+ * > nodes of an element occur after the element and before its children. The
74
+ * > relative order of attribute nodes is implementation-dependent.
75
+ *
76
+ * Source:
77
+ * http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order
78
+ *
79
+ * @category Helpers
80
+ * @param nodeA The first node to use in the comparison
81
+ * @param nodeB The second node to use in the comparison
82
+ * @returns A bitmask describing the input nodes' relative position.
83
+ *
84
+ * See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for
85
+ * a description of these values.
86
+ */
87
+ function compareDocumentPosition(nodeA, nodeB) {
88
+ var aParents = [];
89
+ var bParents = [];
90
+ if (nodeA === nodeB) {
91
+ return 0;
92
+ }
93
+ var current = (0, domhandler_1.hasChildren)(nodeA) ? nodeA : nodeA.parent;
94
+ while (current) {
95
+ aParents.unshift(current);
96
+ current = current.parent;
97
+ }
98
+ current = (0, domhandler_1.hasChildren)(nodeB) ? nodeB : nodeB.parent;
99
+ while (current) {
100
+ bParents.unshift(current);
101
+ current = current.parent;
102
+ }
103
+ var maxIdx = Math.min(aParents.length, bParents.length);
104
+ var idx = 0;
105
+ while (idx < maxIdx && aParents[idx] === bParents[idx]) {
106
+ idx++;
107
+ }
108
+ if (idx === 0) {
109
+ return DocumentPosition.DISCONNECTED;
110
+ }
111
+ var sharedParent = aParents[idx - 1];
112
+ var siblings = sharedParent.children;
113
+ var aSibling = aParents[idx];
114
+ var bSibling = bParents[idx];
115
+ if (siblings.indexOf(aSibling) > siblings.indexOf(bSibling)) {
116
+ if (sharedParent === nodeB) {
117
+ return DocumentPosition.FOLLOWING | DocumentPosition.CONTAINED_BY;
118
+ }
119
+ return DocumentPosition.FOLLOWING;
120
+ }
121
+ if (sharedParent === nodeA) {
122
+ return DocumentPosition.PRECEDING | DocumentPosition.CONTAINS;
123
+ }
124
+ return DocumentPosition.PRECEDING;
125
+ }
126
+ /**
127
+ * Sort an array of nodes based on their relative position in the document,
128
+ * removing any duplicate nodes. If the array contains nodes that do not belong
129
+ * to the same document, sort order is unspecified.
130
+ *
131
+ * @category Helpers
132
+ * @param nodes Array of DOM nodes.
133
+ * @returns Collection of unique nodes, sorted in document order.
134
+ */
135
+ function uniqueSort(nodes) {
136
+ nodes = nodes.filter(function (node, i, arr) { return !arr.includes(node, i + 1); });
137
+ nodes.sort(function (a, b) {
138
+ var relative = compareDocumentPosition(a, b);
139
+ if (relative & DocumentPosition.PRECEDING) {
140
+ return -1;
141
+ }
142
+ else if (relative & DocumentPosition.FOLLOWING) {
143
+ return 1;
144
+ }
145
+ return 0;
146
+ });
147
+ return nodes;
148
+ }
149
+
150
+ return helpers;
151
+ }
152
+
153
+ export { requireHelpers as __require };
154
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sources":["../../../../../node_modules/domutils/lib/helpers.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DocumentPosition = void 0;\nexports.removeSubsets = removeSubsets;\nexports.compareDocumentPosition = compareDocumentPosition;\nexports.uniqueSort = uniqueSort;\nvar domhandler_1 = require(\"domhandler\");\n/**\n * Given an array of nodes, remove any member that is contained by another\n * member.\n *\n * @category Helpers\n * @param nodes Nodes to filter.\n * @returns Remaining nodes that aren't contained by other nodes.\n */\nfunction removeSubsets(nodes) {\n var idx = nodes.length;\n /*\n * Check if each node (or one of its ancestors) is already contained in the\n * array.\n */\n while (--idx >= 0) {\n var node = nodes[idx];\n /*\n * Remove the node if it is not unique.\n * We are going through the array from the end, so we only\n * have to check nodes that preceed the node under consideration in the array.\n */\n if (idx > 0 && nodes.lastIndexOf(node, idx - 1) >= 0) {\n nodes.splice(idx, 1);\n continue;\n }\n for (var ancestor = node.parent; ancestor; ancestor = ancestor.parent) {\n if (nodes.includes(ancestor)) {\n nodes.splice(idx, 1);\n break;\n }\n }\n }\n return nodes;\n}\n/**\n * @category Helpers\n * @see {@link http://dom.spec.whatwg.org/#dom-node-comparedocumentposition}\n */\nvar DocumentPosition;\n(function (DocumentPosition) {\n DocumentPosition[DocumentPosition[\"DISCONNECTED\"] = 1] = \"DISCONNECTED\";\n DocumentPosition[DocumentPosition[\"PRECEDING\"] = 2] = \"PRECEDING\";\n DocumentPosition[DocumentPosition[\"FOLLOWING\"] = 4] = \"FOLLOWING\";\n DocumentPosition[DocumentPosition[\"CONTAINS\"] = 8] = \"CONTAINS\";\n DocumentPosition[DocumentPosition[\"CONTAINED_BY\"] = 16] = \"CONTAINED_BY\";\n})(DocumentPosition || (exports.DocumentPosition = DocumentPosition = {}));\n/**\n * Compare the position of one node against another node in any other document,\n * returning a bitmask with the values from {@link DocumentPosition}.\n *\n * Document order:\n * > There is an ordering, document order, defined on all the nodes in the\n * > document corresponding to the order in which the first character of the\n * > XML representation of each node occurs in the XML representation of the\n * > document after expansion of general entities. Thus, the document element\n * > node will be the first node. Element nodes occur before their children.\n * > Thus, document order orders element nodes in order of the occurrence of\n * > their start-tag in the XML (after expansion of entities). The attribute\n * > nodes of an element occur after the element and before its children. The\n * > relative order of attribute nodes is implementation-dependent.\n *\n * Source:\n * http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order\n *\n * @category Helpers\n * @param nodeA The first node to use in the comparison\n * @param nodeB The second node to use in the comparison\n * @returns A bitmask describing the input nodes' relative position.\n *\n * See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for\n * a description of these values.\n */\nfunction compareDocumentPosition(nodeA, nodeB) {\n var aParents = [];\n var bParents = [];\n if (nodeA === nodeB) {\n return 0;\n }\n var current = (0, domhandler_1.hasChildren)(nodeA) ? nodeA : nodeA.parent;\n while (current) {\n aParents.unshift(current);\n current = current.parent;\n }\n current = (0, domhandler_1.hasChildren)(nodeB) ? nodeB : nodeB.parent;\n while (current) {\n bParents.unshift(current);\n current = current.parent;\n }\n var maxIdx = Math.min(aParents.length, bParents.length);\n var idx = 0;\n while (idx < maxIdx && aParents[idx] === bParents[idx]) {\n idx++;\n }\n if (idx === 0) {\n return DocumentPosition.DISCONNECTED;\n }\n var sharedParent = aParents[idx - 1];\n var siblings = sharedParent.children;\n var aSibling = aParents[idx];\n var bSibling = bParents[idx];\n if (siblings.indexOf(aSibling) > siblings.indexOf(bSibling)) {\n if (sharedParent === nodeB) {\n return DocumentPosition.FOLLOWING | DocumentPosition.CONTAINED_BY;\n }\n return DocumentPosition.FOLLOWING;\n }\n if (sharedParent === nodeA) {\n return DocumentPosition.PRECEDING | DocumentPosition.CONTAINS;\n }\n return DocumentPosition.PRECEDING;\n}\n/**\n * Sort an array of nodes based on their relative position in the document,\n * removing any duplicate nodes. If the array contains nodes that do not belong\n * to the same document, sort order is unspecified.\n *\n * @category Helpers\n * @param nodes Array of DOM nodes.\n * @returns Collection of unique nodes, sorted in document order.\n */\nfunction uniqueSort(nodes) {\n nodes = nodes.filter(function (node, i, arr) { return !arr.includes(node, i + 1); });\n nodes.sort(function (a, b) {\n var relative = compareDocumentPosition(a, b);\n if (relative & DocumentPosition.PRECEDING) {\n return -1;\n }\n else if (relative & DocumentPosition.FOLLOWING) {\n return 1;\n }\n return 0;\n });\n return nodes;\n}\n//# sourceMappingURL=helpers.js.map"],"names":["require$$0"],"mappings":";;;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAA,OAAA,CAAA,gBAAwB,GAAG,MAAM;AACjC,CAAA,OAAA,CAAA,aAAqB,GAAG,aAAa;AACrC,CAAA,OAAA,CAAA,uBAA+B,GAAG,uBAAuB;AACzD,CAAA,OAAA,CAAA,UAAkB,GAAG,UAAU;CAC/B,IAAI,YAAY,iBAAGA,UAAA,EAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,aAAa,CAAC,KAAK,EAAE;AAC9B,KAAI,IAAI,GAAG,GAAG,KAAK,CAAC,MAAM;AAC1B;AACA;AACA;AACA;AACA,KAAI,OAAO,EAAE,GAAG,IAAI,CAAC,EAAE;AACvB,SAAQ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9.js';
2
+ import { __require as requireStringify } from './stringify.js';
3
+ import { __require as requireTraversal } from './traversal.js';
4
+ import { __require as requireManipulation } from './manipulation.js';
5
+ import { __require as requireQuerying } from './querying.js';
6
+ import { __require as requireLegacy } from './legacy.js';
7
+ import { __require as requireHelpers } from './helpers.js';
8
+ import { __require as requireFeeds } from './feeds.js';
9
+ import { __require as requireLib$1 } from '../../domhandler/lib/index.js';
10
+
11
+ var hasRequiredLib;
12
+
13
+ function requireLib () {
14
+ if (hasRequiredLib) return lib;
15
+ hasRequiredLib = 1;
16
+ (function (exports) {
17
+ var __createBinding = (lib && lib.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __exportStar = (lib && lib.__exportStar) || function(m, exports) {
29
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.hasChildren = exports.isDocument = exports.isComment = exports.isText = exports.isCDATA = exports.isTag = void 0;
33
+ __exportStar(/*@__PURE__*/ requireStringify(), exports);
34
+ __exportStar(/*@__PURE__*/ requireTraversal(), exports);
35
+ __exportStar(/*@__PURE__*/ requireManipulation(), exports);
36
+ __exportStar(/*@__PURE__*/ requireQuerying(), exports);
37
+ __exportStar(/*@__PURE__*/ requireLegacy(), exports);
38
+ __exportStar(/*@__PURE__*/ requireHelpers(), exports);
39
+ __exportStar(/*@__PURE__*/ requireFeeds(), exports);
40
+ /** @deprecated Use these methods from `domhandler` directly. */
41
+ var domhandler_1 = /*@__PURE__*/ requireLib$1();
42
+ Object.defineProperty(exports, "isTag", { enumerable: true, get: function () { return domhandler_1.isTag; } });
43
+ Object.defineProperty(exports, "isCDATA", { enumerable: true, get: function () { return domhandler_1.isCDATA; } });
44
+ Object.defineProperty(exports, "isText", { enumerable: true, get: function () { return domhandler_1.isText; } });
45
+ Object.defineProperty(exports, "isComment", { enumerable: true, get: function () { return domhandler_1.isComment; } });
46
+ Object.defineProperty(exports, "isDocument", { enumerable: true, get: function () { return domhandler_1.isDocument; } });
47
+ Object.defineProperty(exports, "hasChildren", { enumerable: true, get: function () { return domhandler_1.hasChildren; } });
48
+
49
+ } (lib));
50
+ return lib;
51
+ }
52
+
53
+ export { requireLib as __require };
54
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/domutils/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hasChildren = exports.isDocument = exports.isComment = exports.isText = exports.isCDATA = exports.isTag = void 0;\n__exportStar(require(\"./stringify.js\"), exports);\n__exportStar(require(\"./traversal.js\"), exports);\n__exportStar(require(\"./manipulation.js\"), exports);\n__exportStar(require(\"./querying.js\"), exports);\n__exportStar(require(\"./legacy.js\"), exports);\n__exportStar(require(\"./helpers.js\"), exports);\n__exportStar(require(\"./feeds.js\"), exports);\n/** @deprecated Use these methods from `domhandler` directly. */\nvar domhandler_1 = require(\"domhandler\");\nObject.defineProperty(exports, \"isTag\", { enumerable: true, get: function () { return domhandler_1.isTag; } });\nObject.defineProperty(exports, \"isCDATA\", { enumerable: true, get: function () { return domhandler_1.isCDATA; } });\nObject.defineProperty(exports, \"isText\", { enumerable: true, get: function () { return domhandler_1.isText; } });\nObject.defineProperty(exports, \"isComment\", { enumerable: true, get: function () { return domhandler_1.isComment; } });\nObject.defineProperty(exports, \"isDocument\", { enumerable: true, get: function () { return domhandler_1.isDocument; } });\nObject.defineProperty(exports, \"hasChildren\", { enumerable: true, get: function () { return domhandler_1.hasChildren; } });\n//# sourceMappingURL=index.js.map"],"names":["this","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7"],"mappings":";;;;;;;;;;;;;;;;EACA,IAAI,eAAe,GAAG,CAACA,GAAI,IAAIA,GAAI,CAAC,eAAe,MAAM,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;AAChG,MAAI,IAAI,EAAE,KAAK,SAAS,EAAE,EAAE,GAAG,CAAC;MAC5B,IAAI,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC;MAChD,IAAI,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE;AACvF,QAAM,IAAI,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnE,MAAA;MACI,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC;EACtC,CAAC,KAAK,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;AAC5B,MAAI,IAAI,EAAE,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,YAAY,EAAE,OAAO,YAAY,CAAC,KAAK,CAAC,CAAA,CAAE,EAAE,CAAC;EAC9G,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,YAAY,CAAC,OAAO,CAAC,CAAA,CAAE,EAAE,CAAC;EAClH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,YAAY,CAAC,MAAM,CAAC,CAAA,CAAE,EAAE,CAAC;EAChH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,YAAY,CAAC,SAAS,CAAC,CAAA,CAAE,EAAE,CAAC;EACtH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,YAAY,CAAC,UAAU,CAAC,CAAA,CAAE,EAAE,CAAC;EACxH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,YAAY,CAAC,WAAW,CAAC,CAAA,CAAE,EAAE,CAAC;AAC1H;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,181 @@
1
+ import { __exports as legacy } from '../../../_virtual/legacy.js';
2
+ import { __require as requireLib } from '../../domhandler/lib/index.js';
3
+ import { __require as requireQuerying } from './querying.js';
4
+
5
+ var hasRequiredLegacy;
6
+
7
+ function requireLegacy () {
8
+ if (hasRequiredLegacy) return legacy;
9
+ hasRequiredLegacy = 1;
10
+ Object.defineProperty(legacy, "__esModule", { value: true });
11
+ legacy.testElement = testElement;
12
+ legacy.getElements = getElements;
13
+ legacy.getElementById = getElementById;
14
+ legacy.getElementsByTagName = getElementsByTagName;
15
+ legacy.getElementsByClassName = getElementsByClassName;
16
+ legacy.getElementsByTagType = getElementsByTagType;
17
+ var domhandler_1 = /*@__PURE__*/ requireLib();
18
+ var querying_js_1 = /*@__PURE__*/ requireQuerying();
19
+ /**
20
+ * A map of functions to check nodes against.
21
+ */
22
+ var Checks = {
23
+ tag_name: function (name) {
24
+ if (typeof name === "function") {
25
+ return function (elem) { return (0, domhandler_1.isTag)(elem) && name(elem.name); };
26
+ }
27
+ else if (name === "*") {
28
+ return domhandler_1.isTag;
29
+ }
30
+ return function (elem) { return (0, domhandler_1.isTag)(elem) && elem.name === name; };
31
+ },
32
+ tag_type: function (type) {
33
+ if (typeof type === "function") {
34
+ return function (elem) { return type(elem.type); };
35
+ }
36
+ return function (elem) { return elem.type === type; };
37
+ },
38
+ tag_contains: function (data) {
39
+ if (typeof data === "function") {
40
+ return function (elem) { return (0, domhandler_1.isText)(elem) && data(elem.data); };
41
+ }
42
+ return function (elem) { return (0, domhandler_1.isText)(elem) && elem.data === data; };
43
+ },
44
+ };
45
+ /**
46
+ * Returns a function to check whether a node has an attribute with a particular
47
+ * value.
48
+ *
49
+ * @param attrib Attribute to check.
50
+ * @param value Attribute value to look for.
51
+ * @returns A function to check whether the a node has an attribute with a
52
+ * particular value.
53
+ */
54
+ function getAttribCheck(attrib, value) {
55
+ if (typeof value === "function") {
56
+ return function (elem) { return (0, domhandler_1.isTag)(elem) && value(elem.attribs[attrib]); };
57
+ }
58
+ return function (elem) { return (0, domhandler_1.isTag)(elem) && elem.attribs[attrib] === value; };
59
+ }
60
+ /**
61
+ * Returns a function that returns `true` if either of the input functions
62
+ * returns `true` for a node.
63
+ *
64
+ * @param a First function to combine.
65
+ * @param b Second function to combine.
66
+ * @returns A function taking a node and returning `true` if either of the input
67
+ * functions returns `true` for the node.
68
+ */
69
+ function combineFuncs(a, b) {
70
+ return function (elem) { return a(elem) || b(elem); };
71
+ }
72
+ /**
73
+ * Returns a function that executes all checks in `options` and returns `true`
74
+ * if any of them match a node.
75
+ *
76
+ * @param options An object describing nodes to look for.
77
+ * @returns A function that executes all checks in `options` and returns `true`
78
+ * if any of them match a node.
79
+ */
80
+ function compileTest(options) {
81
+ var funcs = Object.keys(options).map(function (key) {
82
+ var value = options[key];
83
+ return Object.prototype.hasOwnProperty.call(Checks, key)
84
+ ? Checks[key](value)
85
+ : getAttribCheck(key, value);
86
+ });
87
+ return funcs.length === 0 ? null : funcs.reduce(combineFuncs);
88
+ }
89
+ /**
90
+ * Checks whether a node matches the description in `options`.
91
+ *
92
+ * @category Legacy Query Functions
93
+ * @param options An object describing nodes to look for.
94
+ * @param node The element to test.
95
+ * @returns Whether the element matches the description in `options`.
96
+ */
97
+ function testElement(options, node) {
98
+ var test = compileTest(options);
99
+ return test ? test(node) : true;
100
+ }
101
+ /**
102
+ * Returns all nodes that match `options`.
103
+ *
104
+ * @category Legacy Query Functions
105
+ * @param options An object describing nodes to look for.
106
+ * @param nodes Nodes to search through.
107
+ * @param recurse Also consider child nodes.
108
+ * @param limit Maximum number of nodes to return.
109
+ * @returns All nodes that match `options`.
110
+ */
111
+ function getElements(options, nodes, recurse, limit) {
112
+ if (limit === void 0) { limit = Infinity; }
113
+ var test = compileTest(options);
114
+ return test ? (0, querying_js_1.filter)(test, nodes, recurse, limit) : [];
115
+ }
116
+ /**
117
+ * Returns the node with the supplied ID.
118
+ *
119
+ * @category Legacy Query Functions
120
+ * @param id The unique ID attribute value to look for.
121
+ * @param nodes Nodes to search through.
122
+ * @param recurse Also consider child nodes.
123
+ * @returns The node with the supplied ID.
124
+ */
125
+ function getElementById(id, nodes, recurse) {
126
+ if (recurse === void 0) { recurse = true; }
127
+ if (!Array.isArray(nodes))
128
+ nodes = [nodes];
129
+ return (0, querying_js_1.findOne)(getAttribCheck("id", id), nodes, recurse);
130
+ }
131
+ /**
132
+ * Returns all nodes with the supplied `tagName`.
133
+ *
134
+ * @category Legacy Query Functions
135
+ * @param tagName Tag name to search for.
136
+ * @param nodes Nodes to search through.
137
+ * @param recurse Also consider child nodes.
138
+ * @param limit Maximum number of nodes to return.
139
+ * @returns All nodes with the supplied `tagName`.
140
+ */
141
+ function getElementsByTagName(tagName, nodes, recurse, limit) {
142
+ if (recurse === void 0) { recurse = true; }
143
+ if (limit === void 0) { limit = Infinity; }
144
+ return (0, querying_js_1.filter)(Checks["tag_name"](tagName), nodes, recurse, limit);
145
+ }
146
+ /**
147
+ * Returns all nodes with the supplied `className`.
148
+ *
149
+ * @category Legacy Query Functions
150
+ * @param className Class name to search for.
151
+ * @param nodes Nodes to search through.
152
+ * @param recurse Also consider child nodes.
153
+ * @param limit Maximum number of nodes to return.
154
+ * @returns All nodes with the supplied `className`.
155
+ */
156
+ function getElementsByClassName(className, nodes, recurse, limit) {
157
+ if (recurse === void 0) { recurse = true; }
158
+ if (limit === void 0) { limit = Infinity; }
159
+ return (0, querying_js_1.filter)(getAttribCheck("class", className), nodes, recurse, limit);
160
+ }
161
+ /**
162
+ * Returns all nodes with the supplied `type`.
163
+ *
164
+ * @category Legacy Query Functions
165
+ * @param type Element type to look for.
166
+ * @param nodes Nodes to search through.
167
+ * @param recurse Also consider child nodes.
168
+ * @param limit Maximum number of nodes to return.
169
+ * @returns All nodes with the supplied `type`.
170
+ */
171
+ function getElementsByTagType(type, nodes, recurse, limit) {
172
+ if (recurse === void 0) { recurse = true; }
173
+ if (limit === void 0) { limit = Infinity; }
174
+ return (0, querying_js_1.filter)(Checks["tag_type"](type), nodes, recurse, limit);
175
+ }
176
+
177
+ return legacy;
178
+ }
179
+
180
+ export { requireLegacy as __require };
181
+ //# sourceMappingURL=legacy.js.map