langgraph-ui-components 0.0.25 → 0.0.28

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 (490) hide show
  1. package/README.md +515 -55
  2. package/dist/_virtual/index.cjs.js +1 -1
  3. package/dist/_virtual/index.cjs2.js +1 -1
  4. package/dist/_virtual/index.cjs3.js +1 -1
  5. package/dist/_virtual/index.es.js +5 -2
  6. package/dist/_virtual/index.es2.js +4 -2
  7. package/dist/_virtual/index.es2.js.map +1 -1
  8. package/dist/_virtual/index.es3.js +4 -4
  9. package/dist/assets/langgraph-ui-components.css +1 -1
  10. package/dist/components/ChatBody.cjs.js +2 -2
  11. package/dist/components/ChatBody.cjs.js.map +1 -1
  12. package/dist/components/ChatBody.d.ts.map +1 -1
  13. package/dist/components/ChatBody.es.js +208 -142
  14. package/dist/components/ChatBody.es.js.map +1 -1
  15. package/dist/components/TodoList.cjs.js +2 -0
  16. package/dist/components/TodoList.cjs.js.map +1 -0
  17. package/dist/components/TodoList.d.ts +5 -0
  18. package/dist/components/TodoList.d.ts.map +1 -0
  19. package/dist/components/TodoList.es.js +65 -0
  20. package/dist/components/TodoList.es.js.map +1 -0
  21. package/dist/components/messages/AgentMessage.cjs.js +3 -1
  22. package/dist/components/messages/AgentMessage.cjs.js.map +1 -1
  23. package/dist/components/messages/AgentMessage.d.ts +5 -1
  24. package/dist/components/messages/AgentMessage.d.ts.map +1 -1
  25. package/dist/components/messages/AgentMessage.es.js +200 -112
  26. package/dist/components/messages/AgentMessage.es.js.map +1 -1
  27. package/dist/components/messages/CustomComponentRender.cjs.js.map +1 -1
  28. package/dist/components/messages/CustomComponentRender.es.js.map +1 -1
  29. package/dist/components/ui/syntax-highlighter.cjs.js +1 -1
  30. package/dist/components/ui/syntax-highlighter.cjs.js.map +1 -1
  31. package/dist/components/ui/syntax-highlighter.es.js +1 -1
  32. package/dist/entries/components.cjs.js +1 -1
  33. package/dist/entries/components.d.ts.map +1 -1
  34. package/dist/entries/components.es.js +4 -5
  35. package/dist/entries/components.es.js.map +1 -1
  36. package/dist/entries/hooks.cjs.js +1 -1
  37. package/dist/entries/hooks.d.ts.map +1 -1
  38. package/dist/entries/hooks.es.js +5 -6
  39. package/dist/entries/hooks.es.js.map +1 -1
  40. package/dist/entries/providers.cjs.js +1 -1
  41. package/dist/entries/providers.d.ts +1 -1
  42. package/dist/entries/providers.d.ts.map +1 -1
  43. package/dist/entries/providers.es.js +18 -19
  44. package/dist/entries/providers.es.js.map +1 -1
  45. package/dist/index.cjs.js +1 -1
  46. package/dist/index.d.ts +2 -2
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.es.js +28 -29
  49. package/dist/index.es.js.map +1 -1
  50. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.cjs.js +1 -1
  51. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.es.js +1 -1
  52. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.cjs.js +1 -1
  53. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.cjs.js.map +1 -1
  54. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.es.js +1 -1
  55. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.cjs.js +1 -1
  56. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.cjs.js.map +1 -1
  57. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.es.js +1 -1
  58. package/dist/pages/Chat/Chat.cjs.js +1 -1
  59. package/dist/pages/Chat/Chat.cjs.js.map +1 -1
  60. package/dist/pages/Chat/Chat.d.ts.map +1 -1
  61. package/dist/pages/Chat/Chat.es.js +41 -34
  62. package/dist/pages/Chat/Chat.es.js.map +1 -1
  63. package/dist/pages/Sidebar/sidebar.cjs.js +1 -1
  64. package/dist/pages/Sidebar/sidebar.cjs.js.map +1 -1
  65. package/dist/pages/Sidebar/sidebar.d.ts.map +1 -1
  66. package/dist/pages/Sidebar/sidebar.es.js +75 -70
  67. package/dist/pages/Sidebar/sidebar.es.js.map +1 -1
  68. package/dist/providers/ChatProvider.cjs.js +1 -1
  69. package/dist/providers/ChatProvider.cjs.js.map +1 -1
  70. package/dist/providers/ChatProvider.d.ts +17 -1
  71. package/dist/providers/ChatProvider.d.ts.map +1 -1
  72. package/dist/providers/ChatProvider.es.js +18 -17
  73. package/dist/providers/ChatProvider.es.js.map +1 -1
  74. package/dist/providers/ChatRuntime.es.js +4 -4
  75. package/dist/providers/CustomComponentProvider.cjs.js +1 -1
  76. package/dist/providers/CustomComponentProvider.cjs.js.map +1 -1
  77. package/dist/providers/CustomComponentProvider.d.ts +11 -0
  78. package/dist/providers/CustomComponentProvider.d.ts.map +1 -1
  79. package/dist/providers/CustomComponentProvider.es.js +51 -35
  80. package/dist/providers/CustomComponentProvider.es.js.map +1 -1
  81. package/dist/providers/Stream.cjs.js +1 -1
  82. package/dist/providers/Stream.cjs.js.map +1 -1
  83. package/dist/providers/Stream.d.ts +40 -8
  84. package/dist/providers/Stream.d.ts.map +1 -1
  85. package/dist/providers/Stream.es.js +151 -119
  86. package/dist/providers/Stream.es.js.map +1 -1
  87. package/dist/providers/Thread.cjs.js +1 -1
  88. package/dist/providers/Thread.cjs.js.map +1 -1
  89. package/dist/providers/Thread.d.ts +2 -1
  90. package/dist/providers/Thread.d.ts.map +1 -1
  91. package/dist/providers/Thread.es.js +19 -19
  92. package/dist/providers/Thread.es.js.map +1 -1
  93. package/dist/styles.css +1 -1
  94. package/package.json +17 -1
  95. package/src/App.tsx +4 -4
  96. package/src/components/ChatBody.tsx +229 -78
  97. package/src/components/TodoList.tsx +72 -0
  98. package/src/components/messages/AgentMessage.tsx +288 -82
  99. package/src/components/messages/CustomComponentRender.tsx +1 -1
  100. package/src/entries/components.ts +0 -2
  101. package/src/entries/hooks.ts +0 -2
  102. package/src/entries/providers.ts +1 -3
  103. package/src/index.css +2 -2
  104. package/src/index.ts +2 -4
  105. package/src/pages/Chat/Chat.tsx +13 -3
  106. package/src/pages/Sidebar/sidebar.tsx +12 -3
  107. package/src/providers/ChatProvider.tsx +18 -1
  108. package/src/providers/CustomComponentProvider.tsx +41 -0
  109. package/src/providers/Stream.tsx +88 -25
  110. package/src/providers/Thread.tsx +2 -2
  111. package/dist/_virtual/index.cjs10.js +0 -2
  112. package/dist/_virtual/index.cjs10.js.map +0 -1
  113. package/dist/_virtual/index.cjs11.js +0 -2
  114. package/dist/_virtual/index.cjs11.js.map +0 -1
  115. package/dist/_virtual/index.cjs12.js +0 -2
  116. package/dist/_virtual/index.cjs12.js.map +0 -1
  117. package/dist/_virtual/index.cjs4.js +0 -2
  118. package/dist/_virtual/index.cjs4.js.map +0 -1
  119. package/dist/_virtual/index.cjs5.js +0 -2
  120. package/dist/_virtual/index.cjs5.js.map +0 -1
  121. package/dist/_virtual/index.cjs6.js +0 -2
  122. package/dist/_virtual/index.cjs6.js.map +0 -1
  123. package/dist/_virtual/index.cjs7.js +0 -2
  124. package/dist/_virtual/index.cjs7.js.map +0 -1
  125. package/dist/_virtual/index.cjs8.js +0 -2
  126. package/dist/_virtual/index.cjs8.js.map +0 -1
  127. package/dist/_virtual/index.cjs9.js +0 -2
  128. package/dist/_virtual/index.cjs9.js.map +0 -1
  129. package/dist/_virtual/index.es10.js +0 -8
  130. package/dist/_virtual/index.es10.js.map +0 -1
  131. package/dist/_virtual/index.es11.js +0 -5
  132. package/dist/_virtual/index.es11.js.map +0 -1
  133. package/dist/_virtual/index.es12.js +0 -8
  134. package/dist/_virtual/index.es12.js.map +0 -1
  135. package/dist/_virtual/index.es4.js +0 -6
  136. package/dist/_virtual/index.es4.js.map +0 -1
  137. package/dist/_virtual/index.es5.js +0 -5
  138. package/dist/_virtual/index.es5.js.map +0 -1
  139. package/dist/_virtual/index.es6.js +0 -5
  140. package/dist/_virtual/index.es6.js.map +0 -1
  141. package/dist/_virtual/index.es7.js +0 -5
  142. package/dist/_virtual/index.es7.js.map +0 -1
  143. package/dist/_virtual/index.es8.js +0 -5
  144. package/dist/_virtual/index.es8.js.map +0 -1
  145. package/dist/_virtual/index.es9.js +0 -5
  146. package/dist/_virtual/index.es9.js.map +0 -1
  147. package/dist/_virtual/lower-bound.cjs.js +0 -2
  148. package/dist/_virtual/lower-bound.cjs.js.map +0 -1
  149. package/dist/_virtual/lower-bound.es.js +0 -5
  150. package/dist/_virtual/lower-bound.es.js.map +0 -1
  151. package/dist/_virtual/priority-queue.cjs.js +0 -2
  152. package/dist/_virtual/priority-queue.cjs.js.map +0 -1
  153. package/dist/_virtual/priority-queue.es.js +0 -5
  154. package/dist/_virtual/priority-queue.es.js.map +0 -1
  155. package/dist/_virtual/re.cjs.js +0 -2
  156. package/dist/_virtual/re.cjs.js.map +0 -1
  157. package/dist/_virtual/re.es.js +0 -5
  158. package/dist/_virtual/re.es.js.map +0 -1
  159. package/dist/components/ToolCallFunctions.cjs.js +0 -2
  160. package/dist/components/ToolCallFunctions.cjs.js.map +0 -1
  161. package/dist/components/ToolCallFunctions.es.js +0 -75
  162. package/dist/components/ToolCallFunctions.es.js.map +0 -1
  163. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.cjs.js +0 -2
  164. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.cjs.js.map +0 -1
  165. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.es.js +0 -12
  166. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.es.js.map +0 -1
  167. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.cjs.js +0 -2
  168. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.cjs.js.map +0 -1
  169. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.es.js +0 -66
  170. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.es.js.map +0 -1
  171. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.cjs.js +0 -2
  172. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.cjs.js.map +0 -1
  173. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.es.js +0 -283
  174. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.es.js.map +0 -1
  175. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.cjs.js +0 -2
  176. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.cjs.js.map +0 -1
  177. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.es.js +0 -219
  178. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.es.js.map +0 -1
  179. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.cjs.js +0 -2
  180. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.cjs.js.map +0 -1
  181. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.es.js +0 -42
  182. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.es.js.map +0 -1
  183. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.cjs.js +0 -2
  184. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.cjs.js.map +0 -1
  185. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.es.js +0 -31
  186. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.es.js.map +0 -1
  187. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.cjs.js +0 -2
  188. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.cjs.js.map +0 -1
  189. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.es.js +0 -77
  190. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.es.js.map +0 -1
  191. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.cjs.js +0 -2
  192. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.cjs.js.map +0 -1
  193. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.es.js +0 -78
  194. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.es.js.map +0 -1
  195. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.cjs.js +0 -2
  196. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.cjs.js.map +0 -1
  197. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.es.js +0 -75
  198. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.es.js.map +0 -1
  199. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.cjs.js +0 -2
  200. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.cjs.js.map +0 -1
  201. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.es.js +0 -51
  202. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.es.js.map +0 -1
  203. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.cjs.js +0 -2
  204. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.cjs.js.map +0 -1
  205. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.es.js +0 -23
  206. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.es.js.map +0 -1
  207. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.cjs.js +0 -2
  208. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.cjs.js.map +0 -1
  209. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.es.js +0 -31
  210. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.es.js.map +0 -1
  211. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.cjs.js +0 -2
  212. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.cjs.js.map +0 -1
  213. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.es.js +0 -241
  214. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.es.js.map +0 -1
  215. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.cjs.js +0 -2
  216. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.cjs.js.map +0 -1
  217. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.es.js +0 -37
  218. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.es.js.map +0 -1
  219. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.cjs.js +0 -2
  220. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.cjs.js.map +0 -1
  221. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.es.js +0 -42
  222. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.es.js.map +0 -1
  223. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.cjs.js +0 -2
  224. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.cjs.js.map +0 -1
  225. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.es.js +0 -16
  226. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.es.js.map +0 -1
  227. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.cjs.js +0 -2
  228. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.cjs.js.map +0 -1
  229. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.es.js +0 -9
  230. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.es.js.map +0 -1
  231. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.cjs.js +0 -2
  232. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.cjs.js.map +0 -1
  233. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.es.js +0 -3
  234. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.es.js.map +0 -1
  235. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs.js +0 -2
  236. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs.js.map +0 -1
  237. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.es.js +0 -230
  238. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.es.js.map +0 -1
  239. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs.js +0 -3
  240. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs.js.map +0 -1
  241. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.es.js +0 -87
  242. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.es.js.map +0 -1
  243. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.cjs.js +0 -3
  244. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.cjs.js.map +0 -1
  245. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.es.js +0 -133
  246. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.es.js.map +0 -1
  247. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.cjs.js +0 -2
  248. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.cjs.js.map +0 -1
  249. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.es.js +0 -29
  250. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.es.js.map +0 -1
  251. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.cjs.js +0 -10
  252. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.cjs.js.map +0 -1
  253. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.es.js +0 -795
  254. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.es.js.map +0 -1
  255. package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.cjs.js +0 -2
  256. package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.cjs.js.map +0 -1
  257. package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.es.js +0 -111
  258. package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.es.js.map +0 -1
  259. package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.cjs.js +0 -2
  260. package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.cjs.js.map +0 -1
  261. package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.es.js +0 -30
  262. package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.es.js.map +0 -1
  263. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.js +0 -2
  264. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.js.map +0 -1
  265. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.es.js +0 -112
  266. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.es.js.map +0 -1
  267. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.cjs.js +0 -2
  268. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.cjs.js.map +0 -1
  269. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.es.js +0 -3
  270. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.es.js.map +0 -1
  271. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.js +0 -2
  272. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.js.map +0 -1
  273. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.es.js +0 -6
  274. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.es.js.map +0 -1
  275. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.cjs.js +0 -2
  276. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.cjs.js.map +0 -1
  277. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.es.js +0 -14
  278. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.es.js.map +0 -1
  279. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.cjs.js +0 -2
  280. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.cjs.js.map +0 -1
  281. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.es.js +0 -3
  282. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.es.js.map +0 -1
  283. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.cjs.js +0 -2
  284. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.cjs.js.map +0 -1
  285. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.es.js +0 -200
  286. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.es.js.map +0 -1
  287. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.cjs.js +0 -2
  288. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.cjs.js.map +0 -1
  289. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.es.js +0 -22
  290. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.es.js.map +0 -1
  291. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.js +0 -2
  292. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.js.map +0 -1
  293. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.es.js +0 -18
  294. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.es.js.map +0 -1
  295. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.js +0 -2
  296. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.js.map +0 -1
  297. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.es.js +0 -198
  298. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.es.js.map +0 -1
  299. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.js +0 -2
  300. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.js.map +0 -1
  301. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.es.js +0 -20
  302. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.es.js.map +0 -1
  303. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.js +0 -2
  304. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.js.map +0 -1
  305. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.es.js +0 -41
  306. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.es.js.map +0 -1
  307. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.js +0 -2
  308. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.js.map +0 -1
  309. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.es.js +0 -45
  310. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.es.js.map +0 -1
  311. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.cjs.js +0 -2
  312. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.cjs.js.map +0 -1
  313. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.es.js +0 -57
  314. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.es.js.map +0 -1
  315. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.cjs.js +0 -2
  316. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.cjs.js.map +0 -1
  317. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.es.js +0 -149
  318. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.es.js.map +0 -1
  319. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.cjs.js +0 -2
  320. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.cjs.js.map +0 -1
  321. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.es.js +0 -170
  322. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.es.js.map +0 -1
  323. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.cjs.js +0 -2
  324. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.cjs.js.map +0 -1
  325. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.es.js +0 -15
  326. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.es.js.map +0 -1
  327. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.cjs.js +0 -2
  328. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.cjs.js.map +0 -1
  329. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.es.js +0 -40
  330. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.es.js.map +0 -1
  331. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.cjs.js +0 -2
  332. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.cjs.js.map +0 -1
  333. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.es.js +0 -34
  334. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.es.js.map +0 -1
  335. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.cjs.js +0 -2
  336. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.cjs.js.map +0 -1
  337. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.es.js +0 -15
  338. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.es.js.map +0 -1
  339. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.cjs.js +0 -2
  340. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.cjs.js.map +0 -1
  341. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.es.js +0 -12
  342. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.es.js.map +0 -1
  343. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.cjs.js +0 -2
  344. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.cjs.js.map +0 -1
  345. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.es.js +0 -12
  346. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.es.js.map +0 -1
  347. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.cjs.js +0 -2
  348. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.cjs.js.map +0 -1
  349. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.es.js +0 -25
  350. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.es.js.map +0 -1
  351. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.cjs.js +0 -2
  352. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.cjs.js.map +0 -1
  353. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.es.js +0 -12
  354. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.es.js.map +0 -1
  355. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.cjs.js +0 -2
  356. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.cjs.js.map +0 -1
  357. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.es.js +0 -12
  358. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.es.js.map +0 -1
  359. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.cjs.js +0 -2
  360. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.cjs.js.map +0 -1
  361. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.es.js +0 -12
  362. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.es.js.map +0 -1
  363. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.cjs.js +0 -2
  364. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.cjs.js.map +0 -1
  365. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.es.js +0 -22
  366. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.es.js.map +0 -1
  367. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.cjs.js +0 -2
  368. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.cjs.js.map +0 -1
  369. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.es.js +0 -12
  370. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.es.js.map +0 -1
  371. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.cjs.js +0 -2
  372. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.cjs.js.map +0 -1
  373. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.es.js +0 -12
  374. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.es.js.map +0 -1
  375. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.cjs.js +0 -2
  376. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.cjs.js.map +0 -1
  377. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.es.js +0 -12
  378. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.es.js.map +0 -1
  379. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.cjs.js +0 -2
  380. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.cjs.js.map +0 -1
  381. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.es.js +0 -12
  382. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.es.js.map +0 -1
  383. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.cjs.js +0 -2
  384. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.cjs.js.map +0 -1
  385. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.es.js +0 -12
  386. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.es.js.map +0 -1
  387. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.cjs.js +0 -2
  388. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.cjs.js.map +0 -1
  389. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.es.js +0 -22
  390. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.es.js.map +0 -1
  391. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.cjs.js +0 -2
  392. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.cjs.js.map +0 -1
  393. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.es.js +0 -12
  394. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.es.js.map +0 -1
  395. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.cjs.js +0 -2
  396. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.cjs.js.map +0 -1
  397. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.es.js +0 -15
  398. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.es.js.map +0 -1
  399. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.cjs.js +0 -2
  400. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.cjs.js.map +0 -1
  401. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.es.js +0 -12
  402. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.es.js.map +0 -1
  403. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.cjs.js +0 -2
  404. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.cjs.js.map +0 -1
  405. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.es.js +0 -12
  406. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.es.js.map +0 -1
  407. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.cjs.js +0 -2
  408. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.cjs.js.map +0 -1
  409. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.es.js +0 -19
  410. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.es.js.map +0 -1
  411. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.cjs.js +0 -2
  412. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.cjs.js.map +0 -1
  413. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.es.js +0 -12
  414. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.es.js.map +0 -1
  415. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.cjs.js +0 -2
  416. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.cjs.js.map +0 -1
  417. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.es.js +0 -15
  418. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.es.js.map +0 -1
  419. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.cjs.js +0 -2
  420. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.cjs.js.map +0 -1
  421. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.es.js +0 -98
  422. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.es.js.map +0 -1
  423. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.cjs.js +0 -2
  424. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.cjs.js.map +0 -1
  425. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.es.js +0 -29
  426. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.es.js.map +0 -1
  427. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.cjs.js +0 -2
  428. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.cjs.js.map +0 -1
  429. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.es.js +0 -9
  430. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.es.js.map +0 -1
  431. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.cjs.js +0 -2
  432. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.cjs.js.map +0 -1
  433. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.es.js +0 -19
  434. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.es.js.map +0 -1
  435. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.cjs.js +0 -2
  436. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.cjs.js.map +0 -1
  437. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.es.js +0 -33
  438. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.es.js.map +0 -1
  439. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.cjs.js +0 -2
  440. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.cjs.js.map +0 -1
  441. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.es.js +0 -11
  442. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.es.js.map +0 -1
  443. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.cjs.js +0 -2
  444. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.cjs.js.map +0 -1
  445. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.es.js +0 -33
  446. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.es.js.map +0 -1
  447. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.cjs.js +0 -2
  448. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.cjs.js.map +0 -1
  449. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.es.js +0 -12
  450. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.es.js.map +0 -1
  451. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.cjs.js +0 -2
  452. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.cjs.js.map +0 -1
  453. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.es.js +0 -12
  454. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.es.js.map +0 -1
  455. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.cjs.js +0 -2
  456. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.cjs.js.map +0 -1
  457. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.es.js +0 -12
  458. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.es.js.map +0 -1
  459. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.cjs.js +0 -2
  460. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.cjs.js.map +0 -1
  461. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.es.js +0 -23
  462. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.es.js.map +0 -1
  463. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.cjs.js +0 -2
  464. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.cjs.js.map +0 -1
  465. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.es.js +0 -23
  466. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.es.js.map +0 -1
  467. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.cjs.js +0 -2
  468. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.cjs.js.map +0 -1
  469. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.es.js +0 -43
  470. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.es.js.map +0 -1
  471. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.cjs.js +0 -2
  472. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.cjs.js.map +0 -1
  473. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.es.js +0 -45
  474. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.es.js.map +0 -1
  475. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.cjs.js +0 -2
  476. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.cjs.js.map +0 -1
  477. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.es.js +0 -25
  478. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.es.js.map +0 -1
  479. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.cjs.js +0 -2
  480. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.cjs.js.map +0 -1
  481. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.es.js +0 -95
  482. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.es.js.map +0 -1
  483. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.cjs.js +0 -2
  484. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.cjs.js.map +0 -1
  485. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.es.js +0 -12
  486. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.es.js.map +0 -1
  487. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.cjs.js +0 -2
  488. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.cjs.js.map +0 -1
  489. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.es.js +0 -18
  490. package/dist/node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.es.js.map +0 -1
