ece-docs-components 1.0.40 → 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 (342) 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 +1 -0
  79. package/dist/cjs/components/Alert.js.map +1 -1
  80. package/dist/cjs/components/Modal.js +2 -1
  81. package/dist/cjs/components/Modal.js.map +1 -1
  82. package/dist/cjs/node_modules/dom-serializer/lib/foreignNames.js +116 -0
  83. package/dist/cjs/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
  84. package/dist/cjs/node_modules/dom-serializer/lib/index.js +245 -0
  85. package/dist/cjs/node_modules/dom-serializer/lib/index.js.map +1 -0
  86. package/dist/cjs/node_modules/domelementtype/lib/index.js +70 -0
  87. package/dist/cjs/node_modules/domelementtype/lib/index.js.map +1 -0
  88. package/dist/cjs/node_modules/domhandler/lib/index.js +182 -0
  89. package/dist/cjs/node_modules/domhandler/lib/index.js.map +1 -0
  90. package/dist/cjs/node_modules/domhandler/lib/node.js +488 -0
  91. package/dist/cjs/node_modules/domhandler/lib/node.js.map +1 -0
  92. package/dist/cjs/node_modules/domutils/lib/feeds.js +205 -0
  93. package/dist/cjs/node_modules/domutils/lib/feeds.js.map +1 -0
  94. package/dist/cjs/node_modules/domutils/lib/helpers.js +156 -0
  95. package/dist/cjs/node_modules/domutils/lib/helpers.js.map +1 -0
  96. package/dist/cjs/node_modules/domutils/lib/index.js +56 -0
  97. package/dist/cjs/node_modules/domutils/lib/index.js.map +1 -0
  98. package/dist/cjs/node_modules/domutils/lib/legacy.js +183 -0
  99. package/dist/cjs/node_modules/domutils/lib/legacy.js.map +1 -0
  100. package/dist/cjs/node_modules/domutils/lib/manipulation.js +155 -0
  101. package/dist/cjs/node_modules/domutils/lib/manipulation.js.map +1 -0
  102. package/dist/cjs/node_modules/domutils/lib/querying.js +169 -0
  103. package/dist/cjs/node_modules/domutils/lib/querying.js.map +1 -0
  104. package/dist/cjs/node_modules/domutils/lib/stringify.js +107 -0
  105. package/dist/cjs/node_modules/domutils/lib/stringify.js.map +1 -0
  106. package/dist/cjs/node_modules/domutils/lib/traversal.js +139 -0
  107. package/dist/cjs/node_modules/domutils/lib/traversal.js.map +1 -0
  108. package/dist/cjs/node_modules/entities/lib/decode.js +554 -0
  109. package/dist/cjs/node_modules/entities/lib/decode.js.map +1 -0
  110. package/dist/cjs/node_modules/entities/lib/decode_codepoint.js +91 -0
  111. package/dist/cjs/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  112. package/dist/cjs/node_modules/entities/lib/encode.js +92 -0
  113. package/dist/cjs/node_modules/entities/lib/encode.js.map +1 -0
  114. package/dist/cjs/node_modules/entities/lib/escape.js +137 -0
  115. package/dist/cjs/node_modules/entities/lib/escape.js.map +1 -0
  116. package/dist/cjs/node_modules/entities/lib/generated/decode-data-html.js +22 -0
  117. package/dist/cjs/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  118. package/dist/cjs/node_modules/entities/lib/generated/decode-data-xml.js +22 -0
  119. package/dist/cjs/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  120. package/dist/cjs/node_modules/entities/lib/generated/encode-html.js +25 -0
  121. package/dist/cjs/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  122. package/dist/cjs/node_modules/entities/lib/index.js +144 -0
  123. package/dist/cjs/node_modules/entities/lib/index.js.map +1 -0
  124. package/dist/cjs/node_modules/html-dom-parser/lib/index.js +47 -0
  125. package/dist/cjs/node_modules/html-dom-parser/lib/index.js.map +1 -0
  126. package/dist/cjs/node_modules/html-dom-parser/lib/server/html-to-dom.js +46 -0
  127. package/dist/cjs/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -0
  128. package/dist/cjs/node_modules/html-dom-parser/lib/server/utilities.js +32 -0
  129. package/dist/cjs/node_modules/html-dom-parser/lib/server/utilities.js.map +1 -0
  130. package/dist/cjs/node_modules/html-dom-parser/lib/types.js +16 -0
  131. package/dist/cjs/node_modules/html-dom-parser/lib/types.js.map +1 -0
  132. package/dist/cjs/node_modules/html-react-parser/esm/index.js +10 -0
  133. package/dist/cjs/node_modules/html-react-parser/esm/index.js.map +1 -0
  134. package/dist/cjs/node_modules/html-react-parser/lib/attributes-to-props.js +89 -0
  135. package/dist/cjs/node_modules/html-react-parser/lib/attributes-to-props.js.map +1 -0
  136. package/dist/cjs/node_modules/html-react-parser/lib/dom-to-react.js +138 -0
  137. package/dist/cjs/node_modules/html-react-parser/lib/dom-to-react.js.map +1 -0
  138. package/dist/cjs/node_modules/html-react-parser/lib/index.js +55 -0
  139. package/dist/cjs/node_modules/html-react-parser/lib/index.js.map +1 -0
  140. package/dist/cjs/node_modules/html-react-parser/lib/utilities.js +121 -0
  141. package/dist/cjs/node_modules/html-react-parser/lib/utilities.js.map +1 -0
  142. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Parser.js +542 -0
  143. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -0
  144. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +805 -0
  145. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -0
  146. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/index.js +143 -0
  147. package/dist/cjs/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -0
  148. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +92 -0
  149. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  150. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +529 -0
  151. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  152. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +23 -0
  153. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  154. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +23 -0
  155. package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  156. package/dist/cjs/node_modules/inline-style-parser/cjs/index.js +274 -0
  157. package/dist/cjs/node_modules/inline-style-parser/cjs/index.js.map +1 -0
  158. package/dist/cjs/node_modules/react-property/lib/index.js +534 -0
  159. package/dist/cjs/node_modules/react-property/lib/index.js.map +1 -0
  160. package/dist/cjs/node_modules/react-property/lib/possibleStandardNamesOptimized.js +507 -0
  161. package/dist/cjs/node_modules/react-property/lib/possibleStandardNamesOptimized.js.map +1 -0
  162. package/dist/cjs/node_modules/style-to-js/cjs/index.js +40 -0
  163. package/dist/cjs/node_modules/style-to-js/cjs/index.js.map +1 -0
  164. package/dist/cjs/node_modules/style-to-js/cjs/utilities.js +60 -0
  165. package/dist/cjs/node_modules/style-to-js/cjs/utilities.js.map +1 -0
  166. package/dist/cjs/node_modules/style-to-object/cjs/index.js +58 -0
  167. package/dist/cjs/node_modules/style-to-object/cjs/index.js.map +1 -0
  168. package/dist/esm/_virtual/Parser.js +4 -0
  169. package/dist/esm/_virtual/Parser.js.map +1 -0
  170. package/dist/esm/_virtual/Tokenizer.js +4 -0
  171. package/dist/esm/_virtual/Tokenizer.js.map +1 -0
  172. package/dist/esm/_virtual/_commonjsHelpers.js +6 -0
  173. package/dist/esm/_virtual/_commonjsHelpers.js.map +1 -0
  174. package/dist/esm/_virtual/attributes-to-props.js +4 -0
  175. package/dist/esm/_virtual/attributes-to-props.js.map +1 -0
  176. package/dist/esm/_virtual/decode-codepoint.js +4 -0
  177. package/dist/esm/_virtual/decode-codepoint.js.map +1 -0
  178. package/dist/esm/_virtual/decode-data-html.js +4 -0
  179. package/dist/esm/_virtual/decode-data-html.js.map +1 -0
  180. package/dist/esm/_virtual/decode-data-html2.js +4 -0
  181. package/dist/esm/_virtual/decode-data-html2.js.map +1 -0
  182. package/dist/esm/_virtual/decode-data-xml.js +4 -0
  183. package/dist/esm/_virtual/decode-data-xml.js.map +1 -0
  184. package/dist/esm/_virtual/decode-data-xml2.js +4 -0
  185. package/dist/esm/_virtual/decode-data-xml2.js.map +1 -0
  186. package/dist/esm/_virtual/decode.js +4 -0
  187. package/dist/esm/_virtual/decode.js.map +1 -0
  188. package/dist/esm/_virtual/decode2.js +4 -0
  189. package/dist/esm/_virtual/decode2.js.map +1 -0
  190. package/dist/esm/_virtual/decode_codepoint.js +4 -0
  191. package/dist/esm/_virtual/decode_codepoint.js.map +1 -0
  192. package/dist/esm/_virtual/dom-to-react.js +4 -0
  193. package/dist/esm/_virtual/dom-to-react.js.map +1 -0
  194. package/dist/esm/_virtual/encode-html.js +4 -0
  195. package/dist/esm/_virtual/encode-html.js.map +1 -0
  196. package/dist/esm/_virtual/encode.js +4 -0
  197. package/dist/esm/_virtual/encode.js.map +1 -0
  198. package/dist/esm/_virtual/escape.js +4 -0
  199. package/dist/esm/_virtual/escape.js.map +1 -0
  200. package/dist/esm/_virtual/feeds.js +4 -0
  201. package/dist/esm/_virtual/feeds.js.map +1 -0
  202. package/dist/esm/_virtual/foreignNames.js +4 -0
  203. package/dist/esm/_virtual/foreignNames.js.map +1 -0
  204. package/dist/esm/_virtual/helpers.js +4 -0
  205. package/dist/esm/_virtual/helpers.js.map +1 -0
  206. package/dist/esm/_virtual/html-to-dom.js +4 -0
  207. package/dist/esm/_virtual/html-to-dom.js.map +1 -0
  208. package/dist/esm/_virtual/index.js +8 -0
  209. package/dist/esm/_virtual/index.js.map +1 -0
  210. package/dist/esm/_virtual/index10.js +4 -0
  211. package/dist/esm/_virtual/index10.js.map +1 -0
  212. package/dist/esm/_virtual/index11.js +4 -0
  213. package/dist/esm/_virtual/index11.js.map +1 -0
  214. package/dist/esm/_virtual/index2.js +4 -0
  215. package/dist/esm/_virtual/index2.js.map +1 -0
  216. package/dist/esm/_virtual/index3.js +4 -0
  217. package/dist/esm/_virtual/index3.js.map +1 -0
  218. package/dist/esm/_virtual/index4.js +4 -0
  219. package/dist/esm/_virtual/index4.js.map +1 -0
  220. package/dist/esm/_virtual/index5.js +4 -0
  221. package/dist/esm/_virtual/index5.js.map +1 -0
  222. package/dist/esm/_virtual/index6.js +4 -0
  223. package/dist/esm/_virtual/index6.js.map +1 -0
  224. package/dist/esm/_virtual/index7.js +4 -0
  225. package/dist/esm/_virtual/index7.js.map +1 -0
  226. package/dist/esm/_virtual/index8.js +4 -0
  227. package/dist/esm/_virtual/index8.js.map +1 -0
  228. package/dist/esm/_virtual/index9.js +4 -0
  229. package/dist/esm/_virtual/index9.js.map +1 -0
  230. package/dist/esm/_virtual/legacy.js +4 -0
  231. package/dist/esm/_virtual/legacy.js.map +1 -0
  232. package/dist/esm/_virtual/manipulation.js +4 -0
  233. package/dist/esm/_virtual/manipulation.js.map +1 -0
  234. package/dist/esm/_virtual/node.js +4 -0
  235. package/dist/esm/_virtual/node.js.map +1 -0
  236. package/dist/esm/_virtual/possibleStandardNamesOptimized.js +4 -0
  237. package/dist/esm/_virtual/possibleStandardNamesOptimized.js.map +1 -0
  238. package/dist/esm/_virtual/querying.js +4 -0
  239. package/dist/esm/_virtual/querying.js.map +1 -0
  240. package/dist/esm/_virtual/stringify.js +4 -0
  241. package/dist/esm/_virtual/stringify.js.map +1 -0
  242. package/dist/esm/_virtual/traversal.js +4 -0
  243. package/dist/esm/_virtual/traversal.js.map +1 -0
  244. package/dist/esm/_virtual/types.js +4 -0
  245. package/dist/esm/_virtual/types.js.map +1 -0
  246. package/dist/esm/_virtual/utilities.js +4 -0
  247. package/dist/esm/_virtual/utilities.js.map +1 -0
  248. package/dist/esm/_virtual/utilities2.js +4 -0
  249. package/dist/esm/_virtual/utilities2.js.map +1 -0
  250. package/dist/esm/_virtual/utilities3.js +4 -0
  251. package/dist/esm/_virtual/utilities3.js.map +1 -0
  252. package/dist/esm/components/Alert.js +1 -0
  253. package/dist/esm/components/Alert.js.map +1 -1
  254. package/dist/esm/components/Modal.js +2 -1
  255. package/dist/esm/components/Modal.js.map +1 -1
  256. package/dist/esm/node_modules/dom-serializer/lib/foreignNames.js +114 -0
  257. package/dist/esm/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
  258. package/dist/esm/node_modules/dom-serializer/lib/index.js +243 -0
  259. package/dist/esm/node_modules/dom-serializer/lib/index.js.map +1 -0
  260. package/dist/esm/node_modules/domelementtype/lib/index.js +68 -0
  261. package/dist/esm/node_modules/domelementtype/lib/index.js.map +1 -0
  262. package/dist/esm/node_modules/domhandler/lib/index.js +180 -0
  263. package/dist/esm/node_modules/domhandler/lib/index.js.map +1 -0
  264. package/dist/esm/node_modules/domhandler/lib/node.js +486 -0
  265. package/dist/esm/node_modules/domhandler/lib/node.js.map +1 -0
  266. package/dist/esm/node_modules/domutils/lib/feeds.js +203 -0
  267. package/dist/esm/node_modules/domutils/lib/feeds.js.map +1 -0
  268. package/dist/esm/node_modules/domutils/lib/helpers.js +154 -0
  269. package/dist/esm/node_modules/domutils/lib/helpers.js.map +1 -0
  270. package/dist/esm/node_modules/domutils/lib/index.js +54 -0
  271. package/dist/esm/node_modules/domutils/lib/index.js.map +1 -0
  272. package/dist/esm/node_modules/domutils/lib/legacy.js +181 -0
  273. package/dist/esm/node_modules/domutils/lib/legacy.js.map +1 -0
  274. package/dist/esm/node_modules/domutils/lib/manipulation.js +153 -0
  275. package/dist/esm/node_modules/domutils/lib/manipulation.js.map +1 -0
  276. package/dist/esm/node_modules/domutils/lib/querying.js +167 -0
  277. package/dist/esm/node_modules/domutils/lib/querying.js.map +1 -0
  278. package/dist/esm/node_modules/domutils/lib/stringify.js +105 -0
  279. package/dist/esm/node_modules/domutils/lib/stringify.js.map +1 -0
  280. package/dist/esm/node_modules/domutils/lib/traversal.js +137 -0
  281. package/dist/esm/node_modules/domutils/lib/traversal.js.map +1 -0
  282. package/dist/esm/node_modules/entities/lib/decode.js +552 -0
  283. package/dist/esm/node_modules/entities/lib/decode.js.map +1 -0
  284. package/dist/esm/node_modules/entities/lib/decode_codepoint.js +89 -0
  285. package/dist/esm/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  286. package/dist/esm/node_modules/entities/lib/encode.js +90 -0
  287. package/dist/esm/node_modules/entities/lib/encode.js.map +1 -0
  288. package/dist/esm/node_modules/entities/lib/escape.js +135 -0
  289. package/dist/esm/node_modules/entities/lib/escape.js.map +1 -0
  290. package/dist/esm/node_modules/entities/lib/generated/decode-data-html.js +20 -0
  291. package/dist/esm/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  292. package/dist/esm/node_modules/entities/lib/generated/decode-data-xml.js +20 -0
  293. package/dist/esm/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  294. package/dist/esm/node_modules/entities/lib/generated/encode-html.js +23 -0
  295. package/dist/esm/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  296. package/dist/esm/node_modules/entities/lib/index.js +142 -0
  297. package/dist/esm/node_modules/entities/lib/index.js.map +1 -0
  298. package/dist/esm/node_modules/html-dom-parser/lib/index.js +45 -0
  299. package/dist/esm/node_modules/html-dom-parser/lib/index.js.map +1 -0
  300. package/dist/esm/node_modules/html-dom-parser/lib/server/html-to-dom.js +44 -0
  301. package/dist/esm/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -0
  302. package/dist/esm/node_modules/html-dom-parser/lib/server/utilities.js +30 -0
  303. package/dist/esm/node_modules/html-dom-parser/lib/server/utilities.js.map +1 -0
  304. package/dist/esm/node_modules/html-dom-parser/lib/types.js +14 -0
  305. package/dist/esm/node_modules/html-dom-parser/lib/types.js.map +1 -0
  306. package/dist/esm/node_modules/html-react-parser/esm/index.js +6 -0
  307. package/dist/esm/node_modules/html-react-parser/esm/index.js.map +1 -0
  308. package/dist/esm/node_modules/html-react-parser/lib/attributes-to-props.js +87 -0
  309. package/dist/esm/node_modules/html-react-parser/lib/attributes-to-props.js.map +1 -0
  310. package/dist/esm/node_modules/html-react-parser/lib/dom-to-react.js +136 -0
  311. package/dist/esm/node_modules/html-react-parser/lib/dom-to-react.js.map +1 -0
  312. package/dist/esm/node_modules/html-react-parser/lib/index.js +53 -0
  313. package/dist/esm/node_modules/html-react-parser/lib/index.js.map +1 -0
  314. package/dist/esm/node_modules/html-react-parser/lib/utilities.js +119 -0
  315. package/dist/esm/node_modules/html-react-parser/lib/utilities.js.map +1 -0
  316. package/dist/esm/node_modules/htmlparser2/dist/commonjs/Parser.js +540 -0
  317. package/dist/esm/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -0
  318. package/dist/esm/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +803 -0
  319. package/dist/esm/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -0
  320. package/dist/esm/node_modules/htmlparser2/dist/commonjs/index.js +141 -0
  321. package/dist/esm/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -0
  322. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +90 -0
  323. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  324. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +527 -0
  325. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  326. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +21 -0
  327. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  328. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +21 -0
  329. package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  330. package/dist/esm/node_modules/inline-style-parser/cjs/index.js +272 -0
  331. package/dist/esm/node_modules/inline-style-parser/cjs/index.js.map +1 -0
  332. package/dist/esm/node_modules/react-property/lib/index.js +532 -0
  333. package/dist/esm/node_modules/react-property/lib/index.js.map +1 -0
  334. package/dist/esm/node_modules/react-property/lib/possibleStandardNamesOptimized.js +505 -0
  335. package/dist/esm/node_modules/react-property/lib/possibleStandardNamesOptimized.js.map +1 -0
  336. package/dist/esm/node_modules/style-to-js/cjs/index.js +38 -0
  337. package/dist/esm/node_modules/style-to-js/cjs/index.js.map +1 -0
  338. package/dist/esm/node_modules/style-to-js/cjs/utilities.js +58 -0
  339. package/dist/esm/node_modules/style-to-js/cjs/utilities.js.map +1 -0
  340. package/dist/esm/node_modules/style-to-object/cjs/index.js +56 -0
  341. package/dist/esm/node_modules/style-to-object/cjs/index.js.map +1 -0
  342. package/package.json +3 -2
