@zowe/cli 8.36.0 → 8.37.0

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 (576) hide show
  1. package/lib/daemon/DaemonClient.d.ts.map +1 -1
  2. package/lib/daemon/DaemonClient.js +3 -0
  3. package/lib/daemon/DaemonClient.js.map +1 -1
  4. package/lib/zosfiles/-strings-/en.d.ts +2 -0
  5. package/lib/zosfiles/-strings-/en.d.ts.map +1 -1
  6. package/lib/zosfiles/-strings-/en.js +5 -1
  7. package/lib/zosfiles/-strings-/en.js.map +1 -1
  8. package/lib/zosfiles/ZosFiles.options.d.ts.map +1 -1
  9. package/lib/zosfiles/ZosFiles.options.js +3 -1
  10. package/lib/zosfiles/ZosFiles.options.js.map +1 -1
  11. package/lib/zosfiles/create/Create.utils.d.ts.map +1 -1
  12. package/lib/zosfiles/create/Create.utils.js +3 -1
  13. package/lib/zosfiles/create/Create.utils.js.map +1 -1
  14. package/lib/zosfiles/create/ussDir/ussDir.handler.d.ts.map +1 -1
  15. package/lib/zosfiles/create/ussDir/ussDir.handler.js +5 -1
  16. package/lib/zosfiles/create/ussDir/ussDir.handler.js.map +1 -1
  17. package/lib/zosfiles/create/ussFile/ussFile.handler.d.ts.map +1 -1
  18. package/lib/zosfiles/create/ussFile/ussFile.handler.js +5 -1
  19. package/lib/zosfiles/create/ussFile/ussFile.handler.js.map +1 -1
  20. package/lib/zosfiles/create/vsam/vsam.handler.d.ts.map +1 -1
  21. package/lib/zosfiles/create/vsam/vsam.handler.js +3 -1
  22. package/lib/zosfiles/create/vsam/vsam.handler.js.map +1 -1
  23. package/lib/zosfiles/create/zfs/zfs.handler.d.ts.map +1 -1
  24. package/lib/zosfiles/create/zfs/zfs.handler.js +3 -1
  25. package/lib/zosfiles/create/zfs/zfs.handler.js.map +1 -1
  26. package/lib/zosfiles/delete/ds/Ds.handler.d.ts.map +1 -1
  27. package/lib/zosfiles/delete/ds/Ds.handler.js +4 -1
  28. package/lib/zosfiles/delete/ds/Ds.handler.js.map +1 -1
  29. package/lib/zosfiles/delete/uss/Uss.handler.d.ts.map +1 -1
  30. package/lib/zosfiles/delete/uss/Uss.handler.js +5 -1
  31. package/lib/zosfiles/delete/uss/Uss.handler.js.map +1 -1
  32. package/lib/zosfiles/delete/vsam/Vsam.handler.d.ts.map +1 -1
  33. package/lib/zosfiles/delete/vsam/Vsam.handler.js +3 -1
  34. package/lib/zosfiles/delete/vsam/Vsam.handler.js.map +1 -1
  35. package/lib/zosfiles/delete/zfs/zfs.handler.d.ts.map +1 -1
  36. package/lib/zosfiles/delete/zfs/zfs.handler.js +3 -1
  37. package/lib/zosfiles/delete/zfs/zfs.handler.js.map +1 -1
  38. package/lib/zosfiles/download/am/AllMembers.handler.d.ts.map +1 -1
  39. package/lib/zosfiles/download/am/AllMembers.handler.js +3 -1
  40. package/lib/zosfiles/download/am/AllMembers.handler.js.map +1 -1
  41. package/lib/zosfiles/download/amm/AllMembersMatching.handler.d.ts.map +1 -1
  42. package/lib/zosfiles/download/amm/AllMembersMatching.handler.js +2 -0
  43. package/lib/zosfiles/download/amm/AllMembersMatching.handler.js.map +1 -1
  44. package/lib/zosfiles/download/ds/Dataset.handler.d.ts.map +1 -1
  45. package/lib/zosfiles/download/ds/Dataset.handler.js +3 -1
  46. package/lib/zosfiles/download/ds/Dataset.handler.js.map +1 -1
  47. package/lib/zosfiles/download/dsm/DataSetMatching.handler.d.ts.map +1 -1
  48. package/lib/zosfiles/download/dsm/DataSetMatching.handler.js +6 -2
  49. package/lib/zosfiles/download/dsm/DataSetMatching.handler.js.map +1 -1
  50. package/lib/zosfiles/download/uss/UssFile.handler.d.ts.map +1 -1
  51. package/lib/zosfiles/download/uss/UssFile.handler.js +2 -0
  52. package/lib/zosfiles/download/uss/UssFile.handler.js.map +1 -1
  53. package/lib/zosfiles/download/ussdir/UssDir.handler.d.ts.map +1 -1
  54. package/lib/zosfiles/download/ussdir/UssDir.handler.js +6 -2
  55. package/lib/zosfiles/download/ussdir/UssDir.handler.js.map +1 -1
  56. package/lib/zosfiles/edit/Edit.utils.d.ts +2 -2
  57. package/lib/zosfiles/edit/Edit.utils.d.ts.map +1 -1
  58. package/lib/zosfiles/edit/Edit.utils.js +10 -10
  59. package/lib/zosfiles/edit/Edit.utils.js.map +1 -1
  60. package/lib/zosfiles/invoke/amsFile/AmsFile.handler.d.ts.map +1 -1
  61. package/lib/zosfiles/invoke/amsFile/AmsFile.handler.js +5 -1
  62. package/lib/zosfiles/invoke/amsFile/AmsFile.handler.js.map +1 -1
  63. package/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.d.ts.map +1 -1
  64. package/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js +5 -1
  65. package/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js.map +1 -1
  66. package/lib/zosfiles/list/alias/Alias.handler.d.ts.map +1 -1
  67. package/lib/zosfiles/list/alias/Alias.handler.js +3 -1
  68. package/lib/zosfiles/list/alias/Alias.handler.js.map +1 -1
  69. package/lib/zosfiles/list/am/AllMembers.handler.d.ts.map +1 -1
  70. package/lib/zosfiles/list/am/AllMembers.handler.js +3 -1
  71. package/lib/zosfiles/list/am/AllMembers.handler.js.map +1 -1
  72. package/lib/zosfiles/list/ds/DataSet.handler.d.ts.map +1 -1
  73. package/lib/zosfiles/list/ds/DataSet.handler.js +3 -1
  74. package/lib/zosfiles/list/ds/DataSet.handler.js.map +1 -1
  75. package/lib/zosfiles/list/fs/Fs.handler.d.ts.map +1 -1
  76. package/lib/zosfiles/list/fs/Fs.handler.js +6 -2
  77. package/lib/zosfiles/list/fs/Fs.handler.js.map +1 -1
  78. package/lib/zosfiles/list/uss/UssFile.handler.d.ts.map +1 -1
  79. package/lib/zosfiles/list/uss/UssFile.handler.js +3 -1
  80. package/lib/zosfiles/list/uss/UssFile.handler.js.map +1 -1
  81. package/lib/zosfiles/mount/fs/fs.handler.d.ts.map +1 -1
  82. package/lib/zosfiles/mount/fs/fs.handler.js +3 -1
  83. package/lib/zosfiles/mount/fs/fs.handler.js.map +1 -1
  84. package/lib/zosfiles/rename/ds/Ds.handler.d.ts.map +1 -1
  85. package/lib/zosfiles/rename/ds/Ds.handler.js +4 -1
  86. package/lib/zosfiles/rename/ds/Ds.handler.js.map +1 -1
  87. package/lib/zosfiles/rename/dsm/Dsm.handler.d.ts.map +1 -1
  88. package/lib/zosfiles/rename/dsm/Dsm.handler.js +4 -1
  89. package/lib/zosfiles/rename/dsm/Dsm.handler.js.map +1 -1
  90. package/lib/zosfiles/search/ds/DataSets.handler.d.ts.map +1 -1
  91. package/lib/zosfiles/search/ds/DataSets.handler.js +10 -2
  92. package/lib/zosfiles/search/ds/DataSets.handler.js.map +1 -1
  93. package/lib/zosfiles/upload/dtp/DirToPds.handler.d.ts.map +1 -1
  94. package/lib/zosfiles/upload/dtp/DirToPds.handler.js +3 -1
  95. package/lib/zosfiles/upload/dtp/DirToPds.handler.js.map +1 -1
  96. package/lib/zosfiles/upload/dtu/DirToUSSDir.handler.d.ts.map +1 -1
  97. package/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js +3 -1
  98. package/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js.map +1 -1
  99. package/lib/zosfiles/upload/ftds/FileToDataSet.handler.d.ts.map +1 -1
  100. package/lib/zosfiles/upload/ftds/FileToDataSet.handler.js +3 -1
  101. package/lib/zosfiles/upload/ftds/FileToDataSet.handler.js.map +1 -1
  102. package/lib/zosfiles/upload/ftu/FileToUSS.handler.d.ts.map +1 -1
  103. package/lib/zosfiles/upload/ftu/FileToUSS.handler.js +3 -1
  104. package/lib/zosfiles/upload/ftu/FileToUSS.handler.js.map +1 -1
  105. package/lib/zosfiles/upload/stds/StdinToDataSet.handler.d.ts.map +1 -1
  106. package/lib/zosfiles/upload/stds/StdinToDataSet.handler.js +3 -1
  107. package/lib/zosfiles/upload/stds/StdinToDataSet.handler.js.map +1 -1
  108. package/lib/zosfiles/view/ds/Dataset.handler.d.ts.map +1 -1
  109. package/lib/zosfiles/view/ds/Dataset.handler.js +3 -1
  110. package/lib/zosfiles/view/ds/Dataset.handler.js.map +1 -1
  111. package/lib/zosfiles/view/uss/USSFile.handler.d.ts.map +1 -1
  112. package/lib/zosfiles/view/uss/USSFile.handler.js +3 -1
  113. package/lib/zosfiles/view/uss/USSFile.handler.js.map +1 -1
  114. package/node_modules/@zowe/core-for-zowe-sdk/lib/rest/ZosmfHeaders.d.ts +14 -0
  115. package/node_modules/@zowe/core-for-zowe-sdk/lib/rest/ZosmfHeaders.d.ts.map +1 -1
  116. package/node_modules/@zowe/core-for-zowe-sdk/lib/rest/ZosmfHeaders.js +14 -0
  117. package/node_modules/@zowe/core-for-zowe-sdk/lib/rest/ZosmfHeaders.js.map +1 -1
  118. package/node_modules/@zowe/core-for-zowe-sdk/package.json +3 -3
  119. package/node_modules/@zowe/imperative/lib/config/src/ConfigSchema.d.ts.map +1 -1
  120. package/node_modules/@zowe/imperative/lib/config/src/ConfigSchema.js +1 -0
  121. package/node_modules/@zowe/imperative/lib/config/src/ConfigSchema.js.map +1 -1
  122. package/node_modules/@zowe/imperative/lib/logger/src/LoggerConfigBuilder.d.ts +1 -0
  123. package/node_modules/@zowe/imperative/lib/logger/src/LoggerConfigBuilder.d.ts.map +1 -1
  124. package/node_modules/@zowe/imperative/lib/logger/src/LoggerConfigBuilder.js +2 -0
  125. package/node_modules/@zowe/imperative/lib/logger/src/LoggerConfigBuilder.js.map +1 -1
  126. package/node_modules/@zowe/imperative/lib/logger/src/log4jsToWinston.d.ts +1 -0
  127. package/node_modules/@zowe/imperative/lib/logger/src/log4jsToWinston.d.ts.map +1 -1
  128. package/node_modules/@zowe/imperative/lib/logger/src/log4jsToWinston.js +11 -3
  129. package/node_modules/@zowe/imperative/lib/logger/src/log4jsToWinston.js.map +1 -1
  130. package/node_modules/@zowe/imperative/lib/utilities/src/TextUtils.d.ts.map +1 -1
  131. package/node_modules/@zowe/imperative/lib/utilities/src/TextUtils.js +25 -0
  132. package/node_modules/@zowe/imperative/lib/utilities/src/TextUtils.js.map +1 -1
  133. package/node_modules/@zowe/imperative/package.json +3 -3
  134. package/node_modules/@zowe/imperative/web-help/package-lock.json +62 -62
  135. package/node_modules/@zowe/provisioning-for-zowe-sdk/package.json +4 -4
  136. package/node_modules/@zowe/secrets-for-zowe-sdk/README.md +70 -0
  137. package/node_modules/@zowe/secrets-for-zowe-sdk/package.json +1 -1
  138. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.darwin-arm64.node +0 -0
  139. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.darwin-x64.node +0 -0
  140. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-arm-gnueabihf.node +0 -0
  141. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-arm64-gnu.node +0 -0
  142. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-ia32-gnu.node +0 -0
  143. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-x64-gnu.node +0 -0
  144. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.win32-arm64-msvc.node +0 -0
  145. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.win32-ia32-msvc.node +0 -0
  146. package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.win32-x64-msvc.node +0 -0
  147. package/node_modules/@zowe/zos-console-for-zowe-sdk/package.json +4 -4
  148. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/doc/IZosFilesOptions.d.ts +12 -0
  149. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/doc/IZosFilesOptions.d.ts.map +1 -1
  150. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/copy/Copy.js +1 -1
  151. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/copy/Copy.js.map +1 -1
  152. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/create/Create.d.ts.map +1 -1
  153. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/create/Create.js +18 -3
  154. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/create/Create.js.map +1 -1
  155. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/delete/Delete.d.ts.map +1 -1
  156. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/delete/Delete.js +7 -3
  157. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/delete/Delete.js.map +1 -1
  158. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/download/Download.js +1 -1
  159. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/download/Download.js.map +1 -1
  160. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/invoke/Invoke.d.ts.map +1 -1
  161. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/invoke/Invoke.js +2 -1
  162. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/invoke/Invoke.js.map +1 -1
  163. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/list/List.d.ts.map +1 -1
  164. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/list/List.js +6 -5
  165. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/list/List.js.map +1 -1
  166. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/mount/Mount.d.ts.map +1 -1
  167. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/mount/Mount.js +6 -0
  168. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/mount/Mount.js.map +1 -1
  169. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/rename/Rename.d.ts.map +1 -1
  170. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/rename/Rename.js +2 -1
  171. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/rename/Rename.js.map +1 -1
  172. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/unmount/Unmount.d.ts.map +1 -1
  173. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/unmount/Unmount.js +3 -1
  174. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/unmount/Unmount.js.map +1 -1
  175. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/upload/Upload.d.ts.map +1 -1
  176. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/upload/Upload.js +5 -5
  177. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/upload/Upload.js.map +1 -1
  178. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/utilities/Utilities.d.ts +4 -4
  179. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/utilities/Utilities.d.ts.map +1 -1
  180. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/utilities/Utilities.js +10 -33
  181. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/utilities/Utilities.js.map +1 -1
  182. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/utils/ZosFilesUtils.d.ts +7 -0
  183. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/utils/ZosFilesUtils.d.ts.map +1 -1
  184. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/utils/ZosFilesUtils.js +16 -0
  185. package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/utils/ZosFilesUtils.js.map +1 -1
  186. package/node_modules/@zowe/zos-files-for-zowe-sdk/package.json +5 -5
  187. package/node_modules/@zowe/zos-jobs-for-zowe-sdk/package.json +5 -5
  188. package/node_modules/@zowe/zos-logs-for-zowe-sdk/package.json +4 -4
  189. package/node_modules/@zowe/zos-tso-for-zowe-sdk/package.json +5 -5
  190. package/node_modules/@zowe/zos-uss-for-zowe-sdk/package.json +3 -3
  191. package/node_modules/@zowe/zos-workflows-for-zowe-sdk/package.json +5 -5
  192. package/node_modules/@zowe/zosmf-for-zowe-sdk/lib/constants/Zosmf.constants.d.ts.map +1 -1
  193. package/node_modules/@zowe/zosmf-for-zowe-sdk/lib/constants/Zosmf.constants.js +21 -0
  194. package/node_modules/@zowe/zosmf-for-zowe-sdk/lib/constants/Zosmf.constants.js.map +1 -1
  195. package/node_modules/@zowe/zosmf-for-zowe-sdk/lib/constants/Zosmf.profile.d.ts.map +1 -1
  196. package/node_modules/@zowe/zosmf-for-zowe-sdk/lib/constants/Zosmf.profile.js +8 -0
  197. package/node_modules/@zowe/zosmf-for-zowe-sdk/lib/constants/Zosmf.profile.js.map +1 -1
  198. package/node_modules/@zowe/zosmf-for-zowe-sdk/package.json +4 -4
  199. package/node_modules/js-yaml/dist/js-yaml.js +11 -3
  200. package/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
  201. package/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
  202. package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
  203. package/node_modules/js-yaml/dist/js-yaml.mjs +11 -3
  204. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  205. package/node_modules/js-yaml/lib/loader.js +16 -3
  206. package/node_modules/js-yaml/package.json +1 -1
  207. package/node_modules/sanitize-html/README.md +13 -0
  208. package/node_modules/sanitize-html/index.js +86 -12
  209. package/node_modules/sanitize-html/node_modules/dom-serializer/LICENSE +7 -0
  210. package/node_modules/{dom-serializer → sanitize-html/node_modules/dom-serializer}/README.md +14 -8
  211. package/node_modules/sanitize-html/node_modules/dom-serializer/dist/foreign-names.d.ts +11 -0
  212. package/node_modules/sanitize-html/node_modules/dom-serializer/dist/foreign-names.d.ts.map +1 -0
  213. package/node_modules/sanitize-html/node_modules/dom-serializer/dist/foreign-names.js +15 -0
  214. package/node_modules/sanitize-html/node_modules/dom-serializer/dist/foreign-names.js.map +1 -0
  215. package/node_modules/sanitize-html/node_modules/dom-serializer/dist/index.d.ts +72 -0
  216. package/node_modules/sanitize-html/node_modules/dom-serializer/dist/index.d.ts.map +1 -0
  217. package/node_modules/sanitize-html/node_modules/dom-serializer/dist/index.js +173 -0
  218. package/node_modules/sanitize-html/node_modules/dom-serializer/dist/index.js.map +1 -0
  219. package/node_modules/sanitize-html/node_modules/dom-serializer/package.json +69 -0
  220. package/node_modules/sanitize-html/node_modules/dom-serializer/src/foreign-names.ts +19 -0
  221. package/node_modules/sanitize-html/node_modules/dom-serializer/src/index.ts +315 -0
  222. package/node_modules/{domelementtype/lib → sanitize-html/node_modules/domelementtype/dist}/index.d.ts +12 -12
  223. package/node_modules/sanitize-html/node_modules/domelementtype/dist/index.d.ts.map +1 -0
  224. package/node_modules/{domelementtype/lib/esm → sanitize-html/node_modules/domelementtype/dist}/index.js +15 -6
  225. package/node_modules/sanitize-html/node_modules/domelementtype/package.json +59 -0
  226. package/node_modules/{domhandler/lib → sanitize-html/node_modules/domhandler/dist}/index.d.ts +9 -6
  227. package/node_modules/sanitize-html/node_modules/domhandler/dist/index.d.ts.map +1 -0
  228. package/node_modules/{domhandler/lib/esm → sanitize-html/node_modules/domhandler/dist}/index.js +34 -25
  229. package/node_modules/{domhandler/lib → sanitize-html/node_modules/domhandler/dist}/node.d.ts +34 -15
  230. package/node_modules/sanitize-html/node_modules/domhandler/dist/node.d.ts.map +1 -0
  231. package/node_modules/{domhandler/lib/esm → sanitize-html/node_modules/domhandler/dist}/node.js +81 -60
  232. package/node_modules/sanitize-html/node_modules/domhandler/package.json +65 -0
  233. package/node_modules/{domhandler → sanitize-html/node_modules/domhandler}/readme.md +1 -7
  234. package/node_modules/{domutils/lib → sanitize-html/node_modules/domutils/dist}/feeds.d.ts +2 -2
  235. package/node_modules/sanitize-html/node_modules/domutils/dist/feeds.d.ts.map +1 -0
  236. package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/feeds.js +22 -25
  237. package/node_modules/sanitize-html/node_modules/domutils/dist/feeds.js.map +1 -0
  238. package/node_modules/{domutils/lib → sanitize-html/node_modules/domutils/dist}/helpers.d.ts +1 -1
  239. package/node_modules/sanitize-html/node_modules/domutils/dist/helpers.d.ts.map +1 -0
  240. package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/helpers.js +16 -16
  241. package/node_modules/sanitize-html/node_modules/domutils/dist/helpers.js.map +1 -0
  242. package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/index.d.ts +5 -7
  243. package/node_modules/sanitize-html/node_modules/domutils/dist/index.d.ts.map +1 -0
  244. package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/index.js +5 -7
  245. package/node_modules/sanitize-html/node_modules/domutils/dist/index.js.map +1 -0
  246. package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/legacy.d.ts +1 -1
  247. package/node_modules/sanitize-html/node_modules/domutils/dist/legacy.d.ts.map +1 -0
  248. package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/legacy.js +15 -15
  249. package/node_modules/sanitize-html/node_modules/domutils/dist/legacy.js.map +1 -0
  250. package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/manipulation.d.ts +9 -9
  251. package/node_modules/sanitize-html/node_modules/domutils/dist/manipulation.d.ts.map +1 -0
  252. package/node_modules/sanitize-html/node_modules/domutils/dist/manipulation.js +138 -0
  253. package/node_modules/sanitize-html/node_modules/domutils/dist/manipulation.js.map +1 -0
  254. package/node_modules/{domutils/lib → sanitize-html/node_modules/domutils/dist}/querying.d.ts +6 -16
  255. package/node_modules/sanitize-html/node_modules/domutils/dist/querying.d.ts.map +1 -0
  256. package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/querying.js +13 -26
  257. package/node_modules/sanitize-html/node_modules/domutils/dist/querying.js.map +1 -0
  258. package/node_modules/{domutils/lib → sanitize-html/node_modules/domutils/dist}/stringify.d.ts +2 -2
  259. package/node_modules/sanitize-html/node_modules/domutils/dist/stringify.d.ts.map +1 -0
  260. package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/stringify.js +1 -1
  261. package/node_modules/sanitize-html/node_modules/domutils/dist/stringify.js.map +1 -0
  262. package/node_modules/sanitize-html/node_modules/domutils/dist/traversal.d.ts +74 -0
  263. package/node_modules/sanitize-html/node_modules/domutils/dist/traversal.d.ts.map +1 -0
  264. package/node_modules/sanitize-html/node_modules/domutils/dist/traversal.js +105 -0
  265. package/node_modules/sanitize-html/node_modules/domutils/dist/traversal.js.map +1 -0
  266. package/node_modules/sanitize-html/node_modules/domutils/package.json +69 -0
  267. package/node_modules/{domutils → sanitize-html/node_modules/domutils}/readme.md +0 -6
  268. package/node_modules/sanitize-html/node_modules/domutils/src/__snapshots__/feeds.spec.ts.snap +103 -0
  269. package/node_modules/sanitize-html/node_modules/domutils/src/feeds.ts +301 -0
  270. package/node_modules/{domutils/lib/helpers.js → sanitize-html/node_modules/domutils/src/helpers.ts} +55 -43
  271. package/node_modules/{domutils/lib/index.d.ts → sanitize-html/node_modules/domutils/src/index.ts} +5 -8
  272. package/node_modules/sanitize-html/node_modules/domutils/src/legacy.ts +224 -0
  273. package/node_modules/sanitize-html/node_modules/domutils/src/manipulation.ts +156 -0
  274. package/node_modules/{domutils/lib/querying.js → sanitize-html/node_modules/domutils/src/querying.ts} +77 -60
  275. package/node_modules/sanitize-html/node_modules/domutils/src/stringify.ts +90 -0
  276. package/node_modules/sanitize-html/node_modules/domutils/src/traversal.ts +132 -0
  277. package/node_modules/sanitize-html/node_modules/entities/dist/decode-codepoint.d.ts +28 -0
  278. package/node_modules/sanitize-html/node_modules/entities/dist/decode-codepoint.d.ts.map +1 -0
  279. package/node_modules/sanitize-html/node_modules/entities/dist/decode-codepoint.js +61 -0
  280. package/node_modules/sanitize-html/node_modules/entities/dist/decode-codepoint.js.map +1 -0
  281. package/node_modules/{htmlparser2/node_modules/entities/dist/commonjs → sanitize-html/node_modules/entities/dist}/decode.d.ts +66 -44
  282. package/node_modules/sanitize-html/node_modules/entities/dist/decode.d.ts.map +1 -0
  283. package/node_modules/sanitize-html/node_modules/entities/dist/decode.js +1132 -0
  284. package/node_modules/sanitize-html/node_modules/entities/dist/decode.js.map +1 -0
  285. package/node_modules/{htmlparser2/node_modules/entities/dist/commonjs → sanitize-html/node_modules/entities/dist}/encode.d.ts +4 -0
  286. package/node_modules/sanitize-html/node_modules/entities/dist/encode.d.ts.map +1 -0
  287. package/node_modules/sanitize-html/node_modules/entities/dist/encode.js +295 -0
  288. package/node_modules/sanitize-html/node_modules/entities/dist/encode.js.map +1 -0
  289. package/node_modules/{htmlparser2/node_modules/entities/dist/commonjs → sanitize-html/node_modules/entities/dist}/escape.d.ts +23 -9
  290. package/node_modules/sanitize-html/node_modules/entities/dist/escape.d.ts.map +1 -0
  291. package/node_modules/sanitize-html/node_modules/entities/dist/escape.js +172 -0
  292. package/node_modules/sanitize-html/node_modules/entities/dist/escape.js.map +1 -0
  293. package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-html.d.ts +3 -0
  294. package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-html.d.ts.map +1 -0
  295. package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-html.js +5 -0
  296. package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-html.js.map +1 -0
  297. package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-xml.d.ts +3 -0
  298. package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +1 -0
  299. package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-xml.js +7 -0
  300. package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-xml.js.map +1 -0
  301. package/node_modules/sanitize-html/node_modules/entities/dist/generated/encode-html.d.ts +3 -0
  302. package/node_modules/sanitize-html/node_modules/entities/dist/generated/encode-html.d.ts.map +1 -0
  303. package/node_modules/sanitize-html/node_modules/entities/dist/generated/encode-html.js +3 -0
  304. package/node_modules/sanitize-html/node_modules/entities/dist/generated/encode-html.js.map +1 -0
  305. package/node_modules/{htmlparser2/node_modules/entities/dist/commonjs → sanitize-html/node_modules/entities/dist}/index.d.ts +11 -18
  306. package/node_modules/sanitize-html/node_modules/entities/dist/index.d.ts.map +1 -0
  307. package/node_modules/{htmlparser2/node_modules/entities/dist/esm → sanitize-html/node_modules/entities/dist}/index.js +9 -29
  308. package/node_modules/sanitize-html/node_modules/entities/dist/index.js.map +1 -0
  309. package/node_modules/sanitize-html/node_modules/entities/dist/internal/bin-trie-flags.d.ts +48 -0
  310. package/node_modules/sanitize-html/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +1 -0
  311. package/node_modules/sanitize-html/node_modules/entities/dist/internal/bin-trie-flags.js +49 -0
  312. package/node_modules/sanitize-html/node_modules/entities/dist/internal/bin-trie-flags.js.map +1 -0
  313. package/node_modules/sanitize-html/node_modules/entities/dist/internal/decode-shared.d.ts +38 -0
  314. package/node_modules/sanitize-html/node_modules/entities/dist/internal/decode-shared.d.ts.map +1 -0
  315. package/node_modules/sanitize-html/node_modules/entities/dist/internal/decode-shared.js +195 -0
  316. package/node_modules/sanitize-html/node_modules/entities/dist/internal/decode-shared.js.map +1 -0
  317. package/node_modules/sanitize-html/node_modules/entities/package.json +83 -0
  318. package/node_modules/{htmlparser2 → sanitize-html}/node_modules/entities/readme.md +4 -16
  319. package/node_modules/sanitize-html/node_modules/entities/src/decode-codepoint.ts +69 -0
  320. package/node_modules/sanitize-html/node_modules/entities/src/decode.ts +1368 -0
  321. package/node_modules/sanitize-html/node_modules/entities/src/encode.ts +337 -0
  322. package/node_modules/sanitize-html/node_modules/entities/src/escape.ts +187 -0
  323. package/node_modules/sanitize-html/node_modules/entities/src/generated/decode-data-html.ts +12 -0
  324. package/node_modules/sanitize-html/node_modules/entities/src/generated/decode-data-xml.ts +7 -0
  325. package/node_modules/sanitize-html/node_modules/entities/src/generated/encode-html.ts +3 -0
  326. package/node_modules/{htmlparser2 → sanitize-html}/node_modules/entities/src/index.ts +14 -41
  327. package/node_modules/sanitize-html/node_modules/entities/src/internal/bin-trie-flags.ts +47 -0
  328. package/node_modules/sanitize-html/node_modules/entities/src/internal/decode-shared.ts +209 -0
  329. package/node_modules/sanitize-html/node_modules/htmlparser2/README.md +257 -0
  330. package/node_modules/{htmlparser2/dist/esm → sanitize-html/node_modules/htmlparser2/dist}/Parser.d.ts +97 -38
  331. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/Parser.d.ts.map +1 -0
  332. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/Parser.js +644 -0
  333. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/Parser.js.map +1 -0
  334. package/node_modules/{htmlparser2/dist/commonjs → sanitize-html/node_modules/htmlparser2/dist}/Tokenizer.d.ts +75 -7
  335. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/Tokenizer.d.ts.map +1 -0
  336. package/node_modules/{htmlparser2/dist/esm → sanitize-html/node_modules/htmlparser2/dist}/Tokenizer.js +434 -179
  337. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/Tokenizer.js.map +1 -0
  338. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/WebWritableStream.d.ts +24 -0
  339. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/WebWritableStream.d.ts.map +1 -0
  340. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/WebWritableStream.js +44 -0
  341. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/WebWritableStream.js.map +1 -0
  342. package/node_modules/{htmlparser2/dist/commonjs → sanitize-html/node_modules/htmlparser2/dist}/WritableStream.d.ts +1 -2
  343. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/WritableStream.d.ts.map +1 -0
  344. package/node_modules/{htmlparser2/dist/esm → sanitize-html/node_modules/htmlparser2/dist}/WritableStream.js +3 -3
  345. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/WritableStream.js.map +1 -0
  346. package/node_modules/{htmlparser2/dist/commonjs → sanitize-html/node_modules/htmlparser2/dist}/index.d.ts +6 -26
  347. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/index.d.ts.map +1 -0
  348. package/node_modules/{htmlparser2/dist/esm → sanitize-html/node_modules/htmlparser2/dist}/index.js +2 -30
  349. package/node_modules/sanitize-html/node_modules/htmlparser2/dist/index.js.map +1 -0
  350. package/node_modules/sanitize-html/node_modules/htmlparser2/package.json +86 -0
  351. package/node_modules/{htmlparser2 → sanitize-html/node_modules/htmlparser2}/src/Parser.ts +260 -100
  352. package/node_modules/{htmlparser2 → sanitize-html/node_modules/htmlparser2}/src/Tokenizer.ts +438 -165
  353. package/node_modules/sanitize-html/node_modules/htmlparser2/src/WebWritableStream.ts +47 -0
  354. package/node_modules/{htmlparser2 → sanitize-html/node_modules/htmlparser2}/src/WritableStream.ts +1 -2
  355. package/node_modules/{htmlparser2 → sanitize-html/node_modules/htmlparser2}/src/index.ts +14 -43
  356. package/node_modules/sanitize-html/package.json +5 -2
  357. package/package.json +15 -15
  358. package/scripts/validateSecretsPrebuild.js +231 -0
  359. package/node_modules/dom-serializer/LICENSE +0 -11
  360. package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts +0 -3
  361. package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts.map +0 -1
  362. package/node_modules/dom-serializer/lib/esm/foreignNames.js +0 -100
  363. package/node_modules/dom-serializer/lib/esm/index.d.ts +0 -52
  364. package/node_modules/dom-serializer/lib/esm/index.d.ts.map +0 -1
  365. package/node_modules/dom-serializer/lib/esm/index.js +0 -190
  366. package/node_modules/dom-serializer/lib/esm/package.json +0 -1
  367. package/node_modules/dom-serializer/lib/foreignNames.d.ts +0 -3
  368. package/node_modules/dom-serializer/lib/foreignNames.d.ts.map +0 -1
  369. package/node_modules/dom-serializer/lib/foreignNames.js +0 -103
  370. package/node_modules/dom-serializer/lib/index.d.ts +0 -52
  371. package/node_modules/dom-serializer/lib/index.d.ts.map +0 -1
  372. package/node_modules/dom-serializer/lib/index.js +0 -229
  373. package/node_modules/dom-serializer/package.json +0 -69
  374. package/node_modules/domelementtype/lib/esm/index.d.ts +0 -48
  375. package/node_modules/domelementtype/lib/esm/index.d.ts.map +0 -1
  376. package/node_modules/domelementtype/lib/esm/package.json +0 -1
  377. package/node_modules/domelementtype/lib/index.d.ts.map +0 -1
  378. package/node_modules/domelementtype/lib/index.js +0 -55
  379. package/node_modules/domelementtype/package.json +0 -54
  380. package/node_modules/domhandler/lib/esm/index.d.ts +0 -76
  381. package/node_modules/domhandler/lib/esm/index.d.ts.map +0 -1
  382. package/node_modules/domhandler/lib/esm/node.d.ts +0 -245
  383. package/node_modules/domhandler/lib/esm/node.d.ts.map +0 -1
  384. package/node_modules/domhandler/lib/esm/package.json +0 -1
  385. package/node_modules/domhandler/lib/index.d.ts.map +0 -1
  386. package/node_modules/domhandler/lib/index.js +0 -165
  387. package/node_modules/domhandler/lib/node.d.ts.map +0 -1
  388. package/node_modules/domhandler/lib/node.js +0 -474
  389. package/node_modules/domhandler/package.json +0 -73
  390. package/node_modules/domutils/lib/esm/feeds.d.ts +0 -71
  391. package/node_modules/domutils/lib/esm/feeds.d.ts.map +0 -1
  392. package/node_modules/domutils/lib/esm/feeds.js.map +0 -1
  393. package/node_modules/domutils/lib/esm/helpers.d.ts +0 -59
  394. package/node_modules/domutils/lib/esm/helpers.d.ts.map +0 -1
  395. package/node_modules/domutils/lib/esm/helpers.js.map +0 -1
  396. package/node_modules/domutils/lib/esm/index.d.ts.map +0 -1
  397. package/node_modules/domutils/lib/esm/index.js.map +0 -1
  398. package/node_modules/domutils/lib/esm/legacy.d.ts.map +0 -1
  399. package/node_modules/domutils/lib/esm/legacy.js.map +0 -1
  400. package/node_modules/domutils/lib/esm/manipulation.d.ts.map +0 -1
  401. package/node_modules/domutils/lib/esm/manipulation.js +0 -134
  402. package/node_modules/domutils/lib/esm/manipulation.js.map +0 -1
  403. package/node_modules/domutils/lib/esm/package.json +0 -1
  404. package/node_modules/domutils/lib/esm/querying.d.ts +0 -64
  405. package/node_modules/domutils/lib/esm/querying.d.ts.map +0 -1
  406. package/node_modules/domutils/lib/esm/querying.js.map +0 -1
  407. package/node_modules/domutils/lib/esm/stringify.d.ts +0 -46
  408. package/node_modules/domutils/lib/esm/stringify.d.ts.map +0 -1
  409. package/node_modules/domutils/lib/esm/stringify.js.map +0 -1
  410. package/node_modules/domutils/lib/esm/traversal.d.ts +0 -67
  411. package/node_modules/domutils/lib/esm/traversal.d.ts.map +0 -1
  412. package/node_modules/domutils/lib/esm/traversal.js +0 -112
  413. package/node_modules/domutils/lib/esm/traversal.js.map +0 -1
  414. package/node_modules/domutils/lib/feeds.d.ts.map +0 -1
  415. package/node_modules/domutils/lib/feeds.js +0 -190
  416. package/node_modules/domutils/lib/feeds.js.map +0 -1
  417. package/node_modules/domutils/lib/helpers.d.ts.map +0 -1
  418. package/node_modules/domutils/lib/helpers.js.map +0 -1
  419. package/node_modules/domutils/lib/index.d.ts.map +0 -1
  420. package/node_modules/domutils/lib/index.js +0 -33
  421. package/node_modules/domutils/lib/index.js.map +0 -1
  422. package/node_modules/domutils/lib/legacy.d.ts +0 -79
  423. package/node_modules/domutils/lib/legacy.d.ts.map +0 -1
  424. package/node_modules/domutils/lib/legacy.js +0 -168
  425. package/node_modules/domutils/lib/legacy.js.map +0 -1
  426. package/node_modules/domutils/lib/manipulation.d.ts +0 -49
  427. package/node_modules/domutils/lib/manipulation.d.ts.map +0 -1
  428. package/node_modules/domutils/lib/manipulation.js +0 -142
  429. package/node_modules/domutils/lib/manipulation.js.map +0 -1
  430. package/node_modules/domutils/lib/querying.d.ts.map +0 -1
  431. package/node_modules/domutils/lib/querying.js.map +0 -1
  432. package/node_modules/domutils/lib/stringify.d.ts.map +0 -1
  433. package/node_modules/domutils/lib/stringify.js +0 -91
  434. package/node_modules/domutils/lib/stringify.js.map +0 -1
  435. package/node_modules/domutils/lib/traversal.d.ts +0 -67
  436. package/node_modules/domutils/lib/traversal.d.ts.map +0 -1
  437. package/node_modules/domutils/lib/traversal.js +0 -125
  438. package/node_modules/domutils/lib/traversal.js.map +0 -1
  439. package/node_modules/domutils/package.json +0 -79
  440. package/node_modules/htmlparser2/README.md +0 -171
  441. package/node_modules/htmlparser2/WritableStream.js +0 -3
  442. package/node_modules/htmlparser2/dist/commonjs/Parser.d.ts +0 -198
  443. package/node_modules/htmlparser2/dist/commonjs/Parser.d.ts.map +0 -1
  444. package/node_modules/htmlparser2/dist/commonjs/Parser.js +0 -527
  445. package/node_modules/htmlparser2/dist/commonjs/Parser.js.map +0 -1
  446. package/node_modules/htmlparser2/dist/commonjs/Tokenizer.d.ts.map +0 -1
  447. package/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +0 -805
  448. package/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +0 -1
  449. package/node_modules/htmlparser2/dist/commonjs/WritableStream.d.ts.map +0 -1
  450. package/node_modules/htmlparser2/dist/commonjs/WritableStream.js +0 -36
  451. package/node_modules/htmlparser2/dist/commonjs/WritableStream.js.map +0 -1
  452. package/node_modules/htmlparser2/dist/commonjs/index.d.ts.map +0 -1
  453. package/node_modules/htmlparser2/dist/commonjs/index.js +0 -123
  454. package/node_modules/htmlparser2/dist/commonjs/index.js.map +0 -1
  455. package/node_modules/htmlparser2/dist/commonjs/package.json +0 -3
  456. package/node_modules/htmlparser2/dist/esm/Parser.d.ts.map +0 -1
  457. package/node_modules/htmlparser2/dist/esm/Parser.js +0 -490
  458. package/node_modules/htmlparser2/dist/esm/Parser.js.map +0 -1
  459. package/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts +0 -126
  460. package/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts.map +0 -1
  461. package/node_modules/htmlparser2/dist/esm/Tokenizer.js.map +0 -1
  462. package/node_modules/htmlparser2/dist/esm/WritableStream.d.ts +0 -15
  463. package/node_modules/htmlparser2/dist/esm/WritableStream.d.ts.map +0 -1
  464. package/node_modules/htmlparser2/dist/esm/WritableStream.js.map +0 -1
  465. package/node_modules/htmlparser2/dist/esm/index.d.ts +0 -54
  466. package/node_modules/htmlparser2/dist/esm/index.d.ts.map +0 -1
  467. package/node_modules/htmlparser2/dist/esm/index.js.map +0 -1
  468. package/node_modules/htmlparser2/dist/esm/package.json +0 -3
  469. package/node_modules/htmlparser2/node_modules/entities/decode.d.ts +0 -3
  470. package/node_modules/htmlparser2/node_modules/entities/decode.js +0 -3
  471. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +0 -19
  472. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +0 -1
  473. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
  474. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
  475. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.d.ts.map +0 -1
  476. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +0 -568
  477. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +0 -1
  478. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.d.ts.map +0 -1
  479. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js +0 -92
  480. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js.map +0 -1
  481. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.d.ts.map +0 -1
  482. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js +0 -138
  483. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js.map +0 -1
  484. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +0 -2
  485. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +0 -1
  486. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -7
  487. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
  488. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +0 -2
  489. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +0 -1
  490. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -7
  491. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
  492. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +0 -3
  493. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +0 -1
  494. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.js +0 -14
  495. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.js.map +0 -1
  496. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.d.ts.map +0 -1
  497. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.js +0 -131
  498. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.js.map +0 -1
  499. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +0 -17
  500. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +0 -1
  501. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +0 -21
  502. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +0 -1
  503. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +0 -2
  504. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +0 -1
  505. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.js +0 -31
  506. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +0 -1
  507. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +0 -32
  508. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +0 -1
  509. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.js +0 -94
  510. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +0 -1
  511. package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/package.json +0 -3
  512. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.d.ts +0 -19
  513. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +0 -1
  514. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.js +0 -72
  515. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.js.map +0 -1
  516. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.d.ts +0 -205
  517. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.d.ts.map +0 -1
  518. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.js +0 -554
  519. package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.js.map +0 -1
  520. package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.d.ts +0 -22
  521. package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.d.ts.map +0 -1
  522. package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js +0 -88
  523. package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js.map +0 -1
  524. package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.d.ts +0 -46
  525. package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.d.ts.map +0 -1
  526. package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js +0 -134
  527. package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js.map +0 -1
  528. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +0 -2
  529. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +0 -1
  530. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -4
  531. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.js.map +0 -1
  532. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +0 -2
  533. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +0 -1
  534. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.js +0 -4
  535. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +0 -1
  536. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.d.ts +0 -3
  537. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +0 -1
  538. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.js +0 -11
  539. package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.js.map +0 -1
  540. package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.d.ts +0 -96
  541. package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.d.ts.map +0 -1
  542. package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.js.map +0 -1
  543. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +0 -17
  544. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +0 -1
  545. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.js +0 -18
  546. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +0 -1
  547. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.d.ts +0 -2
  548. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +0 -1
  549. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.js +0 -28
  550. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.js.map +0 -1
  551. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.d.ts +0 -32
  552. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +0 -1
  553. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.js +0 -91
  554. package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.js.map +0 -1
  555. package/node_modules/htmlparser2/node_modules/entities/dist/esm/package.json +0 -3
  556. package/node_modules/htmlparser2/node_modules/entities/escape.d.ts +0 -3
  557. package/node_modules/htmlparser2/node_modules/entities/escape.js +0 -3
  558. package/node_modules/htmlparser2/node_modules/entities/package.json +0 -120
  559. package/node_modules/htmlparser2/node_modules/entities/src/decode-codepoint.ts +0 -81
  560. package/node_modules/htmlparser2/node_modules/entities/src/decode.ts +0 -685
  561. package/node_modules/htmlparser2/node_modules/entities/src/encode.ts +0 -93
  562. package/node_modules/htmlparser2/node_modules/entities/src/escape.ts +0 -161
  563. package/node_modules/htmlparser2/node_modules/entities/src/generated/.eslintrc.json +0 -10
  564. package/node_modules/htmlparser2/node_modules/entities/src/generated/decode-data-html.ts +0 -6
  565. package/node_modules/htmlparser2/node_modules/entities/src/generated/decode-data-xml.ts +0 -6
  566. package/node_modules/htmlparser2/node_modules/entities/src/generated/encode-html.ts +0 -17
  567. package/node_modules/htmlparser2/node_modules/entities/src/internal/bin-trie-flags.ts +0 -16
  568. package/node_modules/htmlparser2/node_modules/entities/src/internal/decode-shared.ts +0 -30
  569. package/node_modules/htmlparser2/node_modules/entities/src/internal/encode-shared.ts +0 -121
  570. package/node_modules/htmlparser2/package.json +0 -113
  571. /package/node_modules/{domelementtype → sanitize-html/node_modules/domelementtype}/LICENSE +0 -0
  572. /package/node_modules/{domelementtype → sanitize-html/node_modules/domelementtype}/readme.md +0 -0
  573. /package/node_modules/{domhandler → sanitize-html/node_modules/domhandler}/LICENSE +0 -0
  574. /package/node_modules/{domutils → sanitize-html/node_modules/domutils}/LICENSE +0 -0
  575. /package/node_modules/{htmlparser2 → sanitize-html}/node_modules/entities/LICENSE +0 -0
  576. /package/node_modules/{htmlparser2 → sanitize-html/node_modules/htmlparser2}/LICENSE +0 -0