@@ -1,230 +0,0 @@
1
- import { __exportAll as R } from "../../../_virtual/_rolldown/runtime.es.js";
2
- import { _deepClone as _, PatchError as I, unescapePathComponent as D, isInteger as T, hasUndefined as g } from "./helpers.es.js";
3
- var U = /* @__PURE__ */ R({
4
- JsonPatchError: () => l,
5
- _areEquals: () => A,
6
- applyOperation: () => h,
7
- applyPatch: () => N,
8
- applyReducer: () => d,
9
- deepClone: () => m,
10
- getValueByPointer: () => E,
11
- validate: () => P,
12
- validator: () => y
13
- });
14
- const l = I, m = _, u = {
15
- add: function(e, r, t) {
16
- if (r === "__proto__" || r === "constructor") throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor` prop is banned for security reasons");
17
- return e[r] = this.value, { newDocument: t };
18
- },
19
- remove: function(e, r, t) {
20
- if (r === "__proto__" || r === "constructor") throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor` prop is banned for security reasons");
21
- var f = e[r];
22
- return delete e[r], {
23
- newDocument: t,
24
- removed: f
25
- };
26
- },
27
- replace: function(e, r, t) {
28
- if (r === "__proto__" || r === "constructor") throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor` prop is banned for security reasons");
29
- var f = e[r];
30
- return e[r] = this.value, {
31
- newDocument: t,
32
- removed: f
33
- };
34
- },
35
- move: function(e, r, t) {
36
- let f = E(t, this.path);
37
- f && (f = _(f));
38
- const n = h(t, {
39
- op: "remove",
40
- path: this.from
41
- }).removed;
42
- return h(t, {
43
- op: "add",
44
- path: this.path,
45
- value: n
46
- }), {
47
- newDocument: t,
48
- removed: f
49
- };
50
- },
51
- copy: function(e, r, t) {
52
- const f = E(t, this.from);
53
- return h(t, {
54
- op: "add",
55
- path: this.path,
56
- value: _(f)
57
- }), { newDocument: t };
58
- },
59
- test: function(e, r, t) {
60
- return {
61
- newDocument: t,
62
- test: A(e[r], this.value)
63
- };
64
- },
65
- _get: function(e, r, t) {
66
- return this.value = e[r], { newDocument: t };
67
- }
68
- };
69
- var L = {
70
- add: function(e, r, t) {
71
- return T(r) ? e.splice(r, 0, this.value) : e[r] = this.value, {
72
- newDocument: t,
73
- index: r
74
- };
75
- },
76
- remove: function(e, r, t) {
77
- return {
78
- newDocument: t,
79
- removed: e.splice(r, 1)[0]
80
- };
81
- },
82
- replace: function(e, r, t) {
83
- var f = e[r];
84
- return e[r] = this.value, {
85
- newDocument: t,
86
- removed: f
87
- };
88
- },
89
- move: u.move,
90
- copy: u.copy,
91
- test: u.test,
92
- _get: u._get
93
- };
94
- function E(e, r) {
95
- if (r == "") return e;
96
- var t = {
97
- op: "_get",
98
- path: r
99
- };
100
- return h(e, t), t.value;
101
- }
102
- function h(e, r, t = !1, f = !0, n = !0, o = 0) {
103
- if (t && (typeof t == "function" ? t(r, 0, e, r.path) : y(r, 0)), r.path === "") {
104
- let s = { newDocument: e };
105
- if (r.op === "add")
106
- return s.newDocument = r.value, s;
107
- if (r.op === "replace")
108
- return s.newDocument = r.value, s.removed = e, s;
109
- if (r.op === "move" || r.op === "copy")
110
- return s.newDocument = E(e, r.from), r.op === "move" && (s.removed = e), s;
111
- if (r.op === "test") {
112
- if (s.test = A(e, r.value), s.test === !1) throw new l("Test operation failed", "TEST_OPERATION_FAILED", o, r, e);
113
- return s.newDocument = e, s;
114
- } else {
115
- if (r.op === "remove")
116
- return s.removed = e, s.newDocument = null, s;
117
- if (r.op === "_get")
118
- return r.value = e, s;
119
- if (t) throw new l("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", o, r, e);
120
- return s;
121
- }
122
- } else {
123
- f || (e = _(e));
124
- const s = (r.path || "").split("/");
125
- let p = e, i = 1, O = s.length, w, a, v;
126
- for (typeof t == "function" ? v = t : v = y; ; ) {
127
- if (a = s[i], a && a.indexOf("~") != -1 && (a = D(a)), n && (a == "__proto__" || a == "prototype" && i > 0 && s[i - 1] == "constructor")) throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");
128
- if (t && w === void 0 && (p[a] === void 0 ? w = s.slice(0, i).join("/") : i == O - 1 && (w = r.path), w !== void 0 && v(r, 0, e, w)), i++, Array.isArray(p)) {
129
- if (a === "-") a = p.length;
130
- else {
131
- if (t && !T(a)) throw new l("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index", "OPERATION_PATH_ILLEGAL_ARRAY_INDEX", o, r, e);
132
- T(a) && (a = ~~a);
133
- }
134
- if (i >= O) {
135
- if (t && r.op === "add" && a > p.length) throw new l("The specified index MUST NOT be greater than the number of elements in the array", "OPERATION_VALUE_OUT_OF_BOUNDS", o, r, e);
136
- const c = L[r.op].call(r, p, a, e);
137
- if (c.test === !1) throw new l("Test operation failed", "TEST_OPERATION_FAILED", o, r, e);
138
- return c;
139
- }
140
- } else if (i >= O) {
141
- const c = u[r.op].call(r, p, a, e);
142
- if (c.test === !1) throw new l("Test operation failed", "TEST_OPERATION_FAILED", o, r, e);
143
- return c;
144
- }
145
- if (p = p[a], t && i < O && (!p || typeof p != "object")) throw new l("Cannot perform operation at the desired path", "OPERATION_PATH_UNRESOLVABLE", o, r, e);
146
- }
147
- }
148
- }
149
- function N(e, r, t, f = !0, n = !0) {
150
- if (t && !Array.isArray(r))
151
- throw new l("Patch sequence must be an array", "SEQUENCE_NOT_AN_ARRAY");
152
- f || (e = _(e));
153
- const o = new Array(r.length);
154
- for (let s = 0, p = r.length; s < p; s++)
155
- o[s] = h(e, r[s], t, !0, n, s), e = o[s].newDocument;
156
- return o.newDocument = e, o;
157
- }
158
- function d(e, r, t) {
159
- const f = h(e, r);
160
- if (f.test === !1) throw new l("Test operation failed", "TEST_OPERATION_FAILED", t, r, e);
161
- return f.newDocument;
162
- }
163
- function y(e, r, t, f) {
164
- if (typeof e != "object" || e === null || Array.isArray(e)) throw new l("Operation is not an object", "OPERATION_NOT_AN_OBJECT", r, e, t);
165
- if (u[e.op]) {
166
- if (typeof e.path != "string") throw new l("Operation `path` property is not a string", "OPERATION_PATH_INVALID", r, e, t);
167
- if (e.path.indexOf("/") !== 0 && e.path.length > 0) throw new l('Operation `path` property must start with "/"', "OPERATION_PATH_INVALID", r, e, t);
168
- if ((e.op === "move" || e.op === "copy") && typeof e.from != "string") throw new l("Operation `from` property is not present (applicable in `move` and `copy` operations)", "OPERATION_FROM_REQUIRED", r, e, t);
169
- if ((e.op === "add" || e.op === "replace" || e.op === "test") && e.value === void 0) throw new l("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)", "OPERATION_VALUE_REQUIRED", r, e, t);
170
- if ((e.op === "add" || e.op === "replace" || e.op === "test") && g(e.value)) throw new l("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)", "OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED", r, e, t);
171
- if (t) {
172
- if (e.op == "add") {
173
- var n = e.path.split("/").length, o = f.split("/").length;
174
- if (n !== o + 1 && n !== o) throw new l("Cannot perform an `add` operation at the desired path", "OPERATION_PATH_CANNOT_ADD", r, e, t);
175
- } else if (e.op === "replace" || e.op === "remove" || e.op === "_get") {
176
- if (e.path !== f) throw new l("Cannot perform the operation at a path that does not exist", "OPERATION_PATH_UNRESOLVABLE", r, e, t);
177
- } else if (e.op === "move" || e.op === "copy") {
178
- var s = P([{
179
- op: "_get",
180
- path: e.from,
181
- value: void 0
182
- }], t);
183
- if (s && s.name === "OPERATION_PATH_UNRESOLVABLE") throw new l("Cannot perform the operation from a path that does not exist", "OPERATION_FROM_UNRESOLVABLE", r, e, t);
184
- }
185
- }
186
- } else throw new l("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", r, e, t);
187
- }
188
- function P(e, r, t) {
189
- try {
190
- if (!Array.isArray(e)) throw new l("Patch sequence must be an array", "SEQUENCE_NOT_AN_ARRAY");
191
- if (r) N(_(r), _(e), t || !0);
192
- else {
193
- t = t || y;
194
- for (var f = 0; f < e.length; f++) t(e[f], f, r, void 0);
195
- }
196
- } catch (n) {
197
- if (n instanceof l) return n;
198
- throw n;
199
- }
200
- }
201
- function A(e, r) {
202
- if (e === r) return !0;
203
- if (e && r && typeof e == "object" && typeof r == "object") {
204
- var t = Array.isArray(e), f = Array.isArray(r), n, o, s;
205
- if (t && f) {
206
- if (o = e.length, o != r.length) return !1;
207
- for (n = o; n-- !== 0; ) if (!A(e[n], r[n])) return !1;
208
- return !0;
209
- }
210
- if (t != f) return !1;
211
- var p = Object.keys(e);
212
- if (o = p.length, o !== Object.keys(r).length) return !1;
213
- for (n = o; n-- !== 0; ) if (!r.hasOwnProperty(p[n])) return !1;
214
- for (n = o; n-- !== 0; )
215
- if (s = p[n], !A(e[s], r[s])) return !1;
216
- return !0;
217
- }
218
- return e !== e && r !== r;
219
- }
220
- export {
221
- A as _areEquals,
222
- h as applyOperation,
223
- N as applyPatch,
224
- d as applyReducer,
225
- U as core_exports,
226
- E as getValueByPointer,
227
- P as validate,
228
- y as validator
229
- };
230
- //# sourceMappingURL=core.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.es.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@langchain+core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.js"],"sourcesContent":["import { __exportAll } from \"../../../_virtual/_rolldown/runtime.js\";\nimport { PatchError, _deepClone, hasUndefined, isInteger, unescapePathComponent } from \"./helpers.js\";\n//#region src/utils/fast-json-patch/src/core.ts\nvar core_exports = /* @__PURE__ */ __exportAll({\n\tJsonPatchError: () => JsonPatchError,\n\t_areEquals: () => _areEquals,\n\tapplyOperation: () => applyOperation,\n\tapplyPatch: () => applyPatch,\n\tapplyReducer: () => applyReducer,\n\tdeepClone: () => deepClone,\n\tgetValueByPointer: () => getValueByPointer,\n\tvalidate: () => validate,\n\tvalidator: () => validator\n});\nconst JsonPatchError = PatchError;\nconst deepClone = _deepClone;\nconst objOps = {\n\tadd: function(obj, key, document) {\n\t\tif (key === \"__proto__\" || key === \"constructor\") throw new TypeError(\"JSON-Patch: modifying `__proto__` or `constructor` prop is banned for security reasons\");\n\t\tobj[key] = this.value;\n\t\treturn { newDocument: document };\n\t},\n\tremove: function(obj, key, document) {\n\t\tif (key === \"__proto__\" || key === \"constructor\") throw new TypeError(\"JSON-Patch: modifying `__proto__` or `constructor` prop is banned for security reasons\");\n\t\tvar removed = obj[key];\n\t\tdelete obj[key];\n\t\treturn {\n\t\t\tnewDocument: document,\n\t\t\tremoved\n\t\t};\n\t},\n\treplace: function(obj, key, document) {\n\t\tif (key === \"__proto__\" || key === \"constructor\") throw new TypeError(\"JSON-Patch: modifying `__proto__` or `constructor` prop is banned for security reasons\");\n\t\tvar removed = obj[key];\n\t\tobj[key] = this.value;\n\t\treturn {\n\t\t\tnewDocument: document,\n\t\t\tremoved\n\t\t};\n\t},\n\tmove: function(obj, key, document) {\n\t\tlet removed = getValueByPointer(document, this.path);\n\t\tif (removed) removed = _deepClone(removed);\n\t\tconst originalValue = applyOperation(document, {\n\t\t\top: \"remove\",\n\t\t\tpath: this.from\n\t\t}).removed;\n\t\tapplyOperation(document, {\n\t\t\top: \"add\",\n\t\t\tpath: this.path,\n\t\t\tvalue: originalValue\n\t\t});\n\t\treturn {\n\t\t\tnewDocument: document,\n\t\t\tremoved\n\t\t};\n\t},\n\tcopy: function(obj, key, document) {\n\t\tconst valueToCopy = getValueByPointer(document, this.from);\n\t\tapplyOperation(document, {\n\t\t\top: \"add\",\n\t\t\tpath: this.path,\n\t\t\tvalue: _deepClone(valueToCopy)\n\t\t});\n\t\treturn { newDocument: document };\n\t},\n\ttest: function(obj, key, document) {\n\t\treturn {\n\t\t\tnewDocument: document,\n\t\t\ttest: _areEquals(obj[key], this.value)\n\t\t};\n\t},\n\t_get: function(obj, key, document) {\n\t\tthis.value = obj[key];\n\t\treturn { newDocument: document };\n\t}\n};\nvar arrOps = {\n\tadd: function(arr, i, document) {\n\t\tif (isInteger(i)) arr.splice(i, 0, this.value);\n\t\telse arr[i] = this.value;\n\t\treturn {\n\t\t\tnewDocument: document,\n\t\t\tindex: i\n\t\t};\n\t},\n\tremove: function(arr, i, document) {\n\t\treturn {\n\t\t\tnewDocument: document,\n\t\t\tremoved: arr.splice(i, 1)[0]\n\t\t};\n\t},\n\treplace: function(arr, i, document) {\n\t\tvar removed = arr[i];\n\t\tarr[i] = this.value;\n\t\treturn {\n\t\t\tnewDocument: document,\n\t\t\tremoved\n\t\t};\n\t},\n\tmove: objOps.move,\n\tcopy: objOps.copy,\n\ttest: objOps.test,\n\t_get: objOps._get\n};\n/**\n* Retrieves a value from a JSON document by a JSON pointer.\n* Returns the value.\n*\n* @param document The document to get the value from\n* @param pointer an escaped JSON pointer\n* @return The retrieved value\n*/\nfunction getValueByPointer(document, pointer) {\n\tif (pointer == \"\") return document;\n\tvar getOriginalDestination = {\n\t\top: \"_get\",\n\t\tpath: pointer\n\t};\n\tapplyOperation(document, getOriginalDestination);\n\treturn getOriginalDestination.value;\n}\n/**\n* Apply a single JSON Patch Operation on a JSON document.\n* Returns the {newDocument, result} of the operation.\n* It modifies the `document` and `operation` objects - it gets the values by reference.\n* If you would like to avoid touching your values, clone them:\n* `jsonpatch.applyOperation(document, jsonpatch._deepClone(operation))`.\n*\n* @param document The document to patch\n* @param operation The operation to apply\n* @param validateOperation `false` is without validation, `true` to use default jsonpatch's validation, or you can pass a `validateOperation` callback to be used for validation.\n* @param mutateDocument Whether to mutate the original document or clone it before applying\n* @param banPrototypeModifications Whether to ban modifications to `__proto__`, defaults to `true`.\n* @return `{newDocument, result}` after the operation\n*/\nfunction applyOperation(document, operation, validateOperation = false, mutateDocument = true, banPrototypeModifications = true, index = 0) {\n\tif (validateOperation) if (typeof validateOperation == \"function\") validateOperation(operation, 0, document, operation.path);\n\telse validator(operation, 0);\n\tif (operation.path === \"\") {\n\t\tlet returnValue = { newDocument: document };\n\t\tif (operation.op === \"add\") {\n\t\t\treturnValue.newDocument = operation.value;\n\t\t\treturn returnValue;\n\t\t} else if (operation.op === \"replace\") {\n\t\t\treturnValue.newDocument = operation.value;\n\t\t\treturnValue.removed = document;\n\t\t\treturn returnValue;\n\t\t} else if (operation.op === \"move\" || operation.op === \"copy\") {\n\t\t\treturnValue.newDocument = getValueByPointer(document, operation.from);\n\t\t\tif (operation.op === \"move\") returnValue.removed = document;\n\t\t\treturn returnValue;\n\t\t} else if (operation.op === \"test\") {\n\t\t\treturnValue.test = _areEquals(document, operation.value);\n\t\t\tif (returnValue.test === false) throw new JsonPatchError(\"Test operation failed\", \"TEST_OPERATION_FAILED\", index, operation, document);\n\t\t\treturnValue.newDocument = document;\n\t\t\treturn returnValue;\n\t\t} else if (operation.op === \"remove\") {\n\t\t\treturnValue.removed = document;\n\t\t\treturnValue.newDocument = null;\n\t\t\treturn returnValue;\n\t\t} else if (operation.op === \"_get\") {\n\t\t\toperation.value = document;\n\t\t\treturn returnValue;\n\t\t} else if (validateOperation) throw new JsonPatchError(\"Operation `op` property is not one of operations defined in RFC-6902\", \"OPERATION_OP_INVALID\", index, operation, document);\n\t\telse return returnValue;\n\t} else {\n\t\tif (!mutateDocument) document = _deepClone(document);\n\t\tconst keys = (operation.path || \"\").split(\"/\");\n\t\tlet obj = document;\n\t\tlet t = 1;\n\t\tlet len = keys.length;\n\t\tlet existingPathFragment = void 0;\n\t\tlet key;\n\t\tlet validateFunction;\n\t\tif (typeof validateOperation == \"function\") validateFunction = validateOperation;\n\t\telse validateFunction = validator;\n\t\twhile (true) {\n\t\t\tkey = keys[t];\n\t\t\tif (key && key.indexOf(\"~\") != -1) key = unescapePathComponent(key);\n\t\t\tif (banPrototypeModifications && (key == \"__proto__\" || key == \"prototype\" && t > 0 && keys[t - 1] == \"constructor\")) throw new TypeError(\"JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README\");\n\t\t\tif (validateOperation) {\n\t\t\t\tif (existingPathFragment === void 0) {\n\t\t\t\t\tif (obj[key] === void 0) existingPathFragment = keys.slice(0, t).join(\"/\");\n\t\t\t\t\telse if (t == len - 1) existingPathFragment = operation.path;\n\t\t\t\t\tif (existingPathFragment !== void 0) validateFunction(operation, 0, document, existingPathFragment);\n\t\t\t\t}\n\t\t\t}\n\t\t\tt++;\n\t\t\tif (Array.isArray(obj)) {\n\t\t\t\tif (key === \"-\") key = obj.length;\n\t\t\t\telse if (validateOperation && !isInteger(key)) throw new JsonPatchError(\"Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index\", \"OPERATION_PATH_ILLEGAL_ARRAY_INDEX\", index, operation, document);\n\t\t\t\telse if (isInteger(key)) key = ~~key;\n\t\t\t\tif (t >= len) {\n\t\t\t\t\tif (validateOperation && operation.op === \"add\" && key > obj.length) throw new JsonPatchError(\"The specified index MUST NOT be greater than the number of elements in the array\", \"OPERATION_VALUE_OUT_OF_BOUNDS\", index, operation, document);\n\t\t\t\t\tconst returnValue = arrOps[operation.op].call(operation, obj, key, document);\n\t\t\t\t\tif (returnValue.test === false) throw new JsonPatchError(\"Test operation failed\", \"TEST_OPERATION_FAILED\", index, operation, document);\n\t\t\t\t\treturn returnValue;\n\t\t\t\t}\n\t\t\t} else if (t >= len) {\n\t\t\t\tconst returnValue = objOps[operation.op].call(operation, obj, key, document);\n\t\t\t\tif (returnValue.test === false) throw new JsonPatchError(\"Test operation failed\", \"TEST_OPERATION_FAILED\", index, operation, document);\n\t\t\t\treturn returnValue;\n\t\t\t}\n\t\t\tobj = obj[key];\n\t\t\tif (validateOperation && t < len && (!obj || typeof obj !== \"object\")) throw new JsonPatchError(\"Cannot perform operation at the desired path\", \"OPERATION_PATH_UNRESOLVABLE\", index, operation, document);\n\t\t}\n\t}\n}\n/**\n* Apply a full JSON Patch array on a JSON document.\n* Returns the {newDocument, result} of the patch.\n* It modifies the `document` object and `patch` - it gets the values by reference.\n* If you would like to avoid touching your values, clone them:\n* `jsonpatch.applyPatch(document, jsonpatch._deepClone(patch))`.\n*\n* @param document The document to patch\n* @param patch The patch to apply\n* @param validateOperation `false` is without validation, `true` to use default jsonpatch's validation, or you can pass a `validateOperation` callback to be used for validation.\n* @param mutateDocument Whether to mutate the original document or clone it before applying\n* @param banPrototypeModifications Whether to ban modifications to `__proto__`, defaults to `true`.\n* @return An array of `{newDocument, result}` after the patch\n*/\nfunction applyPatch(document, patch, validateOperation, mutateDocument = true, banPrototypeModifications = true) {\n\tif (validateOperation) {\n\t\tif (!Array.isArray(patch)) throw new JsonPatchError(\"Patch sequence must be an array\", \"SEQUENCE_NOT_AN_ARRAY\");\n\t}\n\tif (!mutateDocument) document = _deepClone(document);\n\tconst results = new Array(patch.length);\n\tfor (let i = 0, length = patch.length; i < length; i++) {\n\t\tresults[i] = applyOperation(document, patch[i], validateOperation, true, banPrototypeModifications, i);\n\t\tdocument = results[i].newDocument;\n\t}\n\tresults.newDocument = document;\n\treturn results;\n}\n/**\n* Apply a single JSON Patch Operation on a JSON document.\n* Returns the updated document.\n* Suitable as a reducer.\n*\n* @param document The document to patch\n* @param operation The operation to apply\n* @return The updated document\n*/\nfunction applyReducer(document, operation, index) {\n\tconst operationResult = applyOperation(document, operation);\n\tif (operationResult.test === false) throw new JsonPatchError(\"Test operation failed\", \"TEST_OPERATION_FAILED\", index, operation, document);\n\treturn operationResult.newDocument;\n}\n/**\n* Validates a single operation. Called from `jsonpatch.validate`. Throws `JsonPatchError` in case of an error.\n* @param {object} operation - operation object (patch)\n* @param {number} index - index of operation in the sequence\n* @param {object} [document] - object where the operation is supposed to be applied\n* @param {string} [existingPathFragment] - comes along with `document`\n*/\nfunction validator(operation, index, document, existingPathFragment) {\n\tif (typeof operation !== \"object\" || operation === null || Array.isArray(operation)) throw new JsonPatchError(\"Operation is not an object\", \"OPERATION_NOT_AN_OBJECT\", index, operation, document);\n\telse if (!objOps[operation.op]) throw new JsonPatchError(\"Operation `op` property is not one of operations defined in RFC-6902\", \"OPERATION_OP_INVALID\", index, operation, document);\n\telse if (typeof operation.path !== \"string\") throw new JsonPatchError(\"Operation `path` property is not a string\", \"OPERATION_PATH_INVALID\", index, operation, document);\n\telse if (operation.path.indexOf(\"/\") !== 0 && operation.path.length > 0) throw new JsonPatchError(\"Operation `path` property must start with \\\"/\\\"\", \"OPERATION_PATH_INVALID\", index, operation, document);\n\telse if ((operation.op === \"move\" || operation.op === \"copy\") && typeof operation.from !== \"string\") throw new JsonPatchError(\"Operation `from` property is not present (applicable in `move` and `copy` operations)\", \"OPERATION_FROM_REQUIRED\", index, operation, document);\n\telse if ((operation.op === \"add\" || operation.op === \"replace\" || operation.op === \"test\") && operation.value === void 0) throw new JsonPatchError(\"Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)\", \"OPERATION_VALUE_REQUIRED\", index, operation, document);\n\telse if ((operation.op === \"add\" || operation.op === \"replace\" || operation.op === \"test\") && hasUndefined(operation.value)) throw new JsonPatchError(\"Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)\", \"OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED\", index, operation, document);\n\telse if (document) {\n\t\tif (operation.op == \"add\") {\n\t\t\tvar pathLen = operation.path.split(\"/\").length;\n\t\t\tvar existingPathLen = existingPathFragment.split(\"/\").length;\n\t\t\tif (pathLen !== existingPathLen + 1 && pathLen !== existingPathLen) throw new JsonPatchError(\"Cannot perform an `add` operation at the desired path\", \"OPERATION_PATH_CANNOT_ADD\", index, operation, document);\n\t\t} else if (operation.op === \"replace\" || operation.op === \"remove\" || operation.op === \"_get\") {\n\t\t\tif (operation.path !== existingPathFragment) throw new JsonPatchError(\"Cannot perform the operation at a path that does not exist\", \"OPERATION_PATH_UNRESOLVABLE\", index, operation, document);\n\t\t} else if (operation.op === \"move\" || operation.op === \"copy\") {\n\t\t\tvar error = validate([{\n\t\t\t\top: \"_get\",\n\t\t\t\tpath: operation.from,\n\t\t\t\tvalue: void 0\n\t\t\t}], document);\n\t\t\tif (error && error.name === \"OPERATION_PATH_UNRESOLVABLE\") throw new JsonPatchError(\"Cannot perform the operation from a path that does not exist\", \"OPERATION_FROM_UNRESOLVABLE\", index, operation, document);\n\t\t}\n\t}\n}\n/**\n* Validates a sequence of operations. If `document` parameter is provided, the sequence is additionally validated against the object document.\n* If error is encountered, returns a JsonPatchError object\n* @param sequence\n* @param document\n* @returns {JsonPatchError|undefined}\n*/\nfunction validate(sequence, document, externalValidator) {\n\ttry {\n\t\tif (!Array.isArray(sequence)) throw new JsonPatchError(\"Patch sequence must be an array\", \"SEQUENCE_NOT_AN_ARRAY\");\n\t\tif (document) applyPatch(_deepClone(document), _deepClone(sequence), externalValidator || true);\n\t\telse {\n\t\t\texternalValidator = externalValidator || validator;\n\t\t\tfor (var i = 0; i < sequence.length; i++) externalValidator(sequence[i], i, document, void 0);\n\t\t}\n\t} catch (e) {\n\t\tif (e instanceof JsonPatchError) return e;\n\t\telse throw e;\n\t}\n}\nfunction _areEquals(a, b) {\n\tif (a === b) return true;\n\tif (a && b && typeof a == \"object\" && typeof b == \"object\") {\n\t\tvar arrA = Array.isArray(a), arrB = Array.isArray(b), i, length, key;\n\t\tif (arrA && arrB) {\n\t\t\tlength = a.length;\n\t\t\tif (length != b.length) return false;\n\t\t\tfor (i = length; i-- !== 0;) if (!_areEquals(a[i], b[i])) return false;\n\t\t\treturn true;\n\t\t}\n\t\tif (arrA != arrB) return false;\n\t\tvar keys = Object.keys(a);\n\t\tlength = keys.length;\n\t\tif (length !== Object.keys(b).length) return false;\n\t\tfor (i = length; i-- !== 0;) if (!b.hasOwnProperty(keys[i])) return false;\n\t\tfor (i = length; i-- !== 0;) {\n\t\t\tkey = keys[i];\n\t\t\tif (!_areEquals(a[key], b[key])) return false;\n\t\t}\n\t\treturn true;\n\t}\n\treturn a !== a && b !== b;\n}\n//#endregion\nexport { _areEquals, applyOperation, applyPatch, applyReducer, core_exports, getValueByPointer, validate, validator };\n\n//# sourceMappingURL=core.js.map"],"names":["core_exports","__exportAll","JsonPatchError","_areEquals","applyOperation","applyPatch","applyReducer","deepClone","getValueByPointer","validate","validator","PatchError","_deepClone","objOps","obj","key","document","removed","originalValue","valueToCopy","arrOps","arr","i","isInteger","pointer","getOriginalDestination","operation","validateOperation","mutateDocument","banPrototypeModifications","index","returnValue","keys","t","len","existingPathFragment","validateFunction","unescapePathComponent","patch","results","length","operationResult","hasUndefined","pathLen","existingPathLen","error","sequence","externalValidator","e","a","b","arrA","arrB"],"mappings":";;AAGG,IAACA,IAA+B,gBAAAC,EAAY;AAAA,EAC9C,gBAAgB,MAAMC;AAAA,EACtB,YAAY,MAAMC;AAAA,EAClB,gBAAgB,MAAMC;AAAA,EACtB,YAAY,MAAMC;AAAA,EAClB,cAAc,MAAMC;AAAA,EACpB,WAAW,MAAMC;AAAA,EACjB,mBAAmB,MAAMC;AAAA,EACzB,UAAU,MAAMC;AAAA,EAChB,WAAW,MAAMC;AAClB,CAAC;AACD,MAAMR,IAAiBS,GACjBJ,IAAYK,GACZC,IAAS;AAAA,EACd,KAAK,SAASC,GAAKC,GAAKC,GAAU;AACjC,QAAID,MAAQ,eAAeA,MAAQ,cAAe,OAAM,IAAI,UAAU,wFAAwF;AAC9J,WAAAD,EAAIC,CAAG,IAAI,KAAK,OACT,EAAE,aAAaC,EAAQ;AAAA,EAC/B;AAAA,EACA,QAAQ,SAASF,GAAKC,GAAKC,GAAU;AACpC,QAAID,MAAQ,eAAeA,MAAQ,cAAe,OAAM,IAAI,UAAU,wFAAwF;AAC9J,QAAIE,IAAUH,EAAIC,CAAG;AACrB,kBAAOD,EAAIC,CAAG,GACP;AAAA,MACN,aAAaC;AAAA,MACb,SAAAC;AAAA,IACH;AAAA,EACC;AAAA,EACA,SAAS,SAASH,GAAKC,GAAKC,GAAU;AACrC,QAAID,MAAQ,eAAeA,MAAQ,cAAe,OAAM,IAAI,UAAU,wFAAwF;AAC9J,QAAIE,IAAUH,EAAIC,CAAG;AACrB,WAAAD,EAAIC,CAAG,IAAI,KAAK,OACT;AAAA,MACN,aAAaC;AAAA,MACb,SAAAC;AAAA,IACH;AAAA,EACC;AAAA,EACA,MAAM,SAASH,GAAKC,GAAKC,GAAU;AAClC,QAAIC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AAA,EACZ;AACD;AACA,SAAS7C,EAAW8C,GAAGC,GAAG;AACzB,MAAID,MAAMC,EAAG,QAAO;AACpB,MAAID,KAAKC,KAAK,OAAOD,KAAK,YAAY,OAAOC,KAAK,UAAU;AAC3D,QAAIC,IAAO,MAAM,QAAQF,CAAC,GAAGG,IAAO,MAAM,QAAQF,CAAC,GAAG5B,GAAGkB,GAAQzB;AACjE,QAAIoC,KAAQC,GAAM;AAEjB,UADAZ,IAASS,EAAE,QACPT,KAAUU,EAAE,OAAQ,QAAO;AAC/B,WAAK5B,IAAIkB,GAAQlB,QAAQ,IAAI,KAAI,CAACnB,EAAW8C,EAAE3B,CAAC,GAAG4B,EAAE5B,CAAC,CAAC,EAAG,QAAO;AACjE,aAAO;AAAA,IACR;AACA,QAAI6B,KAAQC,EAAM,QAAO;AACzB,QAAIpB,IAAO,OAAO,KAAKiB,CAAC;AAExB,QADAT,IAASR,EAAK,QACVQ,MAAW,OAAO,KAAKU,CAAC,EAAE,OAAQ,QAAO;AAC7C,SAAK5B,IAAIkB,GAAQlB,QAAQ,IAAI,KAAI,CAAC4B,EAAE,eAAelB,EAAKV,CAAC,CAAC,EAAG,QAAO;AACpE,SAAKA,IAAIkB,GAAQlB,QAAQ;AAExB,UADAP,IAAMiB,EAAKV,CAAC,GACR,CAACnB,EAAW8C,EAAElC,CAAG,GAAGmC,EAAEnC,CAAG,CAAC,EAAG,QAAO;AAEzC,WAAO;AAAA,EACR;AACA,SAAOkC,MAAMA,KAAKC,MAAMA;AACzB;","x_google_ignoreList":[0]}
@@ -1,3 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=Object.prototype.hasOwnProperty;function c(e,r){return f.call(e,r)}function u(e){if(Array.isArray(e)){const t=new Array(e.length);for(let n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);let r=[];for(let t in e)c(e,t)&&r.push(t);return r}function a(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function l(e){let r=0;const t=e.length;let n;for(;r<t;){if(n=e.charCodeAt(r),n>=48&&n<=57){r++;continue}return!1}return!0}function h(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function o(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(o(e[t]))return!0}else if(typeof e=="object"){const t=u(e),n=t.length;for(var r=0;r<n;r++)if(o(e[t[r]]))return!0}}return!1}function i(e,r){const t=[e];for(const n in r){const s=typeof r[n]=="object"?JSON.stringify(r[n],null,2):r[n];typeof s<"u"&&t.push(`${n}: ${s}`)}return t.join(`
2
- `)}var y=class extends Error{constructor(e,r,t,n,s){super(i(e,{name:r,index:t,operation:n,tree:s})),this.name=r,this.index=t,this.operation=n,this.tree=s,Object.setPrototypeOf(this,new.target.prototype),this.message=i(e,{name:r,index:t,operation:n,tree:s})}};exports.PatchError=y;exports._deepClone=a;exports._objectKeys=u;exports.hasOwnProperty=c;exports.hasUndefined=o;exports.isInteger=l;exports.unescapePathComponent=h;
3
- //# sourceMappingURL=helpers.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@langchain+core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.js"],"sourcesContent":["//#region src/utils/fast-json-patch/src/helpers.ts\n/*!\n* https://github.com/Starcounter-Jack/JSON-Patch\n* (c) 2017-2022 Joachim Wester\n* MIT licensed\n*/\nconst _hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwnProperty(obj, key) {\n\treturn _hasOwnProperty.call(obj, key);\n}\nfunction _objectKeys(obj) {\n\tif (Array.isArray(obj)) {\n\t\tconst keys = new Array(obj.length);\n\t\tfor (let k = 0; k < keys.length; k++) keys[k] = \"\" + k;\n\t\treturn keys;\n\t}\n\tif (Object.keys) return Object.keys(obj);\n\tlet keys = [];\n\tfor (let i in obj) if (hasOwnProperty(obj, i)) keys.push(i);\n\treturn keys;\n}\n/**\n* Deeply clone the object.\n* https://jsperf.com/deep-copy-vs-json-stringify-json-parse/25 (recursiveDeepCopy)\n* @param {any} obj value to clone\n* @return {any} cloned obj\n*/\nfunction _deepClone(obj) {\n\tswitch (typeof obj) {\n\t\tcase \"object\": return JSON.parse(JSON.stringify(obj));\n\t\tcase \"undefined\": return null;\n\t\tdefault: return obj;\n\t}\n}\nfunction isInteger(str) {\n\tlet i = 0;\n\tconst len = str.length;\n\tlet charCode;\n\twhile (i < len) {\n\t\tcharCode = str.charCodeAt(i);\n\t\tif (charCode >= 48 && charCode <= 57) {\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\treturn false;\n\t}\n\treturn true;\n}\n/**\n* Escapes a json pointer path\n* @param path The raw pointer\n* @return the Escaped path\n*/\nfunction escapePathComponent(path) {\n\tif (path.indexOf(\"/\") === -1 && path.indexOf(\"~\") === -1) return path;\n\treturn path.replace(/~/g, \"~0\").replace(/\\//g, \"~1\");\n}\n/**\n* Unescapes a json pointer path\n* @param path The escaped pointer\n* @return The unescaped path\n*/\nfunction unescapePathComponent(path) {\n\treturn path.replace(/~1/g, \"/\").replace(/~0/g, \"~\");\n}\n/**\n* Recursively checks whether an object has any undefined values inside.\n*/\nfunction hasUndefined(obj) {\n\tif (obj === void 0) return true;\n\tif (obj) {\n\t\tif (Array.isArray(obj)) {\n\t\t\tfor (let i = 0, len = obj.length; i < len; i++) if (hasUndefined(obj[i])) return true;\n\t\t} else if (typeof obj === \"object\") {\n\t\t\tconst objKeys = _objectKeys(obj);\n\t\t\tconst objKeysLength = objKeys.length;\n\t\t\tfor (var i = 0; i < objKeysLength; i++) if (hasUndefined(obj[objKeys[i]])) return true;\n\t\t}\n\t}\n\treturn false;\n}\nfunction patchErrorMessageFormatter(message, args) {\n\tconst messageParts = [message];\n\tfor (const key in args) {\n\t\tconst value = typeof args[key] === \"object\" ? JSON.stringify(args[key], null, 2) : args[key];\n\t\tif (typeof value !== \"undefined\") messageParts.push(`${key}: ${value}`);\n\t}\n\treturn messageParts.join(\"\\n\");\n}\nvar PatchError = class extends Error {\n\tconstructor(message, name, index, operation, tree) {\n\t\tsuper(patchErrorMessageFormatter(message, {\n\t\t\tname,\n\t\t\tindex,\n\t\t\toperation,\n\t\t\ttree\n\t\t}));\n\t\tthis.name = name;\n\t\tthis.index = index;\n\t\tthis.operation = operation;\n\t\tthis.tree = tree;\n\t\tObject.setPrototypeOf(this, new.target.prototype);\n\t\tthis.message = patchErrorMessageFormatter(message, {\n\t\t\tname,\n\t\t\tindex,\n\t\t\toperation,\n\t\t\ttree\n\t\t});\n\t}\n};\n//#endregion\nexport { PatchError, _deepClone, _objectKeys, escapePathComponent, hasOwnProperty, hasUndefined, isInteger, unescapePathComponent };\n\n//# sourceMappingURL=helpers.js.map"],"names":["_hasOwnProperty","hasOwnProperty","obj","key","_objectKeys","keys","k","i","_deepClone","isInteger","str","len","charCode","unescapePathComponent","path","hasUndefined","objKeys","objKeysLength","patchErrorMessageFormatter","message","args","messageParts","value","PatchError","name","index","operation","tree"],"mappings":"gFAMA,MAAMA,EAAkB,OAAO,UAAU,eACzC,SAASC,EAAeC,EAAKC,EAAK,CACjC,OAAOH,EAAgB,KAAKE,EAAKC,CAAG,CACrC,CACA,SAASC,EAAYF,EAAK,CACzB,GAAI,MAAM,QAAQA,CAAG,EAAG,CACvB,MAAMG,EAAO,IAAI,MAAMH,EAAI,MAAM,EACjC,QAASI,EAAI,EAAGA,EAAID,EAAK,OAAQC,IAAKD,EAAKC,CAAC,EAAI,GAAKA,EACrD,OAAOD,CACR,CACA,GAAI,OAAO,KAAM,OAAO,OAAO,KAAKH,CAAG,EACvC,IAAIG,EAAO,CAAA,EACX,QAASE,KAAKL,EAASD,EAAeC,EAAKK,CAAC,GAAGF,EAAK,KAAKE,CAAC,EAC1D,OAAOF,CACR,CAOA,SAASG,EAAWN,EAAK,CACxB,OAAQ,OAAOA,EAAG,CACj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pC,YAAYJ,EAASK,EAAMC,EAAOC,EAAWC,EAAM,CAClD,MAAMT,EAA2BC,EAAS,CACzC,KAAAK,EACA,MAAAC,EACA,UAAAC,EACA,KAAAC,CACH,CAAG,CAAC,EACF,KAAK,KAAOH,EACZ,KAAK,MAAQC,EACb,KAAK,UAAYC,EACjB,KAAK,KAAOC,EACZ,OAAO,eAAe,KAAM,WAAW,SAAS,EAChD,KAAK,QAAUT,EAA2BC,EAAS,CAClD,KAAAK,EACA,MAAAC,EACA,UAAAC,EACA,KAAAC,CACH,CAAG,CACF,CACD","x_google_ignoreList":[0]}
@@ -1,87 +0,0 @@
1
- const c = Object.prototype.hasOwnProperty;
2
- function u(e, r) {
3
- return c.call(e, r);
4
- }
5
- function f(e) {
6
- if (Array.isArray(e)) {
7
- const t = new Array(e.length);
8
- for (let n = 0; n < t.length; n++) t[n] = "" + n;
9
- return t;
10
- }
11
- if (Object.keys) return Object.keys(e);
12
- let r = [];
13
- for (let t in e) u(e, t) && r.push(t);
14
- return r;
15
- }
16
- function l(e) {
17
- switch (typeof e) {
18
- case "object":
19
- return JSON.parse(JSON.stringify(e));
20
- case "undefined":
21
- return null;
22
- default:
23
- return e;
24
- }
25
- }
26
- function a(e) {
27
- let r = 0;
28
- const t = e.length;
29
- let n;
30
- for (; r < t; ) {
31
- if (n = e.charCodeAt(r), n >= 48 && n <= 57) {
32
- r++;
33
- continue;
34
- }
35
- return !1;
36
- }
37
- return !0;
38
- }
39
- function h(e) {
40
- return e.replace(/~1/g, "/").replace(/~0/g, "~");
41
- }
42
- function i(e) {
43
- if (e === void 0) return !0;
44
- if (e) {
45
- if (Array.isArray(e)) {
46
- for (let t = 0, n = e.length; t < n; t++) if (i(e[t])) return !0;
47
- } else if (typeof e == "object") {
48
- const t = f(e), n = t.length;
49
- for (var r = 0; r < n; r++) if (i(e[t[r]])) return !0;
50
- }
51
- }
52
- return !1;
53
- }
54
- function o(e, r) {
55
- const t = [e];
56
- for (const n in r) {
57
- const s = typeof r[n] == "object" ? JSON.stringify(r[n], null, 2) : r[n];
58
- typeof s < "u" && t.push(`${n}: ${s}`);
59
- }
60
- return t.join(`
61
- `);
62
- }
63
- var y = class extends Error {
64
- constructor(e, r, t, n, s) {
65
- super(o(e, {
66
- name: r,
67
- index: t,
68
- operation: n,
69
- tree: s
70
- })), this.name = r, this.index = t, this.operation = n, this.tree = s, Object.setPrototypeOf(this, new.target.prototype), this.message = o(e, {
71
- name: r,
72
- index: t,
73
- operation: n,
74
- tree: s
75
- });
76
- }
77
- };
78
- export {
79
- y as PatchError,
80
- l as _deepClone,
81
- f as _objectKeys,
82
- u as hasOwnProperty,
83
- i as hasUndefined,
84
- a as isInteger,
85
- h as unescapePathComponent
86
- };
87
- //# sourceMappingURL=helpers.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.es.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@langchain+core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.js"],"sourcesContent":["//#region src/utils/fast-json-patch/src/helpers.ts\n/*!\n* https://github.com/Starcounter-Jack/JSON-Patch\n* (c) 2017-2022 Joachim Wester\n* MIT licensed\n*/\nconst _hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwnProperty(obj, key) {\n\treturn _hasOwnProperty.call(obj, key);\n}\nfunction _objectKeys(obj) {\n\tif (Array.isArray(obj)) {\n\t\tconst keys = new Array(obj.length);\n\t\tfor (let k = 0; k < keys.length; k++) keys[k] = \"\" + k;\n\t\treturn keys;\n\t}\n\tif (Object.keys) return Object.keys(obj);\n\tlet keys = [];\n\tfor (let i in obj) if (hasOwnProperty(obj, i)) keys.push(i);\n\treturn keys;\n}\n/**\n* Deeply clone the object.\n* https://jsperf.com/deep-copy-vs-json-stringify-json-parse/25 (recursiveDeepCopy)\n* @param {any} obj value to clone\n* @return {any} cloned obj\n*/\nfunction _deepClone(obj) {\n\tswitch (typeof obj) {\n\t\tcase \"object\": return JSON.parse(JSON.stringify(obj));\n\t\tcase \"undefined\": return null;\n\t\tdefault: return obj;\n\t}\n}\nfunction isInteger(str) {\n\tlet i = 0;\n\tconst len = str.length;\n\tlet charCode;\n\twhile (i < len) {\n\t\tcharCode = str.charCodeAt(i);\n\t\tif (charCode >= 48 && charCode <= 57) {\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\treturn false;\n\t}\n\treturn true;\n}\n/**\n* Escapes a json pointer path\n* @param path The raw pointer\n* @return the Escaped path\n*/\nfunction escapePathComponent(path) {\n\tif (path.indexOf(\"/\") === -1 && path.indexOf(\"~\") === -1) return path;\n\treturn path.replace(/~/g, \"~0\").replace(/\\//g, \"~1\");\n}\n/**\n* Unescapes a json pointer path\n* @param path The escaped pointer\n* @return The unescaped path\n*/\nfunction unescapePathComponent(path) {\n\treturn path.replace(/~1/g, \"/\").replace(/~0/g, \"~\");\n}\n/**\n* Recursively checks whether an object has any undefined values inside.\n*/\nfunction hasUndefined(obj) {\n\tif (obj === void 0) return true;\n\tif (obj) {\n\t\tif (Array.isArray(obj)) {\n\t\t\tfor (let i = 0, len = obj.length; i < len; i++) if (hasUndefined(obj[i])) return true;\n\t\t} else if (typeof obj === \"object\") {\n\t\t\tconst objKeys = _objectKeys(obj);\n\t\t\tconst objKeysLength = objKeys.length;\n\t\t\tfor (var i = 0; i < objKeysLength; i++) if (hasUndefined(obj[objKeys[i]])) return true;\n\t\t}\n\t}\n\treturn false;\n}\nfunction patchErrorMessageFormatter(message, args) {\n\tconst messageParts = [message];\n\tfor (const key in args) {\n\t\tconst value = typeof args[key] === \"object\" ? JSON.stringify(args[key], null, 2) : args[key];\n\t\tif (typeof value !== \"undefined\") messageParts.push(`${key}: ${value}`);\n\t}\n\treturn messageParts.join(\"\\n\");\n}\nvar PatchError = class extends Error {\n\tconstructor(message, name, index, operation, tree) {\n\t\tsuper(patchErrorMessageFormatter(message, {\n\t\t\tname,\n\t\t\tindex,\n\t\t\toperation,\n\t\t\ttree\n\t\t}));\n\t\tthis.name = name;\n\t\tthis.index = index;\n\t\tthis.operation = operation;\n\t\tthis.tree = tree;\n\t\tObject.setPrototypeOf(this, new.target.prototype);\n\t\tthis.message = patchErrorMessageFormatter(message, {\n\t\t\tname,\n\t\t\tindex,\n\t\t\toperation,\n\t\t\ttree\n\t\t});\n\t}\n};\n//#endregion\nexport { PatchError, _deepClone, _objectKeys, escapePathComponent, hasOwnProperty, hasUndefined, isInteger, unescapePathComponent };\n\n//# sourceMappingURL=helpers.js.map"],"names":["_hasOwnProperty","hasOwnProperty","obj","key","_objectKeys","keys","k","i","_deepClone","isInteger","str","len","charCode","unescapePathComponent","path","hasUndefined","objKeys","objKeysLength","patchErrorMessageFormatter","message","args","messageParts","value","PatchError","name","index","operation","tree"],"mappings":"AAMA,MAAMA,IAAkB,OAAO,UAAU;AACzC,SAASC,EAAeC,GAAKC,GAAK;AACjC,SAAOH,EAAgB,KAAKE,GAAKC,CAAG;AACrC;AACA,SAASC,EAAYF,GAAK;AACzB,MAAI,MAAM,QAAQA,CAAG,GAAG;AACvB,UAAMG,IAAO,IAAI,MAAMH,EAAI,MAAM;AACjC,aAASI,IAAI,GAAGA,IAAID,EAAK,QAAQC,IAAK,CAAAD,EAAKC,CAAC,IAAI,KAAKA;AACrD,WAAOD;AAAA,EACR;AACA,MAAI,OAAO,KAAM,QAAO,OAAO,KAAKH,CAAG;AACvC,MAAIG,IAAO,CAAA;AACX,WAASE,KAAKL,EAAK,CAAID,EAAeC,GAAKK,CAAC,KAAGF,EAAK,KAAKE,CAAC;AAC1D,SAAOF;AACR;AAOA,SAASG,EAAWN,GAAK;AACxB,UAAQ,OAAOA,GAAG;AAAA,IACjB,KAAK;AAAU,aAAO,KAAK,MAAM,KAAK,UAAUA,CAAG,CAAC;AAAA,IACpD,KAAK;AAAa,aAAO;AAAA,IACzB;AAAS,aAAOA;AAAA,EAClB;AACA;AACA,SAASO,EAAUC,GAAK;AACvB,MAAIH,IAAI;AACR,QAAMI,IAA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,MACA,WAAAC;AAAA,MACA,MAAAC;AAAA,IACH,CAAG,CAAC,GACF,KAAK,OAAOH,GACZ,KAAK,QAAQC,GACb,KAAK,YAAYC,GACjB,KAAK,OAAOC,GACZ,OAAO,eAAe,MAAM,WAAW,SAAS,GAChD,KAAK,UAAUT,EAA2BC,GAAS;AAAA,MAClD,MAAAK;AAAA,MACA,OAAAC;AAAA,MACA,WAAAC;AAAA,MACA,MAAAC;AAAA,IACH,CAAG;AAAA,EACF;AACD;","x_google_ignoreList":[0]}
@@ -1,3 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function g(l){try{return JSON.parse(l)}catch{}const t=l.trim();if(t.length===0)throw new Error("Unexpected end of JSON input");let e=0;function o(){for(;e<t.length&&/\s/.test(t[e]);)e+=1}function u(){if(t[e]!=='"')throw new Error(`Expected '"' at position ${e}, got '${t[e]}'`);e+=1;let r="",n=!1;for(;e<t.length;){const i=t[e];if(n){if(i==="n")r+=`
2
- `;else if(i==="t")r+=" ";else if(i==="r")r+="\r";else if(i==="\\")r+="\\";else if(i==='"')r+='"';else if(i==="b")r+="\b";else if(i==="f")r+="\f";else if(i==="/")r+="/";else if(i==="u"){const s=t.substring(e+1,e+5);if(/^[0-9A-Fa-f]{0,4}$/.test(s))s.length===4?r+=String.fromCharCode(Number.parseInt(s,16)):r+=`u${s}`,e+=s.length;else throw new Error(`Invalid unicode escape sequence '\\u${s}' at position ${e}`)}else throw new Error(`Invalid escape sequence '\\${i}' at position ${e}`);n=!1}else if(i==="\\")n=!0;else{if(i==='"')return e+=1,r;r+=i}e+=1}return n&&(r+="\\"),r}function a(){const r=e;let n="";if(t[e]==="-"&&(n+="-",e+=1),e<t.length&&t[e]==="0"&&(n+="0",e+=1,t[e]>="0"&&t[e]<="9"))throw new Error(`Invalid number at position ${r}`);if(e<t.length&&t[e]>="1"&&t[e]<="9")for(;e<t.length&&t[e]>="0"&&t[e]<="9";)n+=t[e],e+=1;if(e<t.length&&t[e]===".")for(n+=".",e+=1;e<t.length&&t[e]>="0"&&t[e]<="9";)n+=t[e],e+=1;if(e<t.length&&(t[e]==="e"||t[e]==="E"))for(n+=t[e],e+=1,e<t.length&&(t[e]==="+"||t[e]==="-")&&(n+=t[e],e+=1);e<t.length&&t[e]>="0"&&t[e]<="9";)n+=t[e],e+=1;if(n==="-")return-0;const i=Number.parseFloat(n);if(Number.isNaN(i))throw e=r,new Error(`Invalid number '${n}' at position ${r}`);return i}function f(){if(o(),e>=t.length)throw new Error(`Unexpected end of input at position ${e}`);const r=t[e];if(r==="{")return c();if(r==="[")return h();if(r==='"')return u();if("null".startsWith(t.substring(e,e+4)))return e+=Math.min(4,t.length-e),null;if("true".startsWith(t.substring(e,e+4)))return e+=Math.min(4,t.length-e),!0;if("false".startsWith(t.substring(e,e+5)))return e+=Math.min(5,t.length-e),!1;if(r==="-"||r>="0"&&r<="9")return a();throw new Error(`Unexpected character '${r}' at position ${e}`)}function h(){if(t[e]!=="[")throw new Error(`Expected '[' at position ${e}, got '${t[e]}'`);const r=[];if(e+=1,o(),e>=t.length)return r;if(t[e]==="]")return e+=1,r;for(;e<t.length;){if(o(),e>=t.length||(r.push(f()),o(),e>=t.length))return r;if(t[e]==="]")return e+=1,r;if(t[e]===","){e+=1;continue}throw new Error(`Expected ',' or ']' at position ${e}, got '${t[e]}'`)}return r}function c(){if(t[e]!=="{")throw new Error(`Expected '{' at position ${e}, got '${t[e]}'`);const r={};if(e+=1,o(),e>=t.length)return r;if(t[e]==="}")return e+=1,r;for(;e<t.length;){if(o(),e>=t.length)return r;const n=u();if(o(),e>=t.length)return r;if(t[e]!==":")throw new Error(`Expected ':' at position ${e}, got '${t[e]}'`);if(e+=1,o(),e>=t.length||(r[n]=f(),o(),e>=t.length))return r;if(t[e]==="}")return e+=1,r;if(t[e]===","){e+=1;continue}throw new Error(`Expected ',' or '}' at position ${e}, got '${t[e]}'`)}return r}const p=f();if(o(),e<t.length)throw new Error(`Unexpected character '${t[e]}' at position ${e}`);return p}function w(l){try{return typeof l>"u"?null:g(l)}catch{return null}}exports.parsePartialJson=w;
3
- //# sourceMappingURL=json.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json.cjs.js","sources":["../../../../../../../../../node_modules/.pnpm/@langchain+core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.js"],"sourcesContent":["//#region src/utils/json.ts\nfunction parseJsonMarkdown(s, parser = parsePartialJson) {\n\ts = s.trim();\n\tconst firstFenceIndex = s.indexOf(\"```\");\n\tif (firstFenceIndex === -1) return parser(s);\n\tlet contentAfterFence = s.substring(firstFenceIndex + 3);\n\tif (contentAfterFence.startsWith(\"json\\n\")) contentAfterFence = contentAfterFence.substring(5);\n\telse if (contentAfterFence.startsWith(\"json\")) contentAfterFence = contentAfterFence.substring(4);\n\telse if (contentAfterFence.startsWith(\"\\n\")) contentAfterFence = contentAfterFence.substring(1);\n\tconst closingFenceIndex = contentAfterFence.indexOf(\"```\");\n\tlet finalContent = contentAfterFence;\n\tif (closingFenceIndex !== -1) finalContent = contentAfterFence.substring(0, closingFenceIndex);\n\treturn parser(finalContent.trim());\n}\n/**\n* Recursive descent partial JSON parser.\n* @param s - The string to parse.\n* @returns The parsed value.\n* @throws Error if the input is a malformed JSON string.\n*/\nfunction strictParsePartialJson(s) {\n\ttry {\n\t\treturn JSON.parse(s);\n\t} catch {}\n\tconst buffer = s.trim();\n\tif (buffer.length === 0) throw new Error(\"Unexpected end of JSON input\");\n\tlet pos = 0;\n\tfunction skipWhitespace() {\n\t\twhile (pos < buffer.length && /\\s/.test(buffer[pos])) pos += 1;\n\t}\n\tfunction parseString() {\n\t\tif (buffer[pos] !== \"\\\"\") throw new Error(`Expected '\"' at position ${pos}, got '${buffer[pos]}'`);\n\t\tpos += 1;\n\t\tlet result = \"\";\n\t\tlet escaped = false;\n\t\twhile (pos < buffer.length) {\n\t\t\tconst char = buffer[pos];\n\t\t\tif (escaped) {\n\t\t\t\tif (char === \"n\") result += \"\\n\";\n\t\t\t\telse if (char === \"t\") result += \"\t\";\n\t\t\t\telse if (char === \"r\") result += \"\\r\";\n\t\t\t\telse if (char === \"\\\\\") result += \"\\\\\";\n\t\t\t\telse if (char === \"\\\"\") result += \"\\\"\";\n\t\t\t\telse if (char === \"b\") result += \"\\b\";\n\t\t\t\telse if (char === \"f\") result += \"\\f\";\n\t\t\t\telse if (char === \"/\") result += \"/\";\n\t\t\t\telse if (char === \"u\") {\n\t\t\t\t\tconst hex = buffer.substring(pos + 1, pos + 5);\n\t\t\t\t\tif (/^[0-9A-Fa-f]{0,4}$/.test(hex)) {\n\t\t\t\t\t\tif (hex.length === 4) result += String.fromCharCode(Number.parseInt(hex, 16));\n\t\t\t\t\t\telse result += `u${hex}`;\n\t\t\t\t\t\tpos += hex.length;\n\t\t\t\t\t} else throw new Error(`Invalid unicode escape sequence '\\\\u${hex}' at position ${pos}`);\n\t\t\t\t} else throw new Error(`Invalid escape sequence '\\\\${char}' at position ${pos}`);\n\t\t\t\tescaped = false;\n\t\t\t} else if (char === \"\\\\\") escaped = true;\n\t\t\telse if (char === \"\\\"\") {\n\t\t\t\tpos += 1;\n\t\t\t\treturn result;\n\t\t\t} else result += char;\n\t\t\tpos += 1;\n\t\t}\n\t\tif (escaped) result += \"\\\\\";\n\t\treturn result;\n\t}\n\tfunction parseNumber() {\n\t\tconst start = pos;\n\t\tlet numStr = \"\";\n\t\tif (buffer[pos] === \"-\") {\n\t\t\tnumStr += \"-\";\n\t\t\tpos += 1;\n\t\t}\n\t\tif (pos < buffer.length && buffer[pos] === \"0\") {\n\t\t\tnumStr += \"0\";\n\t\t\tpos += 1;\n\t\t\tif (buffer[pos] >= \"0\" && buffer[pos] <= \"9\") throw new Error(`Invalid number at position ${start}`);\n\t\t}\n\t\tif (pos < buffer.length && buffer[pos] >= \"1\" && buffer[pos] <= \"9\") while (pos < buffer.length && buffer[pos] >= \"0\" && buffer[pos] <= \"9\") {\n\t\t\tnumStr += buffer[pos];\n\t\t\tpos += 1;\n\t\t}\n\t\tif (pos < buffer.length && buffer[pos] === \".\") {\n\t\t\tnumStr += \".\";\n\t\t\tpos += 1;\n\t\t\twhile (pos < buffer.length && buffer[pos] >= \"0\" && buffer[pos] <= \"9\") {\n\t\t\t\tnumStr += buffer[pos];\n\t\t\t\tpos += 1;\n\t\t\t}\n\t\t}\n\t\tif (pos < buffer.length && (buffer[pos] === \"e\" || buffer[pos] === \"E\")) {\n\t\t\tnumStr += buffer[pos];\n\t\t\tpos += 1;\n\t\t\tif (pos < buffer.length && (buffer[pos] === \"+\" || buffer[pos] === \"-\")) {\n\t\t\t\tnumStr += buffer[pos];\n\t\t\t\tpos += 1;\n\t\t\t}\n\t\t\twhile (pos < buffer.length && buffer[pos] >= \"0\" && buffer[pos] <= \"9\") {\n\t\t\t\tnumStr += buffer[pos];\n\t\t\t\tpos += 1;\n\t\t\t}\n\t\t}\n\t\tif (numStr === \"-\") return -0;\n\t\tconst num = Number.parseFloat(numStr);\n\t\tif (Number.isNaN(num)) {\n\t\t\tpos = start;\n\t\t\tthrow new Error(`Invalid number '${numStr}' at position ${start}`);\n\t\t}\n\t\treturn num;\n\t}\n\tfunction parseValue() {\n\t\tskipWhitespace();\n\t\tif (pos >= buffer.length) throw new Error(`Unexpected end of input at position ${pos}`);\n\t\tconst char = buffer[pos];\n\t\tif (char === \"{\") return parseObject();\n\t\tif (char === \"[\") return parseArray();\n\t\tif (char === \"\\\"\") return parseString();\n\t\tif (\"null\".startsWith(buffer.substring(pos, pos + 4))) {\n\t\t\tpos += Math.min(4, buffer.length - pos);\n\t\t\treturn null;\n\t\t}\n\t\tif (\"true\".startsWith(buffer.substring(pos, pos + 4))) {\n\t\t\tpos += Math.min(4, buffer.length - pos);\n\t\t\treturn true;\n\t\t}\n\t\tif (\"false\".startsWith(buffer.substring(pos, pos + 5))) {\n\t\t\tpos += Math.min(5, buffer.length - pos);\n\t\t\treturn false;\n\t\t}\n\t\tif (char === \"-\" || char >= \"0\" && char <= \"9\") return parseNumber();\n\t\tthrow new Error(`Unexpected character '${char}' at position ${pos}`);\n\t}\n\tfunction parseArray() {\n\t\tif (buffer[pos] !== \"[\") throw new Error(`Expected '[' at position ${pos}, got '${buffer[pos]}'`);\n\t\tconst arr = [];\n\t\tpos += 1;\n\t\tskipWhitespace();\n\t\tif (pos >= buffer.length) return arr;\n\t\tif (buffer[pos] === \"]\") {\n\t\t\tpos += 1;\n\t\t\treturn arr;\n\t\t}\n\t\twhile (pos < buffer.length) {\n\t\t\tskipWhitespace();\n\t\t\tif (pos >= buffer.length) return arr;\n\t\t\tarr.push(parseValue());\n\t\t\tskipWhitespace();\n\t\t\tif (pos >= buffer.length) return arr;\n\t\t\tif (buffer[pos] === \"]\") {\n\t\t\t\tpos += 1;\n\t\t\t\treturn arr;\n\t\t\t} else if (buffer[pos] === \",\") {\n\t\t\t\tpos += 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tthrow new Error(`Expected ',' or ']' at position ${pos}, got '${buffer[pos]}'`);\n\t\t}\n\t\treturn arr;\n\t}\n\tfunction parseObject() {\n\t\tif (buffer[pos] !== \"{\") throw new Error(`Expected '{' at position ${pos}, got '${buffer[pos]}'`);\n\t\tconst obj = {};\n\t\tpos += 1;\n\t\tskipWhitespace();\n\t\tif (pos >= buffer.length) return obj;\n\t\tif (buffer[pos] === \"}\") {\n\t\t\tpos += 1;\n\t\t\treturn obj;\n\t\t}\n\t\twhile (pos < buffer.length) {\n\t\t\tskipWhitespace();\n\t\t\tif (pos >= buffer.length) return obj;\n\t\t\tconst key = parseString();\n\t\t\tskipWhitespace();\n\t\t\tif (pos >= buffer.length) return obj;\n\t\t\tif (buffer[pos] !== \":\") throw new Error(`Expected ':' at position ${pos}, got '${buffer[pos]}'`);\n\t\t\tpos += 1;\n\t\t\tskipWhitespace();\n\t\t\tif (pos >= buffer.length) return obj;\n\t\t\tobj[key] = parseValue();\n\t\t\tskipWhitespace();\n\t\t\tif (pos >= buffer.length) return obj;\n\t\t\tif (buffer[pos] === \"}\") {\n\t\t\t\tpos += 1;\n\t\t\t\treturn obj;\n\t\t\t} else if (buffer[pos] === \",\") {\n\t\t\t\tpos += 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tthrow new Error(`Expected ',' or '}' at position ${pos}, got '${buffer[pos]}'`);\n\t\t}\n\t\treturn obj;\n\t}\n\tconst value = parseValue();\n\tskipWhitespace();\n\tif (pos < buffer.length) throw new Error(`Unexpected character '${buffer[pos]}' at position ${pos}`);\n\treturn value;\n}\nfunction parsePartialJson(s) {\n\ttry {\n\t\tif (typeof s === \"undefined\") return null;\n\t\treturn strictParsePartialJson(s);\n\t} catch {\n\t\treturn null;\n\t}\n}\n//#endregion\nexport { parseJsonMarkdown, parsePartialJson };\n\n//# sourceMappingURL=json.js.map"],"names":["strictParsePartialJson","s","buffer","pos","skipWhitespace","parseString","result","escaped","char","hex","parseNumber","start","numStr","num","parseValue","parseObject","parseArray","arr","obj","key","value","parsePartialJson"],"mappings":"gFAoBA,SAASA,EAAuBC,EAAG,CAClC,GAAI,CACH,OAAO,KAAK,MAAMA,CAAC,CACpB,MAAQ,CAAC,CACT,MAAMC,EAASD,EAAE,KAAI,EACrB,GAAIC,EAAO,SAAW,EAAG,MAAM,IAAI,MAAM,8BAA8B,EACvE,IAAIC,EAAM,EACV,SAASC,GAAiB,CACzB,KAAOD,EAAMD,EAAO,QAAU,KAAK,KAAKA,EAAOC,CAAG,CAAC,GAAGA,GAAO,CAC9D,CACA,SAASE,GAAc,CACtB,GAAIH,EAAOC,CAAG,IAAM,IAAM,MAAM,IAAI,MAAM,4BAA4BA,CAAG,UAAUD,EAAOC,CAAG,CAAC,GAAG,EACjGA,GAAO,EACP,IAAIG,EAAS,GACTC,EAAU,GACd,KAAOJ,EAAMD,EAAO,QAAQ,CAC3B,MAAMM,EAAON,EAAOC,CAAG,EACvB,GAAII,EAAS,CACZ,GAAIC,IAAS,IAAKF,GAAU;AAAA,UACnBE,IAAS,IAA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AW,EAEvB,GADAD,EAAc,EACVD,GAAOD,EAAO,OAAQ,OAAOgB,EACjC,GAAIhB,EAAOC,CAAG,IAAM,IAAK,MAAM,IAAI,MAAM,4BAA4BA,CAAG,UAAUD,EAAOC,CAAG,CAAC,GAAG,EAMhG,GALAA,GAAO,EACPC,EAAc,EACVD,GAAOD,EAAO,SAClBgB,EAAIC,CAAG,EAAIL,EAAU,EACrBV,EAAc,EACVD,GAAOD,EAAO,QAAQ,OAAOgB,EACjC,GAAIhB,EAAOC,CAAG,IAAM,IACnB,OAAAA,GAAO,EACAe,EACD,GAAIhB,EAAOC,CAAG,IAAM,IAAK,CAC/BA,GAAO,EACP,QACD,CACA,MAAM,IAAI,MAAM,mCAAmCA,CAAG,UAAUD,EAAOC,CAAG,CAAC,GAAG,CAC/E,CACA,OAAOe,CACR,CACA,MAAME,EAAQN,EAAU,EAExB,GADAV,EAAc,EACVD,EAAMD,EAAO,OAAQ,MAAM,IAAI,MAAM,yBAAyBA,EAAOC,CAAG,CAAC,iBAAiBA,CAAG,EAAE,EACnG,OAAOiB,CACR,CACA,SAASC,EAAiBpB,EAAG,CAC5B,GAAI,CACH,OAAI,OAAOA,EAAM,IAAoB,KAC9BD,EAAuBC,CAAC,CAChC,MAAQ,CACP,OAAO,IACR,CACD","x_google_ignoreList":[0]}
@@ -1,133 +0,0 @@
1
- function g(l) {
2
- try {
3
- return JSON.parse(l);
4
- } catch {
5
- }
6
- const t = l.trim();
7
- if (t.length === 0) throw new Error("Unexpected end of JSON input");
8
- let e = 0;
9
- function o() {
10
- for (; e < t.length && /\s/.test(t[e]); ) e += 1;
11
- }
12
- function u() {
13
- if (t[e] !== '"') throw new Error(`Expected '"' at position ${e}, got '${t[e]}'`);
14
- e += 1;
15
- let r = "", n = !1;
16
- for (; e < t.length; ) {
17
- const i = t[e];
18
- if (n) {
19
- if (i === "n") r += `
20
- `;
21
- else if (i === "t") r += " ";
22
- else if (i === "r") r += "\r";
23
- else if (i === "\\") r += "\\";
24
- else if (i === '"') r += '"';
25
- else if (i === "b") r += "\b";
26
- else if (i === "f") r += "\f";
27
- else if (i === "/") r += "/";
28
- else if (i === "u") {
29
- const s = t.substring(e + 1, e + 5);
30
- if (/^[0-9A-Fa-f]{0,4}$/.test(s))
31
- s.length === 4 ? r += String.fromCharCode(Number.parseInt(s, 16)) : r += `u${s}`, e += s.length;
32
- else throw new Error(`Invalid unicode escape sequence '\\u${s}' at position ${e}`);
33
- } else throw new Error(`Invalid escape sequence '\\${i}' at position ${e}`);
34
- n = !1;
35
- } else if (i === "\\") n = !0;
36
- else {
37
- if (i === '"')
38
- return e += 1, r;
39
- r += i;
40
- }
41
- e += 1;
42
- }
43
- return n && (r += "\\"), r;
44
- }
45
- function h() {
46
- const r = e;
47
- let n = "";
48
- if (t[e] === "-" && (n += "-", e += 1), e < t.length && t[e] === "0" && (n += "0", e += 1, t[e] >= "0" && t[e] <= "9"))
49
- throw new Error(`Invalid number at position ${r}`);
50
- if (e < t.length && t[e] >= "1" && t[e] <= "9") for (; e < t.length && t[e] >= "0" && t[e] <= "9"; )
51
- n += t[e], e += 1;
52
- if (e < t.length && t[e] === ".")
53
- for (n += ".", e += 1; e < t.length && t[e] >= "0" && t[e] <= "9"; )
54
- n += t[e], e += 1;
55
- if (e < t.length && (t[e] === "e" || t[e] === "E"))
56
- for (n += t[e], e += 1, e < t.length && (t[e] === "+" || t[e] === "-") && (n += t[e], e += 1); e < t.length && t[e] >= "0" && t[e] <= "9"; )
57
- n += t[e], e += 1;
58
- if (n === "-") return -0;
59
- const i = Number.parseFloat(n);
60
- if (Number.isNaN(i))
61
- throw e = r, new Error(`Invalid number '${n}' at position ${r}`);
62
- return i;
63
- }
64
- function f() {
65
- if (o(), e >= t.length) throw new Error(`Unexpected end of input at position ${e}`);
66
- const r = t[e];
67
- if (r === "{") return c();
68
- if (r === "[") return a();
69
- if (r === '"') return u();
70
- if ("null".startsWith(t.substring(e, e + 4)))
71
- return e += Math.min(4, t.length - e), null;
72
- if ("true".startsWith(t.substring(e, e + 4)))
73
- return e += Math.min(4, t.length - e), !0;
74
- if ("false".startsWith(t.substring(e, e + 5)))
75
- return e += Math.min(5, t.length - e), !1;
76
- if (r === "-" || r >= "0" && r <= "9") return h();
77
- throw new Error(`Unexpected character '${r}' at position ${e}`);
78
- }
79
- function a() {
80
- if (t[e] !== "[") throw new Error(`Expected '[' at position ${e}, got '${t[e]}'`);
81
- const r = [];
82
- if (e += 1, o(), e >= t.length) return r;
83
- if (t[e] === "]")
84
- return e += 1, r;
85
- for (; e < t.length; ) {
86
- if (o(), e >= t.length || (r.push(f()), o(), e >= t.length)) return r;
87
- if (t[e] === "]")
88
- return e += 1, r;
89
- if (t[e] === ",") {
90
- e += 1;
91
- continue;
92
- }
93
- throw new Error(`Expected ',' or ']' at position ${e}, got '${t[e]}'`);
94
- }
95
- return r;
96
- }
97
- function c() {
98
- if (t[e] !== "{") throw new Error(`Expected '{' at position ${e}, got '${t[e]}'`);
99
- const r = {};
100
- if (e += 1, o(), e >= t.length) return r;
101
- if (t[e] === "}")
102
- return e += 1, r;
103
- for (; e < t.length; ) {
104
- if (o(), e >= t.length) return r;
105
- const n = u();
106
- if (o(), e >= t.length) return r;
107
- if (t[e] !== ":") throw new Error(`Expected ':' at position ${e}, got '${t[e]}'`);
108
- if (e += 1, o(), e >= t.length || (r[n] = f(), o(), e >= t.length)) return r;
109
- if (t[e] === "}")
110
- return e += 1, r;
111
- if (t[e] === ",") {
112
- e += 1;
113
- continue;
114
- }
115
- throw new Error(`Expected ',' or '}' at position ${e}, got '${t[e]}'`);
116
- }
117
- return r;
118
- }
119
- const p = f();
120
- if (o(), e < t.length) throw new Error(`Unexpected character '${t[e]}' at position ${e}`);
121
- return p;
122
- }
123
- function w(l) {
124
- try {
125
- return typeof l > "u" ? null : g(l);
126
- } catch {
127
- return null;
128
- }
129
- }
130
- export {
131
- w as parsePartialJson
132
- };
133
- //# sourceMappingURL=json.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json.es.js","sources":["../../../../../../../../../node_modules/.pnpm/@langchain+core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.js"],"sourcesContent":["//#region src/utils/json.ts\nfunction parseJsonMarkdown(s, parser = parsePartialJson) {\n\ts = s.trim();\n\tconst firstFenceIndex = s.indexOf(\"```\");\n\tif (firstFenceIndex === -1) return parser(s);\n\tlet contentAfterFence = s.substring(firstFenceIndex + 3);\n\tif (contentAfterFence.startsWith(\"json\\n\")) contentAfterFence = contentAfterFence.substring(5);\n\telse if (contentAfterFence.startsWith(\"json\")) contentAfterFence = contentAfterFence.substring(4);\n\telse if (contentAfterFence.startsWith(\"\\n\")) contentAfterFence = contentAfterFence.substring(1);\n\tconst closingFenceIndex = contentAfterFence.indexOf(\"```\");\n\tlet finalContent = contentAfterFence;\n\tif (closingFenceIndex !== -1) finalContent = contentAfterFence.substring(0, closingFenceIndex);\n\treturn parser(finalContent.trim());\n}\n/**\n* Recursive descent partial JSON parser.\n* @param s - The string to parse.\n* @returns The parsed value.\n* @throws Error if the input is a malformed JSON string.\n*/\nfunction strictParsePartialJson(s) {\n\ttry {\n\t\treturn JSON.parse(s);\n\t} catch {}\n\tconst buffer = s.trim();\n\tif (buffer.length === 0) throw new Error(\"Unexpected end of JSON input\");\n\tlet pos = 0;\n\tfunction skipWhitespace() {\n\t\twhile (pos < buffer.length && /\\s/.test(buffer[pos])) pos += 1;\n\t}\n\tfunction parseString() {\n\t\tif (buffer[pos] !== \"\\\"\") throw new Error(`Expected '\"' at position ${pos}, got '${buffer[pos]}'`);\n\t\tpos += 1;\n\t\tlet result = \"\";\n\t\tlet escaped = false;\n\t\twhile (pos < buffer.length) {\n\t\t\tconst char = buffer[pos];\n\t\t\tif (escaped) {\n\t\t\t\tif (char === \"n\") result += \"\\n\";\n\t\t\t\telse if (char === \"t\") result += \"\t\";\n\t\t\t\telse if (char === \"r\") result += \"\\r\";\n\t\t\t\telse if (char === \"\\\\\") result += \"\\\\\";\n\t\t\t\telse if (char === \"\\\"\") result += \"\\\"\";\n\t\t\t\telse if (char === \"b\") result += \"\\b\";\n\t\t\t\telse if (char === \"f\") result += \"\\f\";\n\t\t\t\telse if (char === \"/\") result += \"/\";\n\t\t\t\telse if (char === \"u\") {\n\t\t\t\t\tconst hex = buffer.substring(pos + 1, pos + 5);\n\t\t\t\t\tif (/^[0-9A-Fa-f]{0,4}$/.test(hex)) {\n\t\t\t\t\t\tif (hex.length === 4) result += String.fromCharCode(Number.parseInt(hex, 16));\n\t\t\t\t\t\telse result += `u${hex}`;\n\t\t\t\t\t\tpos += hex.length;\n\t\t\t\t\t} else throw new Error(`Invalid unicode escape sequence '\\\\u${hex}' at position ${pos}`);\n\t\t\t\t} else throw new Error(`Invalid escape sequence '\\\\${char}' at position ${pos}`);\n\t\t\t\tescaped = false;\n\t\t\t} else if (char === \"\\\\\") escaped = true;\n\t\t\telse if (char === \"\\\"\") {\n\t\t\t\tpos += 1;\n\t\t\t\treturn result;\n\t\t\t} else result += char;\n\t\t\tpos += 1;\n\t\t}\n\t\tif (escaped) result += \"\\\\\";\n\t\treturn result;\n\t}\n\tfunction parseNumber() {\n\t\tconst start = pos;\n\t\tlet numStr = \"\";\n\t\tif (buffer[pos] === \"-\") {\n\t\t\tnumStr += \"-\";\n\t\t\tpos += 1;\n\t\t}\n\t\tif (pos < buffer.length && buffer[pos] === \"0\") {\n\t\t\tnumStr += \"0\";\n\t\t\tpos += 1;\n\t\t\tif (buffer[pos] >= \"0\" && buffer[pos] <= \"9\") throw new Error(`Invalid number at position ${start}`);\n\t\t}\n\t\tif (pos < buffer.length && buffer[pos] >= \"1\" && buffer[pos] <= \"9\") while (pos < buffer.length && buffer[pos] >= \"0\" && buffer[pos] <= \"9\") {\n\t\t\tnumStr += buffer[pos];\n\t\t\tpos += 1;\n\t\t}\n\t\tif (pos < buffer.length && buffer[pos] === \".\") {\n\t\t\tnumStr += \".\";\n\t\t\tpos += 1;\n\t\t\twhile (pos < buffer.length && buffer[pos] >= \"0\" && buffer[pos] <= \"9\") {\n\t\t\t\tnumStr += buffer[pos];\n\t\t\t\tpos += 1;\n\t\t\t}\n\t\t}\n\t\tif (pos < buffer.length && (buffer[pos] === \"e\" || buffer[pos] === \"E\")) {\n\t\t\tnumStr += buffer[pos];\n\t\t\tpos += 1;\n\t\t\tif (pos < buffer.length && (buffer[pos] === \"+\" || buffer[pos] === \"-\")) {\n\t\t\t\tnumStr += buffer[pos];\n\t\t\t\tpos += 1;\n\t\t\t}\n\t\t\twhile (pos < buffer.length && buffer[pos] >= \"0\" && buffer[pos] <= \"9\") {\n\t\t\t\tnumStr += buffer[pos];\n\t\t\t\tpos += 1;\n\t\t\t}\n\t\t}\n\t\tif (numStr === \"-\") return -0;\n\t\tconst num = Number.parseFloat(numStr);\n\t\tif (Number.isNaN(num)) {\n\t\t\tpos = start;\n\t\t\tthrow new Error(`Invalid number '${numStr}' at position ${start}`);\n\t\t}\n\t\treturn num;\n\t}\n\tfunction parseValue() {\n\t\tskipWhitespace();\n\t\tif (pos >= buffer.length) throw new Error(`Unexpected end of input at position ${pos}`);\n\t\tconst char = buffer[pos];\n\t\tif (char === \"{\") return parseObject();\n\t\tif (char === \"[\") return parseArray();\n\t\tif (char === \"\\\"\") return parseString();\n\t\tif (\"null\".startsWith(buffer.substring(pos, pos + 4))) {\n\t\t\tpos += Math.min(4, buffer.length - pos);\n\t\t\treturn null;\n\t\t}\n\t\tif (\"true\".startsWith(buffer.substring(pos, pos + 4))) {\n\t\t\tpos += Math.min(4, buffer.length - pos);\n\t\t\treturn true;\n\t\t}\n\t\tif (\"false\".startsWith(buffer.substring(pos, pos + 5))) {\n\t\t\tpos += Math.min(5, buffer.length - pos);\n\t\t\treturn false;\n\t\t}\n\t\tif (char === \"-\" || char >= \"0\" && char <= \"9\") return parseNumber();\n\t\tthrow new Error(`Unexpected character '${char}' at position ${pos}`);\n\t}\n\tfunction parseArray() {\n\t\tif (buffer[pos] !== \"[\") throw new Error(`Expected '[' at position ${pos}, got '${buffer[pos]}'`);\n\t\tconst arr = [];\n\t\tpos += 1;\n\t\tskipWhitespace();\n\t\tif (pos >= buffer.length) return arr;\n\t\tif (buffer[pos] === \"]\") {\n\t\t\tpos += 1;\n\t\t\treturn arr;\n\t\t}\n\t\twhile (pos < buffer.length) {\n\t\t\tskipWhitespace();\n\t\t\tif (pos >= buffer.length) return arr;\n\t\t\tarr.push(parseValue());\n\t\t\tskipWhitespace();\n\t\t\tif (pos >= buffer.length) return arr;\n\t\t\tif (buffer[pos] === \"]\") {\n\t\t\t\tpos += 1;\n\t\t\t\treturn arr;\n\t\t\t} else if (buffer[pos] === \",\") {\n\t\t\t\tpos += 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tthrow new Error(`Expected ',' or ']' at position ${pos}, got '${buffer[pos]}'`);\n\t\t}\n\t\treturn arr;\n\t}\n\tfunction parseObject() {\n\t\tif (buffer[pos] !== \"{\") throw new Error(`Expected '{' at position ${pos}, got '${buffer[pos]}'`);\n\t\tconst obj = {};\n\t\tpos += 1;\n\t\tskipWhitespace();\n\t\tif (pos >= buffer.length) return obj;\n\t\tif (buffer[pos] === \"}\") {\n\t\t\tpos += 1;\n\t\t\treturn obj;\n\t\t}\n\t\twhile (pos < buffer.length) {\n\t\t\tskipWhitespace();\n\t\t\tif (pos >= buffer.length) return obj;\n\t\t\tconst key = parseString();\n\t\t\tskipWhitespace();\n\t\t\tif (pos >= buffer.length) return obj;\n\t\t\tif (buffer[pos] !== \":\") throw new Error(`Expected ':' at position ${pos}, got '${buffer[pos]}'`);\n\t\t\tpos += 1;\n\t\t\tskipWhitespace();\n\t\t\tif (pos >= buffer.length) return obj;\n\t\t\tobj[key] = parseValue();\n\t\t\tskipWhitespace();\n\t\t\tif (pos >= buffer.length) return obj;\n\t\t\tif (buffer[pos] === \"}\") {\n\t\t\t\tpos += 1;\n\t\t\t\treturn obj;\n\t\t\t} else if (buffer[pos] === \",\") {\n\t\t\t\tpos += 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tthrow new Error(`Expected ',' or '}' at position ${pos}, got '${buffer[pos]}'`);\n\t\t}\n\t\treturn obj;\n\t}\n\tconst value = parseValue();\n\tskipWhitespace();\n\tif (pos < buffer.length) throw new Error(`Unexpected character '${buffer[pos]}' at position ${pos}`);\n\treturn value;\n}\nfunction parsePartialJson(s) {\n\ttry {\n\t\tif (typeof s === \"undefined\") return null;\n\t\treturn strictParsePartialJson(s);\n\t} catch {\n\t\treturn null;\n\t}\n}\n//#endregion\nexport { parseJsonMarkdown, parsePartialJson };\n\n//# sourceMappingURL=json.js.map"],"names":["strictParsePartialJson","s","buffer","pos","skipWhitespace","parseString","result","escaped","char","hex","parseNumber","start","numStr","num","parseValue","parseObject","parseArray","arr","obj","key","value","parsePartialJson"],"mappings":"AAoBA,SAASA,EAAuBC,GAAG;AAClC,MAAI;AACH,WAAO,KAAK,MAAMA,CAAC;AAAA,EACpB,QAAQ;AAAA,EAAC;AACT,QAAMC,IAASD,EAAE,KAAI;AACrB,MAAIC,EAAO,WAAW,EAAG,OAAM,IAAI,MAAM,8BAA8B;AACvE,MAAIC,IAAM;AACV,WAASC,IAAiB;AACzB,WAAOD,IAAMD,EAAO,UAAU,KAAK,KAAKA,EAAOC,CAAG,CAAC,IAAG,CAAAA,KAAO;AAAA,EAC9D;AACA,WAASE,IAAc;AACtB,QAAIH,EAAOC,CAAG,MAAM,IAAM,OAAM,IAAI,MAAM,4BAA4BA,CAAG,UAAUD,EAAOC,CAAG,CAAC,GAAG;AACjG,IAAAA,KAAO;AACP,QAAIG,IAAS,IACTC,IAAU;AACd,WAAOJ,IAAMD,EAAO,UAAQ;AAC3B,YAAMM,IAAON,EAAOC,CAAG;AACvB,UAAII,GAAS;AACZ,YAAIC,MAAS,IAAK,CAAAF,KAAU;AAAA;AAAA,iBACnBE,MAAS,IAAK,CAAAF,KAAU;AAAA,iBACxBE,MAAS,IAAK,CAAAF,KAAU;AAAA,iBACxBE,MAAS,KAAM,CA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AG,MAAM;AACnB,aAAAA,KAAO,GACAe;AAER,WAAOf,IAAMD,EAAO,UAAQ;AAE3B,UADAE,EAAc,GACVD,KAAOD,EAAO,OAAQ,QAAOgB;AACjC,YAAMC,IAAMd,EAAW;AAEvB,UADAD,EAAc,GACVD,KAAOD,EAAO,OAAQ,QAAOgB;AACjC,UAAIhB,EAAOC,CAAG,MAAM,IAAK,OAAM,IAAI,MAAM,4BAA4BA,CAAG,UAAUD,EAAOC,CAAG,CAAC,GAAG;AAMhG,UALAA,KAAO,GACPC,EAAc,GACVD,KAAOD,EAAO,WAClBgB,EAAIC,CAAG,IAAIL,EAAU,GACrBV,EAAc,GACVD,KAAOD,EAAO,QAAQ,QAAOgB;AACjC,UAAIhB,EAAOC,CAAG,MAAM;AACnB,eAAAA,KAAO,GACAe;AACD,UAAIhB,EAAOC,CAAG,MAAM,KAAK;AAC/B,QAAAA,KAAO;AACP;AAAA,MACD;AACA,YAAM,IAAI,MAAM,mCAAmCA,CAAG,UAAUD,EAAOC,CAAG,CAAC,GAAG;AAAA,IAC/E;AACA,WAAOe;AAAA,EACR;AACA,QAAME,IAAQN,EAAU;AAExB,MADAV,EAAc,GACVD,IAAMD,EAAO,OAAQ,OAAM,IAAI,MAAM,yBAAyBA,EAAOC,CAAG,CAAC,iBAAiBA,CAAG,EAAE;AACnG,SAAOiB;AACR;AACA,SAASC,EAAiBpB,GAAG;AAC5B,MAAI;AACH,WAAI,OAAOA,IAAM,MAAoB,OAC9BD,EAAuBC,CAAC;AAAA,EAChC,QAAQ;AACP,WAAO;AAAA,EACR;AACD;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(t){const r=Symbol.for(t);return{brand(e,c){const s=c?Symbol.for(`${t}.${c}`):r;class u extends e{[s]=!0;constructor(...n){super(...n)}static isInstance(n){return typeof n=="object"&&n!==null&&s in n&&n[s]===!0}}return Object.defineProperty(u,"name",{value:e.name}),u},sub(e){return o(`${t}.${e}`)},isInstance(e){return typeof e=="object"&&e!==null&&r in e&&e[r]===!0}}}const l=o("langchain");exports.ns=l;
2
- //# sourceMappingURL=namespace.cjs.js.map