@@ -0,0 +1,183 @@
1
+ 'use strict';
2
+
3
+ var legacy = require('../../../_virtual/legacy.js');
4
+ var index = require('../../domhandler/lib/index.js');
5
+ var querying = require('./querying.js');
6
+
7
+ var hasRequiredLegacy;
8
+
9
+ function requireLegacy () {
10
+ if (hasRequiredLegacy) return legacy.__exports;
11
+ hasRequiredLegacy = 1;
12
+ Object.defineProperty(legacy.__exports, "__esModule", { value: true });
13
+ legacy.__exports.testElement = testElement;
14
+ legacy.__exports.getElements = getElements;
15
+ legacy.__exports.getElementById = getElementById;
16
+ legacy.__exports.getElementsByTagName = getElementsByTagName;
17
+ legacy.__exports.getElementsByClassName = getElementsByClassName;
18
+ legacy.__exports.getElementsByTagType = getElementsByTagType;
19
+ var domhandler_1 = /*@__PURE__*/ index.__require();
20
+ var querying_js_1 = /*@__PURE__*/ querying.__require();
21
+ /**
22
+ * A map of functions to check nodes against.
23
+ */
24
+ var Checks = {
25
+ tag_name: function (name) {
26
+ if (typeof name === "function") {
27
+ return function (elem) { return (0, domhandler_1.isTag)(elem) && name(elem.name); };
28
+ }
29
+ else if (name === "*") {
30
+ return domhandler_1.isTag;
31
+ }
32
+ return function (elem) { return (0, domhandler_1.isTag)(elem) && elem.name === name; };
33
+ },
34
+ tag_type: function (type) {
35
+ if (typeof type === "function") {
36
+ return function (elem) { return type(elem.type); };
37
+ }
38
+ return function (elem) { return elem.type === type; };
39
+ },
40
+ tag_contains: function (data) {
41
+ if (typeof data === "function") {
42
+ return function (elem) { return (0, domhandler_1.isText)(elem) && data(elem.data); };
43
+ }
44
+ return function (elem) { return (0, domhandler_1.isText)(elem) && elem.data === data; };
45
+ },
46
+ };
47
+ /**
48
+ * Returns a function to check whether a node has an attribute with a particular
49
+ * value.
50
+ *
51
+ * @param attrib Attribute to check.
52
+ * @param value Attribute value to look for.
53
+ * @returns A function to check whether the a node has an attribute with a
54
+ * particular value.
55
+ */
56
+ function getAttribCheck(attrib, value) {
57
+ if (typeof value === "function") {
58
+ return function (elem) { return (0, domhandler_1.isTag)(elem) && value(elem.attribs[attrib]); };
59
+ }
60
+ return function (elem) { return (0, domhandler_1.isTag)(elem) && elem.attribs[attrib] === value; };
61
+ }
62
+ /**
63
+ * Returns a function that returns `true` if either of the input functions
64
+ * returns `true` for a node.
65
+ *
66
+ * @param a First function to combine.
67
+ * @param b Second function to combine.
68
+ * @returns A function taking a node and returning `true` if either of the input
69
+ * functions returns `true` for the node.
70
+ */
71
+ function combineFuncs(a, b) {
72
+ return function (elem) { return a(elem) || b(elem); };
73
+ }
74
+ /**
75
+ * Returns a function that executes all checks in `options` and returns `true`
76
+ * if any of them match a node.
77
+ *
78
+ * @param options An object describing nodes to look for.
79
+ * @returns A function that executes all checks in `options` and returns `true`
80
+ * if any of them match a node.
81
+ */
82
+ function compileTest(options) {
83
+ var funcs = Object.keys(options).map(function (key) {
84
+ var value = options[key];
85
+ return Object.prototype.hasOwnProperty.call(Checks, key)
86
+ ? Checks[key](value)
87
+ : getAttribCheck(key, value);
88
+ });
89
+ return funcs.length === 0 ? null : funcs.reduce(combineFuncs);
90
+ }
91
+ /**
92
+ * Checks whether a node matches the description in `options`.
93
+ *
94
+ * @category Legacy Query Functions
95
+ * @param options An object describing nodes to look for.
96
+ * @param node The element to test.
97
+ * @returns Whether the element matches the description in `options`.
98
+ */
99
+ function testElement(options, node) {
100
+ var test = compileTest(options);
101
+ return test ? test(node) : true;
102
+ }
103
+ /**
104
+ * Returns all nodes that match `options`.
105
+ *
106
+ * @category Legacy Query Functions
107
+ * @param options An object describing nodes to look for.
108
+ * @param nodes Nodes to search through.
109
+ * @param recurse Also consider child nodes.
110
+ * @param limit Maximum number of nodes to return.
111
+ * @returns All nodes that match `options`.
112
+ */
113
+ function getElements(options, nodes, recurse, limit) {
114
+ if (limit === void 0) { limit = Infinity; }
115
+ var test = compileTest(options);
116
+ return test ? (0, querying_js_1.filter)(test, nodes, recurse, limit) : [];
117
+ }
118
+ /**
119
+ * Returns the node with the supplied ID.
120
+ *
121
+ * @category Legacy Query Functions
122
+ * @param id The unique ID attribute value to look for.
123
+ * @param nodes Nodes to search through.
124
+ * @param recurse Also consider child nodes.
125
+ * @returns The node with the supplied ID.
126
+ */
127
+ function getElementById(id, nodes, recurse) {
128
+ if (recurse === void 0) { recurse = true; }
129
+ if (!Array.isArray(nodes))
130
+ nodes = [nodes];
131
+ return (0, querying_js_1.findOne)(getAttribCheck("id", id), nodes, recurse);
132
+ }
133
+ /**
134
+ * Returns all nodes with the supplied `tagName`.
135
+ *
136
+ * @category Legacy Query Functions
137
+ * @param tagName Tag name to search for.
138
+ * @param nodes Nodes to search through.
139
+ * @param recurse Also consider child nodes.
140
+ * @param limit Maximum number of nodes to return.
141
+ * @returns All nodes with the supplied `tagName`.
142
+ */
143
+ function getElementsByTagName(tagName, nodes, recurse, limit) {
144
+ if (recurse === void 0) { recurse = true; }
145
+ if (limit === void 0) { limit = Infinity; }
146
+ return (0, querying_js_1.filter)(Checks["tag_name"](tagName), nodes, recurse, limit);
147
+ }
148
+ /**
149
+ * Returns all nodes with the supplied `className`.
150
+ *
151
+ * @category Legacy Query Functions
152
+ * @param className Class name to search for.
153
+ * @param nodes Nodes to search through.
154
+ * @param recurse Also consider child nodes.
155
+ * @param limit Maximum number of nodes to return.
156
+ * @returns All nodes with the supplied `className`.
157
+ */
158
+ function getElementsByClassName(className, nodes, recurse, limit) {
159
+ if (recurse === void 0) { recurse = true; }
160
+ if (limit === void 0) { limit = Infinity; }
161
+ return (0, querying_js_1.filter)(getAttribCheck("class", className), nodes, recurse, limit);
162
+ }
163
+ /**
164
+ * Returns all nodes with the supplied `type`.
165
+ *
166
+ * @category Legacy Query Functions
167
+ * @param type Element type to look for.
168
+ * @param nodes Nodes to search through.
169
+ * @param recurse Also consider child nodes.
170
+ * @param limit Maximum number of nodes to return.
171
+ * @returns All nodes with the supplied `type`.
172
+ */
173
+ function getElementsByTagType(type, nodes, recurse, limit) {
174
+ if (recurse === void 0) { recurse = true; }
175
+ if (limit === void 0) { limit = Infinity; }
176
+ return (0, querying_js_1.filter)(Checks["tag_type"](type), nodes, recurse, limit);
177
+ }
178
+
179
+ return legacy.__exports;
180
+ }
181
+
182
+ exports.__require = requireLegacy;
183
+ //# sourceMappingURL=legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy.js","sources":["../../../../../node_modules/domutils/lib/legacy.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.testElement = testElement;\nexports.getElements = getElements;\nexports.getElementById = getElementById;\nexports.getElementsByTagName = getElementsByTagName;\nexports.getElementsByClassName = getElementsByClassName;\nexports.getElementsByTagType = getElementsByTagType;\nvar domhandler_1 = require(\"domhandler\");\nvar querying_js_1 = require(\"./querying.js\");\n/**\n * A map of functions to check nodes against.\n */\nvar Checks = {\n tag_name: function (name) {\n if (typeof name === \"function\") {\n return function (elem) { return (0, domhandler_1.isTag)(elem) && name(elem.name); };\n }\n else if (name === \"*\") {\n return domhandler_1.isTag;\n }\n return function (elem) { return (0, domhandler_1.isTag)(elem) && elem.name === name; };\n },\n tag_type: function (type) {\n if (typeof type === \"function\") {\n return function (elem) { return type(elem.type); };\n }\n return function (elem) { return elem.type === type; };\n },\n tag_contains: function (data) {\n if (typeof data === \"function\") {\n return function (elem) { return (0, domhandler_1.isText)(elem) && data(elem.data); };\n }\n return function (elem) { return (0, domhandler_1.isText)(elem) && elem.data === data; };\n },\n};\n/**\n * Returns a function to check whether a node has an attribute with a particular\n * value.\n *\n * @param attrib Attribute to check.\n * @param value Attribute value to look for.\n * @returns A function to check whether the a node has an attribute with a\n * particular value.\n */\nfunction getAttribCheck(attrib, value) {\n if (typeof value === \"function\") {\n return function (elem) { return (0, domhandler_1.isTag)(elem) && value(elem.attribs[attrib]); };\n }\n return function (elem) { return (0, domhandler_1.isTag)(elem) && elem.attribs[attrib] === value; };\n}\n/**\n * Returns a function that returns `true` if either of the input functions\n * returns `true` for a node.\n *\n * @param a First function to combine.\n * @param b Second function to combine.\n * @returns A function taking a node and returning `true` if either of the input\n * functions returns `true` for the node.\n */\nfunction combineFuncs(a, b) {\n return function (elem) { return a(elem) || b(elem); };\n}\n/**\n * Returns a function that executes all checks in `options` and returns `true`\n * if any of them match a node.\n *\n * @param options An object describing nodes to look for.\n * @returns A function that executes all checks in `options` and returns `true`\n * if any of them match a node.\n */\nfunction compileTest(options) {\n var funcs = Object.keys(options).map(function (key) {\n var value = options[key];\n return Object.prototype.hasOwnProperty.call(Checks, key)\n ? Checks[key](value)\n : getAttribCheck(key, value);\n });\n return funcs.length === 0 ? null : funcs.reduce(combineFuncs);\n}\n/**\n * Checks whether a node matches the description in `options`.\n *\n * @category Legacy Query Functions\n * @param options An object describing nodes to look for.\n * @param node The element to test.\n * @returns Whether the element matches the description in `options`.\n */\nfunction testElement(options, node) {\n var test = compileTest(options);\n return test ? test(node) : true;\n}\n/**\n * Returns all nodes that match `options`.\n *\n * @category Legacy Query Functions\n * @param options An object describing nodes to look for.\n * @param nodes Nodes to search through.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes that match `options`.\n */\nfunction getElements(options, nodes, recurse, limit) {\n if (limit === void 0) { limit = Infinity; }\n var test = compileTest(options);\n return test ? (0, querying_js_1.filter)(test, nodes, recurse, limit) : [];\n}\n/**\n * Returns the node with the supplied ID.\n *\n * @category Legacy Query Functions\n * @param id The unique ID attribute value to look for.\n * @param nodes Nodes to search through.\n * @param recurse Also consider child nodes.\n * @returns The node with the supplied ID.\n */\nfunction getElementById(id, nodes, recurse) {\n if (recurse === void 0) { recurse = true; }\n if (!Array.isArray(nodes))\n nodes = [nodes];\n return (0, querying_js_1.findOne)(getAttribCheck(\"id\", id), nodes, recurse);\n}\n/**\n * Returns all nodes with the supplied `tagName`.\n *\n * @category Legacy Query Functions\n * @param tagName Tag name to search for.\n * @param nodes Nodes to search through.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes with the supplied `tagName`.\n */\nfunction getElementsByTagName(tagName, nodes, recurse, limit) {\n if (recurse === void 0) { recurse = true; }\n if (limit === void 0) { limit = Infinity; }\n return (0, querying_js_1.filter)(Checks[\"tag_name\"](tagName), nodes, recurse, limit);\n}\n/**\n * Returns all nodes with the supplied `className`.\n *\n * @category Legacy Query Functions\n * @param className Class name to search for.\n * @param nodes Nodes to search through.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes with the supplied `className`.\n */\nfunction getElementsByClassName(className, nodes, recurse, limit) {\n if (recurse === void 0) { recurse = true; }\n if (limit === void 0) { limit = Infinity; }\n return (0, querying_js_1.filter)(getAttribCheck(\"class\", className), nodes, recurse, limit);\n}\n/**\n * Returns all nodes with the supplied `type`.\n *\n * @category Legacy Query Functions\n * @param type Element type to look for.\n * @param nodes Nodes to search through.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes with the supplied `type`.\n */\nfunction getElementsByTagType(type, nodes, recurse, limit) {\n if (recurse === void 0) { recurse = true; }\n if (limit === void 0) { limit = Infinity; }\n return (0, querying_js_1.filter)(Checks[\"tag_type\"](type), nodes, recurse, limit);\n}\n//# sourceMappingURL=legacy.js.map"],"names":["legacy","require$$0","require$$1"],"mappings":";;;;;;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAACA,gBAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAAA,gBAAA,CAAA,WAAmB,GAAG,WAAW;AACjC,CAAAA,gBAAA,CAAA,WAAmB,GAAG,WAAW;AACjC,CAAAA,gBAAA,CAAA,cAAsB,GAAG,cAAc;AACvC,CAAAA,gBAAA,CAAA,oBAA4B,GAAG,oBAAoB;AACnD,CAAAA,gBAAA,CAAA,sBAA8B,GAAG,sBAAsB;AACvD,CAAAA,gBAAA,CAAA,oBAA4B,GAAG,oBAAoB;CACnD,IAAI,YAAY,iBAAGC,eAAA,EAAqB;CACxC,IAAI,aAAa,iBAAGC,kBAAA,EAAwB;AAC5C;AACA;AACA;AACA,CAAA,IAAI,MAAM,GAAG;AACb,KAAI,QAAQ,EAAE,UAAU,IAAI,EAAE;AAC9B,SAAQ,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE;aAC5B,OAAO,UAAU,IAAI,EAAE,EAAE,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA,CAAE;AAC/F,SAAA;AACA,cAAa,IAAI,IAAI,KAAK,GAAG,EAAE;aACnB,OAAO,YAAY,CAAC,KAAK;AACrC,SAAA;SACQ,OAAO,UAAU,IAAI,EAAE,EAAE,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAA,CAAE;KAC9F,CAAK;AACL,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AAC,MAAM,EAAE,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC;AAC/F,CAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,oBAAoB,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE;KACvD,IAAI,OAAO,KAAK,MAAM,EAAE,EAAE,OAAO,GAAG,IAAI,CAAC,CAAA;KACzC,IAAI,KAAK,KAAK,MAAM,EAAE,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAA;KACzC,OAAO,IAAI,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC;AACrF,CAAA;AACA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,155 @@
1
+ 'use strict';
2
+
3
+ var manipulation = require('../../../_virtual/manipulation.js');
4
+
5
+ var hasRequiredManipulation;
6
+
7
+ function requireManipulation () {
8
+ if (hasRequiredManipulation) return manipulation.__exports;
9
+ hasRequiredManipulation = 1;
10
+ Object.defineProperty(manipulation.__exports, "__esModule", { value: true });
11
+ manipulation.__exports.removeElement = removeElement;
12
+ manipulation.__exports.replaceElement = replaceElement;
13
+ manipulation.__exports.appendChild = appendChild;
14
+ manipulation.__exports.append = append;
15
+ manipulation.__exports.prependChild = prependChild;
16
+ manipulation.__exports.prepend = prepend;
17
+ /**
18
+ * Remove an element from the dom
19
+ *
20
+ * @category Manipulation
21
+ * @param elem The element to be removed
22
+ */
23
+ function removeElement(elem) {
24
+ if (elem.prev)
25
+ elem.prev.next = elem.next;
26
+ if (elem.next)
27
+ elem.next.prev = elem.prev;
28
+ if (elem.parent) {
29
+ var childs = elem.parent.children;
30
+ var childsIndex = childs.lastIndexOf(elem);
31
+ if (childsIndex >= 0) {
32
+ childs.splice(childsIndex, 1);
33
+ }
34
+ }
35
+ elem.next = null;
36
+ elem.prev = null;
37
+ elem.parent = null;
38
+ }
39
+ /**
40
+ * Replace an element in the dom
41
+ *
42
+ * @category Manipulation
43
+ * @param elem The element to be replaced
44
+ * @param replacement The element to be added
45
+ */
46
+ function replaceElement(elem, replacement) {
47
+ var prev = (replacement.prev = elem.prev);
48
+ if (prev) {
49
+ prev.next = replacement;
50
+ }
51
+ var next = (replacement.next = elem.next);
52
+ if (next) {
53
+ next.prev = replacement;
54
+ }
55
+ var parent = (replacement.parent = elem.parent);
56
+ if (parent) {
57
+ var childs = parent.children;
58
+ childs[childs.lastIndexOf(elem)] = replacement;
59
+ elem.parent = null;
60
+ }
61
+ }
62
+ /**
63
+ * Append a child to an element.
64
+ *
65
+ * @category Manipulation
66
+ * @param parent The element to append to.
67
+ * @param child The element to be added as a child.
68
+ */
69
+ function appendChild(parent, child) {
70
+ removeElement(child);
71
+ child.next = null;
72
+ child.parent = parent;
73
+ if (parent.children.push(child) > 1) {
74
+ var sibling = parent.children[parent.children.length - 2];
75
+ sibling.next = child;
76
+ child.prev = sibling;
77
+ }
78
+ else {
79
+ child.prev = null;
80
+ }
81
+ }
82
+ /**
83
+ * Append an element after another.
84
+ *
85
+ * @category Manipulation
86
+ * @param elem The element to append after.
87
+ * @param next The element be added.
88
+ */
89
+ function append(elem, next) {
90
+ removeElement(next);
91
+ var parent = elem.parent;
92
+ var currNext = elem.next;
93
+ next.next = currNext;
94
+ next.prev = elem;
95
+ elem.next = next;
96
+ next.parent = parent;
97
+ if (currNext) {
98
+ currNext.prev = next;
99
+ if (parent) {
100
+ var childs = parent.children;
101
+ childs.splice(childs.lastIndexOf(currNext), 0, next);
102
+ }
103
+ }
104
+ else if (parent) {
105
+ parent.children.push(next);
106
+ }
107
+ }
108
+ /**
109
+ * Prepend a child to an element.
110
+ *
111
+ * @category Manipulation
112
+ * @param parent The element to prepend before.
113
+ * @param child The element to be added as a child.
114
+ */
115
+ function prependChild(parent, child) {
116
+ removeElement(child);
117
+ child.parent = parent;
118
+ child.prev = null;
119
+ if (parent.children.unshift(child) !== 1) {
120
+ var sibling = parent.children[1];
121
+ sibling.prev = child;
122
+ child.next = sibling;
123
+ }
124
+ else {
125
+ child.next = null;
126
+ }
127
+ }
128
+ /**
129
+ * Prepend an element before another.
130
+ *
131
+ * @category Manipulation
132
+ * @param elem The element to prepend before.
133
+ * @param prev The element be added.
134
+ */
135
+ function prepend(elem, prev) {
136
+ removeElement(prev);
137
+ var parent = elem.parent;
138
+ if (parent) {
139
+ var childs = parent.children;
140
+ childs.splice(childs.indexOf(elem), 0, prev);
141
+ }
142
+ if (elem.prev) {
143
+ elem.prev.next = prev;
144
+ }
145
+ prev.parent = parent;
146
+ prev.prev = elem.prev;
147
+ prev.next = elem;
148
+ elem.prev = prev;
149
+ }
150
+
151
+ return manipulation.__exports;
152
+ }
153
+
154
+ exports.__require = requireManipulation;
155
+ //# sourceMappingURL=manipulation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manipulation.js","sources":["../../../../../node_modules/domutils/lib/manipulation.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.removeElement = removeElement;\nexports.replaceElement = replaceElement;\nexports.appendChild = appendChild;\nexports.append = append;\nexports.prependChild = prependChild;\nexports.prepend = prepend;\n/**\n * Remove an element from the dom\n *\n * @category Manipulation\n * @param elem The element to be removed\n */\nfunction removeElement(elem) {\n if (elem.prev)\n elem.prev.next = elem.next;\n if (elem.next)\n elem.next.prev = elem.prev;\n if (elem.parent) {\n var childs = elem.parent.children;\n var childsIndex = childs.lastIndexOf(elem);\n if (childsIndex >= 0) {\n childs.splice(childsIndex, 1);\n }\n }\n elem.next = null;\n elem.prev = null;\n elem.parent = null;\n}\n/**\n * Replace an element in the dom\n *\n * @category Manipulation\n * @param elem The element to be replaced\n * @param replacement The element to be added\n */\nfunction replaceElement(elem, replacement) {\n var prev = (replacement.prev = elem.prev);\n if (prev) {\n prev.next = replacement;\n }\n var next = (replacement.next = elem.next);\n if (next) {\n next.prev = replacement;\n }\n var parent = (replacement.parent = elem.parent);\n if (parent) {\n var childs = parent.children;\n childs[childs.lastIndexOf(elem)] = replacement;\n elem.parent = null;\n }\n}\n/**\n * Append a child to an element.\n *\n * @category Manipulation\n * @param parent The element to append to.\n * @param child The element to be added as a child.\n */\nfunction appendChild(parent, child) {\n removeElement(child);\n child.next = null;\n child.parent = parent;\n if (parent.children.push(child) > 1) {\n var sibling = parent.children[parent.children.length - 2];\n sibling.next = child;\n child.prev = sibling;\n }\n else {\n child.prev = null;\n }\n}\n/**\n * Append an element after another.\n *\n * @category Manipulation\n * @param elem The element to append after.\n * @param next The element be added.\n */\nfunction append(elem, next) {\n removeElement(next);\n var parent = elem.parent;\n var currNext = elem.next;\n next.next = currNext;\n next.prev = elem;\n elem.next = next;\n next.parent = parent;\n if (currNext) {\n currNext.prev = next;\n if (parent) {\n var childs = parent.children;\n childs.splice(childs.lastIndexOf(currNext), 0, next);\n }\n }\n else if (parent) {\n parent.children.push(next);\n }\n}\n/**\n * Prepend a child to an element.\n *\n * @category Manipulation\n * @param parent The element to prepend before.\n * @param child The element to be added as a child.\n */\nfunction prependChild(parent, child) {\n removeElement(child);\n child.parent = parent;\n child.prev = null;\n if (parent.children.unshift(child) !== 1) {\n var sibling = parent.children[1];\n sibling.prev = child;\n child.next = sibling;\n }\n else {\n child.next = null;\n }\n}\n/**\n * Prepend an element before another.\n *\n * @category Manipulation\n * @param elem The element to prepend before.\n * @param prev The element be added.\n */\nfunction prepend(elem, prev) {\n removeElement(prev);\n var parent = elem.parent;\n if (parent) {\n var childs = parent.children;\n childs.splice(childs.indexOf(elem), 0, prev);\n }\n if (elem.prev) {\n elem.prev.next = prev;\n }\n prev.parent = parent;\n prev.prev = elem.prev;\n prev.next = elem;\n elem.prev = prev;\n}\n//# sourceMappingURL=manipulation.js.map"],"names":["manipulation"],"mappings":";;;;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAACA,sBAAO,EAAE,YAAY,EA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,IAAI,MAAM,GAAG,MAAM,CAAC,QAAQ;AACpC,SAAQ,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC;AACpD,KAAA;AACA,KAAI,IAAI,IAAI,CAAC,IAAI,EAAE;AACnB,SAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI;AAC7B,KAAA;AACA,KAAI,IAAI,CAAC,MAAM,GAAG,MAAM;AACxB,KAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI;AACzB,KAAI,IAAI,CAAC,IAAI,GAAG,IAAI;AACpB,KAAI,IAAI,CAAC,IAAI,GAAG,IAAI;AACpB,CAAA;AACA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,169 @@
1
+ 'use strict';
2
+
3
+ var querying = require('../../../_virtual/querying.js');
4
+ var index = require('../../domhandler/lib/index.js');
5
+
6
+ var hasRequiredQuerying;
7
+
8
+ function requireQuerying () {
9
+ if (hasRequiredQuerying) return querying.__exports;
10
+ hasRequiredQuerying = 1;
11
+ Object.defineProperty(querying.__exports, "__esModule", { value: true });
12
+ querying.__exports.filter = filter;
13
+ querying.__exports.find = find;
14
+ querying.__exports.findOneChild = findOneChild;
15
+ querying.__exports.findOne = findOne;
16
+ querying.__exports.existsOne = existsOne;
17
+ querying.__exports.findAll = findAll;
18
+ var domhandler_1 = /*@__PURE__*/ index.__require();
19
+ /**
20
+ * Search a node and its children for nodes passing a test function. If `node` is not an array, it will be wrapped in one.
21
+ *
22
+ * @category Querying
23
+ * @param test Function to test nodes on.
24
+ * @param node Node to search. Will be included in the result set if it matches.
25
+ * @param recurse Also consider child nodes.
26
+ * @param limit Maximum number of nodes to return.
27
+ * @returns All nodes passing `test`.
28
+ */
29
+ function filter(test, node, recurse, limit) {
30
+ if (recurse === void 0) { recurse = true; }
31
+ if (limit === void 0) { limit = Infinity; }
32
+ return find(test, Array.isArray(node) ? node : [node], recurse, limit);
33
+ }
34
+ /**
35
+ * Search an array of nodes and their children for nodes passing a test function.
36
+ *
37
+ * @category Querying
38
+ * @param test Function to test nodes on.
39
+ * @param nodes Array of nodes to search.
40
+ * @param recurse Also consider child nodes.
41
+ * @param limit Maximum number of nodes to return.
42
+ * @returns All nodes passing `test`.
43
+ */
44
+ function find(test, nodes, recurse, limit) {
45
+ var result = [];
46
+ /** Stack of the arrays we are looking at. */
47
+ var nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];
48
+ /** Stack of the indices within the arrays. */
49
+ var indexStack = [0];
50
+ for (;;) {
51
+ // First, check if the current array has any more elements to look at.
52
+ if (indexStack[0] >= nodeStack[0].length) {
53
+ // If we have no more arrays to look at, we are done.
54
+ if (indexStack.length === 1) {
55
+ return result;
56
+ }
57
+ // Otherwise, remove the current array from the stack.
58
+ nodeStack.shift();
59
+ indexStack.shift();
60
+ // Loop back to the start to continue with the next array.
61
+ continue;
62
+ }
63
+ var elem = nodeStack[0][indexStack[0]++];
64
+ if (test(elem)) {
65
+ result.push(elem);
66
+ if (--limit <= 0)
67
+ return result;
68
+ }
69
+ if (recurse && (0, domhandler_1.hasChildren)(elem) && elem.children.length > 0) {
70
+ /*
71
+ * Add the children to the stack. We are depth-first, so this is
72
+ * the next array we look at.
73
+ */
74
+ indexStack.unshift(0);
75
+ nodeStack.unshift(elem.children);
76
+ }
77
+ }
78
+ }
79
+ /**
80
+ * Finds the first element inside of an array that matches a test function. This is an alias for `Array.prototype.find`.
81
+ *
82
+ * @category Querying
83
+ * @param test Function to test nodes on.
84
+ * @param nodes Array of nodes to search.
85
+ * @returns The first node in the array that passes `test`.
86
+ * @deprecated Use `Array.prototype.find` directly.
87
+ */
88
+ function findOneChild(test, nodes) {
89
+ return nodes.find(test);
90
+ }
91
+ /**
92
+ * Finds one element in a tree that passes a test.
93
+ *
94
+ * @category Querying
95
+ * @param test Function to test nodes on.
96
+ * @param nodes Node or array of nodes to search.
97
+ * @param recurse Also consider child nodes.
98
+ * @returns The first node that passes `test`.
99
+ */
100
+ function findOne(test, nodes, recurse) {
101
+ if (recurse === void 0) { recurse = true; }
102
+ var searchedNodes = Array.isArray(nodes) ? nodes : [nodes];
103
+ for (var i = 0; i < searchedNodes.length; i++) {
104
+ var node = searchedNodes[i];
105
+ if ((0, domhandler_1.isTag)(node) && test(node)) {
106
+ return node;
107
+ }
108
+ if (recurse && (0, domhandler_1.hasChildren)(node) && node.children.length > 0) {
109
+ var found = findOne(test, node.children, true);
110
+ if (found)
111
+ return found;
112
+ }
113
+ }
114
+ return null;
115
+ }
116
+ /**
117
+ * Checks if a tree of nodes contains at least one node passing a test.
118
+ *
119
+ * @category Querying
120
+ * @param test Function to test nodes on.
121
+ * @param nodes Array of nodes to search.
122
+ * @returns Whether a tree of nodes contains at least one node passing the test.
123
+ */
124
+ function existsOne(test, nodes) {
125
+ return (Array.isArray(nodes) ? nodes : [nodes]).some(function (node) {
126
+ return ((0, domhandler_1.isTag)(node) && test(node)) ||
127
+ ((0, domhandler_1.hasChildren)(node) && existsOne(test, node.children));
128
+ });
129
+ }
130
+ /**
131
+ * Search an array of nodes and their children for elements passing a test function.
132
+ *
133
+ * Same as `find`, but limited to elements and with less options, leading to reduced complexity.
134
+ *
135
+ * @category Querying
136
+ * @param test Function to test nodes on.
137
+ * @param nodes Array of nodes to search.
138
+ * @returns All nodes passing `test`.
139
+ */
140
+ function findAll(test, nodes) {
141
+ var result = [];
142
+ var nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];
143
+ var indexStack = [0];
144
+ for (;;) {
145
+ if (indexStack[0] >= nodeStack[0].length) {
146
+ if (nodeStack.length === 1) {
147
+ return result;
148
+ }
149
+ // Otherwise, remove the current array from the stack.
150
+ nodeStack.shift();
151
+ indexStack.shift();
152
+ // Loop back to the start to continue with the next array.
153
+ continue;
154
+ }
155
+ var elem = nodeStack[0][indexStack[0]++];
156
+ if ((0, domhandler_1.isTag)(elem) && test(elem))
157
+ result.push(elem);
158
+ if ((0, domhandler_1.hasChildren)(elem) && elem.children.length > 0) {
159
+ indexStack.unshift(0);
160
+ nodeStack.unshift(elem.children);
161
+ }
162
+ }
163
+ }
164
+
165
+ return querying.__exports;
166
+ }
167
+
168
+ exports.__require = requireQuerying;
169
+ //# sourceMappingURL=querying.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"querying.js","sources":["../../../../../node_modules/domutils/lib/querying.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.filter = filter;\nexports.find = find;\nexports.findOneChild = findOneChild;\nexports.findOne = findOne;\nexports.existsOne = existsOne;\nexports.findAll = findAll;\nvar domhandler_1 = require(\"domhandler\");\n/**\n * Search a node and its children for nodes passing a test function. If `node` is not an array, it will be wrapped in one.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param node Node to search. Will be included in the result set if it matches.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes passing `test`.\n */\nfunction filter(test, node, recurse, limit) {\n if (recurse === void 0) { recurse = true; }\n if (limit === void 0) { limit = Infinity; }\n return find(test, Array.isArray(node) ? node : [node], recurse, limit);\n}\n/**\n * Search an array of nodes and their children for nodes passing a test function.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Array of nodes to search.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes passing `test`.\n */\nfunction find(test, nodes, recurse, limit) {\n var result = [];\n /** Stack of the arrays we are looking at. */\n var nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];\n /** Stack of the indices within the arrays. */\n var indexStack = [0];\n for (;;) {\n // First, check if the current array has any more elements to look at.\n if (indexStack[0] >= nodeStack[0].length) {\n // If we have no more arrays to look at, we are done.\n if (indexStack.length === 1) {\n return result;\n }\n // Otherwise, remove the current array from the stack.\n nodeStack.shift();\n indexStack.shift();\n // Loop back to the start to continue with the next array.\n continue;\n }\n var elem = nodeStack[0][indexStack[0]++];\n if (test(elem)) {\n result.push(elem);\n if (--limit <= 0)\n return result;\n }\n if (recurse && (0, domhandler_1.hasChildren)(elem) && elem.children.length > 0) {\n /*\n * Add the children to the stack. We are depth-first, so this is\n * the next array we look at.\n */\n indexStack.unshift(0);\n nodeStack.unshift(elem.children);\n }\n }\n}\n/**\n * Finds the first element inside of an array that matches a test function. This is an alias for `Array.prototype.find`.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Array of nodes to search.\n * @returns The first node in the array that passes `test`.\n * @deprecated Use `Array.prototype.find` directly.\n */\nfunction findOneChild(test, nodes) {\n return nodes.find(test);\n}\n/**\n * Finds one element in a tree that passes a test.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Node or array of nodes to search.\n * @param recurse Also consider child nodes.\n * @returns The first node that passes `test`.\n */\nfunction findOne(test, nodes, recurse) {\n if (recurse === void 0) { recurse = true; }\n var searchedNodes = Array.isArray(nodes) ? nodes : [nodes];\n for (var i = 0; i < searchedNodes.length; i++) {\n var node = searchedNodes[i];\n if ((0, domhandler_1.isTag)(node) && test(node)) {\n return node;\n }\n if (recurse && (0, domhandler_1.hasChildren)(node) && node.children.length > 0) {\n var found = findOne(test, node.children, true);\n if (found)\n return found;\n }\n }\n return null;\n}\n/**\n * Checks if a tree of nodes contains at least one node passing a test.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Array of nodes to search.\n * @returns Whether a tree of nodes contains at least one node passing the test.\n */\nfunction existsOne(test, nodes) {\n return (Array.isArray(nodes) ? nodes : [nodes]).some(function (node) {\n return ((0, domhandler_1.isTag)(node) && test(node)) ||\n ((0, domhandler_1.hasChildren)(node) && existsOne(test, node.children));\n });\n}\n/**\n * Search an array of nodes and their children for elements passing a test function.\n *\n * Same as `find`, but limited to elements and with less options, leading to reduced complexity.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Array of nodes to search.\n * @returns All nodes passing `test`.\n */\nfunction findAll(test, nodes) {\n var result = [];\n var nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];\n var indexStack = [0];\n for (;;) {\n if (indexStack[0] >= nodeStack[0].length) {\n if (nodeStack.length === 1) {\n return result;\n }\n // Otherwise, remove the current array from the stack.\n nodeStack.shift();\n indexStack.shift();\n // Loop back to the start to continue with the next array.\n continue;\n }\n var elem = nodeStack[0][indexStack[0]++];\n if ((0, domhandler_1.isTag)(elem) && test(elem))\n result.push(elem);\n if ((0, domhandler_1.hasChildren)(elem) && elem.children.length > 0) {\n indexStack.unshift(0);\n nodeStack.unshift(elem.children);\n }\n }\n}\n//# sourceMappingURL=querying.js.map"],"names":["querying","require$$0"],"mappings":";;;;;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAACA,kBAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAAA,kBAAA,CAAA,MAAc,GAAG,MAAM;AACvB,CAAAA,kBAAA,CAAA,IAAY,GAAG,IAAI;AACnB,CAAAA,kBAAA,CAAA,YAAoB,GAAG,YAAY;AACnC,CAAAA,kBAAA,CAAA,OAAe,GAAG,OAAO;AACzB,CAAAA,kBAAA,CAAA,SAAiB,GAAG,SAAS;AAC7B,CAAAA,kBAAA,CAAA,OAAe,GAAG,OAAO;CACzB,IAAI,YAAY,iBAAGC,eAAA,EAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;KACxC,IAAI,OAAO,KAAK,MAAM,EAAE,EAAE,OAAO,GAAG,IAAI,CAAC,CAAA;KACzC,IAAI,KAAK,KAAK,MAAM,EAAE,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAA;KACzC,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC;AAC1E,CAAA;AACA;AACA;AACA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AACjC,aAAY,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC;AAC5C,SAAA;AACA,KAAA;AACA,CAAA;AACA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,107 @@
1
+ 'use strict';
2
+
3
+ var stringify = require('../../../_virtual/stringify.js');
4
+ var index$1 = require('../../domhandler/lib/index.js');
5
+ var index = require('../../dom-serializer/lib/index.js');
6
+ var index$2 = require('../../domelementtype/lib/index.js');
7
+
8
+ var hasRequiredStringify;
9
+
10
+ function requireStringify () {
11
+ if (hasRequiredStringify) return stringify.__exports;
12
+ hasRequiredStringify = 1;
13
+ var __importDefault = (stringify.__exports && stringify.__exports.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(stringify.__exports, "__esModule", { value: true });
17
+ stringify.__exports.getOuterHTML = getOuterHTML;
18
+ stringify.__exports.getInnerHTML = getInnerHTML;
19
+ stringify.__exports.getText = getText;
20
+ stringify.__exports.textContent = textContent;
21
+ stringify.__exports.innerText = innerText;
22
+ var domhandler_1 = /*@__PURE__*/ index$1.__require();
23
+ var dom_serializer_1 = __importDefault(/*@__PURE__*/ index.__require());
24
+ var domelementtype_1 = /*@__PURE__*/ index$2.__require();
25
+ /**
26
+ * @category Stringify
27
+ * @deprecated Use the `dom-serializer` module directly.
28
+ * @param node Node to get the outer HTML of.
29
+ * @param options Options for serialization.
30
+ * @returns `node`'s outer HTML.
31
+ */
32
+ function getOuterHTML(node, options) {
33
+ return (0, dom_serializer_1.default)(node, options);
34
+ }
35
+ /**
36
+ * @category Stringify
37
+ * @deprecated Use the `dom-serializer` module directly.
38
+ * @param node Node to get the inner HTML of.
39
+ * @param options Options for serialization.
40
+ * @returns `node`'s inner HTML.
41
+ */
42
+ function getInnerHTML(node, options) {
43
+ return (0, domhandler_1.hasChildren)(node)
44
+ ? node.children.map(function (node) { return getOuterHTML(node, options); }).join("")
45
+ : "";
46
+ }
47
+ /**
48
+ * Get a node's inner text. Same as `textContent`, but inserts newlines for `<br>` tags. Ignores comments.
49
+ *
50
+ * @category Stringify
51
+ * @deprecated Use `textContent` instead.
52
+ * @param node Node to get the inner text of.
53
+ * @returns `node`'s inner text.
54
+ */
55
+ function getText(node) {
56
+ if (Array.isArray(node))
57
+ return node.map(getText).join("");
58
+ if ((0, domhandler_1.isTag)(node))
59
+ return node.name === "br" ? "\n" : getText(node.children);
60
+ if ((0, domhandler_1.isCDATA)(node))
61
+ return getText(node.children);
62
+ if ((0, domhandler_1.isText)(node))
63
+ return node.data;
64
+ return "";
65
+ }
66
+ /**
67
+ * Get a node's text content. Ignores comments.
68
+ *
69
+ * @category Stringify
70
+ * @param node Node to get the text content of.
71
+ * @returns `node`'s text content.
72
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent}
73
+ */
74
+ function textContent(node) {
75
+ if (Array.isArray(node))
76
+ return node.map(textContent).join("");
77
+ if ((0, domhandler_1.hasChildren)(node) && !(0, domhandler_1.isComment)(node)) {
78
+ return textContent(node.children);
79
+ }
80
+ if ((0, domhandler_1.isText)(node))
81
+ return node.data;
82
+ return "";
83
+ }
84
+ /**
85
+ * Get a node's inner text, ignoring `<script>` and `<style>` tags. Ignores comments.
86
+ *
87
+ * @category Stringify
88
+ * @param node Node to get the inner text of.
89
+ * @returns `node`'s inner text.
90
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/innerText}
91
+ */
92
+ function innerText(node) {
93
+ if (Array.isArray(node))
94
+ return node.map(innerText).join("");
95
+ if ((0, domhandler_1.hasChildren)(node) && (node.type === domelementtype_1.ElementType.Tag || (0, domhandler_1.isCDATA)(node))) {
96
+ return innerText(node.children);
97
+ }
98
+ if ((0, domhandler_1.isText)(node))
99
+ return node.data;
100
+ return "";
101
+ }
102
+
103
+ return stringify.__exports;
104
+ }
105
+
106
+ exports.__require = requireStringify;
107
+ //# sourceMappingURL=stringify.js.map