@goodpeanuts/dsh-sui 0.0.0-stage → 0.1.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 (823) hide show
  1. package/README.md +102 -3
  2. package/THIRD_PARTY_NOTICES.txt +1064 -0
  3. package/apps/cli/dist/_virtual/_rolldown/runtime.mjs +35 -0
  4. package/apps/cli/dist/args.mjs +204 -0
  5. package/apps/cli/dist/cli.mjs +392 -0
  6. package/apps/cli/dist/errors.mjs +32 -0
  7. package/apps/cli/dist/help.mjs +73 -0
  8. package/apps/cli/dist/io.mjs +37 -0
  9. package/apps/cli/dist/main.mjs +10 -0
  10. package/apps/cli/dist/node_modules/.pnpm/@keyv_serialize@1.1.1/node_modules/@keyv/serialize/dist/index.mjs +37 -0
  11. package/apps/cli/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.mjs +81 -0
  12. package/apps/cli/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.mjs +1 -0
  13. package/apps/cli/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs +1015 -0
  14. package/apps/cli/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/utilities.mjs +6 -0
  15. package/apps/cli/dist/node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.mjs +15 -0
  16. package/apps/cli/dist/node_modules/.pnpm/byte-counter@0.1.0/node_modules/byte-counter/utilities.mjs +9 -0
  17. package/apps/cli/dist/node_modules/.pnpm/cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs +279 -0
  18. package/apps/cli/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/index.mjs +274 -0
  19. package/apps/cli/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/types.mjs +15 -0
  20. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/helpers.mjs +15 -0
  21. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.mjs +159 -0
  22. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/positionals.mjs +33 -0
  23. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/attributes.mjs +465 -0
  24. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/css.mjs +94 -0
  25. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/extract.mjs +39 -0
  26. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/forms.mjs +63 -0
  27. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/manipulation.mjs +731 -0
  28. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/traversing.mjs +828 -0
  29. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/cheerio.mjs +53 -0
  30. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/index.mjs +11 -0
  31. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load-parse.mjs +25 -0
  32. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load.mjs +73 -0
  33. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/options.mjs +27 -0
  34. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parse.mjs +53 -0
  35. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parsers/parse5-adapter.mjs +42 -0
  36. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/static.mjs +165 -0
  37. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/utils.mjs +78 -0
  38. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/attributes.mjs +187 -0
  39. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/compile.mjs +77 -0
  40. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/general.mjs +89 -0
  41. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.mjs +43 -0
  42. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/aliases.mjs +32 -0
  43. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/filters.mjs +114 -0
  44. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/index.mjs +35 -0
  45. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.mjs +53 -0
  46. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/subselects.mjs +68 -0
  47. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.mjs +60 -0
  48. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.mjs +50 -0
  49. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.mjs +320 -0
  50. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.mjs +102 -0
  51. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.mjs +45 -0
  52. package/apps/cli/dist/node_modules/.pnpm/decompress-response@10.0.0/node_modules/decompress-response/index.mjs +59 -0
  53. package/apps/cli/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/foreignNames.mjs +103 -0
  54. package/apps/cli/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.mjs +144 -0
  55. package/apps/cli/dist/node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.mjs +51 -0
  56. package/apps/cli/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.mjs +128 -0
  57. package/apps/cli/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.mjs +312 -0
  58. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.mjs +161 -0
  59. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.mjs +113 -0
  60. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.mjs +56 -0
  61. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.mjs +141 -0
  62. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.mjs +117 -0
  63. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.mjs +124 -0
  64. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.mjs +69 -0
  65. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.mjs +109 -0
  66. package/apps/cli/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.mjs +7 -0
  67. package/apps/cli/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.mjs +112 -0
  68. package/apps/cli/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.mjs +83 -0
  69. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +43 -0
  70. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +330 -0
  71. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/escape.mjs +49 -0
  72. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +4 -0
  73. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +57 -0
  74. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode.mjs +351 -0
  75. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +5 -0
  76. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.mjs +5 -0
  77. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/bin-trie-flags.mjs +20 -0
  78. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.mjs +14 -0
  79. package/apps/cli/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/index.mjs +871 -0
  80. package/apps/cli/dist/node_modules/.pnpm/form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs +279 -0
  81. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
  82. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
  83. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.mjs +80 -0
  84. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.mjs +41 -0
  85. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.mjs +8 -0
  86. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/index.mjs +154 -0
  87. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/types.mjs +20 -0
  88. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/calculate-retry-delay.mjs +20 -0
  89. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/diagnostics-channel.mjs +38 -0
  90. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/errors.mjs +132 -0
  91. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/index.mjs +923 -0
  92. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.mjs +1622 -0
  93. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/parse-link-header.mjs +27 -0
  94. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/response.mjs +36 -0
  95. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/timed-out.mjs +107 -0
  96. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/defer-to-connect.mjs +28 -0
  97. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/get-body-size.mjs +23 -0
  98. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-client-request.mjs +6 -0
  99. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-form-data.mjs +7 -0
  100. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-unix-socket-url.mjs +25 -0
  101. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/proxy-events.mjs +16 -0
  102. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/timer.mjs +114 -0
  103. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/unhandle.mjs +23 -0
  104. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/url-to-options.mjs +20 -0
  105. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/weakable-map.mjs +19 -0
  106. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/create.mjs +166 -0
  107. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/index.mjs +17 -0
  108. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.mjs +441 -0
  109. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.mjs +661 -0
  110. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.mjs +19 -0
  111. package/apps/cli/dist/node_modules/.pnpm/http-cache-semantics@4.3.0/node_modules/http-cache-semantics/index.mjs +608 -0
  112. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/agent.mjs +441 -0
  113. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/auto.mjs +145 -0
  114. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/client-request.mjs +318 -0
  115. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/incoming-message.mjs +58 -0
  116. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs +51 -0
  117. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/get-auth-headers.mjs +19 -0
  118. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h1-over-h2.mjs +84 -0
  119. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h1.mjs +49 -0
  120. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h2.mjs +38 -0
  121. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-hx.mjs +39 -0
  122. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/initialize.mjs +23 -0
  123. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.mjs +15 -0
  124. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/calculate-server-name.mjs +24 -0
  125. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/check-type.mjs +17 -0
  126. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/delay-async-destroy.mjs +28 -0
  127. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/errors.mjs +30 -0
  128. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.mjs +16 -0
  129. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/js-stream-socket.mjs +9 -0
  130. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-events.mjs +10 -0
  131. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-socket-handler.mjs +77 -0
  132. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-name.mjs +15 -0
  133. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-value.mjs +14 -0
  134. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +355 -0
  135. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +191 -0
  136. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +31 -0
  137. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +140 -0
  138. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +50 -0
  139. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +455 -0
  140. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +151 -0
  141. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +169 -0
  142. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2584 -0
  143. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2220 -0
  144. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +227 -0
  145. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +425 -0
  146. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +427 -0
  147. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +230 -0
  148. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +292 -0
  149. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +123 -0
  150. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +197 -0
  151. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +182 -0
  152. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +42 -0
  153. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +108 -0
  154. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +90 -0
  155. package/apps/cli/dist/node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.mjs +9 -0
  156. package/apps/cli/dist/node_modules/.pnpm/js-sha256@0.11.1/node_modules/js-sha256/src/sha256.mjs +495 -0
  157. package/apps/cli/dist/node_modules/.pnpm/keyv@5.6.0/node_modules/keyv/dist/index.mjs +740 -0
  158. package/apps/cli/dist/node_modules/.pnpm/lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs +6 -0
  159. package/apps/cli/dist/node_modules/.pnpm/mimic-response@4.0.0/node_modules/mimic-response/index.mjs +53 -0
  160. package/apps/cli/dist/node_modules/.pnpm/normalize-url@8.1.1/node_modules/normalize-url/index.mjs +145 -0
  161. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/compile.mjs +37 -0
  162. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.mjs +31 -0
  163. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.mjs +60 -0
  164. package/apps/cli/dist/node_modules/.pnpm/p-cancelable@4.0.1/node_modules/p-cancelable/index.mjs +86 -0
  165. package/apps/cli/dist/node_modules/.pnpm/parse5-htmlparser2-tree-adapter@7.1.0/node_modules/parse5-htmlparser2-tree-adapter/dist/index.mjs +187 -0
  166. package/apps/cli/dist/node_modules/.pnpm/parse5-parser-stream@7.1.2/node_modules/parse5-parser-stream/dist/index.mjs +2 -0
  167. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.mjs +101 -0
  168. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.mjs +66 -0
  169. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.mjs +259 -0
  170. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.mjs +544 -0
  171. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.mjs +19 -0
  172. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.mjs +91 -0
  173. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.mjs +41 -0
  174. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
  175. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.mjs +2492 -0
  176. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.mjs +292 -0
  177. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.mjs +111 -0
  178. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.mjs +2067 -0
  179. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +154 -0
  180. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.mjs +164 -0
  181. package/apps/cli/dist/node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.mjs +77 -0
  182. package/apps/cli/dist/node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.mjs +47 -0
  183. package/apps/cli/dist/node_modules/.pnpm/responselike@4.0.2/node_modules/responselike/index.mjs +32 -0
  184. package/apps/cli/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +45 -0
  185. package/apps/cli/dist/node_modules/.pnpm/tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs +22542 -0
  186. package/apps/cli/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.mjs +1761 -0
  187. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.mjs +221 -0
  188. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/abort-signal.mjs +44 -0
  189. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-connect.mjs +85 -0
  190. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-pipeline.mjs +174 -0
  191. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-request.mjs +155 -0
  192. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-stream.mjs +136 -0
  193. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-upgrade.mjs +88 -0
  194. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/index.mjs +17 -0
  195. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/readable.mjs +418 -0
  196. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/memory-cache-store.mjs +190 -0
  197. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/sqlite-cache-store.mjs +324 -0
  198. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/connect.mjs +115 -0
  199. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/constants.mjs +134 -0
  200. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/diagnostics.mjs +114 -0
  201. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/errors.mjs +412 -0
  202. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/request.mjs +282 -0
  203. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-client.mjs +288 -0
  204. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-utils.mjs +166 -0
  205. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/symbols.mjs +80 -0
  206. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/tree.mjs +124 -0
  207. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/util.mjs +940 -0
  208. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/agent.mjs +119 -0
  209. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/balanced-pool.mjs +129 -0
  210. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.mjs +1091 -0
  211. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h2.mjs +588 -0
  212. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client.mjs +385 -0
  213. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher-base.mjs +121 -0
  214. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher.mjs +35 -0
  215. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.mjs +105 -0
  216. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/fixed-queue.mjs +75 -0
  217. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/h2c-client.mjs +31 -0
  218. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool-base.mjs +155 -0
  219. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool.mjs +76 -0
  220. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/proxy-agent.mjs +233 -0
  221. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/retry-agent.mjs +37 -0
  222. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/round-robin-pool.mjs +94 -0
  223. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/socks5-proxy-agent.mjs +194 -0
  224. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/encoding/index.mjs +18 -0
  225. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/global.mjs +48 -0
  226. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-handler.mjs +457 -0
  227. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-revalidation-handler.mjs +82 -0
  228. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/decorator-handler.mjs +57 -0
  229. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/deduplication-handler.mjs +341 -0
  230. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/redirect-handler.mjs +131 -0
  231. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/retry-handler.mjs +332 -0
  232. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/unwrap-handler.mjs +88 -0
  233. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/wrap-handler.mjs +68 -0
  234. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/cache.mjs +350 -0
  235. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/decompress.mjs +416 -0
  236. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/deduplicate.mjs +69 -0
  237. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dns.mjs +323 -0
  238. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dump.mjs +65 -0
  239. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/redirect.mjs +20 -0
  240. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/response-error.mjs +73 -0
  241. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/retry.mjs +25 -0
  242. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/constants.mjs +590 -0
  243. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp-wasm.mjs +13 -0
  244. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.mjs +13 -0
  245. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/utils.mjs +16 -0
  246. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-agent.mjs +154 -0
  247. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-call-history.mjs +159 -0
  248. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-client.mjs +59 -0
  249. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-errors.mjs +28 -0
  250. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-interceptor.mjs +150 -0
  251. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-pool.mjs +59 -0
  252. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-symbols.mjs +37 -0
  253. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-utils.mjs +302 -0
  254. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/pending-interceptors-formatter.mjs +38 -0
  255. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-agent.mjs +268 -0
  256. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-recorder.mjs +424 -0
  257. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-utils.mjs +121 -0
  258. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/cache.mjs +440 -0
  259. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/date.mjs +332 -0
  260. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/promise.mjs +31 -0
  261. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/runtime-features.mjs +101 -0
  262. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/stats.mjs +31 -0
  263. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/timers.mjs +341 -0
  264. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cache.mjs +462 -0
  265. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cachestorage.mjs +103 -0
  266. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/util.mjs +39 -0
  267. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/constants.mjs +11 -0
  268. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/index.mjs +169 -0
  269. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/parse.mjs +108 -0
  270. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/util.mjs +239 -0
  271. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource-stream.mjs +317 -0
  272. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource.mjs +345 -0
  273. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/util.mjs +29 -0
  274. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/body.mjs +271 -0
  275. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/constants.mjs +224 -0
  276. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/data-url.mjs +247 -0
  277. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata-parser.mjs +255 -0
  278. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata.mjs +153 -0
  279. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/global.mjs +34 -0
  280. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/headers.mjs +400 -0
  281. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/index.mjs +776 -0
  282. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/request.mjs +602 -0
  283. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/response.mjs +358 -0
  284. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/util.mjs +795 -0
  285. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/infra/index.mjs +154 -0
  286. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.mjs +170 -0
  287. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/webidl/index.mjs +505 -0
  288. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/connection.mjs +166 -0
  289. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/constants.mjs +47 -0
  290. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/events.mjs +268 -0
  291. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/frame.mjs +105 -0
  292. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/permessage-deflate.mjs +85 -0
  293. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/receiver.mjs +323 -0
  294. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/sender.mjs +90 -0
  295. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketerror.mjs +78 -0
  296. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketstream.mjs +270 -0
  297. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/util.mjs +212 -0
  298. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/websocket.mjs +432 -0
  299. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/labels-to-names.mjs +224 -0
  300. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/supported-names.mjs +45 -0
  301. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/whatwg-encoding.mjs +40 -0
  302. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.mjs +54 -0
  303. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type.mjs +92 -0
  304. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/parser.mjs +62 -0
  305. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/serializer.mjs +24 -0
  306. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/utils.mjs +47 -0
  307. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.mjs +26 -0
  308. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.mjs +35 -0
  309. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.mjs +17 -0
  310. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.mjs +800 -0
  311. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.mjs +508 -0
  312. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.mjs +366 -0
  313. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.mjs +60 -0
  314. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.mjs +32 -0
  315. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.mjs +63 -0
  316. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.mjs +253 -0
  317. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.mjs +118 -0
  318. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.mjs +65 -0
  319. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.mjs +48 -0
  320. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.mjs +1235 -0
  321. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.mjs +297 -0
  322. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.mjs +316 -0
  323. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.mjs +8 -0
  324. package/apps/cli/dist/packages/data-maintenance/src/archive.mjs +143 -0
  325. package/apps/cli/dist/packages/data-maintenance/src/contracts.mjs +17 -0
  326. package/apps/cli/dist/packages/data-maintenance/src/files.mjs +121 -0
  327. package/apps/cli/dist/packages/data-maintenance/src/index.mjs +494 -0
  328. package/apps/cli/dist/packages/data-maintenance/src/lease.mjs +53 -0
  329. package/apps/cli/dist/packages/data-maintenance/src/migration-backup.mjs +57 -0
  330. package/apps/cli/dist/packages/data-maintenance/src/paths.mjs +15 -0
  331. package/apps/cli/dist/packages/feidee/src/client.mjs +635 -0
  332. package/apps/cli/dist/packages/feidee/src/hash.mjs +10 -0
  333. package/apps/cli/dist/packages/feidee/src/index.mjs +8 -0
  334. package/apps/cli/dist/packages/feidee/src/mutation-gateway.mjs +165 -0
  335. package/apps/cli/dist/packages/feidee/src/parsers.mjs +634 -0
  336. package/apps/cli/dist/packages/feidee/src/transaction-text.mjs +39 -0
  337. package/apps/cli/dist/packages/feidee/src/write-contract.mjs +273 -0
  338. package/apps/cli/dist/packages/finance/src/date-range.mjs +74 -0
  339. package/apps/cli/dist/packages/finance/src/domain.mjs +18 -0
  340. package/apps/cli/dist/packages/finance/src/errors.mjs +221 -0
  341. package/apps/cli/dist/packages/finance/src/index.mjs +16 -0
  342. package/apps/cli/dist/packages/finance/src/metadata-query.mjs +32 -0
  343. package/apps/cli/dist/packages/finance/src/sync/progress.mjs +27 -0
  344. package/apps/cli/dist/packages/finance/src/sync/service.mjs +282 -0
  345. package/apps/cli/dist/packages/finance/src/transactions/audit.mjs +104 -0
  346. package/apps/cli/dist/packages/finance/src/transactions/canary.mjs +85 -0
  347. package/apps/cli/dist/packages/finance/src/transactions/compare.mjs +76 -0
  348. package/apps/cli/dist/packages/finance/src/transactions/contracts.mjs +92 -0
  349. package/apps/cli/dist/packages/finance/src/transactions/memo-policy.mjs +79 -0
  350. package/apps/cli/dist/packages/finance/src/transactions/mutation.mjs +656 -0
  351. package/apps/cli/dist/packages/finance/src/transactions/query.mjs +59 -0
  352. package/apps/cli/dist/packages/finance/src/transactions/statistics.mjs +67 -0
  353. package/apps/cli/dist/packages/finance/src/write-policy.mjs +4 -0
  354. package/apps/cli/dist/packages/finance-module/src/balance-preview.mjs +4 -0
  355. package/apps/cli/dist/packages/finance-module/src/contracts.mjs +13 -0
  356. package/apps/cli/dist/packages/finance-module/src/database.mjs +1292 -0
  357. package/apps/cli/dist/packages/finance-module/src/draft-entries.mjs +89 -0
  358. package/apps/cli/dist/packages/finance-module/src/draft-receipts.mjs +8 -0
  359. package/apps/cli/dist/packages/finance-module/src/historical-task-archives.mjs +24 -0
  360. package/apps/cli/dist/packages/finance-module/src/node.mjs +76 -0
  361. package/apps/cli/dist/packages/finance-module/src/personal-preferences.mjs +29 -0
  362. package/apps/cli/dist/packages/finance-module/src/route-contracts.mjs +11 -0
  363. package/apps/cli/dist/packages/finance-module/src/schema-compatibility.mjs +142 -0
  364. package/apps/cli/dist/packages/finance-module/src/service-record-domain.mjs +16 -0
  365. package/apps/cli/dist/packages/finance-module/src/service-record-store.mjs +119 -0
  366. package/apps/cli/dist/packages/finance-module/src/shared-draft-migration.mjs +39 -0
  367. package/apps/cli/dist/packages/finance-module/src/single-draft-migration.mjs +70 -0
  368. package/apps/cli/dist/packages/finance-module/src/storage.mjs +282 -0
  369. package/apps/cli/dist/packages/finance-module/src/web-contracts.mjs +38 -0
  370. package/apps/cli/dist/packages/local-store/src/checkpoint-backup.mjs +40 -0
  371. package/apps/cli/dist/packages/local-store/src/checkpoint-history.mjs +77 -0
  372. package/apps/cli/dist/packages/local-store/src/database.mjs +1523 -0
  373. package/apps/cli/dist/packages/local-store/src/exchange-rates.mjs +169 -0
  374. package/apps/cli/dist/packages/local-store/src/node.mjs +71 -0
  375. package/apps/cli/dist/packages/sdk/src/account-snapshot-service.mjs +582 -0
  376. package/apps/cli/dist/packages/sdk/src/auth.mjs +89 -0
  377. package/apps/cli/dist/packages/sdk/src/cache-analysis.mjs +393 -0
  378. package/apps/cli/dist/packages/sdk/src/config.mjs +64 -0
  379. package/apps/cli/dist/packages/sdk/src/credential-identity.mjs +8 -0
  380. package/apps/cli/dist/packages/sdk/src/credentials.mjs +86 -0
  381. package/apps/cli/dist/packages/sdk/src/exchange-rate-service.mjs +253 -0
  382. package/apps/cli/dist/packages/sdk/src/finance-cookie-cache.mjs +93 -0
  383. package/apps/cli/dist/packages/sdk/src/finance-session.mjs +215 -0
  384. package/apps/cli/dist/packages/sdk/src/frankfurter.mjs +125 -0
  385. package/apps/cli/dist/packages/sdk/src/node.mjs +53 -0
  386. package/apps/cli/dist/packages/sdk/src/probe.mjs +65 -0
  387. package/apps/cli/dist/packages/sdk/src/resource-lease-node.mjs +27 -0
  388. package/apps/cli/dist/packages/sdk/src/resource-lease-owner-node.mjs +68 -0
  389. package/apps/cli/dist/packages/sdk/src/resource-lease.mjs +143 -0
  390. package/apps/cli/dist/packages/sdk/src/runtime.mjs +643 -0
  391. package/apps/cli/dist/storage.mjs +11 -0
  392. package/bundles/sui-ledger/dist/_virtual/_rolldown/runtime.mjs +35 -0
  393. package/bundles/sui-ledger/dist/capabilities/tools.mjs +32 -0
  394. package/bundles/sui-ledger/dist/client.js +23756 -0
  395. package/bundles/sui-ledger/dist/finance-prompt.mjs +30 -0
  396. package/bundles/sui-ledger/dist/finance-state-context.mjs +38 -0
  397. package/bundles/sui-ledger/dist/index.mjs +198 -0
  398. package/bundles/sui-ledger/dist/maintenance-cli.mjs +76 -0
  399. package/bundles/sui-ledger/dist/node_modules/.pnpm/@deepseek-ai_dsh-home-paths_159c15e70066431314381a350c2ee56a/node_modules/@deepseek-ai/dsh-home-paths/lib/index.mjs +67 -0
  400. package/bundles/sui-ledger/dist/node_modules/.pnpm/@keyv_serialize@1.1.1/node_modules/@keyv/serialize/dist/index.mjs +37 -0
  401. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.mjs +81 -0
  402. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.mjs +1 -0
  403. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs +1015 -0
  404. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/utilities.mjs +6 -0
  405. package/bundles/sui-ledger/dist/node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.mjs +15 -0
  406. package/bundles/sui-ledger/dist/node_modules/.pnpm/byte-counter@0.1.0/node_modules/byte-counter/utilities.mjs +9 -0
  407. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs +279 -0
  408. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/index.mjs +274 -0
  409. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/types.mjs +15 -0
  410. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/helpers.mjs +15 -0
  411. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.mjs +159 -0
  412. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/positionals.mjs +33 -0
  413. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/attributes.mjs +465 -0
  414. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/css.mjs +94 -0
  415. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/extract.mjs +39 -0
  416. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/forms.mjs +63 -0
  417. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/manipulation.mjs +731 -0
  418. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/traversing.mjs +828 -0
  419. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/cheerio.mjs +53 -0
  420. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/index.mjs +11 -0
  421. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load-parse.mjs +25 -0
  422. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load.mjs +73 -0
  423. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/options.mjs +27 -0
  424. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parse.mjs +53 -0
  425. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parsers/parse5-adapter.mjs +42 -0
  426. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/static.mjs +165 -0
  427. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/utils.mjs +78 -0
  428. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/attributes.mjs +187 -0
  429. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/compile.mjs +77 -0
  430. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/general.mjs +89 -0
  431. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.mjs +43 -0
  432. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/aliases.mjs +32 -0
  433. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/filters.mjs +114 -0
  434. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/index.mjs +35 -0
  435. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.mjs +53 -0
  436. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/subselects.mjs +68 -0
  437. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.mjs +60 -0
  438. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.mjs +50 -0
  439. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.mjs +320 -0
  440. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.mjs +102 -0
  441. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.mjs +45 -0
  442. package/bundles/sui-ledger/dist/node_modules/.pnpm/decompress-response@10.0.0/node_modules/decompress-response/index.mjs +59 -0
  443. package/bundles/sui-ledger/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/foreignNames.mjs +103 -0
  444. package/bundles/sui-ledger/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.mjs +144 -0
  445. package/bundles/sui-ledger/dist/node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.mjs +51 -0
  446. package/bundles/sui-ledger/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.mjs +128 -0
  447. package/bundles/sui-ledger/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.mjs +312 -0
  448. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.mjs +161 -0
  449. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.mjs +113 -0
  450. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.mjs +56 -0
  451. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.mjs +141 -0
  452. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.mjs +117 -0
  453. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.mjs +124 -0
  454. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.mjs +69 -0
  455. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.mjs +109 -0
  456. package/bundles/sui-ledger/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.mjs +7 -0
  457. package/bundles/sui-ledger/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.mjs +112 -0
  458. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.mjs +83 -0
  459. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +43 -0
  460. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +330 -0
  461. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/escape.mjs +49 -0
  462. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +4 -0
  463. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +57 -0
  464. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode.mjs +351 -0
  465. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +5 -0
  466. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.mjs +5 -0
  467. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/bin-trie-flags.mjs +20 -0
  468. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.mjs +14 -0
  469. package/bundles/sui-ledger/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/index.mjs +871 -0
  470. package/bundles/sui-ledger/dist/node_modules/.pnpm/form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs +279 -0
  471. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
  472. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
  473. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.mjs +80 -0
  474. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.mjs +41 -0
  475. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.mjs +8 -0
  476. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/index.mjs +154 -0
  477. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/types.mjs +20 -0
  478. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/calculate-retry-delay.mjs +20 -0
  479. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/diagnostics-channel.mjs +38 -0
  480. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/errors.mjs +132 -0
  481. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/index.mjs +923 -0
  482. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.mjs +1622 -0
  483. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/parse-link-header.mjs +27 -0
  484. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/response.mjs +36 -0
  485. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/timed-out.mjs +107 -0
  486. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/defer-to-connect.mjs +28 -0
  487. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/get-body-size.mjs +23 -0
  488. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-client-request.mjs +6 -0
  489. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-form-data.mjs +7 -0
  490. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-unix-socket-url.mjs +25 -0
  491. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/proxy-events.mjs +16 -0
  492. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/timer.mjs +114 -0
  493. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/unhandle.mjs +23 -0
  494. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/url-to-options.mjs +20 -0
  495. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/weakable-map.mjs +19 -0
  496. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/create.mjs +166 -0
  497. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/index.mjs +17 -0
  498. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.mjs +441 -0
  499. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.mjs +661 -0
  500. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.mjs +19 -0
  501. package/bundles/sui-ledger/dist/node_modules/.pnpm/http-cache-semantics@4.3.0/node_modules/http-cache-semantics/index.mjs +608 -0
  502. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/agent.mjs +441 -0
  503. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/auto.mjs +145 -0
  504. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/client-request.mjs +318 -0
  505. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/incoming-message.mjs +58 -0
  506. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs +51 -0
  507. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/get-auth-headers.mjs +19 -0
  508. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h1-over-h2.mjs +84 -0
  509. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h1.mjs +49 -0
  510. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h2.mjs +38 -0
  511. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-hx.mjs +39 -0
  512. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/initialize.mjs +23 -0
  513. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.mjs +15 -0
  514. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/calculate-server-name.mjs +24 -0
  515. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/check-type.mjs +17 -0
  516. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/delay-async-destroy.mjs +28 -0
  517. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/errors.mjs +30 -0
  518. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.mjs +16 -0
  519. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/js-stream-socket.mjs +9 -0
  520. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-events.mjs +10 -0
  521. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-socket-handler.mjs +77 -0
  522. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-name.mjs +15 -0
  523. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-value.mjs +14 -0
  524. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +355 -0
  525. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +191 -0
  526. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +31 -0
  527. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +140 -0
  528. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +50 -0
  529. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +455 -0
  530. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +151 -0
  531. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +169 -0
  532. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2584 -0
  533. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2220 -0
  534. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +227 -0
  535. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +425 -0
  536. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +427 -0
  537. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +230 -0
  538. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +292 -0
  539. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +123 -0
  540. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +197 -0
  541. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +182 -0
  542. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +42 -0
  543. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +108 -0
  544. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +90 -0
  545. package/bundles/sui-ledger/dist/node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.mjs +9 -0
  546. package/bundles/sui-ledger/dist/node_modules/.pnpm/js-sha256@0.11.1/node_modules/js-sha256/src/sha256.mjs +495 -0
  547. package/bundles/sui-ledger/dist/node_modules/.pnpm/keyv@5.6.0/node_modules/keyv/dist/index.mjs +740 -0
  548. package/bundles/sui-ledger/dist/node_modules/.pnpm/lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs +6 -0
  549. package/bundles/sui-ledger/dist/node_modules/.pnpm/mimic-response@4.0.0/node_modules/mimic-response/index.mjs +53 -0
  550. package/bundles/sui-ledger/dist/node_modules/.pnpm/normalize-url@8.1.1/node_modules/normalize-url/index.mjs +145 -0
  551. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/compile.mjs +37 -0
  552. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.mjs +31 -0
  553. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.mjs +60 -0
  554. package/bundles/sui-ledger/dist/node_modules/.pnpm/p-cancelable@4.0.1/node_modules/p-cancelable/index.mjs +86 -0
  555. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5-htmlparser2-tree-adapter@7.1.0/node_modules/parse5-htmlparser2-tree-adapter/dist/index.mjs +187 -0
  556. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5-parser-stream@7.1.2/node_modules/parse5-parser-stream/dist/index.mjs +2 -0
  557. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.mjs +101 -0
  558. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.mjs +66 -0
  559. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.mjs +259 -0
  560. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.mjs +544 -0
  561. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.mjs +19 -0
  562. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.mjs +91 -0
  563. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.mjs +41 -0
  564. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
  565. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.mjs +2492 -0
  566. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.mjs +292 -0
  567. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.mjs +111 -0
  568. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.mjs +2067 -0
  569. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +154 -0
  570. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.mjs +164 -0
  571. package/bundles/sui-ledger/dist/node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.mjs +77 -0
  572. package/bundles/sui-ledger/dist/node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.mjs +47 -0
  573. package/bundles/sui-ledger/dist/node_modules/.pnpm/responselike@4.0.2/node_modules/responselike/index.mjs +32 -0
  574. package/bundles/sui-ledger/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +45 -0
  575. package/bundles/sui-ledger/dist/node_modules/.pnpm/tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs +22542 -0
  576. package/bundles/sui-ledger/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.mjs +1761 -0
  577. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.mjs +221 -0
  578. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/abort-signal.mjs +44 -0
  579. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-connect.mjs +85 -0
  580. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-pipeline.mjs +174 -0
  581. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-request.mjs +155 -0
  582. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-stream.mjs +136 -0
  583. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-upgrade.mjs +88 -0
  584. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/index.mjs +17 -0
  585. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/readable.mjs +418 -0
  586. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/memory-cache-store.mjs +190 -0
  587. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/sqlite-cache-store.mjs +324 -0
  588. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/connect.mjs +115 -0
  589. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/constants.mjs +134 -0
  590. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/diagnostics.mjs +114 -0
  591. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/errors.mjs +412 -0
  592. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/request.mjs +282 -0
  593. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-client.mjs +288 -0
  594. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-utils.mjs +166 -0
  595. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/symbols.mjs +80 -0
  596. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/tree.mjs +124 -0
  597. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/util.mjs +940 -0
  598. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/agent.mjs +119 -0
  599. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/balanced-pool.mjs +129 -0
  600. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.mjs +1091 -0
  601. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h2.mjs +588 -0
  602. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client.mjs +385 -0
  603. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher-base.mjs +121 -0
  604. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher.mjs +35 -0
  605. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.mjs +105 -0
  606. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/fixed-queue.mjs +75 -0
  607. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/h2c-client.mjs +31 -0
  608. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool-base.mjs +155 -0
  609. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool.mjs +76 -0
  610. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/proxy-agent.mjs +233 -0
  611. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/retry-agent.mjs +37 -0
  612. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/round-robin-pool.mjs +94 -0
  613. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/socks5-proxy-agent.mjs +194 -0
  614. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/encoding/index.mjs +18 -0
  615. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/global.mjs +48 -0
  616. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-handler.mjs +457 -0
  617. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-revalidation-handler.mjs +82 -0
  618. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/decorator-handler.mjs +57 -0
  619. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/deduplication-handler.mjs +341 -0
  620. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/redirect-handler.mjs +131 -0
  621. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/retry-handler.mjs +332 -0
  622. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/unwrap-handler.mjs +88 -0
  623. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/wrap-handler.mjs +68 -0
  624. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/cache.mjs +350 -0
  625. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/decompress.mjs +416 -0
  626. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/deduplicate.mjs +69 -0
  627. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dns.mjs +323 -0
  628. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dump.mjs +65 -0
  629. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/redirect.mjs +20 -0
  630. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/response-error.mjs +73 -0
  631. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/retry.mjs +25 -0
  632. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/constants.mjs +590 -0
  633. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp-wasm.mjs +13 -0
  634. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.mjs +13 -0
  635. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/utils.mjs +16 -0
  636. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-agent.mjs +154 -0
  637. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-call-history.mjs +159 -0
  638. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-client.mjs +59 -0
  639. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-errors.mjs +28 -0
  640. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-interceptor.mjs +150 -0
  641. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-pool.mjs +59 -0
  642. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-symbols.mjs +37 -0
  643. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-utils.mjs +302 -0
  644. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/pending-interceptors-formatter.mjs +38 -0
  645. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-agent.mjs +268 -0
  646. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-recorder.mjs +424 -0
  647. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-utils.mjs +121 -0
  648. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/cache.mjs +440 -0
  649. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/date.mjs +332 -0
  650. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/promise.mjs +31 -0
  651. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/runtime-features.mjs +101 -0
  652. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/stats.mjs +31 -0
  653. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/timers.mjs +341 -0
  654. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cache.mjs +462 -0
  655. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cachestorage.mjs +103 -0
  656. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/util.mjs +39 -0
  657. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/constants.mjs +11 -0
  658. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/index.mjs +169 -0
  659. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/parse.mjs +108 -0
  660. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/util.mjs +239 -0
  661. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource-stream.mjs +317 -0
  662. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource.mjs +345 -0
  663. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/util.mjs +29 -0
  664. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/body.mjs +271 -0
  665. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/constants.mjs +224 -0
  666. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/data-url.mjs +247 -0
  667. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata-parser.mjs +255 -0
  668. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata.mjs +153 -0
  669. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/global.mjs +34 -0
  670. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/headers.mjs +400 -0
  671. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/index.mjs +776 -0
  672. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/request.mjs +602 -0
  673. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/response.mjs +358 -0
  674. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/util.mjs +795 -0
  675. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/infra/index.mjs +154 -0
  676. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.mjs +170 -0
  677. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/webidl/index.mjs +505 -0
  678. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/connection.mjs +166 -0
  679. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/constants.mjs +47 -0
  680. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/events.mjs +268 -0
  681. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/frame.mjs +105 -0
  682. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/permessage-deflate.mjs +85 -0
  683. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/receiver.mjs +323 -0
  684. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/sender.mjs +90 -0
  685. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketerror.mjs +78 -0
  686. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketstream.mjs +270 -0
  687. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/util.mjs +212 -0
  688. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/websocket.mjs +432 -0
  689. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/labels-to-names.mjs +224 -0
  690. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/supported-names.mjs +45 -0
  691. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/whatwg-encoding.mjs +40 -0
  692. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.mjs +54 -0
  693. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type.mjs +92 -0
  694. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/parser.mjs +62 -0
  695. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/serializer.mjs +24 -0
  696. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/utils.mjs +47 -0
  697. package/bundles/sui-ledger/dist/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/dist/cpexcel.mjs +3348 -0
  698. package/bundles/sui-ledger/dist/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx.mjs +26473 -0
  699. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.mjs +26 -0
  700. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.mjs +35 -0
  701. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.mjs +17 -0
  702. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.mjs +800 -0
  703. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.mjs +508 -0
  704. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.mjs +366 -0
  705. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.mjs +60 -0
  706. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.mjs +32 -0
  707. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.mjs +63 -0
  708. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.mjs +253 -0
  709. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.mjs +118 -0
  710. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.mjs +65 -0
  711. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.mjs +48 -0
  712. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.mjs +1235 -0
  713. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.mjs +297 -0
  714. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.mjs +316 -0
  715. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.mjs +8 -0
  716. package/bundles/sui-ledger/dist/packages/data-maintenance/src/archive.mjs +143 -0
  717. package/bundles/sui-ledger/dist/packages/data-maintenance/src/contracts.mjs +17 -0
  718. package/bundles/sui-ledger/dist/packages/data-maintenance/src/files.mjs +158 -0
  719. package/bundles/sui-ledger/dist/packages/data-maintenance/src/index.mjs +494 -0
  720. package/bundles/sui-ledger/dist/packages/data-maintenance/src/lease.mjs +53 -0
  721. package/bundles/sui-ledger/dist/packages/data-maintenance/src/migration-backup.mjs +57 -0
  722. package/bundles/sui-ledger/dist/packages/data-maintenance/src/paths.mjs +15 -0
  723. package/bundles/sui-ledger/dist/packages/data-maintenance/src/runtime.mjs +132 -0
  724. package/bundles/sui-ledger/dist/packages/feidee/src/client.mjs +635 -0
  725. package/bundles/sui-ledger/dist/packages/feidee/src/hash.mjs +10 -0
  726. package/bundles/sui-ledger/dist/packages/feidee/src/index.mjs +8 -0
  727. package/bundles/sui-ledger/dist/packages/feidee/src/mutation-gateway.mjs +165 -0
  728. package/bundles/sui-ledger/dist/packages/feidee/src/parsers.mjs +634 -0
  729. package/bundles/sui-ledger/dist/packages/feidee/src/transaction-text.mjs +39 -0
  730. package/bundles/sui-ledger/dist/packages/feidee/src/write-contract.mjs +273 -0
  731. package/bundles/sui-ledger/dist/packages/finance/src/date-range.mjs +74 -0
  732. package/bundles/sui-ledger/dist/packages/finance/src/domain.mjs +18 -0
  733. package/bundles/sui-ledger/dist/packages/finance/src/errors.mjs +221 -0
  734. package/bundles/sui-ledger/dist/packages/finance/src/index.mjs +17 -0
  735. package/bundles/sui-ledger/dist/packages/finance/src/json-schema.mjs +212 -0
  736. package/bundles/sui-ledger/dist/packages/finance/src/metadata-query.mjs +32 -0
  737. package/bundles/sui-ledger/dist/packages/finance/src/money.mjs +39 -0
  738. package/bundles/sui-ledger/dist/packages/finance/src/public-error.mjs +10 -0
  739. package/bundles/sui-ledger/dist/packages/finance/src/sync/progress.mjs +27 -0
  740. package/bundles/sui-ledger/dist/packages/finance/src/sync/service.mjs +282 -0
  741. package/bundles/sui-ledger/dist/packages/finance/src/transactions/audit.mjs +104 -0
  742. package/bundles/sui-ledger/dist/packages/finance/src/transactions/canary.mjs +85 -0
  743. package/bundles/sui-ledger/dist/packages/finance/src/transactions/compare.mjs +76 -0
  744. package/bundles/sui-ledger/dist/packages/finance/src/transactions/contracts.mjs +83 -0
  745. package/bundles/sui-ledger/dist/packages/finance/src/transactions/memo-policy.mjs +79 -0
  746. package/bundles/sui-ledger/dist/packages/finance/src/transactions/mutation.mjs +656 -0
  747. package/bundles/sui-ledger/dist/packages/finance/src/transactions/query.mjs +59 -0
  748. package/bundles/sui-ledger/dist/packages/finance/src/transactions/statistics.mjs +67 -0
  749. package/bundles/sui-ledger/dist/packages/finance/src/write-policy.mjs +4 -0
  750. package/bundles/sui-ledger/dist/packages/finance-module/src/balance-preview.mjs +119 -0
  751. package/bundles/sui-ledger/dist/packages/finance-module/src/capabilities.mjs +1306 -0
  752. package/bundles/sui-ledger/dist/packages/finance-module/src/checkpoint-review.mjs +75 -0
  753. package/bundles/sui-ledger/dist/packages/finance-module/src/commit-failure.mjs +161 -0
  754. package/bundles/sui-ledger/dist/packages/finance-module/src/commit-recovery.mjs +41 -0
  755. package/bundles/sui-ledger/dist/packages/finance-module/src/contracts.mjs +13 -0
  756. package/bundles/sui-ledger/dist/packages/finance-module/src/data-version.mjs +8 -0
  757. package/bundles/sui-ledger/dist/packages/finance-module/src/database.mjs +1292 -0
  758. package/bundles/sui-ledger/dist/packages/finance-module/src/draft-entries.mjs +216 -0
  759. package/bundles/sui-ledger/dist/packages/finance-module/src/draft-receipts.mjs +16 -0
  760. package/bundles/sui-ledger/dist/packages/finance-module/src/finance-guidance.mjs +23 -0
  761. package/bundles/sui-ledger/dist/packages/finance-module/src/historical-task-archives.mjs +24 -0
  762. package/bundles/sui-ledger/dist/packages/finance-module/src/index.mjs +17 -0
  763. package/bundles/sui-ledger/dist/packages/finance-module/src/interactions.mjs +229 -0
  764. package/bundles/sui-ledger/dist/packages/finance-module/src/model-pages.mjs +61 -0
  765. package/bundles/sui-ledger/dist/packages/finance-module/src/model-views.mjs +206 -0
  766. package/bundles/sui-ledger/dist/packages/finance-module/src/node.mjs +76 -0
  767. package/bundles/sui-ledger/dist/packages/finance-module/src/personal-preferences.mjs +103 -0
  768. package/bundles/sui-ledger/dist/packages/finance-module/src/route-contracts.mjs +11 -0
  769. package/bundles/sui-ledger/dist/packages/finance-module/src/routes.mjs +431 -0
  770. package/bundles/sui-ledger/dist/packages/finance-module/src/schema-compatibility.mjs +142 -0
  771. package/bundles/sui-ledger/dist/packages/finance-module/src/sdk-adapter.mjs +101 -0
  772. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-domain.mjs +207 -0
  773. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-routes.mjs +91 -0
  774. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-store.mjs +119 -0
  775. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-tools.mjs +283 -0
  776. package/bundles/sui-ledger/dist/packages/finance-module/src/service-records.mjs +626 -0
  777. package/bundles/sui-ledger/dist/packages/finance-module/src/service.mjs +2529 -0
  778. package/bundles/sui-ledger/dist/packages/finance-module/src/shared-draft-migration.mjs +39 -0
  779. package/bundles/sui-ledger/dist/packages/finance-module/src/single-draft-migration.mjs +70 -0
  780. package/bundles/sui-ledger/dist/packages/finance-module/src/source-reader.mjs +354 -0
  781. package/bundles/sui-ledger/dist/packages/finance-module/src/storage.mjs +282 -0
  782. package/bundles/sui-ledger/dist/packages/finance-module/src/tool-contracts.mjs +42 -0
  783. package/bundles/sui-ledger/dist/packages/finance-module/src/web-contracts.mjs +74 -0
  784. package/bundles/sui-ledger/dist/packages/interaction/src/registry.mjs +36 -0
  785. package/bundles/sui-ledger/dist/packages/interaction/src/service.mjs +424 -0
  786. package/bundles/sui-ledger/dist/packages/local-store/src/checkpoint-backup.mjs +40 -0
  787. package/bundles/sui-ledger/dist/packages/local-store/src/checkpoint-history.mjs +77 -0
  788. package/bundles/sui-ledger/dist/packages/local-store/src/database.mjs +1523 -0
  789. package/bundles/sui-ledger/dist/packages/local-store/src/exchange-rates.mjs +169 -0
  790. package/bundles/sui-ledger/dist/packages/local-store/src/node.mjs +71 -0
  791. package/bundles/sui-ledger/dist/packages/local-store/src/readonly-node.mjs +486 -0
  792. package/bundles/sui-ledger/dist/packages/sdk/src/account-snapshot-service.mjs +582 -0
  793. package/bundles/sui-ledger/dist/packages/sdk/src/cache-analysis.mjs +597 -0
  794. package/bundles/sui-ledger/dist/packages/sdk/src/config.mjs +64 -0
  795. package/bundles/sui-ledger/dist/packages/sdk/src/credential-identity.mjs +7 -0
  796. package/bundles/sui-ledger/dist/packages/sdk/src/credentials.mjs +86 -0
  797. package/bundles/sui-ledger/dist/packages/sdk/src/exchange-rate-service.mjs +253 -0
  798. package/bundles/sui-ledger/dist/packages/sdk/src/finance-cookie-cache.mjs +93 -0
  799. package/bundles/sui-ledger/dist/packages/sdk/src/finance-session.mjs +215 -0
  800. package/bundles/sui-ledger/dist/packages/sdk/src/frankfurter.mjs +125 -0
  801. package/bundles/sui-ledger/dist/packages/sdk/src/ledger-money.mjs +183 -0
  802. package/bundles/sui-ledger/dist/packages/sdk/src/node-readonly.mjs +381 -0
  803. package/bundles/sui-ledger/dist/packages/sdk/src/node.mjs +53 -0
  804. package/bundles/sui-ledger/dist/packages/sdk/src/probe.mjs +65 -0
  805. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease-node.mjs +27 -0
  806. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease-owner-node.mjs +68 -0
  807. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease.mjs +143 -0
  808. package/bundles/sui-ledger/dist/packages/sdk/src/runtime.mjs +643 -0
  809. package/bundles/sui-ledger/dist/preferences-context.mjs +21 -0
  810. package/bundles/sui-ledger/dist/remote-write-policy.mjs +51 -0
  811. package/bundles/sui-ledger/dist/routes/finance-api.mjs +380 -0
  812. package/bundles/sui-ledger/dist/session/attachment-ownership.mjs +53 -0
  813. package/bundles/sui-ledger/dist/session/call-context.mjs +14 -0
  814. package/bundles/sui-ledger/dist/session/source-ports.mjs +74 -0
  815. package/bundles/sui-ledger/dist/storage/business-runtime.mjs +116 -0
  816. package/bundles/sui-ledger/dist/storage/maintenance-http.mjs +159 -0
  817. package/bundles/sui-ledger/dist/storage/paths.mjs +15 -0
  818. package/bundles/sui-ledger/dist/style.css +15448 -0
  819. package/bundles/sui-ledger/icon.svg +1 -0
  820. package/bundles/sui-ledger/locale/en.json +6 -0
  821. package/bundles/sui-ledger/locale/zh-CN.json +6 -0
  822. package/cordis.patch.yml +4 -0
  823. package/package.json +111 -3