@@ -1,805 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QuoteType = void 0;
4
- const decode_1 = require("entities/decode");
5
- var CharCodes;
6
- (function (CharCodes) {
7
- CharCodes[CharCodes["Tab"] = 9] = "Tab";
8
- CharCodes[CharCodes["NewLine"] = 10] = "NewLine";
9
- CharCodes[CharCodes["FormFeed"] = 12] = "FormFeed";
10
- CharCodes[CharCodes["CarriageReturn"] = 13] = "CarriageReturn";
11
- CharCodes[CharCodes["Space"] = 32] = "Space";
12
- CharCodes[CharCodes["ExclamationMark"] = 33] = "ExclamationMark";
13
- CharCodes[CharCodes["Number"] = 35] = "Number";
14
- CharCodes[CharCodes["Amp"] = 38] = "Amp";
15
- CharCodes[CharCodes["SingleQuote"] = 39] = "SingleQuote";
16
- CharCodes[CharCodes["DoubleQuote"] = 34] = "DoubleQuote";
17
- CharCodes[CharCodes["Dash"] = 45] = "Dash";
18
- CharCodes[CharCodes["Slash"] = 47] = "Slash";
19
- CharCodes[CharCodes["Zero"] = 48] = "Zero";
20
- CharCodes[CharCodes["Nine"] = 57] = "Nine";
21
- CharCodes[CharCodes["Semi"] = 59] = "Semi";
22
- CharCodes[CharCodes["Lt"] = 60] = "Lt";
23
- CharCodes[CharCodes["Eq"] = 61] = "Eq";
24
- CharCodes[CharCodes["Gt"] = 62] = "Gt";
25
- CharCodes[CharCodes["Questionmark"] = 63] = "Questionmark";
26
- CharCodes[CharCodes["UpperA"] = 65] = "UpperA";
27
- CharCodes[CharCodes["LowerA"] = 97] = "LowerA";
28
- CharCodes[CharCodes["UpperF"] = 70] = "UpperF";
29
- CharCodes[CharCodes["LowerF"] = 102] = "LowerF";
30
- CharCodes[CharCodes["UpperZ"] = 90] = "UpperZ";
31
- CharCodes[CharCodes["LowerZ"] = 122] = "LowerZ";
32
- CharCodes[CharCodes["LowerX"] = 120] = "LowerX";
33
- CharCodes[CharCodes["OpeningSquareBracket"] = 91] = "OpeningSquareBracket";
34
- })(CharCodes || (CharCodes = {}));
35
- /** All the states the tokenizer can be in. */
36
- var State;
37
- (function (State) {
38
- State[State["Text"] = 1] = "Text";
39
- State[State["BeforeTagName"] = 2] = "BeforeTagName";
40
- State[State["InTagName"] = 3] = "InTagName";
41
- State[State["InSelfClosingTag"] = 4] = "InSelfClosingTag";
42
- State[State["BeforeClosingTagName"] = 5] = "BeforeClosingTagName";
43
- State[State["InClosingTagName"] = 6] = "InClosingTagName";
44
- State[State["AfterClosingTagName"] = 7] = "AfterClosingTagName";
45
- // Attributes
46
- State[State["BeforeAttributeName"] = 8] = "BeforeAttributeName";
47
- State[State["InAttributeName"] = 9] = "InAttributeName";
48
- State[State["AfterAttributeName"] = 10] = "AfterAttributeName";
49
- State[State["BeforeAttributeValue"] = 11] = "BeforeAttributeValue";
50
- State[State["InAttributeValueDq"] = 12] = "InAttributeValueDq";
51
- State[State["InAttributeValueSq"] = 13] = "InAttributeValueSq";
52
- State[State["InAttributeValueNq"] = 14] = "InAttributeValueNq";
53
- // Declarations
54
- State[State["BeforeDeclaration"] = 15] = "BeforeDeclaration";
55
- State[State["InDeclaration"] = 16] = "InDeclaration";
56
- // Processing instructions
57
- State[State["InProcessingInstruction"] = 17] = "InProcessingInstruction";
58
- // Comments & CDATA
59
- State[State["BeforeComment"] = 18] = "BeforeComment";
60
- State[State["CDATASequence"] = 19] = "CDATASequence";
61
- State[State["InSpecialComment"] = 20] = "InSpecialComment";
62
- State[State["InCommentLike"] = 21] = "InCommentLike";
63
- // Special tags
64
- State[State["BeforeSpecialS"] = 22] = "BeforeSpecialS";
65
- State[State["BeforeSpecialT"] = 23] = "BeforeSpecialT";
66
- State[State["SpecialStartSequence"] = 24] = "SpecialStartSequence";
67
- State[State["InSpecialTag"] = 25] = "InSpecialTag";
68
- State[State["InEntity"] = 26] = "InEntity";
69
- })(State || (State = {}));
70
- function isWhitespace(c) {
71
- return (c === CharCodes.Space ||
72
- c === CharCodes.NewLine ||
73
- c === CharCodes.Tab ||
74
- c === CharCodes.FormFeed ||
75
- c === CharCodes.CarriageReturn);
76
- }
77
- function isEndOfTagSection(c) {
78
- return c === CharCodes.Slash || c === CharCodes.Gt || isWhitespace(c);
79
- }
80
- function isASCIIAlpha(c) {
81
- return ((c >= CharCodes.LowerA && c <= CharCodes.LowerZ) ||
82
- (c >= CharCodes.UpperA && c <= CharCodes.UpperZ));
83
- }
84
- var QuoteType;
85
- (function (QuoteType) {
86
- QuoteType[QuoteType["NoValue"] = 0] = "NoValue";
87
- QuoteType[QuoteType["Unquoted"] = 1] = "Unquoted";
88
- QuoteType[QuoteType["Single"] = 2] = "Single";
89
- QuoteType[QuoteType["Double"] = 3] = "Double";
90
- })(QuoteType || (exports.QuoteType = QuoteType = {}));
91
- /**
92
- * Sequences used to match longer strings.
93
- *
94
- * We don't have `Script`, `Style`, or `Title` here. Instead, we re-use the *End
95
- * sequences with an increased offset.
96
- */
97
- const Sequences = {
98
- Cdata: new Uint8Array([0x43, 0x44, 0x41, 0x54, 0x41, 0x5b]), // CDATA[
99
- CdataEnd: new Uint8Array([0x5d, 0x5d, 0x3e]), // ]]>
100
- CommentEnd: new Uint8Array([0x2d, 0x2d, 0x3e]), // `-->`
101
- ScriptEnd: new Uint8Array([0x3c, 0x2f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74]), // `</script`
102
- StyleEnd: new Uint8Array([0x3c, 0x2f, 0x73, 0x74, 0x79, 0x6c, 0x65]), // `</style`
103
- TitleEnd: new Uint8Array([0x3c, 0x2f, 0x74, 0x69, 0x74, 0x6c, 0x65]), // `</title`
104
- TextareaEnd: new Uint8Array([
105
- 0x3c, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x61, 0x72, 0x65, 0x61,
106
- ]), // `</textarea`
107
- XmpEnd: new Uint8Array([0x3c, 0x2f, 0x78, 0x6d, 0x70]), // `</xmp`
108
- };
109
- class Tokenizer {
110
- constructor({ xmlMode = false, decodeEntities = true, }, cbs) {
111
- this.cbs = cbs;
112
- /** The current state the tokenizer is in. */
113
- this.state = State.Text;
114
- /** The read buffer. */
115
- this.buffer = "";
116
- /** The beginning of the section that is currently being read. */
117
- this.sectionStart = 0;
118
- /** The index within the buffer that we are currently looking at. */
119
- this.index = 0;
120
- /** The start of the last entity. */
121
- this.entityStart = 0;
122
- /** Some behavior, eg. when decoding entities, is done while we are in another state. This keeps track of the other state type. */
123
- this.baseState = State.Text;
124
- /** For special parsing behavior inside of script and style tags. */
125
- this.isSpecial = false;
126
- /** Indicates whether the tokenizer has been paused. */
127
- this.running = true;
128
- /** The offset of the current buffer. */
129
- this.offset = 0;
130
- this.currentSequence = undefined;
131
- this.sequenceIndex = 0;
132
- this.xmlMode = xmlMode;
133
- this.decodeEntities = decodeEntities;
134
- this.entityDecoder = new decode_1.EntityDecoder(xmlMode ? decode_1.xmlDecodeTree : decode_1.htmlDecodeTree, (cp, consumed) => this.emitCodePoint(cp, consumed));
135
- }
136
- reset() {
137
- this.state = State.Text;
138
- this.buffer = "";
139
- this.sectionStart = 0;
140
- this.index = 0;
141
- this.baseState = State.Text;
142
- this.currentSequence = undefined;
143
- this.running = true;
144
- this.offset = 0;
145
- }
146
- write(chunk) {
147
- this.offset += this.buffer.length;
148
- this.buffer = chunk;
149
- this.parse();
150
- }
151
- end() {
152
- if (this.running)
153
- this.finish();
154
- }
155
- pause() {
156
- this.running = false;
157
- }
158
- resume() {
159
- this.running = true;
160
- if (this.index < this.buffer.length + this.offset) {
161
- this.parse();
162
- }
163
- }
164
- stateText(c) {
165
- if (c === CharCodes.Lt ||
166
- (!this.decodeEntities && this.fastForwardTo(CharCodes.Lt))) {
167
- if (this.index > this.sectionStart) {
168
- this.cbs.ontext(this.sectionStart, this.index);
169
- }
170
- this.state = State.BeforeTagName;
171
- this.sectionStart = this.index;
172
- }
173
- else if (this.decodeEntities && c === CharCodes.Amp) {
174
- this.startEntity();
175
- }
176
- }
177
- stateSpecialStartSequence(c) {
178
- const isEnd = this.sequenceIndex === this.currentSequence.length;
179
- const isMatch = isEnd
180
- ? // If we are at the end of the sequence, make sure the tag name has ended
181
- isEndOfTagSection(c)
182
- : // Otherwise, do a case-insensitive comparison
183
- (c | 0x20) === this.currentSequence[this.sequenceIndex];
184
- if (!isMatch) {
185
- this.isSpecial = false;
186
- }
187
- else if (!isEnd) {
188
- this.sequenceIndex++;
189
- return;
190
- }
191
- this.sequenceIndex = 0;
192
- this.state = State.InTagName;
193
- this.stateInTagName(c);
194
- }
195
- /** Look for an end tag. For <title> tags, also decode entities. */
196
- stateInSpecialTag(c) {
197
- if (this.sequenceIndex === this.currentSequence.length) {
198
- if (c === CharCodes.Gt || isWhitespace(c)) {
199
- const endOfText = this.index - this.currentSequence.length;
200
- if (this.sectionStart < endOfText) {
201
- // Spoof the index so that reported locations match up.
202
- const actualIndex = this.index;
203
- this.index = endOfText;
204
- this.cbs.ontext(this.sectionStart, endOfText);
205
- this.index = actualIndex;
206
- }
207
- this.isSpecial = false;
208
- this.sectionStart = endOfText + 2; // Skip over the `</`
209
- this.stateInClosingTagName(c);
210
- return; // We are done; skip the rest of the function.
211
- }
212
- this.sequenceIndex = 0;
213
- }
214
- if ((c | 0x20) === this.currentSequence[this.sequenceIndex]) {
215
- this.sequenceIndex += 1;
216
- }
217
- else if (this.sequenceIndex === 0) {
218
- if (this.currentSequence === Sequences.TitleEnd) {
219
- // We have to parse entities in <title> tags.
220
- if (this.decodeEntities && c === CharCodes.Amp) {
221
- this.startEntity();
222
- }
223
- }
224
- else if (this.fastForwardTo(CharCodes.Lt)) {
225
- // Outside of <title> tags, we can fast-forward.
226
- this.sequenceIndex = 1;
227
- }
228
- }
229
- else {
230
- // If we see a `<`, set the sequence index to 1; useful for eg. `<</script>`.
231
- this.sequenceIndex = Number(c === CharCodes.Lt);
232
- }
233
- }
234
- stateCDATASequence(c) {
235
- if (c === Sequences.Cdata[this.sequenceIndex]) {
236
- if (++this.sequenceIndex === Sequences.Cdata.length) {
237
- this.state = State.InCommentLike;
238
- this.currentSequence = Sequences.CdataEnd;
239
- this.sequenceIndex = 0;
240
- this.sectionStart = this.index + 1;
241
- }
242
- }
243
- else {
244
- this.sequenceIndex = 0;
245
- this.state = State.InDeclaration;
246
- this.stateInDeclaration(c); // Reconsume the character
247
- }
248
- }
249
- /**
250
- * When we wait for one specific character, we can speed things up
251
- * by skipping through the buffer until we find it.
252
- *
253
- * @returns Whether the character was found.
254
- */
255
- fastForwardTo(c) {
256
- while (++this.index < this.buffer.length + this.offset) {
257
- if (this.buffer.charCodeAt(this.index - this.offset) === c) {
258
- return true;
259
- }
260
- }
261
- /*
262
- * We increment the index at the end of the `parse` loop,
263
- * so set it to `buffer.length - 1` here.
264
- *
265
- * TODO: Refactor `parse` to increment index before calling states.
266
- */
267
- this.index = this.buffer.length + this.offset - 1;
268
- return false;
269
- }
270
- /**
271
- * Comments and CDATA end with `-->` and `]]>`.
272
- *
273
- * Their common qualities are:
274
- * - Their end sequences have a distinct character they start with.
275
- * - That character is then repeated, so we have to check multiple repeats.
276
- * - All characters but the start character of the sequence can be skipped.
277
- */
278
- stateInCommentLike(c) {
279
- if (c === this.currentSequence[this.sequenceIndex]) {
280
- if (++this.sequenceIndex === this.currentSequence.length) {
281
- if (this.currentSequence === Sequences.CdataEnd) {
282
- this.cbs.oncdata(this.sectionStart, this.index, 2);
283
- }
284
- else {
285
- this.cbs.oncomment(this.sectionStart, this.index, 2);
286
- }
287
- this.sequenceIndex = 0;
288
- this.sectionStart = this.index + 1;
289
- this.state = State.Text;
290
- }
291
- }
292
- else if (this.sequenceIndex === 0) {
293
- // Fast-forward to the first character of the sequence
294
- if (this.fastForwardTo(this.currentSequence[0])) {
295
- this.sequenceIndex = 1;
296
- }
297
- }
298
- else if (c !== this.currentSequence[this.sequenceIndex - 1]) {
299
- // Allow long sequences, eg. --->, ]]]>
300
- this.sequenceIndex = 0;
301
- }
302
- }
303
- /**
304
- * HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name.
305
- *
306
- * XML allows a lot more characters here (@see https://www.w3.org/TR/REC-xml/#NT-NameStartChar).
307
- * We allow anything that wouldn't end the tag.
308
- */
309
- isTagStartChar(c) {
310
- return this.xmlMode ? !isEndOfTagSection(c) : isASCIIAlpha(c);
311
- }
312
- startSpecial(sequence, offset) {
313
- this.isSpecial = true;
314
- this.currentSequence = sequence;
315
- this.sequenceIndex = offset;
316
- this.state = State.SpecialStartSequence;
317
- }
318
- stateBeforeTagName(c) {
319
- if (c === CharCodes.ExclamationMark) {
320
- this.state = State.BeforeDeclaration;
321
- this.sectionStart = this.index + 1;
322
- }
323
- else if (c === CharCodes.Questionmark) {
324
- this.state = State.InProcessingInstruction;
325
- this.sectionStart = this.index + 1;
326
- }
327
- else if (this.isTagStartChar(c)) {
328
- const lower = c | 0x20;
329
- this.sectionStart = this.index;
330
- if (this.xmlMode) {
331
- this.state = State.InTagName;
332
- }
333
- else if (lower === Sequences.ScriptEnd[2]) {
334
- this.state = State.BeforeSpecialS;
335
- }
336
- else if (lower === Sequences.TitleEnd[2] ||
337
- lower === Sequences.XmpEnd[2]) {
338
- this.state = State.BeforeSpecialT;
339
- }
340
- else {
341
- this.state = State.InTagName;
342
- }
343
- }
344
- else if (c === CharCodes.Slash) {
345
- this.state = State.BeforeClosingTagName;
346
- }
347
- else {
348
- this.state = State.Text;
349
- this.stateText(c);
350
- }
351
- }
352
- stateInTagName(c) {
353
- if (isEndOfTagSection(c)) {
354
- this.cbs.onopentagname(this.sectionStart, this.index);
355
- this.sectionStart = -1;
356
- this.state = State.BeforeAttributeName;
357
- this.stateBeforeAttributeName(c);
358
- }
359
- }
360
- stateBeforeClosingTagName(c) {
361
- if (isWhitespace(c)) {
362
- // Ignore
363
- }
364
- else if (c === CharCodes.Gt) {
365
- this.state = State.Text;
366
- }
367
- else {
368
- this.state = this.isTagStartChar(c)
369
- ? State.InClosingTagName
370
- : State.InSpecialComment;
371
- this.sectionStart = this.index;
372
- }
373
- }
374
- stateInClosingTagName(c) {
375
- if (c === CharCodes.Gt || isWhitespace(c)) {
376
- this.cbs.onclosetag(this.sectionStart, this.index);
377
- this.sectionStart = -1;
378
- this.state = State.AfterClosingTagName;
379
- this.stateAfterClosingTagName(c);
380
- }
381
- }
382
- stateAfterClosingTagName(c) {
383
- // Skip everything until ">"
384
- if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {
385
- this.state = State.Text;
386
- this.sectionStart = this.index + 1;
387
- }
388
- }
389
- stateBeforeAttributeName(c) {
390
- if (c === CharCodes.Gt) {
391
- this.cbs.onopentagend(this.index);
392
- if (this.isSpecial) {
393
- this.state = State.InSpecialTag;
394
- this.sequenceIndex = 0;
395
- }
396
- else {
397
- this.state = State.Text;
398
- }
399
- this.sectionStart = this.index + 1;
400
- }
401
- else if (c === CharCodes.Slash) {
402
- this.state = State.InSelfClosingTag;
403
- }
404
- else if (!isWhitespace(c)) {
405
- this.state = State.InAttributeName;
406
- this.sectionStart = this.index;
407
- }
408
- }
409
- stateInSelfClosingTag(c) {
410
- if (c === CharCodes.Gt) {
411
- this.cbs.onselfclosingtag(this.index);
412
- this.state = State.Text;
413
- this.sectionStart = this.index + 1;
414
- this.isSpecial = false; // Reset special state, in case of self-closing special tags
415
- }
416
- else if (!isWhitespace(c)) {
417
- this.state = State.BeforeAttributeName;
418
- this.stateBeforeAttributeName(c);
419
- }
420
- }
421
- stateInAttributeName(c) {
422
- if (c === CharCodes.Eq || isEndOfTagSection(c)) {
423
- this.cbs.onattribname(this.sectionStart, this.index);
424
- this.sectionStart = this.index;
425
- this.state = State.AfterAttributeName;
426
- this.stateAfterAttributeName(c);
427
- }
428
- }
429
- stateAfterAttributeName(c) {
430
- if (c === CharCodes.Eq) {
431
- this.state = State.BeforeAttributeValue;
432
- }
433
- else if (c === CharCodes.Slash || c === CharCodes.Gt) {
434
- this.cbs.onattribend(QuoteType.NoValue, this.sectionStart);
435
- this.sectionStart = -1;
436
- this.state = State.BeforeAttributeName;
437
- this.stateBeforeAttributeName(c);
438
- }
439
- else if (!isWhitespace(c)) {
440
- this.cbs.onattribend(QuoteType.NoValue, this.sectionStart);
441
- this.state = State.InAttributeName;
442
- this.sectionStart = this.index;
443
- }
444
- }
445
- stateBeforeAttributeValue(c) {
446
- if (c === CharCodes.DoubleQuote) {
447
- this.state = State.InAttributeValueDq;
448
- this.sectionStart = this.index + 1;
449
- }
450
- else if (c === CharCodes.SingleQuote) {
451
- this.state = State.InAttributeValueSq;
452
- this.sectionStart = this.index + 1;
453
- }
454
- else if (!isWhitespace(c)) {
455
- this.sectionStart = this.index;
456
- this.state = State.InAttributeValueNq;
457
- this.stateInAttributeValueNoQuotes(c); // Reconsume token
458
- }
459
- }
460
- handleInAttributeValue(c, quote) {
461
- if (c === quote ||
462
- (!this.decodeEntities && this.fastForwardTo(quote))) {
463
- this.cbs.onattribdata(this.sectionStart, this.index);
464
- this.sectionStart = -1;
465
- this.cbs.onattribend(quote === CharCodes.DoubleQuote
466
- ? QuoteType.Double
467
- : QuoteType.Single, this.index + 1);
468
- this.state = State.BeforeAttributeName;
469
- }
470
- else if (this.decodeEntities && c === CharCodes.Amp) {
471
- this.startEntity();
472
- }
473
- }
474
- stateInAttributeValueDoubleQuotes(c) {
475
- this.handleInAttributeValue(c, CharCodes.DoubleQuote);
476
- }
477
- stateInAttributeValueSingleQuotes(c) {
478
- this.handleInAttributeValue(c, CharCodes.SingleQuote);
479
- }
480
- stateInAttributeValueNoQuotes(c) {
481
- if (isWhitespace(c) || c === CharCodes.Gt) {
482
- this.cbs.onattribdata(this.sectionStart, this.index);
483
- this.sectionStart = -1;
484
- this.cbs.onattribend(QuoteType.Unquoted, this.index);
485
- this.state = State.BeforeAttributeName;
486
- this.stateBeforeAttributeName(c);
487
- }
488
- else if (this.decodeEntities && c === CharCodes.Amp) {
489
- this.startEntity();
490
- }
491
- }
492
- stateBeforeDeclaration(c) {
493
- if (c === CharCodes.OpeningSquareBracket) {
494
- this.state = State.CDATASequence;
495
- this.sequenceIndex = 0;
496
- }
497
- else {
498
- this.state =
499
- c === CharCodes.Dash
500
- ? State.BeforeComment
501
- : State.InDeclaration;
502
- }
503
- }
504
- stateInDeclaration(c) {
505
- if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {
506
- this.cbs.ondeclaration(this.sectionStart, this.index);
507
- this.state = State.Text;
508
- this.sectionStart = this.index + 1;
509
- }
510
- }
511
- stateInProcessingInstruction(c) {
512
- if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {
513
- this.cbs.onprocessinginstruction(this.sectionStart, this.index);
514
- this.state = State.Text;
515
- this.sectionStart = this.index + 1;
516
- }
517
- }
518
- stateBeforeComment(c) {
519
- if (c === CharCodes.Dash) {
520
- this.state = State.InCommentLike;
521
- this.currentSequence = Sequences.CommentEnd;
522
- // Allow short comments (eg. <!-->)
523
- this.sequenceIndex = 2;
524
- this.sectionStart = this.index + 1;
525
- }
526
- else {
527
- this.state = State.InDeclaration;
528
- }
529
- }
530
- stateInSpecialComment(c) {
531
- if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {
532
- this.cbs.oncomment(this.sectionStart, this.index, 0);
533
- this.state = State.Text;
534
- this.sectionStart = this.index + 1;
535
- }
536
- }
537
- stateBeforeSpecialS(c) {
538
- const lower = c | 0x20;
539
- if (lower === Sequences.ScriptEnd[3]) {
540
- this.startSpecial(Sequences.ScriptEnd, 4);
541
- }
542
- else if (lower === Sequences.StyleEnd[3]) {
543
- this.startSpecial(Sequences.StyleEnd, 4);
544
- }
545
- else {
546
- this.state = State.InTagName;
547
- this.stateInTagName(c); // Consume the token again
548
- }
549
- }
550
- stateBeforeSpecialT(c) {
551
- const lower = c | 0x20;
552
- switch (lower) {
553
- case Sequences.TitleEnd[3]: {
554
- this.startSpecial(Sequences.TitleEnd, 4);
555
- break;
556
- }
557
- case Sequences.TextareaEnd[3]: {
558
- this.startSpecial(Sequences.TextareaEnd, 4);
559
- break;
560
- }
561
- case Sequences.XmpEnd[3]: {
562
- this.startSpecial(Sequences.XmpEnd, 4);
563
- break;
564
- }
565
- default: {
566
- this.state = State.InTagName;
567
- this.stateInTagName(c); // Consume the token again
568
- }
569
- }
570
- }
571
- startEntity() {
572
- this.baseState = this.state;
573
- this.state = State.InEntity;
574
- this.entityStart = this.index;
575
- this.entityDecoder.startEntity(this.xmlMode
576
- ? decode_1.DecodingMode.Strict
577
- : this.baseState === State.Text ||
578
- this.baseState === State.InSpecialTag
579
- ? decode_1.DecodingMode.Legacy
580
- : decode_1.DecodingMode.Attribute);
581
- }
582
- stateInEntity() {
583
- const indexInBuffer = this.index - this.offset;
584
- const length = this.entityDecoder.write(this.buffer, indexInBuffer);
585
- // If `length` is positive, we are done with the entity.
586
- if (length >= 0) {
587
- this.state = this.baseState;
588
- if (length === 0) {
589
- this.index -= 1;
590
- }
591
- }
592
- else {
593
- if (indexInBuffer < this.buffer.length &&
594
- this.buffer.charCodeAt(indexInBuffer) === CharCodes.Amp) {
595
- this.state = this.baseState;
596
- this.index -= 1;
597
- return;
598
- }
599
- // Mark buffer as consumed.
600
- this.index = this.offset + this.buffer.length - 1;
601
- }
602
- }
603
- /**
604
- * Remove data that has already been consumed from the buffer.
605
- */
606
- cleanup() {
607
- // If we are inside of text or attributes, emit what we already have.
608
- if (this.running && this.sectionStart !== this.index) {
609
- if (this.state === State.Text ||
610
- (this.state === State.InSpecialTag && this.sequenceIndex === 0)) {
611
- this.cbs.ontext(this.sectionStart, this.index);
612
- this.sectionStart = this.index;
613
- }
614
- else if (this.state === State.InAttributeValueDq ||
615
- this.state === State.InAttributeValueSq ||
616
- this.state === State.InAttributeValueNq) {
617
- this.cbs.onattribdata(this.sectionStart, this.index);
618
- this.sectionStart = this.index;
619
- }
620
- }
621
- }
622
- shouldContinue() {
623
- return this.index < this.buffer.length + this.offset && this.running;
624
- }
625
- /**
626
- * Iterates through the buffer, calling the function corresponding to the current state.
627
- *
628
- * States that are more likely to be hit are higher up, as a performance improvement.
629
- */
630
- parse() {
631
- while (this.shouldContinue()) {
632
- const c = this.buffer.charCodeAt(this.index - this.offset);
633
- switch (this.state) {
634
- case State.Text: {
635
- this.stateText(c);
636
- break;
637
- }
638
- case State.SpecialStartSequence: {
639
- this.stateSpecialStartSequence(c);
640
- break;
641
- }
642
- case State.InSpecialTag: {
643
- this.stateInSpecialTag(c);
644
- break;
645
- }
646
- case State.CDATASequence: {
647
- this.stateCDATASequence(c);
648
- break;
649
- }
650
- case State.InAttributeValueDq: {
651
- this.stateInAttributeValueDoubleQuotes(c);
652
- break;
653
- }
654
- case State.InAttributeName: {
655
- this.stateInAttributeName(c);
656
- break;
657
- }
658
- case State.InCommentLike: {
659
- this.stateInCommentLike(c);
660
- break;
661
- }
662
- case State.InSpecialComment: {
663
- this.stateInSpecialComment(c);
664
- break;
665
- }
666
- case State.BeforeAttributeName: {
667
- this.stateBeforeAttributeName(c);
668
- break;
669
- }
670
- case State.InTagName: {
671
- this.stateInTagName(c);
672
- break;
673
- }
674
- case State.InClosingTagName: {
675
- this.stateInClosingTagName(c);
676
- break;
677
- }
678
- case State.BeforeTagName: {
679
- this.stateBeforeTagName(c);
680
- break;
681
- }
682
- case State.AfterAttributeName: {
683
- this.stateAfterAttributeName(c);
684
- break;
685
- }
686
- case State.InAttributeValueSq: {
687
- this.stateInAttributeValueSingleQuotes(c);
688
- break;
689
- }
690
- case State.BeforeAttributeValue: {
691
- this.stateBeforeAttributeValue(c);
692
- break;
693
- }
694
- case State.BeforeClosingTagName: {
695
- this.stateBeforeClosingTagName(c);
696
- break;
697
- }
698
- case State.AfterClosingTagName: {
699
- this.stateAfterClosingTagName(c);
700
- break;
701
- }
702
- case State.BeforeSpecialS: {
703
- this.stateBeforeSpecialS(c);
704
- break;
705
- }
706
- case State.BeforeSpecialT: {
707
- this.stateBeforeSpecialT(c);
708
- break;
709
- }
710
- case State.InAttributeValueNq: {
711
- this.stateInAttributeValueNoQuotes(c);
712
- break;
713
- }
714
- case State.InSelfClosingTag: {
715
- this.stateInSelfClosingTag(c);
716
- break;
717
- }
718
- case State.InDeclaration: {
719
- this.stateInDeclaration(c);
720
- break;
721
- }
722
- case State.BeforeDeclaration: {
723
- this.stateBeforeDeclaration(c);
724
- break;
725
- }
726
- case State.BeforeComment: {
727
- this.stateBeforeComment(c);
728
- break;
729
- }
730
- case State.InProcessingInstruction: {
731
- this.stateInProcessingInstruction(c);
732
- break;
733
- }
734
- case State.InEntity: {
735
- this.stateInEntity();
736
- break;
737
- }
738
- }
739
- this.index++;
740
- }
741
- this.cleanup();
742
- }
743
- finish() {
744
- if (this.state === State.InEntity) {
745
- this.entityDecoder.end();
746
- this.state = this.baseState;
747
- }
748
- this.handleTrailingData();
749
- this.cbs.onend();
750
- }
751
- /** Handle any trailing data. */
752
- handleTrailingData() {
753
- const endIndex = this.buffer.length + this.offset;
754
- // If there is no remaining data, we are done.
755
- if (this.sectionStart >= endIndex) {
756
- return;
757
- }
758
- if (this.state === State.InCommentLike) {
759
- if (this.currentSequence === Sequences.CdataEnd) {
760
- this.cbs.oncdata(this.sectionStart, endIndex, 0);
761
- }
762
- else {
763
- this.cbs.oncomment(this.sectionStart, endIndex, 0);
764
- }
765
- }
766
- else if (this.state === State.InTagName ||
767
- this.state === State.BeforeAttributeName ||
768
- this.state === State.BeforeAttributeValue ||
769
- this.state === State.AfterAttributeName ||
770
- this.state === State.InAttributeName ||
771
- this.state === State.InAttributeValueSq ||
772
- this.state === State.InAttributeValueDq ||
773
- this.state === State.InAttributeValueNq ||
774
- this.state === State.InClosingTagName) {
775
- /*
776
- * If we are currently in an opening or closing tag, us not calling the
777
- * respective callback signals that the tag should be ignored.
778
- */
779
- }
780
- else {
781
- this.cbs.ontext(this.sectionStart, endIndex);
782
- }
783
- }
784
- emitCodePoint(cp, consumed) {
785
- if (this.baseState !== State.Text &&
786
- this.baseState !== State.InSpecialTag) {
787
- if (this.sectionStart < this.entityStart) {
788
- this.cbs.onattribdata(this.sectionStart, this.entityStart);
789
- }
790
- this.sectionStart = this.entityStart + consumed;
791
- this.index = this.sectionStart - 1;
792
- this.cbs.onattribentity(cp);
793
- }
794
- else {
795
- if (this.sectionStart < this.entityStart) {
796
- this.cbs.ontext(this.sectionStart, this.entityStart);
797
- }
798
- this.sectionStart = this.entityStart + consumed;
799
- this.index = this.sectionStart - 1;
800
- this.cbs.ontextentity(cp, this.sectionStart);
801
- }
802
- }
803
- }
804
- exports.default = Tokenizer;
805
- //# sourceMappingURL=Tokenizer.js.map