@chat-lab/ui 0.1.0-beta.12 → 0.1.0-beta.14

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 (878) hide show
  1. package/dist/_virtual/index.cjs +2 -2
  2. package/dist/_virtual/index.js +2 -2
  3. package/dist/_virtual/index2.cjs +2 -2
  4. package/dist/_virtual/index2.js +2 -2
  5. package/dist/_virtual/index3.cjs +2 -2
  6. package/dist/_virtual/index3.js +2 -2
  7. package/dist/_virtual/index4.cjs +2 -2
  8. package/dist/_virtual/index4.js +2 -2
  9. package/dist/assets/AbortMessage.cjs +10 -0
  10. package/dist/assets/AbortMessage.cjs.map +1 -0
  11. package/dist/assets/AbortMessage.d.ts +5 -0
  12. package/dist/assets/AbortMessage.d.ts.map +1 -0
  13. package/dist/assets/AbortMessage.js +8 -0
  14. package/dist/assets/AbortMessage.js.map +1 -0
  15. package/dist/assets/Download.cjs +10 -0
  16. package/dist/assets/Download.cjs.map +1 -0
  17. package/dist/assets/Download.d.ts +5 -0
  18. package/dist/assets/Download.d.ts.map +1 -0
  19. package/dist/assets/Download.js +8 -0
  20. package/dist/assets/Download.js.map +1 -0
  21. package/dist/assets/Edit.cjs +8 -0
  22. package/dist/assets/Edit.cjs.map +1 -0
  23. package/dist/assets/Edit.js +6 -0
  24. package/dist/assets/Edit.js.map +1 -0
  25. package/dist/components/Chatkit/index.cjs +9 -10
  26. package/dist/components/Chatkit/index.cjs.map +1 -1
  27. package/dist/components/Chatkit/index.d.ts.map +1 -1
  28. package/dist/components/Chatkit/index.js +7 -8
  29. package/dist/components/Chatkit/index.js.map +1 -1
  30. package/dist/components/Chatkit/ref.cjs +0 -1
  31. package/dist/components/Chatkit/ref.cjs.map +1 -1
  32. package/dist/components/Chatkit/ref.d.ts.map +1 -1
  33. package/dist/components/Chatkit/ref.js +0 -1
  34. package/dist/components/Chatkit/ref.js.map +1 -1
  35. package/dist/components/Chatkit/types.d.ts +1 -0
  36. package/dist/components/Chatkit/types.d.ts.map +1 -1
  37. package/dist/components/SwitchAgentModal/index.cjs +111 -12
  38. package/dist/components/SwitchAgentModal/index.cjs.map +1 -1
  39. package/dist/components/SwitchAgentModal/index.d.ts.map +1 -1
  40. package/dist/components/SwitchAgentModal/index.js +113 -14
  41. package/dist/components/SwitchAgentModal/index.js.map +1 -1
  42. package/dist/components/ThreadOptionsMenu.cjs +64 -0
  43. package/dist/components/ThreadOptionsMenu.cjs.map +1 -0
  44. package/dist/components/ThreadOptionsMenu.js +62 -0
  45. package/dist/components/ThreadOptionsMenu.js.map +1 -0
  46. package/dist/components/assistant-ui/index.module.less.cjs +6 -0
  47. package/dist/components/assistant-ui/index.module.less.cjs.map +1 -0
  48. package/dist/components/assistant-ui/index.module.less.js +4 -0
  49. package/dist/components/assistant-ui/index.module.less.js.map +1 -0
  50. package/dist/components/assistant-ui/markdown-text.cjs +42 -4
  51. package/dist/components/assistant-ui/markdown-text.cjs.map +1 -1
  52. package/dist/components/assistant-ui/markdown-text.d.ts +1 -0
  53. package/dist/components/assistant-ui/markdown-text.d.ts.map +1 -1
  54. package/dist/components/assistant-ui/markdown-text.js +42 -4
  55. package/dist/components/assistant-ui/markdown-text.js.map +1 -1
  56. package/dist/components/assistant-ui/shiki-highlighter.cjs +1 -1
  57. package/dist/components/assistant-ui/shiki-highlighter.cjs.map +1 -1
  58. package/dist/components/assistant-ui/shiki-highlighter.js +1 -1
  59. package/dist/components/assistant-ui/shiki-highlighter.js.map +1 -1
  60. package/dist/components/assistant-ui/thread.cjs +49 -6
  61. package/dist/components/assistant-ui/thread.cjs.map +1 -1
  62. package/dist/components/assistant-ui/thread.d.ts +1 -0
  63. package/dist/components/assistant-ui/thread.d.ts.map +1 -1
  64. package/dist/components/assistant-ui/thread.js +52 -9
  65. package/dist/components/assistant-ui/thread.js.map +1 -1
  66. package/dist/components/assistant-ui/tooltip-icon-button.d.ts +1 -1
  67. package/dist/components/thread-list.cjs +100 -0
  68. package/dist/components/thread-list.cjs.map +1 -0
  69. package/dist/components/thread-list.js +98 -0
  70. package/dist/components/thread-list.js.map +1 -0
  71. package/dist/components/ui/button.cjs.map +1 -1
  72. package/dist/components/ui/button.d.ts +1 -1
  73. package/dist/components/ui/button.js.map +1 -1
  74. package/dist/components/ui/dialog.cjs +1 -1
  75. package/dist/components/ui/dialog.cjs.map +1 -1
  76. package/dist/components/ui/dialog.d.ts.map +1 -1
  77. package/dist/components/ui/dialog.js +1 -1
  78. package/dist/components/ui/dialog.js.map +1 -1
  79. package/dist/components/ui/toast.cjs +1 -1
  80. package/dist/components/ui/toast.cjs.map +1 -1
  81. package/dist/components/ui/toast.js +1 -1
  82. package/dist/components/ui/toast.js.map +1 -1
  83. package/dist/components/ui/tooltip.cjs.map +1 -1
  84. package/dist/components/ui/tooltip.d.ts.map +1 -1
  85. package/dist/components/ui/tooltip.js.map +1 -1
  86. package/dist/components/welcome.cjs +13 -0
  87. package/dist/components/welcome.cjs.map +1 -0
  88. package/dist/components/welcome.d.ts +7 -0
  89. package/dist/components/welcome.d.ts.map +1 -0
  90. package/dist/components/welcome.js +11 -0
  91. package/dist/components/welcome.js.map +1 -0
  92. package/dist/hooks/useDebounce.cjs +27 -0
  93. package/dist/hooks/useDebounce.cjs.map +1 -0
  94. package/dist/hooks/useDebounce.d.ts +8 -0
  95. package/dist/hooks/useDebounce.d.ts.map +1 -0
  96. package/dist/hooks/useDebounce.js +25 -0
  97. package/dist/hooks/useDebounce.js.map +1 -0
  98. package/dist/index.css +2 -2
  99. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/memoization.cjs +38 -0
  100. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/memoization.cjs.map +1 -0
  101. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/memoization.js +34 -0
  102. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/memoization.js.map +1 -0
  103. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeBlock.cjs +31 -0
  104. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeBlock.cjs.map +1 -0
  105. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeBlock.js +29 -0
  106. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeBlock.js.map +1 -0
  107. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeOverride.cjs +82 -0
  108. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeOverride.cjs.map +1 -0
  109. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeOverride.js +80 -0
  110. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/CodeOverride.js.map +1 -0
  111. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/PreOverride.cjs +19 -0
  112. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/PreOverride.cjs.map +1 -0
  113. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/PreOverride.js +15 -0
  114. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/PreOverride.js.map +1 -0
  115. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/defaultComponents.cjs +15 -0
  116. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/defaultComponents.cjs.map +1 -0
  117. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/defaultComponents.js +10 -0
  118. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/defaultComponents.js.map +1 -0
  119. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/withDefaults.cjs +18 -0
  120. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/withDefaults.cjs.map +1 -0
  121. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/withDefaults.js +16 -0
  122. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/overrides/withDefaults.js.map +1 -0
  123. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/primitives/MarkdownText.cjs +89 -0
  124. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/primitives/MarkdownText.cjs.map +1 -0
  125. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/primitives/MarkdownText.js +87 -0
  126. package/dist/node_modules/.pnpm/@assistant-ui_react-markdown@0.11.4_@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@type_petnugx7bmlwmjkh2xody2xdzq/node_modules/@assistant-ui/react-markdown/dist/primitives/MarkdownText.js.map +1 -0
  127. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/AssistantClient.cjs +133 -0
  128. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/AssistantClient.cjs.map +1 -0
  129. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/AssistantClient.js +131 -0
  130. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/AssistantClient.js.map +1 -0
  131. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/EventContext.cjs +18 -0
  132. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/EventContext.cjs.map +1 -0
  133. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/EventContext.js +15 -0
  134. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/EventContext.js.map +1 -0
  135. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContext.cjs +19 -0
  136. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContext.cjs.map +1 -0
  137. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContext.js +16 -0
  138. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContext.js.map +1 -0
  139. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContextClient.cjs +21 -0
  140. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContextClient.cjs.map +1 -0
  141. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContextClient.js +19 -0
  142. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ModelContextClient.js.map +1 -0
  143. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIClient.cjs +74 -0
  144. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIClient.cjs.map +1 -0
  145. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIClient.js +72 -0
  146. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIClient.js.map +1 -0
  147. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIContext.cjs +18 -0
  148. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIContext.cjs.map +1 -0
  149. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIContext.js +15 -0
  150. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/ToolUIContext.js.map +1 -0
  151. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/Tools.cjs +56 -0
  152. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/Tools.cjs.map +1 -0
  153. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/Tools.js +54 -0
  154. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/Tools.js.map +1 -0
  155. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/util-hooks/tapLookupResources.cjs +23 -0
  156. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/util-hooks/tapLookupResources.cjs.map +1 -0
  157. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/util-hooks/tapLookupResources.js +21 -0
  158. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/client/util-hooks/tapLookupResources.js.map +1 -0
  159. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/ReadonlyStore.cjs +9 -0
  160. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/ReadonlyStore.cjs.map +1 -0
  161. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/ReadonlyStore.js +7 -0
  162. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/ReadonlyStore.js.map +1 -0
  163. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/AttachmentByIndexProvider.cjs +32 -0
  164. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/AttachmentByIndexProvider.cjs.map +1 -0
  165. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/AttachmentByIndexProvider.js +29 -0
  166. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/AttachmentByIndexProvider.js.map +1 -0
  167. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/MessageByIndexProvider.cjs +37 -0
  168. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/MessageByIndexProvider.cjs.map +1 -0
  169. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/MessageByIndexProvider.js +35 -0
  170. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/MessageByIndexProvider.js.map +1 -0
  171. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/PartByIndexProvider.cjs +20 -0
  172. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/PartByIndexProvider.cjs.map +1 -0
  173. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/PartByIndexProvider.js +18 -0
  174. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/PartByIndexProvider.js.map +1 -0
  175. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/TextMessagePartProvider.cjs +50 -0
  176. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/TextMessagePartProvider.cjs.map +1 -0
  177. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/TextMessagePartProvider.js +48 -0
  178. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/TextMessagePartProvider.js.map +1 -0
  179. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/ThreadViewportProvider.cjs +38 -0
  180. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/ThreadViewportProvider.cjs.map +1 -0
  181. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/ThreadViewportProvider.js +36 -0
  182. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/providers/ThreadViewportProvider.js.map +1 -0
  183. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/AssistantApiContext.cjs +175 -0
  184. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/AssistantApiContext.cjs.map +1 -0
  185. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/AssistantApiContext.js +168 -0
  186. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/AssistantApiContext.js.map +1 -0
  187. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/ThreadViewportContext.cjs +17 -0
  188. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/ThreadViewportContext.cjs.map +1 -0
  189. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/ThreadViewportContext.js +13 -0
  190. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/ThreadViewportContext.js.map +1 -0
  191. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantEvent.cjs +22 -0
  192. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantEvent.cjs.map +1 -0
  193. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantEvent.js +20 -0
  194. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantEvent.js.map +1 -0
  195. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantState.cjs +54 -0
  196. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantState.cjs.map +1 -0
  197. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantState.js +52 -0
  198. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/hooks/useAssistantState.js.map +1 -0
  199. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextHook.cjs +17 -0
  200. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextHook.cjs.map +1 -0
  201. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextHook.js +15 -0
  202. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextHook.js.map +1 -0
  203. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextStoreHook.cjs +32 -0
  204. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextStoreHook.cjs.map +1 -0
  205. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextStoreHook.js +30 -0
  206. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/react/utils/createContextStoreHook.js.map +1 -0
  207. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/stores/ThreadViewport.cjs +24 -0
  208. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/stores/ThreadViewport.cjs.map +1 -0
  209. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/stores/ThreadViewport.js +22 -0
  210. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/context/stores/ThreadViewport.js.map +1 -0
  211. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/devtools/DevToolsHooks.cjs +80 -0
  212. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/devtools/DevToolsHooks.cjs.map +1 -0
  213. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/devtools/DevToolsHooks.js +78 -0
  214. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/devtools/DevToolsHooks.js.map +1 -0
  215. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/internal.cjs +33 -0
  216. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/internal.cjs.map +1 -0
  217. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/internal.js +16 -0
  218. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/internal.js.map +1 -0
  219. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/AssistantRuntimeProvider.cjs +28 -0
  220. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/AssistantRuntimeProvider.cjs.map +1 -0
  221. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/AssistantRuntimeProvider.js +25 -0
  222. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/AssistantRuntimeProvider.js.map +1 -0
  223. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/RuntimeAdapter.cjs +24 -0
  224. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/RuntimeAdapter.cjs.map +1 -0
  225. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/RuntimeAdapter.js +22 -0
  226. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/RuntimeAdapter.js.map +1 -0
  227. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/AttachmentRuntimeClient.cjs +25 -0
  228. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/AttachmentRuntimeClient.cjs.map +1 -0
  229. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/AttachmentRuntimeClient.js +23 -0
  230. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/AttachmentRuntimeClient.js.map +1 -0
  231. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ComposerRuntimeClient.cjs +101 -0
  232. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ComposerRuntimeClient.cjs.map +1 -0
  233. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ComposerRuntimeClient.js +99 -0
  234. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ComposerRuntimeClient.js.map +1 -0
  235. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/EventManagerRuntimeClient.cjs +47 -0
  236. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/EventManagerRuntimeClient.cjs.map +1 -0
  237. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/EventManagerRuntimeClient.js +45 -0
  238. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/EventManagerRuntimeClient.js.map +1 -0
  239. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessagePartRuntimeClient.cjs +24 -0
  240. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessagePartRuntimeClient.cjs.map +1 -0
  241. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessagePartRuntimeClient.js +22 -0
  242. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessagePartRuntimeClient.js.map +1 -0
  243. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessageRuntimeClient.cjs +119 -0
  244. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessageRuntimeClient.cjs.map +1 -0
  245. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessageRuntimeClient.js +117 -0
  246. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/MessageRuntimeClient.js.map +1 -0
  247. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListItemRuntimeClient.cjs +53 -0
  248. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListItemRuntimeClient.cjs.map +1 -0
  249. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListItemRuntimeClient.js +51 -0
  250. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListItemRuntimeClient.js.map +1 -0
  251. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListRuntimeClient.cjs +79 -0
  252. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListRuntimeClient.cjs.map +1 -0
  253. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListRuntimeClient.js +77 -0
  254. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadListRuntimeClient.js.map +1 -0
  255. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadRuntimeClient.cjs +122 -0
  256. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadRuntimeClient.cjs.map +1 -0
  257. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadRuntimeClient.js +120 -0
  258. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/client/ThreadRuntimeClient.js.map +1 -0
  259. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AssistantRuntime.cjs +49 -0
  260. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AssistantRuntime.cjs.map +1 -0
  261. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AssistantRuntime.js +47 -0
  262. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AssistantRuntime.js.map +1 -0
  263. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AttachmentRuntime.cjs +61 -0
  264. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AttachmentRuntime.cjs.map +1 -0
  265. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AttachmentRuntime.js +56 -0
  266. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AttachmentRuntime.js.map +1 -0
  267. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ComposerRuntime.cjs +227 -0
  268. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ComposerRuntime.cjs.map +1 -0
  269. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ComposerRuntime.js +223 -0
  270. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ComposerRuntime.js.map +1 -0
  271. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessagePartRuntime.cjs +67 -0
  272. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessagePartRuntime.cjs.map +1 -0
  273. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessagePartRuntime.js +65 -0
  274. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessagePartRuntime.js.map +1 -0
  275. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessageRuntime.cjs +209 -0
  276. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessageRuntime.cjs.map +1 -0
  277. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessageRuntime.js +206 -0
  278. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessageRuntime.js.map +1 -0
  279. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListItemRuntime.cjs +86 -0
  280. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListItemRuntime.cjs.map +1 -0
  281. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListItemRuntime.js +84 -0
  282. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListItemRuntime.js.map +1 -0
  283. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListRuntime.cjs +166 -0
  284. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListRuntime.cjs.map +1 -0
  285. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListRuntime.js +164 -0
  286. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListRuntime.js.map +1 -0
  287. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadRuntime.cjs +245 -0
  288. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadRuntime.cjs.map +1 -0
  289. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadRuntime.js +242 -0
  290. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadRuntime.js.map +1 -0
  291. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/BaseSubject.cjs +33 -0
  292. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/BaseSubject.cjs.map +1 -0
  293. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/BaseSubject.js +31 -0
  294. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/BaseSubject.js.map +1 -0
  295. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/EventSubscriptionSubject.cjs +39 -0
  296. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/EventSubscriptionSubject.cjs.map +1 -0
  297. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/EventSubscriptionSubject.js +37 -0
  298. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/EventSubscriptionSubject.js.map +1 -0
  299. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/LazyMemoizeSubject.cjs +39 -0
  300. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/LazyMemoizeSubject.cjs.map +1 -0
  301. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/LazyMemoizeSubject.js +37 -0
  302. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/LazyMemoizeSubject.js.map +1 -0
  303. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/NestedSubscriptionSubject.cjs +43 -0
  304. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/NestedSubscriptionSubject.cjs.map +1 -0
  305. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/NestedSubscriptionSubject.js +41 -0
  306. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/NestedSubscriptionSubject.js.map +1 -0
  307. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/SKIP_UPDATE.cjs +7 -0
  308. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/SKIP_UPDATE.cjs.map +1 -0
  309. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/SKIP_UPDATE.js +5 -0
  310. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/SKIP_UPDATE.js.map +1 -0
  311. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/ShallowMemoizeSubject.cjs +43 -0
  312. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/ShallowMemoizeSubject.cjs.map +1 -0
  313. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/ShallowMemoizeSubject.js +41 -0
  314. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/ShallowMemoizeSubject.js.map +1 -0
  315. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/shallowEqual.cjs +17 -0
  316. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/shallowEqual.cjs.map +1 -0
  317. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/shallowEqual.js +15 -0
  318. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/subscribable/shallowEqual.js.map +1 -0
  319. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.cjs +13 -0
  320. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.cjs.map +1 -0
  321. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.js +11 -0
  322. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.js.map +1 -0
  323. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.cjs +197 -0
  324. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.cjs.map +1 -0
  325. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.js +195 -0
  326. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.js.map +1 -0
  327. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.cjs +165 -0
  328. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.cjs.map +1 -0
  329. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.js +163 -0
  330. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/BaseComposerRuntimeCore.js.map +1 -0
  331. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.cjs +50 -0
  332. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.cjs.map +1 -0
  333. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.js +48 -0
  334. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultEditComposerRuntimeCore.js.map +1 -0
  335. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.cjs +43 -0
  336. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.cjs.map +1 -0
  337. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.js +41 -0
  338. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/composer/DefaultThreadComposerRuntimeCore.js.map +1 -0
  339. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.cjs +17 -0
  340. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.cjs.map +1 -0
  341. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.js +15 -0
  342. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseAssistantRuntimeCore.js.map +1 -0
  343. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.cjs +163 -0
  344. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.cjs.map +1 -0
  345. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.js +161 -0
  346. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/BaseThreadRuntimeCore.js.map +1 -0
  347. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.cjs +27 -0
  348. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.cjs.map +1 -0
  349. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.js +25 -0
  350. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreRuntimeCore.js.map +1 -0
  351. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.cjs +175 -0
  352. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.cjs.map +1 -0
  353. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.js +173 -0
  354. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadListRuntimeCore.js.map +1 -0
  355. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.cjs +249 -0
  356. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.cjs.map +1 -0
  357. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.js +246 -0
  358. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreThreadRuntimeCore.js.map +1 -0
  359. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.cjs +17 -0
  360. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.cjs.map +1 -0
  361. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.js +15 -0
  362. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageConverter.js.map +1 -0
  363. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.cjs +137 -0
  364. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.cjs.map +1 -0
  365. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.js +135 -0
  366. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.js.map +1 -0
  367. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/auto-status.cjs +52 -0
  368. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/auto-status.cjs.map +1 -0
  369. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/auto-status.js +49 -0
  370. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/auto-status.js.map +1 -0
  371. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.cjs +12 -0
  372. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.cjs.map +1 -0
  373. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.js +9 -0
  374. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/getExternalStoreMessage.js.map +1 -0
  375. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.cjs +22 -0
  376. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.cjs.map +1 -0
  377. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.js +20 -0
  378. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.js.map +1 -0
  379. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.cjs +26 -0
  380. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.cjs.map +1 -0
  381. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.js +24 -0
  382. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.js.map +1 -0
  383. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.cjs +38 -0
  384. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.cjs.map +1 -0
  385. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.js +36 -0
  386. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/remote-thread-list/BaseSubscribable.js.map +1 -0
  387. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/utils/MessageRepository.cjs +381 -0
  388. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/utils/MessageRepository.cjs.map +1 -0
  389. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/utils/MessageRepository.js +378 -0
  390. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/utils/MessageRepository.js.map +1 -0
  391. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/util-hooks/tapSubscribable.cjs +19 -0
  392. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/util-hooks/tapSubscribable.cjs.map +1 -0
  393. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/util-hooks/tapSubscribable.js +17 -0
  394. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/legacy-runtime/util-hooks/tapSubscribable.js.map +1 -0
  395. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/ModelContextTypes.cjs +45 -0
  396. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/ModelContextTypes.cjs.map +1 -0
  397. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/ModelContextTypes.js +43 -0
  398. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/ModelContextTypes.js.map +1 -0
  399. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/makeAssistantToolUI.cjs +15 -0
  400. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/makeAssistantToolUI.cjs.map +1 -0
  401. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/makeAssistantToolUI.js +13 -0
  402. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/makeAssistantToolUI.js.map +1 -0
  403. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/toolbox.cjs +9 -0
  404. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/toolbox.cjs.map +1 -0
  405. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/toolbox.js +6 -0
  406. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/toolbox.js.map +1 -0
  407. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/useAssistantToolUI.cjs +15 -0
  408. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/useAssistantToolUI.cjs.map +1 -0
  409. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/useAssistantToolUI.js +13 -0
  410. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/model-context/useAssistantToolUI.js.map +1 -0
  411. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarCopy.cjs +50 -0
  412. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarCopy.cjs.map +1 -0
  413. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarCopy.js +48 -0
  414. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarCopy.js.map +1 -0
  415. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarReload.cjs +25 -0
  416. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarReload.cjs.map +1 -0
  417. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarReload.js +23 -0
  418. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarReload.js.map +1 -0
  419. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarRoot.cjs +27 -0
  420. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarRoot.cjs.map +1 -0
  421. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarRoot.js +25 -0
  422. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/ActionBarRoot.js.map +1 -0
  423. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/useActionBarFloatStatus.cjs +29 -0
  424. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/useActionBarFloatStatus.cjs.map +1 -0
  425. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/useActionBarFloatStatus.js +26 -0
  426. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/actionBar/useActionBarFloatStatus.js.map +1 -0
  427. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentName.cjs +13 -0
  428. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentName.cjs.map +1 -0
  429. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentName.js +11 -0
  430. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentName.js.map +1 -0
  431. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRemove.cjs +20 -0
  432. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRemove.cjs.map +1 -0
  433. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRemove.js +18 -0
  434. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRemove.js.map +1 -0
  435. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRoot.cjs +13 -0
  436. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRoot.cjs.map +1 -0
  437. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRoot.js +11 -0
  438. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/attachment/AttachmentRoot.js.map +1 -0
  439. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerCount.cjs +17 -0
  440. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerCount.cjs.map +1 -0
  441. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerCount.js +15 -0
  442. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerCount.js.map +1 -0
  443. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNext.cjs +29 -0
  444. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNext.cjs.map +1 -0
  445. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNext.js +27 -0
  446. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNext.js.map +1 -0
  447. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNumber.cjs +17 -0
  448. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNumber.cjs.map +1 -0
  449. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNumber.js +15 -0
  450. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerNumber.js.map +1 -0
  451. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerPrevious.cjs +29 -0
  452. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerPrevious.cjs.map +1 -0
  453. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerPrevious.js +27 -0
  454. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerPrevious.js.map +1 -0
  455. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerRoot.cjs +14 -0
  456. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerRoot.cjs.map +1 -0
  457. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerRoot.js +12 -0
  458. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/branchPicker/BranchPickerRoot.js.map +1 -0
  459. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAddAttachment.cjs +48 -0
  460. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAddAttachment.cjs.map +1 -0
  461. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAddAttachment.js +46 -0
  462. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAddAttachment.js.map +1 -0
  463. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAttachments.cjs +56 -0
  464. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAttachments.cjs.map +1 -0
  465. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAttachments.js +53 -0
  466. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerAttachments.js.map +1 -0
  467. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerCancel.cjs +23 -0
  468. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerCancel.cjs.map +1 -0
  469. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerCancel.js +21 -0
  470. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerCancel.js.map +1 -0
  471. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerInput.cjs +118 -0
  472. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerInput.cjs.map +1 -0
  473. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerInput.js +116 -0
  474. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerInput.js.map +1 -0
  475. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerRoot.cjs +28 -0
  476. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerRoot.cjs.map +1 -0
  477. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerRoot.js +26 -0
  478. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerRoot.js.map +1 -0
  479. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerSend.cjs +26 -0
  480. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerSend.cjs.map +1 -0
  481. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerSend.js +23 -0
  482. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/composer/ComposerSend.js.map +1 -0
  483. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorMessage.cjs +18 -0
  484. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorMessage.cjs.map +1 -0
  485. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorMessage.js +16 -0
  486. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorMessage.js.map +1 -0
  487. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorRoot.cjs +13 -0
  488. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorRoot.cjs.map +1 -0
  489. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorRoot.js +11 -0
  490. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/error/ErrorRoot.js.map +1 -0
  491. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageAttachments.cjs +57 -0
  492. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageAttachments.cjs.map +1 -0
  493. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageAttachments.js +54 -0
  494. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageAttachments.js.map +1 -0
  495. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageError.cjs +15 -0
  496. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageError.cjs.map +1 -0
  497. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageError.js +13 -0
  498. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageError.js.map +1 -0
  499. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageIf.cjs +48 -0
  500. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageIf.cjs.map +1 -0
  501. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageIf.js +46 -0
  502. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageIf.js.map +1 -0
  503. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageParts.cjs +253 -0
  504. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageParts.cjs.map +1 -0
  505. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageParts.js +250 -0
  506. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageParts.js.map +1 -0
  507. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageRoot.cjs +43 -0
  508. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageRoot.cjs.map +1 -0
  509. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageRoot.js +41 -0
  510. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/message/MessageRoot.js.map +1 -0
  511. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartImage.cjs +15 -0
  512. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartImage.cjs.map +1 -0
  513. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartImage.js +13 -0
  514. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartImage.js.map +1 -0
  515. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartInProgress.cjs +14 -0
  516. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartInProgress.cjs.map +1 -0
  517. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartInProgress.js +12 -0
  518. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartInProgress.js.map +1 -0
  519. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartText.cjs +15 -0
  520. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartText.cjs.map +1 -0
  521. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartText.js +13 -0
  522. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/MessagePartText.js.map +1 -0
  523. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartImage.cjs +17 -0
  524. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartImage.cjs.map +1 -0
  525. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartImage.js +15 -0
  526. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartImage.js.map +1 -0
  527. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartText.cjs +17 -0
  528. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartText.cjs.map +1 -0
  529. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartText.js +15 -0
  530. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/messagePart/useMessagePartText.js.map +1 -0
  531. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/reasoning/useScrollLock.cjs +49 -0
  532. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/reasoning/useScrollLock.cjs.map +1 -0
  533. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/reasoning/useScrollLock.js +47 -0
  534. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/reasoning/useScrollLock.js.map +1 -0
  535. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadIf.cjs +27 -0
  536. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadIf.cjs.map +1 -0
  537. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadIf.js +25 -0
  538. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadIf.js.map +1 -0
  539. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadMessages.cjs +82 -0
  540. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadMessages.cjs.map +1 -0
  541. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadMessages.js +78 -0
  542. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadMessages.js.map +1 -0
  543. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadRoot.cjs +13 -0
  544. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadRoot.cjs.map +1 -0
  545. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadRoot.js +11 -0
  546. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadRoot.js.map +1 -0
  547. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadScrollToBottom.cjs +22 -0
  548. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadScrollToBottom.cjs.map +1 -0
  549. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadScrollToBottom.js +20 -0
  550. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadScrollToBottom.js.map +1 -0
  551. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadViewport.cjs +24 -0
  552. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadViewport.cjs.map +1 -0
  553. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadViewport.js +22 -0
  554. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/ThreadViewport.js.map +1 -0
  555. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/useThreadViewportAutoScroll.cjs +66 -0
  556. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/useThreadViewportAutoScroll.cjs.map +1 -0
  557. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/useThreadViewportAutoScroll.js +64 -0
  558. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/primitives/thread/useThreadViewportAutoScroll.js.map +1 -0
  559. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/types/EventTypes.cjs +23 -0
  560. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/types/EventTypes.cjs.map +1 -0
  561. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/types/EventTypes.js +20 -0
  562. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/types/EventTypes.js.map +1 -0
  563. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/CompositeContextProvider.cjs +34 -0
  564. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/CompositeContextProvider.cjs.map +1 -0
  565. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/CompositeContextProvider.js +32 -0
  566. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/CompositeContextProvider.js.map +1 -0
  567. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/createActionButton.cjs +37 -0
  568. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/createActionButton.cjs.map +1 -0
  569. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/createActionButton.js +35 -0
  570. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/createActionButton.js.map +1 -0
  571. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/getThreadMessageText.cjs +12 -0
  572. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/getThreadMessageText.cjs.map +1 -0
  573. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/getThreadMessageText.js +10 -0
  574. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/getThreadMessageText.js.map +1 -0
  575. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useManagedRef.cjs +23 -0
  576. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useManagedRef.cjs.map +1 -0
  577. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useManagedRef.js +21 -0
  578. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useManagedRef.js.map +1 -0
  579. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnResizeContent.cjs +36 -0
  580. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnResizeContent.cjs.map +1 -0
  581. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnResizeContent.js +34 -0
  582. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnResizeContent.js.map +1 -0
  583. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnScrollToBottom.cjs +16 -0
  584. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnScrollToBottom.cjs.map +1 -0
  585. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnScrollToBottom.js +14 -0
  586. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/hooks/useOnScrollToBottom.js.map +1 -0
  587. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/idUtils.cjs +15 -0
  588. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/idUtils.cjs.map +1 -0
  589. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/idUtils.js +12 -0
  590. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/idUtils.js.map +1 -0
  591. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/SmoothContext.cjs +47 -0
  592. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/SmoothContext.cjs.map +1 -0
  593. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/SmoothContext.js +42 -0
  594. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/SmoothContext.js.map +1 -0
  595. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/useSmooth.cjs +110 -0
  596. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/useSmooth.cjs.map +1 -0
  597. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/useSmooth.js +108 -0
  598. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/smooth/useSmooth.js.map +1 -0
  599. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/derived-scopes.cjs +73 -0
  600. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/derived-scopes.cjs.map +1 -0
  601. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/derived-scopes.js +70 -0
  602. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/derived-scopes.js.map +1 -0
  603. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/store.cjs +23 -0
  604. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/store.cjs.map +1 -0
  605. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/store.js +21 -0
  606. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/store.js.map +1 -0
  607. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/tap-api.cjs +56 -0
  608. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/tap-api.cjs.map +1 -0
  609. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/tap-api.js +54 -0
  610. package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_reac_h27bdpc5nvpnouvfykxevijmza/node_modules/@assistant-ui/react/dist/utils/tap-store/tap-api.js.map +1 -0
  611. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@17.0.2_react@17.0.2/node_modules/@radix-ui/react-direction/dist/index.cjs +33 -0
  612. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@17.0.2_react@17.0.2/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -0
  613. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@17.0.2_react@17.0.2/node_modules/@radix-ui/react-direction/dist/index.js +12 -0
  614. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@17.0.2_react@17.0.2/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
  615. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17_dxnrbz42ochhym3lfihkvwh43e/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +270 -0
  616. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17_dxnrbz42ochhym3lfihkvwh43e/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -0
  617. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17_dxnrbz42ochhym3lfihkvwh43e/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +235 -0
  618. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17_dxnrbz42ochhym3lfihkvwh43e/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
  619. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/@radix-ui/react-menu/dist/index.cjs +840 -0
  620. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -0
  621. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/@radix-ui/react-menu/dist/index.js +791 -0
  622. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.16_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
  623. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.11_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17._unzgkwd6mofnqpd3ix5vp6vba4/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +249 -0
  624. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.11_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17._unzgkwd6mofnqpd3ix5vp6vba4/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -0
  625. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.11_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17._unzgkwd6mofnqpd3ix5vp6vba4/node_modules/@radix-ui/react-roving-focus/dist/index.js +224 -0
  626. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.11_@types_react-dom@17.0.2_@types_react@17.0.2_react-dom@17._unzgkwd6mofnqpd3ix5vp6vba4/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
  627. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs +1 -1
  628. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +1 -1
  629. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.cjs +41 -0
  630. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.cjs.map +1 -1
  631. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +41 -1
  632. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js.map +1 -1
  633. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.cjs +50 -0
  634. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.cjs.map +1 -0
  635. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.js +48 -0
  636. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
  637. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.cjs +427 -0
  638. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.cjs.map +1 -0
  639. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.js +423 -0
  640. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.js.map +1 -0
  641. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.cjs +11 -0
  642. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +1 -0
  643. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.js +9 -0
  644. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
  645. package/dist/node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.cjs +328 -0
  646. package/dist/node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.cjs.map +1 -0
  647. package/dist/node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.js +326 -0
  648. package/dist/node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.js.map +1 -0
  649. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.cjs +92 -0
  650. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.cjs.map +1 -0
  651. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.js +90 -0
  652. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.js.map +1 -0
  653. package/dist/node_modules/.pnpm/hast-util-raw@9.1.0/node_modules/hast-util-raw/lib/index.cjs +671 -0
  654. package/dist/node_modules/.pnpm/hast-util-raw@9.1.0/node_modules/hast-util-raw/lib/index.cjs.map +1 -0
  655. package/dist/node_modules/.pnpm/hast-util-raw@9.1.0/node_modules/hast-util-raw/lib/index.js +669 -0
  656. package/dist/node_modules/.pnpm/hast-util-raw@9.1.0/node_modules/hast-util-raw/lib/index.js.map +1 -0
  657. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/index.cjs +571 -0
  658. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/index.cjs.map +1 -0
  659. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/index.js +569 -0
  660. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/index.js.map +1 -0
  661. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/schema.cjs +214 -0
  662. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/schema.cjs.map +1 -0
  663. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/schema.js +212 -0
  664. package/dist/node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/schema.js.map +1 -0
  665. package/dist/node_modules/.pnpm/hast-util-to-parse5@8.0.0/node_modules/hast-util-to-parse5/lib/index.cjs +328 -0
  666. package/dist/node_modules/.pnpm/hast-util-to-parse5@8.0.0/node_modules/hast-util-to-parse5/lib/index.cjs.map +1 -0
  667. package/dist/node_modules/.pnpm/hast-util-to-parse5@8.0.0/node_modules/hast-util-to-parse5/lib/index.js +326 -0
  668. package/dist/node_modules/.pnpm/hast-util-to-parse5@8.0.0/node_modules/hast-util-to-parse5/lib/index.js.map +1 -0
  669. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.cjs +315 -0
  670. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.cjs.map +1 -0
  671. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js +313 -0
  672. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js.map +1 -0
  673. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.cjs +26 -0
  674. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.cjs.map +1 -0
  675. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.js +23 -0
  676. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.js.map +1 -0
  677. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +51 -0
  678. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.map +1 -0
  679. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +49 -0
  680. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js.map +1 -0
  681. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/download.cjs +24 -0
  682. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/download.cjs.map +1 -0
  683. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/download.js +19 -0
  684. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/download.js.map +1 -0
  685. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/ellipsis.cjs +24 -0
  686. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/ellipsis.cjs.map +1 -0
  687. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/ellipsis.js +19 -0
  688. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/ellipsis.js.map +1 -0
  689. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/pen.cjs +28 -0
  690. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/pen.cjs.map +1 -0
  691. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/pen.js +23 -0
  692. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/pen.js.map +1 -0
  693. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/plus.cjs +23 -0
  694. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/plus.cjs.map +1 -0
  695. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/plus.js +18 -0
  696. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/plus.js.map +1 -0
  697. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/trash-2.cjs +26 -0
  698. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/trash-2.cjs.map +1 -0
  699. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/trash-2.js +21 -0
  700. package/dist/node_modules/.pnpm/lucide-react@0.552.0_react@17.0.2/node_modules/lucide-react/dist/esm/icons/trash-2.js.map +1 -0
  701. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.cjs +121 -0
  702. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.cjs.map +1 -0
  703. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.js +118 -0
  704. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.js.map +1 -0
  705. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.cjs +66 -0
  706. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.cjs.map +1 -0
  707. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js +66 -0
  708. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js.map +1 -0
  709. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.cjs +240 -0
  710. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.cjs.map +1 -0
  711. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.js +232 -0
  712. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.js.map +1 -0
  713. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.cjs +527 -0
  714. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.cjs.map +1 -0
  715. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.js +523 -0
  716. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.js.map +1 -0
  717. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.cjs +25 -0
  718. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.cjs.map +1 -0
  719. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.js +23 -0
  720. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.js.map +1 -0
  721. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.cjs +73 -0
  722. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.cjs.map +1 -0
  723. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.js +65 -0
  724. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.js.map +1 -0
  725. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.cjs +115 -0
  726. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.cjs.map +1 -0
  727. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.js +113 -0
  728. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.js.map +1 -0
  729. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.cjs +3235 -0
  730. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.cjs.map +1 -0
  731. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.js +3233 -0
  732. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.js.map +1 -0
  733. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.cjs +330 -0
  734. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.cjs.map +1 -0
  735. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.js +328 -0
  736. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.js.map +1 -0
  737. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.cjs +26 -0
  738. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.cjs.map +1 -0
  739. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.js +24 -0
  740. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.js.map +1 -0
  741. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.cjs +2717 -0
  742. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.cjs.map +1 -0
  743. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.js +2714 -0
  744. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.js.map +1 -0
  745. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.cjs +202 -0
  746. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.cjs.map +1 -0
  747. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.js +200 -0
  748. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.js.map +1 -0
  749. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.cjs +179 -0
  750. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.cjs.map +1 -0
  751. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.js +177 -0
  752. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.js.map +1 -0
  753. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/index.cjs +21 -0
  754. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/index.cjs.map +1 -0
  755. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/index.js +18 -0
  756. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/index.js.map +1 -0
  757. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/aria.cjs +64 -0
  758. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/aria.cjs.map +1 -0
  759. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/aria.js +62 -0
  760. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/aria.js.map +1 -0
  761. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/find.cjs +74 -0
  762. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/find.cjs.map +1 -0
  763. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/find.js +72 -0
  764. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/find.js.map +1 -0
  765. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/html.cjs +320 -0
  766. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/html.cjs.map +1 -0
  767. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/html.js +318 -0
  768. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/html.js.map +1 -0
  769. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/normalize.cjs +12 -0
  770. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/normalize.cjs.map +1 -0
  771. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/normalize.js +10 -0
  772. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/normalize.js.map +1 -0
  773. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/svg.cjs +566 -0
  774. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/svg.cjs.map +1 -0
  775. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/svg.js +564 -0
  776. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/svg.js.map +1 -0
  777. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-insensitive-transform.cjs +15 -0
  778. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +1 -0
  779. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-insensitive-transform.js +13 -0
  780. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
  781. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-sensitive-transform.cjs +13 -0
  782. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +1 -0
  783. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-sensitive-transform.js +11 -0
  784. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
  785. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/create.cjs +64 -0
  786. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/create.cjs.map +1 -0
  787. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/create.js +62 -0
  788. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/create.js.map +1 -0
  789. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/defined-info.cjs +49 -0
  790. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/defined-info.cjs.map +1 -0
  791. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/defined-info.js +47 -0
  792. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/defined-info.js.map +1 -0
  793. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/info.cjs +30 -0
  794. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/info.cjs.map +1 -0
  795. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/info.js +28 -0
  796. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/info.js.map +1 -0
  797. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/merge.cjs +32 -0
  798. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/merge.cjs.map +1 -0
  799. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/merge.js +30 -0
  800. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/merge.js.map +1 -0
  801. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/schema.cjs +33 -0
  802. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/schema.cjs.map +1 -0
  803. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/schema.js +31 -0
  804. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/schema.js.map +1 -0
  805. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/types.cjs +24 -0
  806. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/types.cjs.map +1 -0
  807. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/types.js +16 -0
  808. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/util/types.js.map +1 -0
  809. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xlink.cjs +22 -0
  810. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xlink.cjs.map +1 -0
  811. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xlink.js +20 -0
  812. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xlink.js.map +1 -0
  813. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xml.cjs +14 -0
  814. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xml.cjs.map +1 -0
  815. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xml.js +12 -0
  816. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xml.js.map +1 -0
  817. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xmlns.cjs +14 -0
  818. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xmlns.cjs.map +1 -0
  819. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xmlns.js +12 -0
  820. package/dist/node_modules/.pnpm/property-information@6.5.0/node_modules/property-information/lib/xmlns.js.map +1 -0
  821. package/dist/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.cjs +37 -0
  822. package/dist/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.cjs.map +1 -0
  823. package/dist/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js +35 -0
  824. package/dist/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js.map +1 -0
  825. package/dist/node_modules/.pnpm/rehype-sanitize@6.0.0/node_modules/rehype-sanitize/lib/index.cjs +34 -0
  826. package/dist/node_modules/.pnpm/rehype-sanitize@6.0.0/node_modules/rehype-sanitize/lib/index.cjs.map +1 -0
  827. package/dist/node_modules/.pnpm/rehype-sanitize@6.0.0/node_modules/rehype-sanitize/lib/index.js +32 -0
  828. package/dist/node_modules/.pnpm/rehype-sanitize@6.0.0/node_modules/rehype-sanitize/lib/index.js.map +1 -0
  829. package/dist/node_modules/.pnpm/secure-json-parse@4.1.0/node_modules/secure-json-parse/index.cjs +1 -1
  830. package/dist/node_modules/.pnpm/secure-json-parse@4.1.0/node_modules/secure-json-parse/index.js +1 -1
  831. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.cjs +5 -0
  832. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.cjs.map +1 -1
  833. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +5 -1
  834. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js.map +1 -1
  835. package/dist/node_modules/.pnpm/style-to-js@1.1.18/node_modules/style-to-js/cjs/index.cjs +1 -1
  836. package/dist/node_modules/.pnpm/style-to-js@1.1.18/node_modules/style-to-js/cjs/index.js +1 -1
  837. package/dist/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.cjs +1 -1
  838. package/dist/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.js +1 -1
  839. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@17.0.2/node_modules/use-sync-external-store/shim/index.cjs +1 -1
  840. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@17.0.2/node_modules/use-sync-external-store/shim/index.js +1 -1
  841. package/dist/node_modules/.pnpm/vfile-location@5.0.3/node_modules/vfile-location/lib/index.cjs +98 -0
  842. package/dist/node_modules/.pnpm/vfile-location@5.0.3/node_modules/vfile-location/lib/index.cjs.map +1 -0
  843. package/dist/node_modules/.pnpm/vfile-location@5.0.3/node_modules/vfile-location/lib/index.js +96 -0
  844. package/dist/node_modules/.pnpm/vfile-location@5.0.3/node_modules/vfile-location/lib/index.js.map +1 -0
  845. package/dist/node_modules/.pnpm/web-namespaces@2.0.1/node_modules/web-namespaces/index.cjs +18 -0
  846. package/dist/node_modules/.pnpm/web-namespaces@2.0.1/node_modules/web-namespaces/index.cjs.map +1 -0
  847. package/dist/node_modules/.pnpm/web-namespaces@2.0.1/node_modules/web-namespaces/index.js +16 -0
  848. package/dist/node_modules/.pnpm/web-namespaces@2.0.1/node_modules/web-namespaces/index.js.map +1 -0
  849. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react/shallow.cjs +15 -0
  850. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react/shallow.cjs.map +1 -0
  851. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react/shallow.js +13 -0
  852. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react/shallow.js.map +1 -0
  853. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react.cjs +26 -0
  854. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react.cjs.map +1 -0
  855. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react.js +23 -0
  856. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/react.js.map +1 -0
  857. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla/shallow.cjs +58 -0
  858. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla/shallow.cjs.map +1 -0
  859. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla/shallow.js +56 -0
  860. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla/shallow.js.map +1 -0
  861. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla.cjs +27 -0
  862. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla.cjs.map +1 -0
  863. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla.js +25 -0
  864. package/dist/node_modules/.pnpm/zustand@5.0.8_@types_react@17.0.2_react@17.0.2_use-sync-external-store@1.6.0_react@17.0.2_/node_modules/zustand/esm/vanilla.js.map +1 -0
  865. package/dist/packages/core/dist/index.cjs +13 -6
  866. package/dist/packages/core/dist/index.cjs.map +1 -1
  867. package/dist/packages/core/dist/index.js +13 -6
  868. package/dist/packages/core/dist/index.js.map +1 -1
  869. package/dist/plugins/getAdkConfig.cjs +4 -0
  870. package/dist/plugins/getAdkConfig.cjs.map +1 -1
  871. package/dist/plugins/getAdkConfig.d.ts.map +1 -1
  872. package/dist/plugins/getAdkConfig.js +4 -0
  873. package/dist/plugins/getAdkConfig.js.map +1 -1
  874. package/dist/utils/agentStorage.cjs +81 -0
  875. package/dist/utils/agentStorage.cjs.map +1 -0
  876. package/dist/utils/agentStorage.js +79 -0
  877. package/dist/utils/agentStorage.js.map +1 -0
  878. package/package.json +2 -1
