@easyv/biz-components 0.0.20 → 0.0.21

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 (579) hide show
  1. package/dist/_virtual/___vite-browser-external.es.js +4 -4
  2. package/dist/_virtual/__vite-browser-external.es.js +2 -2
  3. package/dist/_virtual/__vite-browser-external.es.js.map +1 -1
  4. package/dist/_virtual/_commonjs-dynamic-modules.es.js +3 -3
  5. package/dist/_virtual/_commonjsHelpers.es.js +25 -20
  6. package/dist/_virtual/_commonjsHelpers.es.js.map +1 -1
  7. package/dist/_virtual/aes.es.js +2 -2
  8. package/dist/_virtual/blowfish.es.js +2 -2
  9. package/dist/_virtual/cipher-core.es.js +2 -2
  10. package/dist/_virtual/core.es.js +2 -2
  11. package/dist/_virtual/enc-base64.es.js +2 -2
  12. package/dist/_virtual/enc-base64url.es.js +2 -2
  13. package/dist/_virtual/enc-utf16.es.js +2 -2
  14. package/dist/_virtual/evpkdf.es.js +2 -2
  15. package/dist/_virtual/format-hex.es.js +2 -2
  16. package/dist/_virtual/hmac.es.js +2 -2
  17. package/dist/_virtual/index.es.js +2 -2
  18. package/dist/_virtual/index.es2.js +2 -2
  19. package/dist/_virtual/index.es3.js +2 -2
  20. package/dist/_virtual/index.es4.js +2 -2
  21. package/dist/_virtual/index.es5.js +2 -2
  22. package/dist/_virtual/index.es6.js +2 -2
  23. package/dist/_virtual/index.es7.js +2 -2
  24. package/dist/_virtual/jsx-runtime.es.js +2 -2
  25. package/dist/_virtual/lib-typedarrays.es.js +2 -2
  26. package/dist/_virtual/md5.es.js +2 -2
  27. package/dist/_virtual/mode-cfb.es.js +2 -2
  28. package/dist/_virtual/mode-ctr-gladman.es.js +2 -2
  29. package/dist/_virtual/mode-ctr.es.js +2 -2
  30. package/dist/_virtual/mode-ecb.es.js +2 -2
  31. package/dist/_virtual/mode-ofb.es.js +2 -2
  32. package/dist/_virtual/pad-ansix923.es.js +2 -2
  33. package/dist/_virtual/pad-iso10126.es.js +2 -2
  34. package/dist/_virtual/pad-iso97971.es.js +2 -2
  35. package/dist/_virtual/pad-nopadding.es.js +2 -2
  36. package/dist/_virtual/pad-zeropadding.es.js +2 -2
  37. package/dist/_virtual/pbkdf2.es.js +2 -2
  38. package/dist/_virtual/rabbit-legacy.es.js +2 -2
  39. package/dist/_virtual/rabbit.es.js +2 -2
  40. package/dist/_virtual/rc4.es.js +2 -2
  41. package/dist/_virtual/react-is.development.es.js +2 -2
  42. package/dist/_virtual/react-is.production.min.es.js +2 -2
  43. package/dist/_virtual/react-jsx-runtime.development.es.js +2 -2
  44. package/dist/_virtual/react-jsx-runtime.production.min.es.js +2 -2
  45. package/dist/_virtual/ripemd160.es.js +2 -2
  46. package/dist/_virtual/sha1.es.js +2 -2
  47. package/dist/_virtual/sha224.es.js +2 -2
  48. package/dist/_virtual/sha256.es.js +2 -2
  49. package/dist/_virtual/sha3.es.js +2 -2
  50. package/dist/_virtual/sha384.es.js +2 -2
  51. package/dist/_virtual/sha512.es.js +2 -2
  52. package/dist/_virtual/tripledes.es.js +2 -2
  53. package/dist/_virtual/utilities.es.js +2 -2
  54. package/dist/_virtual/x64-core.es.js +2 -2
  55. package/dist/components/AiMessageRender/AiMessageRender.es.js +62 -46
  56. package/dist/components/AiMessageRender/AiMessageRender.es.js.map +1 -1
  57. package/dist/components/AiMessageRender/index.less.es.js +2 -191
  58. package/dist/components/AiMessageRender/index.less.es.js.map +1 -1
  59. package/dist/components/ScrollController/ScrollController.es.js +57 -34
  60. package/dist/components/ScrollController/ScrollController.es.js.map +1 -1
  61. package/dist/components/ShadowDom/ShadowDom.es.js +28 -20
  62. package/dist/components/ShadowDom/ShadowDom.es.js.map +1 -1
  63. package/dist/components/VoiceAnimation/VoiceAnimation.es.js +22 -15
  64. package/dist/components/VoiceAnimation/VoiceAnimation.es.js.map +1 -1
  65. package/dist/hooks/useDivAutoScroll.es.js +47 -24
  66. package/dist/hooks/useDivAutoScroll.es.js.map +1 -1
  67. package/dist/hooks/useXunFeiSteamVoiceManager.es.js +12 -10
  68. package/dist/hooks/useXunFeiSteamVoiceManager.es.js.map +1 -1
  69. package/dist/index.es.js +19 -19
  70. package/dist/node_modules/.pnpm/@easyv_react-icons@6.3.0/node_modules/@easyv/react-icons/dist/index.esm.es.js +5117 -1099
  71. package/dist/node_modules/.pnpm/@easyv_react-icons@6.3.0/node_modules/@easyv/react-icons/dist/index.esm.es.js.map +1 -1
  72. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.es.js +54 -48
  73. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +1 -1
  74. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.es.js +8 -8
  75. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.es.js.map +1 -1
  76. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.es.js +103 -74
  77. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +1 -1
  78. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.es.js +20 -11
  79. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.es.js.map +1 -1
  80. package/dist/node_modules/.pnpm/bail@2.0.2/node_modules/bail/index.es.js +5 -4
  81. package/dist/node_modules/.pnpm/bail@2.0.2/node_modules/bail/index.es.js.map +1 -1
  82. package/dist/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.es.js +12 -8
  83. package/dist/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.es.js.map +1 -1
  84. package/dist/node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.es.js +37 -27
  85. package/dist/node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.es.js.map +1 -1
  86. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.es.js +49 -28
  87. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.es.js.map +1 -1
  88. package/dist/node_modules/.pnpm/co-web-worker@1.0.1/node_modules/co-web-worker/index.es.js +11 -11
  89. package/dist/node_modules/.pnpm/co-web-worker@1.0.1/node_modules/co-web-worker/index.es.js.map +1 -1
  90. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.es.js +6 -5
  91. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.es.js.map +1 -1
  92. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.es.js +145 -53
  93. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.es.js.map +1 -1
  94. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.es.js +125 -60
  95. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.es.js.map +1 -1
  96. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.es.js +244 -140
  97. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.es.js.map +1 -1
  98. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.es.js +232 -127
  99. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.es.js.map +1 -1
  100. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.es.js +74 -43
  101. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.es.js.map +1 -1
  102. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.es.js +80 -45
  103. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.es.js.map +1 -1
  104. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.es.js +58 -36
  105. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.es.js.map +1 -1
  106. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.es.js +55 -29
  107. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.es.js.map +1 -1
  108. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.es.js +32 -21
  109. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.es.js.map +1 -1
  110. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.es.js +56 -29
  111. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.es.js.map +1 -1
  112. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.es.js +48 -46
  113. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.es.js.map +1 -1
  114. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.es.js +44 -23
  115. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.es.js.map +1 -1
  116. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.es.js +158 -47
  117. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.es.js.map +1 -1
  118. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.es.js +49 -29
  119. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.es.js.map +1 -1
  120. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.es.js +72 -33
  121. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.es.js.map +1 -1
  122. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.es.js +39 -23
  123. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.es.js.map +1 -1
  124. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.es.js +30 -22
  125. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.es.js.map +1 -1
  126. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.es.js +37 -21
  127. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.es.js.map +1 -1
  128. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.es.js +31 -20
  129. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.es.js.map +1 -1
  130. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.es.js +27 -20
  131. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.es.js.map +1 -1
  132. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.es.js +26 -18
  133. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.es.js.map +1 -1
  134. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.es.js +20 -14
  135. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.es.js.map +1 -1
  136. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.es.js +31 -21
  137. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.es.js.map +1 -1
  138. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.es.js +61 -32
  139. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.es.js.map +1 -1
  140. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.es.js +119 -59
  141. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.es.js.map +1 -1
  142. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.es.js +122 -61
  143. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.es.js.map +1 -1
  144. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.es.js +67 -40
  145. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.es.js.map +1 -1
  146. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.es.js +135 -49
  147. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.es.js.map +1 -1
  148. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.es.js +75 -30
  149. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.es.js.map +1 -1
  150. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.es.js +32 -19
  151. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.es.js.map +1 -1
  152. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.es.js +107 -40
  153. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.es.js.map +1 -1
  154. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.es.js +167 -77
  155. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.es.js.map +1 -1
  156. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.es.js +42 -28
  157. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.es.js.map +1 -1
  158. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.es.js +268 -129
  159. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.es.js.map +1 -1
  160. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.es.js +122 -63
  161. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.es.js.map +1 -1
  162. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.es.js +52 -27
  163. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.es.js.map +1 -1
  164. package/dist/node_modules/.pnpm/decode-named-character-reference@1.1.0/node_modules/decode-named-character-reference/index.dom.es.js +12 -9
  165. package/dist/node_modules/.pnpm/decode-named-character-reference@1.1.0/node_modules/decode-named-character-reference/index.dom.es.js.map +1 -1
  166. package/dist/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.es.js +4 -4
  167. package/dist/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.es.js.map +1 -1
  168. package/dist/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.es.js +5 -4
  169. package/dist/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.es.js.map +1 -1
  170. package/dist/node_modules/.pnpm/estree-util-is-identifier-name@3.0.0/node_modules/estree-util-is-identifier-name/lib/index.es.js +8 -4
  171. package/dist/node_modules/.pnpm/estree-util-is-identifier-name@3.0.0/node_modules/estree-util-is-identifier-name/lib/index.es.js.map +1 -1
  172. package/dist/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.es.js +86 -36
  173. package/dist/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.es.js.map +1 -1
  174. package/dist/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +314 -226
  175. package/dist/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.es.js.map +1 -1
  176. package/dist/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.es.js +6 -6
  177. package/dist/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.es.js.map +1 -1
  178. package/dist/node_modules/.pnpm/html-url-attributes@3.0.1/node_modules/html-url-attributes/lib/index.es.js +2 -2
  179. package/dist/node_modules/.pnpm/html-url-attributes@3.0.1/node_modules/html-url-attributes/lib/index.es.js.map +1 -1
  180. package/dist/node_modules/.pnpm/inline-style-parser@0.2.4/node_modules/inline-style-parser/index.es.js +115 -67
  181. package/dist/node_modules/.pnpm/inline-style-parser@0.2.4/node_modules/inline-style-parser/index.es.js.map +1 -1
  182. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.es.js +7 -6
  183. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.es.js.map +1 -1
  184. package/dist/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.es.js +21 -8
  185. package/dist/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.es.js.map +1 -1
  186. package/dist/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.es.js +124 -57
  187. package/dist/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.es.js.map +1 -1
  188. package/dist/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.es.js +93 -54
  189. package/dist/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.es.js.map +1 -1
  190. package/dist/node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/lib/index.es.js +509 -371
  191. package/dist/node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/lib/index.es.js.map +1 -1
  192. package/dist/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.es.js +107 -81
  193. package/dist/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.es.js.map +1 -1
  194. package/dist/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.es.js +85 -63
  195. package/dist/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.es.js.map +1 -1
  196. package/dist/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js +26 -22
  197. package/dist/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js.map +1 -1
  198. package/dist/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.es.js +104 -82
  199. package/dist/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.es.js.map +1 -1
  200. package/dist/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.es.js +57 -38
  201. package/dist/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.es.js.map +1 -1
  202. package/dist/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.es.js +19 -19
  203. package/dist/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.es.js.map +1 -1
  204. package/dist/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.es.js +4 -4
  205. package/dist/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.es.js.map +1 -1
  206. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/footer.es.js +94 -69
  207. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/footer.es.js.map +1 -1
  208. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/blockquote.es.js +6 -5
  209. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/blockquote.es.js.map +1 -1
  210. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/break.es.js +5 -5
  211. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/break.es.js.map +1 -1
  212. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/code.es.js +18 -9
  213. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/code.es.js.map +1 -1
  214. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/delete.es.js +6 -5
  215. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/delete.es.js.map +1 -1
  216. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/emphasis.es.js +6 -5
  217. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/emphasis.es.js.map +1 -1
  218. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.es.js +28 -15
  219. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.es.js.map +1 -1
  220. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/heading.es.js +7 -6
  221. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/heading.es.js.map +1 -1
  222. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/html.es.js +7 -5
  223. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/html.es.js.map +1 -1
  224. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image-reference.es.js +16 -11
  225. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image-reference.es.js.map +1 -1
  226. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image.es.js +13 -7
  227. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image.es.js.map +1 -1
  228. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/index.es.js +54 -53
  229. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/index.es.js.map +1 -1
  230. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/inline-code.es.js +8 -7
  231. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/inline-code.es.js.map +1 -1
  232. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link-reference.es.js +18 -13
  233. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link-reference.es.js.map +1 -1
  234. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link.es.js +12 -9
  235. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link.es.js.map +1 -1
  236. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list-item.es.js +53 -31
  237. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list-item.es.js.map +1 -1
  238. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list.es.js +18 -13
  239. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list.es.js.map +1 -1
  240. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/paragraph.es.js +6 -5
  241. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/paragraph.es.js.map +1 -1
  242. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/root.es.js +5 -4
  243. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/root.es.js.map +1 -1
  244. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/strong.es.js +6 -5
  245. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/strong.es.js.map +1 -1
  246. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-cell.es.js +6 -5
  247. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-cell.es.js.map +1 -1
  248. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-row.es.js +27 -13
  249. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-row.es.js.map +1 -1
  250. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table.es.js +23 -16
  251. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table.es.js.map +1 -1
  252. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/text.es.js +6 -5
  253. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/text.es.js.map +1 -1
  254. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.es.js +5 -4
  255. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.es.js.map +1 -1
  256. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/index.es.js +12 -7
  257. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/index.es.js.map +1 -1
  258. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/revert.es.js +26 -10
  259. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/revert.es.js.map +1 -1
  260. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/state.es.js +123 -79
  261. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/state.es.js.map +1 -1
  262. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js +13 -10
  263. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js.map +1 -1
  264. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.es.js +10 -10
  265. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.es.js.map +1 -1
  266. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.es.js +44 -32
  267. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.es.js.map +1 -1
  268. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js +53 -29
  269. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js.map +1 -1
  270. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js +37 -26
  271. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js.map +1 -1
  272. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js +35 -24
  273. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js.map +1 -1
  274. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.es.js +5 -5
  275. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.es.js.map +1 -1
  276. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js +31 -18
  277. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js.map +1 -1
  278. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.es.js +54 -28
  279. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.es.js.map +1 -1
  280. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.es.js +41 -41
  281. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.es.js.map +1 -1
  282. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js +25 -15
  283. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js.map +1 -1
  284. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js +31 -18
  285. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js.map +1 -1
  286. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.es.js +74 -41
  287. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.es.js.map +1 -1
  288. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js +27 -17
  289. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js.map +1 -1
  290. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.es.js +34 -24
  291. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.es.js.map +1 -1
  292. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js +8 -4
  293. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js.map +1 -1
  294. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.es.js +8 -6
  295. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.es.js.map +1 -1
  296. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js +37 -26
  297. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js.map +1 -1
  298. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.es.js +3 -3
  299. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.es.js.map +1 -1
  300. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js +6 -6
  301. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js.map +1 -1
  302. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js +7 -6
  303. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js.map +1 -1
  304. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js +15 -11
  305. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js.map +1 -1
  306. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js +7 -6
  307. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js.map +1 -1
  308. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js +7 -6
  309. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js.map +1 -1
  310. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js +7 -6
  311. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js.map +1 -1
  312. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js +7 -6
  313. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js.map +1 -1
  314. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js +7 -6
  315. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js.map +1 -1
  316. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js +7 -6
  317. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js.map +1 -1
  318. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js +7 -6
  319. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js.map +1 -1
  320. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js +7 -6
  321. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js.map +1 -1
  322. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.es.js +3 -3
  323. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.es.js.map +1 -1
  324. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js +36 -29
  325. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js.map +1 -1
  326. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js +8 -6
  327. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js.map +1 -1
  328. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js +15 -10
  329. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js.map +1 -1
  330. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js +14 -12
  331. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js.map +1 -1
  332. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js +17 -11
  333. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js.map +1 -1
  334. package/dist/node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.es.js +31 -22
  335. package/dist/node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.es.js.map +1 -1
  336. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.es.js +109 -57
  337. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.es.js.map +1 -1
  338. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.es.js +88 -28
  339. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.es.js.map +1 -1
  340. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.es.js +12 -12
  341. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.es.js.map +1 -1
  342. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.es.js +47 -28
  343. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.es.js.map +1 -1
  344. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.es.js +21 -10
  345. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.es.js.map +1 -1
  346. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.es.js +58 -20
  347. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.es.js.map +1 -1
  348. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.es.js +162 -70
  349. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.es.js.map +1 -1
  350. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.es.js +54 -30
  351. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.es.js.map +1 -1
  352. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.es.js +101 -30
  353. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.es.js.map +1 -1
  354. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.es.js +61 -36
  355. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.es.js.map +1 -1
  356. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.es.js +66 -52
  357. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.es.js.map +1 -1
  358. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.es.js +16 -10
  359. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.es.js.map +1 -1
  360. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.es.js +83 -34
  361. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.es.js.map +1 -1
  362. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.es.js +344 -105
  363. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.es.js.map +1 -1
  364. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.es.js +275 -68
  365. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.es.js.map +1 -1
  366. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.es.js +191 -108
  367. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.es.js.map +1 -1
  368. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.es.js +25 -14
  369. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.es.js.map +1 -1
  370. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.es.js +17 -12
  371. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.es.js.map +1 -1
  372. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.es.js +11 -8
  373. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.es.js.map +1 -1
  374. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.es.js +110 -65
  375. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.es.js.map +1 -1
  376. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.es.js +75 -37
  377. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.es.js.map +1 -1
  378. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.es.js +33 -16
  379. package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.es.js.map +1 -1
  380. package/dist/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.es.js +295 -144
  381. package/dist/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.es.js.map +1 -1
  382. package/dist/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.es.js +216 -129
  383. package/dist/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.es.js.map +1 -1
  384. package/dist/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.es.js +76 -45
  385. package/dist/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.es.js.map +1 -1
  386. package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.es.js +37 -28
  387. package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.es.js.map +1 -1
  388. package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.es.js +22 -17
  389. package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.es.js.map +1 -1
  390. package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.es.js +350 -104
  391. package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.es.js.map +1 -1
  392. package/dist/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.es.js +59 -27
  393. package/dist/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.es.js.map +1 -1
  394. package/dist/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.es.js +14 -14
  395. package/dist/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.es.js.map +1 -1
  396. package/dist/node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.es.js +83 -20
  397. package/dist/node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.es.js.map +1 -1
  398. package/dist/node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.es.js +51 -16
  399. package/dist/node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.es.js.map +1 -1
  400. package/dist/node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.es.js +19 -10
  401. package/dist/node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.es.js.map +1 -1
  402. package/dist/node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.es.js +56 -17
  403. package/dist/node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.es.js.map +1 -1
  404. package/dist/node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.es.js +18 -8
  405. package/dist/node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.es.js.map +1 -1
  406. package/dist/node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.es.js +32 -27
  407. package/dist/node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.es.js.map +1 -1
  408. package/dist/node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.es.js +32 -12
  409. package/dist/node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.es.js.map +1 -1
  410. package/dist/node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.es.js +7 -5
  411. package/dist/node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.es.js.map +1 -1
  412. package/dist/node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.es.js +32 -27
  413. package/dist/node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.es.js.map +1 -1
  414. package/dist/node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.es.js +14 -11
  415. package/dist/node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.es.js.map +1 -1
  416. package/dist/node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.es.js +16 -13
  417. package/dist/node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.es.js.map +1 -1
  418. package/dist/node_modules/.pnpm/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name/index.es.js +5 -4
  419. package/dist/node_modules/.pnpm/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name/index.es.js.map +1 -1
  420. package/dist/node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.es.js +3 -3
  421. package/dist/node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.es.js.map +1 -1
  422. package/dist/node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.es.js +11 -8
  423. package/dist/node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.es.js.map +1 -1
  424. package/dist/node_modules/.pnpm/micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri/index.es.js +37 -19
  425. package/dist/node_modules/.pnpm/micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri/index.es.js.map +1 -1
  426. package/dist/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.es.js +149 -47
  427. package/dist/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.es.js.map +1 -1
  428. package/dist/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/lib/splice-buffer.es.js +61 -42
  429. package/dist/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/lib/splice-buffer.es.js.map +1 -1
  430. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.es.js +88 -80
  431. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.es.js.map +1 -1
  432. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.es.js +247 -150
  433. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.es.js.map +1 -1
  434. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.es.js +39 -23
  435. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.es.js.map +1 -1
  436. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.es.js +151 -91
  437. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.es.js.map +1 -1
  438. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.es.js +29 -20
  439. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.es.js.map +1 -1
  440. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.es.js +116 -69
  441. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.es.js.map +1 -1
  442. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.es.js +26 -24
  443. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.es.js.map +1 -1
  444. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.es.js +6 -6
  445. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.es.js.map +1 -1
  446. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.es.js +63 -22
  447. package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.es.js.map +1 -1
  448. package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.es.js +62 -38
  449. package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.es.js.map +1 -1
  450. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.es.js +49 -35
  451. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.es.js.map +1 -1
  452. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.es.js +49 -43
  453. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.es.js.map +1 -1
  454. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.es.js +363 -241
  455. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.es.js.map +1 -1
  456. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js +14 -12
  457. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js.map +1 -1
  458. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.es.js +9 -7
  459. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.es.js.map +1 -1
  460. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.es.js +8 -4
  461. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.es.js.map +1 -1
  462. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/index.es.js +11 -10
  463. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/index.es.js.map +1 -1
  464. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/aria.es.js +39 -39
  465. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/aria.es.js.map +1 -1
  466. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/find.es.js +31 -24
  467. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/find.es.js.map +1 -1
  468. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/hast-to-react.es.js +2 -2
  469. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/hast-to-react.es.js.map +1 -1
  470. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/html.es.js +94 -94
  471. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/html.es.js.map +1 -1
  472. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/normalize.es.js +3 -3
  473. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/normalize.es.js.map +1 -1
  474. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/svg.es.js +77 -77
  475. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/svg.es.js.map +1 -1
  476. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/case-insensitive-transform.es.js +4 -4
  477. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +1 -1
  478. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/case-sensitive-transform.es.js +3 -3
  479. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +1 -1
  480. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/create.es.js +20 -14
  481. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/create.es.js.map +1 -1
  482. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/defined-info.es.js +20 -15
  483. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/defined-info.es.js.map +1 -1
  484. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/info.es.js +17 -16
  485. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/info.es.js.map +1 -1
  486. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/merge.es.js +10 -7
  487. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/merge.es.js.map +1 -1
  488. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/schema.es.js +11 -7
  489. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/schema.es.js.map +1 -1
  490. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/types.es.js +17 -11
  491. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/types.es.js.map +1 -1
  492. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xlink.es.js +5 -5
  493. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xlink.es.js.map +1 -1
  494. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xml.es.js +5 -5
  495. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xml.es.js.map +1 -1
  496. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xmlns.es.js +5 -5
  497. package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xmlns.es.js.map +1 -1
  498. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.es.js +152 -82
  499. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.es.js.map +1 -1
  500. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.es.js +86 -58
  501. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.es.js.map +1 -1
  502. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.es.js +14 -7
  503. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.es.js.map +1 -1
  504. package/dist/node_modules/.pnpm/react-markdown@10.1.0_@types_react@18.2.0_react@18.2.0/node_modules/react-markdown/lib/index.es.js +102 -55
  505. package/dist/node_modules/.pnpm/react-markdown@10.1.0_@types_react@18.2.0_react@18.2.0/node_modules/react-markdown/lib/index.es.js.map +1 -1
  506. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.es.js +825 -539
  507. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +1 -1
  508. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +20 -15
  509. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.es.js.map +1 -1
  510. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.es.js +10 -6
  511. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.es.js.map +1 -1
  512. package/dist/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.es.js +15 -8
  513. package/dist/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.es.js.map +1 -1
  514. package/dist/node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.es.js +11 -11
  515. package/dist/node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.es.js.map +1 -1
  516. package/dist/node_modules/.pnpm/remark-rehype@11.1.2/node_modules/remark-rehype/lib/index.es.js +14 -11
  517. package/dist/node_modules/.pnpm/remark-rehype@11.1.2/node_modules/remark-rehype/lib/index.es.js.map +1 -1
  518. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.es.js +3 -3
  519. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.es.js.map +1 -1
  520. package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/index.es.js +23 -15
  521. package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/index.es.js.map +1 -1
  522. package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/utilities.es.js +33 -13
  523. package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/utilities.es.js.map +1 -1
  524. package/dist/node_modules/.pnpm/style-to-object@1.0.8/node_modules/style-to-object/cjs/index.es.js +27 -18
  525. package/dist/node_modules/.pnpm/style-to-object@1.0.8/node_modules/style-to-object/cjs/index.es.js.map +1 -1
  526. package/dist/node_modules/.pnpm/trim-lines@3.0.1/node_modules/trim-lines/index.es.js +35 -22
  527. package/dist/node_modules/.pnpm/trim-lines@3.0.1/node_modules/trim-lines/index.es.js.map +1 -1
  528. package/dist/node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.es.js +68 -42
  529. package/dist/node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.es.js.map +1 -1
  530. package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.es.js +13 -8
  531. package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.es.js.map +1 -1
  532. package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.es.js +246 -139
  533. package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.es.js.map +1 -1
  534. package/dist/node_modules/.pnpm/unist-util-is@6.0.0/node_modules/unist-util-is/lib/index.es.js +59 -50
  535. package/dist/node_modules/.pnpm/unist-util-is@6.0.0/node_modules/unist-util-is/lib/index.es.js.map +1 -1
  536. package/dist/node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.es.js +20 -16
  537. package/dist/node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.es.js.map +1 -1
  538. package/dist/node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.es.js +21 -9
  539. package/dist/node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.es.js.map +1 -1
  540. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/color.es.js +3 -3
  541. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/color.es.js.map +1 -1
  542. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/index.es.js +65 -38
  543. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/index.es.js.map +1 -1
  544. package/dist/node_modules/.pnpm/unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.es.js +24 -12
  545. package/dist/node_modules/.pnpm/unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.es.js.map +1 -1
  546. package/dist/node_modules/.pnpm/vfile-message@4.0.2/node_modules/vfile-message/lib/index.es.js +77 -30
  547. package/dist/node_modules/.pnpm/vfile-message@4.0.2/node_modules/vfile-message/lib/index.es.js.map +1 -1
  548. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.es.js +116 -60
  549. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.es.js.map +1 -1
  550. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.browser.es.js +181 -79
  551. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.browser.es.js.map +1 -1
  552. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.browser.es.js +3 -3
  553. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.browser.es.js.map +1 -1
  554. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.browser.es.js +32 -27
  555. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.browser.es.js.map +1 -1
  556. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.shared.es.js +6 -4
  557. package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.shared.es.js.map +1 -1
  558. package/dist/utils/funASR/funASRManager.es.js +109 -68
  559. package/dist/utils/funASR/funASRManager.es.js.map +1 -1
  560. package/dist/utils/funASR/pcm.es.js +51 -36
  561. package/dist/utils/funASR/pcm.es.js.map +1 -1
  562. package/dist/utils/funASR/recorder.es.js +1048 -542
  563. package/dist/utils/funASR/recorder.es.js.map +1 -1
  564. package/dist/utils/funASR/wav.es.js +46 -20
  565. package/dist/utils/funASR/wav.es.js.map +1 -1
  566. package/dist/utils/funASR/wsConnecter.es.js +79 -44
  567. package/dist/utils/funASR/wsConnecter.es.js.map +1 -1
  568. package/dist/utils/xunFeiVoice/RecorderManager/RecorderManager.es.js +126 -78
  569. package/dist/utils/xunFeiVoice/RecorderManager/RecorderManager.es.js.map +1 -1
  570. package/dist/utils/xunFeiVoice/RecorderManager/processorSource/processor.worker.es.js +2 -207
  571. package/dist/utils/xunFeiVoice/RecorderManager/processorSource/processor.worker.es.js.map +1 -1
  572. package/dist/utils/xunFeiVoice/RecorderManager/processorSource/processor.worklet.es.js +2 -2
  573. package/dist/utils/xunFeiVoice/RecorderManager/processorSource/processor.worklet.es.js.map +1 -1
  574. package/dist/utils/xunFeiVoice/XFStreamVoiceManager.d.ts +4 -0
  575. package/dist/utils/xunFeiVoice/XFStreamVoiceManager.es.js +207 -131
  576. package/dist/utils/xunFeiVoice/XFStreamVoiceManager.es.js.map +1 -1
  577. package/dist/utils/xunFeiVoice/utils.es.js +9 -7
  578. package/dist/utils/xunFeiVoice/utils.es.js.map +1 -1
  579. package/package.json +1 -1
