@zipify/wysiwyg 1.2.1-0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1151) hide show
  1. package/.github/actions/lint-css/action.yaml +1 -3
  2. package/dist/cli.js +3 -3
  3. package/dist/wysiwyg.css +24 -25
  4. package/dist/wysiwyg.mjs +626 -601
  5. package/jest.config.js +3 -0
  6. package/lib/components/base/Modal.vue +21 -2
  7. package/lib/components/base/__tests__/Modal.test.js +1 -0
  8. package/lib/components/toolbar/controls/link/LinkControl.vue +18 -7
  9. package/lib/components/toolbar/controls/link/LinkControlHeader.vue +1 -1
  10. package/lib/components/toolbar/controls/link/__tests__/LinkControl.test.js +7 -7
  11. package/lib/components/toolbar/controls/link/composables/useLink.js +3 -1
  12. package/lib/composables/__tests__/__snapshots__/useEditor.test.js.snap +1 -1
  13. package/lib/composables/useEditor.js +4 -3
  14. package/lib/extensions/FontFamily.js +2 -3
  15. package/lib/extensions/FontWeight.js +2 -0
  16. package/lib/extensions/StylePreset.js +33 -3
  17. package/lib/extensions/TextDecoration.js +1 -6
  18. package/lib/extensions/__tests__/FontFamily.test.js +3 -1
  19. package/lib/extensions/__tests__/FontWeight.test.js +8 -0
  20. package/lib/extensions/__tests__/StylePreset.test.js +52 -2
  21. package/lib/extensions/__tests__/TextDecoration.test.js +2 -62
  22. package/lib/extensions/__tests__/__snapshots__/Alignment.test.js.snap +2 -2
  23. package/lib/extensions/__tests__/__snapshots__/BackgroundColor.test.js.snap +1 -1
  24. package/lib/extensions/__tests__/__snapshots__/FontColor.test.js.snap +1 -1
  25. package/lib/extensions/__tests__/__snapshots__/FontFamily.test.js.snap +1 -1
  26. package/lib/extensions/__tests__/__snapshots__/FontSize.test.js.snap +2 -2
  27. package/lib/extensions/__tests__/__snapshots__/FontStyle.test.js.snap +1 -1
  28. package/lib/extensions/__tests__/__snapshots__/FontWeight.test.js.snap +26 -1
  29. package/lib/extensions/__tests__/__snapshots__/LineHeight.test.js.snap +2 -2
  30. package/lib/extensions/__tests__/__snapshots__/Margin.test.js.snap +2 -2
  31. package/lib/extensions/__tests__/__snapshots__/StylePreset.test.js.snap +22 -2
  32. package/lib/extensions/__tests__/__snapshots__/TextDecoration.test.js.snap +3 -3
  33. package/lib/extensions/index.js +9 -4
  34. package/package.json +23 -28
  35. package/config/build/lambda.config.js +0 -39
  36. package/dist/lambda-to-json.zip +0 -0
  37. package/lib/components/toolbar/controls/link/LinkControlApply.vue +0 -35
  38. package/lib/entry-lambda-to-json.js +0 -8
  39. package/node_modules_lambda/.bin/acorn +0 -4
  40. package/node_modules_lambda/.bin/escodegen +0 -77
  41. package/node_modules_lambda/.bin/esgenerate +0 -64
  42. package/node_modules_lambda/.bin/esparse +0 -139
  43. package/node_modules_lambda/.bin/esvalidate +0 -236
  44. package/node_modules_lambda/.package-lock.json +0 -602
  45. package/node_modules_lambda/@tootallnate/once/LICENSE +0 -21
  46. package/node_modules_lambda/@tootallnate/once/README.md +0 -93
  47. package/node_modules_lambda/@tootallnate/once/dist/index.d.ts +0 -7
  48. package/node_modules_lambda/@tootallnate/once/dist/index.js +0 -24
  49. package/node_modules_lambda/@tootallnate/once/dist/index.js.map +0 -1
  50. package/node_modules_lambda/@tootallnate/once/dist/overloaded-parameters.d.ts +0 -231
  51. package/node_modules_lambda/@tootallnate/once/dist/overloaded-parameters.js +0 -3
  52. package/node_modules_lambda/@tootallnate/once/dist/overloaded-parameters.js.map +0 -1
  53. package/node_modules_lambda/@tootallnate/once/dist/types.d.ts +0 -17
  54. package/node_modules_lambda/@tootallnate/once/dist/types.js +0 -3
  55. package/node_modules_lambda/@tootallnate/once/dist/types.js.map +0 -1
  56. package/node_modules_lambda/@tootallnate/once/package.json +0 -52
  57. package/node_modules_lambda/abab/LICENSE.md +0 -13
  58. package/node_modules_lambda/abab/README.md +0 -51
  59. package/node_modules_lambda/abab/index.d.ts +0 -2
  60. package/node_modules_lambda/abab/index.js +0 -9
  61. package/node_modules_lambda/abab/lib/atob.js +0 -101
  62. package/node_modules_lambda/abab/lib/btoa.js +0 -62
  63. package/node_modules_lambda/abab/package.json +0 -42
  64. package/node_modules_lambda/acorn/CHANGELOG.md +0 -798
  65. package/node_modules_lambda/acorn/LICENSE +0 -21
  66. package/node_modules_lambda/acorn/README.md +0 -273
  67. package/node_modules_lambda/acorn/bin/acorn +0 -4
  68. package/node_modules_lambda/acorn/dist/acorn.d.ts +0 -252
  69. package/node_modules_lambda/acorn/dist/acorn.js +0 -5608
  70. package/node_modules_lambda/acorn/dist/acorn.mjs +0 -5577
  71. package/node_modules_lambda/acorn/dist/acorn.mjs.d.ts +0 -2
  72. package/node_modules_lambda/acorn/dist/bin.js +0 -91
  73. package/node_modules_lambda/acorn/package.json +0 -50
  74. package/node_modules_lambda/acorn-globals/LICENSE +0 -19
  75. package/node_modules_lambda/acorn-globals/README.md +0 -81
  76. package/node_modules_lambda/acorn-globals/index.js +0 -179
  77. package/node_modules_lambda/acorn-globals/node_modules/.bin/acorn +0 -4
  78. package/node_modules_lambda/acorn-globals/node_modules/acorn/CHANGELOG.md +0 -620
  79. package/node_modules_lambda/acorn-globals/node_modules/acorn/LICENSE +0 -21
  80. package/node_modules_lambda/acorn-globals/node_modules/acorn/README.md +0 -269
  81. package/node_modules_lambda/acorn-globals/node_modules/acorn/bin/acorn +0 -4
  82. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.d.ts +0 -209
  83. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.js +0 -5186
  84. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.js.map +0 -1
  85. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs +0 -5155
  86. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs.d.ts +0 -2
  87. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/acorn.mjs.map +0 -1
  88. package/node_modules_lambda/acorn-globals/node_modules/acorn/dist/bin.js +0 -64
  89. package/node_modules_lambda/acorn-globals/node_modules/acorn/package.json +0 -35
  90. package/node_modules_lambda/acorn-globals/package.json +0 -35
  91. package/node_modules_lambda/acorn-walk/CHANGELOG.md +0 -131
  92. package/node_modules_lambda/acorn-walk/LICENSE +0 -19
  93. package/node_modules_lambda/acorn-walk/README.md +0 -126
  94. package/node_modules_lambda/acorn-walk/dist/walk.d.ts +0 -112
  95. package/node_modules_lambda/acorn-walk/dist/walk.js +0 -463
  96. package/node_modules_lambda/acorn-walk/dist/walk.js.map +0 -1
  97. package/node_modules_lambda/acorn-walk/dist/walk.mjs +0 -443
  98. package/node_modules_lambda/acorn-walk/dist/walk.mjs.map +0 -1
  99. package/node_modules_lambda/acorn-walk/package.json +0 -34
  100. package/node_modules_lambda/agent-base/README.md +0 -145
  101. package/node_modules_lambda/agent-base/dist/src/index.d.ts +0 -78
  102. package/node_modules_lambda/agent-base/dist/src/index.js +0 -203
  103. package/node_modules_lambda/agent-base/dist/src/index.js.map +0 -1
  104. package/node_modules_lambda/agent-base/dist/src/promisify.d.ts +0 -4
  105. package/node_modules_lambda/agent-base/dist/src/promisify.js +0 -18
  106. package/node_modules_lambda/agent-base/dist/src/promisify.js.map +0 -1
  107. package/node_modules_lambda/agent-base/package.json +0 -64
  108. package/node_modules_lambda/agent-base/src/index.ts +0 -345
  109. package/node_modules_lambda/agent-base/src/promisify.ts +0 -33
  110. package/node_modules_lambda/asynckit/LICENSE +0 -21
  111. package/node_modules_lambda/asynckit/README.md +0 -233
  112. package/node_modules_lambda/asynckit/bench.js +0 -76
  113. package/node_modules_lambda/asynckit/index.js +0 -6
  114. package/node_modules_lambda/asynckit/lib/abort.js +0 -29
  115. package/node_modules_lambda/asynckit/lib/async.js +0 -34
  116. package/node_modules_lambda/asynckit/lib/defer.js +0 -26
  117. package/node_modules_lambda/asynckit/lib/iterate.js +0 -75
  118. package/node_modules_lambda/asynckit/lib/readable_asynckit.js +0 -91
  119. package/node_modules_lambda/asynckit/lib/readable_parallel.js +0 -25
  120. package/node_modules_lambda/asynckit/lib/readable_serial.js +0 -25
  121. package/node_modules_lambda/asynckit/lib/readable_serial_ordered.js +0 -29
  122. package/node_modules_lambda/asynckit/lib/state.js +0 -37
  123. package/node_modules_lambda/asynckit/lib/streamify.js +0 -141
  124. package/node_modules_lambda/asynckit/lib/terminator.js +0 -29
  125. package/node_modules_lambda/asynckit/package.json +0 -63
  126. package/node_modules_lambda/asynckit/parallel.js +0 -43
  127. package/node_modules_lambda/asynckit/serial.js +0 -17
  128. package/node_modules_lambda/asynckit/serialOrdered.js +0 -75
  129. package/node_modules_lambda/asynckit/stream.js +0 -21
  130. package/node_modules_lambda/browser-process-hrtime/LICENSE +0 -9
  131. package/node_modules_lambda/browser-process-hrtime/README.md +0 -27
  132. package/node_modules_lambda/browser-process-hrtime/index.d.ts +0 -4
  133. package/node_modules_lambda/browser-process-hrtime/index.js +0 -28
  134. package/node_modules_lambda/browser-process-hrtime/package.json +0 -15
  135. package/node_modules_lambda/combined-stream/License +0 -19
  136. package/node_modules_lambda/combined-stream/Readme.md +0 -138
  137. package/node_modules_lambda/combined-stream/lib/combined_stream.js +0 -208
  138. package/node_modules_lambda/combined-stream/package.json +0 -25
  139. package/node_modules_lambda/combined-stream/yarn.lock +0 -17
  140. package/node_modules_lambda/cssom/LICENSE.txt +0 -20
  141. package/node_modules_lambda/cssom/README.mdown +0 -67
  142. package/node_modules_lambda/cssom/lib/CSSConditionRule.js +0 -25
  143. package/node_modules_lambda/cssom/lib/CSSDocumentRule.js +0 -39
  144. package/node_modules_lambda/cssom/lib/CSSFontFaceRule.js +0 -36
  145. package/node_modules_lambda/cssom/lib/CSSGroupingRule.js +0 -68
  146. package/node_modules_lambda/cssom/lib/CSSHostRule.js +0 -37
  147. package/node_modules_lambda/cssom/lib/CSSImportRule.js +0 -132
  148. package/node_modules_lambda/cssom/lib/CSSKeyframeRule.js +0 -37
  149. package/node_modules_lambda/cssom/lib/CSSKeyframesRule.js +0 -39
  150. package/node_modules_lambda/cssom/lib/CSSMediaRule.js +0 -53
  151. package/node_modules_lambda/cssom/lib/CSSOM.js +0 -3
  152. package/node_modules_lambda/cssom/lib/CSSRule.js +0 -43
  153. package/node_modules_lambda/cssom/lib/CSSStyleDeclaration.js +0 -148
  154. package/node_modules_lambda/cssom/lib/CSSStyleRule.js +0 -190
  155. package/node_modules_lambda/cssom/lib/CSSStyleSheet.js +0 -88
  156. package/node_modules_lambda/cssom/lib/CSSSupportsRule.js +0 -36
  157. package/node_modules_lambda/cssom/lib/CSSValue.js +0 -43
  158. package/node_modules_lambda/cssom/lib/CSSValueExpression.js +0 -344
  159. package/node_modules_lambda/cssom/lib/MatcherList.js +0 -62
  160. package/node_modules_lambda/cssom/lib/MediaList.js +0 -61
  161. package/node_modules_lambda/cssom/lib/StyleSheet.js +0 -17
  162. package/node_modules_lambda/cssom/lib/clone.js +0 -74
  163. package/node_modules_lambda/cssom/lib/index.js +0 -23
  164. package/node_modules_lambda/cssom/lib/parse.js +0 -465
  165. package/node_modules_lambda/cssom/package.json +0 -18
  166. package/node_modules_lambda/cssstyle/LICENSE +0 -20
  167. package/node_modules_lambda/cssstyle/README.md +0 -15
  168. package/node_modules_lambda/cssstyle/lib/CSSStyleDeclaration.js +0 -260
  169. package/node_modules_lambda/cssstyle/lib/CSSStyleDeclaration.test.js +0 -556
  170. package/node_modules_lambda/cssstyle/lib/allExtraProperties.js +0 -67
  171. package/node_modules_lambda/cssstyle/lib/allProperties.js +0 -462
  172. package/node_modules_lambda/cssstyle/lib/allWebkitProperties.js +0 -194
  173. package/node_modules_lambda/cssstyle/lib/constants.js +0 -6
  174. package/node_modules_lambda/cssstyle/lib/implementedProperties.js +0 -90
  175. package/node_modules_lambda/cssstyle/lib/named_colors.json +0 -152
  176. package/node_modules_lambda/cssstyle/lib/parsers.js +0 -722
  177. package/node_modules_lambda/cssstyle/lib/parsers.test.js +0 -139
  178. package/node_modules_lambda/cssstyle/lib/properties/azimuth.js +0 -67
  179. package/node_modules_lambda/cssstyle/lib/properties/background.js +0 -19
  180. package/node_modules_lambda/cssstyle/lib/properties/backgroundAttachment.js +0 -24
  181. package/node_modules_lambda/cssstyle/lib/properties/backgroundColor.js +0 -36
  182. package/node_modules_lambda/cssstyle/lib/properties/backgroundImage.js +0 -32
  183. package/node_modules_lambda/cssstyle/lib/properties/backgroundPosition.js +0 -58
  184. package/node_modules_lambda/cssstyle/lib/properties/backgroundRepeat.js +0 -32
  185. package/node_modules_lambda/cssstyle/lib/properties/border.js +0 -33
  186. package/node_modules_lambda/cssstyle/lib/properties/borderBottom.js +0 -17
  187. package/node_modules_lambda/cssstyle/lib/properties/borderBottomColor.js +0 -16
  188. package/node_modules_lambda/cssstyle/lib/properties/borderBottomStyle.js +0 -21
  189. package/node_modules_lambda/cssstyle/lib/properties/borderBottomWidth.js +0 -16
  190. package/node_modules_lambda/cssstyle/lib/properties/borderCollapse.js +0 -26
  191. package/node_modules_lambda/cssstyle/lib/properties/borderColor.js +0 -30
  192. package/node_modules_lambda/cssstyle/lib/properties/borderLeft.js +0 -17
  193. package/node_modules_lambda/cssstyle/lib/properties/borderLeftColor.js +0 -16
  194. package/node_modules_lambda/cssstyle/lib/properties/borderLeftStyle.js +0 -21
  195. package/node_modules_lambda/cssstyle/lib/properties/borderLeftWidth.js +0 -16
  196. package/node_modules_lambda/cssstyle/lib/properties/borderRight.js +0 -17
  197. package/node_modules_lambda/cssstyle/lib/properties/borderRightColor.js +0 -16
  198. package/node_modules_lambda/cssstyle/lib/properties/borderRightStyle.js +0 -21
  199. package/node_modules_lambda/cssstyle/lib/properties/borderRightWidth.js +0 -16
  200. package/node_modules_lambda/cssstyle/lib/properties/borderSpacing.js +0 -41
  201. package/node_modules_lambda/cssstyle/lib/properties/borderStyle.js +0 -38
  202. package/node_modules_lambda/cssstyle/lib/properties/borderTop.js +0 -17
  203. package/node_modules_lambda/cssstyle/lib/properties/borderTopColor.js +0 -16
  204. package/node_modules_lambda/cssstyle/lib/properties/borderTopStyle.js +0 -21
  205. package/node_modules_lambda/cssstyle/lib/properties/borderTopWidth.js +0 -17
  206. package/node_modules_lambda/cssstyle/lib/properties/borderWidth.js +0 -46
  207. package/node_modules_lambda/cssstyle/lib/properties/bottom.js +0 -14
  208. package/node_modules_lambda/cssstyle/lib/properties/clear.js +0 -16
  209. package/node_modules_lambda/cssstyle/lib/properties/clip.js +0 -47
  210. package/node_modules_lambda/cssstyle/lib/properties/color.js +0 -14
  211. package/node_modules_lambda/cssstyle/lib/properties/cssFloat.js +0 -12
  212. package/node_modules_lambda/cssstyle/lib/properties/flex.js +0 -45
  213. package/node_modules_lambda/cssstyle/lib/properties/flexBasis.js +0 -28
  214. package/node_modules_lambda/cssstyle/lib/properties/flexGrow.js +0 -19
  215. package/node_modules_lambda/cssstyle/lib/properties/flexShrink.js +0 -19
  216. package/node_modules_lambda/cssstyle/lib/properties/float.js +0 -12
  217. package/node_modules_lambda/cssstyle/lib/properties/floodColor.js +0 -14
  218. package/node_modules_lambda/cssstyle/lib/properties/font.js +0 -43
  219. package/node_modules_lambda/cssstyle/lib/properties/fontFamily.js +0 -33
  220. package/node_modules_lambda/cssstyle/lib/properties/fontSize.js +0 -38
  221. package/node_modules_lambda/cssstyle/lib/properties/fontStyle.js +0 -18
  222. package/node_modules_lambda/cssstyle/lib/properties/fontVariant.js +0 -18
  223. package/node_modules_lambda/cssstyle/lib/properties/fontWeight.js +0 -33
  224. package/node_modules_lambda/cssstyle/lib/properties/height.js +0 -24
  225. package/node_modules_lambda/cssstyle/lib/properties/left.js +0 -14
  226. package/node_modules_lambda/cssstyle/lib/properties/lightingColor.js +0 -14
  227. package/node_modules_lambda/cssstyle/lib/properties/lineHeight.js +0 -26
  228. package/node_modules_lambda/cssstyle/lib/properties/margin.js +0 -68
  229. package/node_modules_lambda/cssstyle/lib/properties/marginBottom.js +0 -13
  230. package/node_modules_lambda/cssstyle/lib/properties/marginLeft.js +0 -13
  231. package/node_modules_lambda/cssstyle/lib/properties/marginRight.js +0 -13
  232. package/node_modules_lambda/cssstyle/lib/properties/marginTop.js +0 -13
  233. package/node_modules_lambda/cssstyle/lib/properties/opacity.js +0 -14
  234. package/node_modules_lambda/cssstyle/lib/properties/outlineColor.js +0 -14
  235. package/node_modules_lambda/cssstyle/lib/properties/padding.js +0 -61
  236. package/node_modules_lambda/cssstyle/lib/properties/paddingBottom.js +0 -13
  237. package/node_modules_lambda/cssstyle/lib/properties/paddingLeft.js +0 -13
  238. package/node_modules_lambda/cssstyle/lib/properties/paddingRight.js +0 -13
  239. package/node_modules_lambda/cssstyle/lib/properties/paddingTop.js +0 -13
  240. package/node_modules_lambda/cssstyle/lib/properties/right.js +0 -14
  241. package/node_modules_lambda/cssstyle/lib/properties/stopColor.js +0 -14
  242. package/node_modules_lambda/cssstyle/lib/properties/textLineThroughColor.js +0 -14
  243. package/node_modules_lambda/cssstyle/lib/properties/textOverlineColor.js +0 -14
  244. package/node_modules_lambda/cssstyle/lib/properties/textUnderlineColor.js +0 -14
  245. package/node_modules_lambda/cssstyle/lib/properties/top.js +0 -14
  246. package/node_modules_lambda/cssstyle/lib/properties/webkitBorderAfterColor.js +0 -14
  247. package/node_modules_lambda/cssstyle/lib/properties/webkitBorderBeforeColor.js +0 -14
  248. package/node_modules_lambda/cssstyle/lib/properties/webkitBorderEndColor.js +0 -14
  249. package/node_modules_lambda/cssstyle/lib/properties/webkitBorderStartColor.js +0 -14
  250. package/node_modules_lambda/cssstyle/lib/properties/webkitColumnRuleColor.js +0 -14
  251. package/node_modules_lambda/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +0 -14
  252. package/node_modules_lambda/cssstyle/lib/properties/webkitTapHighlightColor.js +0 -14
  253. package/node_modules_lambda/cssstyle/lib/properties/webkitTextEmphasisColor.js +0 -14
  254. package/node_modules_lambda/cssstyle/lib/properties/webkitTextFillColor.js +0 -14
  255. package/node_modules_lambda/cssstyle/lib/properties/webkitTextStrokeColor.js +0 -14
  256. package/node_modules_lambda/cssstyle/lib/properties/width.js +0 -24
  257. package/node_modules_lambda/cssstyle/lib/properties.js +0 -1833
  258. package/node_modules_lambda/cssstyle/lib/utils/colorSpace.js +0 -21
  259. package/node_modules_lambda/cssstyle/lib/utils/getBasicPropertyDescriptor.js +0 -14
  260. package/node_modules_lambda/cssstyle/node_modules/cssom/LICENSE.txt +0 -20
  261. package/node_modules_lambda/cssstyle/node_modules/cssom/README.mdown +0 -67
  262. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSDocumentRule.js +0 -39
  263. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSFontFaceRule.js +0 -36
  264. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSHostRule.js +0 -37
  265. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSImportRule.js +0 -132
  266. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSKeyframeRule.js +0 -37
  267. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSKeyframesRule.js +0 -39
  268. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSMediaRule.js +0 -41
  269. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSOM.js +0 -3
  270. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSRule.js +0 -43
  271. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleDeclaration.js +0 -148
  272. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleRule.js +0 -190
  273. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSStyleSheet.js +0 -88
  274. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSSupportsRule.js +0 -36
  275. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSValue.js +0 -43
  276. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/CSSValueExpression.js +0 -344
  277. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/MatcherList.js +0 -62
  278. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/MediaList.js +0 -61
  279. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/StyleSheet.js +0 -17
  280. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/clone.js +0 -82
  281. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/index.js +0 -21
  282. package/node_modules_lambda/cssstyle/node_modules/cssom/lib/parse.js +0 -464
  283. package/node_modules_lambda/cssstyle/node_modules/cssom/package.json +0 -18
  284. package/node_modules_lambda/cssstyle/package.json +0 -72
  285. package/node_modules_lambda/data-urls/LICENSE.txt +0 -7
  286. package/node_modules_lambda/data-urls/README.md +0 -62
  287. package/node_modules_lambda/data-urls/lib/parser.js +0 -69
  288. package/node_modules_lambda/data-urls/lib/utils.js +0 -18
  289. package/node_modules_lambda/data-urls/node_modules/whatwg-url/LICENSE.txt +0 -21
  290. package/node_modules_lambda/data-urls/node_modules/whatwg-url/README.md +0 -106
  291. package/node_modules_lambda/data-urls/node_modules/whatwg-url/index.js +0 -27
  292. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/Function.js +0 -42
  293. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URL-impl.js +0 -209
  294. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URL.js +0 -442
  295. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URLSearchParams-impl.js +0 -130
  296. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/URLSearchParams.js +0 -472
  297. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/VoidFunction.js +0 -26
  298. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/encoding.js +0 -16
  299. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/infra.js +0 -26
  300. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/percent-encoding.js +0 -142
  301. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/url-state-machine.js +0 -1244
  302. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/urlencoded.js +0 -106
  303. package/node_modules_lambda/data-urls/node_modules/whatwg-url/lib/utils.js +0 -190
  304. package/node_modules_lambda/data-urls/node_modules/whatwg-url/package.json +0 -58
  305. package/node_modules_lambda/data-urls/node_modules/whatwg-url/webidl2js-wrapper.js +0 -7
  306. package/node_modules_lambda/data-urls/package.json +0 -54
  307. package/node_modules_lambda/debug/LICENSE +0 -20
  308. package/node_modules_lambda/debug/README.md +0 -481
  309. package/node_modules_lambda/debug/package.json +0 -59
  310. package/node_modules_lambda/debug/src/browser.js +0 -269
  311. package/node_modules_lambda/debug/src/common.js +0 -274
  312. package/node_modules_lambda/debug/src/index.js +0 -10
  313. package/node_modules_lambda/debug/src/node.js +0 -263
  314. package/node_modules_lambda/decimal.js/CHANGELOG.md +0 -231
  315. package/node_modules_lambda/decimal.js/LICENCE.md +0 -23
  316. package/node_modules_lambda/decimal.js/README.md +0 -246
  317. package/node_modules_lambda/decimal.js/decimal.d.ts +0 -300
  318. package/node_modules_lambda/decimal.js/decimal.js +0 -4934
  319. package/node_modules_lambda/decimal.js/decimal.mjs +0 -4898
  320. package/node_modules_lambda/decimal.js/package.json +0 -40
  321. package/node_modules_lambda/deep-is/.travis.yml +0 -5
  322. package/node_modules_lambda/deep-is/LICENSE +0 -22
  323. package/node_modules_lambda/deep-is/README.markdown +0 -70
  324. package/node_modules_lambda/deep-is/example/cmp.js +0 -11
  325. package/node_modules_lambda/deep-is/index.js +0 -102
  326. package/node_modules_lambda/deep-is/package.json +0 -58
  327. package/node_modules_lambda/deep-is/test/NaN.js +0 -16
  328. package/node_modules_lambda/deep-is/test/cmp.js +0 -23
  329. package/node_modules_lambda/deep-is/test/neg-vs-pos-0.js +0 -15
  330. package/node_modules_lambda/delayed-stream/License +0 -19
  331. package/node_modules_lambda/delayed-stream/Makefile +0 -7
  332. package/node_modules_lambda/delayed-stream/Readme.md +0 -141
  333. package/node_modules_lambda/delayed-stream/lib/delayed_stream.js +0 -107
  334. package/node_modules_lambda/delayed-stream/package.json +0 -27
  335. package/node_modules_lambda/domexception/LICENSE.txt +0 -21
  336. package/node_modules_lambda/domexception/README.md +0 -31
  337. package/node_modules_lambda/domexception/index.js +0 -7
  338. package/node_modules_lambda/domexception/lib/DOMException-impl.js +0 -22
  339. package/node_modules_lambda/domexception/lib/DOMException.js +0 -222
  340. package/node_modules_lambda/domexception/lib/Function.js +0 -42
  341. package/node_modules_lambda/domexception/lib/VoidFunction.js +0 -26
  342. package/node_modules_lambda/domexception/lib/legacy-error-codes.json +0 -24
  343. package/node_modules_lambda/domexception/lib/utils.js +0 -190
  344. package/node_modules_lambda/domexception/package.json +0 -42
  345. package/node_modules_lambda/domexception/webidl2js-wrapper.js +0 -15
  346. package/node_modules_lambda/escodegen/LICENSE.BSD +0 -21
  347. package/node_modules_lambda/escodegen/README.md +0 -84
  348. package/node_modules_lambda/escodegen/bin/escodegen.js +0 -77
  349. package/node_modules_lambda/escodegen/bin/esgenerate.js +0 -64
  350. package/node_modules_lambda/escodegen/escodegen.js +0 -2647
  351. package/node_modules_lambda/escodegen/node_modules/estraverse/.jshintrc +0 -16
  352. package/node_modules_lambda/escodegen/node_modules/estraverse/LICENSE.BSD +0 -19
  353. package/node_modules_lambda/escodegen/node_modules/estraverse/README.md +0 -153
  354. package/node_modules_lambda/escodegen/node_modules/estraverse/estraverse.js +0 -805
  355. package/node_modules_lambda/escodegen/node_modules/estraverse/gulpfile.js +0 -70
  356. package/node_modules_lambda/escodegen/node_modules/estraverse/package.json +0 -40
  357. package/node_modules_lambda/escodegen/node_modules/levn/LICENSE +0 -22
  358. package/node_modules_lambda/escodegen/node_modules/levn/README.md +0 -196
  359. package/node_modules_lambda/escodegen/node_modules/levn/lib/cast.js +0 -298
  360. package/node_modules_lambda/escodegen/node_modules/levn/lib/coerce.js +0 -285
  361. package/node_modules_lambda/escodegen/node_modules/levn/lib/index.js +0 -22
  362. package/node_modules_lambda/escodegen/node_modules/levn/lib/parse-string.js +0 -113
  363. package/node_modules_lambda/escodegen/node_modules/levn/lib/parse.js +0 -102
  364. package/node_modules_lambda/escodegen/node_modules/levn/package.json +0 -47
  365. package/node_modules_lambda/escodegen/node_modules/optionator/CHANGELOG.md +0 -56
  366. package/node_modules_lambda/escodegen/node_modules/optionator/LICENSE +0 -22
  367. package/node_modules_lambda/escodegen/node_modules/optionator/README.md +0 -238
  368. package/node_modules_lambda/escodegen/node_modules/optionator/lib/help.js +0 -260
  369. package/node_modules_lambda/escodegen/node_modules/optionator/lib/index.js +0 -465
  370. package/node_modules_lambda/escodegen/node_modules/optionator/lib/util.js +0 -54
  371. package/node_modules_lambda/escodegen/node_modules/optionator/package.json +0 -44
  372. package/node_modules_lambda/escodegen/node_modules/prelude-ls/CHANGELOG.md +0 -99
  373. package/node_modules_lambda/escodegen/node_modules/prelude-ls/LICENSE +0 -22
  374. package/node_modules_lambda/escodegen/node_modules/prelude-ls/README.md +0 -15
  375. package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Func.js +0 -65
  376. package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/List.js +0 -686
  377. package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Num.js +0 -130
  378. package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Obj.js +0 -154
  379. package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/Str.js +0 -92
  380. package/node_modules_lambda/escodegen/node_modules/prelude-ls/lib/index.js +0 -178
  381. package/node_modules_lambda/escodegen/node_modules/prelude-ls/package.json +0 -52
  382. package/node_modules_lambda/escodegen/node_modules/source-map/CHANGELOG.md +0 -301
  383. package/node_modules_lambda/escodegen/node_modules/source-map/LICENSE +0 -28
  384. package/node_modules_lambda/escodegen/node_modules/source-map/README.md +0 -742
  385. package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.debug.js +0 -3234
  386. package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.js +0 -3233
  387. package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.min.js +0 -2
  388. package/node_modules_lambda/escodegen/node_modules/source-map/dist/source-map.min.js.map +0 -1
  389. package/node_modules_lambda/escodegen/node_modules/source-map/lib/array-set.js +0 -121
  390. package/node_modules_lambda/escodegen/node_modules/source-map/lib/base64-vlq.js +0 -140
  391. package/node_modules_lambda/escodegen/node_modules/source-map/lib/base64.js +0 -67
  392. package/node_modules_lambda/escodegen/node_modules/source-map/lib/binary-search.js +0 -111
  393. package/node_modules_lambda/escodegen/node_modules/source-map/lib/mapping-list.js +0 -79
  394. package/node_modules_lambda/escodegen/node_modules/source-map/lib/quick-sort.js +0 -114
  395. package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-map-consumer.js +0 -1145
  396. package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-map-generator.js +0 -425
  397. package/node_modules_lambda/escodegen/node_modules/source-map/lib/source-node.js +0 -413
  398. package/node_modules_lambda/escodegen/node_modules/source-map/lib/util.js +0 -488
  399. package/node_modules_lambda/escodegen/node_modules/source-map/package.json +0 -73
  400. package/node_modules_lambda/escodegen/node_modules/source-map/source-map.d.ts +0 -98
  401. package/node_modules_lambda/escodegen/node_modules/source-map/source-map.js +0 -8
  402. package/node_modules_lambda/escodegen/node_modules/type-check/LICENSE +0 -22
  403. package/node_modules_lambda/escodegen/node_modules/type-check/README.md +0 -210
  404. package/node_modules_lambda/escodegen/node_modules/type-check/lib/check.js +0 -126
  405. package/node_modules_lambda/escodegen/node_modules/type-check/lib/index.js +0 -16
  406. package/node_modules_lambda/escodegen/node_modules/type-check/lib/parse-type.js +0 -196
  407. package/node_modules_lambda/escodegen/node_modules/type-check/package.json +0 -40
  408. package/node_modules_lambda/escodegen/package.json +0 -62
  409. package/node_modules_lambda/esprima/ChangeLog +0 -235
  410. package/node_modules_lambda/esprima/LICENSE.BSD +0 -21
  411. package/node_modules_lambda/esprima/README.md +0 -46
  412. package/node_modules_lambda/esprima/bin/esparse.js +0 -139
  413. package/node_modules_lambda/esprima/bin/esvalidate.js +0 -236
  414. package/node_modules_lambda/esprima/dist/esprima.js +0 -6709
  415. package/node_modules_lambda/esprima/package.json +0 -112
  416. package/node_modules_lambda/esutils/LICENSE.BSD +0 -19
  417. package/node_modules_lambda/esutils/README.md +0 -174
  418. package/node_modules_lambda/esutils/lib/ast.js +0 -144
  419. package/node_modules_lambda/esutils/lib/code.js +0 -135
  420. package/node_modules_lambda/esutils/lib/keyword.js +0 -165
  421. package/node_modules_lambda/esutils/lib/utils.js +0 -33
  422. package/node_modules_lambda/esutils/package.json +0 -44
  423. package/node_modules_lambda/fast-levenshtein/LICENSE.md +0 -25
  424. package/node_modules_lambda/fast-levenshtein/README.md +0 -104
  425. package/node_modules_lambda/fast-levenshtein/levenshtein.js +0 -136
  426. package/node_modules_lambda/fast-levenshtein/package.json +0 -39
  427. package/node_modules_lambda/form-data/License +0 -19
  428. package/node_modules_lambda/form-data/README.md.bak +0 -358
  429. package/node_modules_lambda/form-data/Readme.md +0 -358
  430. package/node_modules_lambda/form-data/index.d.ts +0 -62
  431. package/node_modules_lambda/form-data/lib/browser.js +0 -2
  432. package/node_modules_lambda/form-data/lib/form_data.js +0 -501
  433. package/node_modules_lambda/form-data/lib/populate.js +0 -10
  434. package/node_modules_lambda/form-data/package.json +0 -68
  435. package/node_modules_lambda/html-encoding-sniffer/LICENSE.txt +0 -7
  436. package/node_modules_lambda/html-encoding-sniffer/README.md +0 -40
  437. package/node_modules_lambda/html-encoding-sniffer/lib/html-encoding-sniffer.js +0 -295
  438. package/node_modules_lambda/html-encoding-sniffer/package.json +0 -31
  439. package/node_modules_lambda/http-proxy-agent/README.md +0 -74
  440. package/node_modules_lambda/http-proxy-agent/dist/agent.d.ts +0 -32
  441. package/node_modules_lambda/http-proxy-agent/dist/agent.js +0 -145
  442. package/node_modules_lambda/http-proxy-agent/dist/agent.js.map +0 -1
  443. package/node_modules_lambda/http-proxy-agent/dist/index.d.ts +0 -21
  444. package/node_modules_lambda/http-proxy-agent/dist/index.js +0 -14
  445. package/node_modules_lambda/http-proxy-agent/dist/index.js.map +0 -1
  446. package/node_modules_lambda/http-proxy-agent/package.json +0 -57
  447. package/node_modules_lambda/https-proxy-agent/README.md +0 -137
  448. package/node_modules_lambda/https-proxy-agent/dist/agent.d.ts +0 -30
  449. package/node_modules_lambda/https-proxy-agent/dist/agent.js +0 -177
  450. package/node_modules_lambda/https-proxy-agent/dist/agent.js.map +0 -1
  451. package/node_modules_lambda/https-proxy-agent/dist/index.d.ts +0 -23
  452. package/node_modules_lambda/https-proxy-agent/dist/index.js +0 -14
  453. package/node_modules_lambda/https-proxy-agent/dist/index.js.map +0 -1
  454. package/node_modules_lambda/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -7
  455. package/node_modules_lambda/https-proxy-agent/dist/parse-proxy-response.js +0 -66
  456. package/node_modules_lambda/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
  457. package/node_modules_lambda/https-proxy-agent/package.json +0 -56
  458. package/node_modules_lambda/is-potential-custom-element-name/LICENSE-MIT.txt +0 -20
  459. package/node_modules_lambda/is-potential-custom-element-name/README.md +0 -40
  460. package/node_modules_lambda/is-potential-custom-element-name/index.js +0 -9
  461. package/node_modules_lambda/is-potential-custom-element-name/package.json +0 -35
  462. package/node_modules_lambda/jsdom/LICENSE.txt +0 -22
  463. package/node_modules_lambda/jsdom/README.md +0 -522
  464. package/node_modules_lambda/jsdom/lib/api.js +0 -333
  465. package/node_modules_lambda/jsdom/lib/jsdom/browser/Window.js +0 -933
  466. package/node_modules_lambda/jsdom/lib/jsdom/browser/default-stylesheet.js +0 -789
  467. package/node_modules_lambda/jsdom/lib/jsdom/browser/js-globals.json +0 -307
  468. package/node_modules_lambda/jsdom/lib/jsdom/browser/not-implemented.js +0 -13
  469. package/node_modules_lambda/jsdom/lib/jsdom/browser/parser/html.js +0 -224
  470. package/node_modules_lambda/jsdom/lib/jsdom/browser/parser/index.js +0 -37
  471. package/node_modules_lambda/jsdom/lib/jsdom/browser/parser/xml.js +0 -202
  472. package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/async-resource-queue.js +0 -114
  473. package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/no-op-resource-loader.js +0 -8
  474. package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/per-document-resource-loader.js +0 -95
  475. package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/request-manager.js +0 -33
  476. package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/resource-loader.js +0 -142
  477. package/node_modules_lambda/jsdom/lib/jsdom/browser/resources/resource-queue.js +0 -142
  478. package/node_modules_lambda/jsdom/lib/jsdom/level2/style.js +0 -57
  479. package/node_modules_lambda/jsdom/lib/jsdom/level3/xpath.js +0 -1874
  480. package/node_modules_lambda/jsdom/lib/jsdom/living/aborting/AbortController-impl.js +0 -17
  481. package/node_modules_lambda/jsdom/lib/jsdom/living/aborting/AbortSignal-impl.js +0 -69
  482. package/node_modules_lambda/jsdom/lib/jsdom/living/attributes/Attr-impl.js +0 -60
  483. package/node_modules_lambda/jsdom/lib/jsdom/living/attributes/NamedNodeMap-impl.js +0 -78
  484. package/node_modules_lambda/jsdom/lib/jsdom/living/attributes.js +0 -312
  485. package/node_modules_lambda/jsdom/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +0 -75
  486. package/node_modules_lambda/jsdom/lib/jsdom/living/constraint-validation/ValidityState-impl.js +0 -66
  487. package/node_modules_lambda/jsdom/lib/jsdom/living/cssom/StyleSheetList-impl.js +0 -38
  488. package/node_modules_lambda/jsdom/lib/jsdom/living/custom-elements/CustomElementRegistry-impl.js +0 -265
  489. package/node_modules_lambda/jsdom/lib/jsdom/living/documents.js +0 -15
  490. package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +0 -58
  491. package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/InnerHTML-impl.js +0 -29
  492. package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js +0 -18
  493. package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +0 -63
  494. package/node_modules_lambda/jsdom/lib/jsdom/living/domparsing/serialization.js +0 -45
  495. package/node_modules_lambda/jsdom/lib/jsdom/living/events/CloseEvent-impl.js +0 -10
  496. package/node_modules_lambda/jsdom/lib/jsdom/living/events/CompositionEvent-impl.js +0 -20
  497. package/node_modules_lambda/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +0 -21
  498. package/node_modules_lambda/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +0 -14
  499. package/node_modules_lambda/jsdom/lib/jsdom/living/events/Event-impl.js +0 -197
  500. package/node_modules_lambda/jsdom/lib/jsdom/living/events/EventModifierMixin-impl.js +0 -18
  501. package/node_modules_lambda/jsdom/lib/jsdom/living/events/EventTarget-impl.js +0 -405
  502. package/node_modules_lambda/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +0 -9
  503. package/node_modules_lambda/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +0 -14
  504. package/node_modules_lambda/jsdom/lib/jsdom/living/events/InputEvent-impl.js +0 -11
  505. package/node_modules_lambda/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +0 -29
  506. package/node_modules_lambda/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +0 -25
  507. package/node_modules_lambda/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +0 -49
  508. package/node_modules_lambda/jsdom/lib/jsdom/living/events/PageTransitionEvent-impl.js +0 -20
  509. package/node_modules_lambda/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +0 -9
  510. package/node_modules_lambda/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +0 -14
  511. package/node_modules_lambda/jsdom/lib/jsdom/living/events/StorageEvent-impl.js +0 -26
  512. package/node_modules_lambda/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +0 -14
  513. package/node_modules_lambda/jsdom/lib/jsdom/living/events/UIEvent-impl.js +0 -59
  514. package/node_modules_lambda/jsdom/lib/jsdom/living/events/WheelEvent-impl.js +0 -12
  515. package/node_modules_lambda/jsdom/lib/jsdom/living/fetch/Headers-impl.js +0 -170
  516. package/node_modules_lambda/jsdom/lib/jsdom/living/fetch/header-list.js +0 -54
  517. package/node_modules_lambda/jsdom/lib/jsdom/living/fetch/header-types.js +0 -103
  518. package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/Blob-impl.js +0 -93
  519. package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/File-impl.js +0 -12
  520. package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/FileList-impl.js +0 -15
  521. package/node_modules_lambda/jsdom/lib/jsdom/living/file-api/FileReader-impl.js +0 -130
  522. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AbortController.js +0 -143
  523. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AbortSignal.js +0 -184
  524. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AbstractRange.js +0 -171
  525. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +0 -44
  526. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/AssignedNodesOptions.js +0 -28
  527. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Attr.js +0 -217
  528. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BarProp.js +0 -117
  529. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BinaryType.js +0 -12
  530. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Blob.js +0 -203
  531. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BlobCallback.js +0 -30
  532. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/BlobPropertyBag.js +0 -42
  533. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CDATASection.js +0 -109
  534. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CanPlayTypeResult.js +0 -12
  535. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CharacterData.js +0 -453
  536. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CloseEvent.js +0 -168
  537. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CloseEventInit.js +0 -65
  538. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Comment.js +0 -120
  539. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CompositionEvent.js +0 -219
  540. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CompositionEventInit.js +0 -32
  541. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomElementConstructor.js +0 -34
  542. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomElementRegistry.js +0 -242
  543. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomEvent.js +0 -206
  544. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/CustomEventInit.js +0 -32
  545. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMImplementation.js +0 -237
  546. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMParser.js +0 -140
  547. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMStringMap.js +0 -323
  548. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DOMTokenList.js +0 -563
  549. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Document.js +0 -3593
  550. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DocumentFragment.js +0 -334
  551. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DocumentReadyState.js +0 -12
  552. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/DocumentType.js +0 -252
  553. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Element.js +0 -1718
  554. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ElementCreationOptions.js +0 -26
  555. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ElementDefinitionOptions.js +0 -29
  556. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EndingType.js +0 -12
  557. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ErrorEvent.js +0 -192
  558. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +0 -92
  559. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Event.js +0 -430
  560. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventHandlerNonNull.js +0 -36
  561. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventInit.js +0 -58
  562. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventListener.js +0 -35
  563. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +0 -28
  564. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventModifierInit.js +0 -221
  565. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/EventTarget.js +0 -259
  566. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/External.js +0 -130
  567. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/File.js +0 -177
  568. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FileList.js +0 -324
  569. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FilePropertyBag.js +0 -33
  570. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FileReader.js +0 -468
  571. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FocusEvent.js +0 -144
  572. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FocusEventInit.js +0 -36
  573. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/FormData.js +0 -452
  574. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Function.js +0 -42
  575. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/GetRootNodeOptions.js +0 -31
  576. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +0 -1023
  577. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +0 -822
  578. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +0 -110
  579. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +0 -153
  580. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +0 -193
  581. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +0 -877
  582. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +0 -522
  583. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +0 -304
  584. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLCollection.js +0 -378
  585. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +0 -156
  586. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +0 -153
  587. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +0 -125
  588. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDetailsElement.js +0 -156
  589. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +0 -156
  590. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +0 -156
  591. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +0 -153
  592. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLElement.js +0 -2549
  593. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +0 -371
  594. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +0 -329
  595. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +0 -236
  596. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +0 -501
  597. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +0 -494
  598. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +0 -708
  599. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +0 -320
  600. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +0 -110
  601. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +0 -153
  602. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +0 -153
  603. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +0 -670
  604. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +0 -870
  605. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +0 -1875
  606. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +0 -199
  607. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +0 -179
  608. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +0 -166
  609. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +0 -542
  610. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +0 -168
  611. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMarqueeElement.js +0 -546
  612. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +0 -888
  613. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +0 -156
  614. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +0 -276
  615. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +0 -365
  616. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLModElement.js +0 -207
  617. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +0 -281
  618. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +0 -921
  619. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +0 -197
  620. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +0 -376
  621. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOptionsCollection.js +0 -537
  622. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +0 -392
  623. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +0 -153
  624. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +0 -276
  625. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLPictureElement.js +0 -110
  626. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +0 -158
  627. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +0 -218
  628. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +0 -166
  629. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +0 -459
  630. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +0 -1013
  631. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSlotElement.js +0 -192
  632. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +0 -330
  633. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +0 -110
  634. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +0 -207
  635. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +0 -153
  636. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +0 -700
  637. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +0 -364
  638. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +0 -799
  639. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +0 -414
  640. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +0 -346
  641. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +0 -123
  642. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +0 -1171
  643. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +0 -153
  644. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +0 -152
  645. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +0 -356
  646. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +0 -197
  647. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +0 -109
  648. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +0 -329
  649. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +0 -157
  650. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +0 -50
  651. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Headers.js +0 -408
  652. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/History.js +0 -266
  653. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/InputEvent.js +0 -168
  654. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/InputEventInit.js +0 -68
  655. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +0 -445
  656. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +0 -116
  657. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Location.js +0 -404
  658. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MessageEvent.js +0 -317
  659. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MessageEventInit.js +0 -100
  660. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MimeType.js +0 -156
  661. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MimeTypeArray.js +0 -352
  662. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MouseEvent.js +0 -499
  663. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MouseEventInit.js +0 -111
  664. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationCallback.js +0 -34
  665. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationObserver.js +0 -178
  666. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationObserverInit.js +0 -121
  667. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/MutationRecord.js +0 -229
  668. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NamedNodeMap.js +0 -553
  669. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Navigator.js +0 -326
  670. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Node.js +0 -763
  671. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NodeFilter.js +0 -75
  672. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NodeIterator.js +0 -207
  673. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/NodeList.js +0 -328
  674. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/OnBeforeUnloadEventHandlerNonNull.js +0 -42
  675. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/OnErrorEventHandlerNonNull.js +0 -56
  676. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PageTransitionEvent.js +0 -144
  677. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PageTransitionEventInit.js +0 -35
  678. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Performance.js +0 -142
  679. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Plugin.js +0 -385
  680. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PluginArray.js +0 -362
  681. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PopStateEvent.js +0 -144
  682. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +0 -32
  683. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +0 -122
  684. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ProgressEvent.js +0 -170
  685. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +0 -65
  686. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Range.js +0 -641
  687. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGAnimatedString.js +0 -149
  688. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGBoundingBoxOptions.js +0 -64
  689. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGElement.js +0 -2227
  690. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGGraphicsElement.js +0 -139
  691. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGNumber.js +0 -132
  692. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGSVGElement.js +0 -737
  693. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGStringList.js +0 -537
  694. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SVGTitleElement.js +0 -109
  695. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Screen.js +0 -180
  696. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollBehavior.js +0 -12
  697. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +0 -45
  698. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollLogicalPosition.js +0 -14
  699. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollOptions.js +0 -30
  700. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ScrollRestoration.js +0 -12
  701. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Selection.js +0 -569
  702. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SelectionMode.js +0 -12
  703. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ShadowRoot.js +0 -187
  704. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ShadowRootInit.js +0 -30
  705. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ShadowRootMode.js +0 -12
  706. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StaticRange.js +0 -123
  707. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StaticRangeInit.js +0 -72
  708. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Storage.js +0 -423
  709. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StorageEvent.js +0 -318
  710. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StorageEventInit.js +0 -99
  711. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/StyleSheetList.js +0 -326
  712. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/SupportedType.js +0 -18
  713. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/Text.js +0 -170
  714. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TextTrackKind.js +0 -12
  715. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TouchEvent.js +0 -222
  716. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TouchEventInit.js +0 -89
  717. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/TreeWalker.js +0 -255
  718. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/UIEvent.js +0 -235
  719. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/UIEventInit.js +0 -62
  720. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/ValidityState.js +0 -249
  721. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/VisibilityState.js +0 -12
  722. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/VoidFunction.js +0 -26
  723. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/WebSocket.js +0 -476
  724. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/WheelEvent.js +0 -191
  725. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/WheelEventInit.js +0 -71
  726. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLDocument.js +0 -109
  727. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequest.js +0 -655
  728. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequestEventTarget.js +0 -334
  729. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequestResponseType.js +0 -14
  730. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLHttpRequestUpload.js +0 -109
  731. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/XMLSerializer.js +0 -132
  732. package/node_modules_lambda/jsdom/lib/jsdom/living/generated/utils.js +0 -190
  733. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/agent-factory.js +0 -15
  734. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/binary-data.js +0 -9
  735. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/create-element.js +0 -320
  736. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/create-event-accessor.js +0 -188
  737. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/custom-elements.js +0 -270
  738. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/dates-and-times.js +0 -270
  739. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/details.js +0 -15
  740. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/document-base-url.js +0 -54
  741. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/events.js +0 -24
  742. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/focusing.js +0 -104
  743. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/form-controls.js +0 -306
  744. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/html-constructor.js +0 -78
  745. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/http-request.js +0 -254
  746. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/internal-constants.js +0 -12
  747. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/iterable-weak-set.js +0 -48
  748. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/json.js +0 -12
  749. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/mutation-observers.js +0 -198
  750. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/namespaces.js +0 -15
  751. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/node.js +0 -68
  752. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/number-and-date-inputs.js +0 -195
  753. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/ordered-set.js +0 -104
  754. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/page-transition-event.js +0 -9
  755. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +0 -76
  756. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/selectors.js +0 -47
  757. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/shadow-dom.js +0 -285
  758. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/strings.js +0 -148
  759. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/style-rules.js +0 -114
  760. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/stylesheets.js +0 -113
  761. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/svg/basic-types.js +0 -41
  762. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/svg/render.js +0 -46
  763. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/text.js +0 -19
  764. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/traversal.js +0 -72
  765. package/node_modules_lambda/jsdom/lib/jsdom/living/helpers/validate-names.js +0 -65
  766. package/node_modules_lambda/jsdom/lib/jsdom/living/hr-time/Performance-impl.js +0 -25
  767. package/node_modules_lambda/jsdom/lib/jsdom/living/interfaces.js +0 -217
  768. package/node_modules_lambda/jsdom/lib/jsdom/living/mutation-observer/MutationObserver-impl.js +0 -95
  769. package/node_modules_lambda/jsdom/lib/jsdom/living/mutation-observer/MutationRecord-impl.js +0 -37
  770. package/node_modules_lambda/jsdom/lib/jsdom/living/named-properties-window.js +0 -141
  771. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/MimeType-impl.js +0 -3
  772. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/MimeTypeArray-impl.js +0 -21
  773. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +0 -29
  774. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +0 -8
  775. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +0 -7
  776. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +0 -37
  777. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +0 -9
  778. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +0 -7
  779. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +0 -8
  780. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/Plugin-impl.js +0 -3
  781. package/node_modules_lambda/jsdom/lib/jsdom/living/navigator/PluginArray-impl.js +0 -23
  782. package/node_modules_lambda/jsdom/lib/jsdom/living/node-document-position.js +0 -10
  783. package/node_modules_lambda/jsdom/lib/jsdom/living/node-type.js +0 -16
  784. package/node_modules_lambda/jsdom/lib/jsdom/living/node.js +0 -331
  785. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/CDATASection-impl.js +0 -16
  786. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +0 -118
  787. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +0 -80
  788. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Comment-impl.js +0 -20
  789. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +0 -120
  790. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DOMStringMap-impl.js +0 -64
  791. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DOMTokenList-impl.js +0 -171
  792. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Document-impl.js +0 -946
  793. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +0 -44
  794. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DocumentOrShadowRoot-impl.js +0 -28
  795. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +0 -24
  796. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Element-impl.js +0 -582
  797. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +0 -25
  798. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +0 -7
  799. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +0 -95
  800. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +0 -50
  801. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +0 -43
  802. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +0 -9
  803. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +0 -9
  804. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +0 -27
  805. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +0 -17
  806. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +0 -79
  807. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +0 -130
  808. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLCollection-impl.js +0 -96
  809. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +0 -9
  810. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +0 -9
  811. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +0 -20
  812. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDetailsElement-impl.js +0 -35
  813. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +0 -9
  814. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +0 -9
  815. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +0 -9
  816. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +0 -160
  817. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +0 -8
  818. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +0 -43
  819. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +0 -9
  820. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +0 -232
  821. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +0 -261
  822. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +0 -17
  823. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +0 -9
  824. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +0 -9
  825. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +0 -9
  826. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +0 -9
  827. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +0 -371
  828. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +0 -9
  829. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +0 -132
  830. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +0 -1129
  831. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +0 -9
  832. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +0 -94
  833. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +0 -18
  834. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +0 -101
  835. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +0 -13
  836. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMarqueeElement-impl.js +0 -9
  837. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +0 -138
  838. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +0 -9
  839. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +0 -9
  840. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +0 -180
  841. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +0 -9
  842. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +0 -22
  843. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +0 -26
  844. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +0 -9
  845. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +0 -146
  846. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOptionsCollection-impl.js +0 -110
  847. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js +0 -85
  848. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +0 -88
  849. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +0 -9
  850. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +0 -9
  851. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLPictureElement-impl.js +0 -9
  852. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +0 -9
  853. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +0 -74
  854. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +0 -9
  855. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +0 -265
  856. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +0 -283
  857. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSlotElement-impl.js +0 -59
  858. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +0 -8
  859. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +0 -9
  860. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +0 -74
  861. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +0 -9
  862. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +0 -73
  863. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +0 -9
  864. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +0 -236
  865. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +0 -88
  866. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +0 -61
  867. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +0 -67
  868. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +0 -272
  869. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +0 -9
  870. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +0 -18
  871. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +0 -13
  872. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +0 -9
  873. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +0 -9
  874. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +0 -17
  875. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +0 -2
  876. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Node-impl.js +0 -1159
  877. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/NodeList-impl.js +0 -43
  878. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +0 -28
  879. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +0 -11
  880. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +0 -91
  881. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +0 -22
  882. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGElement-impl.js +0 -64
  883. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGGraphicsElement-impl.js +0 -16
  884. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGSVGElement-impl.js +0 -42
  885. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js +0 -42
  886. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/SVGTitleElement-impl.js +0 -9
  887. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/ShadowRoot-impl.js +0 -40
  888. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Slotable-impl.js +0 -48
  889. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/Text-impl.js +0 -96
  890. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +0 -52
  891. package/node_modules_lambda/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +0 -4
  892. package/node_modules_lambda/jsdom/lib/jsdom/living/post-message.js +0 -39
  893. package/node_modules_lambda/jsdom/lib/jsdom/living/range/AbstractRange-impl.js +0 -43
  894. package/node_modules_lambda/jsdom/lib/jsdom/living/range/Range-impl.js +0 -897
  895. package/node_modules_lambda/jsdom/lib/jsdom/living/range/StaticRange-impl.js +0 -39
  896. package/node_modules_lambda/jsdom/lib/jsdom/living/range/boundary-point.js +0 -47
  897. package/node_modules_lambda/jsdom/lib/jsdom/living/selection/Selection-impl.js +0 -342
  898. package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGAnimatedString-impl.js +0 -38
  899. package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGListBase.js +0 -195
  900. package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGNumber-impl.js +0 -48
  901. package/node_modules_lambda/jsdom/lib/jsdom/living/svg/SVGStringList-impl.js +0 -16
  902. package/node_modules_lambda/jsdom/lib/jsdom/living/traversal/NodeIterator-impl.js +0 -127
  903. package/node_modules_lambda/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +0 -217
  904. package/node_modules_lambda/jsdom/lib/jsdom/living/traversal/helpers.js +0 -44
  905. package/node_modules_lambda/jsdom/lib/jsdom/living/websockets/WebSocket-impl-browser.js +0 -175
  906. package/node_modules_lambda/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js +0 -328
  907. package/node_modules_lambda/jsdom/lib/jsdom/living/webstorage/Storage-impl.js +0 -102
  908. package/node_modules_lambda/jsdom/lib/jsdom/living/window/BarProp-impl.js +0 -10
  909. package/node_modules_lambda/jsdom/lib/jsdom/living/window/External-impl.js +0 -9
  910. package/node_modules_lambda/jsdom/lib/jsdom/living/window/History-impl.js +0 -134
  911. package/node_modules_lambda/jsdom/lib/jsdom/living/window/Location-impl.js +0 -238
  912. package/node_modules_lambda/jsdom/lib/jsdom/living/window/Screen-impl.js +0 -13
  913. package/node_modules_lambda/jsdom/lib/jsdom/living/window/SessionHistory.js +0 -163
  914. package/node_modules_lambda/jsdom/lib/jsdom/living/window/navigation.js +0 -85
  915. package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/FormData-impl.js +0 -171
  916. package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js +0 -1023
  917. package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/XMLHttpRequestEventTarget-impl.js +0 -17
  918. package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/XMLHttpRequestUpload-impl.js +0 -4
  919. package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js +0 -60
  920. package/node_modules_lambda/jsdom/lib/jsdom/living/xhr/xhr-utils.js +0 -438
  921. package/node_modules_lambda/jsdom/lib/jsdom/named-properties-tracker.js +0 -158
  922. package/node_modules_lambda/jsdom/lib/jsdom/utils.js +0 -165
  923. package/node_modules_lambda/jsdom/lib/jsdom/virtual-console.js +0 -34
  924. package/node_modules_lambda/jsdom/lib/jsdom/vm-shim.js +0 -106
  925. package/node_modules_lambda/jsdom/package.json +0 -116
  926. package/node_modules_lambda/mime-db/HISTORY.md +0 -507
  927. package/node_modules_lambda/mime-db/LICENSE +0 -23
  928. package/node_modules_lambda/mime-db/README.md +0 -100
  929. package/node_modules_lambda/mime-db/db.json +0 -8519
  930. package/node_modules_lambda/mime-db/index.js +0 -12
  931. package/node_modules_lambda/mime-db/package.json +0 -60
  932. package/node_modules_lambda/mime-types/HISTORY.md +0 -397
  933. package/node_modules_lambda/mime-types/LICENSE +0 -23
  934. package/node_modules_lambda/mime-types/README.md +0 -113
  935. package/node_modules_lambda/mime-types/index.js +0 -188
  936. package/node_modules_lambda/mime-types/package.json +0 -44
  937. package/node_modules_lambda/ms/index.js +0 -162
  938. package/node_modules_lambda/ms/license.md +0 -21
  939. package/node_modules_lambda/ms/package.json +0 -37
  940. package/node_modules_lambda/ms/readme.md +0 -60
  941. package/node_modules_lambda/nwsapi/LICENSE +0 -22
  942. package/node_modules_lambda/nwsapi/README.md +0 -132
  943. package/node_modules_lambda/nwsapi/dist/lint.log +0 -0
  944. package/node_modules_lambda/nwsapi/package.json +0 -38
  945. package/node_modules_lambda/nwsapi/src/modules/nwsapi-jquery.js +0 -135
  946. package/node_modules_lambda/nwsapi/src/modules/nwsapi-traversal.js +0 -90
  947. package/node_modules_lambda/nwsapi/src/nwsapi.js +0 -1800
  948. package/node_modules_lambda/parse5/LICENSE +0 -19
  949. package/node_modules_lambda/parse5/README.md +0 -38
  950. package/node_modules_lambda/parse5/lib/common/doctype.js +0 -162
  951. package/node_modules_lambda/parse5/lib/common/error-codes.js +0 -65
  952. package/node_modules_lambda/parse5/lib/common/foreign-content.js +0 -265
  953. package/node_modules_lambda/parse5/lib/common/html.js +0 -272
  954. package/node_modules_lambda/parse5/lib/common/unicode.js +0 -109
  955. package/node_modules_lambda/parse5/lib/extensions/error-reporting/mixin-base.js +0 -43
  956. package/node_modules_lambda/parse5/lib/extensions/error-reporting/parser-mixin.js +0 -52
  957. package/node_modules_lambda/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +0 -24
  958. package/node_modules_lambda/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +0 -17
  959. package/node_modules_lambda/parse5/lib/extensions/location-info/open-element-stack-mixin.js +0 -35
  960. package/node_modules_lambda/parse5/lib/extensions/location-info/parser-mixin.js +0 -223
  961. package/node_modules_lambda/parse5/lib/extensions/location-info/tokenizer-mixin.js +0 -146
  962. package/node_modules_lambda/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +0 -64
  963. package/node_modules_lambda/parse5/lib/index.js +0 -29
  964. package/node_modules_lambda/parse5/lib/parser/formatting-element-list.js +0 -181
  965. package/node_modules_lambda/parse5/lib/parser/index.js +0 -2956
  966. package/node_modules_lambda/parse5/lib/parser/open-element-stack.js +0 -482
  967. package/node_modules_lambda/parse5/lib/serializer/index.js +0 -176
  968. package/node_modules_lambda/parse5/lib/tokenizer/index.js +0 -2196
  969. package/node_modules_lambda/parse5/lib/tokenizer/named-entity-data.js +0 -5
  970. package/node_modules_lambda/parse5/lib/tokenizer/preprocessor.js +0 -159
  971. package/node_modules_lambda/parse5/lib/tree-adapters/default.js +0 -221
  972. package/node_modules_lambda/parse5/lib/utils/merge-options.js +0 -13
  973. package/node_modules_lambda/parse5/lib/utils/mixin.js +0 -39
  974. package/node_modules_lambda/parse5/package.json +0 -35
  975. package/node_modules_lambda/psl/LICENSE +0 -9
  976. package/node_modules_lambda/psl/README.md +0 -215
  977. package/node_modules_lambda/psl/browserstack-logo.svg +0 -90
  978. package/node_modules_lambda/psl/data/rules.json +0 -8834
  979. package/node_modules_lambda/psl/dist/psl.js +0 -9645
  980. package/node_modules_lambda/psl/dist/psl.min.js +0 -1
  981. package/node_modules_lambda/psl/index.js +0 -269
  982. package/node_modules_lambda/psl/package.json +0 -44
  983. package/node_modules_lambda/punycode/LICENSE-MIT.txt +0 -20
  984. package/node_modules_lambda/punycode/README.md +0 -122
  985. package/node_modules_lambda/punycode/package.json +0 -58
  986. package/node_modules_lambda/punycode/punycode.es6.js +0 -441
  987. package/node_modules_lambda/punycode/punycode.js +0 -440
  988. package/node_modules_lambda/safer-buffer/LICENSE +0 -21
  989. package/node_modules_lambda/safer-buffer/Porting-Buffer.md +0 -268
  990. package/node_modules_lambda/safer-buffer/Readme.md +0 -156
  991. package/node_modules_lambda/safer-buffer/dangerous.js +0 -58
  992. package/node_modules_lambda/safer-buffer/package.json +0 -34
  993. package/node_modules_lambda/safer-buffer/safer.js +0 -77
  994. package/node_modules_lambda/safer-buffer/tests.js +0 -406
  995. package/node_modules_lambda/saxes/README.md +0 -323
  996. package/node_modules_lambda/saxes/package.json +0 -70
  997. package/node_modules_lambda/saxes/saxes.d.ts +0 -635
  998. package/node_modules_lambda/saxes/saxes.js +0 -2064
  999. package/node_modules_lambda/saxes/saxes.js.map +0 -1
  1000. package/node_modules_lambda/symbol-tree/LICENSE +0 -21
  1001. package/node_modules_lambda/symbol-tree/README.md +0 -545
  1002. package/node_modules_lambda/symbol-tree/lib/SymbolTree.js +0 -838
  1003. package/node_modules_lambda/symbol-tree/lib/SymbolTreeNode.js +0 -54
  1004. package/node_modules_lambda/symbol-tree/lib/TreeIterator.js +0 -69
  1005. package/node_modules_lambda/symbol-tree/lib/TreePosition.js +0 -11
  1006. package/node_modules_lambda/symbol-tree/package.json +0 -47
  1007. package/node_modules_lambda/tough-cookie/LICENSE +0 -12
  1008. package/node_modules_lambda/tough-cookie/README.md +0 -582
  1009. package/node_modules_lambda/tough-cookie/lib/cookie.js +0 -1671
  1010. package/node_modules_lambda/tough-cookie/lib/memstore.js +0 -190
  1011. package/node_modules_lambda/tough-cookie/lib/pathMatch.js +0 -61
  1012. package/node_modules_lambda/tough-cookie/lib/permuteDomain.js +0 -70
  1013. package/node_modules_lambda/tough-cookie/lib/pubsuffix-psl.js +0 -38
  1014. package/node_modules_lambda/tough-cookie/lib/store.js +0 -76
  1015. package/node_modules_lambda/tough-cookie/lib/version.js +0 -2
  1016. package/node_modules_lambda/tough-cookie/package.json +0 -109
  1017. package/node_modules_lambda/tr46/LICENSE.md +0 -21
  1018. package/node_modules_lambda/tr46/README.md +0 -78
  1019. package/node_modules_lambda/tr46/index.js +0 -298
  1020. package/node_modules_lambda/tr46/lib/mappingTable.json +0 -1
  1021. package/node_modules_lambda/tr46/lib/regexes.js +0 -29
  1022. package/node_modules_lambda/tr46/lib/statusMapping.js +0 -11
  1023. package/node_modules_lambda/tr46/package.json +0 -47
  1024. package/node_modules_lambda/universalify/LICENSE +0 -20
  1025. package/node_modules_lambda/universalify/README.md +0 -76
  1026. package/node_modules_lambda/universalify/index.js +0 -25
  1027. package/node_modules_lambda/universalify/package.json +0 -34
  1028. package/node_modules_lambda/w3c-hr-time/CHANGELOG.md +0 -19
  1029. package/node_modules_lambda/w3c-hr-time/LICENSE.md +0 -21
  1030. package/node_modules_lambda/w3c-hr-time/README.md +0 -130
  1031. package/node_modules_lambda/w3c-hr-time/index.js +0 -11
  1032. package/node_modules_lambda/w3c-hr-time/lib/calculate-clock-offset.js +0 -39
  1033. package/node_modules_lambda/w3c-hr-time/lib/clock-is-accurate.js +0 -61
  1034. package/node_modules_lambda/w3c-hr-time/lib/global-monotonic-clock.js +0 -10
  1035. package/node_modules_lambda/w3c-hr-time/lib/performance.js +0 -53
  1036. package/node_modules_lambda/w3c-hr-time/lib/utils.js +0 -11
  1037. package/node_modules_lambda/w3c-hr-time/package.json +0 -26
  1038. package/node_modules_lambda/w3c-xmlserializer/LICENSE.md +0 -25
  1039. package/node_modules_lambda/w3c-xmlserializer/README.md +0 -41
  1040. package/node_modules_lambda/w3c-xmlserializer/lib/attributes.js +0 -125
  1041. package/node_modules_lambda/w3c-xmlserializer/lib/constants.js +0 -44
  1042. package/node_modules_lambda/w3c-xmlserializer/lib/serialize.js +0 -365
  1043. package/node_modules_lambda/w3c-xmlserializer/package.json +0 -33
  1044. package/node_modules_lambda/webidl-conversions/LICENSE.md +0 -12
  1045. package/node_modules_lambda/webidl-conversions/README.md +0 -99
  1046. package/node_modules_lambda/webidl-conversions/lib/index.js +0 -450
  1047. package/node_modules_lambda/webidl-conversions/package.json +0 -35
  1048. package/node_modules_lambda/whatwg-encoding/LICENSE.txt +0 -7
  1049. package/node_modules_lambda/whatwg-encoding/README.md +0 -50
  1050. package/node_modules_lambda/whatwg-encoding/lib/labels-to-names.json +0 -216
  1051. package/node_modules_lambda/whatwg-encoding/lib/supported-names.json +0 -37
  1052. package/node_modules_lambda/whatwg-encoding/lib/whatwg-encoding.js +0 -47
  1053. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/.github/dependabot.yml +0 -11
  1054. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/Changelog.md +0 -212
  1055. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/LICENSE +0 -21
  1056. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/README.md +0 -130
  1057. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -597
  1058. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-data.js +0 -188
  1059. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/index.js +0 -23
  1060. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/internal.js +0 -198
  1061. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  1062. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  1063. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data.js +0 -179
  1064. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  1065. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  1066. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  1067. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  1068. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  1069. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  1070. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
  1071. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  1072. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf16.js +0 -197
  1073. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf32.js +0 -319
  1074. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/encodings/utf7.js +0 -290
  1075. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  1076. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/index.d.ts +0 -41
  1077. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/index.js +0 -180
  1078. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/lib/streams.js +0 -109
  1079. package/node_modules_lambda/whatwg-encoding/node_modules/iconv-lite/package.json +0 -44
  1080. package/node_modules_lambda/whatwg-encoding/package.json +0 -33
  1081. package/node_modules_lambda/whatwg-mimetype/LICENSE.txt +0 -7
  1082. package/node_modules_lambda/whatwg-mimetype/README.md +0 -101
  1083. package/node_modules_lambda/whatwg-mimetype/lib/mime-type-parameters.js +0 -70
  1084. package/node_modules_lambda/whatwg-mimetype/lib/mime-type.js +0 -127
  1085. package/node_modules_lambda/whatwg-mimetype/lib/parser.js +0 -105
  1086. package/node_modules_lambda/whatwg-mimetype/lib/serializer.js +0 -25
  1087. package/node_modules_lambda/whatwg-mimetype/lib/utils.js +0 -60
  1088. package/node_modules_lambda/whatwg-mimetype/package.json +0 -47
  1089. package/node_modules_lambda/whatwg-url/LICENSE.txt +0 -21
  1090. package/node_modules_lambda/whatwg-url/README.md +0 -105
  1091. package/node_modules_lambda/whatwg-url/index.js +0 -25
  1092. package/node_modules_lambda/whatwg-url/lib/Function.js +0 -42
  1093. package/node_modules_lambda/whatwg-url/lib/URL-impl.js +0 -217
  1094. package/node_modules_lambda/whatwg-url/lib/URL.js +0 -442
  1095. package/node_modules_lambda/whatwg-url/lib/URLSearchParams-impl.js +0 -130
  1096. package/node_modules_lambda/whatwg-url/lib/URLSearchParams.js +0 -472
  1097. package/node_modules_lambda/whatwg-url/lib/VoidFunction.js +0 -26
  1098. package/node_modules_lambda/whatwg-url/lib/encoding.js +0 -16
  1099. package/node_modules_lambda/whatwg-url/lib/infra.js +0 -26
  1100. package/node_modules_lambda/whatwg-url/lib/percent-encoding.js +0 -142
  1101. package/node_modules_lambda/whatwg-url/lib/url-state-machine.js +0 -1234
  1102. package/node_modules_lambda/whatwg-url/lib/urlencoded.js +0 -106
  1103. package/node_modules_lambda/whatwg-url/lib/utils.js +0 -190
  1104. package/node_modules_lambda/whatwg-url/package.json +0 -58
  1105. package/node_modules_lambda/whatwg-url/webidl2js-wrapper.js +0 -7
  1106. package/node_modules_lambda/word-wrap/LICENSE +0 -21
  1107. package/node_modules_lambda/word-wrap/README.md +0 -182
  1108. package/node_modules_lambda/word-wrap/index.d.ts +0 -50
  1109. package/node_modules_lambda/word-wrap/index.js +0 -46
  1110. package/node_modules_lambda/word-wrap/package.json +0 -77
  1111. package/node_modules_lambda/ws/LICENSE +0 -19
  1112. package/node_modules_lambda/ws/README.md +0 -495
  1113. package/node_modules_lambda/ws/browser.js +0 -8
  1114. package/node_modules_lambda/ws/index.js +0 -13
  1115. package/node_modules_lambda/ws/lib/buffer-util.js +0 -127
  1116. package/node_modules_lambda/ws/lib/constants.js +0 -12
  1117. package/node_modules_lambda/ws/lib/event-target.js +0 -266
  1118. package/node_modules_lambda/ws/lib/extension.js +0 -203
  1119. package/node_modules_lambda/ws/lib/limiter.js +0 -55
  1120. package/node_modules_lambda/ws/lib/permessage-deflate.js +0 -511
  1121. package/node_modules_lambda/ws/lib/receiver.js +0 -618
  1122. package/node_modules_lambda/ws/lib/sender.js +0 -478
  1123. package/node_modules_lambda/ws/lib/stream.js +0 -159
  1124. package/node_modules_lambda/ws/lib/subprotocol.js +0 -62
  1125. package/node_modules_lambda/ws/lib/validation.js +0 -125
  1126. package/node_modules_lambda/ws/lib/websocket-server.js +0 -535
  1127. package/node_modules_lambda/ws/lib/websocket.js +0 -1296
  1128. package/node_modules_lambda/ws/package.json +0 -61
  1129. package/node_modules_lambda/ws/wrapper.mjs +0 -8
  1130. package/node_modules_lambda/xml-name-validator/LICENSE.txt +0 -176
  1131. package/node_modules_lambda/xml-name-validator/README.md +0 -35
  1132. package/node_modules_lambda/xml-name-validator/lib/xml-name-validator.js +0 -9
  1133. package/node_modules_lambda/xml-name-validator/package.json +0 -30
  1134. package/node_modules_lambda/xmlchars/LICENSE +0 -18
  1135. package/node_modules_lambda/xmlchars/README.md +0 -33
  1136. package/node_modules_lambda/xmlchars/package.json +0 -51
  1137. package/node_modules_lambda/xmlchars/xml/1.0/ed4.d.ts +0 -31
  1138. package/node_modules_lambda/xmlchars/xml/1.0/ed4.js +0 -44
  1139. package/node_modules_lambda/xmlchars/xml/1.0/ed4.js.map +0 -1
  1140. package/node_modules_lambda/xmlchars/xml/1.0/ed5.d.ts +0 -51
  1141. package/node_modules_lambda/xmlchars/xml/1.0/ed5.js +0 -105
  1142. package/node_modules_lambda/xmlchars/xml/1.0/ed5.js.map +0 -1
  1143. package/node_modules_lambda/xmlchars/xml/1.1/ed2.d.ts +0 -73
  1144. package/node_modules_lambda/xmlchars/xml/1.1/ed2.js +0 -145
  1145. package/node_modules_lambda/xmlchars/xml/1.1/ed2.js.map +0 -1
  1146. package/node_modules_lambda/xmlchars/xmlchars.d.ts +0 -170
  1147. package/node_modules_lambda/xmlchars/xmlchars.js +0 -191
  1148. package/node_modules_lambda/xmlchars/xmlchars.js.map +0 -1
  1149. package/node_modules_lambda/xmlchars/xmlns/1.0/ed3.d.ts +0 -28
  1150. package/node_modules_lambda/xmlchars/xmlns/1.0/ed3.js +0 -65
  1151. package/node_modules_lambda/xmlchars/xmlns/1.0/ed3.js.map +0 -1