@@ -0,0 +1,2067 @@
1
+ import { CODE_POINTS, SEQUENCES, isControlCodePoint, isSurrogate, isUndefinedCodePoint } from "../common/unicode.mjs";
2
+ import { ERR } from "../common/error-codes.mjs";
3
+ import { Preprocessor } from "./preprocessor.mjs";
4
+ import { TokenType, getTokenAttr } from "../common/token.mjs";
5
+ import { htmlDecodeTree } from "../../../../../entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs";
6
+ import { DecodingMode, EntityDecoder } from "../../../../../entities@6.0.1/node_modules/entities/dist/esm/decode.mjs";
7
+ import { TAG_ID, getTagID } from "../common/html.mjs";
8
+ //#region ../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.js
9
+ var State;
10
+ (function(State) {
11
+ State[State["DATA"] = 0] = "DATA";
12
+ State[State["RCDATA"] = 1] = "RCDATA";
13
+ State[State["RAWTEXT"] = 2] = "RAWTEXT";
14
+ State[State["SCRIPT_DATA"] = 3] = "SCRIPT_DATA";
15
+ State[State["PLAINTEXT"] = 4] = "PLAINTEXT";
16
+ State[State["TAG_OPEN"] = 5] = "TAG_OPEN";
17
+ State[State["END_TAG_OPEN"] = 6] = "END_TAG_OPEN";
18
+ State[State["TAG_NAME"] = 7] = "TAG_NAME";
19
+ State[State["RCDATA_LESS_THAN_SIGN"] = 8] = "RCDATA_LESS_THAN_SIGN";
20
+ State[State["RCDATA_END_TAG_OPEN"] = 9] = "RCDATA_END_TAG_OPEN";
21
+ State[State["RCDATA_END_TAG_NAME"] = 10] = "RCDATA_END_TAG_NAME";
22
+ State[State["RAWTEXT_LESS_THAN_SIGN"] = 11] = "RAWTEXT_LESS_THAN_SIGN";
23
+ State[State["RAWTEXT_END_TAG_OPEN"] = 12] = "RAWTEXT_END_TAG_OPEN";
24
+ State[State["RAWTEXT_END_TAG_NAME"] = 13] = "RAWTEXT_END_TAG_NAME";
25
+ State[State["SCRIPT_DATA_LESS_THAN_SIGN"] = 14] = "SCRIPT_DATA_LESS_THAN_SIGN";
26
+ State[State["SCRIPT_DATA_END_TAG_OPEN"] = 15] = "SCRIPT_DATA_END_TAG_OPEN";
27
+ State[State["SCRIPT_DATA_END_TAG_NAME"] = 16] = "SCRIPT_DATA_END_TAG_NAME";
28
+ State[State["SCRIPT_DATA_ESCAPE_START"] = 17] = "SCRIPT_DATA_ESCAPE_START";
29
+ State[State["SCRIPT_DATA_ESCAPE_START_DASH"] = 18] = "SCRIPT_DATA_ESCAPE_START_DASH";
30
+ State[State["SCRIPT_DATA_ESCAPED"] = 19] = "SCRIPT_DATA_ESCAPED";
31
+ State[State["SCRIPT_DATA_ESCAPED_DASH"] = 20] = "SCRIPT_DATA_ESCAPED_DASH";
32
+ State[State["SCRIPT_DATA_ESCAPED_DASH_DASH"] = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH";
33
+ State[State["SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN"] = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN";
34
+ State[State["SCRIPT_DATA_ESCAPED_END_TAG_OPEN"] = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN";
35
+ State[State["SCRIPT_DATA_ESCAPED_END_TAG_NAME"] = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME";
36
+ State[State["SCRIPT_DATA_DOUBLE_ESCAPE_START"] = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START";
37
+ State[State["SCRIPT_DATA_DOUBLE_ESCAPED"] = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED";
38
+ State[State["SCRIPT_DATA_DOUBLE_ESCAPED_DASH"] = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH";
39
+ State[State["SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH"] = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH";
40
+ State[State["SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN"] = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN";
41
+ State[State["SCRIPT_DATA_DOUBLE_ESCAPE_END"] = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END";
42
+ State[State["BEFORE_ATTRIBUTE_NAME"] = 31] = "BEFORE_ATTRIBUTE_NAME";
43
+ State[State["ATTRIBUTE_NAME"] = 32] = "ATTRIBUTE_NAME";
44
+ State[State["AFTER_ATTRIBUTE_NAME"] = 33] = "AFTER_ATTRIBUTE_NAME";
45
+ State[State["BEFORE_ATTRIBUTE_VALUE"] = 34] = "BEFORE_ATTRIBUTE_VALUE";
46
+ State[State["ATTRIBUTE_VALUE_DOUBLE_QUOTED"] = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED";
47
+ State[State["ATTRIBUTE_VALUE_SINGLE_QUOTED"] = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED";
48
+ State[State["ATTRIBUTE_VALUE_UNQUOTED"] = 37] = "ATTRIBUTE_VALUE_UNQUOTED";
49
+ State[State["AFTER_ATTRIBUTE_VALUE_QUOTED"] = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED";
50
+ State[State["SELF_CLOSING_START_TAG"] = 39] = "SELF_CLOSING_START_TAG";
51
+ State[State["BOGUS_COMMENT"] = 40] = "BOGUS_COMMENT";
52
+ State[State["MARKUP_DECLARATION_OPEN"] = 41] = "MARKUP_DECLARATION_OPEN";
53
+ State[State["COMMENT_START"] = 42] = "COMMENT_START";
54
+ State[State["COMMENT_START_DASH"] = 43] = "COMMENT_START_DASH";
55
+ State[State["COMMENT"] = 44] = "COMMENT";
56
+ State[State["COMMENT_LESS_THAN_SIGN"] = 45] = "COMMENT_LESS_THAN_SIGN";
57
+ State[State["COMMENT_LESS_THAN_SIGN_BANG"] = 46] = "COMMENT_LESS_THAN_SIGN_BANG";
58
+ State[State["COMMENT_LESS_THAN_SIGN_BANG_DASH"] = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH";
59
+ State[State["COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH"] = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH";
60
+ State[State["COMMENT_END_DASH"] = 49] = "COMMENT_END_DASH";
61
+ State[State["COMMENT_END"] = 50] = "COMMENT_END";
62
+ State[State["COMMENT_END_BANG"] = 51] = "COMMENT_END_BANG";
63
+ State[State["DOCTYPE"] = 52] = "DOCTYPE";
64
+ State[State["BEFORE_DOCTYPE_NAME"] = 53] = "BEFORE_DOCTYPE_NAME";
65
+ State[State["DOCTYPE_NAME"] = 54] = "DOCTYPE_NAME";
66
+ State[State["AFTER_DOCTYPE_NAME"] = 55] = "AFTER_DOCTYPE_NAME";
67
+ State[State["AFTER_DOCTYPE_PUBLIC_KEYWORD"] = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD";
68
+ State[State["BEFORE_DOCTYPE_PUBLIC_IDENTIFIER"] = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER";
69
+ State[State["DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED"] = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED";
70
+ State[State["DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED"] = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED";
71
+ State[State["AFTER_DOCTYPE_PUBLIC_IDENTIFIER"] = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER";
72
+ State[State["BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS"] = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS";
73
+ State[State["AFTER_DOCTYPE_SYSTEM_KEYWORD"] = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD";
74
+ State[State["BEFORE_DOCTYPE_SYSTEM_IDENTIFIER"] = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER";
75
+ State[State["DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED"] = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED";
76
+ State[State["DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED"] = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED";
77
+ State[State["AFTER_DOCTYPE_SYSTEM_IDENTIFIER"] = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER";
78
+ State[State["BOGUS_DOCTYPE"] = 67] = "BOGUS_DOCTYPE";
79
+ State[State["CDATA_SECTION"] = 68] = "CDATA_SECTION";
80
+ State[State["CDATA_SECTION_BRACKET"] = 69] = "CDATA_SECTION_BRACKET";
81
+ State[State["CDATA_SECTION_END"] = 70] = "CDATA_SECTION_END";
82
+ State[State["CHARACTER_REFERENCE"] = 71] = "CHARACTER_REFERENCE";
83
+ State[State["AMBIGUOUS_AMPERSAND"] = 72] = "AMBIGUOUS_AMPERSAND";
84
+ })(State || (State = {}));
85
+ const TokenizerMode = {
86
+ DATA: State.DATA,
87
+ RCDATA: State.RCDATA,
88
+ RAWTEXT: State.RAWTEXT,
89
+ SCRIPT_DATA: State.SCRIPT_DATA,
90
+ PLAINTEXT: State.PLAINTEXT,
91
+ CDATA_SECTION: State.CDATA_SECTION
92
+ };
93
+ function isAsciiDigit(cp) {
94
+ return cp >= CODE_POINTS.DIGIT_0 && cp <= CODE_POINTS.DIGIT_9;
95
+ }
96
+ function isAsciiUpper(cp) {
97
+ return cp >= CODE_POINTS.LATIN_CAPITAL_A && cp <= CODE_POINTS.LATIN_CAPITAL_Z;
98
+ }
99
+ function isAsciiLower(cp) {
100
+ return cp >= CODE_POINTS.LATIN_SMALL_A && cp <= CODE_POINTS.LATIN_SMALL_Z;
101
+ }
102
+ function isAsciiLetter(cp) {
103
+ return isAsciiLower(cp) || isAsciiUpper(cp);
104
+ }
105
+ function isAsciiAlphaNumeric(cp) {
106
+ return isAsciiLetter(cp) || isAsciiDigit(cp);
107
+ }
108
+ function toAsciiLower(cp) {
109
+ return cp + 32;
110
+ }
111
+ function isWhitespace(cp) {
112
+ return cp === CODE_POINTS.SPACE || cp === CODE_POINTS.LINE_FEED || cp === CODE_POINTS.TABULATION || cp === CODE_POINTS.FORM_FEED;
113
+ }
114
+ function isScriptDataDoubleEscapeSequenceEnd(cp) {
115
+ return isWhitespace(cp) || cp === CODE_POINTS.SOLIDUS || cp === CODE_POINTS.GREATER_THAN_SIGN;
116
+ }
117
+ function getErrorForNumericCharacterReference(code) {
118
+ if (code === CODE_POINTS.NULL) return ERR.nullCharacterReference;
119
+ else if (code > 1114111) return ERR.characterReferenceOutsideUnicodeRange;
120
+ else if (isSurrogate(code)) return ERR.surrogateCharacterReference;
121
+ else if (isUndefinedCodePoint(code)) return ERR.noncharacterCharacterReference;
122
+ else if (isControlCodePoint(code) || code === CODE_POINTS.CARRIAGE_RETURN) return ERR.controlCharacterReference;
123
+ return null;
124
+ }
125
+ var Tokenizer = class {
126
+ constructor(options, handler) {
127
+ this.options = options;
128
+ this.handler = handler;
129
+ this.paused = false;
130
+ /** Ensures that the parsing loop isn't run multiple times at once. */
131
+ this.inLoop = false;
132
+ /**
133
+ * Indicates that the current adjusted node exists, is not an element in the HTML namespace,
134
+ * and that it is not an integration point for either MathML or HTML.
135
+ *
136
+ * @see {@link https://html.spec.whatwg.org/multipage/parsing.html#tree-construction}
137
+ */
138
+ this.inForeignNode = false;
139
+ this.lastStartTagName = "";
140
+ this.active = false;
141
+ this.state = State.DATA;
142
+ this.returnState = State.DATA;
143
+ this.entityStartPos = 0;
144
+ this.consumedAfterSnapshot = -1;
145
+ this.currentCharacterToken = null;
146
+ this.currentToken = null;
147
+ this.currentAttr = {
148
+ name: "",
149
+ value: ""
150
+ };
151
+ this.preprocessor = new Preprocessor(handler);
152
+ this.currentLocation = this.getCurrentLocation(-1);
153
+ this.entityDecoder = new EntityDecoder(htmlDecodeTree, (cp, consumed) => {
154
+ this.preprocessor.pos = this.entityStartPos + consumed - 1;
155
+ this._flushCodePointConsumedAsCharacterReference(cp);
156
+ }, handler.onParseError ? {
157
+ missingSemicolonAfterCharacterReference: () => {
158
+ this._err(ERR.missingSemicolonAfterCharacterReference, 1);
159
+ },
160
+ absenceOfDigitsInNumericCharacterReference: (consumed) => {
161
+ this._err(ERR.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + consumed);
162
+ },
163
+ validateNumericCharacterReference: (code) => {
164
+ const error = getErrorForNumericCharacterReference(code);
165
+ if (error) this._err(error, 1);
166
+ }
167
+ } : void 0);
168
+ }
169
+ _err(code, cpOffset = 0) {
170
+ var _a, _b;
171
+ (_b = (_a = this.handler).onParseError) === null || _b === void 0 || _b.call(_a, this.preprocessor.getError(code, cpOffset));
172
+ }
173
+ getCurrentLocation(offset) {
174
+ if (!this.options.sourceCodeLocationInfo) return null;
175
+ return {
176
+ startLine: this.preprocessor.line,
177
+ startCol: this.preprocessor.col - offset,
178
+ startOffset: this.preprocessor.offset - offset,
179
+ endLine: -1,
180
+ endCol: -1,
181
+ endOffset: -1
182
+ };
183
+ }
184
+ _runParsingLoop() {
185
+ if (this.inLoop) return;
186
+ this.inLoop = true;
187
+ while (this.active && !this.paused) {
188
+ this.consumedAfterSnapshot = 0;
189
+ const cp = this._consume();
190
+ if (!this._ensureHibernation()) this._callState(cp);
191
+ }
192
+ this.inLoop = false;
193
+ }
194
+ pause() {
195
+ this.paused = true;
196
+ }
197
+ resume(writeCallback) {
198
+ if (!this.paused) throw new Error("Parser was already resumed");
199
+ this.paused = false;
200
+ if (this.inLoop) return;
201
+ this._runParsingLoop();
202
+ if (!this.paused) writeCallback === null || writeCallback === void 0 || writeCallback();
203
+ }
204
+ write(chunk, isLastChunk, writeCallback) {
205
+ this.active = true;
206
+ this.preprocessor.write(chunk, isLastChunk);
207
+ this._runParsingLoop();
208
+ if (!this.paused) writeCallback === null || writeCallback === void 0 || writeCallback();
209
+ }
210
+ insertHtmlAtCurrentPos(chunk) {
211
+ this.active = true;
212
+ this.preprocessor.insertHtmlAtCurrentPos(chunk);
213
+ this._runParsingLoop();
214
+ }
215
+ _ensureHibernation() {
216
+ if (this.preprocessor.endOfChunkHit) {
217
+ this.preprocessor.retreat(this.consumedAfterSnapshot);
218
+ this.consumedAfterSnapshot = 0;
219
+ this.active = false;
220
+ return true;
221
+ }
222
+ return false;
223
+ }
224
+ _consume() {
225
+ this.consumedAfterSnapshot++;
226
+ return this.preprocessor.advance();
227
+ }
228
+ _advanceBy(count) {
229
+ this.consumedAfterSnapshot += count;
230
+ for (let i = 0; i < count; i++) this.preprocessor.advance();
231
+ }
232
+ _consumeSequenceIfMatch(pattern, caseSensitive) {
233
+ if (this.preprocessor.startsWith(pattern, caseSensitive)) {
234
+ this._advanceBy(pattern.length - 1);
235
+ return true;
236
+ }
237
+ return false;
238
+ }
239
+ _createStartTagToken() {
240
+ this.currentToken = {
241
+ type: TokenType.START_TAG,
242
+ tagName: "",
243
+ tagID: TAG_ID.UNKNOWN,
244
+ selfClosing: false,
245
+ ackSelfClosing: false,
246
+ attrs: [],
247
+ location: this.getCurrentLocation(1)
248
+ };
249
+ }
250
+ _createEndTagToken() {
251
+ this.currentToken = {
252
+ type: TokenType.END_TAG,
253
+ tagName: "",
254
+ tagID: TAG_ID.UNKNOWN,
255
+ selfClosing: false,
256
+ ackSelfClosing: false,
257
+ attrs: [],
258
+ location: this.getCurrentLocation(2)
259
+ };
260
+ }
261
+ _createCommentToken(offset) {
262
+ this.currentToken = {
263
+ type: TokenType.COMMENT,
264
+ data: "",
265
+ location: this.getCurrentLocation(offset)
266
+ };
267
+ }
268
+ _createDoctypeToken(initialName) {
269
+ this.currentToken = {
270
+ type: TokenType.DOCTYPE,
271
+ name: initialName,
272
+ forceQuirks: false,
273
+ publicId: null,
274
+ systemId: null,
275
+ location: this.currentLocation
276
+ };
277
+ }
278
+ _createCharacterToken(type, chars) {
279
+ this.currentCharacterToken = {
280
+ type,
281
+ chars,
282
+ location: this.currentLocation
283
+ };
284
+ }
285
+ _createAttr(attrNameFirstCh) {
286
+ this.currentAttr = {
287
+ name: attrNameFirstCh,
288
+ value: ""
289
+ };
290
+ this.currentLocation = this.getCurrentLocation(0);
291
+ }
292
+ _leaveAttrName() {
293
+ var _a;
294
+ var _b;
295
+ const token = this.currentToken;
296
+ if (getTokenAttr(token, this.currentAttr.name) === null) {
297
+ token.attrs.push(this.currentAttr);
298
+ if (token.location && this.currentLocation) {
299
+ const attrLocations = (_a = (_b = token.location).attrs) !== null && _a !== void 0 ? _a : _b.attrs = Object.create(null);
300
+ attrLocations[this.currentAttr.name] = this.currentLocation;
301
+ this._leaveAttrValue();
302
+ }
303
+ } else this._err(ERR.duplicateAttribute);
304
+ }
305
+ _leaveAttrValue() {
306
+ if (this.currentLocation) {
307
+ this.currentLocation.endLine = this.preprocessor.line;
308
+ this.currentLocation.endCol = this.preprocessor.col;
309
+ this.currentLocation.endOffset = this.preprocessor.offset;
310
+ }
311
+ }
312
+ prepareToken(ct) {
313
+ this._emitCurrentCharacterToken(ct.location);
314
+ this.currentToken = null;
315
+ if (ct.location) {
316
+ ct.location.endLine = this.preprocessor.line;
317
+ ct.location.endCol = this.preprocessor.col + 1;
318
+ ct.location.endOffset = this.preprocessor.offset + 1;
319
+ }
320
+ this.currentLocation = this.getCurrentLocation(-1);
321
+ }
322
+ emitCurrentTagToken() {
323
+ const ct = this.currentToken;
324
+ this.prepareToken(ct);
325
+ ct.tagID = getTagID(ct.tagName);
326
+ if (ct.type === TokenType.START_TAG) {
327
+ this.lastStartTagName = ct.tagName;
328
+ this.handler.onStartTag(ct);
329
+ } else {
330
+ if (ct.attrs.length > 0) this._err(ERR.endTagWithAttributes);
331
+ if (ct.selfClosing) this._err(ERR.endTagWithTrailingSolidus);
332
+ this.handler.onEndTag(ct);
333
+ }
334
+ this.preprocessor.dropParsedChunk();
335
+ }
336
+ emitCurrentComment(ct) {
337
+ this.prepareToken(ct);
338
+ this.handler.onComment(ct);
339
+ this.preprocessor.dropParsedChunk();
340
+ }
341
+ emitCurrentDoctype(ct) {
342
+ this.prepareToken(ct);
343
+ this.handler.onDoctype(ct);
344
+ this.preprocessor.dropParsedChunk();
345
+ }
346
+ _emitCurrentCharacterToken(nextLocation) {
347
+ if (this.currentCharacterToken) {
348
+ if (nextLocation && this.currentCharacterToken.location) {
349
+ this.currentCharacterToken.location.endLine = nextLocation.startLine;
350
+ this.currentCharacterToken.location.endCol = nextLocation.startCol;
351
+ this.currentCharacterToken.location.endOffset = nextLocation.startOffset;
352
+ }
353
+ switch (this.currentCharacterToken.type) {
354
+ case TokenType.CHARACTER:
355
+ this.handler.onCharacter(this.currentCharacterToken);
356
+ break;
357
+ case TokenType.NULL_CHARACTER:
358
+ this.handler.onNullCharacter(this.currentCharacterToken);
359
+ break;
360
+ case TokenType.WHITESPACE_CHARACTER: this.handler.onWhitespaceCharacter(this.currentCharacterToken);
361
+ }
362
+ this.currentCharacterToken = null;
363
+ }
364
+ }
365
+ _emitEOFToken() {
366
+ const location = this.getCurrentLocation(0);
367
+ if (location) {
368
+ location.endLine = location.startLine;
369
+ location.endCol = location.startCol;
370
+ location.endOffset = location.startOffset;
371
+ }
372
+ this._emitCurrentCharacterToken(location);
373
+ this.handler.onEof({
374
+ type: TokenType.EOF,
375
+ location
376
+ });
377
+ this.active = false;
378
+ }
379
+ _appendCharToCurrentCharacterToken(type, ch) {
380
+ if (this.currentCharacterToken) {
381
+ if (this.currentCharacterToken.type === type) {
382
+ this.currentCharacterToken.chars += ch;
383
+ return;
384
+ } else {
385
+ this.currentLocation = this.getCurrentLocation(0);
386
+ this._emitCurrentCharacterToken(this.currentLocation);
387
+ this.preprocessor.dropParsedChunk();
388
+ }
389
+ }
390
+ this._createCharacterToken(type, ch);
391
+ }
392
+ _emitCodePoint(cp) {
393
+ const type = isWhitespace(cp) ? TokenType.WHITESPACE_CHARACTER : cp === CODE_POINTS.NULL ? TokenType.NULL_CHARACTER : TokenType.CHARACTER;
394
+ this._appendCharToCurrentCharacterToken(type, String.fromCodePoint(cp));
395
+ }
396
+ _emitChars(ch) {
397
+ this._appendCharToCurrentCharacterToken(TokenType.CHARACTER, ch);
398
+ }
399
+ _startCharacterReference() {
400
+ this.returnState = this.state;
401
+ this.state = State.CHARACTER_REFERENCE;
402
+ this.entityStartPos = this.preprocessor.pos;
403
+ this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ? DecodingMode.Attribute : DecodingMode.Legacy);
404
+ }
405
+ _isCharacterReferenceInAttribute() {
406
+ return this.returnState === State.ATTRIBUTE_VALUE_DOUBLE_QUOTED || this.returnState === State.ATTRIBUTE_VALUE_SINGLE_QUOTED || this.returnState === State.ATTRIBUTE_VALUE_UNQUOTED;
407
+ }
408
+ _flushCodePointConsumedAsCharacterReference(cp) {
409
+ if (this._isCharacterReferenceInAttribute()) this.currentAttr.value += String.fromCodePoint(cp);
410
+ else this._emitCodePoint(cp);
411
+ }
412
+ _callState(cp) {
413
+ switch (this.state) {
414
+ case State.DATA:
415
+ this._stateData(cp);
416
+ break;
417
+ case State.RCDATA:
418
+ this._stateRcdata(cp);
419
+ break;
420
+ case State.RAWTEXT:
421
+ this._stateRawtext(cp);
422
+ break;
423
+ case State.SCRIPT_DATA:
424
+ this._stateScriptData(cp);
425
+ break;
426
+ case State.PLAINTEXT:
427
+ this._statePlaintext(cp);
428
+ break;
429
+ case State.TAG_OPEN:
430
+ this._stateTagOpen(cp);
431
+ break;
432
+ case State.END_TAG_OPEN:
433
+ this._stateEndTagOpen(cp);
434
+ break;
435
+ case State.TAG_NAME:
436
+ this._stateTagName(cp);
437
+ break;
438
+ case State.RCDATA_LESS_THAN_SIGN:
439
+ this._stateRcdataLessThanSign(cp);
440
+ break;
441
+ case State.RCDATA_END_TAG_OPEN:
442
+ this._stateRcdataEndTagOpen(cp);
443
+ break;
444
+ case State.RCDATA_END_TAG_NAME:
445
+ this._stateRcdataEndTagName(cp);
446
+ break;
447
+ case State.RAWTEXT_LESS_THAN_SIGN:
448
+ this._stateRawtextLessThanSign(cp);
449
+ break;
450
+ case State.RAWTEXT_END_TAG_OPEN:
451
+ this._stateRawtextEndTagOpen(cp);
452
+ break;
453
+ case State.RAWTEXT_END_TAG_NAME:
454
+ this._stateRawtextEndTagName(cp);
455
+ break;
456
+ case State.SCRIPT_DATA_LESS_THAN_SIGN:
457
+ this._stateScriptDataLessThanSign(cp);
458
+ break;
459
+ case State.SCRIPT_DATA_END_TAG_OPEN:
460
+ this._stateScriptDataEndTagOpen(cp);
461
+ break;
462
+ case State.SCRIPT_DATA_END_TAG_NAME:
463
+ this._stateScriptDataEndTagName(cp);
464
+ break;
465
+ case State.SCRIPT_DATA_ESCAPE_START:
466
+ this._stateScriptDataEscapeStart(cp);
467
+ break;
468
+ case State.SCRIPT_DATA_ESCAPE_START_DASH:
469
+ this._stateScriptDataEscapeStartDash(cp);
470
+ break;
471
+ case State.SCRIPT_DATA_ESCAPED:
472
+ this._stateScriptDataEscaped(cp);
473
+ break;
474
+ case State.SCRIPT_DATA_ESCAPED_DASH:
475
+ this._stateScriptDataEscapedDash(cp);
476
+ break;
477
+ case State.SCRIPT_DATA_ESCAPED_DASH_DASH:
478
+ this._stateScriptDataEscapedDashDash(cp);
479
+ break;
480
+ case State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:
481
+ this._stateScriptDataEscapedLessThanSign(cp);
482
+ break;
483
+ case State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:
484
+ this._stateScriptDataEscapedEndTagOpen(cp);
485
+ break;
486
+ case State.SCRIPT_DATA_ESCAPED_END_TAG_NAME:
487
+ this._stateScriptDataEscapedEndTagName(cp);
488
+ break;
489
+ case State.SCRIPT_DATA_DOUBLE_ESCAPE_START:
490
+ this._stateScriptDataDoubleEscapeStart(cp);
491
+ break;
492
+ case State.SCRIPT_DATA_DOUBLE_ESCAPED:
493
+ this._stateScriptDataDoubleEscaped(cp);
494
+ break;
495
+ case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:
496
+ this._stateScriptDataDoubleEscapedDash(cp);
497
+ break;
498
+ case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:
499
+ this._stateScriptDataDoubleEscapedDashDash(cp);
500
+ break;
501
+ case State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:
502
+ this._stateScriptDataDoubleEscapedLessThanSign(cp);
503
+ break;
504
+ case State.SCRIPT_DATA_DOUBLE_ESCAPE_END:
505
+ this._stateScriptDataDoubleEscapeEnd(cp);
506
+ break;
507
+ case State.BEFORE_ATTRIBUTE_NAME:
508
+ this._stateBeforeAttributeName(cp);
509
+ break;
510
+ case State.ATTRIBUTE_NAME:
511
+ this._stateAttributeName(cp);
512
+ break;
513
+ case State.AFTER_ATTRIBUTE_NAME:
514
+ this._stateAfterAttributeName(cp);
515
+ break;
516
+ case State.BEFORE_ATTRIBUTE_VALUE:
517
+ this._stateBeforeAttributeValue(cp);
518
+ break;
519
+ case State.ATTRIBUTE_VALUE_DOUBLE_QUOTED:
520
+ this._stateAttributeValueDoubleQuoted(cp);
521
+ break;
522
+ case State.ATTRIBUTE_VALUE_SINGLE_QUOTED:
523
+ this._stateAttributeValueSingleQuoted(cp);
524
+ break;
525
+ case State.ATTRIBUTE_VALUE_UNQUOTED:
526
+ this._stateAttributeValueUnquoted(cp);
527
+ break;
528
+ case State.AFTER_ATTRIBUTE_VALUE_QUOTED:
529
+ this._stateAfterAttributeValueQuoted(cp);
530
+ break;
531
+ case State.SELF_CLOSING_START_TAG:
532
+ this._stateSelfClosingStartTag(cp);
533
+ break;
534
+ case State.BOGUS_COMMENT:
535
+ this._stateBogusComment(cp);
536
+ break;
537
+ case State.MARKUP_DECLARATION_OPEN:
538
+ this._stateMarkupDeclarationOpen(cp);
539
+ break;
540
+ case State.COMMENT_START:
541
+ this._stateCommentStart(cp);
542
+ break;
543
+ case State.COMMENT_START_DASH:
544
+ this._stateCommentStartDash(cp);
545
+ break;
546
+ case State.COMMENT:
547
+ this._stateComment(cp);
548
+ break;
549
+ case State.COMMENT_LESS_THAN_SIGN:
550
+ this._stateCommentLessThanSign(cp);
551
+ break;
552
+ case State.COMMENT_LESS_THAN_SIGN_BANG:
553
+ this._stateCommentLessThanSignBang(cp);
554
+ break;
555
+ case State.COMMENT_LESS_THAN_SIGN_BANG_DASH:
556
+ this._stateCommentLessThanSignBangDash(cp);
557
+ break;
558
+ case State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:
559
+ this._stateCommentLessThanSignBangDashDash(cp);
560
+ break;
561
+ case State.COMMENT_END_DASH:
562
+ this._stateCommentEndDash(cp);
563
+ break;
564
+ case State.COMMENT_END:
565
+ this._stateCommentEnd(cp);
566
+ break;
567
+ case State.COMMENT_END_BANG:
568
+ this._stateCommentEndBang(cp);
569
+ break;
570
+ case State.DOCTYPE:
571
+ this._stateDoctype(cp);
572
+ break;
573
+ case State.BEFORE_DOCTYPE_NAME:
574
+ this._stateBeforeDoctypeName(cp);
575
+ break;
576
+ case State.DOCTYPE_NAME:
577
+ this._stateDoctypeName(cp);
578
+ break;
579
+ case State.AFTER_DOCTYPE_NAME:
580
+ this._stateAfterDoctypeName(cp);
581
+ break;
582
+ case State.AFTER_DOCTYPE_PUBLIC_KEYWORD:
583
+ this._stateAfterDoctypePublicKeyword(cp);
584
+ break;
585
+ case State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:
586
+ this._stateBeforeDoctypePublicIdentifier(cp);
587
+ break;
588
+ case State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:
589
+ this._stateDoctypePublicIdentifierDoubleQuoted(cp);
590
+ break;
591
+ case State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:
592
+ this._stateDoctypePublicIdentifierSingleQuoted(cp);
593
+ break;
594
+ case State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:
595
+ this._stateAfterDoctypePublicIdentifier(cp);
596
+ break;
597
+ case State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:
598
+ this._stateBetweenDoctypePublicAndSystemIdentifiers(cp);
599
+ break;
600
+ case State.AFTER_DOCTYPE_SYSTEM_KEYWORD:
601
+ this._stateAfterDoctypeSystemKeyword(cp);
602
+ break;
603
+ case State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:
604
+ this._stateBeforeDoctypeSystemIdentifier(cp);
605
+ break;
606
+ case State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:
607
+ this._stateDoctypeSystemIdentifierDoubleQuoted(cp);
608
+ break;
609
+ case State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:
610
+ this._stateDoctypeSystemIdentifierSingleQuoted(cp);
611
+ break;
612
+ case State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:
613
+ this._stateAfterDoctypeSystemIdentifier(cp);
614
+ break;
615
+ case State.BOGUS_DOCTYPE:
616
+ this._stateBogusDoctype(cp);
617
+ break;
618
+ case State.CDATA_SECTION:
619
+ this._stateCdataSection(cp);
620
+ break;
621
+ case State.CDATA_SECTION_BRACKET:
622
+ this._stateCdataSectionBracket(cp);
623
+ break;
624
+ case State.CDATA_SECTION_END:
625
+ this._stateCdataSectionEnd(cp);
626
+ break;
627
+ case State.CHARACTER_REFERENCE:
628
+ this._stateCharacterReference();
629
+ break;
630
+ case State.AMBIGUOUS_AMPERSAND:
631
+ this._stateAmbiguousAmpersand(cp);
632
+ break;
633
+ default: throw new Error("Unknown state");
634
+ }
635
+ }
636
+ _stateData(cp) {
637
+ switch (cp) {
638
+ case CODE_POINTS.LESS_THAN_SIGN:
639
+ this.state = State.TAG_OPEN;
640
+ break;
641
+ case CODE_POINTS.AMPERSAND:
642
+ this._startCharacterReference();
643
+ break;
644
+ case CODE_POINTS.NULL:
645
+ this._err(ERR.unexpectedNullCharacter);
646
+ this._emitCodePoint(cp);
647
+ break;
648
+ case CODE_POINTS.EOF:
649
+ this._emitEOFToken();
650
+ break;
651
+ default: this._emitCodePoint(cp);
652
+ }
653
+ }
654
+ _stateRcdata(cp) {
655
+ switch (cp) {
656
+ case CODE_POINTS.AMPERSAND:
657
+ this._startCharacterReference();
658
+ break;
659
+ case CODE_POINTS.LESS_THAN_SIGN:
660
+ this.state = State.RCDATA_LESS_THAN_SIGN;
661
+ break;
662
+ case CODE_POINTS.NULL:
663
+ this._err(ERR.unexpectedNullCharacter);
664
+ this._emitChars("�");
665
+ break;
666
+ case CODE_POINTS.EOF:
667
+ this._emitEOFToken();
668
+ break;
669
+ default: this._emitCodePoint(cp);
670
+ }
671
+ }
672
+ _stateRawtext(cp) {
673
+ switch (cp) {
674
+ case CODE_POINTS.LESS_THAN_SIGN:
675
+ this.state = State.RAWTEXT_LESS_THAN_SIGN;
676
+ break;
677
+ case CODE_POINTS.NULL:
678
+ this._err(ERR.unexpectedNullCharacter);
679
+ this._emitChars("�");
680
+ break;
681
+ case CODE_POINTS.EOF:
682
+ this._emitEOFToken();
683
+ break;
684
+ default: this._emitCodePoint(cp);
685
+ }
686
+ }
687
+ _stateScriptData(cp) {
688
+ switch (cp) {
689
+ case CODE_POINTS.LESS_THAN_SIGN:
690
+ this.state = State.SCRIPT_DATA_LESS_THAN_SIGN;
691
+ break;
692
+ case CODE_POINTS.NULL:
693
+ this._err(ERR.unexpectedNullCharacter);
694
+ this._emitChars("�");
695
+ break;
696
+ case CODE_POINTS.EOF:
697
+ this._emitEOFToken();
698
+ break;
699
+ default: this._emitCodePoint(cp);
700
+ }
701
+ }
702
+ _statePlaintext(cp) {
703
+ switch (cp) {
704
+ case CODE_POINTS.NULL:
705
+ this._err(ERR.unexpectedNullCharacter);
706
+ this._emitChars("�");
707
+ break;
708
+ case CODE_POINTS.EOF:
709
+ this._emitEOFToken();
710
+ break;
711
+ default: this._emitCodePoint(cp);
712
+ }
713
+ }
714
+ _stateTagOpen(cp) {
715
+ if (isAsciiLetter(cp)) {
716
+ this._createStartTagToken();
717
+ this.state = State.TAG_NAME;
718
+ this._stateTagName(cp);
719
+ } else switch (cp) {
720
+ case CODE_POINTS.EXCLAMATION_MARK:
721
+ this.state = State.MARKUP_DECLARATION_OPEN;
722
+ break;
723
+ case CODE_POINTS.SOLIDUS:
724
+ this.state = State.END_TAG_OPEN;
725
+ break;
726
+ case CODE_POINTS.QUESTION_MARK:
727
+ this._err(ERR.unexpectedQuestionMarkInsteadOfTagName);
728
+ this._createCommentToken(1);
729
+ this.state = State.BOGUS_COMMENT;
730
+ this._stateBogusComment(cp);
731
+ break;
732
+ case CODE_POINTS.EOF:
733
+ this._err(ERR.eofBeforeTagName);
734
+ this._emitChars("<");
735
+ this._emitEOFToken();
736
+ break;
737
+ default:
738
+ this._err(ERR.invalidFirstCharacterOfTagName);
739
+ this._emitChars("<");
740
+ this.state = State.DATA;
741
+ this._stateData(cp);
742
+ }
743
+ }
744
+ _stateEndTagOpen(cp) {
745
+ if (isAsciiLetter(cp)) {
746
+ this._createEndTagToken();
747
+ this.state = State.TAG_NAME;
748
+ this._stateTagName(cp);
749
+ } else switch (cp) {
750
+ case CODE_POINTS.GREATER_THAN_SIGN:
751
+ this._err(ERR.missingEndTagName);
752
+ this.state = State.DATA;
753
+ break;
754
+ case CODE_POINTS.EOF:
755
+ this._err(ERR.eofBeforeTagName);
756
+ this._emitChars("</");
757
+ this._emitEOFToken();
758
+ break;
759
+ default:
760
+ this._err(ERR.invalidFirstCharacterOfTagName);
761
+ this._createCommentToken(2);
762
+ this.state = State.BOGUS_COMMENT;
763
+ this._stateBogusComment(cp);
764
+ }
765
+ }
766
+ _stateTagName(cp) {
767
+ const token = this.currentToken;
768
+ switch (cp) {
769
+ case CODE_POINTS.SPACE:
770
+ case CODE_POINTS.LINE_FEED:
771
+ case CODE_POINTS.TABULATION:
772
+ case CODE_POINTS.FORM_FEED:
773
+ this.state = State.BEFORE_ATTRIBUTE_NAME;
774
+ break;
775
+ case CODE_POINTS.SOLIDUS:
776
+ this.state = State.SELF_CLOSING_START_TAG;
777
+ break;
778
+ case CODE_POINTS.GREATER_THAN_SIGN:
779
+ this.state = State.DATA;
780
+ this.emitCurrentTagToken();
781
+ break;
782
+ case CODE_POINTS.NULL:
783
+ this._err(ERR.unexpectedNullCharacter);
784
+ token.tagName += "�";
785
+ break;
786
+ case CODE_POINTS.EOF:
787
+ this._err(ERR.eofInTag);
788
+ this._emitEOFToken();
789
+ break;
790
+ default: token.tagName += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);
791
+ }
792
+ }
793
+ _stateRcdataLessThanSign(cp) {
794
+ if (cp === CODE_POINTS.SOLIDUS) this.state = State.RCDATA_END_TAG_OPEN;
795
+ else {
796
+ this._emitChars("<");
797
+ this.state = State.RCDATA;
798
+ this._stateRcdata(cp);
799
+ }
800
+ }
801
+ _stateRcdataEndTagOpen(cp) {
802
+ if (isAsciiLetter(cp)) {
803
+ this.state = State.RCDATA_END_TAG_NAME;
804
+ this._stateRcdataEndTagName(cp);
805
+ } else {
806
+ this._emitChars("</");
807
+ this.state = State.RCDATA;
808
+ this._stateRcdata(cp);
809
+ }
810
+ }
811
+ handleSpecialEndTag(_cp) {
812
+ if (!this.preprocessor.startsWith(this.lastStartTagName, false)) return !this._ensureHibernation();
813
+ this._createEndTagToken();
814
+ const token = this.currentToken;
815
+ token.tagName = this.lastStartTagName;
816
+ switch (this.preprocessor.peek(this.lastStartTagName.length)) {
817
+ case CODE_POINTS.SPACE:
818
+ case CODE_POINTS.LINE_FEED:
819
+ case CODE_POINTS.TABULATION:
820
+ case CODE_POINTS.FORM_FEED:
821
+ this._advanceBy(this.lastStartTagName.length);
822
+ this.state = State.BEFORE_ATTRIBUTE_NAME;
823
+ return false;
824
+ case CODE_POINTS.SOLIDUS:
825
+ this._advanceBy(this.lastStartTagName.length);
826
+ this.state = State.SELF_CLOSING_START_TAG;
827
+ return false;
828
+ case CODE_POINTS.GREATER_THAN_SIGN:
829
+ this._advanceBy(this.lastStartTagName.length);
830
+ this.emitCurrentTagToken();
831
+ this.state = State.DATA;
832
+ return false;
833
+ default: return !this._ensureHibernation();
834
+ }
835
+ }
836
+ _stateRcdataEndTagName(cp) {
837
+ if (this.handleSpecialEndTag(cp)) {
838
+ this._emitChars("</");
839
+ this.state = State.RCDATA;
840
+ this._stateRcdata(cp);
841
+ }
842
+ }
843
+ _stateRawtextLessThanSign(cp) {
844
+ if (cp === CODE_POINTS.SOLIDUS) this.state = State.RAWTEXT_END_TAG_OPEN;
845
+ else {
846
+ this._emitChars("<");
847
+ this.state = State.RAWTEXT;
848
+ this._stateRawtext(cp);
849
+ }
850
+ }
851
+ _stateRawtextEndTagOpen(cp) {
852
+ if (isAsciiLetter(cp)) {
853
+ this.state = State.RAWTEXT_END_TAG_NAME;
854
+ this._stateRawtextEndTagName(cp);
855
+ } else {
856
+ this._emitChars("</");
857
+ this.state = State.RAWTEXT;
858
+ this._stateRawtext(cp);
859
+ }
860
+ }
861
+ _stateRawtextEndTagName(cp) {
862
+ if (this.handleSpecialEndTag(cp)) {
863
+ this._emitChars("</");
864
+ this.state = State.RAWTEXT;
865
+ this._stateRawtext(cp);
866
+ }
867
+ }
868
+ _stateScriptDataLessThanSign(cp) {
869
+ switch (cp) {
870
+ case CODE_POINTS.SOLIDUS:
871
+ this.state = State.SCRIPT_DATA_END_TAG_OPEN;
872
+ break;
873
+ case CODE_POINTS.EXCLAMATION_MARK:
874
+ this.state = State.SCRIPT_DATA_ESCAPE_START;
875
+ this._emitChars("<!");
876
+ break;
877
+ default:
878
+ this._emitChars("<");
879
+ this.state = State.SCRIPT_DATA;
880
+ this._stateScriptData(cp);
881
+ }
882
+ }
883
+ _stateScriptDataEndTagOpen(cp) {
884
+ if (isAsciiLetter(cp)) {
885
+ this.state = State.SCRIPT_DATA_END_TAG_NAME;
886
+ this._stateScriptDataEndTagName(cp);
887
+ } else {
888
+ this._emitChars("</");
889
+ this.state = State.SCRIPT_DATA;
890
+ this._stateScriptData(cp);
891
+ }
892
+ }
893
+ _stateScriptDataEndTagName(cp) {
894
+ if (this.handleSpecialEndTag(cp)) {
895
+ this._emitChars("</");
896
+ this.state = State.SCRIPT_DATA;
897
+ this._stateScriptData(cp);
898
+ }
899
+ }
900
+ _stateScriptDataEscapeStart(cp) {
901
+ if (cp === CODE_POINTS.HYPHEN_MINUS) {
902
+ this.state = State.SCRIPT_DATA_ESCAPE_START_DASH;
903
+ this._emitChars("-");
904
+ } else {
905
+ this.state = State.SCRIPT_DATA;
906
+ this._stateScriptData(cp);
907
+ }
908
+ }
909
+ _stateScriptDataEscapeStartDash(cp) {
910
+ if (cp === CODE_POINTS.HYPHEN_MINUS) {
911
+ this.state = State.SCRIPT_DATA_ESCAPED_DASH_DASH;
912
+ this._emitChars("-");
913
+ } else {
914
+ this.state = State.SCRIPT_DATA;
915
+ this._stateScriptData(cp);
916
+ }
917
+ }
918
+ _stateScriptDataEscaped(cp) {
919
+ switch (cp) {
920
+ case CODE_POINTS.HYPHEN_MINUS:
921
+ this.state = State.SCRIPT_DATA_ESCAPED_DASH;
922
+ this._emitChars("-");
923
+ break;
924
+ case CODE_POINTS.LESS_THAN_SIGN:
925
+ this.state = State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
926
+ break;
927
+ case CODE_POINTS.NULL:
928
+ this._err(ERR.unexpectedNullCharacter);
929
+ this._emitChars("�");
930
+ break;
931
+ case CODE_POINTS.EOF:
932
+ this._err(ERR.eofInScriptHtmlCommentLikeText);
933
+ this._emitEOFToken();
934
+ break;
935
+ default: this._emitCodePoint(cp);
936
+ }
937
+ }
938
+ _stateScriptDataEscapedDash(cp) {
939
+ switch (cp) {
940
+ case CODE_POINTS.HYPHEN_MINUS:
941
+ this.state = State.SCRIPT_DATA_ESCAPED_DASH_DASH;
942
+ this._emitChars("-");
943
+ break;
944
+ case CODE_POINTS.LESS_THAN_SIGN:
945
+ this.state = State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
946
+ break;
947
+ case CODE_POINTS.NULL:
948
+ this._err(ERR.unexpectedNullCharacter);
949
+ this.state = State.SCRIPT_DATA_ESCAPED;
950
+ this._emitChars("�");
951
+ break;
952
+ case CODE_POINTS.EOF:
953
+ this._err(ERR.eofInScriptHtmlCommentLikeText);
954
+ this._emitEOFToken();
955
+ break;
956
+ default:
957
+ this.state = State.SCRIPT_DATA_ESCAPED;
958
+ this._emitCodePoint(cp);
959
+ }
960
+ }
961
+ _stateScriptDataEscapedDashDash(cp) {
962
+ switch (cp) {
963
+ case CODE_POINTS.HYPHEN_MINUS:
964
+ this._emitChars("-");
965
+ break;
966
+ case CODE_POINTS.LESS_THAN_SIGN:
967
+ this.state = State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
968
+ break;
969
+ case CODE_POINTS.GREATER_THAN_SIGN:
970
+ this.state = State.SCRIPT_DATA;
971
+ this._emitChars(">");
972
+ break;
973
+ case CODE_POINTS.NULL:
974
+ this._err(ERR.unexpectedNullCharacter);
975
+ this.state = State.SCRIPT_DATA_ESCAPED;
976
+ this._emitChars("�");
977
+ break;
978
+ case CODE_POINTS.EOF:
979
+ this._err(ERR.eofInScriptHtmlCommentLikeText);
980
+ this._emitEOFToken();
981
+ break;
982
+ default:
983
+ this.state = State.SCRIPT_DATA_ESCAPED;
984
+ this._emitCodePoint(cp);
985
+ }
986
+ }
987
+ _stateScriptDataEscapedLessThanSign(cp) {
988
+ if (cp === CODE_POINTS.SOLIDUS) this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN;
989
+ else if (isAsciiLetter(cp)) {
990
+ this._emitChars("<");
991
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_START;
992
+ this._stateScriptDataDoubleEscapeStart(cp);
993
+ } else {
994
+ this._emitChars("<");
995
+ this.state = State.SCRIPT_DATA_ESCAPED;
996
+ this._stateScriptDataEscaped(cp);
997
+ }
998
+ }
999
+ _stateScriptDataEscapedEndTagOpen(cp) {
1000
+ if (isAsciiLetter(cp)) {
1001
+ this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_NAME;
1002
+ this._stateScriptDataEscapedEndTagName(cp);
1003
+ } else {
1004
+ this._emitChars("</");
1005
+ this.state = State.SCRIPT_DATA_ESCAPED;
1006
+ this._stateScriptDataEscaped(cp);
1007
+ }
1008
+ }
1009
+ _stateScriptDataEscapedEndTagName(cp) {
1010
+ if (this.handleSpecialEndTag(cp)) {
1011
+ this._emitChars("</");
1012
+ this.state = State.SCRIPT_DATA_ESCAPED;
1013
+ this._stateScriptDataEscaped(cp);
1014
+ }
1015
+ }
1016
+ _stateScriptDataDoubleEscapeStart(cp) {
1017
+ if (this.preprocessor.startsWith(SEQUENCES.SCRIPT, false) && isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))) {
1018
+ this._emitCodePoint(cp);
1019
+ for (let i = 0; i < SEQUENCES.SCRIPT.length; i++) this._emitCodePoint(this._consume());
1020
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1021
+ } else if (!this._ensureHibernation()) {
1022
+ this.state = State.SCRIPT_DATA_ESCAPED;
1023
+ this._stateScriptDataEscaped(cp);
1024
+ }
1025
+ }
1026
+ _stateScriptDataDoubleEscaped(cp) {
1027
+ switch (cp) {
1028
+ case CODE_POINTS.HYPHEN_MINUS:
1029
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH;
1030
+ this._emitChars("-");
1031
+ break;
1032
+ case CODE_POINTS.LESS_THAN_SIGN:
1033
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;
1034
+ this._emitChars("<");
1035
+ break;
1036
+ case CODE_POINTS.NULL:
1037
+ this._err(ERR.unexpectedNullCharacter);
1038
+ this._emitChars("�");
1039
+ break;
1040
+ case CODE_POINTS.EOF:
1041
+ this._err(ERR.eofInScriptHtmlCommentLikeText);
1042
+ this._emitEOFToken();
1043
+ break;
1044
+ default: this._emitCodePoint(cp);
1045
+ }
1046
+ }
1047
+ _stateScriptDataDoubleEscapedDash(cp) {
1048
+ switch (cp) {
1049
+ case CODE_POINTS.HYPHEN_MINUS:
1050
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH;
1051
+ this._emitChars("-");
1052
+ break;
1053
+ case CODE_POINTS.LESS_THAN_SIGN:
1054
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;
1055
+ this._emitChars("<");
1056
+ break;
1057
+ case CODE_POINTS.NULL:
1058
+ this._err(ERR.unexpectedNullCharacter);
1059
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1060
+ this._emitChars("�");
1061
+ break;
1062
+ case CODE_POINTS.EOF:
1063
+ this._err(ERR.eofInScriptHtmlCommentLikeText);
1064
+ this._emitEOFToken();
1065
+ break;
1066
+ default:
1067
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1068
+ this._emitCodePoint(cp);
1069
+ }
1070
+ }
1071
+ _stateScriptDataDoubleEscapedDashDash(cp) {
1072
+ switch (cp) {
1073
+ case CODE_POINTS.HYPHEN_MINUS:
1074
+ this._emitChars("-");
1075
+ break;
1076
+ case CODE_POINTS.LESS_THAN_SIGN:
1077
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;
1078
+ this._emitChars("<");
1079
+ break;
1080
+ case CODE_POINTS.GREATER_THAN_SIGN:
1081
+ this.state = State.SCRIPT_DATA;
1082
+ this._emitChars(">");
1083
+ break;
1084
+ case CODE_POINTS.NULL:
1085
+ this._err(ERR.unexpectedNullCharacter);
1086
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1087
+ this._emitChars("�");
1088
+ break;
1089
+ case CODE_POINTS.EOF:
1090
+ this._err(ERR.eofInScriptHtmlCommentLikeText);
1091
+ this._emitEOFToken();
1092
+ break;
1093
+ default:
1094
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1095
+ this._emitCodePoint(cp);
1096
+ }
1097
+ }
1098
+ _stateScriptDataDoubleEscapedLessThanSign(cp) {
1099
+ if (cp === CODE_POINTS.SOLIDUS) {
1100
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_END;
1101
+ this._emitChars("/");
1102
+ } else {
1103
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1104
+ this._stateScriptDataDoubleEscaped(cp);
1105
+ }
1106
+ }
1107
+ _stateScriptDataDoubleEscapeEnd(cp) {
1108
+ if (this.preprocessor.startsWith(SEQUENCES.SCRIPT, false) && isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))) {
1109
+ this._emitCodePoint(cp);
1110
+ for (let i = 0; i < SEQUENCES.SCRIPT.length; i++) this._emitCodePoint(this._consume());
1111
+ this.state = State.SCRIPT_DATA_ESCAPED;
1112
+ } else if (!this._ensureHibernation()) {
1113
+ this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;
1114
+ this._stateScriptDataDoubleEscaped(cp);
1115
+ }
1116
+ }
1117
+ _stateBeforeAttributeName(cp) {
1118
+ switch (cp) {
1119
+ case CODE_POINTS.SPACE:
1120
+ case CODE_POINTS.LINE_FEED:
1121
+ case CODE_POINTS.TABULATION:
1122
+ case CODE_POINTS.FORM_FEED: break;
1123
+ case CODE_POINTS.SOLIDUS:
1124
+ case CODE_POINTS.GREATER_THAN_SIGN:
1125
+ case CODE_POINTS.EOF:
1126
+ this.state = State.AFTER_ATTRIBUTE_NAME;
1127
+ this._stateAfterAttributeName(cp);
1128
+ break;
1129
+ case CODE_POINTS.EQUALS_SIGN:
1130
+ this._err(ERR.unexpectedEqualsSignBeforeAttributeName);
1131
+ this._createAttr("=");
1132
+ this.state = State.ATTRIBUTE_NAME;
1133
+ break;
1134
+ default:
1135
+ this._createAttr("");
1136
+ this.state = State.ATTRIBUTE_NAME;
1137
+ this._stateAttributeName(cp);
1138
+ }
1139
+ }
1140
+ _stateAttributeName(cp) {
1141
+ switch (cp) {
1142
+ case CODE_POINTS.SPACE:
1143
+ case CODE_POINTS.LINE_FEED:
1144
+ case CODE_POINTS.TABULATION:
1145
+ case CODE_POINTS.FORM_FEED:
1146
+ case CODE_POINTS.SOLIDUS:
1147
+ case CODE_POINTS.GREATER_THAN_SIGN:
1148
+ case CODE_POINTS.EOF:
1149
+ this._leaveAttrName();
1150
+ this.state = State.AFTER_ATTRIBUTE_NAME;
1151
+ this._stateAfterAttributeName(cp);
1152
+ break;
1153
+ case CODE_POINTS.EQUALS_SIGN:
1154
+ this._leaveAttrName();
1155
+ this.state = State.BEFORE_ATTRIBUTE_VALUE;
1156
+ break;
1157
+ case CODE_POINTS.QUOTATION_MARK:
1158
+ case CODE_POINTS.APOSTROPHE:
1159
+ case CODE_POINTS.LESS_THAN_SIGN:
1160
+ this._err(ERR.unexpectedCharacterInAttributeName);
1161
+ this.currentAttr.name += String.fromCodePoint(cp);
1162
+ break;
1163
+ case CODE_POINTS.NULL:
1164
+ this._err(ERR.unexpectedNullCharacter);
1165
+ this.currentAttr.name += "�";
1166
+ break;
1167
+ default: this.currentAttr.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);
1168
+ }
1169
+ }
1170
+ _stateAfterAttributeName(cp) {
1171
+ switch (cp) {
1172
+ case CODE_POINTS.SPACE:
1173
+ case CODE_POINTS.LINE_FEED:
1174
+ case CODE_POINTS.TABULATION:
1175
+ case CODE_POINTS.FORM_FEED: break;
1176
+ case CODE_POINTS.SOLIDUS:
1177
+ this.state = State.SELF_CLOSING_START_TAG;
1178
+ break;
1179
+ case CODE_POINTS.EQUALS_SIGN:
1180
+ this.state = State.BEFORE_ATTRIBUTE_VALUE;
1181
+ break;
1182
+ case CODE_POINTS.GREATER_THAN_SIGN:
1183
+ this.state = State.DATA;
1184
+ this.emitCurrentTagToken();
1185
+ break;
1186
+ case CODE_POINTS.EOF:
1187
+ this._err(ERR.eofInTag);
1188
+ this._emitEOFToken();
1189
+ break;
1190
+ default:
1191
+ this._createAttr("");
1192
+ this.state = State.ATTRIBUTE_NAME;
1193
+ this._stateAttributeName(cp);
1194
+ }
1195
+ }
1196
+ _stateBeforeAttributeValue(cp) {
1197
+ switch (cp) {
1198
+ case CODE_POINTS.SPACE:
1199
+ case CODE_POINTS.LINE_FEED:
1200
+ case CODE_POINTS.TABULATION:
1201
+ case CODE_POINTS.FORM_FEED: break;
1202
+ case CODE_POINTS.QUOTATION_MARK:
1203
+ this.state = State.ATTRIBUTE_VALUE_DOUBLE_QUOTED;
1204
+ break;
1205
+ case CODE_POINTS.APOSTROPHE:
1206
+ this.state = State.ATTRIBUTE_VALUE_SINGLE_QUOTED;
1207
+ break;
1208
+ case CODE_POINTS.GREATER_THAN_SIGN:
1209
+ this._err(ERR.missingAttributeValue);
1210
+ this.state = State.DATA;
1211
+ this.emitCurrentTagToken();
1212
+ break;
1213
+ default:
1214
+ this.state = State.ATTRIBUTE_VALUE_UNQUOTED;
1215
+ this._stateAttributeValueUnquoted(cp);
1216
+ }
1217
+ }
1218
+ _stateAttributeValueDoubleQuoted(cp) {
1219
+ switch (cp) {
1220
+ case CODE_POINTS.QUOTATION_MARK:
1221
+ this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;
1222
+ break;
1223
+ case CODE_POINTS.AMPERSAND:
1224
+ this._startCharacterReference();
1225
+ break;
1226
+ case CODE_POINTS.NULL:
1227
+ this._err(ERR.unexpectedNullCharacter);
1228
+ this.currentAttr.value += "�";
1229
+ break;
1230
+ case CODE_POINTS.EOF:
1231
+ this._err(ERR.eofInTag);
1232
+ this._emitEOFToken();
1233
+ break;
1234
+ default: this.currentAttr.value += String.fromCodePoint(cp);
1235
+ }
1236
+ }
1237
+ _stateAttributeValueSingleQuoted(cp) {
1238
+ switch (cp) {
1239
+ case CODE_POINTS.APOSTROPHE:
1240
+ this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;
1241
+ break;
1242
+ case CODE_POINTS.AMPERSAND:
1243
+ this._startCharacterReference();
1244
+ break;
1245
+ case CODE_POINTS.NULL:
1246
+ this._err(ERR.unexpectedNullCharacter);
1247
+ this.currentAttr.value += "�";
1248
+ break;
1249
+ case CODE_POINTS.EOF:
1250
+ this._err(ERR.eofInTag);
1251
+ this._emitEOFToken();
1252
+ break;
1253
+ default: this.currentAttr.value += String.fromCodePoint(cp);
1254
+ }
1255
+ }
1256
+ _stateAttributeValueUnquoted(cp) {
1257
+ switch (cp) {
1258
+ case CODE_POINTS.SPACE:
1259
+ case CODE_POINTS.LINE_FEED:
1260
+ case CODE_POINTS.TABULATION:
1261
+ case CODE_POINTS.FORM_FEED:
1262
+ this._leaveAttrValue();
1263
+ this.state = State.BEFORE_ATTRIBUTE_NAME;
1264
+ break;
1265
+ case CODE_POINTS.AMPERSAND:
1266
+ this._startCharacterReference();
1267
+ break;
1268
+ case CODE_POINTS.GREATER_THAN_SIGN:
1269
+ this._leaveAttrValue();
1270
+ this.state = State.DATA;
1271
+ this.emitCurrentTagToken();
1272
+ break;
1273
+ case CODE_POINTS.NULL:
1274
+ this._err(ERR.unexpectedNullCharacter);
1275
+ this.currentAttr.value += "�";
1276
+ break;
1277
+ case CODE_POINTS.QUOTATION_MARK:
1278
+ case CODE_POINTS.APOSTROPHE:
1279
+ case CODE_POINTS.LESS_THAN_SIGN:
1280
+ case CODE_POINTS.EQUALS_SIGN:
1281
+ case CODE_POINTS.GRAVE_ACCENT:
1282
+ this._err(ERR.unexpectedCharacterInUnquotedAttributeValue);
1283
+ this.currentAttr.value += String.fromCodePoint(cp);
1284
+ break;
1285
+ case CODE_POINTS.EOF:
1286
+ this._err(ERR.eofInTag);
1287
+ this._emitEOFToken();
1288
+ break;
1289
+ default: this.currentAttr.value += String.fromCodePoint(cp);
1290
+ }
1291
+ }
1292
+ _stateAfterAttributeValueQuoted(cp) {
1293
+ switch (cp) {
1294
+ case CODE_POINTS.SPACE:
1295
+ case CODE_POINTS.LINE_FEED:
1296
+ case CODE_POINTS.TABULATION:
1297
+ case CODE_POINTS.FORM_FEED:
1298
+ this._leaveAttrValue();
1299
+ this.state = State.BEFORE_ATTRIBUTE_NAME;
1300
+ break;
1301
+ case CODE_POINTS.SOLIDUS:
1302
+ this._leaveAttrValue();
1303
+ this.state = State.SELF_CLOSING_START_TAG;
1304
+ break;
1305
+ case CODE_POINTS.GREATER_THAN_SIGN:
1306
+ this._leaveAttrValue();
1307
+ this.state = State.DATA;
1308
+ this.emitCurrentTagToken();
1309
+ break;
1310
+ case CODE_POINTS.EOF:
1311
+ this._err(ERR.eofInTag);
1312
+ this._emitEOFToken();
1313
+ break;
1314
+ default:
1315
+ this._err(ERR.missingWhitespaceBetweenAttributes);
1316
+ this.state = State.BEFORE_ATTRIBUTE_NAME;
1317
+ this._stateBeforeAttributeName(cp);
1318
+ }
1319
+ }
1320
+ _stateSelfClosingStartTag(cp) {
1321
+ switch (cp) {
1322
+ case CODE_POINTS.GREATER_THAN_SIGN: {
1323
+ const token = this.currentToken;
1324
+ token.selfClosing = true;
1325
+ this.state = State.DATA;
1326
+ this.emitCurrentTagToken();
1327
+ break;
1328
+ }
1329
+ case CODE_POINTS.EOF:
1330
+ this._err(ERR.eofInTag);
1331
+ this._emitEOFToken();
1332
+ break;
1333
+ default:
1334
+ this._err(ERR.unexpectedSolidusInTag);
1335
+ this.state = State.BEFORE_ATTRIBUTE_NAME;
1336
+ this._stateBeforeAttributeName(cp);
1337
+ }
1338
+ }
1339
+ _stateBogusComment(cp) {
1340
+ const token = this.currentToken;
1341
+ switch (cp) {
1342
+ case CODE_POINTS.GREATER_THAN_SIGN:
1343
+ this.state = State.DATA;
1344
+ this.emitCurrentComment(token);
1345
+ break;
1346
+ case CODE_POINTS.EOF:
1347
+ this.emitCurrentComment(token);
1348
+ this._emitEOFToken();
1349
+ break;
1350
+ case CODE_POINTS.NULL:
1351
+ this._err(ERR.unexpectedNullCharacter);
1352
+ token.data += "�";
1353
+ break;
1354
+ default: token.data += String.fromCodePoint(cp);
1355
+ }
1356
+ }
1357
+ _stateMarkupDeclarationOpen(cp) {
1358
+ if (this._consumeSequenceIfMatch(SEQUENCES.DASH_DASH, true)) {
1359
+ this._createCommentToken(SEQUENCES.DASH_DASH.length + 1);
1360
+ this.state = State.COMMENT_START;
1361
+ } else if (this._consumeSequenceIfMatch(SEQUENCES.DOCTYPE, false)) {
1362
+ this.currentLocation = this.getCurrentLocation(SEQUENCES.DOCTYPE.length + 1);
1363
+ this.state = State.DOCTYPE;
1364
+ } else if (this._consumeSequenceIfMatch(SEQUENCES.CDATA_START, true)) {
1365
+ if (this.inForeignNode) this.state = State.CDATA_SECTION;
1366
+ else {
1367
+ this._err(ERR.cdataInHtmlContent);
1368
+ this._createCommentToken(SEQUENCES.CDATA_START.length + 1);
1369
+ this.currentToken.data = "[CDATA[";
1370
+ this.state = State.BOGUS_COMMENT;
1371
+ }
1372
+ } else if (!this._ensureHibernation()) {
1373
+ this._err(ERR.incorrectlyOpenedComment);
1374
+ this._createCommentToken(2);
1375
+ this.state = State.BOGUS_COMMENT;
1376
+ this._stateBogusComment(cp);
1377
+ }
1378
+ }
1379
+ _stateCommentStart(cp) {
1380
+ switch (cp) {
1381
+ case CODE_POINTS.HYPHEN_MINUS:
1382
+ this.state = State.COMMENT_START_DASH;
1383
+ break;
1384
+ case CODE_POINTS.GREATER_THAN_SIGN: {
1385
+ this._err(ERR.abruptClosingOfEmptyComment);
1386
+ this.state = State.DATA;
1387
+ const token = this.currentToken;
1388
+ this.emitCurrentComment(token);
1389
+ break;
1390
+ }
1391
+ default:
1392
+ this.state = State.COMMENT;
1393
+ this._stateComment(cp);
1394
+ }
1395
+ }
1396
+ _stateCommentStartDash(cp) {
1397
+ const token = this.currentToken;
1398
+ switch (cp) {
1399
+ case CODE_POINTS.HYPHEN_MINUS:
1400
+ this.state = State.COMMENT_END;
1401
+ break;
1402
+ case CODE_POINTS.GREATER_THAN_SIGN:
1403
+ this._err(ERR.abruptClosingOfEmptyComment);
1404
+ this.state = State.DATA;
1405
+ this.emitCurrentComment(token);
1406
+ break;
1407
+ case CODE_POINTS.EOF:
1408
+ this._err(ERR.eofInComment);
1409
+ this.emitCurrentComment(token);
1410
+ this._emitEOFToken();
1411
+ break;
1412
+ default:
1413
+ token.data += "-";
1414
+ this.state = State.COMMENT;
1415
+ this._stateComment(cp);
1416
+ }
1417
+ }
1418
+ _stateComment(cp) {
1419
+ const token = this.currentToken;
1420
+ switch (cp) {
1421
+ case CODE_POINTS.HYPHEN_MINUS:
1422
+ this.state = State.COMMENT_END_DASH;
1423
+ break;
1424
+ case CODE_POINTS.LESS_THAN_SIGN:
1425
+ token.data += "<";
1426
+ this.state = State.COMMENT_LESS_THAN_SIGN;
1427
+ break;
1428
+ case CODE_POINTS.NULL:
1429
+ this._err(ERR.unexpectedNullCharacter);
1430
+ token.data += "�";
1431
+ break;
1432
+ case CODE_POINTS.EOF:
1433
+ this._err(ERR.eofInComment);
1434
+ this.emitCurrentComment(token);
1435
+ this._emitEOFToken();
1436
+ break;
1437
+ default: token.data += String.fromCodePoint(cp);
1438
+ }
1439
+ }
1440
+ _stateCommentLessThanSign(cp) {
1441
+ const token = this.currentToken;
1442
+ switch (cp) {
1443
+ case CODE_POINTS.EXCLAMATION_MARK:
1444
+ token.data += "!";
1445
+ this.state = State.COMMENT_LESS_THAN_SIGN_BANG;
1446
+ break;
1447
+ case CODE_POINTS.LESS_THAN_SIGN:
1448
+ token.data += "<";
1449
+ break;
1450
+ default:
1451
+ this.state = State.COMMENT;
1452
+ this._stateComment(cp);
1453
+ }
1454
+ }
1455
+ _stateCommentLessThanSignBang(cp) {
1456
+ if (cp === CODE_POINTS.HYPHEN_MINUS) this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH;
1457
+ else {
1458
+ this.state = State.COMMENT;
1459
+ this._stateComment(cp);
1460
+ }
1461
+ }
1462
+ _stateCommentLessThanSignBangDash(cp) {
1463
+ if (cp === CODE_POINTS.HYPHEN_MINUS) this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH;
1464
+ else {
1465
+ this.state = State.COMMENT_END_DASH;
1466
+ this._stateCommentEndDash(cp);
1467
+ }
1468
+ }
1469
+ _stateCommentLessThanSignBangDashDash(cp) {
1470
+ if (cp !== CODE_POINTS.GREATER_THAN_SIGN && cp !== CODE_POINTS.EOF) this._err(ERR.nestedComment);
1471
+ this.state = State.COMMENT_END;
1472
+ this._stateCommentEnd(cp);
1473
+ }
1474
+ _stateCommentEndDash(cp) {
1475
+ const token = this.currentToken;
1476
+ switch (cp) {
1477
+ case CODE_POINTS.HYPHEN_MINUS:
1478
+ this.state = State.COMMENT_END;
1479
+ break;
1480
+ case CODE_POINTS.EOF:
1481
+ this._err(ERR.eofInComment);
1482
+ this.emitCurrentComment(token);
1483
+ this._emitEOFToken();
1484
+ break;
1485
+ default:
1486
+ token.data += "-";
1487
+ this.state = State.COMMENT;
1488
+ this._stateComment(cp);
1489
+ }
1490
+ }
1491
+ _stateCommentEnd(cp) {
1492
+ const token = this.currentToken;
1493
+ switch (cp) {
1494
+ case CODE_POINTS.GREATER_THAN_SIGN:
1495
+ this.state = State.DATA;
1496
+ this.emitCurrentComment(token);
1497
+ break;
1498
+ case CODE_POINTS.EXCLAMATION_MARK:
1499
+ this.state = State.COMMENT_END_BANG;
1500
+ break;
1501
+ case CODE_POINTS.HYPHEN_MINUS:
1502
+ token.data += "-";
1503
+ break;
1504
+ case CODE_POINTS.EOF:
1505
+ this._err(ERR.eofInComment);
1506
+ this.emitCurrentComment(token);
1507
+ this._emitEOFToken();
1508
+ break;
1509
+ default:
1510
+ token.data += "--";
1511
+ this.state = State.COMMENT;
1512
+ this._stateComment(cp);
1513
+ }
1514
+ }
1515
+ _stateCommentEndBang(cp) {
1516
+ const token = this.currentToken;
1517
+ switch (cp) {
1518
+ case CODE_POINTS.HYPHEN_MINUS:
1519
+ token.data += "--!";
1520
+ this.state = State.COMMENT_END_DASH;
1521
+ break;
1522
+ case CODE_POINTS.GREATER_THAN_SIGN:
1523
+ this._err(ERR.incorrectlyClosedComment);
1524
+ this.state = State.DATA;
1525
+ this.emitCurrentComment(token);
1526
+ break;
1527
+ case CODE_POINTS.EOF:
1528
+ this._err(ERR.eofInComment);
1529
+ this.emitCurrentComment(token);
1530
+ this._emitEOFToken();
1531
+ break;
1532
+ default:
1533
+ token.data += "--!";
1534
+ this.state = State.COMMENT;
1535
+ this._stateComment(cp);
1536
+ }
1537
+ }
1538
+ _stateDoctype(cp) {
1539
+ switch (cp) {
1540
+ case CODE_POINTS.SPACE:
1541
+ case CODE_POINTS.LINE_FEED:
1542
+ case CODE_POINTS.TABULATION:
1543
+ case CODE_POINTS.FORM_FEED:
1544
+ this.state = State.BEFORE_DOCTYPE_NAME;
1545
+ break;
1546
+ case CODE_POINTS.GREATER_THAN_SIGN:
1547
+ this.state = State.BEFORE_DOCTYPE_NAME;
1548
+ this._stateBeforeDoctypeName(cp);
1549
+ break;
1550
+ case CODE_POINTS.EOF: {
1551
+ this._err(ERR.eofInDoctype);
1552
+ this._createDoctypeToken(null);
1553
+ const token = this.currentToken;
1554
+ token.forceQuirks = true;
1555
+ this.emitCurrentDoctype(token);
1556
+ this._emitEOFToken();
1557
+ break;
1558
+ }
1559
+ default:
1560
+ this._err(ERR.missingWhitespaceBeforeDoctypeName);
1561
+ this.state = State.BEFORE_DOCTYPE_NAME;
1562
+ this._stateBeforeDoctypeName(cp);
1563
+ }
1564
+ }
1565
+ _stateBeforeDoctypeName(cp) {
1566
+ if (isAsciiUpper(cp)) {
1567
+ this._createDoctypeToken(String.fromCharCode(toAsciiLower(cp)));
1568
+ this.state = State.DOCTYPE_NAME;
1569
+ } else switch (cp) {
1570
+ case CODE_POINTS.SPACE:
1571
+ case CODE_POINTS.LINE_FEED:
1572
+ case CODE_POINTS.TABULATION:
1573
+ case CODE_POINTS.FORM_FEED: break;
1574
+ case CODE_POINTS.NULL:
1575
+ this._err(ERR.unexpectedNullCharacter);
1576
+ this._createDoctypeToken("�");
1577
+ this.state = State.DOCTYPE_NAME;
1578
+ break;
1579
+ case CODE_POINTS.GREATER_THAN_SIGN: {
1580
+ this._err(ERR.missingDoctypeName);
1581
+ this._createDoctypeToken(null);
1582
+ const token = this.currentToken;
1583
+ token.forceQuirks = true;
1584
+ this.emitCurrentDoctype(token);
1585
+ this.state = State.DATA;
1586
+ break;
1587
+ }
1588
+ case CODE_POINTS.EOF: {
1589
+ this._err(ERR.eofInDoctype);
1590
+ this._createDoctypeToken(null);
1591
+ const token = this.currentToken;
1592
+ token.forceQuirks = true;
1593
+ this.emitCurrentDoctype(token);
1594
+ this._emitEOFToken();
1595
+ break;
1596
+ }
1597
+ default:
1598
+ this._createDoctypeToken(String.fromCodePoint(cp));
1599
+ this.state = State.DOCTYPE_NAME;
1600
+ }
1601
+ }
1602
+ _stateDoctypeName(cp) {
1603
+ const token = this.currentToken;
1604
+ switch (cp) {
1605
+ case CODE_POINTS.SPACE:
1606
+ case CODE_POINTS.LINE_FEED:
1607
+ case CODE_POINTS.TABULATION:
1608
+ case CODE_POINTS.FORM_FEED:
1609
+ this.state = State.AFTER_DOCTYPE_NAME;
1610
+ break;
1611
+ case CODE_POINTS.GREATER_THAN_SIGN:
1612
+ this.state = State.DATA;
1613
+ this.emitCurrentDoctype(token);
1614
+ break;
1615
+ case CODE_POINTS.NULL:
1616
+ this._err(ERR.unexpectedNullCharacter);
1617
+ token.name += "�";
1618
+ break;
1619
+ case CODE_POINTS.EOF:
1620
+ this._err(ERR.eofInDoctype);
1621
+ token.forceQuirks = true;
1622
+ this.emitCurrentDoctype(token);
1623
+ this._emitEOFToken();
1624
+ break;
1625
+ default: token.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);
1626
+ }
1627
+ }
1628
+ _stateAfterDoctypeName(cp) {
1629
+ const token = this.currentToken;
1630
+ switch (cp) {
1631
+ case CODE_POINTS.SPACE:
1632
+ case CODE_POINTS.LINE_FEED:
1633
+ case CODE_POINTS.TABULATION:
1634
+ case CODE_POINTS.FORM_FEED: break;
1635
+ case CODE_POINTS.GREATER_THAN_SIGN:
1636
+ this.state = State.DATA;
1637
+ this.emitCurrentDoctype(token);
1638
+ break;
1639
+ case CODE_POINTS.EOF:
1640
+ this._err(ERR.eofInDoctype);
1641
+ token.forceQuirks = true;
1642
+ this.emitCurrentDoctype(token);
1643
+ this._emitEOFToken();
1644
+ break;
1645
+ default: if (this._consumeSequenceIfMatch(SEQUENCES.PUBLIC, false)) this.state = State.AFTER_DOCTYPE_PUBLIC_KEYWORD;
1646
+ else if (this._consumeSequenceIfMatch(SEQUENCES.SYSTEM, false)) this.state = State.AFTER_DOCTYPE_SYSTEM_KEYWORD;
1647
+ else if (!this._ensureHibernation()) {
1648
+ this._err(ERR.invalidCharacterSequenceAfterDoctypeName);
1649
+ token.forceQuirks = true;
1650
+ this.state = State.BOGUS_DOCTYPE;
1651
+ this._stateBogusDoctype(cp);
1652
+ }
1653
+ }
1654
+ }
1655
+ _stateAfterDoctypePublicKeyword(cp) {
1656
+ const token = this.currentToken;
1657
+ switch (cp) {
1658
+ case CODE_POINTS.SPACE:
1659
+ case CODE_POINTS.LINE_FEED:
1660
+ case CODE_POINTS.TABULATION:
1661
+ case CODE_POINTS.FORM_FEED:
1662
+ this.state = State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;
1663
+ break;
1664
+ case CODE_POINTS.QUOTATION_MARK:
1665
+ this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword);
1666
+ token.publicId = "";
1667
+ this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
1668
+ break;
1669
+ case CODE_POINTS.APOSTROPHE:
1670
+ this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword);
1671
+ token.publicId = "";
1672
+ this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
1673
+ break;
1674
+ case CODE_POINTS.GREATER_THAN_SIGN:
1675
+ this._err(ERR.missingDoctypePublicIdentifier);
1676
+ token.forceQuirks = true;
1677
+ this.state = State.DATA;
1678
+ this.emitCurrentDoctype(token);
1679
+ break;
1680
+ case CODE_POINTS.EOF:
1681
+ this._err(ERR.eofInDoctype);
1682
+ token.forceQuirks = true;
1683
+ this.emitCurrentDoctype(token);
1684
+ this._emitEOFToken();
1685
+ break;
1686
+ default:
1687
+ this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier);
1688
+ token.forceQuirks = true;
1689
+ this.state = State.BOGUS_DOCTYPE;
1690
+ this._stateBogusDoctype(cp);
1691
+ }
1692
+ }
1693
+ _stateBeforeDoctypePublicIdentifier(cp) {
1694
+ const token = this.currentToken;
1695
+ switch (cp) {
1696
+ case CODE_POINTS.SPACE:
1697
+ case CODE_POINTS.LINE_FEED:
1698
+ case CODE_POINTS.TABULATION:
1699
+ case CODE_POINTS.FORM_FEED: break;
1700
+ case CODE_POINTS.QUOTATION_MARK:
1701
+ token.publicId = "";
1702
+ this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
1703
+ break;
1704
+ case CODE_POINTS.APOSTROPHE:
1705
+ token.publicId = "";
1706
+ this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
1707
+ break;
1708
+ case CODE_POINTS.GREATER_THAN_SIGN:
1709
+ this._err(ERR.missingDoctypePublicIdentifier);
1710
+ token.forceQuirks = true;
1711
+ this.state = State.DATA;
1712
+ this.emitCurrentDoctype(token);
1713
+ break;
1714
+ case CODE_POINTS.EOF:
1715
+ this._err(ERR.eofInDoctype);
1716
+ token.forceQuirks = true;
1717
+ this.emitCurrentDoctype(token);
1718
+ this._emitEOFToken();
1719
+ break;
1720
+ default:
1721
+ this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier);
1722
+ token.forceQuirks = true;
1723
+ this.state = State.BOGUS_DOCTYPE;
1724
+ this._stateBogusDoctype(cp);
1725
+ }
1726
+ }
1727
+ _stateDoctypePublicIdentifierDoubleQuoted(cp) {
1728
+ const token = this.currentToken;
1729
+ switch (cp) {
1730
+ case CODE_POINTS.QUOTATION_MARK:
1731
+ this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
1732
+ break;
1733
+ case CODE_POINTS.NULL:
1734
+ this._err(ERR.unexpectedNullCharacter);
1735
+ token.publicId += "�";
1736
+ break;
1737
+ case CODE_POINTS.GREATER_THAN_SIGN:
1738
+ this._err(ERR.abruptDoctypePublicIdentifier);
1739
+ token.forceQuirks = true;
1740
+ this.emitCurrentDoctype(token);
1741
+ this.state = State.DATA;
1742
+ break;
1743
+ case CODE_POINTS.EOF:
1744
+ this._err(ERR.eofInDoctype);
1745
+ token.forceQuirks = true;
1746
+ this.emitCurrentDoctype(token);
1747
+ this._emitEOFToken();
1748
+ break;
1749
+ default: token.publicId += String.fromCodePoint(cp);
1750
+ }
1751
+ }
1752
+ _stateDoctypePublicIdentifierSingleQuoted(cp) {
1753
+ const token = this.currentToken;
1754
+ switch (cp) {
1755
+ case CODE_POINTS.APOSTROPHE:
1756
+ this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
1757
+ break;
1758
+ case CODE_POINTS.NULL:
1759
+ this._err(ERR.unexpectedNullCharacter);
1760
+ token.publicId += "�";
1761
+ break;
1762
+ case CODE_POINTS.GREATER_THAN_SIGN:
1763
+ this._err(ERR.abruptDoctypePublicIdentifier);
1764
+ token.forceQuirks = true;
1765
+ this.emitCurrentDoctype(token);
1766
+ this.state = State.DATA;
1767
+ break;
1768
+ case CODE_POINTS.EOF:
1769
+ this._err(ERR.eofInDoctype);
1770
+ token.forceQuirks = true;
1771
+ this.emitCurrentDoctype(token);
1772
+ this._emitEOFToken();
1773
+ break;
1774
+ default: token.publicId += String.fromCodePoint(cp);
1775
+ }
1776
+ }
1777
+ _stateAfterDoctypePublicIdentifier(cp) {
1778
+ const token = this.currentToken;
1779
+ switch (cp) {
1780
+ case CODE_POINTS.SPACE:
1781
+ case CODE_POINTS.LINE_FEED:
1782
+ case CODE_POINTS.TABULATION:
1783
+ case CODE_POINTS.FORM_FEED:
1784
+ this.state = State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;
1785
+ break;
1786
+ case CODE_POINTS.GREATER_THAN_SIGN:
1787
+ this.state = State.DATA;
1788
+ this.emitCurrentDoctype(token);
1789
+ break;
1790
+ case CODE_POINTS.QUOTATION_MARK:
1791
+ this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);
1792
+ token.systemId = "";
1793
+ this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
1794
+ break;
1795
+ case CODE_POINTS.APOSTROPHE:
1796
+ this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);
1797
+ token.systemId = "";
1798
+ this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
1799
+ break;
1800
+ case CODE_POINTS.EOF:
1801
+ this._err(ERR.eofInDoctype);
1802
+ token.forceQuirks = true;
1803
+ this.emitCurrentDoctype(token);
1804
+ this._emitEOFToken();
1805
+ break;
1806
+ default:
1807
+ this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);
1808
+ token.forceQuirks = true;
1809
+ this.state = State.BOGUS_DOCTYPE;
1810
+ this._stateBogusDoctype(cp);
1811
+ }
1812
+ }
1813
+ _stateBetweenDoctypePublicAndSystemIdentifiers(cp) {
1814
+ const token = this.currentToken;
1815
+ switch (cp) {
1816
+ case CODE_POINTS.SPACE:
1817
+ case CODE_POINTS.LINE_FEED:
1818
+ case CODE_POINTS.TABULATION:
1819
+ case CODE_POINTS.FORM_FEED: break;
1820
+ case CODE_POINTS.GREATER_THAN_SIGN:
1821
+ this.emitCurrentDoctype(token);
1822
+ this.state = State.DATA;
1823
+ break;
1824
+ case CODE_POINTS.QUOTATION_MARK:
1825
+ token.systemId = "";
1826
+ this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
1827
+ break;
1828
+ case CODE_POINTS.APOSTROPHE:
1829
+ token.systemId = "";
1830
+ this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
1831
+ break;
1832
+ case CODE_POINTS.EOF:
1833
+ this._err(ERR.eofInDoctype);
1834
+ token.forceQuirks = true;
1835
+ this.emitCurrentDoctype(token);
1836
+ this._emitEOFToken();
1837
+ break;
1838
+ default:
1839
+ this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);
1840
+ token.forceQuirks = true;
1841
+ this.state = State.BOGUS_DOCTYPE;
1842
+ this._stateBogusDoctype(cp);
1843
+ }
1844
+ }
1845
+ _stateAfterDoctypeSystemKeyword(cp) {
1846
+ const token = this.currentToken;
1847
+ switch (cp) {
1848
+ case CODE_POINTS.SPACE:
1849
+ case CODE_POINTS.LINE_FEED:
1850
+ case CODE_POINTS.TABULATION:
1851
+ case CODE_POINTS.FORM_FEED:
1852
+ this.state = State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;
1853
+ break;
1854
+ case CODE_POINTS.QUOTATION_MARK:
1855
+ this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword);
1856
+ token.systemId = "";
1857
+ this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
1858
+ break;
1859
+ case CODE_POINTS.APOSTROPHE:
1860
+ this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword);
1861
+ token.systemId = "";
1862
+ this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
1863
+ break;
1864
+ case CODE_POINTS.GREATER_THAN_SIGN:
1865
+ this._err(ERR.missingDoctypeSystemIdentifier);
1866
+ token.forceQuirks = true;
1867
+ this.state = State.DATA;
1868
+ this.emitCurrentDoctype(token);
1869
+ break;
1870
+ case CODE_POINTS.EOF:
1871
+ this._err(ERR.eofInDoctype);
1872
+ token.forceQuirks = true;
1873
+ this.emitCurrentDoctype(token);
1874
+ this._emitEOFToken();
1875
+ break;
1876
+ default:
1877
+ this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);
1878
+ token.forceQuirks = true;
1879
+ this.state = State.BOGUS_DOCTYPE;
1880
+ this._stateBogusDoctype(cp);
1881
+ }
1882
+ }
1883
+ _stateBeforeDoctypeSystemIdentifier(cp) {
1884
+ const token = this.currentToken;
1885
+ switch (cp) {
1886
+ case CODE_POINTS.SPACE:
1887
+ case CODE_POINTS.LINE_FEED:
1888
+ case CODE_POINTS.TABULATION:
1889
+ case CODE_POINTS.FORM_FEED: break;
1890
+ case CODE_POINTS.QUOTATION_MARK:
1891
+ token.systemId = "";
1892
+ this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
1893
+ break;
1894
+ case CODE_POINTS.APOSTROPHE:
1895
+ token.systemId = "";
1896
+ this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
1897
+ break;
1898
+ case CODE_POINTS.GREATER_THAN_SIGN:
1899
+ this._err(ERR.missingDoctypeSystemIdentifier);
1900
+ token.forceQuirks = true;
1901
+ this.state = State.DATA;
1902
+ this.emitCurrentDoctype(token);
1903
+ break;
1904
+ case CODE_POINTS.EOF:
1905
+ this._err(ERR.eofInDoctype);
1906
+ token.forceQuirks = true;
1907
+ this.emitCurrentDoctype(token);
1908
+ this._emitEOFToken();
1909
+ break;
1910
+ default:
1911
+ this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);
1912
+ token.forceQuirks = true;
1913
+ this.state = State.BOGUS_DOCTYPE;
1914
+ this._stateBogusDoctype(cp);
1915
+ }
1916
+ }
1917
+ _stateDoctypeSystemIdentifierDoubleQuoted(cp) {
1918
+ const token = this.currentToken;
1919
+ switch (cp) {
1920
+ case CODE_POINTS.QUOTATION_MARK:
1921
+ this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
1922
+ break;
1923
+ case CODE_POINTS.NULL:
1924
+ this._err(ERR.unexpectedNullCharacter);
1925
+ token.systemId += "�";
1926
+ break;
1927
+ case CODE_POINTS.GREATER_THAN_SIGN:
1928
+ this._err(ERR.abruptDoctypeSystemIdentifier);
1929
+ token.forceQuirks = true;
1930
+ this.emitCurrentDoctype(token);
1931
+ this.state = State.DATA;
1932
+ break;
1933
+ case CODE_POINTS.EOF:
1934
+ this._err(ERR.eofInDoctype);
1935
+ token.forceQuirks = true;
1936
+ this.emitCurrentDoctype(token);
1937
+ this._emitEOFToken();
1938
+ break;
1939
+ default: token.systemId += String.fromCodePoint(cp);
1940
+ }
1941
+ }
1942
+ _stateDoctypeSystemIdentifierSingleQuoted(cp) {
1943
+ const token = this.currentToken;
1944
+ switch (cp) {
1945
+ case CODE_POINTS.APOSTROPHE:
1946
+ this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
1947
+ break;
1948
+ case CODE_POINTS.NULL:
1949
+ this._err(ERR.unexpectedNullCharacter);
1950
+ token.systemId += "�";
1951
+ break;
1952
+ case CODE_POINTS.GREATER_THAN_SIGN:
1953
+ this._err(ERR.abruptDoctypeSystemIdentifier);
1954
+ token.forceQuirks = true;
1955
+ this.emitCurrentDoctype(token);
1956
+ this.state = State.DATA;
1957
+ break;
1958
+ case CODE_POINTS.EOF:
1959
+ this._err(ERR.eofInDoctype);
1960
+ token.forceQuirks = true;
1961
+ this.emitCurrentDoctype(token);
1962
+ this._emitEOFToken();
1963
+ break;
1964
+ default: token.systemId += String.fromCodePoint(cp);
1965
+ }
1966
+ }
1967
+ _stateAfterDoctypeSystemIdentifier(cp) {
1968
+ const token = this.currentToken;
1969
+ switch (cp) {
1970
+ case CODE_POINTS.SPACE:
1971
+ case CODE_POINTS.LINE_FEED:
1972
+ case CODE_POINTS.TABULATION:
1973
+ case CODE_POINTS.FORM_FEED: break;
1974
+ case CODE_POINTS.GREATER_THAN_SIGN:
1975
+ this.emitCurrentDoctype(token);
1976
+ this.state = State.DATA;
1977
+ break;
1978
+ case CODE_POINTS.EOF:
1979
+ this._err(ERR.eofInDoctype);
1980
+ token.forceQuirks = true;
1981
+ this.emitCurrentDoctype(token);
1982
+ this._emitEOFToken();
1983
+ break;
1984
+ default:
1985
+ this._err(ERR.unexpectedCharacterAfterDoctypeSystemIdentifier);
1986
+ this.state = State.BOGUS_DOCTYPE;
1987
+ this._stateBogusDoctype(cp);
1988
+ }
1989
+ }
1990
+ _stateBogusDoctype(cp) {
1991
+ const token = this.currentToken;
1992
+ switch (cp) {
1993
+ case CODE_POINTS.GREATER_THAN_SIGN:
1994
+ this.emitCurrentDoctype(token);
1995
+ this.state = State.DATA;
1996
+ break;
1997
+ case CODE_POINTS.NULL:
1998
+ this._err(ERR.unexpectedNullCharacter);
1999
+ break;
2000
+ case CODE_POINTS.EOF:
2001
+ this.emitCurrentDoctype(token);
2002
+ this._emitEOFToken();
2003
+ }
2004
+ }
2005
+ _stateCdataSection(cp) {
2006
+ switch (cp) {
2007
+ case CODE_POINTS.RIGHT_SQUARE_BRACKET:
2008
+ this.state = State.CDATA_SECTION_BRACKET;
2009
+ break;
2010
+ case CODE_POINTS.EOF:
2011
+ this._err(ERR.eofInCdata);
2012
+ this._emitEOFToken();
2013
+ break;
2014
+ default: this._emitCodePoint(cp);
2015
+ }
2016
+ }
2017
+ _stateCdataSectionBracket(cp) {
2018
+ if (cp === CODE_POINTS.RIGHT_SQUARE_BRACKET) this.state = State.CDATA_SECTION_END;
2019
+ else {
2020
+ this._emitChars("]");
2021
+ this.state = State.CDATA_SECTION;
2022
+ this._stateCdataSection(cp);
2023
+ }
2024
+ }
2025
+ _stateCdataSectionEnd(cp) {
2026
+ switch (cp) {
2027
+ case CODE_POINTS.GREATER_THAN_SIGN:
2028
+ this.state = State.DATA;
2029
+ break;
2030
+ case CODE_POINTS.RIGHT_SQUARE_BRACKET:
2031
+ this._emitChars("]");
2032
+ break;
2033
+ default:
2034
+ this._emitChars("]]");
2035
+ this.state = State.CDATA_SECTION;
2036
+ this._stateCdataSection(cp);
2037
+ }
2038
+ }
2039
+ _stateCharacterReference() {
2040
+ let length = this.entityDecoder.write(this.preprocessor.html, this.preprocessor.pos);
2041
+ if (length < 0) {
2042
+ if (this.preprocessor.lastChunkWritten) length = this.entityDecoder.end();
2043
+ else {
2044
+ this.active = false;
2045
+ this.preprocessor.pos = this.preprocessor.html.length - 1;
2046
+ this.consumedAfterSnapshot = 0;
2047
+ this.preprocessor.endOfChunkHit = true;
2048
+ return;
2049
+ }
2050
+ }
2051
+ if (length === 0) {
2052
+ this.preprocessor.pos = this.entityStartPos;
2053
+ this._flushCodePointConsumedAsCharacterReference(CODE_POINTS.AMPERSAND);
2054
+ this.state = !this._isCharacterReferenceInAttribute() && isAsciiAlphaNumeric(this.preprocessor.peek(1)) ? State.AMBIGUOUS_AMPERSAND : this.returnState;
2055
+ } else this.state = this.returnState;
2056
+ }
2057
+ _stateAmbiguousAmpersand(cp) {
2058
+ if (isAsciiAlphaNumeric(cp)) this._flushCodePointConsumedAsCharacterReference(cp);
2059
+ else {
2060
+ if (cp === CODE_POINTS.SEMICOLON) this._err(ERR.unknownNamedCharacterReference);
2061
+ this.state = this.returnState;
2062
+ this._callState(cp);
2063
+ }
2064
+ }
2065
+ };
2066
+ //#endregion
2067
+ export { Tokenizer, TokenizerMode };