@@ -1,103 +1,144 @@
1
- var l = Object.defineProperty;
2
- var w = (i, e, t) => e in i ? l(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var o = (i, e, t) => w(i, typeof e != "symbol" ? e + "" : e, t);
4
- import { pcmEnhanceRecorder as R } from "./pcm.es.js";
5
- import { Recorder as I } from "./recorder.es.js";
6
- import { wavEnhanceRecorder as k } from "./wav.es.js";
7
- import { WebSocketConnectMethod as S } from "./wsConnecter.es.js";
8
- const y = (i) => new S(i);
9
- class A {
10
- constructor(e) {
11
- o(this, "wsInstance", null);
12
- o(this, "recorderInstance", null);
13
- o(this, "sampleBuf", new Int16Array());
14
- o(this, "isRec", !1);
15
- o(this, "Recorder", I);
16
- o(this, "status", "stop");
17
- o(this, "timer", 0);
18
- o(this, "propsOnError");
19
- o(this, "socketConfig");
20
- o(this, "recorderConfig", { type: "pcm" });
21
- const { socketConfig: t, recorderConfig: r = { type: "pcm" }, onError: n } = e;
22
- this.socketConfig = t, r && (this.recorderConfig = r), this.init(), this.wsInstance = y({
23
- ...t,
24
- onError: (s) => {
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
+ import { pcmEnhanceRecorder } from "./pcm.es.js";
5
+ import { Recorder } from "./recorder.es.js";
6
+ import { wavEnhanceRecorder } from "./wav.es.js";
7
+ import { WebSocketConnectMethod } from "./wsConnecter.es.js";
8
+ const getWebSocketConnectForFunASR = (config) => {
9
+ return new WebSocketConnectMethod(config);
10
+ };
11
+ class FunASRManager {
12
+ constructor(params) {
13
+ __publicField(this, "wsInstance", null);
14
+ __publicField(this, "recorderInstance", null);
15
+ __publicField(this, "sampleBuf", new Int16Array());
16
+ __publicField(this, "isRec", false);
17
+ __publicField(this, "Recorder", Recorder);
18
+ __publicField(this, "status", "stop");
19
+ __publicField(this, "timer", 0);
20
+ __publicField(this, "propsOnError");
21
+ __publicField(this, "socketConfig");
22
+ __publicField(this, "recorderConfig", { type: "pcm" });
23
+ const { socketConfig, recorderConfig = { type: "pcm" }, onError } = params;
24
+ this.socketConfig = socketConfig;
25
+ if (recorderConfig) {
26
+ this.recorderConfig = recorderConfig;
27
+ }
28
+ this.init();
29
+ this.wsInstance = getWebSocketConnectForFunASR({
30
+ ...socketConfig,
31
+ onError: (errMsg) => {
25
32
  this.onError({
26
33
  type: "webSocketError",
27
- msg: s
34
+ msg: errMsg
28
35
  });
29
36
  }
30
- }), this.recorderInstance = this.Recorder({
31
- ...r,
32
- onProcess: (...s) => r.onProcess ? r.onProcess(...s) : this.recordProcess(s[0], s[1], s[2], s[3], s[4], s[5])
33
- }), this.propsOnError = n;
37
+ });
38
+ this.recorderInstance = this.Recorder({
39
+ ...recorderConfig,
40
+ onProcess: (...args) => {
41
+ if (recorderConfig.onProcess) {
42
+ return recorderConfig.onProcess(...args);
43
+ }
44
+ return this.recordProcess(args[0], args[1], args[2], args[3], args[4], args[5]);
45
+ }
46
+ });
47
+ this.propsOnError = onError;
34
48
  }
35
49
  init() {
36
- R(this.Recorder), k(this.Recorder), this.status = "live";
50
+ pcmEnhanceRecorder(this.Recorder);
51
+ wavEnhanceRecorder(this.Recorder);
52
+ this.status = "live";
37
53
  }
38
54
  destroy() {
39
- var e;
40
- (e = this.wsInstance) == null || e.wsStop(), this.Recorder.Destroy(), this.status = "stop";
55
+ var _a;
56
+ (_a = this.wsInstance) == null ? void 0 : _a.wsStop();
57
+ this.Recorder.Destroy();
58
+ this.status = "stop";
41
59
  }
42
- onError(e) {
43
- var t;
44
- console.error("FunASRManager error:", e), (t = this.propsOnError) == null || t.call(this, e);
60
+ onError(errorObj) {
61
+ var _a;
62
+ console.error("FunASRManager error:", errorObj);
63
+ (_a = this.propsOnError) == null ? void 0 : _a.call(this, errorObj);
45
64
  }
46
65
  startRecord() {
47
- var e, t, r, n;
48
- this.status !== "stop" && (((t = (e = this.wsInstance) == null ? void 0 : e.getSocket()) == null ? void 0 : t.readyState) !== WebSocket.OPEN && ((r = this.wsInstance) == null || r.wsStart()), (n = this.recorderInstance) == null || n.open(
66
+ var _a, _b, _c, _d;
67
+ if (this.status === "stop") {
68
+ return;
69
+ }
70
+ if (((_b = (_a = this.wsInstance) == null ? void 0 : _a.getSocket()) == null ? void 0 : _b.readyState) !== WebSocket.OPEN) {
71
+ (_c = this.wsInstance) == null ? void 0 : _c.wsStart();
72
+ }
73
+ (_d = this.recorderInstance) == null ? void 0 : _d.open(
49
74
  () => {
50
- var s;
51
- (s = this.recorderInstance) == null || s.start(), this.isRec = !0;
75
+ var _a2;
76
+ (_a2 = this.recorderInstance) == null ? void 0 : _a2.start();
77
+ this.isRec = true;
52
78
  },
53
- (s, h) => {
79
+ (errMsg, isUserNotAllowed) => {
54
80
  this.onError({
55
81
  type: "startRecord",
56
- msg: s,
57
- isUserNotAllowed: h
82
+ msg: errMsg,
83
+ isUserNotAllowed
58
84
  });
59
85
  }
60
- ));
86
+ );
61
87
  }
62
88
  stopRecord() {
63
- var r;
64
- if (this.status === "stop" || ((r = this.recorderInstance) == null ? void 0 : r.state) === 0)
89
+ var _a;
90
+ if (this.status === "stop" || ((_a = this.recorderInstance) == null ? void 0 : _a.state) === 0) {
65
91
  return;
66
- const e = this;
67
- this.timer && clearTimeout(this.timer);
68
- const t = () => {
69
- var n;
70
- (n = this.recorderInstance) == null || n.stop(() => {
71
- var c, a;
72
- const h = {
73
- chunk_size: [5, 10, 5],
92
+ }
93
+ const that = this;
94
+ if (this.timer) {
95
+ clearTimeout(this.timer);
96
+ }
97
+ const stopFn = () => {
98
+ var _a2;
99
+ (_a2 = this.recorderInstance) == null ? void 0 : _a2.stop(() => {
100
+ var _a3, _b;
101
+ const chunk_size = [5, 10, 5];
102
+ const request = {
103
+ chunk_size,
74
104
  wav_name: "h5",
75
- is_speaking: !1,
105
+ is_speaking: false,
76
106
  chunk_interval: 10,
77
- mode: e.socketConfig.mode
107
+ mode: that.socketConfig.mode
78
108
  };
79
- e.sampleBuf.length > 0 && ((c = e.wsInstance) == null || c.wsSend(e.sampleBuf), e.sampleBuf = new Int16Array()), (a = e.wsInstance) == null || a.wsSend(JSON.stringify(h)), this.isRec = !1;
109
+ if (that.sampleBuf.length > 0) {
110
+ (_a3 = that.wsInstance) == null ? void 0 : _a3.wsSend(that.sampleBuf);
111
+ that.sampleBuf = new Int16Array();
112
+ }
113
+ (_b = that.wsInstance) == null ? void 0 : _b.wsSend(JSON.stringify(request));
114
+ this.isRec = false;
80
115
  });
81
116
  };
82
117
  this.timer = setTimeout(() => {
83
- t();
118
+ stopFn();
84
119
  }, 1e3);
85
120
  }
86
- recordProcess(e, t, r, n, s, h) {
87
- var c, a;
88
- if (this.status !== "stop" && this.isRec === !0) {
89
- const u = e[e.length - 1], f = new Array(u), d = ((c = this.Recorder) == null ? void 0 : c.SampleData(f, n, 16e3).data) || [];
90
- this.sampleBuf = Int16Array.from([...this.sampleBuf, ...d]);
91
- const p = 960;
92
- for (; this.sampleBuf.length >= p; ) {
93
- const m = this.sampleBuf.slice(0, p);
94
- this.sampleBuf = this.sampleBuf.slice(p, this.sampleBuf.length), (a = this.wsInstance) == null || a.wsSend(m);
121
+ recordProcess(buffer, _powerLevel, _bufferDuration, bufferSampleRate, _newBufferIdx, _asyncEnd) {
122
+ var _a, _b;
123
+ if (this.status === "stop") {
124
+ return;
125
+ }
126
+ if (this.isRec === true) {
127
+ const data_48k = buffer[buffer.length - 1];
128
+ const array_48k = new Array(data_48k);
129
+ const data_16k = ((_a = this.Recorder) == null ? void 0 : _a.SampleData(array_48k, bufferSampleRate, 16e3).data) || [];
130
+ this.sampleBuf = Int16Array.from([...this.sampleBuf, ...data_16k]);
131
+ const chunk_size = 960;
132
+ while (this.sampleBuf.length >= chunk_size) {
133
+ const sendBuf = this.sampleBuf.slice(0, chunk_size);
134
+ this.sampleBuf = this.sampleBuf.slice(chunk_size, this.sampleBuf.length);
135
+ (_b = this.wsInstance) == null ? void 0 : _b.wsSend(sendBuf);
95
136
  }
96
137
  }
97
138
  }
98
139
  }
99
140
  export {
100
- A as FunASRManager,
101
- y as getWebSocketConnectForFunASR
141
+ FunASRManager,
142
+ getWebSocketConnectForFunASR
102
143
  };
103
144
  //# sourceMappingURL=funASRManager.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"funASRManager.es.js","sources":["../../../src/utils/funASR/funASRManager.ts"],"sourcesContent":["import { pcmEnhanceRecorder } from './pcm';\nimport { Recorder as OriginRecorder } from './recorder';\nimport { wavEnhanceRecorder } from './wav';\nimport { WebSocketConnectMethod } from './wsConnecter';\n\nexport interface WebSocketConnectMethodInstance {\n wsSend: (msg: string | Int16Array<ArrayBuffer>) => void;\n wsStop: () => void;\n /** 1 is ok, 0 is error */\n wsStart: () => 0 | 1;\n getSocket: () => WebSocket | undefined;\n}\n\nexport interface JsonMsg {\n data: string;\n}\nexport interface WebSocketConnectMethodConfig {\n msgHandle: (jsonMsg: JsonMsg) => void;\n /**\n * 0: 成功\n * 1: 关闭\n * 2: 连接失败\n */\n stateHandle: (state: number) => void;\n uri: string;\n /**\n * 逆文本标准化, 默认 true\n * 标准化文本恢复成符合自然语言表达习惯的形式。\n * 如: “一百二十三元五角” 这样的表述,经过 ITN 处理后,会变成 “123.5 元”\n */\n itn?: boolean;\n /**\n * 默认 2pass\n * 2pass 模式:该模式也叫两步解码模式,通常包含两个步骤。第一步进行快速的初步解码,利用较为简单的语言模型和声学模型快速生成一个大致的识别结果;第二步基于第一步的结果,使用更复杂、更精确的语言模型进行重新解码和优化,从而得到最终更准确的识别结果。\n * online 模式:采用流式处理方式,在语音数据输入的过程中,系统会逐块对语音进行实时识别。只要有新的语音数据块到达,就立即对其进行处理并输出部分识别结果,而无需等待整个语音输入结束。\n * offline 模式:需要等待完整的语音数据全部输入后,才开始进行识别处理。在处理过程中,系统会对整个语音数据进行全面的分析和处理,以得出最终的识别结果。\n */\n mode?: '2pass' | 'online' | 'offline';\n /** 是否是文件上传模式,当前模式暂不支持 */\n isFileMode?: boolean;\n /** 热词设置,key 是热词,value 是权重 */\n hotWords?: Record<string, number>;\n}\nexport interface RecorderConfig {\n /**\n * 输出类型:mp3,wav,wav输出文件尺寸超大不推荐使用,但mp3编码支持会导致js文件超大,如果不需支持mp3可以使js文件大幅减小\n * pcm 文件无法直接播放,转成wav文件来播放,已提供转换函数 Recorder.pcm2wav\n */\n type?: 'mp3' | 'wav' | 'pcm';\n /**\n * 比特率 wav:16或8位,MP3:8kbps 1k/s,8kbps 2k/s 录音文件很小\n */\n bitRate?: number;\n /**\n * 采样率,wav格式大小=sampleRate*时间;mp3此项对低比特率有影响,高比特率几乎无影响。\n * wav任意值,mp3取值范围:48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000\n * 采样率参考https://www.cnblogs.com/devin87/p/mp3-recorder.html\n */\n sampleRate?: number;\n /**\n * 有默认值,可以不传 \\n\n * fn(buffers,powerLevel,bufferDuration,bufferSampleRate,newBufferIdx,asyncEnd)\n * buffers=[[Int16,...],...]:缓冲的PCM数据,为从开始录音到现在的所有pcm片段;\n * powerLevel:当前缓冲的音量级别0-100,\n * bufferDuration:已缓冲时长,\n * bufferSampleRate:缓冲使用的采样率(当type支持边录边转码(Worker)时,此采样率和设置的采样率相同,否则不一定相同);\n * newBufferIdx:本次回调新增的buffer起始索引;\n * asyncEnd:fn() 如果onProcess是异步的(返回值为true时),处理完成时需要调用此回调,如果不是异步的请忽略此参数,此方法回调时必须是真异步(不能真异步时需用setTimeout包裹)。\n * onProcess返回值:如果返回true代表开启异步模式,在某些大量运算的场合异步是必须的,必须在异步处理完成时调用asyncEnd(不能真异步时需用setTimeout包裹),\n * 在onProcess执行后新增的buffer会全部替换成空数组,因此本回调开头应立即将newBufferIdx到本次回调结尾位置的buffer全部保存到另外一个数组内,\n * 处理完成后写回buffers中本次回调的结尾位置。\n */\n onProcess?: (...arg: any[]) => void;\n}\nexport interface ErrorInfo {\n type: 'webSocketError' | 'startRecord';\n msg: string;\n isUserNotAllowed?: boolean;\n}\nexport interface RecorderResult {\n open: (fn: () => void, errFn?: (errMsg: string, isUserNotAllowed?: boolean) => void) => void;\n close: (fn?: () => void) => void;\n stop: (fn?: (blob: Blob, duration?: number) => void, errFn?: (errMsg: string) => void) => void;\n start: () => void;\n pcm2wav: (...params: any) => void;\n /** 0未录音 1录音中 2暂停 3等待ctx激活 */\n state: 0 | 1 | 2;\n SampleData: (\n array: Array<any>,\n sampleRate: number,\n targetSampleRate: number,\n ) => { data: Int16Array<ArrayBuffer> };\n}\n\nexport const getWebSocketConnectForFunASR = (\n config: WebSocketConnectMethodConfig & {\n onError: (errMsg: string) => void;\n },\n) => {\n return new WebSocketConnectMethod(config) as unknown as WebSocketConnectMethodInstance;\n};\n\ninterface RecorderFn {\n (config: RecorderConfig): RecorderResult;\n Destroy: () => void;\n}\n\nexport class FunASRManager {\n wsInstance: WebSocketConnectMethodInstance | null = null;\n recorderInstance: RecorderResult | null = null;\n sampleBuf = new Int16Array();\n isRec = false;\n Recorder = OriginRecorder as RecorderFn;\n status: 'live' | 'stop' = 'stop';\n timer: NodeJS.Timeout | number = 0;\n propsOnError: undefined | ((errorInfo: ErrorInfo) => void);\n socketConfig: WebSocketConnectMethodConfig;\n recorderConfig: RecorderConfig = { type: 'pcm' };\n\n constructor(params: {\n socketConfig: WebSocketConnectMethodConfig;\n recorderConfig?: RecorderConfig;\n onError?: (errorInfo: ErrorInfo) => void;\n }) {\n const { socketConfig, recorderConfig = { type: 'pcm' }, onError } = params;\n this.socketConfig = socketConfig;\n if (recorderConfig) {\n this.recorderConfig = recorderConfig;\n }\n this.init();\n this.wsInstance = getWebSocketConnectForFunASR({\n ...socketConfig,\n onError: (errMsg) => {\n this.onError({\n type: 'webSocketError',\n msg: errMsg,\n });\n },\n });\n this.recorderInstance = this.Recorder({\n ...recorderConfig,\n onProcess: (...args) => {\n if (recorderConfig.onProcess) {\n return recorderConfig.onProcess(...args);\n }\n return this.recordProcess(args[0], args[1], args[2], args[3], args[4], args[5]);\n },\n }) as unknown as RecorderResult;\n this.propsOnError = onError;\n }\n\n init() {\n pcmEnhanceRecorder(this.Recorder);\n wavEnhanceRecorder(this.Recorder);\n this.status = 'live';\n }\n\n destroy() {\n this.wsInstance?.wsStop();\n this.Recorder.Destroy();\n this.status = 'stop';\n }\n\n onError(errorObj: ErrorInfo) {\n console.error('FunASRManager error:', errorObj);\n this.propsOnError?.(errorObj);\n }\n\n public startRecord() {\n if (this.status === 'stop') {\n return;\n }\n if (this.wsInstance?.getSocket()?.readyState !== WebSocket.OPEN) {\n this.wsInstance?.wsStart();\n }\n this.recorderInstance?.open(\n () => {\n this.recorderInstance?.start();\n this.isRec = true;\n },\n (errMsg, isUserNotAllowed) => {\n this.onError({\n type: 'startRecord',\n msg: errMsg,\n isUserNotAllowed,\n });\n },\n );\n }\n public stopRecord() {\n if (this.status === 'stop' || this.recorderInstance?.state === 0) {\n return;\n }\n const that = this;\n if (this.timer) {\n clearTimeout(this.timer);\n }\n const stopFn = () => {\n this.recorderInstance?.stop(() => {\n const chunk_size = [5, 10, 5];\n const request = {\n chunk_size: chunk_size,\n wav_name: 'h5',\n is_speaking: false,\n chunk_interval: 10,\n mode: that.socketConfig.mode,\n };\n if (that.sampleBuf.length > 0) {\n that.wsInstance?.wsSend(that.sampleBuf);\n that.sampleBuf = new Int16Array();\n }\n that.wsInstance?.wsSend(JSON.stringify(request));\n this.isRec = false;\n });\n };\n // 延迟 1s 等待录音结束\n this.timer = setTimeout(() => {\n stopFn();\n }, 1000);\n }\n\n private recordProcess(\n buffer: string | any[],\n _powerLevel: any,\n _bufferDuration: any,\n bufferSampleRate: number,\n _newBufferIdx: any,\n _asyncEnd: any,\n ) {\n if (this.status === 'stop') {\n return;\n }\n if (this.isRec === true) {\n const data_48k = buffer[buffer.length - 1];\n\n const array_48k = new Array(data_48k);\n const data_16k =\n (this.Recorder as any)?.SampleData(array_48k, bufferSampleRate, 16000).data || [];\n\n this.sampleBuf = Int16Array.from([...this.sampleBuf, ...data_16k]);\n const chunk_size = 960; // for asr chunk_size [5, 10, 5]\n while (this.sampleBuf.length >= chunk_size) {\n const sendBuf = this.sampleBuf.slice(0, chunk_size);\n this.sampleBuf = this.sampleBuf.slice(chunk_size, this.sampleBuf.length);\n this.wsInstance?.wsSend(sendBuf);\n }\n }\n }\n}\n"],"names":["getWebSocketConnectForFunASR","config","WebSocketConnectMethod","FunASRManager","params","__publicField","OriginRecorder","socketConfig","recorderConfig","onError","errMsg","args","pcmEnhanceRecorder","wavEnhanceRecorder","_a","errorObj","_b","_c","_d","isUserNotAllowed","that","stopFn","request","buffer","_powerLevel","_bufferDuration","bufferSampleRate","_newBufferIdx","_asyncEnd","data_48k","array_48k","data_16k","chunk_size","sendBuf"],"mappings":"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"}
1
+ {"version":3,"file":"funASRManager.es.js","sources":["../../../src/utils/funASR/funASRManager.ts"],"sourcesContent":["import { pcmEnhanceRecorder } from './pcm';\nimport { Recorder as OriginRecorder } from './recorder';\nimport { wavEnhanceRecorder } from './wav';\nimport { WebSocketConnectMethod } from './wsConnecter';\n\nexport interface WebSocketConnectMethodInstance {\n wsSend: (msg: string | Int16Array<ArrayBuffer>) => void;\n wsStop: () => void;\n /** 1 is ok, 0 is error */\n wsStart: () => 0 | 1;\n getSocket: () => WebSocket | undefined;\n}\n\nexport interface JsonMsg {\n data: string;\n}\nexport interface WebSocketConnectMethodConfig {\n msgHandle: (jsonMsg: JsonMsg) => void;\n /**\n * 0: 成功\n * 1: 关闭\n * 2: 连接失败\n */\n stateHandle: (state: number) => void;\n uri: string;\n /**\n * 逆文本标准化, 默认 true\n * 标准化文本恢复成符合自然语言表达习惯的形式。\n * 如: “一百二十三元五角” 这样的表述,经过 ITN 处理后,会变成 “123.5 元”\n */\n itn?: boolean;\n /**\n * 默认 2pass\n * 2pass 模式:该模式也叫两步解码模式,通常包含两个步骤。第一步进行快速的初步解码,利用较为简单的语言模型和声学模型快速生成一个大致的识别结果;第二步基于第一步的结果,使用更复杂、更精确的语言模型进行重新解码和优化,从而得到最终更准确的识别结果。\n * online 模式:采用流式处理方式,在语音数据输入的过程中,系统会逐块对语音进行实时识别。只要有新的语音数据块到达,就立即对其进行处理并输出部分识别结果,而无需等待整个语音输入结束。\n * offline 模式:需要等待完整的语音数据全部输入后,才开始进行识别处理。在处理过程中,系统会对整个语音数据进行全面的分析和处理,以得出最终的识别结果。\n */\n mode?: '2pass' | 'online' | 'offline';\n /** 是否是文件上传模式,当前模式暂不支持 */\n isFileMode?: boolean;\n /** 热词设置,key 是热词,value 是权重 */\n hotWords?: Record<string, number>;\n}\nexport interface RecorderConfig {\n /**\n * 输出类型:mp3,wav,wav输出文件尺寸超大不推荐使用,但mp3编码支持会导致js文件超大,如果不需支持mp3可以使js文件大幅减小\n * pcm 文件无法直接播放,转成wav文件来播放,已提供转换函数 Recorder.pcm2wav\n */\n type?: 'mp3' | 'wav' | 'pcm';\n /**\n * 比特率 wav:16或8位,MP3:8kbps 1k/s,8kbps 2k/s 录音文件很小\n */\n bitRate?: number;\n /**\n * 采样率,wav格式大小=sampleRate*时间;mp3此项对低比特率有影响,高比特率几乎无影响。\n * wav任意值,mp3取值范围:48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000\n * 采样率参考https://www.cnblogs.com/devin87/p/mp3-recorder.html\n */\n sampleRate?: number;\n /**\n * 有默认值,可以不传 \\n\n * fn(buffers,powerLevel,bufferDuration,bufferSampleRate,newBufferIdx,asyncEnd)\n * buffers=[[Int16,...],...]:缓冲的PCM数据,为从开始录音到现在的所有pcm片段;\n * powerLevel:当前缓冲的音量级别0-100,\n * bufferDuration:已缓冲时长,\n * bufferSampleRate:缓冲使用的采样率(当type支持边录边转码(Worker)时,此采样率和设置的采样率相同,否则不一定相同);\n * newBufferIdx:本次回调新增的buffer起始索引;\n * asyncEnd:fn() 如果onProcess是异步的(返回值为true时),处理完成时需要调用此回调,如果不是异步的请忽略此参数,此方法回调时必须是真异步(不能真异步时需用setTimeout包裹)。\n * onProcess返回值:如果返回true代表开启异步模式,在某些大量运算的场合异步是必须的,必须在异步处理完成时调用asyncEnd(不能真异步时需用setTimeout包裹),\n * 在onProcess执行后新增的buffer会全部替换成空数组,因此本回调开头应立即将newBufferIdx到本次回调结尾位置的buffer全部保存到另外一个数组内,\n * 处理完成后写回buffers中本次回调的结尾位置。\n */\n onProcess?: (...arg: any[]) => void;\n}\nexport interface ErrorInfo {\n type: 'webSocketError' | 'startRecord';\n msg: string;\n isUserNotAllowed?: boolean;\n}\nexport interface RecorderResult {\n open: (fn: () => void, errFn?: (errMsg: string, isUserNotAllowed?: boolean) => void) => void;\n close: (fn?: () => void) => void;\n stop: (fn?: (blob: Blob, duration?: number) => void, errFn?: (errMsg: string) => void) => void;\n start: () => void;\n pcm2wav: (...params: any) => void;\n /** 0未录音 1录音中 2暂停 3等待ctx激活 */\n state: 0 | 1 | 2;\n SampleData: (\n array: Array<any>,\n sampleRate: number,\n targetSampleRate: number,\n ) => { data: Int16Array<ArrayBuffer> };\n}\n\nexport const getWebSocketConnectForFunASR = (\n config: WebSocketConnectMethodConfig & {\n onError: (errMsg: string) => void;\n },\n) => {\n return new WebSocketConnectMethod(config) as unknown as WebSocketConnectMethodInstance;\n};\n\ninterface RecorderFn {\n (config: RecorderConfig): RecorderResult;\n Destroy: () => void;\n}\n\nexport class FunASRManager {\n wsInstance: WebSocketConnectMethodInstance | null = null;\n recorderInstance: RecorderResult | null = null;\n sampleBuf = new Int16Array();\n isRec = false;\n Recorder = OriginRecorder as RecorderFn;\n status: 'live' | 'stop' = 'stop';\n timer: NodeJS.Timeout | number = 0;\n propsOnError: undefined | ((errorInfo: ErrorInfo) => void);\n socketConfig: WebSocketConnectMethodConfig;\n recorderConfig: RecorderConfig = { type: 'pcm' };\n\n constructor(params: {\n socketConfig: WebSocketConnectMethodConfig;\n recorderConfig?: RecorderConfig;\n onError?: (errorInfo: ErrorInfo) => void;\n }) {\n const { socketConfig, recorderConfig = { type: 'pcm' }, onError } = params;\n this.socketConfig = socketConfig;\n if (recorderConfig) {\n this.recorderConfig = recorderConfig;\n }\n this.init();\n this.wsInstance = getWebSocketConnectForFunASR({\n ...socketConfig,\n onError: (errMsg) => {\n this.onError({\n type: 'webSocketError',\n msg: errMsg,\n });\n },\n });\n this.recorderInstance = this.Recorder({\n ...recorderConfig,\n onProcess: (...args) => {\n if (recorderConfig.onProcess) {\n return recorderConfig.onProcess(...args);\n }\n return this.recordProcess(args[0], args[1], args[2], args[3], args[4], args[5]);\n },\n }) as unknown as RecorderResult;\n this.propsOnError = onError;\n }\n\n init() {\n pcmEnhanceRecorder(this.Recorder);\n wavEnhanceRecorder(this.Recorder);\n this.status = 'live';\n }\n\n destroy() {\n this.wsInstance?.wsStop();\n this.Recorder.Destroy();\n this.status = 'stop';\n }\n\n onError(errorObj: ErrorInfo) {\n console.error('FunASRManager error:', errorObj);\n this.propsOnError?.(errorObj);\n }\n\n public startRecord() {\n if (this.status === 'stop') {\n return;\n }\n if (this.wsInstance?.getSocket()?.readyState !== WebSocket.OPEN) {\n this.wsInstance?.wsStart();\n }\n this.recorderInstance?.open(\n () => {\n this.recorderInstance?.start();\n this.isRec = true;\n },\n (errMsg, isUserNotAllowed) => {\n this.onError({\n type: 'startRecord',\n msg: errMsg,\n isUserNotAllowed,\n });\n },\n );\n }\n public stopRecord() {\n if (this.status === 'stop' || this.recorderInstance?.state === 0) {\n return;\n }\n const that = this;\n if (this.timer) {\n clearTimeout(this.timer);\n }\n const stopFn = () => {\n this.recorderInstance?.stop(() => {\n const chunk_size = [5, 10, 5];\n const request = {\n chunk_size: chunk_size,\n wav_name: 'h5',\n is_speaking: false,\n chunk_interval: 10,\n mode: that.socketConfig.mode,\n };\n if (that.sampleBuf.length > 0) {\n that.wsInstance?.wsSend(that.sampleBuf);\n that.sampleBuf = new Int16Array();\n }\n that.wsInstance?.wsSend(JSON.stringify(request));\n this.isRec = false;\n });\n };\n // 延迟 1s 等待录音结束\n this.timer = setTimeout(() => {\n stopFn();\n }, 1000);\n }\n\n private recordProcess(\n buffer: string | any[],\n _powerLevel: any,\n _bufferDuration: any,\n bufferSampleRate: number,\n _newBufferIdx: any,\n _asyncEnd: any,\n ) {\n if (this.status === 'stop') {\n return;\n }\n if (this.isRec === true) {\n const data_48k = buffer[buffer.length - 1];\n\n const array_48k = new Array(data_48k);\n const data_16k =\n (this.Recorder as any)?.SampleData(array_48k, bufferSampleRate, 16000).data || [];\n\n this.sampleBuf = Int16Array.from([...this.sampleBuf, ...data_16k]);\n const chunk_size = 960; // for asr chunk_size [5, 10, 5]\n while (this.sampleBuf.length >= chunk_size) {\n const sendBuf = this.sampleBuf.slice(0, chunk_size);\n this.sampleBuf = this.sampleBuf.slice(chunk_size, this.sampleBuf.length);\n this.wsInstance?.wsSend(sendBuf);\n }\n }\n }\n}\n"],"names":["OriginRecorder","_a"],"mappings":"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"}
@@ -1,46 +1,61 @@
1
- function m(i) {
2
- i.prototype.enc_pcm = {
3
- stable: !0,
1
+ function pcmEnhanceRecorder(Recorder) {
2
+ Recorder.prototype.enc_pcm = {
3
+ stable: true,
4
4
  testmsg: "pcm为未封装的原始音频数据,pcm数据文件无法直接播放;支持位数8位、16位(填在比特率里面),采样率取值无限制"
5
- }, i.prototype.pcm = function(e, l, v) {
6
- var o = this, s = o.set, a = e.length, r = s.bitRate == 8 ? 8 : 16, f = new ArrayBuffer(a * (r / 8)), n = new DataView(f), p = 0;
7
- if (r == 8)
8
- for (var t = 0; t < a; t++, p++) {
9
- var c = (e[t] >> 8) + 128;
10
- n.setInt8(p, c, !0);
5
+ };
6
+ Recorder.prototype.pcm = function(res, True, False) {
7
+ var This = this, set = This.set, size = res.length, bitRate = set.bitRate == 8 ? 8 : 16;
8
+ var buffer = new ArrayBuffer(size * (bitRate / 8));
9
+ var data = new DataView(buffer);
10
+ var offset = 0;
11
+ if (bitRate == 8) {
12
+ for (var i = 0; i < size; i++, offset++) {
13
+ var val = (res[i] >> 8) + 128;
14
+ data.setInt8(offset, val, true);
15
+ }
16
+ } else {
17
+ for (var i = 0; i < size; i++, offset += 2) {
18
+ data.setInt16(offset, res[i], true);
11
19
  }
12
- else
13
- for (var t = 0; t < a; t++, p += 2)
14
- n.setInt16(p, e[t], !0);
15
- l(new Blob([n.buffer], { type: "audio/pcm" }));
16
- }, i.pcm2wav = function(e, l, v) {
17
- e.slice && e.type != null && (e = { blob: e });
18
- var o = e.sampleRate || 16e3, s = e.bitRate || 16;
19
- if ((!e.sampleRate || !e.bitRate) && console.warn("pcm2wav必须提供sampleRate和bitRate"), !i.prototype.wav) {
20
- v("pcm2wav必须先加载wav编码器wav.js");
20
+ }
21
+ True(new Blob([data.buffer], { type: "audio/pcm" }));
22
+ };
23
+ Recorder.pcm2wav = function(data, True, False) {
24
+ if (data.slice && data.type != null) {
25
+ data = { blob: data };
26
+ }
27
+ var sampleRate = data.sampleRate || 16e3, bitRate = data.bitRate || 16;
28
+ if (!data.sampleRate || !data.bitRate) {
29
+ console.warn("pcm2wav必须提供sampleRate和bitRate");
30
+ }
31
+ if (!Recorder.prototype.wav) {
32
+ False("pcm2wav必须先加载wav编码器wav.js");
21
33
  return;
22
34
  }
23
- var a = new FileReader();
24
- a.onloadend = function() {
25
- var r;
26
- if (s == 8) {
27
- var f = new Uint8Array(a.result);
28
- r = new Int16Array(f.length);
29
- for (var n = 0; n < f.length; n++)
30
- r[n] = f[n] - 128 << 8;
31
- } else
32
- r = new Int16Array(a.result);
33
- i({
35
+ var reader = new FileReader();
36
+ reader.onloadend = function() {
37
+ var pcm;
38
+ if (bitRate == 8) {
39
+ var u8arr = new Uint8Array(reader.result);
40
+ pcm = new Int16Array(u8arr.length);
41
+ for (var j = 0; j < u8arr.length; j++) {
42
+ pcm[j] = u8arr[j] - 128 << 8;
43
+ }
44
+ } else {
45
+ pcm = new Int16Array(reader.result);
46
+ }
47
+ Recorder({
34
48
  type: "wav",
35
- sampleRate: o,
36
- bitRate: s
37
- }).mock(r, o).stop(function(p, t) {
38
- l(p, t);
39
- }, v);
40
- }, a.readAsArrayBuffer(e.blob);
49
+ sampleRate,
50
+ bitRate
51
+ }).mock(pcm, sampleRate).stop(function(wavBlob, duration) {
52
+ True(wavBlob, duration);
53
+ }, False);
54
+ };
55
+ reader.readAsArrayBuffer(data.blob);
41
56
  };
42
57
  }
43
58
  export {
44
- m as pcmEnhanceRecorder
59
+ pcmEnhanceRecorder
45
60
  };
46
61
  //# sourceMappingURL=pcm.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pcm.es.js","sources":["../../../src/utils/funASR/pcm.js"],"sourcesContent":["/*\npcm编码器+编码引擎\nhttps://github.com/xiangyuecn/Recorder\n\n编码原理:本编码器输出的pcm格式数据其实就是Recorder中的buffers原始数据(经过了重新采样),16位时为LE小端模式(Little Endian),并未经过任何编码处理\n\n编码的代码和wav.js区别不大,pcm加上一个44字节wav头即成wav文件;所以要播放pcm就很简单了,直接转成wav文件来播放,已提供转换函数 Recorder.pcm2wav\n*/\nexport function pcmEnhanceRecorder(Recorder) {\n 'use strict';\n\n Recorder.prototype.enc_pcm = {\n stable: true,\n testmsg:\n 'pcm为未封装的原始音频数据,pcm数据文件无法直接播放;支持位数8位、16位(填在比特率里面),采样率取值无限制',\n };\n Recorder.prototype.pcm = function (res, True, False) {\n var This = this,\n set = This.set,\n size = res.length,\n bitRate = set.bitRate == 8 ? 8 : 16;\n\n var buffer = new ArrayBuffer(size * (bitRate / 8));\n var data = new DataView(buffer);\n var offset = 0;\n\n // 写入采样数据\n if (bitRate == 8) {\n for (var i = 0; i < size; i++, offset++) {\n //16转8据说是雷霄骅的 https://blog.csdn.net/sevennight1989/article/details/85376149 细节比blqw的按比例的算法清晰点,虽然都有明显杂音\n var val = (res[i] >> 8) + 128;\n data.setInt8(offset, val, true);\n }\n } else {\n for (var i = 0; i < size; i++, offset += 2) {\n data.setInt16(offset, res[i], true);\n }\n }\n\n True(new Blob([data.buffer], { type: 'audio/pcm' }));\n };\n\n /**pcm直接转码成wav,可以直接用来播放;需同时引入wav.js\n\tdata: {\n\t\t\tsampleRate:16000 pcm的采样率\n\t\t\tbitRate:16 pcm的位数 取值:8 或 16\n\t\t\tblob:blob对象\n\t\t}\n\t\tdata如果直接提供的blob将默认使用16位16khz的配置,仅用于测试\n\tTrue(wavBlob,duration)\n\tFalse(msg)\n\t**/\n Recorder.pcm2wav = function (data, True, False) {\n if (data.slice && data.type != null) {\n //Blob 测试用\n data = { blob: data };\n }\n var sampleRate = data.sampleRate || 16000,\n bitRate = data.bitRate || 16;\n if (!data.sampleRate || !data.bitRate) {\n console.warn('pcm2wav必须提供sampleRate和bitRate');\n }\n if (!Recorder.prototype.wav) {\n False('pcm2wav必须先加载wav编码器wav.js');\n return;\n }\n\n var reader = new FileReader();\n reader.onloadend = function () {\n var pcm;\n if (bitRate == 8) {\n //8位转成16位\n var u8arr = new Uint8Array(reader.result);\n pcm = new Int16Array(u8arr.length);\n for (var j = 0; j < u8arr.length; j++) {\n pcm[j] = (u8arr[j] - 128) << 8;\n }\n } else {\n pcm = new Int16Array(reader.result);\n }\n\n Recorder({\n type: 'wav',\n sampleRate: sampleRate,\n bitRate: bitRate,\n })\n .mock(pcm, sampleRate)\n .stop(function (wavBlob, duration) {\n True(wavBlob, duration);\n }, False);\n };\n reader.readAsArrayBuffer(data.blob);\n };\n}\n"],"names":["pcmEnhanceRecorder","Recorder","res","True","False","This","set","size","bitRate","buffer","data","offset","i","val","sampleRate","reader","pcm","u8arr","j","wavBlob","duration"],"mappings":"AAQO,SAASA,EAAmBC,GAAU;AAG3C,EAAAA,EAAS,UAAU,UAAU;AAAA,IAC3B,QAAQ;AAAA,IACR,SACE;AAAA,EACH,GACDA,EAAS,UAAU,MAAM,SAAUC,GAAKC,GAAMC,GAAO;AACnD,QAAIC,IAAO,MACTC,IAAMD,EAAK,KACXE,IAAOL,EAAI,QACXM,IAAUF,EAAI,WAAW,IAAI,IAAI,IAE/BG,IAAS,IAAI,YAAYF,KAAQC,IAAU,EAAE,GAC7CE,IAAO,IAAI,SAASD,CAAM,GAC1BE,IAAS;AAGb,QAAIH,KAAW;AACb,eAASI,IAAI,GAAGA,IAAIL,GAAMK,KAAKD,KAAU;AAEvC,YAAIE,KAAOX,EAAIU,CAAC,KAAK,KAAK;AAC1B,QAAAF,EAAK,QAAQC,GAAQE,GAAK,EAAI;AAAA,MACtC;AAAA;AAEM,eAASD,IAAI,GAAGA,IAAIL,GAAMK,KAAKD,KAAU;AACvC,QAAAD,EAAK,SAASC,GAAQT,EAAIU,CAAC,GAAG,EAAI;AAItC,IAAAT,EAAK,IAAI,KAAK,CAACO,EAAK,MAAM,GAAG,EAAE,MAAM,YAAW,CAAE,CAAC;AAAA,EACpD,GAYDT,EAAS,UAAU,SAAUS,GAAMP,GAAMC,GAAO;AAC9C,IAAIM,EAAK,SAASA,EAAK,QAAQ,SAE7BA,IAAO,EAAE,MAAMA,EAAM;AAEvB,QAAII,IAAaJ,EAAK,cAAc,MAClCF,IAAUE,EAAK,WAAW;AAI5B,SAHI,CAACA,EAAK,cAAc,CAACA,EAAK,YAC5B,QAAQ,KAAK,+BAA+B,GAE1C,CAACT,EAAS,UAAU,KAAK;AAC3B,MAAAG,EAAM,0BAA0B;AAChC;AAAA,IACN;AAEI,QAAIW,IAAS,IAAI,WAAY;AAC7B,IAAAA,EAAO,YAAY,WAAY;AAC7B,UAAIC;AACJ,UAAIR,KAAW,GAAG;AAEhB,YAAIS,IAAQ,IAAI,WAAWF,EAAO,MAAM;AACxC,QAAAC,IAAM,IAAI,WAAWC,EAAM,MAAM;AACjC,iBAASC,IAAI,GAAGA,IAAID,EAAM,QAAQC;AAChC,UAAAF,EAAIE,CAAC,IAAKD,EAAMC,CAAC,IAAI,OAAQ;AAAA,MAEvC;AACQ,QAAAF,IAAM,IAAI,WAAWD,EAAO,MAAM;AAGpC,MAAAd,EAAS;AAAA,QACP,MAAM;AAAA,QACN,YAAYa;AAAA,QACZ,SAASN;AAAA,MACV,CAAA,EACE,KAAKQ,GAAKF,CAAU,EACpB,KAAK,SAAUK,GAASC,GAAU;AACjC,QAAAjB,EAAKgB,GAASC,CAAQ;AAAA,MACvB,GAAEhB,CAAK;AAAA,IACX,GACDW,EAAO,kBAAkBL,EAAK,IAAI;AAAA,EACnC;AACH;"}
1
+ {"version":3,"file":"pcm.es.js","sources":["../../../src/utils/funASR/pcm.js"],"sourcesContent":["/*\npcm编码器+编码引擎\nhttps://github.com/xiangyuecn/Recorder\n\n编码原理:本编码器输出的pcm格式数据其实就是Recorder中的buffers原始数据(经过了重新采样),16位时为LE小端模式(Little Endian),并未经过任何编码处理\n\n编码的代码和wav.js区别不大,pcm加上一个44字节wav头即成wav文件;所以要播放pcm就很简单了,直接转成wav文件来播放,已提供转换函数 Recorder.pcm2wav\n*/\nexport function pcmEnhanceRecorder(Recorder) {\n 'use strict';\n\n Recorder.prototype.enc_pcm = {\n stable: true,\n testmsg:\n 'pcm为未封装的原始音频数据,pcm数据文件无法直接播放;支持位数8位、16位(填在比特率里面),采样率取值无限制',\n };\n Recorder.prototype.pcm = function (res, True, False) {\n var This = this,\n set = This.set,\n size = res.length,\n bitRate = set.bitRate == 8 ? 8 : 16;\n\n var buffer = new ArrayBuffer(size * (bitRate / 8));\n var data = new DataView(buffer);\n var offset = 0;\n\n // 写入采样数据\n if (bitRate == 8) {\n for (var i = 0; i < size; i++, offset++) {\n //16转8据说是雷霄骅的 https://blog.csdn.net/sevennight1989/article/details/85376149 细节比blqw的按比例的算法清晰点,虽然都有明显杂音\n var val = (res[i] >> 8) + 128;\n data.setInt8(offset, val, true);\n }\n } else {\n for (var i = 0; i < size; i++, offset += 2) {\n data.setInt16(offset, res[i], true);\n }\n }\n\n True(new Blob([data.buffer], { type: 'audio/pcm' }));\n };\n\n /**pcm直接转码成wav,可以直接用来播放;需同时引入wav.js\n\tdata: {\n\t\t\tsampleRate:16000 pcm的采样率\n\t\t\tbitRate:16 pcm的位数 取值:8 或 16\n\t\t\tblob:blob对象\n\t\t}\n\t\tdata如果直接提供的blob将默认使用16位16khz的配置,仅用于测试\n\tTrue(wavBlob,duration)\n\tFalse(msg)\n\t**/\n Recorder.pcm2wav = function (data, True, False) {\n if (data.slice && data.type != null) {\n //Blob 测试用\n data = { blob: data };\n }\n var sampleRate = data.sampleRate || 16000,\n bitRate = data.bitRate || 16;\n if (!data.sampleRate || !data.bitRate) {\n console.warn('pcm2wav必须提供sampleRate和bitRate');\n }\n if (!Recorder.prototype.wav) {\n False('pcm2wav必须先加载wav编码器wav.js');\n return;\n }\n\n var reader = new FileReader();\n reader.onloadend = function () {\n var pcm;\n if (bitRate == 8) {\n //8位转成16位\n var u8arr = new Uint8Array(reader.result);\n pcm = new Int16Array(u8arr.length);\n for (var j = 0; j < u8arr.length; j++) {\n pcm[j] = (u8arr[j] - 128) << 8;\n }\n } else {\n pcm = new Int16Array(reader.result);\n }\n\n Recorder({\n type: 'wav',\n sampleRate: sampleRate,\n bitRate: bitRate,\n })\n .mock(pcm, sampleRate)\n .stop(function (wavBlob, duration) {\n True(wavBlob, duration);\n }, False);\n };\n reader.readAsArrayBuffer(data.blob);\n };\n}\n"],"names":[],"mappings":"AAQO,SAAS,mBAAmB,UAAU;AAG3C,WAAS,UAAU,UAAU;AAAA,IAC3B,QAAQ;AAAA,IACR,SACE;AAAA,EACH;AACD,WAAS,UAAU,MAAM,SAAU,KAAK,MAAM,OAAO;AACnD,QAAI,OAAO,MACT,MAAM,KAAK,KACX,OAAO,IAAI,QACX,UAAU,IAAI,WAAW,IAAI,IAAI;AAEnC,QAAI,SAAS,IAAI,YAAY,QAAQ,UAAU,EAAE;AACjD,QAAI,OAAO,IAAI,SAAS,MAAM;AAC9B,QAAI,SAAS;AAGb,QAAI,WAAW,GAAG;AAChB,eAAS,IAAI,GAAG,IAAI,MAAM,KAAK,UAAU;AAEvC,YAAI,OAAO,IAAI,CAAC,KAAK,KAAK;AAC1B,aAAK,QAAQ,QAAQ,KAAK,IAAI;AAAA,MACtC;AAAA,IACA,OAAW;AACL,eAAS,IAAI,GAAG,IAAI,MAAM,KAAK,UAAU,GAAG;AAC1C,aAAK,SAAS,QAAQ,IAAI,CAAC,GAAG,IAAI;AAAA,MAC1C;AAAA,IACA;AAEI,SAAK,IAAI,KAAK,CAAC,KAAK,MAAM,GAAG,EAAE,MAAM,YAAW,CAAE,CAAC;AAAA,EACpD;AAYD,WAAS,UAAU,SAAU,MAAM,MAAM,OAAO;AAC9C,QAAI,KAAK,SAAS,KAAK,QAAQ,MAAM;AAEnC,aAAO,EAAE,MAAM,KAAM;AAAA,IAC3B;AACI,QAAI,aAAa,KAAK,cAAc,MAClC,UAAU,KAAK,WAAW;AAC5B,QAAI,CAAC,KAAK,cAAc,CAAC,KAAK,SAAS;AACrC,cAAQ,KAAK,+BAA+B;AAAA,IAClD;AACI,QAAI,CAAC,SAAS,UAAU,KAAK;AAC3B,YAAM,0BAA0B;AAChC;AAAA,IACN;AAEI,QAAI,SAAS,IAAI,WAAY;AAC7B,WAAO,YAAY,WAAY;AAC7B,UAAI;AACJ,UAAI,WAAW,GAAG;AAEhB,YAAI,QAAQ,IAAI,WAAW,OAAO,MAAM;AACxC,cAAM,IAAI,WAAW,MAAM,MAAM;AACjC,iBAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,cAAI,CAAC,IAAK,MAAM,CAAC,IAAI,OAAQ;AAAA,QACvC;AAAA,MACA,OAAa;AACL,cAAM,IAAI,WAAW,OAAO,MAAM;AAAA,MAC1C;AAEM,eAAS;AAAA,QACP,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MACD,CAAA,EACE,KAAK,KAAK,UAAU,EACpB,KAAK,SAAU,SAAS,UAAU;AACjC,aAAK,SAAS,QAAQ;AAAA,MACvB,GAAE,KAAK;AAAA,IACX;AACD,WAAO,kBAAkB,KAAK,IAAI;AAAA,EACnC;AACH;"}