@@ -1,2064 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const ed5 = require("xmlchars/xml/1.0/ed5");
4
- const ed2 = require("xmlchars/xml/1.1/ed2");
5
- const NSed3 = require("xmlchars/xmlns/1.0/ed3");
6
- var isS = ed5.isS;
7
- var isChar10 = ed5.isChar;
8
- var isNameStartChar = ed5.isNameStartChar;
9
- var isNameChar = ed5.isNameChar;
10
- var S_LIST = ed5.S_LIST;
11
- var NAME_RE = ed5.NAME_RE;
12
- var isChar11 = ed2.isChar;
13
- var isNCNameStartChar = NSed3.isNCNameStartChar;
14
- var isNCNameChar = NSed3.isNCNameChar;
15
- var NC_NAME_RE = NSed3.NC_NAME_RE;
16
- const XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace";
17
- const XMLNS_NAMESPACE = "http://www.w3.org/2000/xmlns/";
18
- const rootNS = {
19
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
- __proto__: null,
21
- xml: XML_NAMESPACE,
22
- xmlns: XMLNS_NAMESPACE,
23
- };
24
- const XML_ENTITIES = {
25
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
26
- __proto__: null,
27
- amp: "&",
28
- gt: ">",
29
- lt: "<",
30
- quot: "\"",
31
- apos: "'",
32
- };
33
- // EOC: end-of-chunk
34
- const EOC = -1;
35
- const NL_LIKE = -2;
36
- const S_BEGIN = 0; // Initial state.
37
- const S_BEGIN_WHITESPACE = 1; // leading whitespace
38
- const S_DOCTYPE = 2; // <!DOCTYPE
39
- const S_DOCTYPE_QUOTE = 3; // <!DOCTYPE "//blah
40
- const S_DTD = 4; // <!DOCTYPE "//blah" [ ...
41
- const S_DTD_QUOTED = 5; // <!DOCTYPE "//blah" [ "foo
42
- const S_DTD_OPEN_WAKA = 6;
43
- const S_DTD_OPEN_WAKA_BANG = 7;
44
- const S_DTD_COMMENT = 8; // <!--
45
- const S_DTD_COMMENT_ENDING = 9; // <!-- blah -
46
- const S_DTD_COMMENT_ENDED = 10; // <!-- blah --
47
- const S_DTD_PI = 11; // <?
48
- const S_DTD_PI_ENDING = 12; // <?hi "there" ?
49
- const S_TEXT = 13; // general stuff
50
- const S_ENTITY = 14; // &amp and such
51
- const S_OPEN_WAKA = 15; // <
52
- const S_OPEN_WAKA_BANG = 16; // <!...
53
- const S_COMMENT = 17; // <!--
54
- const S_COMMENT_ENDING = 18; // <!-- blah -
55
- const S_COMMENT_ENDED = 19; // <!-- blah --
56
- const S_CDATA = 20; // <![CDATA[ something
57
- const S_CDATA_ENDING = 21; // ]
58
- const S_CDATA_ENDING_2 = 22; // ]]
59
- const S_PI_FIRST_CHAR = 23; // <?hi, first char
60
- const S_PI_REST = 24; // <?hi, rest of the name
61
- const S_PI_BODY = 25; // <?hi there
62
- const S_PI_ENDING = 26; // <?hi "there" ?
63
- const S_XML_DECL_NAME_START = 27; // <?xml
64
- const S_XML_DECL_NAME = 28; // <?xml foo
65
- const S_XML_DECL_EQ = 29; // <?xml foo=
66
- const S_XML_DECL_VALUE_START = 30; // <?xml foo=
67
- const S_XML_DECL_VALUE = 31; // <?xml foo="bar"
68
- const S_XML_DECL_SEPARATOR = 32; // <?xml foo="bar"
69
- const S_XML_DECL_ENDING = 33; // <?xml ... ?
70
- const S_OPEN_TAG = 34; // <strong
71
- const S_OPEN_TAG_SLASH = 35; // <strong /
72
- const S_ATTRIB = 36; // <a
73
- const S_ATTRIB_NAME = 37; // <a foo
74
- const S_ATTRIB_NAME_SAW_WHITE = 38; // <a foo _
75
- const S_ATTRIB_VALUE = 39; // <a foo=
76
- const S_ATTRIB_VALUE_QUOTED = 40; // <a foo="bar
77
- const S_ATTRIB_VALUE_CLOSED = 41; // <a foo="bar"
78
- const S_ATTRIB_VALUE_UNQUOTED = 42; // <a foo=bar
79
- const S_CLOSE_TAG = 43; // </a
80
- const S_CLOSE_TAG_SAW_WHITE = 44; // </a >
81
- const TAB = 9;
82
- const NL = 0xA;
83
- const CR = 0xD;
84
- const SPACE = 0x20;
85
- const BANG = 0x21;
86
- const DQUOTE = 0x22;
87
- const AMP = 0x26;
88
- const SQUOTE = 0x27;
89
- const MINUS = 0x2D;
90
- const FORWARD_SLASH = 0x2F;
91
- const SEMICOLON = 0x3B;
92
- const LESS = 0x3C;
93
- const EQUAL = 0x3D;
94
- const GREATER = 0x3E;
95
- const QUESTION = 0x3F;
96
- const OPEN_BRACKET = 0x5B;
97
- const CLOSE_BRACKET = 0x5D;
98
- const NEL = 0x85;
99
- const LS = 0x2028; // Line Separator
100
- const isQuote = (c) => c === DQUOTE || c === SQUOTE;
101
- const QUOTES = [DQUOTE, SQUOTE];
102
- const DOCTYPE_TERMINATOR = [...QUOTES, OPEN_BRACKET, GREATER];
103
- const DTD_TERMINATOR = [...QUOTES, LESS, CLOSE_BRACKET];
104
- const XML_DECL_NAME_TERMINATOR = [EQUAL, QUESTION, ...S_LIST];
105
- const ATTRIB_VALUE_UNQUOTED_TERMINATOR = [...S_LIST, GREATER, AMP, LESS];
106
- function nsPairCheck(parser, prefix, uri) {
107
- switch (prefix) {
108
- case "xml":
109
- if (uri !== XML_NAMESPACE) {
110
- parser.fail(`xml prefix must be bound to ${XML_NAMESPACE}.`);
111
- }
112
- break;
113
- case "xmlns":
114
- if (uri !== XMLNS_NAMESPACE) {
115
- parser.fail(`xmlns prefix must be bound to ${XMLNS_NAMESPACE}.`);
116
- }
117
- break;
118
- default:
119
- }
120
- switch (uri) {
121
- case XMLNS_NAMESPACE:
122
- parser.fail(prefix === "" ?
123
- `the default namespace may not be set to ${uri}.` :
124
- `may not assign a prefix (even "xmlns") to the URI \
125
- ${XMLNS_NAMESPACE}.`);
126
- break;
127
- case XML_NAMESPACE:
128
- switch (prefix) {
129
- case "xml":
130
- // Assinging the XML namespace to "xml" is fine.
131
- break;
132
- case "":
133
- parser.fail(`the default namespace may not be set to ${uri}.`);
134
- break;
135
- default:
136
- parser.fail("may not assign the xml namespace to another prefix.");
137
- }
138
- break;
139
- default:
140
- }
141
- }
142
- function nsMappingCheck(parser, mapping) {
143
- for (const local of Object.keys(mapping)) {
144
- nsPairCheck(parser, local, mapping[local]);
145
- }
146
- }
147
- const isNCName = (name) => NC_NAME_RE.test(name);
148
- const isName = (name) => NAME_RE.test(name);
149
- const FORBIDDEN_START = 0;
150
- const FORBIDDEN_BRACKET = 1;
151
- const FORBIDDEN_BRACKET_BRACKET = 2;
152
- /**
153
- * The list of supported events.
154
- */
155
- exports.EVENTS = [
156
- "xmldecl",
157
- "text",
158
- "processinginstruction",
159
- "doctype",
160
- "comment",
161
- "opentagstart",
162
- "attribute",
163
- "opentag",
164
- "closetag",
165
- "cdata",
166
- "error",
167
- "end",
168
- "ready",
169
- ];
170
- const EVENT_NAME_TO_HANDLER_NAME = {
171
- xmldecl: "xmldeclHandler",
172
- text: "textHandler",
173
- processinginstruction: "piHandler",
174
- doctype: "doctypeHandler",
175
- comment: "commentHandler",
176
- opentagstart: "openTagStartHandler",
177
- attribute: "attributeHandler",
178
- opentag: "openTagHandler",
179
- closetag: "closeTagHandler",
180
- cdata: "cdataHandler",
181
- error: "errorHandler",
182
- end: "endHandler",
183
- ready: "readyHandler",
184
- };
185
- class SaxesParser {
186
- /**
187
- * @param opt The parser options.
188
- */
189
- constructor(opt) {
190
- this.opt = opt !== null && opt !== void 0 ? opt : {};
191
- this.fragmentOpt = !!this.opt.fragment;
192
- const xmlnsOpt = this.xmlnsOpt = !!this.opt.xmlns;
193
- this.trackPosition = this.opt.position !== false;
194
- this.fileName = this.opt.fileName;
195
- if (xmlnsOpt) {
196
- // This is the function we use to perform name checks on PIs and entities.
197
- // When namespaces are used, colons are not allowed in PI target names or
198
- // entity names. So the check depends on whether namespaces are used. See:
199
- //
200
- // https://www.w3.org/XML/xml-names-19990114-errata.html
201
- // NE08
202
- //
203
- this.nameStartCheck = isNCNameStartChar;
204
- this.nameCheck = isNCNameChar;
205
- this.isName = isNCName;
206
- // eslint-disable-next-line @typescript-eslint/unbound-method
207
- this.processAttribs = this.processAttribsNS;
208
- // eslint-disable-next-line @typescript-eslint/unbound-method
209
- this.pushAttrib = this.pushAttribNS;
210
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
211
- this.ns = Object.assign({ __proto__: null }, rootNS);
212
- const additional = this.opt.additionalNamespaces;
213
- if (additional != null) {
214
- nsMappingCheck(this, additional);
215
- Object.assign(this.ns, additional);
216
- }
217
- }
218
- else {
219
- this.nameStartCheck = isNameStartChar;
220
- this.nameCheck = isNameChar;
221
- this.isName = isName;
222
- // eslint-disable-next-line @typescript-eslint/unbound-method
223
- this.processAttribs = this.processAttribsPlain;
224
- // eslint-disable-next-line @typescript-eslint/unbound-method
225
- this.pushAttrib = this.pushAttribPlain;
226
- }
227
- //
228
- // The order of the members in this table needs to correspond to the state
229
- // numbers given to the states that correspond to the methods being recorded
230
- // here.
231
- //
232
- this.stateTable = [
233
- /* eslint-disable @typescript-eslint/unbound-method */
234
- this.sBegin,
235
- this.sBeginWhitespace,
236
- this.sDoctype,
237
- this.sDoctypeQuote,
238
- this.sDTD,
239
- this.sDTDQuoted,
240
- this.sDTDOpenWaka,
241
- this.sDTDOpenWakaBang,
242
- this.sDTDComment,
243
- this.sDTDCommentEnding,
244
- this.sDTDCommentEnded,
245
- this.sDTDPI,
246
- this.sDTDPIEnding,
247
- this.sText,
248
- this.sEntity,
249
- this.sOpenWaka,
250
- this.sOpenWakaBang,
251
- this.sComment,
252
- this.sCommentEnding,
253
- this.sCommentEnded,
254
- this.sCData,
255
- this.sCDataEnding,
256
- this.sCDataEnding2,
257
- this.sPIFirstChar,
258
- this.sPIRest,
259
- this.sPIBody,
260
- this.sPIEnding,
261
- this.sXMLDeclNameStart,
262
- this.sXMLDeclName,
263
- this.sXMLDeclEq,
264
- this.sXMLDeclValueStart,
265
- this.sXMLDeclValue,
266
- this.sXMLDeclSeparator,
267
- this.sXMLDeclEnding,
268
- this.sOpenTag,
269
- this.sOpenTagSlash,
270
- this.sAttrib,
271
- this.sAttribName,
272
- this.sAttribNameSawWhite,
273
- this.sAttribValue,
274
- this.sAttribValueQuoted,
275
- this.sAttribValueClosed,
276
- this.sAttribValueUnquoted,
277
- this.sCloseTag,
278
- this.sCloseTagSawWhite,
279
- ];
280
- this._init();
281
- }
282
- /**
283
- * Indicates whether or not the parser is closed. If ``true``, wait for
284
- * the ``ready`` event to write again.
285
- */
286
- get closed() {
287
- return this._closed;
288
- }
289
- _init() {
290
- var _a;
291
- this.openWakaBang = "";
292
- this.text = "";
293
- this.name = "";
294
- this.piTarget = "";
295
- this.entity = "";
296
- this.q = null;
297
- this.tags = [];
298
- this.tag = null;
299
- this.topNS = null;
300
- this.chunk = "";
301
- this.chunkPosition = 0;
302
- this.i = 0;
303
- this.prevI = 0;
304
- this.carriedFromPrevious = undefined;
305
- this.forbiddenState = FORBIDDEN_START;
306
- this.attribList = [];
307
- // The logic is organized so as to minimize the need to check
308
- // this.opt.fragment while parsing.
309
- const { fragmentOpt } = this;
310
- this.state = fragmentOpt ? S_TEXT : S_BEGIN;
311
- // We want these to be all true if we are dealing with a fragment.
312
- this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot =
313
- this.sawRoot = fragmentOpt;
314
- // An XML declaration is intially possible only when parsing whole
315
- // documents.
316
- this.xmlDeclPossible = !fragmentOpt;
317
- this.xmlDeclExpects = ["version"];
318
- this.entityReturnState = undefined;
319
- let { defaultXMLVersion } = this.opt;
320
- if (defaultXMLVersion === undefined) {
321
- if (this.opt.forceXMLVersion === true) {
322
- throw new Error("forceXMLVersion set but defaultXMLVersion is not set");
323
- }
324
- defaultXMLVersion = "1.0";
325
- }
326
- this.setXMLVersion(defaultXMLVersion);
327
- this.positionAtNewLine = 0;
328
- this.doctype = false;
329
- this._closed = false;
330
- this.xmlDecl = {
331
- version: undefined,
332
- encoding: undefined,
333
- standalone: undefined,
334
- };
335
- this.line = 1;
336
- this.column = 0;
337
- this.ENTITIES = Object.create(XML_ENTITIES);
338
- // eslint-disable-next-line no-unused-expressions
339
- (_a = this.readyHandler) === null || _a === void 0 ? void 0 : _a.call(this);
340
- }
341
- /**
342
- * The stream position the parser is currently looking at. This field is
343
- * zero-based.
344
- *
345
- * This field is not based on counting Unicode characters but is to be
346
- * interpreted as a plain index into a JavaScript string.
347
- */
348
- get position() {
349
- return this.chunkPosition + this.i;
350
- }
351
- /**
352
- * The column number of the next character to be read by the parser. *
353
- * This field is zero-based. (The first column in a line is 0.)
354
- *
355
- * This field reports the index at which the next character would be in the
356
- * line if the line were represented as a JavaScript string. Note that this
357
- * *can* be different to a count based on the number of *Unicode characters*
358
- * due to how JavaScript handles astral plane characters.
359
- *
360
- * See [[column]] for a number that corresponds to a count of Unicode
361
- * characters.
362
- */
363
- get columnIndex() {
364
- return this.position - this.positionAtNewLine;
365
- }
366
- /**
367
- * Set an event listener on an event. The parser supports one handler per
368
- * event type. If you try to set an event handler over an existing handler,
369
- * the old handler is silently overwritten.
370
- *
371
- * @param name The event to listen to.
372
- *
373
- * @param handler The handler to set.
374
- */
375
- on(name, handler) {
376
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
377
- this[EVENT_NAME_TO_HANDLER_NAME[name]] = handler;
378
- }
379
- /**
380
- * Unset an event handler.
381
- *
382
- * @parma name The event to stop listening to.
383
- */
384
- off(name) {
385
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
386
- this[EVENT_NAME_TO_HANDLER_NAME[name]] = undefined;
387
- }
388
- /**
389
- * Make an error object. The error object will have a message that contains
390
- * the ``fileName`` option passed at the creation of the parser. If position
391
- * tracking was turned on, it will also have line and column number
392
- * information.
393
- *
394
- * @param message The message describing the error to report.
395
- *
396
- * @returns An error object with a properly formatted message.
397
- */
398
- makeError(message) {
399
- var _a;
400
- let msg = (_a = this.fileName) !== null && _a !== void 0 ? _a : "";
401
- if (this.trackPosition) {
402
- if (msg.length > 0) {
403
- msg += ":";
404
- }
405
- msg += `${this.line}:${this.column}`;
406
- }
407
- if (msg.length > 0) {
408
- msg += ": ";
409
- }
410
- return new Error(msg + message);
411
- }
412
- /**
413
- * Report a parsing error. This method is made public so that client code may
414
- * check for issues that are outside the scope of this project and can report
415
- * errors.
416
- *
417
- * @param message The error to report.
418
- *
419
- * @returns this
420
- */
421
- fail(message) {
422
- const err = this.makeError(message);
423
- const handler = this.errorHandler;
424
- if (handler === undefined) {
425
- throw err;
426
- }
427
- else {
428
- handler(err);
429
- }
430
- return this;
431
- }
432
- /**
433
- * Write a XML data to the parser.
434
- *
435
- * @param chunk The XML data to write.
436
- *
437
- * @returns this
438
- */
439
- write(chunk) {
440
- if (this.closed) {
441
- return this.fail("cannot write after close; assign an onready handler.");
442
- }
443
- let end = false;
444
- if (chunk === null) {
445
- // We cannot return immediately because carriedFromPrevious may need
446
- // processing.
447
- end = true;
448
- chunk = "";
449
- }
450
- else if (typeof chunk === "object") {
451
- chunk = chunk.toString();
452
- }
453
- // We checked if performing a pre-decomposition of the string into an array
454
- // of single complete characters (``Array.from(chunk)``) would be faster
455
- // than the current repeated calls to ``charCodeAt``. As of August 2018, it
456
- // isn't. (There may be Node-specific code that would perform faster than
457
- // ``Array.from`` but don't want to be dependent on Node.)
458
- if (this.carriedFromPrevious !== undefined) {
459
- // The previous chunk had char we must carry over.
460
- chunk = `${this.carriedFromPrevious}${chunk}`;
461
- this.carriedFromPrevious = undefined;
462
- }
463
- let limit = chunk.length;
464
- const lastCode = chunk.charCodeAt(limit - 1);
465
- if (!end &&
466
- // A trailing CR or surrogate must be carried over to the next
467
- // chunk.
468
- (lastCode === CR || (lastCode >= 0xD800 && lastCode <= 0xDBFF))) {
469
- // The chunk ends with a character that must be carried over. We cannot
470
- // know how to handle it until we get the next chunk or the end of the
471
- // stream. So save it for later.
472
- this.carriedFromPrevious = chunk[limit - 1];
473
- limit--;
474
- chunk = chunk.slice(0, limit);
475
- }
476
- const { stateTable } = this;
477
- this.chunk = chunk;
478
- this.i = 0;
479
- while (this.i < limit) {
480
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
481
- stateTable[this.state].call(this);
482
- }
483
- this.chunkPosition += limit;
484
- return end ? this.end() : this;
485
- }
486
- /**
487
- * Close the current stream. Perform final well-formedness checks and reset
488
- * the parser tstate.
489
- *
490
- * @returns this
491
- */
492
- close() {
493
- return this.write(null);
494
- }
495
- /**
496
- * Get a single code point out of the current chunk. This updates the current
497
- * position if we do position tracking.
498
- *
499
- * This is the algorithm to use for XML 1.0.
500
- *
501
- * @returns The character read.
502
- */
503
- getCode10() {
504
- const { chunk, i } = this;
505
- this.prevI = i;
506
- // Yes, we do this instead of doing this.i++. Doing it this way, we do not
507
- // read this.i again, which is a bit faster.
508
- this.i = i + 1;
509
- if (i >= chunk.length) {
510
- return EOC;
511
- }
512
- // Using charCodeAt and handling the surrogates ourselves is faster
513
- // than using codePointAt.
514
- const code = chunk.charCodeAt(i);
515
- this.column++;
516
- if (code < 0xD800) {
517
- if (code >= SPACE || code === TAB) {
518
- return code;
519
- }
520
- switch (code) {
521
- case NL:
522
- this.line++;
523
- this.column = 0;
524
- this.positionAtNewLine = this.position;
525
- return NL;
526
- case CR:
527
- // We may get NaN if we read past the end of the chunk, which is fine.
528
- if (chunk.charCodeAt(i + 1) === NL) {
529
- // A \r\n sequence is converted to \n so we have to skip over the
530
- // next character. We already know it has a size of 1 so ++ is fine
531
- // here.
532
- this.i = i + 2;
533
- }
534
- // Otherwise, a \r is just converted to \n, so we don't have to skip
535
- // ahead.
536
- // In either case, \r becomes \n.
537
- this.line++;
538
- this.column = 0;
539
- this.positionAtNewLine = this.position;
540
- return NL_LIKE;
541
- default:
542
- // If we get here, then code < SPACE and it is not NL CR or TAB.
543
- this.fail("disallowed character.");
544
- return code;
545
- }
546
- }
547
- if (code > 0xDBFF) {
548
- // This is a specialized version of isChar10 that takes into account
549
- // that in this context code > 0xDBFF and code <= 0xFFFF. So it does not
550
- // test cases that don't need testing.
551
- if (!(code >= 0xE000 && code <= 0xFFFD)) {
552
- this.fail("disallowed character.");
553
- }
554
- return code;
555
- }
556
- const final = 0x10000 + ((code - 0xD800) * 0x400) +
557
- (chunk.charCodeAt(i + 1) - 0xDC00);
558
- this.i = i + 2;
559
- // This is a specialized version of isChar10 that takes into account that in
560
- // this context necessarily final >= 0x10000.
561
- if (final > 0x10FFFF) {
562
- this.fail("disallowed character.");
563
- }
564
- return final;
565
- }
566
- /**
567
- * Get a single code point out of the current chunk. This updates the current
568
- * position if we do position tracking.
569
- *
570
- * This is the algorithm to use for XML 1.1.
571
- *
572
- * @returns {number} The character read.
573
- */
574
- getCode11() {
575
- const { chunk, i } = this;
576
- this.prevI = i;
577
- // Yes, we do this instead of doing this.i++. Doing it this way, we do not
578
- // read this.i again, which is a bit faster.
579
- this.i = i + 1;
580
- if (i >= chunk.length) {
581
- return EOC;
582
- }
583
- // Using charCodeAt and handling the surrogates ourselves is faster
584
- // than using codePointAt.
585
- const code = chunk.charCodeAt(i);
586
- this.column++;
587
- if (code < 0xD800) {
588
- if ((code > 0x1F && code < 0x7F) || (code > 0x9F && code !== LS) ||
589
- code === TAB) {
590
- return code;
591
- }
592
- switch (code) {
593
- case NL: // 0xA
594
- this.line++;
595
- this.column = 0;
596
- this.positionAtNewLine = this.position;
597
- return NL;
598
- case CR: { // 0xD
599
- // We may get NaN if we read past the end of the chunk, which is
600
- // fine.
601
- const next = chunk.charCodeAt(i + 1);
602
- if (next === NL || next === NEL) {
603
- // A CR NL or CR NEL sequence is converted to NL so we have to skip
604
- // over the next character. We already know it has a size of 1.
605
- this.i = i + 2;
606
- }
607
- // Otherwise, a CR is just converted to NL, no skip.
608
- }
609
- /* yes, fall through */
610
- case NEL: // 0x85
611
- case LS: // Ox2028
612
- this.line++;
613
- this.column = 0;
614
- this.positionAtNewLine = this.position;
615
- return NL_LIKE;
616
- default:
617
- this.fail("disallowed character.");
618
- return code;
619
- }
620
- }
621
- if (code > 0xDBFF) {
622
- // This is a specialized version of isCharAndNotRestricted that takes into
623
- // account that in this context code > 0xDBFF and code <= 0xFFFF. So it
624
- // does not test cases that don't need testing.
625
- if (!(code >= 0xE000 && code <= 0xFFFD)) {
626
- this.fail("disallowed character.");
627
- }
628
- return code;
629
- }
630
- const final = 0x10000 + ((code - 0xD800) * 0x400) +
631
- (chunk.charCodeAt(i + 1) - 0xDC00);
632
- this.i = i + 2;
633
- // This is a specialized version of isCharAndNotRestricted that takes into
634
- // account that in this context necessarily final >= 0x10000.
635
- if (final > 0x10FFFF) {
636
- this.fail("disallowed character.");
637
- }
638
- return final;
639
- }
640
- /**
641
- * Like ``getCode`` but with the return value normalized so that ``NL`` is
642
- * returned for ``NL_LIKE``.
643
- */
644
- getCodeNorm() {
645
- const c = this.getCode();
646
- return c === NL_LIKE ? NL : c;
647
- }
648
- unget() {
649
- this.i = this.prevI;
650
- this.column--;
651
- }
652
- /**
653
- * Capture characters into a buffer until encountering one of a set of
654
- * characters.
655
- *
656
- * @param chars An array of codepoints. Encountering a character in the array
657
- * ends the capture. (``chars`` may safely contain ``NL``.)
658
- *
659
- * @return The character code that made the capture end, or ``EOC`` if we hit
660
- * the end of the chunk. The return value cannot be NL_LIKE: NL is returned
661
- * instead.
662
- */
663
- captureTo(chars) {
664
- let { i: start } = this;
665
- const { chunk } = this;
666
- // eslint-disable-next-line no-constant-condition
667
- while (true) {
668
- const c = this.getCode();
669
- const isNLLike = c === NL_LIKE;
670
- const final = isNLLike ? NL : c;
671
- if (final === EOC || chars.includes(final)) {
672
- this.text += chunk.slice(start, this.prevI);
673
- return final;
674
- }
675
- if (isNLLike) {
676
- this.text += `${chunk.slice(start, this.prevI)}\n`;
677
- start = this.i;
678
- }
679
- }
680
- }
681
- /**
682
- * Capture characters into a buffer until encountering a character.
683
- *
684
- * @param char The codepoint that ends the capture. **NOTE ``char`` MAY NOT
685
- * CONTAIN ``NL``.** Passing ``NL`` will result in buggy behavior.
686
- *
687
- * @return ``true`` if we ran into the character. Otherwise, we ran into the
688
- * end of the current chunk.
689
- */
690
- captureToChar(char) {
691
- let { i: start } = this;
692
- const { chunk } = this;
693
- // eslint-disable-next-line no-constant-condition
694
- while (true) {
695
- let c = this.getCode();
696
- switch (c) {
697
- case NL_LIKE:
698
- this.text += `${chunk.slice(start, this.prevI)}\n`;
699
- start = this.i;
700
- c = NL;
701
- break;
702
- case EOC:
703
- this.text += chunk.slice(start);
704
- return false;
705
- default:
706
- }
707
- if (c === char) {
708
- this.text += chunk.slice(start, this.prevI);
709
- return true;
710
- }
711
- }
712
- }
713
- /**
714
- * Capture characters that satisfy ``isNameChar`` into the ``name`` field of
715
- * this parser.
716
- *
717
- * @return The character code that made the test fail, or ``EOC`` if we hit
718
- * the end of the chunk. The return value cannot be NL_LIKE: NL is returned
719
- * instead.
720
- */
721
- captureNameChars() {
722
- const { chunk, i: start } = this;
723
- // eslint-disable-next-line no-constant-condition
724
- while (true) {
725
- const c = this.getCode();
726
- if (c === EOC) {
727
- this.name += chunk.slice(start);
728
- return EOC;
729
- }
730
- // NL is not a name char so we don't have to test specifically for it.
731
- if (!isNameChar(c)) {
732
- this.name += chunk.slice(start, this.prevI);
733
- return c === NL_LIKE ? NL : c;
734
- }
735
- }
736
- }
737
- /**
738
- * Skip white spaces.
739
- *
740
- * @return The character that ended the skip, or ``EOC`` if we hit
741
- * the end of the chunk. The return value cannot be NL_LIKE: NL is returned
742
- * instead.
743
- */
744
- skipSpaces() {
745
- // eslint-disable-next-line no-constant-condition
746
- while (true) {
747
- const c = this.getCodeNorm();
748
- if (c === EOC || !isS(c)) {
749
- return c;
750
- }
751
- }
752
- }
753
- setXMLVersion(version) {
754
- this.currentXMLVersion = version;
755
- /* eslint-disable @typescript-eslint/unbound-method */
756
- if (version === "1.0") {
757
- this.isChar = isChar10;
758
- this.getCode = this.getCode10;
759
- }
760
- else {
761
- this.isChar = isChar11;
762
- this.getCode = this.getCode11;
763
- }
764
- /* eslint-enable @typescript-eslint/unbound-method */
765
- }
766
- // STATE ENGINE METHODS
767
- // This needs to be a state separate from S_BEGIN_WHITESPACE because we want
768
- // to be sure never to come back to this state later.
769
- sBegin() {
770
- // We are essentially peeking at the first character of the chunk. Since
771
- // S_BEGIN can be in effect only when we start working on the first chunk,
772
- // the index at which we must look is necessarily 0. Note also that the
773
- // following test does not depend on decoding surrogates.
774
- // If the initial character is 0xFEFF, ignore it.
775
- if (this.chunk.charCodeAt(0) === 0xFEFF) {
776
- this.i++;
777
- this.column++;
778
- }
779
- this.state = S_BEGIN_WHITESPACE;
780
- }
781
- sBeginWhitespace() {
782
- // We need to know whether we've encountered spaces or not because as soon
783
- // as we run into a space, an XML declaration is no longer possible. Rather
784
- // than slow down skipSpaces even in places where we don't care whether it
785
- // skipped anything or not, we check whether prevI is equal to the value of
786
- // i from before we skip spaces.
787
- const iBefore = this.i;
788
- const c = this.skipSpaces();
789
- if (this.prevI !== iBefore) {
790
- this.xmlDeclPossible = false;
791
- }
792
- switch (c) {
793
- case LESS:
794
- this.state = S_OPEN_WAKA;
795
- // We could naively call closeText but in this state, it is not normal
796
- // to have text be filled with any data.
797
- if (this.text.length !== 0) {
798
- throw new Error("no-empty text at start");
799
- }
800
- break;
801
- case EOC:
802
- break;
803
- default:
804
- this.unget();
805
- this.state = S_TEXT;
806
- this.xmlDeclPossible = false;
807
- }
808
- }
809
- sDoctype() {
810
- var _a;
811
- const c = this.captureTo(DOCTYPE_TERMINATOR);
812
- switch (c) {
813
- case GREATER: {
814
- // eslint-disable-next-line no-unused-expressions
815
- (_a = this.doctypeHandler) === null || _a === void 0 ? void 0 : _a.call(this, this.text);
816
- this.text = "";
817
- this.state = S_TEXT;
818
- this.doctype = true; // just remember that we saw it.
819
- break;
820
- }
821
- case EOC:
822
- break;
823
- default:
824
- this.text += String.fromCodePoint(c);
825
- if (c === OPEN_BRACKET) {
826
- this.state = S_DTD;
827
- }
828
- else if (isQuote(c)) {
829
- this.state = S_DOCTYPE_QUOTE;
830
- this.q = c;
831
- }
832
- }
833
- }
834
- sDoctypeQuote() {
835
- const q = this.q;
836
- if (this.captureToChar(q)) {
837
- this.text += String.fromCodePoint(q);
838
- this.q = null;
839
- this.state = S_DOCTYPE;
840
- }
841
- }
842
- sDTD() {
843
- const c = this.captureTo(DTD_TERMINATOR);
844
- if (c === EOC) {
845
- return;
846
- }
847
- this.text += String.fromCodePoint(c);
848
- if (c === CLOSE_BRACKET) {
849
- this.state = S_DOCTYPE;
850
- }
851
- else if (c === LESS) {
852
- this.state = S_DTD_OPEN_WAKA;
853
- }
854
- else if (isQuote(c)) {
855
- this.state = S_DTD_QUOTED;
856
- this.q = c;
857
- }
858
- }
859
- sDTDQuoted() {
860
- const q = this.q;
861
- if (this.captureToChar(q)) {
862
- this.text += String.fromCodePoint(q);
863
- this.state = S_DTD;
864
- this.q = null;
865
- }
866
- }
867
- sDTDOpenWaka() {
868
- const c = this.getCodeNorm();
869
- this.text += String.fromCodePoint(c);
870
- switch (c) {
871
- case BANG:
872
- this.state = S_DTD_OPEN_WAKA_BANG;
873
- this.openWakaBang = "";
874
- break;
875
- case QUESTION:
876
- this.state = S_DTD_PI;
877
- break;
878
- default:
879
- this.state = S_DTD;
880
- }
881
- }
882
- sDTDOpenWakaBang() {
883
- const char = String.fromCodePoint(this.getCodeNorm());
884
- const owb = this.openWakaBang += char;
885
- this.text += char;
886
- if (owb !== "-") {
887
- this.state = owb === "--" ? S_DTD_COMMENT : S_DTD;
888
- this.openWakaBang = "";
889
- }
890
- }
891
- sDTDComment() {
892
- if (this.captureToChar(MINUS)) {
893
- this.text += "-";
894
- this.state = S_DTD_COMMENT_ENDING;
895
- }
896
- }
897
- sDTDCommentEnding() {
898
- const c = this.getCodeNorm();
899
- this.text += String.fromCodePoint(c);
900
- this.state = c === MINUS ? S_DTD_COMMENT_ENDED : S_DTD_COMMENT;
901
- }
902
- sDTDCommentEnded() {
903
- const c = this.getCodeNorm();
904
- this.text += String.fromCodePoint(c);
905
- if (c === GREATER) {
906
- this.state = S_DTD;
907
- }
908
- else {
909
- this.fail("malformed comment.");
910
- // <!-- blah -- bloo --> will be recorded as
911
- // a comment of " blah -- bloo "
912
- this.state = S_DTD_COMMENT;
913
- }
914
- }
915
- sDTDPI() {
916
- if (this.captureToChar(QUESTION)) {
917
- this.text += "?";
918
- this.state = S_DTD_PI_ENDING;
919
- }
920
- }
921
- sDTDPIEnding() {
922
- const c = this.getCodeNorm();
923
- this.text += String.fromCodePoint(c);
924
- if (c === GREATER) {
925
- this.state = S_DTD;
926
- }
927
- }
928
- sText() {
929
- //
930
- // We did try a version of saxes where the S_TEXT state was split in two
931
- // states: one for text inside the root element, and one for text
932
- // outside. This was avoiding having to test this.tags.length to decide
933
- // what implementation to actually use.
934
- //
935
- // Peformance testing on gigabyte-size files did not show any advantage to
936
- // using the two states solution instead of the current one. Conversely, it
937
- // made the code a bit more complicated elsewhere. For instance, a comment
938
- // can appear before the root element so when a comment ended it was
939
- // necessary to determine whether to return to the S_TEXT state or to the
940
- // new text-outside-root state.
941
- //
942
- if (this.tags.length !== 0) {
943
- this.handleTextInRoot();
944
- }
945
- else {
946
- this.handleTextOutsideRoot();
947
- }
948
- }
949
- sEntity() {
950
- // This is essentially a specialized version of captureToChar(SEMICOLON...)
951
- let { i: start } = this;
952
- const { chunk } = this;
953
- // eslint-disable-next-line no-labels, no-restricted-syntax
954
- loop:
955
- // eslint-disable-next-line no-constant-condition
956
- while (true) {
957
- switch (this.getCode()) {
958
- case NL_LIKE:
959
- this.entity += `${chunk.slice(start, this.prevI)}\n`;
960
- start = this.i;
961
- break;
962
- case SEMICOLON: {
963
- const { entityReturnState } = this;
964
- const entity = this.entity + chunk.slice(start, this.prevI);
965
- this.state = entityReturnState;
966
- let parsed;
967
- if (entity === "") {
968
- this.fail("empty entity name.");
969
- parsed = "&;";
970
- }
971
- else {
972
- parsed = this.parseEntity(entity);
973
- this.entity = "";
974
- }
975
- if (entityReturnState !== S_TEXT || this.textHandler !== undefined) {
976
- this.text += parsed;
977
- }
978
- // eslint-disable-next-line no-labels
979
- break loop;
980
- }
981
- case EOC:
982
- this.entity += chunk.slice(start);
983
- // eslint-disable-next-line no-labels
984
- break loop;
985
- default:
986
- }
987
- }
988
- }
989
- sOpenWaka() {
990
- // Reminder: a state handler is called with at least one character
991
- // available in the current chunk. So the first call to get code inside of
992
- // a state handler cannot return ``EOC``. That's why we don't test
993
- // for it.
994
- const c = this.getCode();
995
- // either a /, ?, !, or text is coming next.
996
- if (isNameStartChar(c)) {
997
- this.state = S_OPEN_TAG;
998
- this.unget();
999
- this.xmlDeclPossible = false;
1000
- }
1001
- else {
1002
- switch (c) {
1003
- case FORWARD_SLASH:
1004
- this.state = S_CLOSE_TAG;
1005
- this.xmlDeclPossible = false;
1006
- break;
1007
- case BANG:
1008
- this.state = S_OPEN_WAKA_BANG;
1009
- this.openWakaBang = "";
1010
- this.xmlDeclPossible = false;
1011
- break;
1012
- case QUESTION:
1013
- this.state = S_PI_FIRST_CHAR;
1014
- break;
1015
- default:
1016
- this.fail("disallowed character in tag name");
1017
- this.state = S_TEXT;
1018
- this.xmlDeclPossible = false;
1019
- }
1020
- }
1021
- }
1022
- sOpenWakaBang() {
1023
- this.openWakaBang += String.fromCodePoint(this.getCodeNorm());
1024
- switch (this.openWakaBang) {
1025
- case "[CDATA[":
1026
- if (!this.sawRoot && !this.reportedTextBeforeRoot) {
1027
- this.fail("text data outside of root node.");
1028
- this.reportedTextBeforeRoot = true;
1029
- }
1030
- if (this.closedRoot && !this.reportedTextAfterRoot) {
1031
- this.fail("text data outside of root node.");
1032
- this.reportedTextAfterRoot = true;
1033
- }
1034
- this.state = S_CDATA;
1035
- this.openWakaBang = "";
1036
- break;
1037
- case "--":
1038
- this.state = S_COMMENT;
1039
- this.openWakaBang = "";
1040
- break;
1041
- case "DOCTYPE":
1042
- this.state = S_DOCTYPE;
1043
- if (this.doctype || this.sawRoot) {
1044
- this.fail("inappropriately located doctype declaration.");
1045
- }
1046
- this.openWakaBang = "";
1047
- break;
1048
- default:
1049
- // 7 happens to be the maximum length of the string that can possibly
1050
- // match one of the cases above.
1051
- if (this.openWakaBang.length >= 7) {
1052
- this.fail("incorrect syntax.");
1053
- }
1054
- }
1055
- }
1056
- sComment() {
1057
- if (this.captureToChar(MINUS)) {
1058
- this.state = S_COMMENT_ENDING;
1059
- }
1060
- }
1061
- sCommentEnding() {
1062
- var _a;
1063
- const c = this.getCodeNorm();
1064
- if (c === MINUS) {
1065
- this.state = S_COMMENT_ENDED;
1066
- // eslint-disable-next-line no-unused-expressions
1067
- (_a = this.commentHandler) === null || _a === void 0 ? void 0 : _a.call(this, this.text);
1068
- this.text = "";
1069
- }
1070
- else {
1071
- this.text += `-${String.fromCodePoint(c)}`;
1072
- this.state = S_COMMENT;
1073
- }
1074
- }
1075
- sCommentEnded() {
1076
- const c = this.getCodeNorm();
1077
- if (c !== GREATER) {
1078
- this.fail("malformed comment.");
1079
- // <!-- blah -- bloo --> will be recorded as
1080
- // a comment of " blah -- bloo "
1081
- this.text += `--${String.fromCodePoint(c)}`;
1082
- this.state = S_COMMENT;
1083
- }
1084
- else {
1085
- this.state = S_TEXT;
1086
- }
1087
- }
1088
- sCData() {
1089
- if (this.captureToChar(CLOSE_BRACKET)) {
1090
- this.state = S_CDATA_ENDING;
1091
- }
1092
- }
1093
- sCDataEnding() {
1094
- const c = this.getCodeNorm();
1095
- if (c === CLOSE_BRACKET) {
1096
- this.state = S_CDATA_ENDING_2;
1097
- }
1098
- else {
1099
- this.text += `]${String.fromCodePoint(c)}`;
1100
- this.state = S_CDATA;
1101
- }
1102
- }
1103
- sCDataEnding2() {
1104
- var _a;
1105
- const c = this.getCodeNorm();
1106
- switch (c) {
1107
- case GREATER: {
1108
- // eslint-disable-next-line no-unused-expressions
1109
- (_a = this.cdataHandler) === null || _a === void 0 ? void 0 : _a.call(this, this.text);
1110
- this.text = "";
1111
- this.state = S_TEXT;
1112
- break;
1113
- }
1114
- case CLOSE_BRACKET:
1115
- this.text += "]";
1116
- break;
1117
- default:
1118
- this.text += `]]${String.fromCodePoint(c)}`;
1119
- this.state = S_CDATA;
1120
- }
1121
- }
1122
- // We need this separate state to check the first character fo the pi target
1123
- // with this.nameStartCheck which allows less characters than this.nameCheck.
1124
- sPIFirstChar() {
1125
- const c = this.getCodeNorm();
1126
- // This is first because in the case where the file is well-formed this is
1127
- // the branch taken. We optimize for well-formedness.
1128
- if (this.nameStartCheck(c)) {
1129
- this.piTarget += String.fromCodePoint(c);
1130
- this.state = S_PI_REST;
1131
- }
1132
- else if (c === QUESTION || isS(c)) {
1133
- this.fail("processing instruction without a target.");
1134
- this.state = c === QUESTION ? S_PI_ENDING : S_PI_BODY;
1135
- }
1136
- else {
1137
- this.fail("disallowed character in processing instruction name.");
1138
- this.piTarget += String.fromCodePoint(c);
1139
- this.state = S_PI_REST;
1140
- }
1141
- }
1142
- sPIRest() {
1143
- // Capture characters into a piTarget while ``this.nameCheck`` run on the
1144
- // character read returns true.
1145
- const { chunk, i: start } = this;
1146
- // eslint-disable-next-line no-constant-condition
1147
- while (true) {
1148
- const c = this.getCodeNorm();
1149
- if (c === EOC) {
1150
- this.piTarget += chunk.slice(start);
1151
- return;
1152
- }
1153
- // NL cannot satisfy this.nameCheck so we don't have to test specifically
1154
- // for it.
1155
- if (!this.nameCheck(c)) {
1156
- this.piTarget += chunk.slice(start, this.prevI);
1157
- const isQuestion = c === QUESTION;
1158
- if (isQuestion || isS(c)) {
1159
- if (this.piTarget === "xml") {
1160
- if (!this.xmlDeclPossible) {
1161
- this.fail("an XML declaration must be at the start of the document.");
1162
- }
1163
- this.state = isQuestion ? S_XML_DECL_ENDING : S_XML_DECL_NAME_START;
1164
- }
1165
- else {
1166
- this.state = isQuestion ? S_PI_ENDING : S_PI_BODY;
1167
- }
1168
- }
1169
- else {
1170
- this.fail("disallowed character in processing instruction name.");
1171
- this.piTarget += String.fromCodePoint(c);
1172
- }
1173
- break;
1174
- }
1175
- }
1176
- }
1177
- sPIBody() {
1178
- if (this.text.length === 0) {
1179
- const c = this.getCodeNorm();
1180
- if (c === QUESTION) {
1181
- this.state = S_PI_ENDING;
1182
- }
1183
- else if (!isS(c)) {
1184
- this.text = String.fromCodePoint(c);
1185
- }
1186
- }
1187
- // The question mark character is not valid inside any of the XML
1188
- // declaration name/value pairs.
1189
- else if (this.captureToChar(QUESTION)) {
1190
- this.state = S_PI_ENDING;
1191
- }
1192
- }
1193
- sPIEnding() {
1194
- var _a;
1195
- const c = this.getCodeNorm();
1196
- if (c === GREATER) {
1197
- const { piTarget } = this;
1198
- if (piTarget.toLowerCase() === "xml") {
1199
- this.fail("the XML declaration must appear at the start of the document.");
1200
- }
1201
- // eslint-disable-next-line no-unused-expressions
1202
- (_a = this.piHandler) === null || _a === void 0 ? void 0 : _a.call(this, {
1203
- target: piTarget,
1204
- body: this.text,
1205
- });
1206
- this.piTarget = this.text = "";
1207
- this.state = S_TEXT;
1208
- }
1209
- else if (c === QUESTION) {
1210
- // We ran into ?? as part of a processing instruction. We initially took
1211
- // the first ? as a sign that the PI was ending, but it is not. So we have
1212
- // to add it to the body but we take the new ? as a sign that the PI is
1213
- // ending.
1214
- this.text += "?";
1215
- }
1216
- else {
1217
- this.text += `?${String.fromCodePoint(c)}`;
1218
- this.state = S_PI_BODY;
1219
- }
1220
- this.xmlDeclPossible = false;
1221
- }
1222
- sXMLDeclNameStart() {
1223
- const c = this.skipSpaces();
1224
- // The question mark character is not valid inside any of the XML
1225
- // declaration name/value pairs.
1226
- if (c === QUESTION) {
1227
- // It is valid to go to S_XML_DECL_ENDING from this state.
1228
- this.state = S_XML_DECL_ENDING;
1229
- return;
1230
- }
1231
- if (c !== EOC) {
1232
- this.state = S_XML_DECL_NAME;
1233
- this.name = String.fromCodePoint(c);
1234
- }
1235
- }
1236
- sXMLDeclName() {
1237
- const c = this.captureTo(XML_DECL_NAME_TERMINATOR);
1238
- // The question mark character is not valid inside any of the XML
1239
- // declaration name/value pairs.
1240
- if (c === QUESTION) {
1241
- this.state = S_XML_DECL_ENDING;
1242
- this.name += this.text;
1243
- this.text = "";
1244
- this.fail("XML declaration is incomplete.");
1245
- return;
1246
- }
1247
- if (!(isS(c) || c === EQUAL)) {
1248
- return;
1249
- }
1250
- this.name += this.text;
1251
- this.text = "";
1252
- if (!this.xmlDeclExpects.includes(this.name)) {
1253
- switch (this.name.length) {
1254
- case 0:
1255
- this.fail("did not expect any more name/value pairs.");
1256
- break;
1257
- case 1:
1258
- this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);
1259
- break;
1260
- default:
1261
- this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`);
1262
- }
1263
- }
1264
- this.state = c === EQUAL ? S_XML_DECL_VALUE_START : S_XML_DECL_EQ;
1265
- }
1266
- sXMLDeclEq() {
1267
- const c = this.getCodeNorm();
1268
- // The question mark character is not valid inside any of the XML
1269
- // declaration name/value pairs.
1270
- if (c === QUESTION) {
1271
- this.state = S_XML_DECL_ENDING;
1272
- this.fail("XML declaration is incomplete.");
1273
- return;
1274
- }
1275
- if (isS(c)) {
1276
- return;
1277
- }
1278
- if (c !== EQUAL) {
1279
- this.fail("value required.");
1280
- }
1281
- this.state = S_XML_DECL_VALUE_START;
1282
- }
1283
- sXMLDeclValueStart() {
1284
- const c = this.getCodeNorm();
1285
- // The question mark character is not valid inside any of the XML
1286
- // declaration name/value pairs.
1287
- if (c === QUESTION) {
1288
- this.state = S_XML_DECL_ENDING;
1289
- this.fail("XML declaration is incomplete.");
1290
- return;
1291
- }
1292
- if (isS(c)) {
1293
- return;
1294
- }
1295
- if (!isQuote(c)) {
1296
- this.fail("value must be quoted.");
1297
- this.q = SPACE;
1298
- }
1299
- else {
1300
- this.q = c;
1301
- }
1302
- this.state = S_XML_DECL_VALUE;
1303
- }
1304
- sXMLDeclValue() {
1305
- const c = this.captureTo([this.q, QUESTION]);
1306
- // The question mark character is not valid inside any of the XML
1307
- // declaration name/value pairs.
1308
- if (c === QUESTION) {
1309
- this.state = S_XML_DECL_ENDING;
1310
- this.text = "";
1311
- this.fail("XML declaration is incomplete.");
1312
- return;
1313
- }
1314
- if (c === EOC) {
1315
- return;
1316
- }
1317
- const value = this.text;
1318
- this.text = "";
1319
- switch (this.name) {
1320
- case "version": {
1321
- this.xmlDeclExpects = ["encoding", "standalone"];
1322
- const version = value;
1323
- this.xmlDecl.version = version;
1324
- // This is the test specified by XML 1.0 but it is fine for XML 1.1.
1325
- if (!/^1\.[0-9]+$/.test(version)) {
1326
- this.fail("version number must match /^1\\.[0-9]+$/.");
1327
- }
1328
- // When forceXMLVersion is set, the XML declaration is ignored.
1329
- else if (!this.opt.forceXMLVersion) {
1330
- this.setXMLVersion(version);
1331
- }
1332
- break;
1333
- }
1334
- case "encoding":
1335
- if (!/^[A-Za-z][A-Za-z0-9._-]*$/.test(value)) {
1336
- this.fail("encoding value must match \
1337
- /^[A-Za-z0-9][A-Za-z0-9._-]*$/.");
1338
- }
1339
- this.xmlDeclExpects = ["standalone"];
1340
- this.xmlDecl.encoding = value;
1341
- break;
1342
- case "standalone":
1343
- if (value !== "yes" && value !== "no") {
1344
- this.fail("standalone value must match \"yes\" or \"no\".");
1345
- }
1346
- this.xmlDeclExpects = [];
1347
- this.xmlDecl.standalone = value;
1348
- break;
1349
- default:
1350
- // We don't need to raise an error here since we've already raised one
1351
- // when checking what name was expected.
1352
- }
1353
- this.name = "";
1354
- this.state = S_XML_DECL_SEPARATOR;
1355
- }
1356
- sXMLDeclSeparator() {
1357
- const c = this.getCodeNorm();
1358
- // The question mark character is not valid inside any of the XML
1359
- // declaration name/value pairs.
1360
- if (c === QUESTION) {
1361
- // It is valid to go to S_XML_DECL_ENDING from this state.
1362
- this.state = S_XML_DECL_ENDING;
1363
- return;
1364
- }
1365
- if (!isS(c)) {
1366
- this.fail("whitespace required.");
1367
- this.unget();
1368
- }
1369
- this.state = S_XML_DECL_NAME_START;
1370
- }
1371
- sXMLDeclEnding() {
1372
- var _a;
1373
- const c = this.getCodeNorm();
1374
- if (c === GREATER) {
1375
- if (this.piTarget !== "xml") {
1376
- this.fail("processing instructions are not allowed before root.");
1377
- }
1378
- else if (this.name !== "version" &&
1379
- this.xmlDeclExpects.includes("version")) {
1380
- this.fail("XML declaration must contain a version.");
1381
- }
1382
- // eslint-disable-next-line no-unused-expressions
1383
- (_a = this.xmldeclHandler) === null || _a === void 0 ? void 0 : _a.call(this, this.xmlDecl);
1384
- this.name = "";
1385
- this.piTarget = this.text = "";
1386
- this.state = S_TEXT;
1387
- }
1388
- else {
1389
- // We got here because the previous character was a ?, but the question
1390
- // mark character is not valid inside any of the XML declaration
1391
- // name/value pairs.
1392
- this.fail("The character ? is disallowed anywhere in XML declarations.");
1393
- }
1394
- this.xmlDeclPossible = false;
1395
- }
1396
- sOpenTag() {
1397
- var _a;
1398
- const c = this.captureNameChars();
1399
- if (c === EOC) {
1400
- return;
1401
- }
1402
- const tag = this.tag = {
1403
- name: this.name,
1404
- attributes: Object.create(null),
1405
- };
1406
- this.name = "";
1407
- if (this.xmlnsOpt) {
1408
- this.topNS = tag.ns = Object.create(null);
1409
- }
1410
- // eslint-disable-next-line no-unused-expressions
1411
- (_a = this.openTagStartHandler) === null || _a === void 0 ? void 0 : _a.call(this, tag);
1412
- this.sawRoot = true;
1413
- if (!this.fragmentOpt && this.closedRoot) {
1414
- this.fail("documents may contain only one root.");
1415
- }
1416
- switch (c) {
1417
- case GREATER:
1418
- this.openTag();
1419
- break;
1420
- case FORWARD_SLASH:
1421
- this.state = S_OPEN_TAG_SLASH;
1422
- break;
1423
- default:
1424
- if (!isS(c)) {
1425
- this.fail("disallowed character in tag name.");
1426
- }
1427
- this.state = S_ATTRIB;
1428
- }
1429
- }
1430
- sOpenTagSlash() {
1431
- if (this.getCode() === GREATER) {
1432
- this.openSelfClosingTag();
1433
- }
1434
- else {
1435
- this.fail("forward-slash in opening tag not followed by >.");
1436
- this.state = S_ATTRIB;
1437
- }
1438
- }
1439
- sAttrib() {
1440
- const c = this.skipSpaces();
1441
- if (c === EOC) {
1442
- return;
1443
- }
1444
- if (isNameStartChar(c)) {
1445
- this.unget();
1446
- this.state = S_ATTRIB_NAME;
1447
- }
1448
- else if (c === GREATER) {
1449
- this.openTag();
1450
- }
1451
- else if (c === FORWARD_SLASH) {
1452
- this.state = S_OPEN_TAG_SLASH;
1453
- }
1454
- else {
1455
- this.fail("disallowed character in attribute name.");
1456
- }
1457
- }
1458
- sAttribName() {
1459
- const c = this.captureNameChars();
1460
- if (c === EQUAL) {
1461
- this.state = S_ATTRIB_VALUE;
1462
- }
1463
- else if (isS(c)) {
1464
- this.state = S_ATTRIB_NAME_SAW_WHITE;
1465
- }
1466
- else if (c === GREATER) {
1467
- this.fail("attribute without value.");
1468
- this.pushAttrib(this.name, this.name);
1469
- this.name = this.text = "";
1470
- this.openTag();
1471
- }
1472
- else if (c !== EOC) {
1473
- this.fail("disallowed character in attribute name.");
1474
- }
1475
- }
1476
- sAttribNameSawWhite() {
1477
- const c = this.skipSpaces();
1478
- switch (c) {
1479
- case EOC:
1480
- return;
1481
- case EQUAL:
1482
- this.state = S_ATTRIB_VALUE;
1483
- break;
1484
- default:
1485
- this.fail("attribute without value.");
1486
- // Should we do this???
1487
- // this.tag.attributes[this.name] = "";
1488
- this.text = "";
1489
- this.name = "";
1490
- if (c === GREATER) {
1491
- this.openTag();
1492
- }
1493
- else if (isNameStartChar(c)) {
1494
- this.unget();
1495
- this.state = S_ATTRIB_NAME;
1496
- }
1497
- else {
1498
- this.fail("disallowed character in attribute name.");
1499
- this.state = S_ATTRIB;
1500
- }
1501
- }
1502
- }
1503
- sAttribValue() {
1504
- const c = this.getCodeNorm();
1505
- if (isQuote(c)) {
1506
- this.q = c;
1507
- this.state = S_ATTRIB_VALUE_QUOTED;
1508
- }
1509
- else if (!isS(c)) {
1510
- this.fail("unquoted attribute value.");
1511
- this.state = S_ATTRIB_VALUE_UNQUOTED;
1512
- this.unget();
1513
- }
1514
- }
1515
- sAttribValueQuoted() {
1516
- // We deliberately do not use captureTo here. The specialized code we use
1517
- // here is faster than using captureTo.
1518
- const { q, chunk } = this;
1519
- let { i: start } = this;
1520
- // eslint-disable-next-line no-constant-condition
1521
- while (true) {
1522
- switch (this.getCode()) {
1523
- case q:
1524
- this.pushAttrib(this.name, this.text + chunk.slice(start, this.prevI));
1525
- this.name = this.text = "";
1526
- this.q = null;
1527
- this.state = S_ATTRIB_VALUE_CLOSED;
1528
- return;
1529
- case AMP:
1530
- this.text += chunk.slice(start, this.prevI);
1531
- this.state = S_ENTITY;
1532
- this.entityReturnState = S_ATTRIB_VALUE_QUOTED;
1533
- return;
1534
- case NL:
1535
- case NL_LIKE:
1536
- case TAB:
1537
- this.text += `${chunk.slice(start, this.prevI)} `;
1538
- start = this.i;
1539
- break;
1540
- case LESS:
1541
- this.text += chunk.slice(start, this.prevI);
1542
- this.fail("disallowed character.");
1543
- return;
1544
- case EOC:
1545
- this.text += chunk.slice(start);
1546
- return;
1547
- default:
1548
- }
1549
- }
1550
- }
1551
- sAttribValueClosed() {
1552
- const c = this.getCodeNorm();
1553
- if (isS(c)) {
1554
- this.state = S_ATTRIB;
1555
- }
1556
- else if (c === GREATER) {
1557
- this.openTag();
1558
- }
1559
- else if (c === FORWARD_SLASH) {
1560
- this.state = S_OPEN_TAG_SLASH;
1561
- }
1562
- else if (isNameStartChar(c)) {
1563
- this.fail("no whitespace between attributes.");
1564
- this.unget();
1565
- this.state = S_ATTRIB_NAME;
1566
- }
1567
- else {
1568
- this.fail("disallowed character in attribute name.");
1569
- }
1570
- }
1571
- sAttribValueUnquoted() {
1572
- // We don't do anything regarding EOL or space handling for unquoted
1573
- // attributes. We already have failed by the time we get here, and the
1574
- // contract that saxes upholds states that upon failure, it is not safe to
1575
- // rely on the data passed to event handlers (other than
1576
- // ``onerror``). Passing "bad" data is not a problem.
1577
- const c = this.captureTo(ATTRIB_VALUE_UNQUOTED_TERMINATOR);
1578
- switch (c) {
1579
- case AMP:
1580
- this.state = S_ENTITY;
1581
- this.entityReturnState = S_ATTRIB_VALUE_UNQUOTED;
1582
- break;
1583
- case LESS:
1584
- this.fail("disallowed character.");
1585
- break;
1586
- case EOC:
1587
- break;
1588
- default:
1589
- if (this.text.includes("]]>")) {
1590
- this.fail("the string \"]]>\" is disallowed in char data.");
1591
- }
1592
- this.pushAttrib(this.name, this.text);
1593
- this.name = this.text = "";
1594
- if (c === GREATER) {
1595
- this.openTag();
1596
- }
1597
- else {
1598
- this.state = S_ATTRIB;
1599
- }
1600
- }
1601
- }
1602
- sCloseTag() {
1603
- const c = this.captureNameChars();
1604
- if (c === GREATER) {
1605
- this.closeTag();
1606
- }
1607
- else if (isS(c)) {
1608
- this.state = S_CLOSE_TAG_SAW_WHITE;
1609
- }
1610
- else if (c !== EOC) {
1611
- this.fail("disallowed character in closing tag.");
1612
- }
1613
- }
1614
- sCloseTagSawWhite() {
1615
- switch (this.skipSpaces()) {
1616
- case GREATER:
1617
- this.closeTag();
1618
- break;
1619
- case EOC:
1620
- break;
1621
- default:
1622
- this.fail("disallowed character in closing tag.");
1623
- }
1624
- }
1625
- // END OF STATE ENGINE METHODS
1626
- handleTextInRoot() {
1627
- // This is essentially a specialized version of captureTo which is optimized
1628
- // for performing the ]]> check. A previous version of this code, checked
1629
- // ``this.text`` for the presence of ]]>. It simplified the code but was
1630
- // very costly when character data contained a lot of entities to be parsed.
1631
- //
1632
- // Since we are using a specialized loop, we also keep track of the presence
1633
- // of ]]> in text data. The sequence ]]> is forbidden to appear as-is.
1634
- //
1635
- let { i: start, forbiddenState } = this;
1636
- const { chunk, textHandler: handler } = this;
1637
- // eslint-disable-next-line no-labels, no-restricted-syntax
1638
- scanLoop:
1639
- // eslint-disable-next-line no-constant-condition
1640
- while (true) {
1641
- switch (this.getCode()) {
1642
- case LESS: {
1643
- this.state = S_OPEN_WAKA;
1644
- if (handler !== undefined) {
1645
- const { text } = this;
1646
- const slice = chunk.slice(start, this.prevI);
1647
- if (text.length !== 0) {
1648
- handler(text + slice);
1649
- this.text = "";
1650
- }
1651
- else if (slice.length !== 0) {
1652
- handler(slice);
1653
- }
1654
- }
1655
- forbiddenState = FORBIDDEN_START;
1656
- // eslint-disable-next-line no-labels
1657
- break scanLoop;
1658
- }
1659
- case AMP:
1660
- this.state = S_ENTITY;
1661
- this.entityReturnState = S_TEXT;
1662
- if (handler !== undefined) {
1663
- this.text += chunk.slice(start, this.prevI);
1664
- }
1665
- forbiddenState = FORBIDDEN_START;
1666
- // eslint-disable-next-line no-labels
1667
- break scanLoop;
1668
- case CLOSE_BRACKET:
1669
- switch (forbiddenState) {
1670
- case FORBIDDEN_START:
1671
- forbiddenState = FORBIDDEN_BRACKET;
1672
- break;
1673
- case FORBIDDEN_BRACKET:
1674
- forbiddenState = FORBIDDEN_BRACKET_BRACKET;
1675
- break;
1676
- case FORBIDDEN_BRACKET_BRACKET:
1677
- break;
1678
- default:
1679
- throw new Error("impossible state");
1680
- }
1681
- break;
1682
- case GREATER:
1683
- if (forbiddenState === FORBIDDEN_BRACKET_BRACKET) {
1684
- this.fail("the string \"]]>\" is disallowed in char data.");
1685
- }
1686
- forbiddenState = FORBIDDEN_START;
1687
- break;
1688
- case NL_LIKE:
1689
- if (handler !== undefined) {
1690
- this.text += `${chunk.slice(start, this.prevI)}\n`;
1691
- }
1692
- start = this.i;
1693
- forbiddenState = FORBIDDEN_START;
1694
- break;
1695
- case EOC:
1696
- if (handler !== undefined) {
1697
- this.text += chunk.slice(start);
1698
- }
1699
- // eslint-disable-next-line no-labels
1700
- break scanLoop;
1701
- default:
1702
- forbiddenState = FORBIDDEN_START;
1703
- }
1704
- }
1705
- this.forbiddenState = forbiddenState;
1706
- }
1707
- handleTextOutsideRoot() {
1708
- // This is essentially a specialized version of captureTo which is optimized
1709
- // for a specialized task. We keep track of the presence of non-space
1710
- // characters in the text since these are errors when appearing outside the
1711
- // document root element.
1712
- let { i: start } = this;
1713
- const { chunk, textHandler: handler } = this;
1714
- let nonSpace = false;
1715
- // eslint-disable-next-line no-labels, no-restricted-syntax
1716
- outRootLoop:
1717
- // eslint-disable-next-line no-constant-condition
1718
- while (true) {
1719
- const code = this.getCode();
1720
- switch (code) {
1721
- case LESS: {
1722
- this.state = S_OPEN_WAKA;
1723
- if (handler !== undefined) {
1724
- const { text } = this;
1725
- const slice = chunk.slice(start, this.prevI);
1726
- if (text.length !== 0) {
1727
- handler(text + slice);
1728
- this.text = "";
1729
- }
1730
- else if (slice.length !== 0) {
1731
- handler(slice);
1732
- }
1733
- }
1734
- // eslint-disable-next-line no-labels
1735
- break outRootLoop;
1736
- }
1737
- case AMP:
1738
- this.state = S_ENTITY;
1739
- this.entityReturnState = S_TEXT;
1740
- if (handler !== undefined) {
1741
- this.text += chunk.slice(start, this.prevI);
1742
- }
1743
- nonSpace = true;
1744
- // eslint-disable-next-line no-labels
1745
- break outRootLoop;
1746
- case NL_LIKE:
1747
- if (handler !== undefined) {
1748
- this.text += `${chunk.slice(start, this.prevI)}\n`;
1749
- }
1750
- start = this.i;
1751
- break;
1752
- case EOC:
1753
- if (handler !== undefined) {
1754
- this.text += chunk.slice(start);
1755
- }
1756
- // eslint-disable-next-line no-labels
1757
- break outRootLoop;
1758
- default:
1759
- if (!isS(code)) {
1760
- nonSpace = true;
1761
- }
1762
- }
1763
- }
1764
- if (!nonSpace) {
1765
- return;
1766
- }
1767
- // We use the reportedTextBeforeRoot and reportedTextAfterRoot flags
1768
- // to avoid reporting errors for every single character that is out of
1769
- // place.
1770
- if (!this.sawRoot && !this.reportedTextBeforeRoot) {
1771
- this.fail("text data outside of root node.");
1772
- this.reportedTextBeforeRoot = true;
1773
- }
1774
- if (this.closedRoot && !this.reportedTextAfterRoot) {
1775
- this.fail("text data outside of root node.");
1776
- this.reportedTextAfterRoot = true;
1777
- }
1778
- }
1779
- pushAttribNS(name, value) {
1780
- var _a;
1781
- const { prefix, local } = this.qname(name);
1782
- const attr = { name, prefix, local, value };
1783
- this.attribList.push(attr);
1784
- // eslint-disable-next-line no-unused-expressions
1785
- (_a = this.attributeHandler) === null || _a === void 0 ? void 0 : _a.call(this, attr);
1786
- if (prefix === "xmlns") {
1787
- const trimmed = value.trim();
1788
- if (this.currentXMLVersion === "1.0" && trimmed === "") {
1789
- this.fail("invalid attempt to undefine prefix in XML 1.0");
1790
- }
1791
- this.topNS[local] = trimmed;
1792
- nsPairCheck(this, local, trimmed);
1793
- }
1794
- else if (name === "xmlns") {
1795
- const trimmed = value.trim();
1796
- this.topNS[""] = trimmed;
1797
- nsPairCheck(this, "", trimmed);
1798
- }
1799
- }
1800
- pushAttribPlain(name, value) {
1801
- var _a;
1802
- const attr = { name, value };
1803
- this.attribList.push(attr);
1804
- // eslint-disable-next-line no-unused-expressions
1805
- (_a = this.attributeHandler) === null || _a === void 0 ? void 0 : _a.call(this, attr);
1806
- }
1807
- /**
1808
- * End parsing. This performs final well-formedness checks and resets the
1809
- * parser to a clean state.
1810
- *
1811
- * @returns this
1812
- */
1813
- end() {
1814
- var _a, _b;
1815
- if (!this.sawRoot) {
1816
- this.fail("document must contain a root element.");
1817
- }
1818
- const { tags } = this;
1819
- while (tags.length > 0) {
1820
- const tag = tags.pop();
1821
- this.fail(`unclosed tag: ${tag.name}`);
1822
- }
1823
- if ((this.state !== S_BEGIN) && (this.state !== S_TEXT)) {
1824
- this.fail("unexpected end.");
1825
- }
1826
- const { text } = this;
1827
- if (text.length !== 0) {
1828
- // eslint-disable-next-line no-unused-expressions
1829
- (_a = this.textHandler) === null || _a === void 0 ? void 0 : _a.call(this, text);
1830
- this.text = "";
1831
- }
1832
- this._closed = true;
1833
- // eslint-disable-next-line no-unused-expressions
1834
- (_b = this.endHandler) === null || _b === void 0 ? void 0 : _b.call(this);
1835
- this._init();
1836
- return this;
1837
- }
1838
- /**
1839
- * Resolve a namespace prefix.
1840
- *
1841
- * @param prefix The prefix to resolve.
1842
- *
1843
- * @returns The namespace URI or ``undefined`` if the prefix is not defined.
1844
- */
1845
- resolve(prefix) {
1846
- var _a, _b;
1847
- let uri = this.topNS[prefix];
1848
- if (uri !== undefined) {
1849
- return uri;
1850
- }
1851
- const { tags } = this;
1852
- for (let index = tags.length - 1; index >= 0; index--) {
1853
- uri = tags[index].ns[prefix];
1854
- if (uri !== undefined) {
1855
- return uri;
1856
- }
1857
- }
1858
- uri = this.ns[prefix];
1859
- if (uri !== undefined) {
1860
- return uri;
1861
- }
1862
- return (_b = (_a = this.opt).resolvePrefix) === null || _b === void 0 ? void 0 : _b.call(_a, prefix);
1863
- }
1864
- /**
1865
- * Parse a qname into its prefix and local name parts.
1866
- *
1867
- * @param name The name to parse
1868
- *
1869
- * @returns
1870
- */
1871
- qname(name) {
1872
- // This is faster than using name.split(":").
1873
- const colon = name.indexOf(":");
1874
- if (colon === -1) {
1875
- return { prefix: "", local: name };
1876
- }
1877
- const local = name.slice(colon + 1);
1878
- const prefix = name.slice(0, colon);
1879
- if (prefix === "" || local === "" || local.includes(":")) {
1880
- this.fail(`malformed name: ${name}.`);
1881
- }
1882
- return { prefix, local };
1883
- }
1884
- processAttribsNS() {
1885
- var _a;
1886
- const { attribList } = this;
1887
- const tag = this.tag;
1888
- {
1889
- // add namespace info to tag
1890
- const { prefix, local } = this.qname(tag.name);
1891
- tag.prefix = prefix;
1892
- tag.local = local;
1893
- const uri = tag.uri = (_a = this.resolve(prefix)) !== null && _a !== void 0 ? _a : "";
1894
- if (prefix !== "") {
1895
- if (prefix === "xmlns") {
1896
- this.fail("tags may not have \"xmlns\" as prefix.");
1897
- }
1898
- if (uri === "") {
1899
- this.fail(`unbound namespace prefix: ${JSON.stringify(prefix)}.`);
1900
- tag.uri = prefix;
1901
- }
1902
- }
1903
- }
1904
- if (attribList.length === 0) {
1905
- return;
1906
- }
1907
- const { attributes } = tag;
1908
- const seen = new Set();
1909
- // Note: do not apply default ns to attributes:
1910
- // http://www.w3.org/TR/REC-xml-names/#defaulting
1911
- for (const attr of attribList) {
1912
- const { name, prefix, local } = attr;
1913
- let uri;
1914
- let eqname;
1915
- if (prefix === "") {
1916
- uri = name === "xmlns" ? XMLNS_NAMESPACE : "";
1917
- eqname = name;
1918
- }
1919
- else {
1920
- uri = this.resolve(prefix);
1921
- // if there's any attributes with an undefined namespace,
1922
- // then fail on them now.
1923
- if (uri === undefined) {
1924
- this.fail(`unbound namespace prefix: ${JSON.stringify(prefix)}.`);
1925
- uri = prefix;
1926
- }
1927
- eqname = `{${uri}}${local}`;
1928
- }
1929
- if (seen.has(eqname)) {
1930
- this.fail(`duplicate attribute: ${eqname}.`);
1931
- }
1932
- seen.add(eqname);
1933
- attr.uri = uri;
1934
- attributes[name] = attr;
1935
- }
1936
- this.attribList = [];
1937
- }
1938
- processAttribsPlain() {
1939
- const { attribList } = this;
1940
- // eslint-disable-next-line prefer-destructuring
1941
- const attributes = this.tag.attributes;
1942
- for (const { name, value } of attribList) {
1943
- if (attributes[name] !== undefined) {
1944
- this.fail(`duplicate attribute: ${name}.`);
1945
- }
1946
- attributes[name] = value;
1947
- }
1948
- this.attribList = [];
1949
- }
1950
- /**
1951
- * Handle a complete open tag. This parser code calls this once it has seen
1952
- * the whole tag. This method checks for well-formeness and then emits
1953
- * ``onopentag``.
1954
- */
1955
- openTag() {
1956
- var _a;
1957
- this.processAttribs();
1958
- const { tags } = this;
1959
- const tag = this.tag;
1960
- tag.isSelfClosing = false;
1961
- // There cannot be any pending text here due to the onopentagstart that was
1962
- // necessarily emitted before we get here. So we do not check text.
1963
- // eslint-disable-next-line no-unused-expressions
1964
- (_a = this.openTagHandler) === null || _a === void 0 ? void 0 : _a.call(this, tag);
1965
- tags.push(tag);
1966
- this.state = S_TEXT;
1967
- this.name = "";
1968
- }
1969
- /**
1970
- * Handle a complete self-closing tag. This parser code calls this once it has
1971
- * seen the whole tag. This method checks for well-formeness and then emits
1972
- * ``onopentag`` and ``onclosetag``.
1973
- */
1974
- openSelfClosingTag() {
1975
- var _a, _b, _c;
1976
- this.processAttribs();
1977
- const { tags } = this;
1978
- const tag = this.tag;
1979
- tag.isSelfClosing = true;
1980
- // There cannot be any pending text here due to the onopentagstart that was
1981
- // necessarily emitted before we get here. So we do not check text.
1982
- // eslint-disable-next-line no-unused-expressions
1983
- (_a = this.openTagHandler) === null || _a === void 0 ? void 0 : _a.call(this, tag);
1984
- // eslint-disable-next-line no-unused-expressions
1985
- (_b = this.closeTagHandler) === null || _b === void 0 ? void 0 : _b.call(this, tag);
1986
- const top = this.tag = (_c = tags[tags.length - 1]) !== null && _c !== void 0 ? _c : null;
1987
- if (top === null) {
1988
- this.closedRoot = true;
1989
- }
1990
- this.state = S_TEXT;
1991
- this.name = "";
1992
- }
1993
- /**
1994
- * Handle a complete close tag. This parser code calls this once it has seen
1995
- * the whole tag. This method checks for well-formeness and then emits
1996
- * ``onclosetag``.
1997
- */
1998
- closeTag() {
1999
- const { tags, name } = this;
2000
- // Our state after this will be S_TEXT, no matter what, and we can clear
2001
- // tagName now.
2002
- this.state = S_TEXT;
2003
- this.name = "";
2004
- if (name === "") {
2005
- this.fail("weird empty close tag.");
2006
- this.text += "</>";
2007
- return;
2008
- }
2009
- const handler = this.closeTagHandler;
2010
- let l = tags.length;
2011
- while (l-- > 0) {
2012
- const tag = this.tag = tags.pop();
2013
- this.topNS = tag.ns;
2014
- // eslint-disable-next-line no-unused-expressions
2015
- handler === null || handler === void 0 ? void 0 : handler(tag);
2016
- if (tag.name === name) {
2017
- break;
2018
- }
2019
- this.fail("unexpected close tag.");
2020
- }
2021
- if (l === 0) {
2022
- this.closedRoot = true;
2023
- }
2024
- else if (l < 0) {
2025
- this.fail(`unmatched closing tag: ${name}.`);
2026
- this.text += `</${name}>`;
2027
- }
2028
- }
2029
- /**
2030
- * Resolves an entity. Makes any necessary well-formedness checks.
2031
- *
2032
- * @param entity The entity to resolve.
2033
- *
2034
- * @returns The parsed entity.
2035
- */
2036
- parseEntity(entity) {
2037
- // startsWith would be significantly slower for this test.
2038
- // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
2039
- if (entity[0] !== "#") {
2040
- const defined = this.ENTITIES[entity];
2041
- if (defined !== undefined) {
2042
- return defined;
2043
- }
2044
- this.fail(this.isName(entity) ? "undefined entity." :
2045
- "disallowed character in entity name.");
2046
- return `&${entity};`;
2047
- }
2048
- let num = NaN;
2049
- if (entity[1] === "x" && /^#x[0-9a-f]+$/i.test(entity)) {
2050
- num = parseInt(entity.slice(2), 16);
2051
- }
2052
- else if (/^#[0-9]+$/.test(entity)) {
2053
- num = parseInt(entity.slice(1), 10);
2054
- }
2055
- // The character reference is required to match the CHAR production.
2056
- if (!this.isChar(num)) {
2057
- this.fail("malformed character entity.");
2058
- return `&${entity};`;
2059
- }
2060
- return String.fromCodePoint(num);
2061
- }
2062
- }
2063
- exports.SaxesParser = SaxesParser;
2064
- //# sourceMappingURL=saxes.js.map