@@ -0,0 +1,3235 @@
1
+ 'use strict';
2
+
3
+ var index = require('../tokenizer/index.cjs');
4
+ var openElementStack = require('./open-element-stack.cjs');
5
+ var formattingElementList = require('./formatting-element-list.cjs');
6
+ var _default = require('../tree-adapters/default.cjs');
7
+ var doctype = require('../common/doctype.cjs');
8
+ var foreignContent = require('../common/foreign-content.cjs');
9
+ var errorCodes = require('../common/error-codes.cjs');
10
+ var unicode = require('../common/unicode.cjs');
11
+ var html = require('../common/html.cjs');
12
+ var token = require('../common/token.cjs');
13
+
14
+ //Misc constants
15
+ const HIDDEN_INPUT_TYPE = 'hidden';
16
+ //Adoption agency loops iteration count
17
+ const AA_OUTER_LOOP_ITER = 8;
18
+ const AA_INNER_LOOP_ITER = 3;
19
+ //Insertion modes
20
+ var InsertionMode;
21
+ (function (InsertionMode) {
22
+ InsertionMode[InsertionMode["INITIAL"] = 0] = "INITIAL";
23
+ InsertionMode[InsertionMode["BEFORE_HTML"] = 1] = "BEFORE_HTML";
24
+ InsertionMode[InsertionMode["BEFORE_HEAD"] = 2] = "BEFORE_HEAD";
25
+ InsertionMode[InsertionMode["IN_HEAD"] = 3] = "IN_HEAD";
26
+ InsertionMode[InsertionMode["IN_HEAD_NO_SCRIPT"] = 4] = "IN_HEAD_NO_SCRIPT";
27
+ InsertionMode[InsertionMode["AFTER_HEAD"] = 5] = "AFTER_HEAD";
28
+ InsertionMode[InsertionMode["IN_BODY"] = 6] = "IN_BODY";
29
+ InsertionMode[InsertionMode["TEXT"] = 7] = "TEXT";
30
+ InsertionMode[InsertionMode["IN_TABLE"] = 8] = "IN_TABLE";
31
+ InsertionMode[InsertionMode["IN_TABLE_TEXT"] = 9] = "IN_TABLE_TEXT";
32
+ InsertionMode[InsertionMode["IN_CAPTION"] = 10] = "IN_CAPTION";
33
+ InsertionMode[InsertionMode["IN_COLUMN_GROUP"] = 11] = "IN_COLUMN_GROUP";
34
+ InsertionMode[InsertionMode["IN_TABLE_BODY"] = 12] = "IN_TABLE_BODY";
35
+ InsertionMode[InsertionMode["IN_ROW"] = 13] = "IN_ROW";
36
+ InsertionMode[InsertionMode["IN_CELL"] = 14] = "IN_CELL";
37
+ InsertionMode[InsertionMode["IN_SELECT"] = 15] = "IN_SELECT";
38
+ InsertionMode[InsertionMode["IN_SELECT_IN_TABLE"] = 16] = "IN_SELECT_IN_TABLE";
39
+ InsertionMode[InsertionMode["IN_TEMPLATE"] = 17] = "IN_TEMPLATE";
40
+ InsertionMode[InsertionMode["AFTER_BODY"] = 18] = "AFTER_BODY";
41
+ InsertionMode[InsertionMode["IN_FRAMESET"] = 19] = "IN_FRAMESET";
42
+ InsertionMode[InsertionMode["AFTER_FRAMESET"] = 20] = "AFTER_FRAMESET";
43
+ InsertionMode[InsertionMode["AFTER_AFTER_BODY"] = 21] = "AFTER_AFTER_BODY";
44
+ InsertionMode[InsertionMode["AFTER_AFTER_FRAMESET"] = 22] = "AFTER_AFTER_FRAMESET";
45
+ })(InsertionMode || (InsertionMode = {}));
46
+ const BASE_LOC = {
47
+ startLine: -1,
48
+ startCol: -1,
49
+ startOffset: -1,
50
+ endLine: -1,
51
+ endCol: -1,
52
+ endOffset: -1,
53
+ };
54
+ const TABLE_STRUCTURE_TAGS = new Set([html.TAG_ID.TABLE, html.TAG_ID.TBODY, html.TAG_ID.TFOOT, html.TAG_ID.THEAD, html.TAG_ID.TR]);
55
+ const defaultParserOptions = {
56
+ scriptingEnabled: true,
57
+ sourceCodeLocationInfo: false,
58
+ treeAdapter: _default.defaultTreeAdapter,
59
+ onParseError: null,
60
+ };
61
+ //Parser
62
+ class Parser {
63
+ constructor(options, document,
64
+ /** @internal */
65
+ fragmentContext = null,
66
+ /** @internal */
67
+ scriptHandler = null) {
68
+ this.fragmentContext = fragmentContext;
69
+ this.scriptHandler = scriptHandler;
70
+ this.currentToken = null;
71
+ this.stopped = false;
72
+ /** @internal */
73
+ this.insertionMode = InsertionMode.INITIAL;
74
+ /** @internal */
75
+ this.originalInsertionMode = InsertionMode.INITIAL;
76
+ /** @internal */
77
+ this.headElement = null;
78
+ /** @internal */
79
+ this.formElement = null;
80
+ /** Indicates that the current node is not an element in the HTML namespace */
81
+ this.currentNotInHTML = false;
82
+ /**
83
+ * The template insertion mode stack is maintained from the left.
84
+ * Ie. the topmost element will always have index 0.
85
+ *
86
+ * @internal
87
+ */
88
+ this.tmplInsertionModeStack = [];
89
+ /** @internal */
90
+ this.pendingCharacterTokens = [];
91
+ /** @internal */
92
+ this.hasNonWhitespacePendingCharacterToken = false;
93
+ /** @internal */
94
+ this.framesetOk = true;
95
+ /** @internal */
96
+ this.skipNextNewLine = false;
97
+ /** @internal */
98
+ this.fosterParentingEnabled = false;
99
+ this.options = {
100
+ ...defaultParserOptions,
101
+ ...options,
102
+ };
103
+ this.treeAdapter = this.options.treeAdapter;
104
+ this.onParseError = this.options.onParseError;
105
+ // Always enable location info if we report parse errors.
106
+ if (this.onParseError) {
107
+ this.options.sourceCodeLocationInfo = true;
108
+ }
109
+ this.document = document !== null && document !== void 0 ? document : this.treeAdapter.createDocument();
110
+ this.tokenizer = new index.Tokenizer(this.options, this);
111
+ this.activeFormattingElements = new formattingElementList.FormattingElementList(this.treeAdapter);
112
+ this.fragmentContextID = fragmentContext ? html.getTagID(this.treeAdapter.getTagName(fragmentContext)) : html.TAG_ID.UNKNOWN;
113
+ this._setContextModes(fragmentContext !== null && fragmentContext !== void 0 ? fragmentContext : this.document, this.fragmentContextID);
114
+ this.openElements = new openElementStack.OpenElementStack(this.document, this.treeAdapter, this);
115
+ }
116
+ // API
117
+ static parse(html, options) {
118
+ const parser = new this(options);
119
+ parser.tokenizer.write(html, true);
120
+ return parser.document;
121
+ }
122
+ static getFragmentParser(fragmentContext, options) {
123
+ const opts = {
124
+ ...defaultParserOptions,
125
+ ...options,
126
+ };
127
+ //NOTE: use a <template> element as the fragment context if no context element was provided,
128
+ //so we will parse in a "forgiving" manner
129
+ fragmentContext !== null && fragmentContext !== void 0 ? fragmentContext : (fragmentContext = opts.treeAdapter.createElement(html.TAG_NAMES.TEMPLATE, html.NS.HTML, []));
130
+ //NOTE: create a fake element which will be used as the `document` for fragment parsing.
131
+ //This is important for jsdom, where a new `document` cannot be created. This led to
132
+ //fragment parsing messing with the main `document`.
133
+ const documentMock = opts.treeAdapter.createElement('documentmock', html.NS.HTML, []);
134
+ const parser = new this(opts, documentMock, fragmentContext);
135
+ if (parser.fragmentContextID === html.TAG_ID.TEMPLATE) {
136
+ parser.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE);
137
+ }
138
+ parser._initTokenizerForFragmentParsing();
139
+ parser._insertFakeRootElement();
140
+ parser._resetInsertionMode();
141
+ parser._findFormInFragmentContext();
142
+ return parser;
143
+ }
144
+ getFragment() {
145
+ const rootElement = this.treeAdapter.getFirstChild(this.document);
146
+ const fragment = this.treeAdapter.createDocumentFragment();
147
+ this._adoptNodes(rootElement, fragment);
148
+ return fragment;
149
+ }
150
+ //Errors
151
+ /** @internal */
152
+ _err(token, code, beforeToken) {
153
+ var _a;
154
+ if (!this.onParseError)
155
+ return;
156
+ const loc = (_a = token.location) !== null && _a !== void 0 ? _a : BASE_LOC;
157
+ const err = {
158
+ code,
159
+ startLine: loc.startLine,
160
+ startCol: loc.startCol,
161
+ startOffset: loc.startOffset,
162
+ endLine: beforeToken ? loc.startLine : loc.endLine,
163
+ endCol: beforeToken ? loc.startCol : loc.endCol,
164
+ endOffset: beforeToken ? loc.startOffset : loc.endOffset,
165
+ };
166
+ this.onParseError(err);
167
+ }
168
+ //Stack events
169
+ /** @internal */
170
+ onItemPush(node, tid, isTop) {
171
+ var _a, _b;
172
+ (_b = (_a = this.treeAdapter).onItemPush) === null || _b === void 0 ? void 0 : _b.call(_a, node);
173
+ if (isTop && this.openElements.stackTop > 0)
174
+ this._setContextModes(node, tid);
175
+ }
176
+ /** @internal */
177
+ onItemPop(node, isTop) {
178
+ var _a, _b;
179
+ if (this.options.sourceCodeLocationInfo) {
180
+ this._setEndLocation(node, this.currentToken);
181
+ }
182
+ (_b = (_a = this.treeAdapter).onItemPop) === null || _b === void 0 ? void 0 : _b.call(_a, node, this.openElements.current);
183
+ if (isTop) {
184
+ let current;
185
+ let currentTagId;
186
+ if (this.openElements.stackTop === 0 && this.fragmentContext) {
187
+ current = this.fragmentContext;
188
+ currentTagId = this.fragmentContextID;
189
+ }
190
+ else {
191
+ ({ current, currentTagId } = this.openElements);
192
+ }
193
+ this._setContextModes(current, currentTagId);
194
+ }
195
+ }
196
+ _setContextModes(current, tid) {
197
+ const isHTML = current === this.document || (current && this.treeAdapter.getNamespaceURI(current) === html.NS.HTML);
198
+ this.currentNotInHTML = !isHTML;
199
+ this.tokenizer.inForeignNode =
200
+ !isHTML && current !== undefined && tid !== undefined && !this._isIntegrationPoint(tid, current);
201
+ }
202
+ /** @protected */
203
+ _switchToTextParsing(currentToken, nextTokenizerState) {
204
+ this._insertElement(currentToken, html.NS.HTML);
205
+ this.tokenizer.state = nextTokenizerState;
206
+ this.originalInsertionMode = this.insertionMode;
207
+ this.insertionMode = InsertionMode.TEXT;
208
+ }
209
+ switchToPlaintextParsing() {
210
+ this.insertionMode = InsertionMode.TEXT;
211
+ this.originalInsertionMode = InsertionMode.IN_BODY;
212
+ this.tokenizer.state = index.TokenizerMode.PLAINTEXT;
213
+ }
214
+ //Fragment parsing
215
+ /** @protected */
216
+ _getAdjustedCurrentElement() {
217
+ return this.openElements.stackTop === 0 && this.fragmentContext
218
+ ? this.fragmentContext
219
+ : this.openElements.current;
220
+ }
221
+ /** @protected */
222
+ _findFormInFragmentContext() {
223
+ let node = this.fragmentContext;
224
+ while (node) {
225
+ if (this.treeAdapter.getTagName(node) === html.TAG_NAMES.FORM) {
226
+ this.formElement = node;
227
+ break;
228
+ }
229
+ node = this.treeAdapter.getParentNode(node);
230
+ }
231
+ }
232
+ _initTokenizerForFragmentParsing() {
233
+ if (!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== html.NS.HTML) {
234
+ return;
235
+ }
236
+ switch (this.fragmentContextID) {
237
+ case html.TAG_ID.TITLE:
238
+ case html.TAG_ID.TEXTAREA: {
239
+ this.tokenizer.state = index.TokenizerMode.RCDATA;
240
+ break;
241
+ }
242
+ case html.TAG_ID.STYLE:
243
+ case html.TAG_ID.XMP:
244
+ case html.TAG_ID.IFRAME:
245
+ case html.TAG_ID.NOEMBED:
246
+ case html.TAG_ID.NOFRAMES:
247
+ case html.TAG_ID.NOSCRIPT: {
248
+ this.tokenizer.state = index.TokenizerMode.RAWTEXT;
249
+ break;
250
+ }
251
+ case html.TAG_ID.SCRIPT: {
252
+ this.tokenizer.state = index.TokenizerMode.SCRIPT_DATA;
253
+ break;
254
+ }
255
+ case html.TAG_ID.PLAINTEXT: {
256
+ this.tokenizer.state = index.TokenizerMode.PLAINTEXT;
257
+ break;
258
+ }
259
+ // Do nothing
260
+ }
261
+ }
262
+ //Tree mutation
263
+ /** @protected */
264
+ _setDocumentType(token) {
265
+ const name = token.name || '';
266
+ const publicId = token.publicId || '';
267
+ const systemId = token.systemId || '';
268
+ this.treeAdapter.setDocumentType(this.document, name, publicId, systemId);
269
+ if (token.location) {
270
+ const documentChildren = this.treeAdapter.getChildNodes(this.document);
271
+ const docTypeNode = documentChildren.find((node) => this.treeAdapter.isDocumentTypeNode(node));
272
+ if (docTypeNode) {
273
+ this.treeAdapter.setNodeSourceCodeLocation(docTypeNode, token.location);
274
+ }
275
+ }
276
+ }
277
+ /** @protected */
278
+ _attachElementToTree(element, location) {
279
+ if (this.options.sourceCodeLocationInfo) {
280
+ const loc = location && {
281
+ ...location,
282
+ startTag: location,
283
+ };
284
+ this.treeAdapter.setNodeSourceCodeLocation(element, loc);
285
+ }
286
+ if (this._shouldFosterParentOnInsertion()) {
287
+ this._fosterParentElement(element);
288
+ }
289
+ else {
290
+ const parent = this.openElements.currentTmplContentOrNode;
291
+ this.treeAdapter.appendChild(parent !== null && parent !== void 0 ? parent : this.document, element);
292
+ }
293
+ }
294
+ /**
295
+ * For self-closing tags. Add an element to the tree, but skip adding it
296
+ * to the stack.
297
+ */
298
+ /** @protected */
299
+ _appendElement(token, namespaceURI) {
300
+ const element = this.treeAdapter.createElement(token.tagName, namespaceURI, token.attrs);
301
+ this._attachElementToTree(element, token.location);
302
+ }
303
+ /** @protected */
304
+ _insertElement(token, namespaceURI) {
305
+ const element = this.treeAdapter.createElement(token.tagName, namespaceURI, token.attrs);
306
+ this._attachElementToTree(element, token.location);
307
+ this.openElements.push(element, token.tagID);
308
+ }
309
+ /** @protected */
310
+ _insertFakeElement(tagName, tagID) {
311
+ const element = this.treeAdapter.createElement(tagName, html.NS.HTML, []);
312
+ this._attachElementToTree(element, null);
313
+ this.openElements.push(element, tagID);
314
+ }
315
+ /** @protected */
316
+ _insertTemplate(token) {
317
+ const tmpl = this.treeAdapter.createElement(token.tagName, html.NS.HTML, token.attrs);
318
+ const content = this.treeAdapter.createDocumentFragment();
319
+ this.treeAdapter.setTemplateContent(tmpl, content);
320
+ this._attachElementToTree(tmpl, token.location);
321
+ this.openElements.push(tmpl, token.tagID);
322
+ if (this.options.sourceCodeLocationInfo)
323
+ this.treeAdapter.setNodeSourceCodeLocation(content, null);
324
+ }
325
+ /** @protected */
326
+ _insertFakeRootElement() {
327
+ const element = this.treeAdapter.createElement(html.TAG_NAMES.HTML, html.NS.HTML, []);
328
+ if (this.options.sourceCodeLocationInfo)
329
+ this.treeAdapter.setNodeSourceCodeLocation(element, null);
330
+ this.treeAdapter.appendChild(this.openElements.current, element);
331
+ this.openElements.push(element, html.TAG_ID.HTML);
332
+ }
333
+ /** @protected */
334
+ _appendCommentNode(token, parent) {
335
+ const commentNode = this.treeAdapter.createCommentNode(token.data);
336
+ this.treeAdapter.appendChild(parent, commentNode);
337
+ if (this.options.sourceCodeLocationInfo) {
338
+ this.treeAdapter.setNodeSourceCodeLocation(commentNode, token.location);
339
+ }
340
+ }
341
+ /** @protected */
342
+ _insertCharacters(token) {
343
+ let parent;
344
+ let beforeElement;
345
+ if (this._shouldFosterParentOnInsertion()) {
346
+ ({ parent, beforeElement } = this._findFosterParentingLocation());
347
+ if (beforeElement) {
348
+ this.treeAdapter.insertTextBefore(parent, token.chars, beforeElement);
349
+ }
350
+ else {
351
+ this.treeAdapter.insertText(parent, token.chars);
352
+ }
353
+ }
354
+ else {
355
+ parent = this.openElements.currentTmplContentOrNode;
356
+ this.treeAdapter.insertText(parent, token.chars);
357
+ }
358
+ if (!token.location)
359
+ return;
360
+ const siblings = this.treeAdapter.getChildNodes(parent);
361
+ const textNodeIdx = beforeElement ? siblings.lastIndexOf(beforeElement) : siblings.length;
362
+ const textNode = siblings[textNodeIdx - 1];
363
+ //NOTE: if we have a location assigned by another token, then just update the end position
364
+ const tnLoc = this.treeAdapter.getNodeSourceCodeLocation(textNode);
365
+ if (tnLoc) {
366
+ const { endLine, endCol, endOffset } = token.location;
367
+ this.treeAdapter.updateNodeSourceCodeLocation(textNode, { endLine, endCol, endOffset });
368
+ }
369
+ else if (this.options.sourceCodeLocationInfo) {
370
+ this.treeAdapter.setNodeSourceCodeLocation(textNode, token.location);
371
+ }
372
+ }
373
+ /** @protected */
374
+ _adoptNodes(donor, recipient) {
375
+ for (let child = this.treeAdapter.getFirstChild(donor); child; child = this.treeAdapter.getFirstChild(donor)) {
376
+ this.treeAdapter.detachNode(child);
377
+ this.treeAdapter.appendChild(recipient, child);
378
+ }
379
+ }
380
+ /** @protected */
381
+ _setEndLocation(element, closingToken) {
382
+ if (this.treeAdapter.getNodeSourceCodeLocation(element) && closingToken.location) {
383
+ const ctLoc = closingToken.location;
384
+ const tn = this.treeAdapter.getTagName(element);
385
+ const endLoc =
386
+ // NOTE: For cases like <p> <p> </p> - First 'p' closes without a closing
387
+ // tag and for cases like <td> <p> </td> - 'p' closes without a closing tag.
388
+ closingToken.type === token.TokenType.END_TAG && tn === closingToken.tagName
389
+ ? {
390
+ endTag: { ...ctLoc },
391
+ endLine: ctLoc.endLine,
392
+ endCol: ctLoc.endCol,
393
+ endOffset: ctLoc.endOffset,
394
+ }
395
+ : {
396
+ endLine: ctLoc.startLine,
397
+ endCol: ctLoc.startCol,
398
+ endOffset: ctLoc.startOffset,
399
+ };
400
+ this.treeAdapter.updateNodeSourceCodeLocation(element, endLoc);
401
+ }
402
+ }
403
+ //Token processing
404
+ shouldProcessStartTagTokenInForeignContent(token) {
405
+ // Check that neither current === document, or ns === NS.HTML
406
+ if (!this.currentNotInHTML)
407
+ return false;
408
+ let current;
409
+ let currentTagId;
410
+ if (this.openElements.stackTop === 0 && this.fragmentContext) {
411
+ current = this.fragmentContext;
412
+ currentTagId = this.fragmentContextID;
413
+ }
414
+ else {
415
+ ({ current, currentTagId } = this.openElements);
416
+ }
417
+ if (token.tagID === html.TAG_ID.SVG &&
418
+ this.treeAdapter.getTagName(current) === html.TAG_NAMES.ANNOTATION_XML &&
419
+ this.treeAdapter.getNamespaceURI(current) === html.NS.MATHML) {
420
+ return false;
421
+ }
422
+ return (
423
+ // Check that `current` is not an integration point for HTML or MathML elements.
424
+ this.tokenizer.inForeignNode ||
425
+ // If it _is_ an integration point, then we might have to check that it is not an HTML
426
+ // integration point.
427
+ ((token.tagID === html.TAG_ID.MGLYPH || token.tagID === html.TAG_ID.MALIGNMARK) &&
428
+ currentTagId !== undefined &&
429
+ !this._isIntegrationPoint(currentTagId, current, html.NS.HTML)));
430
+ }
431
+ /** @protected */
432
+ _processToken(token$1) {
433
+ switch (token$1.type) {
434
+ case token.TokenType.CHARACTER: {
435
+ this.onCharacter(token$1);
436
+ break;
437
+ }
438
+ case token.TokenType.NULL_CHARACTER: {
439
+ this.onNullCharacter(token$1);
440
+ break;
441
+ }
442
+ case token.TokenType.COMMENT: {
443
+ this.onComment(token$1);
444
+ break;
445
+ }
446
+ case token.TokenType.DOCTYPE: {
447
+ this.onDoctype(token$1);
448
+ break;
449
+ }
450
+ case token.TokenType.START_TAG: {
451
+ this._processStartTag(token$1);
452
+ break;
453
+ }
454
+ case token.TokenType.END_TAG: {
455
+ this.onEndTag(token$1);
456
+ break;
457
+ }
458
+ case token.TokenType.EOF: {
459
+ this.onEof(token$1);
460
+ break;
461
+ }
462
+ case token.TokenType.WHITESPACE_CHARACTER: {
463
+ this.onWhitespaceCharacter(token$1);
464
+ break;
465
+ }
466
+ }
467
+ }
468
+ //Integration points
469
+ /** @protected */
470
+ _isIntegrationPoint(tid, element, foreignNS) {
471
+ const ns = this.treeAdapter.getNamespaceURI(element);
472
+ const attrs = this.treeAdapter.getAttrList(element);
473
+ return foreignContent.isIntegrationPoint(tid, ns, attrs, foreignNS);
474
+ }
475
+ //Active formatting elements reconstruction
476
+ /** @protected */
477
+ _reconstructActiveFormattingElements() {
478
+ const listLength = this.activeFormattingElements.entries.length;
479
+ if (listLength) {
480
+ const endIndex = this.activeFormattingElements.entries.findIndex((entry) => entry.type === formattingElementList.EntryType.Marker || this.openElements.contains(entry.element));
481
+ const unopenIdx = endIndex === -1 ? listLength - 1 : endIndex - 1;
482
+ for (let i = unopenIdx; i >= 0; i--) {
483
+ const entry = this.activeFormattingElements.entries[i];
484
+ this._insertElement(entry.token, this.treeAdapter.getNamespaceURI(entry.element));
485
+ entry.element = this.openElements.current;
486
+ }
487
+ }
488
+ }
489
+ //Close elements
490
+ /** @protected */
491
+ _closeTableCell() {
492
+ this.openElements.generateImpliedEndTags();
493
+ this.openElements.popUntilTableCellPopped();
494
+ this.activeFormattingElements.clearToLastMarker();
495
+ this.insertionMode = InsertionMode.IN_ROW;
496
+ }
497
+ /** @protected */
498
+ _closePElement() {
499
+ this.openElements.generateImpliedEndTagsWithExclusion(html.TAG_ID.P);
500
+ this.openElements.popUntilTagNamePopped(html.TAG_ID.P);
501
+ }
502
+ //Insertion modes
503
+ /** @protected */
504
+ _resetInsertionMode() {
505
+ for (let i = this.openElements.stackTop; i >= 0; i--) {
506
+ //Insertion mode reset map
507
+ switch (i === 0 && this.fragmentContext ? this.fragmentContextID : this.openElements.tagIDs[i]) {
508
+ case html.TAG_ID.TR: {
509
+ this.insertionMode = InsertionMode.IN_ROW;
510
+ return;
511
+ }
512
+ case html.TAG_ID.TBODY:
513
+ case html.TAG_ID.THEAD:
514
+ case html.TAG_ID.TFOOT: {
515
+ this.insertionMode = InsertionMode.IN_TABLE_BODY;
516
+ return;
517
+ }
518
+ case html.TAG_ID.CAPTION: {
519
+ this.insertionMode = InsertionMode.IN_CAPTION;
520
+ return;
521
+ }
522
+ case html.TAG_ID.COLGROUP: {
523
+ this.insertionMode = InsertionMode.IN_COLUMN_GROUP;
524
+ return;
525
+ }
526
+ case html.TAG_ID.TABLE: {
527
+ this.insertionMode = InsertionMode.IN_TABLE;
528
+ return;
529
+ }
530
+ case html.TAG_ID.BODY: {
531
+ this.insertionMode = InsertionMode.IN_BODY;
532
+ return;
533
+ }
534
+ case html.TAG_ID.FRAMESET: {
535
+ this.insertionMode = InsertionMode.IN_FRAMESET;
536
+ return;
537
+ }
538
+ case html.TAG_ID.SELECT: {
539
+ this._resetInsertionModeForSelect(i);
540
+ return;
541
+ }
542
+ case html.TAG_ID.TEMPLATE: {
543
+ this.insertionMode = this.tmplInsertionModeStack[0];
544
+ return;
545
+ }
546
+ case html.TAG_ID.HTML: {
547
+ this.insertionMode = this.headElement ? InsertionMode.AFTER_HEAD : InsertionMode.BEFORE_HEAD;
548
+ return;
549
+ }
550
+ case html.TAG_ID.TD:
551
+ case html.TAG_ID.TH: {
552
+ if (i > 0) {
553
+ this.insertionMode = InsertionMode.IN_CELL;
554
+ return;
555
+ }
556
+ break;
557
+ }
558
+ case html.TAG_ID.HEAD: {
559
+ if (i > 0) {
560
+ this.insertionMode = InsertionMode.IN_HEAD;
561
+ return;
562
+ }
563
+ break;
564
+ }
565
+ }
566
+ }
567
+ this.insertionMode = InsertionMode.IN_BODY;
568
+ }
569
+ /** @protected */
570
+ _resetInsertionModeForSelect(selectIdx) {
571
+ if (selectIdx > 0) {
572
+ for (let i = selectIdx - 1; i > 0; i--) {
573
+ const tn = this.openElements.tagIDs[i];
574
+ if (tn === html.TAG_ID.TEMPLATE) {
575
+ break;
576
+ }
577
+ else if (tn === html.TAG_ID.TABLE) {
578
+ this.insertionMode = InsertionMode.IN_SELECT_IN_TABLE;
579
+ return;
580
+ }
581
+ }
582
+ }
583
+ this.insertionMode = InsertionMode.IN_SELECT;
584
+ }
585
+ //Foster parenting
586
+ /** @protected */
587
+ _isElementCausesFosterParenting(tn) {
588
+ return TABLE_STRUCTURE_TAGS.has(tn);
589
+ }
590
+ /** @protected */
591
+ _shouldFosterParentOnInsertion() {
592
+ return (this.fosterParentingEnabled &&
593
+ this.openElements.currentTagId !== undefined &&
594
+ this._isElementCausesFosterParenting(this.openElements.currentTagId));
595
+ }
596
+ /** @protected */
597
+ _findFosterParentingLocation() {
598
+ for (let i = this.openElements.stackTop; i >= 0; i--) {
599
+ const openElement = this.openElements.items[i];
600
+ switch (this.openElements.tagIDs[i]) {
601
+ case html.TAG_ID.TEMPLATE: {
602
+ if (this.treeAdapter.getNamespaceURI(openElement) === html.NS.HTML) {
603
+ return { parent: this.treeAdapter.getTemplateContent(openElement), beforeElement: null };
604
+ }
605
+ break;
606
+ }
607
+ case html.TAG_ID.TABLE: {
608
+ const parent = this.treeAdapter.getParentNode(openElement);
609
+ if (parent) {
610
+ return { parent, beforeElement: openElement };
611
+ }
612
+ return { parent: this.openElements.items[i - 1], beforeElement: null };
613
+ }
614
+ // Do nothing
615
+ }
616
+ }
617
+ return { parent: this.openElements.items[0], beforeElement: null };
618
+ }
619
+ /** @protected */
620
+ _fosterParentElement(element) {
621
+ const location = this._findFosterParentingLocation();
622
+ if (location.beforeElement) {
623
+ this.treeAdapter.insertBefore(location.parent, element, location.beforeElement);
624
+ }
625
+ else {
626
+ this.treeAdapter.appendChild(location.parent, element);
627
+ }
628
+ }
629
+ //Special elements
630
+ /** @protected */
631
+ _isSpecialElement(element, id) {
632
+ const ns = this.treeAdapter.getNamespaceURI(element);
633
+ return html.SPECIAL_ELEMENTS[ns].has(id);
634
+ }
635
+ /** @internal */
636
+ onCharacter(token) {
637
+ this.skipNextNewLine = false;
638
+ if (this.tokenizer.inForeignNode) {
639
+ characterInForeignContent(this, token);
640
+ return;
641
+ }
642
+ switch (this.insertionMode) {
643
+ case InsertionMode.INITIAL: {
644
+ tokenInInitialMode(this, token);
645
+ break;
646
+ }
647
+ case InsertionMode.BEFORE_HTML: {
648
+ tokenBeforeHtml(this, token);
649
+ break;
650
+ }
651
+ case InsertionMode.BEFORE_HEAD: {
652
+ tokenBeforeHead(this, token);
653
+ break;
654
+ }
655
+ case InsertionMode.IN_HEAD: {
656
+ tokenInHead(this, token);
657
+ break;
658
+ }
659
+ case InsertionMode.IN_HEAD_NO_SCRIPT: {
660
+ tokenInHeadNoScript(this, token);
661
+ break;
662
+ }
663
+ case InsertionMode.AFTER_HEAD: {
664
+ tokenAfterHead(this, token);
665
+ break;
666
+ }
667
+ case InsertionMode.IN_BODY:
668
+ case InsertionMode.IN_CAPTION:
669
+ case InsertionMode.IN_CELL:
670
+ case InsertionMode.IN_TEMPLATE: {
671
+ characterInBody(this, token);
672
+ break;
673
+ }
674
+ case InsertionMode.TEXT:
675
+ case InsertionMode.IN_SELECT:
676
+ case InsertionMode.IN_SELECT_IN_TABLE: {
677
+ this._insertCharacters(token);
678
+ break;
679
+ }
680
+ case InsertionMode.IN_TABLE:
681
+ case InsertionMode.IN_TABLE_BODY:
682
+ case InsertionMode.IN_ROW: {
683
+ characterInTable(this, token);
684
+ break;
685
+ }
686
+ case InsertionMode.IN_TABLE_TEXT: {
687
+ characterInTableText(this, token);
688
+ break;
689
+ }
690
+ case InsertionMode.IN_COLUMN_GROUP: {
691
+ tokenInColumnGroup(this, token);
692
+ break;
693
+ }
694
+ case InsertionMode.AFTER_BODY: {
695
+ tokenAfterBody(this, token);
696
+ break;
697
+ }
698
+ case InsertionMode.AFTER_AFTER_BODY: {
699
+ tokenAfterAfterBody(this, token);
700
+ break;
701
+ }
702
+ // Do nothing
703
+ }
704
+ }
705
+ /** @internal */
706
+ onNullCharacter(token) {
707
+ this.skipNextNewLine = false;
708
+ if (this.tokenizer.inForeignNode) {
709
+ nullCharacterInForeignContent(this, token);
710
+ return;
711
+ }
712
+ switch (this.insertionMode) {
713
+ case InsertionMode.INITIAL: {
714
+ tokenInInitialMode(this, token);
715
+ break;
716
+ }
717
+ case InsertionMode.BEFORE_HTML: {
718
+ tokenBeforeHtml(this, token);
719
+ break;
720
+ }
721
+ case InsertionMode.BEFORE_HEAD: {
722
+ tokenBeforeHead(this, token);
723
+ break;
724
+ }
725
+ case InsertionMode.IN_HEAD: {
726
+ tokenInHead(this, token);
727
+ break;
728
+ }
729
+ case InsertionMode.IN_HEAD_NO_SCRIPT: {
730
+ tokenInHeadNoScript(this, token);
731
+ break;
732
+ }
733
+ case InsertionMode.AFTER_HEAD: {
734
+ tokenAfterHead(this, token);
735
+ break;
736
+ }
737
+ case InsertionMode.TEXT: {
738
+ this._insertCharacters(token);
739
+ break;
740
+ }
741
+ case InsertionMode.IN_TABLE:
742
+ case InsertionMode.IN_TABLE_BODY:
743
+ case InsertionMode.IN_ROW: {
744
+ characterInTable(this, token);
745
+ break;
746
+ }
747
+ case InsertionMode.IN_COLUMN_GROUP: {
748
+ tokenInColumnGroup(this, token);
749
+ break;
750
+ }
751
+ case InsertionMode.AFTER_BODY: {
752
+ tokenAfterBody(this, token);
753
+ break;
754
+ }
755
+ case InsertionMode.AFTER_AFTER_BODY: {
756
+ tokenAfterAfterBody(this, token);
757
+ break;
758
+ }
759
+ // Do nothing
760
+ }
761
+ }
762
+ /** @internal */
763
+ onComment(token) {
764
+ this.skipNextNewLine = false;
765
+ if (this.currentNotInHTML) {
766
+ appendComment(this, token);
767
+ return;
768
+ }
769
+ switch (this.insertionMode) {
770
+ case InsertionMode.INITIAL:
771
+ case InsertionMode.BEFORE_HTML:
772
+ case InsertionMode.BEFORE_HEAD:
773
+ case InsertionMode.IN_HEAD:
774
+ case InsertionMode.IN_HEAD_NO_SCRIPT:
775
+ case InsertionMode.AFTER_HEAD:
776
+ case InsertionMode.IN_BODY:
777
+ case InsertionMode.IN_TABLE:
778
+ case InsertionMode.IN_CAPTION:
779
+ case InsertionMode.IN_COLUMN_GROUP:
780
+ case InsertionMode.IN_TABLE_BODY:
781
+ case InsertionMode.IN_ROW:
782
+ case InsertionMode.IN_CELL:
783
+ case InsertionMode.IN_SELECT:
784
+ case InsertionMode.IN_SELECT_IN_TABLE:
785
+ case InsertionMode.IN_TEMPLATE:
786
+ case InsertionMode.IN_FRAMESET:
787
+ case InsertionMode.AFTER_FRAMESET: {
788
+ appendComment(this, token);
789
+ break;
790
+ }
791
+ case InsertionMode.IN_TABLE_TEXT: {
792
+ tokenInTableText(this, token);
793
+ break;
794
+ }
795
+ case InsertionMode.AFTER_BODY: {
796
+ appendCommentToRootHtmlElement(this, token);
797
+ break;
798
+ }
799
+ case InsertionMode.AFTER_AFTER_BODY:
800
+ case InsertionMode.AFTER_AFTER_FRAMESET: {
801
+ appendCommentToDocument(this, token);
802
+ break;
803
+ }
804
+ // Do nothing
805
+ }
806
+ }
807
+ /** @internal */
808
+ onDoctype(token) {
809
+ this.skipNextNewLine = false;
810
+ switch (this.insertionMode) {
811
+ case InsertionMode.INITIAL: {
812
+ doctypeInInitialMode(this, token);
813
+ break;
814
+ }
815
+ case InsertionMode.BEFORE_HEAD:
816
+ case InsertionMode.IN_HEAD:
817
+ case InsertionMode.IN_HEAD_NO_SCRIPT:
818
+ case InsertionMode.AFTER_HEAD: {
819
+ this._err(token, errorCodes.ERR.misplacedDoctype);
820
+ break;
821
+ }
822
+ case InsertionMode.IN_TABLE_TEXT: {
823
+ tokenInTableText(this, token);
824
+ break;
825
+ }
826
+ // Do nothing
827
+ }
828
+ }
829
+ /** @internal */
830
+ onStartTag(token) {
831
+ this.skipNextNewLine = false;
832
+ this.currentToken = token;
833
+ this._processStartTag(token);
834
+ if (token.selfClosing && !token.ackSelfClosing) {
835
+ this._err(token, errorCodes.ERR.nonVoidHtmlElementStartTagWithTrailingSolidus);
836
+ }
837
+ }
838
+ /**
839
+ * Processes a given start tag.
840
+ *
841
+ * `onStartTag` checks if a self-closing tag was recognized. When a token
842
+ * is moved inbetween multiple insertion modes, this check for self-closing
843
+ * could lead to false positives. To avoid this, `_processStartTag` is used
844
+ * for nested calls.
845
+ *
846
+ * @param token The token to process.
847
+ * @protected
848
+ */
849
+ _processStartTag(token) {
850
+ if (this.shouldProcessStartTagTokenInForeignContent(token)) {
851
+ startTagInForeignContent(this, token);
852
+ }
853
+ else {
854
+ this._startTagOutsideForeignContent(token);
855
+ }
856
+ }
857
+ /** @protected */
858
+ _startTagOutsideForeignContent(token) {
859
+ switch (this.insertionMode) {
860
+ case InsertionMode.INITIAL: {
861
+ tokenInInitialMode(this, token);
862
+ break;
863
+ }
864
+ case InsertionMode.BEFORE_HTML: {
865
+ startTagBeforeHtml(this, token);
866
+ break;
867
+ }
868
+ case InsertionMode.BEFORE_HEAD: {
869
+ startTagBeforeHead(this, token);
870
+ break;
871
+ }
872
+ case InsertionMode.IN_HEAD: {
873
+ startTagInHead(this, token);
874
+ break;
875
+ }
876
+ case InsertionMode.IN_HEAD_NO_SCRIPT: {
877
+ startTagInHeadNoScript(this, token);
878
+ break;
879
+ }
880
+ case InsertionMode.AFTER_HEAD: {
881
+ startTagAfterHead(this, token);
882
+ break;
883
+ }
884
+ case InsertionMode.IN_BODY: {
885
+ startTagInBody(this, token);
886
+ break;
887
+ }
888
+ case InsertionMode.IN_TABLE: {
889
+ startTagInTable(this, token);
890
+ break;
891
+ }
892
+ case InsertionMode.IN_TABLE_TEXT: {
893
+ tokenInTableText(this, token);
894
+ break;
895
+ }
896
+ case InsertionMode.IN_CAPTION: {
897
+ startTagInCaption(this, token);
898
+ break;
899
+ }
900
+ case InsertionMode.IN_COLUMN_GROUP: {
901
+ startTagInColumnGroup(this, token);
902
+ break;
903
+ }
904
+ case InsertionMode.IN_TABLE_BODY: {
905
+ startTagInTableBody(this, token);
906
+ break;
907
+ }
908
+ case InsertionMode.IN_ROW: {
909
+ startTagInRow(this, token);
910
+ break;
911
+ }
912
+ case InsertionMode.IN_CELL: {
913
+ startTagInCell(this, token);
914
+ break;
915
+ }
916
+ case InsertionMode.IN_SELECT: {
917
+ startTagInSelect(this, token);
918
+ break;
919
+ }
920
+ case InsertionMode.IN_SELECT_IN_TABLE: {
921
+ startTagInSelectInTable(this, token);
922
+ break;
923
+ }
924
+ case InsertionMode.IN_TEMPLATE: {
925
+ startTagInTemplate(this, token);
926
+ break;
927
+ }
928
+ case InsertionMode.AFTER_BODY: {
929
+ startTagAfterBody(this, token);
930
+ break;
931
+ }
932
+ case InsertionMode.IN_FRAMESET: {
933
+ startTagInFrameset(this, token);
934
+ break;
935
+ }
936
+ case InsertionMode.AFTER_FRAMESET: {
937
+ startTagAfterFrameset(this, token);
938
+ break;
939
+ }
940
+ case InsertionMode.AFTER_AFTER_BODY: {
941
+ startTagAfterAfterBody(this, token);
942
+ break;
943
+ }
944
+ case InsertionMode.AFTER_AFTER_FRAMESET: {
945
+ startTagAfterAfterFrameset(this, token);
946
+ break;
947
+ }
948
+ // Do nothing
949
+ }
950
+ }
951
+ /** @internal */
952
+ onEndTag(token) {
953
+ this.skipNextNewLine = false;
954
+ this.currentToken = token;
955
+ if (this.currentNotInHTML) {
956
+ endTagInForeignContent(this, token);
957
+ }
958
+ else {
959
+ this._endTagOutsideForeignContent(token);
960
+ }
961
+ }
962
+ /** @protected */
963
+ _endTagOutsideForeignContent(token) {
964
+ switch (this.insertionMode) {
965
+ case InsertionMode.INITIAL: {
966
+ tokenInInitialMode(this, token);
967
+ break;
968
+ }
969
+ case InsertionMode.BEFORE_HTML: {
970
+ endTagBeforeHtml(this, token);
971
+ break;
972
+ }
973
+ case InsertionMode.BEFORE_HEAD: {
974
+ endTagBeforeHead(this, token);
975
+ break;
976
+ }
977
+ case InsertionMode.IN_HEAD: {
978
+ endTagInHead(this, token);
979
+ break;
980
+ }
981
+ case InsertionMode.IN_HEAD_NO_SCRIPT: {
982
+ endTagInHeadNoScript(this, token);
983
+ break;
984
+ }
985
+ case InsertionMode.AFTER_HEAD: {
986
+ endTagAfterHead(this, token);
987
+ break;
988
+ }
989
+ case InsertionMode.IN_BODY: {
990
+ endTagInBody(this, token);
991
+ break;
992
+ }
993
+ case InsertionMode.TEXT: {
994
+ endTagInText(this, token);
995
+ break;
996
+ }
997
+ case InsertionMode.IN_TABLE: {
998
+ endTagInTable(this, token);
999
+ break;
1000
+ }
1001
+ case InsertionMode.IN_TABLE_TEXT: {
1002
+ tokenInTableText(this, token);
1003
+ break;
1004
+ }
1005
+ case InsertionMode.IN_CAPTION: {
1006
+ endTagInCaption(this, token);
1007
+ break;
1008
+ }
1009
+ case InsertionMode.IN_COLUMN_GROUP: {
1010
+ endTagInColumnGroup(this, token);
1011
+ break;
1012
+ }
1013
+ case InsertionMode.IN_TABLE_BODY: {
1014
+ endTagInTableBody(this, token);
1015
+ break;
1016
+ }
1017
+ case InsertionMode.IN_ROW: {
1018
+ endTagInRow(this, token);
1019
+ break;
1020
+ }
1021
+ case InsertionMode.IN_CELL: {
1022
+ endTagInCell(this, token);
1023
+ break;
1024
+ }
1025
+ case InsertionMode.IN_SELECT: {
1026
+ endTagInSelect(this, token);
1027
+ break;
1028
+ }
1029
+ case InsertionMode.IN_SELECT_IN_TABLE: {
1030
+ endTagInSelectInTable(this, token);
1031
+ break;
1032
+ }
1033
+ case InsertionMode.IN_TEMPLATE: {
1034
+ endTagInTemplate(this, token);
1035
+ break;
1036
+ }
1037
+ case InsertionMode.AFTER_BODY: {
1038
+ endTagAfterBody(this, token);
1039
+ break;
1040
+ }
1041
+ case InsertionMode.IN_FRAMESET: {
1042
+ endTagInFrameset(this, token);
1043
+ break;
1044
+ }
1045
+ case InsertionMode.AFTER_FRAMESET: {
1046
+ endTagAfterFrameset(this, token);
1047
+ break;
1048
+ }
1049
+ case InsertionMode.AFTER_AFTER_BODY: {
1050
+ tokenAfterAfterBody(this, token);
1051
+ break;
1052
+ }
1053
+ // Do nothing
1054
+ }
1055
+ }
1056
+ /** @internal */
1057
+ onEof(token) {
1058
+ switch (this.insertionMode) {
1059
+ case InsertionMode.INITIAL: {
1060
+ tokenInInitialMode(this, token);
1061
+ break;
1062
+ }
1063
+ case InsertionMode.BEFORE_HTML: {
1064
+ tokenBeforeHtml(this, token);
1065
+ break;
1066
+ }
1067
+ case InsertionMode.BEFORE_HEAD: {
1068
+ tokenBeforeHead(this, token);
1069
+ break;
1070
+ }
1071
+ case InsertionMode.IN_HEAD: {
1072
+ tokenInHead(this, token);
1073
+ break;
1074
+ }
1075
+ case InsertionMode.IN_HEAD_NO_SCRIPT: {
1076
+ tokenInHeadNoScript(this, token);
1077
+ break;
1078
+ }
1079
+ case InsertionMode.AFTER_HEAD: {
1080
+ tokenAfterHead(this, token);
1081
+ break;
1082
+ }
1083
+ case InsertionMode.IN_BODY:
1084
+ case InsertionMode.IN_TABLE:
1085
+ case InsertionMode.IN_CAPTION:
1086
+ case InsertionMode.IN_COLUMN_GROUP:
1087
+ case InsertionMode.IN_TABLE_BODY:
1088
+ case InsertionMode.IN_ROW:
1089
+ case InsertionMode.IN_CELL:
1090
+ case InsertionMode.IN_SELECT:
1091
+ case InsertionMode.IN_SELECT_IN_TABLE: {
1092
+ eofInBody(this, token);
1093
+ break;
1094
+ }
1095
+ case InsertionMode.TEXT: {
1096
+ eofInText(this, token);
1097
+ break;
1098
+ }
1099
+ case InsertionMode.IN_TABLE_TEXT: {
1100
+ tokenInTableText(this, token);
1101
+ break;
1102
+ }
1103
+ case InsertionMode.IN_TEMPLATE: {
1104
+ eofInTemplate(this, token);
1105
+ break;
1106
+ }
1107
+ case InsertionMode.AFTER_BODY:
1108
+ case InsertionMode.IN_FRAMESET:
1109
+ case InsertionMode.AFTER_FRAMESET:
1110
+ case InsertionMode.AFTER_AFTER_BODY:
1111
+ case InsertionMode.AFTER_AFTER_FRAMESET: {
1112
+ stopParsing(this, token);
1113
+ break;
1114
+ }
1115
+ // Do nothing
1116
+ }
1117
+ }
1118
+ /** @internal */
1119
+ onWhitespaceCharacter(token) {
1120
+ if (this.skipNextNewLine) {
1121
+ this.skipNextNewLine = false;
1122
+ if (token.chars.charCodeAt(0) === unicode.CODE_POINTS.LINE_FEED) {
1123
+ if (token.chars.length === 1) {
1124
+ return;
1125
+ }
1126
+ token.chars = token.chars.substr(1);
1127
+ }
1128
+ }
1129
+ if (this.tokenizer.inForeignNode) {
1130
+ this._insertCharacters(token);
1131
+ return;
1132
+ }
1133
+ switch (this.insertionMode) {
1134
+ case InsertionMode.IN_HEAD:
1135
+ case InsertionMode.IN_HEAD_NO_SCRIPT:
1136
+ case InsertionMode.AFTER_HEAD:
1137
+ case InsertionMode.TEXT:
1138
+ case InsertionMode.IN_COLUMN_GROUP:
1139
+ case InsertionMode.IN_SELECT:
1140
+ case InsertionMode.IN_SELECT_IN_TABLE:
1141
+ case InsertionMode.IN_FRAMESET:
1142
+ case InsertionMode.AFTER_FRAMESET: {
1143
+ this._insertCharacters(token);
1144
+ break;
1145
+ }
1146
+ case InsertionMode.IN_BODY:
1147
+ case InsertionMode.IN_CAPTION:
1148
+ case InsertionMode.IN_CELL:
1149
+ case InsertionMode.IN_TEMPLATE:
1150
+ case InsertionMode.AFTER_BODY:
1151
+ case InsertionMode.AFTER_AFTER_BODY:
1152
+ case InsertionMode.AFTER_AFTER_FRAMESET: {
1153
+ whitespaceCharacterInBody(this, token);
1154
+ break;
1155
+ }
1156
+ case InsertionMode.IN_TABLE:
1157
+ case InsertionMode.IN_TABLE_BODY:
1158
+ case InsertionMode.IN_ROW: {
1159
+ characterInTable(this, token);
1160
+ break;
1161
+ }
1162
+ case InsertionMode.IN_TABLE_TEXT: {
1163
+ whitespaceCharacterInTableText(this, token);
1164
+ break;
1165
+ }
1166
+ // Do nothing
1167
+ }
1168
+ }
1169
+ }
1170
+ //Adoption agency algorithm
1171
+ //(see: http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#adoptionAgency)
1172
+ //------------------------------------------------------------------
1173
+ //Steps 5-8 of the algorithm
1174
+ function aaObtainFormattingElementEntry(p, token) {
1175
+ let formattingElementEntry = p.activeFormattingElements.getElementEntryInScopeWithTagName(token.tagName);
1176
+ if (formattingElementEntry) {
1177
+ if (!p.openElements.contains(formattingElementEntry.element)) {
1178
+ p.activeFormattingElements.removeEntry(formattingElementEntry);
1179
+ formattingElementEntry = null;
1180
+ }
1181
+ else if (!p.openElements.hasInScope(token.tagID)) {
1182
+ formattingElementEntry = null;
1183
+ }
1184
+ }
1185
+ else {
1186
+ genericEndTagInBody(p, token);
1187
+ }
1188
+ return formattingElementEntry;
1189
+ }
1190
+ //Steps 9 and 10 of the algorithm
1191
+ function aaObtainFurthestBlock(p, formattingElementEntry) {
1192
+ let furthestBlock = null;
1193
+ let idx = p.openElements.stackTop;
1194
+ for (; idx >= 0; idx--) {
1195
+ const element = p.openElements.items[idx];
1196
+ if (element === formattingElementEntry.element) {
1197
+ break;
1198
+ }
1199
+ if (p._isSpecialElement(element, p.openElements.tagIDs[idx])) {
1200
+ furthestBlock = element;
1201
+ }
1202
+ }
1203
+ if (!furthestBlock) {
1204
+ p.openElements.shortenToLength(Math.max(idx, 0));
1205
+ p.activeFormattingElements.removeEntry(formattingElementEntry);
1206
+ }
1207
+ return furthestBlock;
1208
+ }
1209
+ //Step 13 of the algorithm
1210
+ function aaInnerLoop(p, furthestBlock, formattingElement) {
1211
+ let lastElement = furthestBlock;
1212
+ let nextElement = p.openElements.getCommonAncestor(furthestBlock);
1213
+ for (let i = 0, element = nextElement; element !== formattingElement; i++, element = nextElement) {
1214
+ //NOTE: store the next element for the next loop iteration (it may be deleted from the stack by step 9.5)
1215
+ nextElement = p.openElements.getCommonAncestor(element);
1216
+ const elementEntry = p.activeFormattingElements.getElementEntry(element);
1217
+ const counterOverflow = elementEntry && i >= AA_INNER_LOOP_ITER;
1218
+ const shouldRemoveFromOpenElements = !elementEntry || counterOverflow;
1219
+ if (shouldRemoveFromOpenElements) {
1220
+ if (counterOverflow) {
1221
+ p.activeFormattingElements.removeEntry(elementEntry);
1222
+ }
1223
+ p.openElements.remove(element);
1224
+ }
1225
+ else {
1226
+ element = aaRecreateElementFromEntry(p, elementEntry);
1227
+ if (lastElement === furthestBlock) {
1228
+ p.activeFormattingElements.bookmark = elementEntry;
1229
+ }
1230
+ p.treeAdapter.detachNode(lastElement);
1231
+ p.treeAdapter.appendChild(element, lastElement);
1232
+ lastElement = element;
1233
+ }
1234
+ }
1235
+ return lastElement;
1236
+ }
1237
+ //Step 13.7 of the algorithm
1238
+ function aaRecreateElementFromEntry(p, elementEntry) {
1239
+ const ns = p.treeAdapter.getNamespaceURI(elementEntry.element);
1240
+ const newElement = p.treeAdapter.createElement(elementEntry.token.tagName, ns, elementEntry.token.attrs);
1241
+ p.openElements.replace(elementEntry.element, newElement);
1242
+ elementEntry.element = newElement;
1243
+ return newElement;
1244
+ }
1245
+ //Step 14 of the algorithm
1246
+ function aaInsertLastNodeInCommonAncestor(p, commonAncestor, lastElement) {
1247
+ const tn = p.treeAdapter.getTagName(commonAncestor);
1248
+ const tid = html.getTagID(tn);
1249
+ if (p._isElementCausesFosterParenting(tid)) {
1250
+ p._fosterParentElement(lastElement);
1251
+ }
1252
+ else {
1253
+ const ns = p.treeAdapter.getNamespaceURI(commonAncestor);
1254
+ if (tid === html.TAG_ID.TEMPLATE && ns === html.NS.HTML) {
1255
+ commonAncestor = p.treeAdapter.getTemplateContent(commonAncestor);
1256
+ }
1257
+ p.treeAdapter.appendChild(commonAncestor, lastElement);
1258
+ }
1259
+ }
1260
+ //Steps 15-19 of the algorithm
1261
+ function aaReplaceFormattingElement(p, furthestBlock, formattingElementEntry) {
1262
+ const ns = p.treeAdapter.getNamespaceURI(formattingElementEntry.element);
1263
+ const { token } = formattingElementEntry;
1264
+ const newElement = p.treeAdapter.createElement(token.tagName, ns, token.attrs);
1265
+ p._adoptNodes(furthestBlock, newElement);
1266
+ p.treeAdapter.appendChild(furthestBlock, newElement);
1267
+ p.activeFormattingElements.insertElementAfterBookmark(newElement, token);
1268
+ p.activeFormattingElements.removeEntry(formattingElementEntry);
1269
+ p.openElements.remove(formattingElementEntry.element);
1270
+ p.openElements.insertAfter(furthestBlock, newElement, token.tagID);
1271
+ }
1272
+ //Algorithm entry point
1273
+ function callAdoptionAgency(p, token) {
1274
+ for (let i = 0; i < AA_OUTER_LOOP_ITER; i++) {
1275
+ const formattingElementEntry = aaObtainFormattingElementEntry(p, token);
1276
+ if (!formattingElementEntry) {
1277
+ break;
1278
+ }
1279
+ const furthestBlock = aaObtainFurthestBlock(p, formattingElementEntry);
1280
+ if (!furthestBlock) {
1281
+ break;
1282
+ }
1283
+ p.activeFormattingElements.bookmark = formattingElementEntry;
1284
+ const lastElement = aaInnerLoop(p, furthestBlock, formattingElementEntry.element);
1285
+ const commonAncestor = p.openElements.getCommonAncestor(formattingElementEntry.element);
1286
+ p.treeAdapter.detachNode(lastElement);
1287
+ if (commonAncestor)
1288
+ aaInsertLastNodeInCommonAncestor(p, commonAncestor, lastElement);
1289
+ aaReplaceFormattingElement(p, furthestBlock, formattingElementEntry);
1290
+ }
1291
+ }
1292
+ //Generic token handlers
1293
+ //------------------------------------------------------------------
1294
+ function appendComment(p, token) {
1295
+ p._appendCommentNode(token, p.openElements.currentTmplContentOrNode);
1296
+ }
1297
+ function appendCommentToRootHtmlElement(p, token) {
1298
+ p._appendCommentNode(token, p.openElements.items[0]);
1299
+ }
1300
+ function appendCommentToDocument(p, token) {
1301
+ p._appendCommentNode(token, p.document);
1302
+ }
1303
+ function stopParsing(p, token) {
1304
+ p.stopped = true;
1305
+ // NOTE: Set end locations for elements that remain on the open element stack.
1306
+ if (token.location) {
1307
+ // NOTE: If we are not in a fragment, `html` and `body` will stay on the stack.
1308
+ // This is a problem, as we might overwrite their end position here.
1309
+ const target = p.fragmentContext ? 0 : 2;
1310
+ for (let i = p.openElements.stackTop; i >= target; i--) {
1311
+ p._setEndLocation(p.openElements.items[i], token);
1312
+ }
1313
+ // Handle `html` and `body`
1314
+ if (!p.fragmentContext && p.openElements.stackTop >= 0) {
1315
+ const htmlElement = p.openElements.items[0];
1316
+ const htmlLocation = p.treeAdapter.getNodeSourceCodeLocation(htmlElement);
1317
+ if (htmlLocation && !htmlLocation.endTag) {
1318
+ p._setEndLocation(htmlElement, token);
1319
+ if (p.openElements.stackTop >= 1) {
1320
+ const bodyElement = p.openElements.items[1];
1321
+ const bodyLocation = p.treeAdapter.getNodeSourceCodeLocation(bodyElement);
1322
+ if (bodyLocation && !bodyLocation.endTag) {
1323
+ p._setEndLocation(bodyElement, token);
1324
+ }
1325
+ }
1326
+ }
1327
+ }
1328
+ }
1329
+ }
1330
+ // The "initial" insertion mode
1331
+ //------------------------------------------------------------------
1332
+ function doctypeInInitialMode(p, token) {
1333
+ p._setDocumentType(token);
1334
+ const mode = token.forceQuirks ? html.DOCUMENT_MODE.QUIRKS : doctype.getDocumentMode(token);
1335
+ if (!doctype.isConforming(token)) {
1336
+ p._err(token, errorCodes.ERR.nonConformingDoctype);
1337
+ }
1338
+ p.treeAdapter.setDocumentMode(p.document, mode);
1339
+ p.insertionMode = InsertionMode.BEFORE_HTML;
1340
+ }
1341
+ function tokenInInitialMode(p, token) {
1342
+ p._err(token, errorCodes.ERR.missingDoctype, true);
1343
+ p.treeAdapter.setDocumentMode(p.document, html.DOCUMENT_MODE.QUIRKS);
1344
+ p.insertionMode = InsertionMode.BEFORE_HTML;
1345
+ p._processToken(token);
1346
+ }
1347
+ // The "before html" insertion mode
1348
+ //------------------------------------------------------------------
1349
+ function startTagBeforeHtml(p, token) {
1350
+ if (token.tagID === html.TAG_ID.HTML) {
1351
+ p._insertElement(token, html.NS.HTML);
1352
+ p.insertionMode = InsertionMode.BEFORE_HEAD;
1353
+ }
1354
+ else {
1355
+ tokenBeforeHtml(p, token);
1356
+ }
1357
+ }
1358
+ function endTagBeforeHtml(p, token) {
1359
+ const tn = token.tagID;
1360
+ if (tn === html.TAG_ID.HTML || tn === html.TAG_ID.HEAD || tn === html.TAG_ID.BODY || tn === html.TAG_ID.BR) {
1361
+ tokenBeforeHtml(p, token);
1362
+ }
1363
+ }
1364
+ function tokenBeforeHtml(p, token) {
1365
+ p._insertFakeRootElement();
1366
+ p.insertionMode = InsertionMode.BEFORE_HEAD;
1367
+ p._processToken(token);
1368
+ }
1369
+ // The "before head" insertion mode
1370
+ //------------------------------------------------------------------
1371
+ function startTagBeforeHead(p, token) {
1372
+ switch (token.tagID) {
1373
+ case html.TAG_ID.HTML: {
1374
+ startTagInBody(p, token);
1375
+ break;
1376
+ }
1377
+ case html.TAG_ID.HEAD: {
1378
+ p._insertElement(token, html.NS.HTML);
1379
+ p.headElement = p.openElements.current;
1380
+ p.insertionMode = InsertionMode.IN_HEAD;
1381
+ break;
1382
+ }
1383
+ default: {
1384
+ tokenBeforeHead(p, token);
1385
+ }
1386
+ }
1387
+ }
1388
+ function endTagBeforeHead(p, token) {
1389
+ const tn = token.tagID;
1390
+ if (tn === html.TAG_ID.HEAD || tn === html.TAG_ID.BODY || tn === html.TAG_ID.HTML || tn === html.TAG_ID.BR) {
1391
+ tokenBeforeHead(p, token);
1392
+ }
1393
+ else {
1394
+ p._err(token, errorCodes.ERR.endTagWithoutMatchingOpenElement);
1395
+ }
1396
+ }
1397
+ function tokenBeforeHead(p, token) {
1398
+ p._insertFakeElement(html.TAG_NAMES.HEAD, html.TAG_ID.HEAD);
1399
+ p.headElement = p.openElements.current;
1400
+ p.insertionMode = InsertionMode.IN_HEAD;
1401
+ p._processToken(token);
1402
+ }
1403
+ // The "in head" insertion mode
1404
+ //------------------------------------------------------------------
1405
+ function startTagInHead(p, token) {
1406
+ switch (token.tagID) {
1407
+ case html.TAG_ID.HTML: {
1408
+ startTagInBody(p, token);
1409
+ break;
1410
+ }
1411
+ case html.TAG_ID.BASE:
1412
+ case html.TAG_ID.BASEFONT:
1413
+ case html.TAG_ID.BGSOUND:
1414
+ case html.TAG_ID.LINK:
1415
+ case html.TAG_ID.META: {
1416
+ p._appendElement(token, html.NS.HTML);
1417
+ token.ackSelfClosing = true;
1418
+ break;
1419
+ }
1420
+ case html.TAG_ID.TITLE: {
1421
+ p._switchToTextParsing(token, index.TokenizerMode.RCDATA);
1422
+ break;
1423
+ }
1424
+ case html.TAG_ID.NOSCRIPT: {
1425
+ if (p.options.scriptingEnabled) {
1426
+ p._switchToTextParsing(token, index.TokenizerMode.RAWTEXT);
1427
+ }
1428
+ else {
1429
+ p._insertElement(token, html.NS.HTML);
1430
+ p.insertionMode = InsertionMode.IN_HEAD_NO_SCRIPT;
1431
+ }
1432
+ break;
1433
+ }
1434
+ case html.TAG_ID.NOFRAMES:
1435
+ case html.TAG_ID.STYLE: {
1436
+ p._switchToTextParsing(token, index.TokenizerMode.RAWTEXT);
1437
+ break;
1438
+ }
1439
+ case html.TAG_ID.SCRIPT: {
1440
+ p._switchToTextParsing(token, index.TokenizerMode.SCRIPT_DATA);
1441
+ break;
1442
+ }
1443
+ case html.TAG_ID.TEMPLATE: {
1444
+ p._insertTemplate(token);
1445
+ p.activeFormattingElements.insertMarker();
1446
+ p.framesetOk = false;
1447
+ p.insertionMode = InsertionMode.IN_TEMPLATE;
1448
+ p.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE);
1449
+ break;
1450
+ }
1451
+ case html.TAG_ID.HEAD: {
1452
+ p._err(token, errorCodes.ERR.misplacedStartTagForHeadElement);
1453
+ break;
1454
+ }
1455
+ default: {
1456
+ tokenInHead(p, token);
1457
+ }
1458
+ }
1459
+ }
1460
+ function endTagInHead(p, token) {
1461
+ switch (token.tagID) {
1462
+ case html.TAG_ID.HEAD: {
1463
+ p.openElements.pop();
1464
+ p.insertionMode = InsertionMode.AFTER_HEAD;
1465
+ break;
1466
+ }
1467
+ case html.TAG_ID.BODY:
1468
+ case html.TAG_ID.BR:
1469
+ case html.TAG_ID.HTML: {
1470
+ tokenInHead(p, token);
1471
+ break;
1472
+ }
1473
+ case html.TAG_ID.TEMPLATE: {
1474
+ templateEndTagInHead(p, token);
1475
+ break;
1476
+ }
1477
+ default: {
1478
+ p._err(token, errorCodes.ERR.endTagWithoutMatchingOpenElement);
1479
+ }
1480
+ }
1481
+ }
1482
+ function templateEndTagInHead(p, token) {
1483
+ if (p.openElements.tmplCount > 0) {
1484
+ p.openElements.generateImpliedEndTagsThoroughly();
1485
+ if (p.openElements.currentTagId !== html.TAG_ID.TEMPLATE) {
1486
+ p._err(token, errorCodes.ERR.closingOfElementWithOpenChildElements);
1487
+ }
1488
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.TEMPLATE);
1489
+ p.activeFormattingElements.clearToLastMarker();
1490
+ p.tmplInsertionModeStack.shift();
1491
+ p._resetInsertionMode();
1492
+ }
1493
+ else {
1494
+ p._err(token, errorCodes.ERR.endTagWithoutMatchingOpenElement);
1495
+ }
1496
+ }
1497
+ function tokenInHead(p, token) {
1498
+ p.openElements.pop();
1499
+ p.insertionMode = InsertionMode.AFTER_HEAD;
1500
+ p._processToken(token);
1501
+ }
1502
+ // The "in head no script" insertion mode
1503
+ //------------------------------------------------------------------
1504
+ function startTagInHeadNoScript(p, token) {
1505
+ switch (token.tagID) {
1506
+ case html.TAG_ID.HTML: {
1507
+ startTagInBody(p, token);
1508
+ break;
1509
+ }
1510
+ case html.TAG_ID.BASEFONT:
1511
+ case html.TAG_ID.BGSOUND:
1512
+ case html.TAG_ID.HEAD:
1513
+ case html.TAG_ID.LINK:
1514
+ case html.TAG_ID.META:
1515
+ case html.TAG_ID.NOFRAMES:
1516
+ case html.TAG_ID.STYLE: {
1517
+ startTagInHead(p, token);
1518
+ break;
1519
+ }
1520
+ case html.TAG_ID.NOSCRIPT: {
1521
+ p._err(token, errorCodes.ERR.nestedNoscriptInHead);
1522
+ break;
1523
+ }
1524
+ default: {
1525
+ tokenInHeadNoScript(p, token);
1526
+ }
1527
+ }
1528
+ }
1529
+ function endTagInHeadNoScript(p, token) {
1530
+ switch (token.tagID) {
1531
+ case html.TAG_ID.NOSCRIPT: {
1532
+ p.openElements.pop();
1533
+ p.insertionMode = InsertionMode.IN_HEAD;
1534
+ break;
1535
+ }
1536
+ case html.TAG_ID.BR: {
1537
+ tokenInHeadNoScript(p, token);
1538
+ break;
1539
+ }
1540
+ default: {
1541
+ p._err(token, errorCodes.ERR.endTagWithoutMatchingOpenElement);
1542
+ }
1543
+ }
1544
+ }
1545
+ function tokenInHeadNoScript(p, token$1) {
1546
+ const errCode = token$1.type === token.TokenType.EOF ? errorCodes.ERR.openElementsLeftAfterEof : errorCodes.ERR.disallowedContentInNoscriptInHead;
1547
+ p._err(token$1, errCode);
1548
+ p.openElements.pop();
1549
+ p.insertionMode = InsertionMode.IN_HEAD;
1550
+ p._processToken(token$1);
1551
+ }
1552
+ // The "after head" insertion mode
1553
+ //------------------------------------------------------------------
1554
+ function startTagAfterHead(p, token) {
1555
+ switch (token.tagID) {
1556
+ case html.TAG_ID.HTML: {
1557
+ startTagInBody(p, token);
1558
+ break;
1559
+ }
1560
+ case html.TAG_ID.BODY: {
1561
+ p._insertElement(token, html.NS.HTML);
1562
+ p.framesetOk = false;
1563
+ p.insertionMode = InsertionMode.IN_BODY;
1564
+ break;
1565
+ }
1566
+ case html.TAG_ID.FRAMESET: {
1567
+ p._insertElement(token, html.NS.HTML);
1568
+ p.insertionMode = InsertionMode.IN_FRAMESET;
1569
+ break;
1570
+ }
1571
+ case html.TAG_ID.BASE:
1572
+ case html.TAG_ID.BASEFONT:
1573
+ case html.TAG_ID.BGSOUND:
1574
+ case html.TAG_ID.LINK:
1575
+ case html.TAG_ID.META:
1576
+ case html.TAG_ID.NOFRAMES:
1577
+ case html.TAG_ID.SCRIPT:
1578
+ case html.TAG_ID.STYLE:
1579
+ case html.TAG_ID.TEMPLATE:
1580
+ case html.TAG_ID.TITLE: {
1581
+ p._err(token, errorCodes.ERR.abandonedHeadElementChild);
1582
+ p.openElements.push(p.headElement, html.TAG_ID.HEAD);
1583
+ startTagInHead(p, token);
1584
+ p.openElements.remove(p.headElement);
1585
+ break;
1586
+ }
1587
+ case html.TAG_ID.HEAD: {
1588
+ p._err(token, errorCodes.ERR.misplacedStartTagForHeadElement);
1589
+ break;
1590
+ }
1591
+ default: {
1592
+ tokenAfterHead(p, token);
1593
+ }
1594
+ }
1595
+ }
1596
+ function endTagAfterHead(p, token) {
1597
+ switch (token.tagID) {
1598
+ case html.TAG_ID.BODY:
1599
+ case html.TAG_ID.HTML:
1600
+ case html.TAG_ID.BR: {
1601
+ tokenAfterHead(p, token);
1602
+ break;
1603
+ }
1604
+ case html.TAG_ID.TEMPLATE: {
1605
+ templateEndTagInHead(p, token);
1606
+ break;
1607
+ }
1608
+ default: {
1609
+ p._err(token, errorCodes.ERR.endTagWithoutMatchingOpenElement);
1610
+ }
1611
+ }
1612
+ }
1613
+ function tokenAfterHead(p, token) {
1614
+ p._insertFakeElement(html.TAG_NAMES.BODY, html.TAG_ID.BODY);
1615
+ p.insertionMode = InsertionMode.IN_BODY;
1616
+ modeInBody(p, token);
1617
+ }
1618
+ // The "in body" insertion mode
1619
+ //------------------------------------------------------------------
1620
+ function modeInBody(p, token$1) {
1621
+ switch (token$1.type) {
1622
+ case token.TokenType.CHARACTER: {
1623
+ characterInBody(p, token$1);
1624
+ break;
1625
+ }
1626
+ case token.TokenType.WHITESPACE_CHARACTER: {
1627
+ whitespaceCharacterInBody(p, token$1);
1628
+ break;
1629
+ }
1630
+ case token.TokenType.COMMENT: {
1631
+ appendComment(p, token$1);
1632
+ break;
1633
+ }
1634
+ case token.TokenType.START_TAG: {
1635
+ startTagInBody(p, token$1);
1636
+ break;
1637
+ }
1638
+ case token.TokenType.END_TAG: {
1639
+ endTagInBody(p, token$1);
1640
+ break;
1641
+ }
1642
+ case token.TokenType.EOF: {
1643
+ eofInBody(p, token$1);
1644
+ break;
1645
+ }
1646
+ // Do nothing
1647
+ }
1648
+ }
1649
+ function whitespaceCharacterInBody(p, token) {
1650
+ p._reconstructActiveFormattingElements();
1651
+ p._insertCharacters(token);
1652
+ }
1653
+ function characterInBody(p, token) {
1654
+ p._reconstructActiveFormattingElements();
1655
+ p._insertCharacters(token);
1656
+ p.framesetOk = false;
1657
+ }
1658
+ function htmlStartTagInBody(p, token) {
1659
+ if (p.openElements.tmplCount === 0) {
1660
+ p.treeAdapter.adoptAttributes(p.openElements.items[0], token.attrs);
1661
+ }
1662
+ }
1663
+ function bodyStartTagInBody(p, token) {
1664
+ const bodyElement = p.openElements.tryPeekProperlyNestedBodyElement();
1665
+ if (bodyElement && p.openElements.tmplCount === 0) {
1666
+ p.framesetOk = false;
1667
+ p.treeAdapter.adoptAttributes(bodyElement, token.attrs);
1668
+ }
1669
+ }
1670
+ function framesetStartTagInBody(p, token) {
1671
+ const bodyElement = p.openElements.tryPeekProperlyNestedBodyElement();
1672
+ if (p.framesetOk && bodyElement) {
1673
+ p.treeAdapter.detachNode(bodyElement);
1674
+ p.openElements.popAllUpToHtmlElement();
1675
+ p._insertElement(token, html.NS.HTML);
1676
+ p.insertionMode = InsertionMode.IN_FRAMESET;
1677
+ }
1678
+ }
1679
+ function addressStartTagInBody(p, token) {
1680
+ if (p.openElements.hasInButtonScope(html.TAG_ID.P)) {
1681
+ p._closePElement();
1682
+ }
1683
+ p._insertElement(token, html.NS.HTML);
1684
+ }
1685
+ function numberedHeaderStartTagInBody(p, token) {
1686
+ if (p.openElements.hasInButtonScope(html.TAG_ID.P)) {
1687
+ p._closePElement();
1688
+ }
1689
+ if (p.openElements.currentTagId !== undefined && html.NUMBERED_HEADERS.has(p.openElements.currentTagId)) {
1690
+ p.openElements.pop();
1691
+ }
1692
+ p._insertElement(token, html.NS.HTML);
1693
+ }
1694
+ function preStartTagInBody(p, token) {
1695
+ if (p.openElements.hasInButtonScope(html.TAG_ID.P)) {
1696
+ p._closePElement();
1697
+ }
1698
+ p._insertElement(token, html.NS.HTML);
1699
+ //NOTE: If the next token is a U+000A LINE FEED (LF) character token, then ignore that token and move
1700
+ //on to the next one. (Newlines at the start of pre blocks are ignored as an authoring convenience.)
1701
+ p.skipNextNewLine = true;
1702
+ p.framesetOk = false;
1703
+ }
1704
+ function formStartTagInBody(p, token) {
1705
+ const inTemplate = p.openElements.tmplCount > 0;
1706
+ if (!p.formElement || inTemplate) {
1707
+ if (p.openElements.hasInButtonScope(html.TAG_ID.P)) {
1708
+ p._closePElement();
1709
+ }
1710
+ p._insertElement(token, html.NS.HTML);
1711
+ if (!inTemplate) {
1712
+ p.formElement = p.openElements.current;
1713
+ }
1714
+ }
1715
+ }
1716
+ function listItemStartTagInBody(p, token) {
1717
+ p.framesetOk = false;
1718
+ const tn = token.tagID;
1719
+ for (let i = p.openElements.stackTop; i >= 0; i--) {
1720
+ const elementId = p.openElements.tagIDs[i];
1721
+ if ((tn === html.TAG_ID.LI && elementId === html.TAG_ID.LI) ||
1722
+ ((tn === html.TAG_ID.DD || tn === html.TAG_ID.DT) && (elementId === html.TAG_ID.DD || elementId === html.TAG_ID.DT))) {
1723
+ p.openElements.generateImpliedEndTagsWithExclusion(elementId);
1724
+ p.openElements.popUntilTagNamePopped(elementId);
1725
+ break;
1726
+ }
1727
+ if (elementId !== html.TAG_ID.ADDRESS &&
1728
+ elementId !== html.TAG_ID.DIV &&
1729
+ elementId !== html.TAG_ID.P &&
1730
+ p._isSpecialElement(p.openElements.items[i], elementId)) {
1731
+ break;
1732
+ }
1733
+ }
1734
+ if (p.openElements.hasInButtonScope(html.TAG_ID.P)) {
1735
+ p._closePElement();
1736
+ }
1737
+ p._insertElement(token, html.NS.HTML);
1738
+ }
1739
+ function plaintextStartTagInBody(p, token) {
1740
+ if (p.openElements.hasInButtonScope(html.TAG_ID.P)) {
1741
+ p._closePElement();
1742
+ }
1743
+ p._insertElement(token, html.NS.HTML);
1744
+ p.tokenizer.state = index.TokenizerMode.PLAINTEXT;
1745
+ }
1746
+ function buttonStartTagInBody(p, token) {
1747
+ if (p.openElements.hasInScope(html.TAG_ID.BUTTON)) {
1748
+ p.openElements.generateImpliedEndTags();
1749
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.BUTTON);
1750
+ }
1751
+ p._reconstructActiveFormattingElements();
1752
+ p._insertElement(token, html.NS.HTML);
1753
+ p.framesetOk = false;
1754
+ }
1755
+ function aStartTagInBody(p, token) {
1756
+ const activeElementEntry = p.activeFormattingElements.getElementEntryInScopeWithTagName(html.TAG_NAMES.A);
1757
+ if (activeElementEntry) {
1758
+ callAdoptionAgency(p, token);
1759
+ p.openElements.remove(activeElementEntry.element);
1760
+ p.activeFormattingElements.removeEntry(activeElementEntry);
1761
+ }
1762
+ p._reconstructActiveFormattingElements();
1763
+ p._insertElement(token, html.NS.HTML);
1764
+ p.activeFormattingElements.pushElement(p.openElements.current, token);
1765
+ }
1766
+ function bStartTagInBody(p, token) {
1767
+ p._reconstructActiveFormattingElements();
1768
+ p._insertElement(token, html.NS.HTML);
1769
+ p.activeFormattingElements.pushElement(p.openElements.current, token);
1770
+ }
1771
+ function nobrStartTagInBody(p, token) {
1772
+ p._reconstructActiveFormattingElements();
1773
+ if (p.openElements.hasInScope(html.TAG_ID.NOBR)) {
1774
+ callAdoptionAgency(p, token);
1775
+ p._reconstructActiveFormattingElements();
1776
+ }
1777
+ p._insertElement(token, html.NS.HTML);
1778
+ p.activeFormattingElements.pushElement(p.openElements.current, token);
1779
+ }
1780
+ function appletStartTagInBody(p, token) {
1781
+ p._reconstructActiveFormattingElements();
1782
+ p._insertElement(token, html.NS.HTML);
1783
+ p.activeFormattingElements.insertMarker();
1784
+ p.framesetOk = false;
1785
+ }
1786
+ function tableStartTagInBody(p, token) {
1787
+ if (p.treeAdapter.getDocumentMode(p.document) !== html.DOCUMENT_MODE.QUIRKS && p.openElements.hasInButtonScope(html.TAG_ID.P)) {
1788
+ p._closePElement();
1789
+ }
1790
+ p._insertElement(token, html.NS.HTML);
1791
+ p.framesetOk = false;
1792
+ p.insertionMode = InsertionMode.IN_TABLE;
1793
+ }
1794
+ function areaStartTagInBody(p, token) {
1795
+ p._reconstructActiveFormattingElements();
1796
+ p._appendElement(token, html.NS.HTML);
1797
+ p.framesetOk = false;
1798
+ token.ackSelfClosing = true;
1799
+ }
1800
+ function isHiddenInput(token$1) {
1801
+ const inputType = token.getTokenAttr(token$1, html.ATTRS.TYPE);
1802
+ return inputType != null && inputType.toLowerCase() === HIDDEN_INPUT_TYPE;
1803
+ }
1804
+ function inputStartTagInBody(p, token) {
1805
+ p._reconstructActiveFormattingElements();
1806
+ p._appendElement(token, html.NS.HTML);
1807
+ if (!isHiddenInput(token)) {
1808
+ p.framesetOk = false;
1809
+ }
1810
+ token.ackSelfClosing = true;
1811
+ }
1812
+ function paramStartTagInBody(p, token) {
1813
+ p._appendElement(token, html.NS.HTML);
1814
+ token.ackSelfClosing = true;
1815
+ }
1816
+ function hrStartTagInBody(p, token) {
1817
+ if (p.openElements.hasInButtonScope(html.TAG_ID.P)) {
1818
+ p._closePElement();
1819
+ }
1820
+ p._appendElement(token, html.NS.HTML);
1821
+ p.framesetOk = false;
1822
+ token.ackSelfClosing = true;
1823
+ }
1824
+ function imageStartTagInBody(p, token) {
1825
+ token.tagName = html.TAG_NAMES.IMG;
1826
+ token.tagID = html.TAG_ID.IMG;
1827
+ areaStartTagInBody(p, token);
1828
+ }
1829
+ function textareaStartTagInBody(p, token) {
1830
+ p._insertElement(token, html.NS.HTML);
1831
+ //NOTE: If the next token is a U+000A LINE FEED (LF) character token, then ignore that token and move
1832
+ //on to the next one. (Newlines at the start of textarea elements are ignored as an authoring convenience.)
1833
+ p.skipNextNewLine = true;
1834
+ p.tokenizer.state = index.TokenizerMode.RCDATA;
1835
+ p.originalInsertionMode = p.insertionMode;
1836
+ p.framesetOk = false;
1837
+ p.insertionMode = InsertionMode.TEXT;
1838
+ }
1839
+ function xmpStartTagInBody(p, token) {
1840
+ if (p.openElements.hasInButtonScope(html.TAG_ID.P)) {
1841
+ p._closePElement();
1842
+ }
1843
+ p._reconstructActiveFormattingElements();
1844
+ p.framesetOk = false;
1845
+ p._switchToTextParsing(token, index.TokenizerMode.RAWTEXT);
1846
+ }
1847
+ function iframeStartTagInBody(p, token) {
1848
+ p.framesetOk = false;
1849
+ p._switchToTextParsing(token, index.TokenizerMode.RAWTEXT);
1850
+ }
1851
+ //NOTE: here we assume that we always act as a user agent with enabled plugins/frames, so we parse
1852
+ //<noembed>/<noframes> as rawtext.
1853
+ function rawTextStartTagInBody(p, token) {
1854
+ p._switchToTextParsing(token, index.TokenizerMode.RAWTEXT);
1855
+ }
1856
+ function selectStartTagInBody(p, token) {
1857
+ p._reconstructActiveFormattingElements();
1858
+ p._insertElement(token, html.NS.HTML);
1859
+ p.framesetOk = false;
1860
+ p.insertionMode =
1861
+ p.insertionMode === InsertionMode.IN_TABLE ||
1862
+ p.insertionMode === InsertionMode.IN_CAPTION ||
1863
+ p.insertionMode === InsertionMode.IN_TABLE_BODY ||
1864
+ p.insertionMode === InsertionMode.IN_ROW ||
1865
+ p.insertionMode === InsertionMode.IN_CELL
1866
+ ? InsertionMode.IN_SELECT_IN_TABLE
1867
+ : InsertionMode.IN_SELECT;
1868
+ }
1869
+ function optgroupStartTagInBody(p, token) {
1870
+ if (p.openElements.currentTagId === html.TAG_ID.OPTION) {
1871
+ p.openElements.pop();
1872
+ }
1873
+ p._reconstructActiveFormattingElements();
1874
+ p._insertElement(token, html.NS.HTML);
1875
+ }
1876
+ function rbStartTagInBody(p, token) {
1877
+ if (p.openElements.hasInScope(html.TAG_ID.RUBY)) {
1878
+ p.openElements.generateImpliedEndTags();
1879
+ }
1880
+ p._insertElement(token, html.NS.HTML);
1881
+ }
1882
+ function rtStartTagInBody(p, token) {
1883
+ if (p.openElements.hasInScope(html.TAG_ID.RUBY)) {
1884
+ p.openElements.generateImpliedEndTagsWithExclusion(html.TAG_ID.RTC);
1885
+ }
1886
+ p._insertElement(token, html.NS.HTML);
1887
+ }
1888
+ function mathStartTagInBody(p, token) {
1889
+ p._reconstructActiveFormattingElements();
1890
+ foreignContent.adjustTokenMathMLAttrs(token);
1891
+ foreignContent.adjustTokenXMLAttrs(token);
1892
+ if (token.selfClosing) {
1893
+ p._appendElement(token, html.NS.MATHML);
1894
+ }
1895
+ else {
1896
+ p._insertElement(token, html.NS.MATHML);
1897
+ }
1898
+ token.ackSelfClosing = true;
1899
+ }
1900
+ function svgStartTagInBody(p, token) {
1901
+ p._reconstructActiveFormattingElements();
1902
+ foreignContent.adjustTokenSVGAttrs(token);
1903
+ foreignContent.adjustTokenXMLAttrs(token);
1904
+ if (token.selfClosing) {
1905
+ p._appendElement(token, html.NS.SVG);
1906
+ }
1907
+ else {
1908
+ p._insertElement(token, html.NS.SVG);
1909
+ }
1910
+ token.ackSelfClosing = true;
1911
+ }
1912
+ function genericStartTagInBody(p, token) {
1913
+ p._reconstructActiveFormattingElements();
1914
+ p._insertElement(token, html.NS.HTML);
1915
+ }
1916
+ function startTagInBody(p, token) {
1917
+ switch (token.tagID) {
1918
+ case html.TAG_ID.I:
1919
+ case html.TAG_ID.S:
1920
+ case html.TAG_ID.B:
1921
+ case html.TAG_ID.U:
1922
+ case html.TAG_ID.EM:
1923
+ case html.TAG_ID.TT:
1924
+ case html.TAG_ID.BIG:
1925
+ case html.TAG_ID.CODE:
1926
+ case html.TAG_ID.FONT:
1927
+ case html.TAG_ID.SMALL:
1928
+ case html.TAG_ID.STRIKE:
1929
+ case html.TAG_ID.STRONG: {
1930
+ bStartTagInBody(p, token);
1931
+ break;
1932
+ }
1933
+ case html.TAG_ID.A: {
1934
+ aStartTagInBody(p, token);
1935
+ break;
1936
+ }
1937
+ case html.TAG_ID.H1:
1938
+ case html.TAG_ID.H2:
1939
+ case html.TAG_ID.H3:
1940
+ case html.TAG_ID.H4:
1941
+ case html.TAG_ID.H5:
1942
+ case html.TAG_ID.H6: {
1943
+ numberedHeaderStartTagInBody(p, token);
1944
+ break;
1945
+ }
1946
+ case html.TAG_ID.P:
1947
+ case html.TAG_ID.DL:
1948
+ case html.TAG_ID.OL:
1949
+ case html.TAG_ID.UL:
1950
+ case html.TAG_ID.DIV:
1951
+ case html.TAG_ID.DIR:
1952
+ case html.TAG_ID.NAV:
1953
+ case html.TAG_ID.MAIN:
1954
+ case html.TAG_ID.MENU:
1955
+ case html.TAG_ID.ASIDE:
1956
+ case html.TAG_ID.CENTER:
1957
+ case html.TAG_ID.FIGURE:
1958
+ case html.TAG_ID.FOOTER:
1959
+ case html.TAG_ID.HEADER:
1960
+ case html.TAG_ID.HGROUP:
1961
+ case html.TAG_ID.DIALOG:
1962
+ case html.TAG_ID.DETAILS:
1963
+ case html.TAG_ID.ADDRESS:
1964
+ case html.TAG_ID.ARTICLE:
1965
+ case html.TAG_ID.SEARCH:
1966
+ case html.TAG_ID.SECTION:
1967
+ case html.TAG_ID.SUMMARY:
1968
+ case html.TAG_ID.FIELDSET:
1969
+ case html.TAG_ID.BLOCKQUOTE:
1970
+ case html.TAG_ID.FIGCAPTION: {
1971
+ addressStartTagInBody(p, token);
1972
+ break;
1973
+ }
1974
+ case html.TAG_ID.LI:
1975
+ case html.TAG_ID.DD:
1976
+ case html.TAG_ID.DT: {
1977
+ listItemStartTagInBody(p, token);
1978
+ break;
1979
+ }
1980
+ case html.TAG_ID.BR:
1981
+ case html.TAG_ID.IMG:
1982
+ case html.TAG_ID.WBR:
1983
+ case html.TAG_ID.AREA:
1984
+ case html.TAG_ID.EMBED:
1985
+ case html.TAG_ID.KEYGEN: {
1986
+ areaStartTagInBody(p, token);
1987
+ break;
1988
+ }
1989
+ case html.TAG_ID.HR: {
1990
+ hrStartTagInBody(p, token);
1991
+ break;
1992
+ }
1993
+ case html.TAG_ID.RB:
1994
+ case html.TAG_ID.RTC: {
1995
+ rbStartTagInBody(p, token);
1996
+ break;
1997
+ }
1998
+ case html.TAG_ID.RT:
1999
+ case html.TAG_ID.RP: {
2000
+ rtStartTagInBody(p, token);
2001
+ break;
2002
+ }
2003
+ case html.TAG_ID.PRE:
2004
+ case html.TAG_ID.LISTING: {
2005
+ preStartTagInBody(p, token);
2006
+ break;
2007
+ }
2008
+ case html.TAG_ID.XMP: {
2009
+ xmpStartTagInBody(p, token);
2010
+ break;
2011
+ }
2012
+ case html.TAG_ID.SVG: {
2013
+ svgStartTagInBody(p, token);
2014
+ break;
2015
+ }
2016
+ case html.TAG_ID.HTML: {
2017
+ htmlStartTagInBody(p, token);
2018
+ break;
2019
+ }
2020
+ case html.TAG_ID.BASE:
2021
+ case html.TAG_ID.LINK:
2022
+ case html.TAG_ID.META:
2023
+ case html.TAG_ID.STYLE:
2024
+ case html.TAG_ID.TITLE:
2025
+ case html.TAG_ID.SCRIPT:
2026
+ case html.TAG_ID.BGSOUND:
2027
+ case html.TAG_ID.BASEFONT:
2028
+ case html.TAG_ID.TEMPLATE: {
2029
+ startTagInHead(p, token);
2030
+ break;
2031
+ }
2032
+ case html.TAG_ID.BODY: {
2033
+ bodyStartTagInBody(p, token);
2034
+ break;
2035
+ }
2036
+ case html.TAG_ID.FORM: {
2037
+ formStartTagInBody(p, token);
2038
+ break;
2039
+ }
2040
+ case html.TAG_ID.NOBR: {
2041
+ nobrStartTagInBody(p, token);
2042
+ break;
2043
+ }
2044
+ case html.TAG_ID.MATH: {
2045
+ mathStartTagInBody(p, token);
2046
+ break;
2047
+ }
2048
+ case html.TAG_ID.TABLE: {
2049
+ tableStartTagInBody(p, token);
2050
+ break;
2051
+ }
2052
+ case html.TAG_ID.INPUT: {
2053
+ inputStartTagInBody(p, token);
2054
+ break;
2055
+ }
2056
+ case html.TAG_ID.PARAM:
2057
+ case html.TAG_ID.TRACK:
2058
+ case html.TAG_ID.SOURCE: {
2059
+ paramStartTagInBody(p, token);
2060
+ break;
2061
+ }
2062
+ case html.TAG_ID.IMAGE: {
2063
+ imageStartTagInBody(p, token);
2064
+ break;
2065
+ }
2066
+ case html.TAG_ID.BUTTON: {
2067
+ buttonStartTagInBody(p, token);
2068
+ break;
2069
+ }
2070
+ case html.TAG_ID.APPLET:
2071
+ case html.TAG_ID.OBJECT:
2072
+ case html.TAG_ID.MARQUEE: {
2073
+ appletStartTagInBody(p, token);
2074
+ break;
2075
+ }
2076
+ case html.TAG_ID.IFRAME: {
2077
+ iframeStartTagInBody(p, token);
2078
+ break;
2079
+ }
2080
+ case html.TAG_ID.SELECT: {
2081
+ selectStartTagInBody(p, token);
2082
+ break;
2083
+ }
2084
+ case html.TAG_ID.OPTION:
2085
+ case html.TAG_ID.OPTGROUP: {
2086
+ optgroupStartTagInBody(p, token);
2087
+ break;
2088
+ }
2089
+ case html.TAG_ID.NOEMBED:
2090
+ case html.TAG_ID.NOFRAMES: {
2091
+ rawTextStartTagInBody(p, token);
2092
+ break;
2093
+ }
2094
+ case html.TAG_ID.FRAMESET: {
2095
+ framesetStartTagInBody(p, token);
2096
+ break;
2097
+ }
2098
+ case html.TAG_ID.TEXTAREA: {
2099
+ textareaStartTagInBody(p, token);
2100
+ break;
2101
+ }
2102
+ case html.TAG_ID.NOSCRIPT: {
2103
+ if (p.options.scriptingEnabled) {
2104
+ rawTextStartTagInBody(p, token);
2105
+ }
2106
+ else {
2107
+ genericStartTagInBody(p, token);
2108
+ }
2109
+ break;
2110
+ }
2111
+ case html.TAG_ID.PLAINTEXT: {
2112
+ plaintextStartTagInBody(p, token);
2113
+ break;
2114
+ }
2115
+ case html.TAG_ID.COL:
2116
+ case html.TAG_ID.TH:
2117
+ case html.TAG_ID.TD:
2118
+ case html.TAG_ID.TR:
2119
+ case html.TAG_ID.HEAD:
2120
+ case html.TAG_ID.FRAME:
2121
+ case html.TAG_ID.TBODY:
2122
+ case html.TAG_ID.TFOOT:
2123
+ case html.TAG_ID.THEAD:
2124
+ case html.TAG_ID.CAPTION:
2125
+ case html.TAG_ID.COLGROUP: {
2126
+ // Ignore token
2127
+ break;
2128
+ }
2129
+ default: {
2130
+ genericStartTagInBody(p, token);
2131
+ }
2132
+ }
2133
+ }
2134
+ function bodyEndTagInBody(p, token) {
2135
+ if (p.openElements.hasInScope(html.TAG_ID.BODY)) {
2136
+ p.insertionMode = InsertionMode.AFTER_BODY;
2137
+ //NOTE: <body> is never popped from the stack, so we need to updated
2138
+ //the end location explicitly.
2139
+ if (p.options.sourceCodeLocationInfo) {
2140
+ const bodyElement = p.openElements.tryPeekProperlyNestedBodyElement();
2141
+ if (bodyElement) {
2142
+ p._setEndLocation(bodyElement, token);
2143
+ }
2144
+ }
2145
+ }
2146
+ }
2147
+ function htmlEndTagInBody(p, token) {
2148
+ if (p.openElements.hasInScope(html.TAG_ID.BODY)) {
2149
+ p.insertionMode = InsertionMode.AFTER_BODY;
2150
+ endTagAfterBody(p, token);
2151
+ }
2152
+ }
2153
+ function addressEndTagInBody(p, token) {
2154
+ const tn = token.tagID;
2155
+ if (p.openElements.hasInScope(tn)) {
2156
+ p.openElements.generateImpliedEndTags();
2157
+ p.openElements.popUntilTagNamePopped(tn);
2158
+ }
2159
+ }
2160
+ function formEndTagInBody(p) {
2161
+ const inTemplate = p.openElements.tmplCount > 0;
2162
+ const { formElement } = p;
2163
+ if (!inTemplate) {
2164
+ p.formElement = null;
2165
+ }
2166
+ if ((formElement || inTemplate) && p.openElements.hasInScope(html.TAG_ID.FORM)) {
2167
+ p.openElements.generateImpliedEndTags();
2168
+ if (inTemplate) {
2169
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.FORM);
2170
+ }
2171
+ else if (formElement) {
2172
+ p.openElements.remove(formElement);
2173
+ }
2174
+ }
2175
+ }
2176
+ function pEndTagInBody(p) {
2177
+ if (!p.openElements.hasInButtonScope(html.TAG_ID.P)) {
2178
+ p._insertFakeElement(html.TAG_NAMES.P, html.TAG_ID.P);
2179
+ }
2180
+ p._closePElement();
2181
+ }
2182
+ function liEndTagInBody(p) {
2183
+ if (p.openElements.hasInListItemScope(html.TAG_ID.LI)) {
2184
+ p.openElements.generateImpliedEndTagsWithExclusion(html.TAG_ID.LI);
2185
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.LI);
2186
+ }
2187
+ }
2188
+ function ddEndTagInBody(p, token) {
2189
+ const tn = token.tagID;
2190
+ if (p.openElements.hasInScope(tn)) {
2191
+ p.openElements.generateImpliedEndTagsWithExclusion(tn);
2192
+ p.openElements.popUntilTagNamePopped(tn);
2193
+ }
2194
+ }
2195
+ function numberedHeaderEndTagInBody(p) {
2196
+ if (p.openElements.hasNumberedHeaderInScope()) {
2197
+ p.openElements.generateImpliedEndTags();
2198
+ p.openElements.popUntilNumberedHeaderPopped();
2199
+ }
2200
+ }
2201
+ function appletEndTagInBody(p, token) {
2202
+ const tn = token.tagID;
2203
+ if (p.openElements.hasInScope(tn)) {
2204
+ p.openElements.generateImpliedEndTags();
2205
+ p.openElements.popUntilTagNamePopped(tn);
2206
+ p.activeFormattingElements.clearToLastMarker();
2207
+ }
2208
+ }
2209
+ function brEndTagInBody(p) {
2210
+ p._reconstructActiveFormattingElements();
2211
+ p._insertFakeElement(html.TAG_NAMES.BR, html.TAG_ID.BR);
2212
+ p.openElements.pop();
2213
+ p.framesetOk = false;
2214
+ }
2215
+ function genericEndTagInBody(p, token) {
2216
+ const tn = token.tagName;
2217
+ const tid = token.tagID;
2218
+ for (let i = p.openElements.stackTop; i > 0; i--) {
2219
+ const element = p.openElements.items[i];
2220
+ const elementId = p.openElements.tagIDs[i];
2221
+ // Compare the tag name here, as the tag might not be a known tag with an ID.
2222
+ if (tid === elementId && (tid !== html.TAG_ID.UNKNOWN || p.treeAdapter.getTagName(element) === tn)) {
2223
+ p.openElements.generateImpliedEndTagsWithExclusion(tid);
2224
+ if (p.openElements.stackTop >= i)
2225
+ p.openElements.shortenToLength(i);
2226
+ break;
2227
+ }
2228
+ if (p._isSpecialElement(element, elementId)) {
2229
+ break;
2230
+ }
2231
+ }
2232
+ }
2233
+ function endTagInBody(p, token) {
2234
+ switch (token.tagID) {
2235
+ case html.TAG_ID.A:
2236
+ case html.TAG_ID.B:
2237
+ case html.TAG_ID.I:
2238
+ case html.TAG_ID.S:
2239
+ case html.TAG_ID.U:
2240
+ case html.TAG_ID.EM:
2241
+ case html.TAG_ID.TT:
2242
+ case html.TAG_ID.BIG:
2243
+ case html.TAG_ID.CODE:
2244
+ case html.TAG_ID.FONT:
2245
+ case html.TAG_ID.NOBR:
2246
+ case html.TAG_ID.SMALL:
2247
+ case html.TAG_ID.STRIKE:
2248
+ case html.TAG_ID.STRONG: {
2249
+ callAdoptionAgency(p, token);
2250
+ break;
2251
+ }
2252
+ case html.TAG_ID.P: {
2253
+ pEndTagInBody(p);
2254
+ break;
2255
+ }
2256
+ case html.TAG_ID.DL:
2257
+ case html.TAG_ID.UL:
2258
+ case html.TAG_ID.OL:
2259
+ case html.TAG_ID.DIR:
2260
+ case html.TAG_ID.DIV:
2261
+ case html.TAG_ID.NAV:
2262
+ case html.TAG_ID.PRE:
2263
+ case html.TAG_ID.MAIN:
2264
+ case html.TAG_ID.MENU:
2265
+ case html.TAG_ID.ASIDE:
2266
+ case html.TAG_ID.BUTTON:
2267
+ case html.TAG_ID.CENTER:
2268
+ case html.TAG_ID.FIGURE:
2269
+ case html.TAG_ID.FOOTER:
2270
+ case html.TAG_ID.HEADER:
2271
+ case html.TAG_ID.HGROUP:
2272
+ case html.TAG_ID.DIALOG:
2273
+ case html.TAG_ID.ADDRESS:
2274
+ case html.TAG_ID.ARTICLE:
2275
+ case html.TAG_ID.DETAILS:
2276
+ case html.TAG_ID.SEARCH:
2277
+ case html.TAG_ID.SECTION:
2278
+ case html.TAG_ID.SUMMARY:
2279
+ case html.TAG_ID.LISTING:
2280
+ case html.TAG_ID.FIELDSET:
2281
+ case html.TAG_ID.BLOCKQUOTE:
2282
+ case html.TAG_ID.FIGCAPTION: {
2283
+ addressEndTagInBody(p, token);
2284
+ break;
2285
+ }
2286
+ case html.TAG_ID.LI: {
2287
+ liEndTagInBody(p);
2288
+ break;
2289
+ }
2290
+ case html.TAG_ID.DD:
2291
+ case html.TAG_ID.DT: {
2292
+ ddEndTagInBody(p, token);
2293
+ break;
2294
+ }
2295
+ case html.TAG_ID.H1:
2296
+ case html.TAG_ID.H2:
2297
+ case html.TAG_ID.H3:
2298
+ case html.TAG_ID.H4:
2299
+ case html.TAG_ID.H5:
2300
+ case html.TAG_ID.H6: {
2301
+ numberedHeaderEndTagInBody(p);
2302
+ break;
2303
+ }
2304
+ case html.TAG_ID.BR: {
2305
+ brEndTagInBody(p);
2306
+ break;
2307
+ }
2308
+ case html.TAG_ID.BODY: {
2309
+ bodyEndTagInBody(p, token);
2310
+ break;
2311
+ }
2312
+ case html.TAG_ID.HTML: {
2313
+ htmlEndTagInBody(p, token);
2314
+ break;
2315
+ }
2316
+ case html.TAG_ID.FORM: {
2317
+ formEndTagInBody(p);
2318
+ break;
2319
+ }
2320
+ case html.TAG_ID.APPLET:
2321
+ case html.TAG_ID.OBJECT:
2322
+ case html.TAG_ID.MARQUEE: {
2323
+ appletEndTagInBody(p, token);
2324
+ break;
2325
+ }
2326
+ case html.TAG_ID.TEMPLATE: {
2327
+ templateEndTagInHead(p, token);
2328
+ break;
2329
+ }
2330
+ default: {
2331
+ genericEndTagInBody(p, token);
2332
+ }
2333
+ }
2334
+ }
2335
+ function eofInBody(p, token) {
2336
+ if (p.tmplInsertionModeStack.length > 0) {
2337
+ eofInTemplate(p, token);
2338
+ }
2339
+ else {
2340
+ stopParsing(p, token);
2341
+ }
2342
+ }
2343
+ // The "text" insertion mode
2344
+ //------------------------------------------------------------------
2345
+ function endTagInText(p, token) {
2346
+ var _a;
2347
+ if (token.tagID === html.TAG_ID.SCRIPT) {
2348
+ (_a = p.scriptHandler) === null || _a === void 0 ? void 0 : _a.call(p, p.openElements.current);
2349
+ }
2350
+ p.openElements.pop();
2351
+ p.insertionMode = p.originalInsertionMode;
2352
+ }
2353
+ function eofInText(p, token) {
2354
+ p._err(token, errorCodes.ERR.eofInElementThatCanContainOnlyText);
2355
+ p.openElements.pop();
2356
+ p.insertionMode = p.originalInsertionMode;
2357
+ p.onEof(token);
2358
+ }
2359
+ // The "in table" insertion mode
2360
+ //------------------------------------------------------------------
2361
+ function characterInTable(p, token$1) {
2362
+ if (p.openElements.currentTagId !== undefined && TABLE_STRUCTURE_TAGS.has(p.openElements.currentTagId)) {
2363
+ p.pendingCharacterTokens.length = 0;
2364
+ p.hasNonWhitespacePendingCharacterToken = false;
2365
+ p.originalInsertionMode = p.insertionMode;
2366
+ p.insertionMode = InsertionMode.IN_TABLE_TEXT;
2367
+ switch (token$1.type) {
2368
+ case token.TokenType.CHARACTER: {
2369
+ characterInTableText(p, token$1);
2370
+ break;
2371
+ }
2372
+ case token.TokenType.WHITESPACE_CHARACTER: {
2373
+ whitespaceCharacterInTableText(p, token$1);
2374
+ break;
2375
+ }
2376
+ // Ignore null
2377
+ }
2378
+ }
2379
+ else {
2380
+ tokenInTable(p, token$1);
2381
+ }
2382
+ }
2383
+ function captionStartTagInTable(p, token) {
2384
+ p.openElements.clearBackToTableContext();
2385
+ p.activeFormattingElements.insertMarker();
2386
+ p._insertElement(token, html.NS.HTML);
2387
+ p.insertionMode = InsertionMode.IN_CAPTION;
2388
+ }
2389
+ function colgroupStartTagInTable(p, token) {
2390
+ p.openElements.clearBackToTableContext();
2391
+ p._insertElement(token, html.NS.HTML);
2392
+ p.insertionMode = InsertionMode.IN_COLUMN_GROUP;
2393
+ }
2394
+ function colStartTagInTable(p, token) {
2395
+ p.openElements.clearBackToTableContext();
2396
+ p._insertFakeElement(html.TAG_NAMES.COLGROUP, html.TAG_ID.COLGROUP);
2397
+ p.insertionMode = InsertionMode.IN_COLUMN_GROUP;
2398
+ startTagInColumnGroup(p, token);
2399
+ }
2400
+ function tbodyStartTagInTable(p, token) {
2401
+ p.openElements.clearBackToTableContext();
2402
+ p._insertElement(token, html.NS.HTML);
2403
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
2404
+ }
2405
+ function tdStartTagInTable(p, token) {
2406
+ p.openElements.clearBackToTableContext();
2407
+ p._insertFakeElement(html.TAG_NAMES.TBODY, html.TAG_ID.TBODY);
2408
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
2409
+ startTagInTableBody(p, token);
2410
+ }
2411
+ function tableStartTagInTable(p, token) {
2412
+ if (p.openElements.hasInTableScope(html.TAG_ID.TABLE)) {
2413
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.TABLE);
2414
+ p._resetInsertionMode();
2415
+ p._processStartTag(token);
2416
+ }
2417
+ }
2418
+ function inputStartTagInTable(p, token) {
2419
+ if (isHiddenInput(token)) {
2420
+ p._appendElement(token, html.NS.HTML);
2421
+ }
2422
+ else {
2423
+ tokenInTable(p, token);
2424
+ }
2425
+ token.ackSelfClosing = true;
2426
+ }
2427
+ function formStartTagInTable(p, token) {
2428
+ if (!p.formElement && p.openElements.tmplCount === 0) {
2429
+ p._insertElement(token, html.NS.HTML);
2430
+ p.formElement = p.openElements.current;
2431
+ p.openElements.pop();
2432
+ }
2433
+ }
2434
+ function startTagInTable(p, token) {
2435
+ switch (token.tagID) {
2436
+ case html.TAG_ID.TD:
2437
+ case html.TAG_ID.TH:
2438
+ case html.TAG_ID.TR: {
2439
+ tdStartTagInTable(p, token);
2440
+ break;
2441
+ }
2442
+ case html.TAG_ID.STYLE:
2443
+ case html.TAG_ID.SCRIPT:
2444
+ case html.TAG_ID.TEMPLATE: {
2445
+ startTagInHead(p, token);
2446
+ break;
2447
+ }
2448
+ case html.TAG_ID.COL: {
2449
+ colStartTagInTable(p, token);
2450
+ break;
2451
+ }
2452
+ case html.TAG_ID.FORM: {
2453
+ formStartTagInTable(p, token);
2454
+ break;
2455
+ }
2456
+ case html.TAG_ID.TABLE: {
2457
+ tableStartTagInTable(p, token);
2458
+ break;
2459
+ }
2460
+ case html.TAG_ID.TBODY:
2461
+ case html.TAG_ID.TFOOT:
2462
+ case html.TAG_ID.THEAD: {
2463
+ tbodyStartTagInTable(p, token);
2464
+ break;
2465
+ }
2466
+ case html.TAG_ID.INPUT: {
2467
+ inputStartTagInTable(p, token);
2468
+ break;
2469
+ }
2470
+ case html.TAG_ID.CAPTION: {
2471
+ captionStartTagInTable(p, token);
2472
+ break;
2473
+ }
2474
+ case html.TAG_ID.COLGROUP: {
2475
+ colgroupStartTagInTable(p, token);
2476
+ break;
2477
+ }
2478
+ default: {
2479
+ tokenInTable(p, token);
2480
+ }
2481
+ }
2482
+ }
2483
+ function endTagInTable(p, token) {
2484
+ switch (token.tagID) {
2485
+ case html.TAG_ID.TABLE: {
2486
+ if (p.openElements.hasInTableScope(html.TAG_ID.TABLE)) {
2487
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.TABLE);
2488
+ p._resetInsertionMode();
2489
+ }
2490
+ break;
2491
+ }
2492
+ case html.TAG_ID.TEMPLATE: {
2493
+ templateEndTagInHead(p, token);
2494
+ break;
2495
+ }
2496
+ case html.TAG_ID.BODY:
2497
+ case html.TAG_ID.CAPTION:
2498
+ case html.TAG_ID.COL:
2499
+ case html.TAG_ID.COLGROUP:
2500
+ case html.TAG_ID.HTML:
2501
+ case html.TAG_ID.TBODY:
2502
+ case html.TAG_ID.TD:
2503
+ case html.TAG_ID.TFOOT:
2504
+ case html.TAG_ID.TH:
2505
+ case html.TAG_ID.THEAD:
2506
+ case html.TAG_ID.TR: {
2507
+ // Ignore token
2508
+ break;
2509
+ }
2510
+ default: {
2511
+ tokenInTable(p, token);
2512
+ }
2513
+ }
2514
+ }
2515
+ function tokenInTable(p, token) {
2516
+ const savedFosterParentingState = p.fosterParentingEnabled;
2517
+ p.fosterParentingEnabled = true;
2518
+ // Process token in `In Body` mode
2519
+ modeInBody(p, token);
2520
+ p.fosterParentingEnabled = savedFosterParentingState;
2521
+ }
2522
+ // The "in table text" insertion mode
2523
+ //------------------------------------------------------------------
2524
+ function whitespaceCharacterInTableText(p, token) {
2525
+ p.pendingCharacterTokens.push(token);
2526
+ }
2527
+ function characterInTableText(p, token) {
2528
+ p.pendingCharacterTokens.push(token);
2529
+ p.hasNonWhitespacePendingCharacterToken = true;
2530
+ }
2531
+ function tokenInTableText(p, token) {
2532
+ let i = 0;
2533
+ if (p.hasNonWhitespacePendingCharacterToken) {
2534
+ for (; i < p.pendingCharacterTokens.length; i++) {
2535
+ tokenInTable(p, p.pendingCharacterTokens[i]);
2536
+ }
2537
+ }
2538
+ else {
2539
+ for (; i < p.pendingCharacterTokens.length; i++) {
2540
+ p._insertCharacters(p.pendingCharacterTokens[i]);
2541
+ }
2542
+ }
2543
+ p.insertionMode = p.originalInsertionMode;
2544
+ p._processToken(token);
2545
+ }
2546
+ // The "in caption" insertion mode
2547
+ //------------------------------------------------------------------
2548
+ const TABLE_VOID_ELEMENTS = new Set([html.TAG_ID.CAPTION, html.TAG_ID.COL, html.TAG_ID.COLGROUP, html.TAG_ID.TBODY, html.TAG_ID.TD, html.TAG_ID.TFOOT, html.TAG_ID.TH, html.TAG_ID.THEAD, html.TAG_ID.TR]);
2549
+ function startTagInCaption(p, token) {
2550
+ const tn = token.tagID;
2551
+ if (TABLE_VOID_ELEMENTS.has(tn)) {
2552
+ if (p.openElements.hasInTableScope(html.TAG_ID.CAPTION)) {
2553
+ p.openElements.generateImpliedEndTags();
2554
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.CAPTION);
2555
+ p.activeFormattingElements.clearToLastMarker();
2556
+ p.insertionMode = InsertionMode.IN_TABLE;
2557
+ startTagInTable(p, token);
2558
+ }
2559
+ }
2560
+ else {
2561
+ startTagInBody(p, token);
2562
+ }
2563
+ }
2564
+ function endTagInCaption(p, token) {
2565
+ const tn = token.tagID;
2566
+ switch (tn) {
2567
+ case html.TAG_ID.CAPTION:
2568
+ case html.TAG_ID.TABLE: {
2569
+ if (p.openElements.hasInTableScope(html.TAG_ID.CAPTION)) {
2570
+ p.openElements.generateImpliedEndTags();
2571
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.CAPTION);
2572
+ p.activeFormattingElements.clearToLastMarker();
2573
+ p.insertionMode = InsertionMode.IN_TABLE;
2574
+ if (tn === html.TAG_ID.TABLE) {
2575
+ endTagInTable(p, token);
2576
+ }
2577
+ }
2578
+ break;
2579
+ }
2580
+ case html.TAG_ID.BODY:
2581
+ case html.TAG_ID.COL:
2582
+ case html.TAG_ID.COLGROUP:
2583
+ case html.TAG_ID.HTML:
2584
+ case html.TAG_ID.TBODY:
2585
+ case html.TAG_ID.TD:
2586
+ case html.TAG_ID.TFOOT:
2587
+ case html.TAG_ID.TH:
2588
+ case html.TAG_ID.THEAD:
2589
+ case html.TAG_ID.TR: {
2590
+ // Ignore token
2591
+ break;
2592
+ }
2593
+ default: {
2594
+ endTagInBody(p, token);
2595
+ }
2596
+ }
2597
+ }
2598
+ // The "in column group" insertion mode
2599
+ //------------------------------------------------------------------
2600
+ function startTagInColumnGroup(p, token) {
2601
+ switch (token.tagID) {
2602
+ case html.TAG_ID.HTML: {
2603
+ startTagInBody(p, token);
2604
+ break;
2605
+ }
2606
+ case html.TAG_ID.COL: {
2607
+ p._appendElement(token, html.NS.HTML);
2608
+ token.ackSelfClosing = true;
2609
+ break;
2610
+ }
2611
+ case html.TAG_ID.TEMPLATE: {
2612
+ startTagInHead(p, token);
2613
+ break;
2614
+ }
2615
+ default: {
2616
+ tokenInColumnGroup(p, token);
2617
+ }
2618
+ }
2619
+ }
2620
+ function endTagInColumnGroup(p, token) {
2621
+ switch (token.tagID) {
2622
+ case html.TAG_ID.COLGROUP: {
2623
+ if (p.openElements.currentTagId === html.TAG_ID.COLGROUP) {
2624
+ p.openElements.pop();
2625
+ p.insertionMode = InsertionMode.IN_TABLE;
2626
+ }
2627
+ break;
2628
+ }
2629
+ case html.TAG_ID.TEMPLATE: {
2630
+ templateEndTagInHead(p, token);
2631
+ break;
2632
+ }
2633
+ case html.TAG_ID.COL: {
2634
+ // Ignore token
2635
+ break;
2636
+ }
2637
+ default: {
2638
+ tokenInColumnGroup(p, token);
2639
+ }
2640
+ }
2641
+ }
2642
+ function tokenInColumnGroup(p, token) {
2643
+ if (p.openElements.currentTagId === html.TAG_ID.COLGROUP) {
2644
+ p.openElements.pop();
2645
+ p.insertionMode = InsertionMode.IN_TABLE;
2646
+ p._processToken(token);
2647
+ }
2648
+ }
2649
+ // The "in table body" insertion mode
2650
+ //------------------------------------------------------------------
2651
+ function startTagInTableBody(p, token) {
2652
+ switch (token.tagID) {
2653
+ case html.TAG_ID.TR: {
2654
+ p.openElements.clearBackToTableBodyContext();
2655
+ p._insertElement(token, html.NS.HTML);
2656
+ p.insertionMode = InsertionMode.IN_ROW;
2657
+ break;
2658
+ }
2659
+ case html.TAG_ID.TH:
2660
+ case html.TAG_ID.TD: {
2661
+ p.openElements.clearBackToTableBodyContext();
2662
+ p._insertFakeElement(html.TAG_NAMES.TR, html.TAG_ID.TR);
2663
+ p.insertionMode = InsertionMode.IN_ROW;
2664
+ startTagInRow(p, token);
2665
+ break;
2666
+ }
2667
+ case html.TAG_ID.CAPTION:
2668
+ case html.TAG_ID.COL:
2669
+ case html.TAG_ID.COLGROUP:
2670
+ case html.TAG_ID.TBODY:
2671
+ case html.TAG_ID.TFOOT:
2672
+ case html.TAG_ID.THEAD: {
2673
+ if (p.openElements.hasTableBodyContextInTableScope()) {
2674
+ p.openElements.clearBackToTableBodyContext();
2675
+ p.openElements.pop();
2676
+ p.insertionMode = InsertionMode.IN_TABLE;
2677
+ startTagInTable(p, token);
2678
+ }
2679
+ break;
2680
+ }
2681
+ default: {
2682
+ startTagInTable(p, token);
2683
+ }
2684
+ }
2685
+ }
2686
+ function endTagInTableBody(p, token) {
2687
+ const tn = token.tagID;
2688
+ switch (token.tagID) {
2689
+ case html.TAG_ID.TBODY:
2690
+ case html.TAG_ID.TFOOT:
2691
+ case html.TAG_ID.THEAD: {
2692
+ if (p.openElements.hasInTableScope(tn)) {
2693
+ p.openElements.clearBackToTableBodyContext();
2694
+ p.openElements.pop();
2695
+ p.insertionMode = InsertionMode.IN_TABLE;
2696
+ }
2697
+ break;
2698
+ }
2699
+ case html.TAG_ID.TABLE: {
2700
+ if (p.openElements.hasTableBodyContextInTableScope()) {
2701
+ p.openElements.clearBackToTableBodyContext();
2702
+ p.openElements.pop();
2703
+ p.insertionMode = InsertionMode.IN_TABLE;
2704
+ endTagInTable(p, token);
2705
+ }
2706
+ break;
2707
+ }
2708
+ case html.TAG_ID.BODY:
2709
+ case html.TAG_ID.CAPTION:
2710
+ case html.TAG_ID.COL:
2711
+ case html.TAG_ID.COLGROUP:
2712
+ case html.TAG_ID.HTML:
2713
+ case html.TAG_ID.TD:
2714
+ case html.TAG_ID.TH:
2715
+ case html.TAG_ID.TR: {
2716
+ // Ignore token
2717
+ break;
2718
+ }
2719
+ default: {
2720
+ endTagInTable(p, token);
2721
+ }
2722
+ }
2723
+ }
2724
+ // The "in row" insertion mode
2725
+ //------------------------------------------------------------------
2726
+ function startTagInRow(p, token) {
2727
+ switch (token.tagID) {
2728
+ case html.TAG_ID.TH:
2729
+ case html.TAG_ID.TD: {
2730
+ p.openElements.clearBackToTableRowContext();
2731
+ p._insertElement(token, html.NS.HTML);
2732
+ p.insertionMode = InsertionMode.IN_CELL;
2733
+ p.activeFormattingElements.insertMarker();
2734
+ break;
2735
+ }
2736
+ case html.TAG_ID.CAPTION:
2737
+ case html.TAG_ID.COL:
2738
+ case html.TAG_ID.COLGROUP:
2739
+ case html.TAG_ID.TBODY:
2740
+ case html.TAG_ID.TFOOT:
2741
+ case html.TAG_ID.THEAD:
2742
+ case html.TAG_ID.TR: {
2743
+ if (p.openElements.hasInTableScope(html.TAG_ID.TR)) {
2744
+ p.openElements.clearBackToTableRowContext();
2745
+ p.openElements.pop();
2746
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
2747
+ startTagInTableBody(p, token);
2748
+ }
2749
+ break;
2750
+ }
2751
+ default: {
2752
+ startTagInTable(p, token);
2753
+ }
2754
+ }
2755
+ }
2756
+ function endTagInRow(p, token) {
2757
+ switch (token.tagID) {
2758
+ case html.TAG_ID.TR: {
2759
+ if (p.openElements.hasInTableScope(html.TAG_ID.TR)) {
2760
+ p.openElements.clearBackToTableRowContext();
2761
+ p.openElements.pop();
2762
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
2763
+ }
2764
+ break;
2765
+ }
2766
+ case html.TAG_ID.TABLE: {
2767
+ if (p.openElements.hasInTableScope(html.TAG_ID.TR)) {
2768
+ p.openElements.clearBackToTableRowContext();
2769
+ p.openElements.pop();
2770
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
2771
+ endTagInTableBody(p, token);
2772
+ }
2773
+ break;
2774
+ }
2775
+ case html.TAG_ID.TBODY:
2776
+ case html.TAG_ID.TFOOT:
2777
+ case html.TAG_ID.THEAD: {
2778
+ if (p.openElements.hasInTableScope(token.tagID) || p.openElements.hasInTableScope(html.TAG_ID.TR)) {
2779
+ p.openElements.clearBackToTableRowContext();
2780
+ p.openElements.pop();
2781
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
2782
+ endTagInTableBody(p, token);
2783
+ }
2784
+ break;
2785
+ }
2786
+ case html.TAG_ID.BODY:
2787
+ case html.TAG_ID.CAPTION:
2788
+ case html.TAG_ID.COL:
2789
+ case html.TAG_ID.COLGROUP:
2790
+ case html.TAG_ID.HTML:
2791
+ case html.TAG_ID.TD:
2792
+ case html.TAG_ID.TH: {
2793
+ // Ignore end tag
2794
+ break;
2795
+ }
2796
+ default: {
2797
+ endTagInTable(p, token);
2798
+ }
2799
+ }
2800
+ }
2801
+ // The "in cell" insertion mode
2802
+ //------------------------------------------------------------------
2803
+ function startTagInCell(p, token) {
2804
+ const tn = token.tagID;
2805
+ if (TABLE_VOID_ELEMENTS.has(tn)) {
2806
+ if (p.openElements.hasInTableScope(html.TAG_ID.TD) || p.openElements.hasInTableScope(html.TAG_ID.TH)) {
2807
+ p._closeTableCell();
2808
+ startTagInRow(p, token);
2809
+ }
2810
+ }
2811
+ else {
2812
+ startTagInBody(p, token);
2813
+ }
2814
+ }
2815
+ function endTagInCell(p, token) {
2816
+ const tn = token.tagID;
2817
+ switch (tn) {
2818
+ case html.TAG_ID.TD:
2819
+ case html.TAG_ID.TH: {
2820
+ if (p.openElements.hasInTableScope(tn)) {
2821
+ p.openElements.generateImpliedEndTags();
2822
+ p.openElements.popUntilTagNamePopped(tn);
2823
+ p.activeFormattingElements.clearToLastMarker();
2824
+ p.insertionMode = InsertionMode.IN_ROW;
2825
+ }
2826
+ break;
2827
+ }
2828
+ case html.TAG_ID.TABLE:
2829
+ case html.TAG_ID.TBODY:
2830
+ case html.TAG_ID.TFOOT:
2831
+ case html.TAG_ID.THEAD:
2832
+ case html.TAG_ID.TR: {
2833
+ if (p.openElements.hasInTableScope(tn)) {
2834
+ p._closeTableCell();
2835
+ endTagInRow(p, token);
2836
+ }
2837
+ break;
2838
+ }
2839
+ case html.TAG_ID.BODY:
2840
+ case html.TAG_ID.CAPTION:
2841
+ case html.TAG_ID.COL:
2842
+ case html.TAG_ID.COLGROUP:
2843
+ case html.TAG_ID.HTML: {
2844
+ // Ignore token
2845
+ break;
2846
+ }
2847
+ default: {
2848
+ endTagInBody(p, token);
2849
+ }
2850
+ }
2851
+ }
2852
+ // The "in select" insertion mode
2853
+ //------------------------------------------------------------------
2854
+ function startTagInSelect(p, token) {
2855
+ switch (token.tagID) {
2856
+ case html.TAG_ID.HTML: {
2857
+ startTagInBody(p, token);
2858
+ break;
2859
+ }
2860
+ case html.TAG_ID.OPTION: {
2861
+ if (p.openElements.currentTagId === html.TAG_ID.OPTION) {
2862
+ p.openElements.pop();
2863
+ }
2864
+ p._insertElement(token, html.NS.HTML);
2865
+ break;
2866
+ }
2867
+ case html.TAG_ID.OPTGROUP: {
2868
+ if (p.openElements.currentTagId === html.TAG_ID.OPTION) {
2869
+ p.openElements.pop();
2870
+ }
2871
+ if (p.openElements.currentTagId === html.TAG_ID.OPTGROUP) {
2872
+ p.openElements.pop();
2873
+ }
2874
+ p._insertElement(token, html.NS.HTML);
2875
+ break;
2876
+ }
2877
+ case html.TAG_ID.HR: {
2878
+ if (p.openElements.currentTagId === html.TAG_ID.OPTION) {
2879
+ p.openElements.pop();
2880
+ }
2881
+ if (p.openElements.currentTagId === html.TAG_ID.OPTGROUP) {
2882
+ p.openElements.pop();
2883
+ }
2884
+ p._appendElement(token, html.NS.HTML);
2885
+ token.ackSelfClosing = true;
2886
+ break;
2887
+ }
2888
+ case html.TAG_ID.INPUT:
2889
+ case html.TAG_ID.KEYGEN:
2890
+ case html.TAG_ID.TEXTAREA:
2891
+ case html.TAG_ID.SELECT: {
2892
+ if (p.openElements.hasInSelectScope(html.TAG_ID.SELECT)) {
2893
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.SELECT);
2894
+ p._resetInsertionMode();
2895
+ if (token.tagID !== html.TAG_ID.SELECT) {
2896
+ p._processStartTag(token);
2897
+ }
2898
+ }
2899
+ break;
2900
+ }
2901
+ case html.TAG_ID.SCRIPT:
2902
+ case html.TAG_ID.TEMPLATE: {
2903
+ startTagInHead(p, token);
2904
+ break;
2905
+ }
2906
+ // Do nothing
2907
+ }
2908
+ }
2909
+ function endTagInSelect(p, token) {
2910
+ switch (token.tagID) {
2911
+ case html.TAG_ID.OPTGROUP: {
2912
+ if (p.openElements.stackTop > 0 &&
2913
+ p.openElements.currentTagId === html.TAG_ID.OPTION &&
2914
+ p.openElements.tagIDs[p.openElements.stackTop - 1] === html.TAG_ID.OPTGROUP) {
2915
+ p.openElements.pop();
2916
+ }
2917
+ if (p.openElements.currentTagId === html.TAG_ID.OPTGROUP) {
2918
+ p.openElements.pop();
2919
+ }
2920
+ break;
2921
+ }
2922
+ case html.TAG_ID.OPTION: {
2923
+ if (p.openElements.currentTagId === html.TAG_ID.OPTION) {
2924
+ p.openElements.pop();
2925
+ }
2926
+ break;
2927
+ }
2928
+ case html.TAG_ID.SELECT: {
2929
+ if (p.openElements.hasInSelectScope(html.TAG_ID.SELECT)) {
2930
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.SELECT);
2931
+ p._resetInsertionMode();
2932
+ }
2933
+ break;
2934
+ }
2935
+ case html.TAG_ID.TEMPLATE: {
2936
+ templateEndTagInHead(p, token);
2937
+ break;
2938
+ }
2939
+ // Do nothing
2940
+ }
2941
+ }
2942
+ // The "in select in table" insertion mode
2943
+ //------------------------------------------------------------------
2944
+ function startTagInSelectInTable(p, token) {
2945
+ const tn = token.tagID;
2946
+ if (tn === html.TAG_ID.CAPTION ||
2947
+ tn === html.TAG_ID.TABLE ||
2948
+ tn === html.TAG_ID.TBODY ||
2949
+ tn === html.TAG_ID.TFOOT ||
2950
+ tn === html.TAG_ID.THEAD ||
2951
+ tn === html.TAG_ID.TR ||
2952
+ tn === html.TAG_ID.TD ||
2953
+ tn === html.TAG_ID.TH) {
2954
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.SELECT);
2955
+ p._resetInsertionMode();
2956
+ p._processStartTag(token);
2957
+ }
2958
+ else {
2959
+ startTagInSelect(p, token);
2960
+ }
2961
+ }
2962
+ function endTagInSelectInTable(p, token) {
2963
+ const tn = token.tagID;
2964
+ if (tn === html.TAG_ID.CAPTION ||
2965
+ tn === html.TAG_ID.TABLE ||
2966
+ tn === html.TAG_ID.TBODY ||
2967
+ tn === html.TAG_ID.TFOOT ||
2968
+ tn === html.TAG_ID.THEAD ||
2969
+ tn === html.TAG_ID.TR ||
2970
+ tn === html.TAG_ID.TD ||
2971
+ tn === html.TAG_ID.TH) {
2972
+ if (p.openElements.hasInTableScope(tn)) {
2973
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.SELECT);
2974
+ p._resetInsertionMode();
2975
+ p.onEndTag(token);
2976
+ }
2977
+ }
2978
+ else {
2979
+ endTagInSelect(p, token);
2980
+ }
2981
+ }
2982
+ // The "in template" insertion mode
2983
+ //------------------------------------------------------------------
2984
+ function startTagInTemplate(p, token) {
2985
+ switch (token.tagID) {
2986
+ // First, handle tags that can start without a mode change
2987
+ case html.TAG_ID.BASE:
2988
+ case html.TAG_ID.BASEFONT:
2989
+ case html.TAG_ID.BGSOUND:
2990
+ case html.TAG_ID.LINK:
2991
+ case html.TAG_ID.META:
2992
+ case html.TAG_ID.NOFRAMES:
2993
+ case html.TAG_ID.SCRIPT:
2994
+ case html.TAG_ID.STYLE:
2995
+ case html.TAG_ID.TEMPLATE:
2996
+ case html.TAG_ID.TITLE: {
2997
+ startTagInHead(p, token);
2998
+ break;
2999
+ }
3000
+ // Re-process the token in the appropriate mode
3001
+ case html.TAG_ID.CAPTION:
3002
+ case html.TAG_ID.COLGROUP:
3003
+ case html.TAG_ID.TBODY:
3004
+ case html.TAG_ID.TFOOT:
3005
+ case html.TAG_ID.THEAD: {
3006
+ p.tmplInsertionModeStack[0] = InsertionMode.IN_TABLE;
3007
+ p.insertionMode = InsertionMode.IN_TABLE;
3008
+ startTagInTable(p, token);
3009
+ break;
3010
+ }
3011
+ case html.TAG_ID.COL: {
3012
+ p.tmplInsertionModeStack[0] = InsertionMode.IN_COLUMN_GROUP;
3013
+ p.insertionMode = InsertionMode.IN_COLUMN_GROUP;
3014
+ startTagInColumnGroup(p, token);
3015
+ break;
3016
+ }
3017
+ case html.TAG_ID.TR: {
3018
+ p.tmplInsertionModeStack[0] = InsertionMode.IN_TABLE_BODY;
3019
+ p.insertionMode = InsertionMode.IN_TABLE_BODY;
3020
+ startTagInTableBody(p, token);
3021
+ break;
3022
+ }
3023
+ case html.TAG_ID.TD:
3024
+ case html.TAG_ID.TH: {
3025
+ p.tmplInsertionModeStack[0] = InsertionMode.IN_ROW;
3026
+ p.insertionMode = InsertionMode.IN_ROW;
3027
+ startTagInRow(p, token);
3028
+ break;
3029
+ }
3030
+ default: {
3031
+ p.tmplInsertionModeStack[0] = InsertionMode.IN_BODY;
3032
+ p.insertionMode = InsertionMode.IN_BODY;
3033
+ startTagInBody(p, token);
3034
+ }
3035
+ }
3036
+ }
3037
+ function endTagInTemplate(p, token) {
3038
+ if (token.tagID === html.TAG_ID.TEMPLATE) {
3039
+ templateEndTagInHead(p, token);
3040
+ }
3041
+ }
3042
+ function eofInTemplate(p, token) {
3043
+ if (p.openElements.tmplCount > 0) {
3044
+ p.openElements.popUntilTagNamePopped(html.TAG_ID.TEMPLATE);
3045
+ p.activeFormattingElements.clearToLastMarker();
3046
+ p.tmplInsertionModeStack.shift();
3047
+ p._resetInsertionMode();
3048
+ p.onEof(token);
3049
+ }
3050
+ else {
3051
+ stopParsing(p, token);
3052
+ }
3053
+ }
3054
+ // The "after body" insertion mode
3055
+ //------------------------------------------------------------------
3056
+ function startTagAfterBody(p, token) {
3057
+ if (token.tagID === html.TAG_ID.HTML) {
3058
+ startTagInBody(p, token);
3059
+ }
3060
+ else {
3061
+ tokenAfterBody(p, token);
3062
+ }
3063
+ }
3064
+ function endTagAfterBody(p, token) {
3065
+ var _a;
3066
+ if (token.tagID === html.TAG_ID.HTML) {
3067
+ if (!p.fragmentContext) {
3068
+ p.insertionMode = InsertionMode.AFTER_AFTER_BODY;
3069
+ }
3070
+ //NOTE: <html> is never popped from the stack, so we need to updated
3071
+ //the end location explicitly.
3072
+ if (p.options.sourceCodeLocationInfo && p.openElements.tagIDs[0] === html.TAG_ID.HTML) {
3073
+ p._setEndLocation(p.openElements.items[0], token);
3074
+ // Update the body element, if it doesn't have an end tag
3075
+ const bodyElement = p.openElements.items[1];
3076
+ if (bodyElement && !((_a = p.treeAdapter.getNodeSourceCodeLocation(bodyElement)) === null || _a === void 0 ? void 0 : _a.endTag)) {
3077
+ p._setEndLocation(bodyElement, token);
3078
+ }
3079
+ }
3080
+ }
3081
+ else {
3082
+ tokenAfterBody(p, token);
3083
+ }
3084
+ }
3085
+ function tokenAfterBody(p, token) {
3086
+ p.insertionMode = InsertionMode.IN_BODY;
3087
+ modeInBody(p, token);
3088
+ }
3089
+ // The "in frameset" insertion mode
3090
+ //------------------------------------------------------------------
3091
+ function startTagInFrameset(p, token) {
3092
+ switch (token.tagID) {
3093
+ case html.TAG_ID.HTML: {
3094
+ startTagInBody(p, token);
3095
+ break;
3096
+ }
3097
+ case html.TAG_ID.FRAMESET: {
3098
+ p._insertElement(token, html.NS.HTML);
3099
+ break;
3100
+ }
3101
+ case html.TAG_ID.FRAME: {
3102
+ p._appendElement(token, html.NS.HTML);
3103
+ token.ackSelfClosing = true;
3104
+ break;
3105
+ }
3106
+ case html.TAG_ID.NOFRAMES: {
3107
+ startTagInHead(p, token);
3108
+ break;
3109
+ }
3110
+ // Do nothing
3111
+ }
3112
+ }
3113
+ function endTagInFrameset(p, token) {
3114
+ if (token.tagID === html.TAG_ID.FRAMESET && !p.openElements.isRootHtmlElementCurrent()) {
3115
+ p.openElements.pop();
3116
+ if (!p.fragmentContext && p.openElements.currentTagId !== html.TAG_ID.FRAMESET) {
3117
+ p.insertionMode = InsertionMode.AFTER_FRAMESET;
3118
+ }
3119
+ }
3120
+ }
3121
+ // The "after frameset" insertion mode
3122
+ //------------------------------------------------------------------
3123
+ function startTagAfterFrameset(p, token) {
3124
+ switch (token.tagID) {
3125
+ case html.TAG_ID.HTML: {
3126
+ startTagInBody(p, token);
3127
+ break;
3128
+ }
3129
+ case html.TAG_ID.NOFRAMES: {
3130
+ startTagInHead(p, token);
3131
+ break;
3132
+ }
3133
+ // Do nothing
3134
+ }
3135
+ }
3136
+ function endTagAfterFrameset(p, token) {
3137
+ if (token.tagID === html.TAG_ID.HTML) {
3138
+ p.insertionMode = InsertionMode.AFTER_AFTER_FRAMESET;
3139
+ }
3140
+ }
3141
+ // The "after after body" insertion mode
3142
+ //------------------------------------------------------------------
3143
+ function startTagAfterAfterBody(p, token) {
3144
+ if (token.tagID === html.TAG_ID.HTML) {
3145
+ startTagInBody(p, token);
3146
+ }
3147
+ else {
3148
+ tokenAfterAfterBody(p, token);
3149
+ }
3150
+ }
3151
+ function tokenAfterAfterBody(p, token) {
3152
+ p.insertionMode = InsertionMode.IN_BODY;
3153
+ modeInBody(p, token);
3154
+ }
3155
+ // The "after after frameset" insertion mode
3156
+ //------------------------------------------------------------------
3157
+ function startTagAfterAfterFrameset(p, token) {
3158
+ switch (token.tagID) {
3159
+ case html.TAG_ID.HTML: {
3160
+ startTagInBody(p, token);
3161
+ break;
3162
+ }
3163
+ case html.TAG_ID.NOFRAMES: {
3164
+ startTagInHead(p, token);
3165
+ break;
3166
+ }
3167
+ // Do nothing
3168
+ }
3169
+ }
3170
+ // The rules for parsing tokens in foreign content
3171
+ //------------------------------------------------------------------
3172
+ function nullCharacterInForeignContent(p, token) {
3173
+ token.chars = unicode.REPLACEMENT_CHARACTER;
3174
+ p._insertCharacters(token);
3175
+ }
3176
+ function characterInForeignContent(p, token) {
3177
+ p._insertCharacters(token);
3178
+ p.framesetOk = false;
3179
+ }
3180
+ function popUntilHtmlOrIntegrationPoint(p) {
3181
+ while (p.treeAdapter.getNamespaceURI(p.openElements.current) !== html.NS.HTML &&
3182
+ p.openElements.currentTagId !== undefined &&
3183
+ !p._isIntegrationPoint(p.openElements.currentTagId, p.openElements.current)) {
3184
+ p.openElements.pop();
3185
+ }
3186
+ }
3187
+ function startTagInForeignContent(p, token) {
3188
+ if (foreignContent.causesExit(token)) {
3189
+ popUntilHtmlOrIntegrationPoint(p);
3190
+ p._startTagOutsideForeignContent(token);
3191
+ }
3192
+ else {
3193
+ const current = p._getAdjustedCurrentElement();
3194
+ const currentNs = p.treeAdapter.getNamespaceURI(current);
3195
+ if (currentNs === html.NS.MATHML) {
3196
+ foreignContent.adjustTokenMathMLAttrs(token);
3197
+ }
3198
+ else if (currentNs === html.NS.SVG) {
3199
+ foreignContent.adjustTokenSVGTagName(token);
3200
+ foreignContent.adjustTokenSVGAttrs(token);
3201
+ }
3202
+ foreignContent.adjustTokenXMLAttrs(token);
3203
+ if (token.selfClosing) {
3204
+ p._appendElement(token, currentNs);
3205
+ }
3206
+ else {
3207
+ p._insertElement(token, currentNs);
3208
+ }
3209
+ token.ackSelfClosing = true;
3210
+ }
3211
+ }
3212
+ function endTagInForeignContent(p, token) {
3213
+ if (token.tagID === html.TAG_ID.P || token.tagID === html.TAG_ID.BR) {
3214
+ popUntilHtmlOrIntegrationPoint(p);
3215
+ p._endTagOutsideForeignContent(token);
3216
+ return;
3217
+ }
3218
+ for (let i = p.openElements.stackTop; i > 0; i--) {
3219
+ const element = p.openElements.items[i];
3220
+ if (p.treeAdapter.getNamespaceURI(element) === html.NS.HTML) {
3221
+ p._endTagOutsideForeignContent(token);
3222
+ break;
3223
+ }
3224
+ const tagName = p.treeAdapter.getTagName(element);
3225
+ if (tagName.toLowerCase() === token.tagName) {
3226
+ //NOTE: update the token tag name for `_setEndLocation`.
3227
+ token.tagName = tagName;
3228
+ p.openElements.shortenToLength(i);
3229
+ break;
3230
+ }
3231
+ }
3232
+ }
3233
+
3234
+ exports.Parser = Parser;
3235
+ //# sourceMappingURL=index.cjs.map