understanding-graph 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3900) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +429 -0
  3. package/bin/cli.js +293 -0
  4. package/node_modules/@hono/node-server/README.md +340 -0
  5. package/node_modules/@hono/node-server/dist/conninfo.d.mts +10 -0
  6. package/node_modules/@hono/node-server/dist/conninfo.d.ts +10 -0
  7. package/node_modules/@hono/node-server/dist/conninfo.js +42 -0
  8. package/node_modules/@hono/node-server/dist/conninfo.mjs +17 -0
  9. package/node_modules/@hono/node-server/dist/globals.d.mts +2 -0
  10. package/node_modules/@hono/node-server/dist/globals.d.ts +2 -0
  11. package/node_modules/@hono/node-server/dist/globals.js +39 -0
  12. package/node_modules/@hono/node-server/dist/globals.mjs +15 -0
  13. package/node_modules/@hono/node-server/dist/index.d.mts +8 -0
  14. package/node_modules/@hono/node-server/dist/index.d.ts +8 -0
  15. package/node_modules/@hono/node-server/dist/index.js +623 -0
  16. package/node_modules/@hono/node-server/dist/index.mjs +583 -0
  17. package/node_modules/@hono/node-server/dist/listener.d.mts +13 -0
  18. package/node_modules/@hono/node-server/dist/listener.d.ts +13 -0
  19. package/node_modules/@hono/node-server/dist/listener.js +591 -0
  20. package/node_modules/@hono/node-server/dist/listener.mjs +556 -0
  21. package/node_modules/@hono/node-server/dist/request.d.mts +25 -0
  22. package/node_modules/@hono/node-server/dist/request.d.ts +25 -0
  23. package/node_modules/@hono/node-server/dist/request.js +227 -0
  24. package/node_modules/@hono/node-server/dist/request.mjs +195 -0
  25. package/node_modules/@hono/node-server/dist/response.d.mts +26 -0
  26. package/node_modules/@hono/node-server/dist/response.d.ts +26 -0
  27. package/node_modules/@hono/node-server/dist/response.js +99 -0
  28. package/node_modules/@hono/node-server/dist/response.mjs +72 -0
  29. package/node_modules/@hono/node-server/dist/serve-static.d.mts +17 -0
  30. package/node_modules/@hono/node-server/dist/serve-static.d.ts +17 -0
  31. package/node_modules/@hono/node-server/dist/serve-static.js +153 -0
  32. package/node_modules/@hono/node-server/dist/serve-static.mjs +128 -0
  33. package/node_modules/@hono/node-server/dist/server.d.mts +10 -0
  34. package/node_modules/@hono/node-server/dist/server.d.ts +10 -0
  35. package/node_modules/@hono/node-server/dist/server.js +617 -0
  36. package/node_modules/@hono/node-server/dist/server.mjs +581 -0
  37. package/node_modules/@hono/node-server/dist/types.d.mts +44 -0
  38. package/node_modules/@hono/node-server/dist/types.d.ts +44 -0
  39. package/node_modules/@hono/node-server/dist/types.js +18 -0
  40. package/node_modules/@hono/node-server/dist/types.mjs +0 -0
  41. package/node_modules/@hono/node-server/dist/utils/response/constants.d.mts +3 -0
  42. package/node_modules/@hono/node-server/dist/utils/response/constants.d.ts +3 -0
  43. package/node_modules/@hono/node-server/dist/utils/response/constants.js +30 -0
  44. package/node_modules/@hono/node-server/dist/utils/response/constants.mjs +5 -0
  45. package/node_modules/@hono/node-server/dist/utils/response.d.mts +3 -0
  46. package/node_modules/@hono/node-server/dist/utils/response.d.ts +3 -0
  47. package/node_modules/@hono/node-server/dist/utils/response.js +37 -0
  48. package/node_modules/@hono/node-server/dist/utils/response.mjs +10 -0
  49. package/node_modules/@hono/node-server/dist/utils.d.mts +9 -0
  50. package/node_modules/@hono/node-server/dist/utils.d.ts +9 -0
  51. package/node_modules/@hono/node-server/dist/utils.js +99 -0
  52. package/node_modules/@hono/node-server/dist/utils.mjs +71 -0
  53. package/node_modules/@hono/node-server/dist/vercel.d.mts +7 -0
  54. package/node_modules/@hono/node-server/dist/vercel.d.ts +7 -0
  55. package/node_modules/@hono/node-server/dist/vercel.js +598 -0
  56. package/node_modules/@hono/node-server/dist/vercel.mjs +561 -0
  57. package/node_modules/@hono/node-server/package.json +103 -0
  58. package/node_modules/@modelcontextprotocol/sdk/LICENSE +21 -0
  59. package/node_modules/@modelcontextprotocol/sdk/README.md +169 -0
  60. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts +178 -0
  61. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts.map +1 -0
  62. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js +296 -0
  63. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js.map +1 -0
  64. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts +368 -0
  65. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts.map +1 -0
  66. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js +848 -0
  67. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js.map +1 -0
  68. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts +588 -0
  69. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts.map +1 -0
  70. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js +627 -0
  71. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js.map +1 -0
  72. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts +169 -0
  73. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts.map +1 -0
  74. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js +252 -0
  75. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js.map +1 -0
  76. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts +81 -0
  77. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts.map +1 -0
  78. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js +211 -0
  79. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js.map +1 -0
  80. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts +77 -0
  81. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts.map +1 -0
  82. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js +199 -0
  83. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js.map +1 -0
  84. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts +171 -0
  85. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts.map +1 -0
  86. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js +482 -0
  87. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js.map +1 -0
  88. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts +17 -0
  89. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts.map +1 -0
  90. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js +58 -0
  91. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js.map +1 -0
  92. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts +2 -0
  93. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts.map +1 -0
  94. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js +692 -0
  95. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js.map +1 -0
  96. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts +2 -0
  97. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts.map +1 -0
  98. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js +134 -0
  99. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js.map +1 -0
  100. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts +2 -0
  101. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts.map +1 -0
  102. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js +176 -0
  103. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js.map +1 -0
  104. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts +20 -0
  105. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts.map +1 -0
  106. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js +70 -0
  107. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js.map +1 -0
  108. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts +3 -0
  109. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts.map +1 -0
  110. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js +413 -0
  111. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js.map +1 -0
  112. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts +26 -0
  113. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts.map +1 -0
  114. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js +51 -0
  115. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js.map +1 -0
  116. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts +2 -0
  117. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts.map +1 -0
  118. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js +818 -0
  119. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js.map +1 -0
  120. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts +10 -0
  121. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts.map +1 -0
  122. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js +157 -0
  123. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js.map +1 -0
  124. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts +2 -0
  125. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts.map +1 -0
  126. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js +95 -0
  127. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js.map +1 -0
  128. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts +2 -0
  129. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts.map +1 -0
  130. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js +168 -0
  131. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js.map +1 -0
  132. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts +78 -0
  133. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts.map +1 -0
  134. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js +205 -0
  135. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js.map +1 -0
  136. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts +2 -0
  137. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts.map +1 -0
  138. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js +431 -0
  139. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js.map +1 -0
  140. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts +2 -0
  141. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts.map +1 -0
  142. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js +656 -0
  143. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js.map +1 -0
  144. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts +10 -0
  145. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts.map +1 -0
  146. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js +81 -0
  147. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js.map +1 -0
  148. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts +2 -0
  149. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts.map +1 -0
  150. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js +171 -0
  151. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js.map +1 -0
  152. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts +7 -0
  153. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts.map +1 -0
  154. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js +95 -0
  155. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js.map +1 -0
  156. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts +2 -0
  157. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts.map +1 -0
  158. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js +168 -0
  159. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js.map +1 -0
  160. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts +2 -0
  161. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts.map +1 -0
  162. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js +166 -0
  163. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js.map +1 -0
  164. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts +2 -0
  165. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts.map +1 -0
  166. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js +661 -0
  167. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js.map +1 -0
  168. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts +12 -0
  169. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts.map +1 -0
  170. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js +600 -0
  171. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js.map +1 -0
  172. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts +2 -0
  173. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map +1 -0
  174. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js +256 -0
  175. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js.map +1 -0
  176. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts +2 -0
  177. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts.map +1 -0
  178. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js +102 -0
  179. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js.map +1 -0
  180. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts +2 -0
  181. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map +1 -0
  182. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js +112 -0
  183. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -0
  184. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts +2 -0
  185. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts.map +1 -0
  186. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js +73 -0
  187. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js.map +1 -0
  188. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts +31 -0
  189. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts.map +1 -0
  190. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js +69 -0
  191. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js.map +1 -0
  192. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts +13 -0
  193. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts.map +1 -0
  194. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js +29 -0
  195. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js.map +1 -0
  196. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts +121 -0
  197. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts.map +1 -0
  198. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js +188 -0
  199. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js.map +1 -0
  200. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts +47 -0
  201. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts.map +1 -0
  202. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js +68 -0
  203. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js.map +1 -0
  204. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts +16 -0
  205. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts.map +1 -0
  206. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js +39 -0
  207. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js.map +1 -0
  208. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts +232 -0
  209. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts.map +1 -0
  210. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js +19 -0
  211. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js.map +1 -0
  212. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts +77 -0
  213. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts.map +1 -0
  214. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js +36 -0
  215. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js.map +1 -0
  216. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts +83 -0
  217. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts.map +1 -0
  218. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js +93 -0
  219. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js.map +1 -0
  220. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts +94 -0
  221. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts.map +1 -0
  222. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js +251 -0
  223. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js.map +1 -0
  224. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts +10 -0
  225. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts.map +1 -0
  226. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js +28 -0
  227. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js.map +1 -0
  228. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts +31 -0
  229. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts.map +1 -0
  230. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js +51 -0
  231. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js.map +1 -0
  232. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/package.json +1 -0
  233. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts +19 -0
  234. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts.map +1 -0
  235. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js +3 -0
  236. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js.map +1 -0
  237. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts +148 -0
  238. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts.map +1 -0
  239. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js +202 -0
  240. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js.map +1 -0
  241. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts +13 -0
  242. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts.map +1 -0
  243. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js +167 -0
  244. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js.map +1 -0
  245. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts +4 -0
  246. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts.map +1 -0
  247. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js +21 -0
  248. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js.map +1 -0
  249. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts +29 -0
  250. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts.map +1 -0
  251. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js +77 -0
  252. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js.map +1 -0
  253. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts +13 -0
  254. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts.map +1 -0
  255. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js +65 -0
  256. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js.map +1 -0
  257. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts +13 -0
  258. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts.map +1 -0
  259. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js +136 -0
  260. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js.map +1 -0
  261. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts +9 -0
  262. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts.map +1 -0
  263. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js +21 -0
  264. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js.map +1 -0
  265. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts +35 -0
  266. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts.map +1 -0
  267. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js +75 -0
  268. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js.map +1 -0
  269. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts +19 -0
  270. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts.map +1 -0
  271. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js +71 -0
  272. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js.map +1 -0
  273. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts +68 -0
  274. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts.map +1 -0
  275. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js +3 -0
  276. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js.map +1 -0
  277. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts +49 -0
  278. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts.map +1 -0
  279. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js +159 -0
  280. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js.map +1 -0
  281. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts +101 -0
  282. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts.map +1 -0
  283. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js +128 -0
  284. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js.map +1 -0
  285. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts +32 -0
  286. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts.map +1 -0
  287. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js +3 -0
  288. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js.map +1 -0
  289. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts +38 -0
  290. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts.map +1 -0
  291. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js +48 -0
  292. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js.map +1 -0
  293. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts +45 -0
  294. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts.map +1 -0
  295. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js +56 -0
  296. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js.map +1 -0
  297. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts +196 -0
  298. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts.map +1 -0
  299. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js +444 -0
  300. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js.map +1 -0
  301. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts +364 -0
  302. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +1 -0
  303. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +918 -0
  304. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +1 -0
  305. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts +32 -0
  306. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts.map +1 -0
  307. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js +80 -0
  308. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js.map +1 -0
  309. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts +82 -0
  310. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts.map +1 -0
  311. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js +165 -0
  312. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js.map +1 -0
  313. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts +28 -0
  314. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts.map +1 -0
  315. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js +82 -0
  316. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js.map +1 -0
  317. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts +122 -0
  318. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts.map +1 -0
  319. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js +161 -0
  320. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js.map +1 -0
  321. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts +267 -0
  322. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts.map +1 -0
  323. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js +729 -0
  324. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js.map +1 -0
  325. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts +84 -0
  326. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts.map +1 -0
  327. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js +244 -0
  328. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js.map +1 -0
  329. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts +12 -0
  330. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts.map +1 -0
  331. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js +79 -0
  332. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js.map +1 -0
  333. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts +23 -0
  334. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts.map +1 -0
  335. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js +48 -0
  336. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js.map +1 -0
  337. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts +240 -0
  338. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts.map +1 -0
  339. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js +224 -0
  340. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js.map +1 -0
  341. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts +16 -0
  342. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts.map +1 -0
  343. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js +25 -0
  344. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js.map +1 -0
  345. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts +443 -0
  346. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts.map +1 -0
  347. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js +1091 -0
  348. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js.map +1 -0
  349. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts +45 -0
  350. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts.map +1 -0
  351. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js +23 -0
  352. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js.map +1 -0
  353. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts +13 -0
  354. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts.map +1 -0
  355. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js +37 -0
  356. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js.map +1 -0
  357. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts +31 -0
  358. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts.map +1 -0
  359. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js +97 -0
  360. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js.map +1 -0
  361. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +89 -0
  362. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +1 -0
  363. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js +43 -0
  364. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js.map +1 -0
  365. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts +25 -0
  366. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts.map +1 -0
  367. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js +243 -0
  368. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js.map +1 -0
  369. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts +2299 -0
  370. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts.map +1 -0
  371. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js +27 -0
  372. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js.map +1 -0
  373. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts +8133 -0
  374. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts.map +1 -0
  375. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js +2092 -0
  376. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js.map +1 -0
  377. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts +53 -0
  378. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts.map +1 -0
  379. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js +94 -0
  380. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js.map +1 -0
  381. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts +51 -0
  382. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts.map +1 -0
  383. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js +69 -0
  384. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js.map +1 -0
  385. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts +29 -0
  386. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts.map +1 -0
  387. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js +30 -0
  388. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js.map +1 -0
  389. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts +65 -0
  390. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts.map +1 -0
  391. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js +3 -0
  392. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js.map +1 -0
  393. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts +178 -0
  394. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts.map +1 -0
  395. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js +266 -0
  396. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js.map +1 -0
  397. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts +368 -0
  398. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts.map +1 -0
  399. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +824 -0
  400. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js.map +1 -0
  401. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts +588 -0
  402. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts.map +1 -0
  403. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +622 -0
  404. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js.map +1 -0
  405. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts +169 -0
  406. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts.map +1 -0
  407. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js +245 -0
  408. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js.map +1 -0
  409. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts +81 -0
  410. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts.map +1 -0
  411. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js +206 -0
  412. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js.map +1 -0
  413. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts +77 -0
  414. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts.map +1 -0
  415. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js +191 -0
  416. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js.map +1 -0
  417. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts +171 -0
  418. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts.map +1 -0
  419. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +477 -0
  420. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js.map +1 -0
  421. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts +17 -0
  422. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts.map +1 -0
  423. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js +54 -0
  424. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js.map +1 -0
  425. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts +2 -0
  426. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts.map +1 -0
  427. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js +690 -0
  428. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js.map +1 -0
  429. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts +2 -0
  430. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts.map +1 -0
  431. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js +132 -0
  432. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js.map +1 -0
  433. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts +2 -0
  434. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts.map +1 -0
  435. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js +174 -0
  436. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js.map +1 -0
  437. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts +20 -0
  438. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts.map +1 -0
  439. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js +68 -0
  440. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js.map +1 -0
  441. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts +3 -0
  442. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts.map +1 -0
  443. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js +411 -0
  444. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js.map +1 -0
  445. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts +26 -0
  446. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts.map +1 -0
  447. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js +47 -0
  448. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js.map +1 -0
  449. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts +2 -0
  450. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts.map +1 -0
  451. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js +816 -0
  452. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js.map +1 -0
  453. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts +10 -0
  454. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts.map +1 -0
  455. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js +155 -0
  456. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js.map +1 -0
  457. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts +2 -0
  458. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts.map +1 -0
  459. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js +93 -0
  460. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js.map +1 -0
  461. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts +2 -0
  462. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts.map +1 -0
  463. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js +166 -0
  464. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js.map +1 -0
  465. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts +78 -0
  466. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts.map +1 -0
  467. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js +196 -0
  468. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js.map +1 -0
  469. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts +2 -0
  470. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts.map +1 -0
  471. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js +429 -0
  472. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js.map +1 -0
  473. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts +2 -0
  474. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts.map +1 -0
  475. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js +651 -0
  476. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js.map +1 -0
  477. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts +10 -0
  478. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts.map +1 -0
  479. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js +56 -0
  480. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js.map +1 -0
  481. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts +2 -0
  482. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts.map +1 -0
  483. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js +146 -0
  484. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js.map +1 -0
  485. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts +7 -0
  486. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts.map +1 -0
  487. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js +70 -0
  488. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js.map +1 -0
  489. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts +2 -0
  490. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts.map +1 -0
  491. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js +143 -0
  492. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js.map +1 -0
  493. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts +2 -0
  494. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts.map +1 -0
  495. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js +141 -0
  496. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js.map +1 -0
  497. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts +2 -0
  498. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts.map +1 -0
  499. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js +636 -0
  500. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js.map +1 -0
  501. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts +12 -0
  502. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts.map +1 -0
  503. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js +598 -0
  504. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js.map +1 -0
  505. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts +2 -0
  506. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map +1 -0
  507. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js +231 -0
  508. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js.map +1 -0
  509. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts +2 -0
  510. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts.map +1 -0
  511. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js +97 -0
  512. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js.map +1 -0
  513. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts +2 -0
  514. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map +1 -0
  515. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js +110 -0
  516. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -0
  517. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts +2 -0
  518. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts.map +1 -0
  519. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js +48 -0
  520. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js.map +1 -0
  521. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts +31 -0
  522. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts.map +1 -0
  523. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js +65 -0
  524. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js.map +1 -0
  525. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts +13 -0
  526. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts.map +1 -0
  527. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js +13 -0
  528. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js.map +1 -0
  529. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts +121 -0
  530. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts.map +1 -0
  531. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js +184 -0
  532. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js.map +1 -0
  533. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts +47 -0
  534. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts.map +1 -0
  535. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +64 -0
  536. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js.map +1 -0
  537. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts +16 -0
  538. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts.map +1 -0
  539. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js +20 -0
  540. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js.map +1 -0
  541. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts +232 -0
  542. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts.map +1 -0
  543. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +16 -0
  544. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js.map +1 -0
  545. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts +77 -0
  546. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts.map +1 -0
  547. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +32 -0
  548. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js.map +1 -0
  549. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts +83 -0
  550. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts.map +1 -0
  551. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +89 -0
  552. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js.map +1 -0
  553. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts +94 -0
  554. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts.map +1 -0
  555. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js +246 -0
  556. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js.map +1 -0
  557. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts +10 -0
  558. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts.map +1 -0
  559. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js +10 -0
  560. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js.map +1 -0
  561. package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts +31 -0
  562. package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts.map +1 -0
  563. package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js +47 -0
  564. package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js.map +1 -0
  565. package/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json +1 -0
  566. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts +19 -0
  567. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts.map +1 -0
  568. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js +2 -0
  569. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js.map +1 -0
  570. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts +148 -0
  571. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts.map +1 -0
  572. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js +180 -0
  573. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js.map +1 -0
  574. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts +13 -0
  575. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts.map +1 -0
  576. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js +138 -0
  577. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js.map +1 -0
  578. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts +4 -0
  579. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts.map +1 -0
  580. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js +15 -0
  581. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js.map +1 -0
  582. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts +29 -0
  583. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts.map +1 -0
  584. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js +71 -0
  585. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js.map +1 -0
  586. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts +13 -0
  587. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts.map +1 -0
  588. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js +59 -0
  589. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js.map +1 -0
  590. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts +13 -0
  591. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts.map +1 -0
  592. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js +107 -0
  593. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js.map +1 -0
  594. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts +9 -0
  595. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts.map +1 -0
  596. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js +18 -0
  597. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js.map +1 -0
  598. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts +35 -0
  599. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts.map +1 -0
  600. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js +72 -0
  601. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js.map +1 -0
  602. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts +19 -0
  603. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts.map +1 -0
  604. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js +45 -0
  605. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js.map +1 -0
  606. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts +68 -0
  607. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts.map +1 -0
  608. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js +2 -0
  609. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js.map +1 -0
  610. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts +49 -0
  611. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts.map +1 -0
  612. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js +155 -0
  613. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js.map +1 -0
  614. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts +101 -0
  615. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts.map +1 -0
  616. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js +118 -0
  617. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js.map +1 -0
  618. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts +32 -0
  619. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts.map +1 -0
  620. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js +2 -0
  621. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js.map +1 -0
  622. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts +38 -0
  623. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts.map +1 -0
  624. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +41 -0
  625. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map +1 -0
  626. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts +45 -0
  627. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts.map +1 -0
  628. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js +50 -0
  629. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js.map +1 -0
  630. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts +196 -0
  631. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts.map +1 -0
  632. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +440 -0
  633. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map +1 -0
  634. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts +364 -0
  635. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +1 -0
  636. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +913 -0
  637. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -0
  638. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts +32 -0
  639. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts.map +1 -0
  640. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js +76 -0
  641. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js.map +1 -0
  642. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts +82 -0
  643. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts.map +1 -0
  644. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js +158 -0
  645. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js.map +1 -0
  646. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts +28 -0
  647. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts.map +1 -0
  648. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js +75 -0
  649. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js.map +1 -0
  650. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts +122 -0
  651. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts.map +1 -0
  652. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js +157 -0
  653. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js.map +1 -0
  654. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts +267 -0
  655. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts.map +1 -0
  656. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +725 -0
  657. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js.map +1 -0
  658. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts +84 -0
  659. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts.map +1 -0
  660. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +209 -0
  661. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map +1 -0
  662. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts +12 -0
  663. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts.map +1 -0
  664. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +51 -0
  665. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js.map +1 -0
  666. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts +23 -0
  667. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts.map +1 -0
  668. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js +44 -0
  669. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js.map +1 -0
  670. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts +240 -0
  671. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts.map +1 -0
  672. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +198 -0
  673. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js.map +1 -0
  674. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts +16 -0
  675. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts.map +1 -0
  676. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js +22 -0
  677. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js.map +1 -0
  678. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts +443 -0
  679. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts.map +1 -0
  680. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +1086 -0
  681. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +1 -0
  682. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts +45 -0
  683. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts.map +1 -0
  684. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js +19 -0
  685. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js.map +1 -0
  686. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts +13 -0
  687. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts.map +1 -0
  688. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js +31 -0
  689. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js.map +1 -0
  690. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts +31 -0
  691. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts.map +1 -0
  692. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +92 -0
  693. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js.map +1 -0
  694. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +89 -0
  695. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +1 -0
  696. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js +39 -0
  697. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js.map +1 -0
  698. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts +25 -0
  699. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts.map +1 -0
  700. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +239 -0
  701. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js.map +1 -0
  702. package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts +2299 -0
  703. package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts.map +1 -0
  704. package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js +24 -0
  705. package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js.map +1 -0
  706. package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts +8133 -0
  707. package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts.map +1 -0
  708. package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +2052 -0
  709. package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map +1 -0
  710. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts +53 -0
  711. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts.map +1 -0
  712. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +87 -0
  713. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map +1 -0
  714. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts +51 -0
  715. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts.map +1 -0
  716. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js +65 -0
  717. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js.map +1 -0
  718. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts +29 -0
  719. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts.map +1 -0
  720. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js +29 -0
  721. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js.map +1 -0
  722. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts +65 -0
  723. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts.map +1 -0
  724. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js +2 -0
  725. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js.map +1 -0
  726. package/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/HISTORY.md +250 -0
  727. package/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/LICENSE +23 -0
  728. package/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/README.md +140 -0
  729. package/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/index.js +238 -0
  730. package/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/package.json +47 -0
  731. package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/LICENSE +23 -0
  732. package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/README.md +494 -0
  733. package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/index.js +80 -0
  734. package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/read.js +250 -0
  735. package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/json.js +166 -0
  736. package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/raw.js +43 -0
  737. package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/text.js +37 -0
  738. package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/urlencoded.js +142 -0
  739. package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/utils.js +96 -0
  740. package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/package.json +52 -0
  741. package/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/HISTORY.md +72 -0
  742. package/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/LICENSE +22 -0
  743. package/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/README.md +142 -0
  744. package/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/index.js +458 -0
  745. package/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/package.json +43 -0
  746. package/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/History.md +70 -0
  747. package/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/LICENSE +22 -0
  748. package/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/Readme.md +23 -0
  749. package/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/index.js +47 -0
  750. package/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/package.json +24 -0
  751. package/node_modules/@modelcontextprotocol/sdk/node_modules/express/LICENSE +24 -0
  752. package/node_modules/@modelcontextprotocol/sdk/node_modules/express/Readme.md +276 -0
  753. package/node_modules/@modelcontextprotocol/sdk/node_modules/express/index.js +11 -0
  754. package/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/application.js +631 -0
  755. package/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/express.js +81 -0
  756. package/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/request.js +514 -0
  757. package/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/response.js +1053 -0
  758. package/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/utils.js +271 -0
  759. package/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/view.js +205 -0
  760. package/node_modules/@modelcontextprotocol/sdk/node_modules/express/package.json +99 -0
  761. package/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/HISTORY.md +239 -0
  762. package/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/LICENSE +22 -0
  763. package/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/README.md +150 -0
  764. package/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/index.js +293 -0
  765. package/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/package.json +47 -0
  766. package/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/HISTORY.md +80 -0
  767. package/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/LICENSE +23 -0
  768. package/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/README.md +117 -0
  769. package/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/index.js +136 -0
  770. package/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/package.json +46 -0
  771. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/Changelog.md +241 -0
  772. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/LICENSE +21 -0
  773. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/README.md +138 -0
  774. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  775. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  776. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/index.js +23 -0
  777. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/internal.js +218 -0
  778. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  779. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  780. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
  781. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  782. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  783. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  784. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  785. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  786. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  787. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  788. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  789. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/utf16.js +187 -0
  790. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/utf32.js +307 -0
  791. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/utf7.js +283 -0
  792. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  793. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  794. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/lib/index.d.ts +131 -0
  795. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/lib/index.js +183 -0
  796. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/lib/streams.js +105 -0
  797. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/package.json +65 -0
  798. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/types/encodings.d.ts +423 -0
  799. package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/HISTORY.md +50 -0
  800. package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/LICENSE +22 -0
  801. package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/README.md +93 -0
  802. package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/index.js +143 -0
  803. package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/package.json +33 -0
  804. package/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/index.d.ts +11 -0
  805. package/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/index.js +26 -0
  806. package/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/license +11 -0
  807. package/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/package.json +50 -0
  808. package/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/readme.md +55 -0
  809. package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/HISTORY.md +541 -0
  810. package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/LICENSE +23 -0
  811. package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/README.md +109 -0
  812. package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/db.json +9342 -0
  813. package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/index.js +12 -0
  814. package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/package.json +56 -0
  815. package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/HISTORY.md +428 -0
  816. package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/LICENSE +23 -0
  817. package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/README.md +126 -0
  818. package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/index.js +211 -0
  819. package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/mimeScore.js +57 -0
  820. package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/package.json +49 -0
  821. package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/HISTORY.md +114 -0
  822. package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/LICENSE +24 -0
  823. package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/README.md +212 -0
  824. package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/index.js +83 -0
  825. package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/charset.js +169 -0
  826. package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/encoding.js +205 -0
  827. package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/language.js +179 -0
  828. package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/mediaType.js +294 -0
  829. package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/package.json +43 -0
  830. package/node_modules/@modelcontextprotocol/sdk/node_modules/send/LICENSE +23 -0
  831. package/node_modules/@modelcontextprotocol/sdk/node_modules/send/README.md +317 -0
  832. package/node_modules/@modelcontextprotocol/sdk/node_modules/send/index.js +997 -0
  833. package/node_modules/@modelcontextprotocol/sdk/node_modules/send/package.json +63 -0
  834. package/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/LICENSE +25 -0
  835. package/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/README.md +253 -0
  836. package/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/index.js +208 -0
  837. package/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/package.json +44 -0
  838. package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/HISTORY.md +292 -0
  839. package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/LICENSE +23 -0
  840. package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/README.md +198 -0
  841. package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/index.js +250 -0
  842. package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/package.json +47 -0
  843. package/node_modules/@modelcontextprotocol/sdk/package.json +145 -0
  844. package/node_modules/@understanding-graph/core/dist/database/sqlite.d.ts +391 -0
  845. package/node_modules/@understanding-graph/core/dist/database/sqlite.d.ts.map +1 -0
  846. package/node_modules/@understanding-graph/core/dist/database/sqlite.js +1806 -0
  847. package/node_modules/@understanding-graph/core/dist/database/sqlite.js.map +1 -0
  848. package/node_modules/@understanding-graph/core/dist/index.d.ts +12 -0
  849. package/node_modules/@understanding-graph/core/dist/index.d.ts.map +1 -0
  850. package/node_modules/@understanding-graph/core/dist/index.js +20 -0
  851. package/node_modules/@understanding-graph/core/dist/index.js.map +1 -0
  852. package/node_modules/@understanding-graph/core/dist/services/AnalysisService.d.ts +61 -0
  853. package/node_modules/@understanding-graph/core/dist/services/AnalysisService.d.ts.map +1 -0
  854. package/node_modules/@understanding-graph/core/dist/services/AnalysisService.js +223 -0
  855. package/node_modules/@understanding-graph/core/dist/services/AnalysisService.js.map +1 -0
  856. package/node_modules/@understanding-graph/core/dist/services/ContextService.d.ts +27 -0
  857. package/node_modules/@understanding-graph/core/dist/services/ContextService.d.ts.map +1 -0
  858. package/node_modules/@understanding-graph/core/dist/services/ContextService.js +1109 -0
  859. package/node_modules/@understanding-graph/core/dist/services/ContextService.js.map +1 -0
  860. package/node_modules/@understanding-graph/core/dist/services/DocumentWriter.d.ts +132 -0
  861. package/node_modules/@understanding-graph/core/dist/services/DocumentWriter.d.ts.map +1 -0
  862. package/node_modules/@understanding-graph/core/dist/services/DocumentWriter.js +583 -0
  863. package/node_modules/@understanding-graph/core/dist/services/DocumentWriter.js.map +1 -0
  864. package/node_modules/@understanding-graph/core/dist/services/EmbeddingService.d.ts +55 -0
  865. package/node_modules/@understanding-graph/core/dist/services/EmbeddingService.d.ts.map +1 -0
  866. package/node_modules/@understanding-graph/core/dist/services/EmbeddingService.js +142 -0
  867. package/node_modules/@understanding-graph/core/dist/services/EmbeddingService.js.map +1 -0
  868. package/node_modules/@understanding-graph/core/dist/services/GraphStore.d.ts +606 -0
  869. package/node_modules/@understanding-graph/core/dist/services/GraphStore.d.ts.map +1 -0
  870. package/node_modules/@understanding-graph/core/dist/services/GraphStore.js +2244 -0
  871. package/node_modules/@understanding-graph/core/dist/services/GraphStore.js.map +1 -0
  872. package/node_modules/@understanding-graph/core/dist/types/index.d.ts +162 -0
  873. package/node_modules/@understanding-graph/core/dist/types/index.d.ts.map +1 -0
  874. package/node_modules/@understanding-graph/core/dist/types/index.js +2 -0
  875. package/node_modules/@understanding-graph/core/dist/types/index.js.map +1 -0
  876. package/node_modules/@understanding-graph/core/package.json +57 -0
  877. package/node_modules/@understanding-graph/core/src/database/sqlite.ts +2552 -0
  878. package/node_modules/@understanding-graph/core/src/index.ts +70 -0
  879. package/node_modules/@understanding-graph/core/src/services/AnalysisService.ts +298 -0
  880. package/node_modules/@understanding-graph/core/src/services/ContextService.ts +1416 -0
  881. package/node_modules/@understanding-graph/core/src/services/DocumentWriter.ts +721 -0
  882. package/node_modules/@understanding-graph/core/src/services/EmbeddingService.ts +172 -0
  883. package/node_modules/@understanding-graph/core/src/services/GraphStore.ts +3188 -0
  884. package/node_modules/@understanding-graph/core/src/types/index.ts +192 -0
  885. package/node_modules/@understanding-graph/core/tsconfig.json +8 -0
  886. package/node_modules/@understanding-graph/mcp-server/README.md +132 -0
  887. package/node_modules/@understanding-graph/mcp-server/dist/context-manager.d.ts +32 -0
  888. package/node_modules/@understanding-graph/mcp-server/dist/context-manager.d.ts.map +1 -0
  889. package/node_modules/@understanding-graph/mcp-server/dist/context-manager.js +163 -0
  890. package/node_modules/@understanding-graph/mcp-server/dist/context-manager.js.map +1 -0
  891. package/node_modules/@understanding-graph/mcp-server/dist/index.d.ts +3 -0
  892. package/node_modules/@understanding-graph/mcp-server/dist/index.d.ts.map +1 -0
  893. package/node_modules/@understanding-graph/mcp-server/dist/index.js +160 -0
  894. package/node_modules/@understanding-graph/mcp-server/dist/index.js.map +1 -0
  895. package/node_modules/@understanding-graph/mcp-server/dist/instructions.d.ts +19 -0
  896. package/node_modules/@understanding-graph/mcp-server/dist/instructions.d.ts.map +1 -0
  897. package/node_modules/@understanding-graph/mcp-server/dist/instructions.js +265 -0
  898. package/node_modules/@understanding-graph/mcp-server/dist/instructions.js.map +1 -0
  899. package/node_modules/@understanding-graph/mcp-server/dist/tools/batch.d.ts +5 -0
  900. package/node_modules/@understanding-graph/mcp-server/dist/tools/batch.d.ts.map +1 -0
  901. package/node_modules/@understanding-graph/mcp-server/dist/tools/batch.js +608 -0
  902. package/node_modules/@understanding-graph/mcp-server/dist/tools/batch.js.map +1 -0
  903. package/node_modules/@understanding-graph/mcp-server/dist/tools/concept.d.ts +5 -0
  904. package/node_modules/@understanding-graph/mcp-server/dist/tools/concept.d.ts.map +1 -0
  905. package/node_modules/@understanding-graph/mcp-server/dist/tools/concept.js +894 -0
  906. package/node_modules/@understanding-graph/mcp-server/dist/tools/concept.js.map +1 -0
  907. package/node_modules/@understanding-graph/mcp-server/dist/tools/connection.d.ts +5 -0
  908. package/node_modules/@understanding-graph/mcp-server/dist/tools/connection.d.ts.map +1 -0
  909. package/node_modules/@understanding-graph/mcp-server/dist/tools/connection.js +361 -0
  910. package/node_modules/@understanding-graph/mcp-server/dist/tools/connection.js.map +1 -0
  911. package/node_modules/@understanding-graph/mcp-server/dist/tools/document.d.ts +5 -0
  912. package/node_modules/@understanding-graph/mcp-server/dist/tools/document.d.ts.map +1 -0
  913. package/node_modules/@understanding-graph/mcp-server/dist/tools/document.js +2239 -0
  914. package/node_modules/@understanding-graph/mcp-server/dist/tools/document.js.map +1 -0
  915. package/node_modules/@understanding-graph/mcp-server/dist/tools/index.d.ts +6 -0
  916. package/node_modules/@understanding-graph/mcp-server/dist/tools/index.d.ts.map +1 -0
  917. package/node_modules/@understanding-graph/mcp-server/dist/tools/index.js +165 -0
  918. package/node_modules/@understanding-graph/mcp-server/dist/tools/index.js.map +1 -0
  919. package/node_modules/@understanding-graph/mcp-server/dist/tools/reflection.d.ts +5 -0
  920. package/node_modules/@understanding-graph/mcp-server/dist/tools/reflection.d.ts.map +1 -0
  921. package/node_modules/@understanding-graph/mcp-server/dist/tools/reflection.js +1940 -0
  922. package/node_modules/@understanding-graph/mcp-server/dist/tools/reflection.js.map +1 -0
  923. package/node_modules/@understanding-graph/mcp-server/dist/tools/solvers.d.ts +4 -0
  924. package/node_modules/@understanding-graph/mcp-server/dist/tools/solvers.d.ts.map +1 -0
  925. package/node_modules/@understanding-graph/mcp-server/dist/tools/solvers.js +1022 -0
  926. package/node_modules/@understanding-graph/mcp-server/dist/tools/solvers.js.map +1 -0
  927. package/node_modules/@understanding-graph/mcp-server/dist/tools/source.d.ts +5 -0
  928. package/node_modules/@understanding-graph/mcp-server/dist/tools/source.d.ts.map +1 -0
  929. package/node_modules/@understanding-graph/mcp-server/dist/tools/source.js +451 -0
  930. package/node_modules/@understanding-graph/mcp-server/dist/tools/source.js.map +1 -0
  931. package/node_modules/@understanding-graph/mcp-server/dist/tools/synthesis.d.ts +5 -0
  932. package/node_modules/@understanding-graph/mcp-server/dist/tools/synthesis.d.ts.map +1 -0
  933. package/node_modules/@understanding-graph/mcp-server/dist/tools/synthesis.js +1094 -0
  934. package/node_modules/@understanding-graph/mcp-server/dist/tools/synthesis.js.map +1 -0
  935. package/node_modules/@understanding-graph/mcp-server/dist/tools/thematic.d.ts +11 -0
  936. package/node_modules/@understanding-graph/mcp-server/dist/tools/thematic.d.ts.map +1 -0
  937. package/node_modules/@understanding-graph/mcp-server/dist/tools/thematic.js +621 -0
  938. package/node_modules/@understanding-graph/mcp-server/dist/tools/thematic.js.map +1 -0
  939. package/node_modules/@understanding-graph/mcp-server/package.json +62 -0
  940. package/node_modules/@yomguithereal/helpers/LICENSE.txt +21 -0
  941. package/node_modules/@yomguithereal/helpers/README.md +33 -0
  942. package/node_modules/@yomguithereal/helpers/extend.d.ts +1 -0
  943. package/node_modules/@yomguithereal/helpers/extend.js +41 -0
  944. package/node_modules/@yomguithereal/helpers/index.d.ts +1 -0
  945. package/node_modules/@yomguithereal/helpers/index.js +7 -0
  946. package/node_modules/@yomguithereal/helpers/package.json +37 -0
  947. package/node_modules/@yomguithereal/helpers/test.js +19 -0
  948. package/node_modules/ajv/.runkit_example.js +23 -0
  949. package/node_modules/ajv/LICENSE +22 -0
  950. package/node_modules/ajv/README.md +207 -0
  951. package/node_modules/ajv/dist/2019.d.ts +19 -0
  952. package/node_modules/ajv/dist/2019.js +61 -0
  953. package/node_modules/ajv/dist/2019.js.map +1 -0
  954. package/node_modules/ajv/dist/2020.d.ts +19 -0
  955. package/node_modules/ajv/dist/2020.js +55 -0
  956. package/node_modules/ajv/dist/2020.js.map +1 -0
  957. package/node_modules/ajv/dist/ajv.d.ts +18 -0
  958. package/node_modules/ajv/dist/ajv.js +50 -0
  959. package/node_modules/ajv/dist/ajv.js.map +1 -0
  960. package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  961. package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  962. package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  963. package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  964. package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  965. package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  966. package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  967. package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  968. package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  969. package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  970. package/node_modules/ajv/dist/compile/errors.js +123 -0
  971. package/node_modules/ajv/dist/compile/errors.js.map +1 -0
  972. package/node_modules/ajv/dist/compile/index.d.ts +80 -0
  973. package/node_modules/ajv/dist/compile/index.js +242 -0
  974. package/node_modules/ajv/dist/compile/index.js.map +1 -0
  975. package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  976. package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  977. package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  978. package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  979. package/node_modules/ajv/dist/compile/jtd/serialize.js +229 -0
  980. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  981. package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  982. package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  983. package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  984. package/node_modules/ajv/dist/compile/names.d.ts +20 -0
  985. package/node_modules/ajv/dist/compile/names.js +28 -0
  986. package/node_modules/ajv/dist/compile/names.js.map +1 -0
  987. package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  988. package/node_modules/ajv/dist/compile/ref_error.js +12 -0
  989. package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  990. package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  991. package/node_modules/ajv/dist/compile/resolve.js +155 -0
  992. package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  993. package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  994. package/node_modules/ajv/dist/compile/rules.js +26 -0
  995. package/node_modules/ajv/dist/compile/rules.js.map +1 -0
  996. package/node_modules/ajv/dist/compile/util.d.ts +40 -0
  997. package/node_modules/ajv/dist/compile/util.js +178 -0
  998. package/node_modules/ajv/dist/compile/util.js.map +1 -0
  999. package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  1000. package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  1001. package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  1002. package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  1003. package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  1004. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  1005. package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  1006. package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  1007. package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  1008. package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  1009. package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  1010. package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  1011. package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  1012. package/node_modules/ajv/dist/compile/validate/index.js +520 -0
  1013. package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  1014. package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  1015. package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  1016. package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  1017. package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  1018. package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  1019. package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  1020. package/node_modules/ajv/dist/core.d.ts +173 -0
  1021. package/node_modules/ajv/dist/core.js +618 -0
  1022. package/node_modules/ajv/dist/core.js.map +1 -0
  1023. package/node_modules/ajv/dist/jtd.d.ts +47 -0
  1024. package/node_modules/ajv/dist/jtd.js +72 -0
  1025. package/node_modules/ajv/dist/jtd.js.map +1 -0
  1026. package/node_modules/ajv/dist/refs/data.json +13 -0
  1027. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  1028. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  1029. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  1030. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  1031. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  1032. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  1033. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  1034. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  1035. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  1036. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  1037. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  1038. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  1039. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  1040. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  1041. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  1042. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  1043. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  1044. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  1045. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  1046. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  1047. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  1048. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  1049. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  1050. package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  1051. package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  1052. package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  1053. package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  1054. package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  1055. package/node_modules/ajv/dist/runtime/equal.js +7 -0
  1056. package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  1057. package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  1058. package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  1059. package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  1060. package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  1061. package/node_modules/ajv/dist/runtime/quote.js +30 -0
  1062. package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  1063. package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  1064. package/node_modules/ajv/dist/runtime/re2.js +6 -0
  1065. package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  1066. package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  1067. package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  1068. package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  1069. package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  1070. package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  1071. package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  1072. package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  1073. package/node_modules/ajv/dist/runtime/uri.js +6 -0
  1074. package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  1075. package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  1076. package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  1077. package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  1078. package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  1079. package/node_modules/ajv/dist/standalone/index.js +90 -0
  1080. package/node_modules/ajv/dist/standalone/index.js.map +1 -0
  1081. package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  1082. package/node_modules/ajv/dist/standalone/instance.js +35 -0
  1083. package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  1084. package/node_modules/ajv/dist/types/index.d.ts +183 -0
  1085. package/node_modules/ajv/dist/types/index.js +3 -0
  1086. package/node_modules/ajv/dist/types/index.js.map +1 -0
  1087. package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  1088. package/node_modules/ajv/dist/types/json-schema.js +3 -0
  1089. package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  1090. package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  1091. package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  1092. package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  1093. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  1094. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  1095. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  1096. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  1097. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  1098. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  1099. package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  1100. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  1101. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  1102. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  1103. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  1104. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  1105. package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  1106. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  1107. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  1108. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  1109. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  1110. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  1111. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  1112. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  1113. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  1114. package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  1115. package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  1116. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  1117. package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  1118. package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  1119. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  1120. package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  1121. package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  1122. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  1123. package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  1124. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  1125. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  1126. package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  1127. package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  1128. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  1129. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  1130. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  1131. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  1132. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  1133. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  1134. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  1135. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  1136. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  1137. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  1138. package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  1139. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  1140. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  1141. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  1142. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  1143. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  1144. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  1145. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  1146. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  1147. package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  1148. package/node_modules/ajv/dist/vocabularies/code.js +131 -0
  1149. package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  1150. package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  1151. package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  1152. package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  1153. package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  1154. package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  1155. package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  1156. package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  1157. package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  1158. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  1159. package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  1160. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  1161. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  1162. package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  1163. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  1164. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  1165. package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  1166. package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  1167. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  1168. package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  1169. package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  1170. package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  1171. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  1172. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  1173. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  1174. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  1175. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  1176. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  1177. package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  1178. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  1179. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  1180. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  1181. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  1182. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  1183. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  1184. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  1185. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  1186. package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  1187. package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  1188. package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  1189. package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  1190. package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  1191. package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  1192. package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  1193. package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  1194. package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  1195. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  1196. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  1197. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  1198. package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  1199. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  1200. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  1201. package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  1202. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  1203. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  1204. package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  1205. package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  1206. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  1207. package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  1208. package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  1209. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  1210. package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  1211. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  1212. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  1213. package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  1214. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  1215. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  1216. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  1217. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  1218. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  1219. package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  1220. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  1221. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  1222. package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  1223. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  1224. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  1225. package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  1226. package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  1227. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  1228. package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  1229. package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  1230. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  1231. package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  1232. package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  1233. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  1234. package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  1235. package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  1236. package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  1237. package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  1238. package/node_modules/ajv/dist/vocabularies/next.js +8 -0
  1239. package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  1240. package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  1241. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  1242. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  1243. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  1244. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  1245. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  1246. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  1247. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  1248. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  1249. package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  1250. package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  1251. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  1252. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  1253. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  1254. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  1255. package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  1256. package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  1257. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  1258. package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  1259. package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  1260. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  1261. package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  1262. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  1263. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  1264. package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  1265. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  1266. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  1267. package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  1268. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  1269. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  1270. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  1271. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  1272. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  1273. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  1274. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  1275. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  1276. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  1277. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  1278. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  1279. package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  1280. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
  1281. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  1282. package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  1283. package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  1284. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  1285. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  1286. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  1287. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  1288. package/node_modules/ajv/lib/2019.ts +81 -0
  1289. package/node_modules/ajv/lib/2020.ts +75 -0
  1290. package/node_modules/ajv/lib/ajv.ts +70 -0
  1291. package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  1292. package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  1293. package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  1294. package/node_modules/ajv/lib/compile/errors.ts +184 -0
  1295. package/node_modules/ajv/lib/compile/index.ts +324 -0
  1296. package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  1297. package/node_modules/ajv/lib/compile/jtd/serialize.ts +266 -0
  1298. package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  1299. package/node_modules/ajv/lib/compile/names.ts +27 -0
  1300. package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  1301. package/node_modules/ajv/lib/compile/resolve.ts +149 -0
  1302. package/node_modules/ajv/lib/compile/rules.ts +50 -0
  1303. package/node_modules/ajv/lib/compile/util.ts +213 -0
  1304. package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  1305. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  1306. package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  1307. package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  1308. package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  1309. package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  1310. package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  1311. package/node_modules/ajv/lib/core.ts +891 -0
  1312. package/node_modules/ajv/lib/jtd.ts +132 -0
  1313. package/node_modules/ajv/lib/refs/data.json +13 -0
  1314. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  1315. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  1316. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  1317. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  1318. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  1319. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  1320. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  1321. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  1322. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  1323. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  1324. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  1325. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  1326. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  1327. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  1328. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  1329. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  1330. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  1331. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  1332. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  1333. package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  1334. package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  1335. package/node_modules/ajv/lib/runtime/equal.ts +7 -0
  1336. package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  1337. package/node_modules/ajv/lib/runtime/quote.ts +31 -0
  1338. package/node_modules/ajv/lib/runtime/re2.ts +6 -0
  1339. package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  1340. package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  1341. package/node_modules/ajv/lib/runtime/uri.ts +6 -0
  1342. package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  1343. package/node_modules/ajv/lib/standalone/index.ts +100 -0
  1344. package/node_modules/ajv/lib/standalone/instance.ts +36 -0
  1345. package/node_modules/ajv/lib/types/index.ts +244 -0
  1346. package/node_modules/ajv/lib/types/json-schema.ts +187 -0
  1347. package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  1348. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  1349. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  1350. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  1351. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  1352. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  1353. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  1354. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  1355. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  1356. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  1357. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  1358. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  1359. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  1360. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  1361. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  1362. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  1363. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  1364. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  1365. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  1366. package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  1367. package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  1368. package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  1369. package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  1370. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  1371. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  1372. package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  1373. package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  1374. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  1375. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  1376. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  1377. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  1378. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  1379. package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  1380. package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  1381. package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  1382. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  1383. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  1384. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  1385. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  1386. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  1387. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  1388. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  1389. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  1390. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  1391. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  1392. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  1393. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  1394. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  1395. package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  1396. package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  1397. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  1398. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  1399. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  1400. package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  1401. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  1402. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  1403. package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  1404. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  1405. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  1406. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  1407. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  1408. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  1409. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  1410. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
  1411. package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  1412. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  1413. package/node_modules/ajv/package.json +126 -0
  1414. package/node_modules/ajv-formats/LICENSE +21 -0
  1415. package/node_modules/ajv-formats/README.md +125 -0
  1416. package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
  1417. package/node_modules/ajv-formats/dist/formats.js +208 -0
  1418. package/node_modules/ajv-formats/dist/formats.js.map +1 -0
  1419. package/node_modules/ajv-formats/dist/index.d.ts +15 -0
  1420. package/node_modules/ajv-formats/dist/index.js +37 -0
  1421. package/node_modules/ajv-formats/dist/index.js.map +1 -0
  1422. package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
  1423. package/node_modules/ajv-formats/dist/limit.js +69 -0
  1424. package/node_modules/ajv-formats/dist/limit.js.map +1 -0
  1425. package/node_modules/ajv-formats/package.json +74 -0
  1426. package/node_modules/ajv-formats/src/formats.ts +269 -0
  1427. package/node_modules/ajv-formats/src/index.ts +62 -0
  1428. package/node_modules/ajv-formats/src/limit.ts +99 -0
  1429. package/node_modules/base64-js/LICENSE +21 -0
  1430. package/node_modules/base64-js/README.md +34 -0
  1431. package/node_modules/base64-js/base64js.min.js +1 -0
  1432. package/node_modules/base64-js/index.d.ts +3 -0
  1433. package/node_modules/base64-js/index.js +150 -0
  1434. package/node_modules/base64-js/package.json +47 -0
  1435. package/node_modules/bindings/LICENSE.md +22 -0
  1436. package/node_modules/bindings/README.md +98 -0
  1437. package/node_modules/bindings/bindings.js +221 -0
  1438. package/node_modules/bindings/package.json +28 -0
  1439. package/node_modules/bl/.travis.yml +17 -0
  1440. package/node_modules/bl/BufferList.js +396 -0
  1441. package/node_modules/bl/LICENSE.md +13 -0
  1442. package/node_modules/bl/README.md +247 -0
  1443. package/node_modules/bl/bl.js +84 -0
  1444. package/node_modules/bl/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  1445. package/node_modules/bl/node_modules/readable-stream/GOVERNANCE.md +136 -0
  1446. package/node_modules/bl/node_modules/readable-stream/LICENSE +47 -0
  1447. package/node_modules/bl/node_modules/readable-stream/README.md +106 -0
  1448. package/node_modules/bl/node_modules/readable-stream/errors-browser.js +127 -0
  1449. package/node_modules/bl/node_modules/readable-stream/errors.js +116 -0
  1450. package/node_modules/bl/node_modules/readable-stream/experimentalWarning.js +17 -0
  1451. package/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
  1452. package/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
  1453. package/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
  1454. package/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +190 -0
  1455. package/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +641 -0
  1456. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
  1457. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
  1458. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
  1459. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
  1460. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  1461. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
  1462. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
  1463. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
  1464. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  1465. package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  1466. package/node_modules/bl/node_modules/readable-stream/package.json +68 -0
  1467. package/node_modules/bl/node_modules/readable-stream/readable-browser.js +9 -0
  1468. package/node_modules/bl/node_modules/readable-stream/readable.js +16 -0
  1469. package/node_modules/bl/package.json +37 -0
  1470. package/node_modules/bl/test/convert.js +21 -0
  1471. package/node_modules/bl/test/indexOf.js +492 -0
  1472. package/node_modules/bl/test/isBufferList.js +32 -0
  1473. package/node_modules/bl/test/test.js +869 -0
  1474. package/node_modules/buffer/AUTHORS.md +70 -0
  1475. package/node_modules/buffer/LICENSE +21 -0
  1476. package/node_modules/buffer/README.md +410 -0
  1477. package/node_modules/buffer/index.d.ts +186 -0
  1478. package/node_modules/buffer/index.js +1817 -0
  1479. package/node_modules/buffer/package.json +96 -0
  1480. package/node_modules/bytes/History.md +97 -0
  1481. package/node_modules/bytes/LICENSE +23 -0
  1482. package/node_modules/bytes/Readme.md +152 -0
  1483. package/node_modules/bytes/index.js +170 -0
  1484. package/node_modules/bytes/package.json +42 -0
  1485. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  1486. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  1487. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  1488. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  1489. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  1490. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  1491. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  1492. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  1493. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  1494. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  1495. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  1496. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  1497. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  1498. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  1499. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  1500. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  1501. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  1502. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  1503. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  1504. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  1505. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  1506. package/node_modules/call-bound/.eslintrc +13 -0
  1507. package/node_modules/call-bound/.github/FUNDING.yml +12 -0
  1508. package/node_modules/call-bound/.nycrc +9 -0
  1509. package/node_modules/call-bound/CHANGELOG.md +42 -0
  1510. package/node_modules/call-bound/LICENSE +21 -0
  1511. package/node_modules/call-bound/README.md +53 -0
  1512. package/node_modules/call-bound/index.d.ts +94 -0
  1513. package/node_modules/call-bound/index.js +19 -0
  1514. package/node_modules/call-bound/package.json +99 -0
  1515. package/node_modules/call-bound/test/index.js +61 -0
  1516. package/node_modules/call-bound/tsconfig.json +10 -0
  1517. package/node_modules/chownr/LICENSE +15 -0
  1518. package/node_modules/chownr/README.md +3 -0
  1519. package/node_modules/chownr/chownr.js +167 -0
  1520. package/node_modules/chownr/package.json +29 -0
  1521. package/node_modules/content-type/HISTORY.md +29 -0
  1522. package/node_modules/content-type/LICENSE +22 -0
  1523. package/node_modules/content-type/README.md +94 -0
  1524. package/node_modules/content-type/index.js +225 -0
  1525. package/node_modules/content-type/package.json +42 -0
  1526. package/node_modules/cookie/LICENSE +24 -0
  1527. package/node_modules/cookie/README.md +317 -0
  1528. package/node_modules/cookie/SECURITY.md +25 -0
  1529. package/node_modules/cookie/index.js +335 -0
  1530. package/node_modules/cookie/package.json +44 -0
  1531. package/node_modules/cors/CONTRIBUTING.md +33 -0
  1532. package/node_modules/cors/HISTORY.md +58 -0
  1533. package/node_modules/cors/LICENSE +22 -0
  1534. package/node_modules/cors/README.md +243 -0
  1535. package/node_modules/cors/lib/index.js +238 -0
  1536. package/node_modules/cors/package.json +41 -0
  1537. package/node_modules/cross-spawn/LICENSE +21 -0
  1538. package/node_modules/cross-spawn/README.md +89 -0
  1539. package/node_modules/cross-spawn/index.js +39 -0
  1540. package/node_modules/cross-spawn/lib/enoent.js +59 -0
  1541. package/node_modules/cross-spawn/lib/parse.js +91 -0
  1542. package/node_modules/cross-spawn/lib/util/escape.js +47 -0
  1543. package/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
  1544. package/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
  1545. package/node_modules/cross-spawn/package.json +73 -0
  1546. package/node_modules/debug/LICENSE +20 -0
  1547. package/node_modules/debug/README.md +481 -0
  1548. package/node_modules/debug/package.json +64 -0
  1549. package/node_modules/debug/src/browser.js +272 -0
  1550. package/node_modules/debug/src/common.js +292 -0
  1551. package/node_modules/debug/src/index.js +10 -0
  1552. package/node_modules/debug/src/node.js +263 -0
  1553. package/node_modules/decompress-response/index.d.ts +22 -0
  1554. package/node_modules/decompress-response/index.js +58 -0
  1555. package/node_modules/decompress-response/license +9 -0
  1556. package/node_modules/decompress-response/package.json +56 -0
  1557. package/node_modules/decompress-response/readme.md +48 -0
  1558. package/node_modules/deep-extend/LICENSE +20 -0
  1559. package/node_modules/deep-extend/README.md +91 -0
  1560. package/node_modules/deep-extend/index.js +1 -0
  1561. package/node_modules/deep-extend/lib/deep-extend.js +150 -0
  1562. package/node_modules/deep-extend/package.json +62 -0
  1563. package/node_modules/depd/History.md +103 -0
  1564. package/node_modules/depd/LICENSE +22 -0
  1565. package/node_modules/depd/Readme.md +280 -0
  1566. package/node_modules/depd/index.js +538 -0
  1567. package/node_modules/depd/lib/browser/index.js +77 -0
  1568. package/node_modules/depd/package.json +45 -0
  1569. package/node_modules/detect-libc/LICENSE +201 -0
  1570. package/node_modules/detect-libc/README.md +163 -0
  1571. package/node_modules/detect-libc/index.d.ts +14 -0
  1572. package/node_modules/detect-libc/lib/detect-libc.js +313 -0
  1573. package/node_modules/detect-libc/lib/elf.js +39 -0
  1574. package/node_modules/detect-libc/lib/filesystem.js +51 -0
  1575. package/node_modules/detect-libc/lib/process.js +24 -0
  1576. package/node_modules/detect-libc/package.json +44 -0
  1577. package/node_modules/dunder-proto/.eslintrc +5 -0
  1578. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  1579. package/node_modules/dunder-proto/.nycrc +13 -0
  1580. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  1581. package/node_modules/dunder-proto/LICENSE +21 -0
  1582. package/node_modules/dunder-proto/README.md +54 -0
  1583. package/node_modules/dunder-proto/get.d.ts +5 -0
  1584. package/node_modules/dunder-proto/get.js +30 -0
  1585. package/node_modules/dunder-proto/package.json +76 -0
  1586. package/node_modules/dunder-proto/set.d.ts +5 -0
  1587. package/node_modules/dunder-proto/set.js +35 -0
  1588. package/node_modules/dunder-proto/test/get.js +34 -0
  1589. package/node_modules/dunder-proto/test/index.js +4 -0
  1590. package/node_modules/dunder-proto/test/set.js +50 -0
  1591. package/node_modules/dunder-proto/tsconfig.json +9 -0
  1592. package/node_modules/ee-first/LICENSE +22 -0
  1593. package/node_modules/ee-first/README.md +80 -0
  1594. package/node_modules/ee-first/index.js +95 -0
  1595. package/node_modules/ee-first/package.json +29 -0
  1596. package/node_modules/encodeurl/LICENSE +22 -0
  1597. package/node_modules/encodeurl/README.md +109 -0
  1598. package/node_modules/encodeurl/index.js +60 -0
  1599. package/node_modules/encodeurl/package.json +40 -0
  1600. package/node_modules/end-of-stream/LICENSE +21 -0
  1601. package/node_modules/end-of-stream/README.md +54 -0
  1602. package/node_modules/end-of-stream/index.js +96 -0
  1603. package/node_modules/end-of-stream/package.json +37 -0
  1604. package/node_modules/es-define-property/.eslintrc +13 -0
  1605. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  1606. package/node_modules/es-define-property/.nycrc +9 -0
  1607. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  1608. package/node_modules/es-define-property/LICENSE +21 -0
  1609. package/node_modules/es-define-property/README.md +49 -0
  1610. package/node_modules/es-define-property/index.d.ts +3 -0
  1611. package/node_modules/es-define-property/index.js +14 -0
  1612. package/node_modules/es-define-property/package.json +81 -0
  1613. package/node_modules/es-define-property/test/index.js +56 -0
  1614. package/node_modules/es-define-property/tsconfig.json +10 -0
  1615. package/node_modules/es-errors/.eslintrc +5 -0
  1616. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  1617. package/node_modules/es-errors/CHANGELOG.md +40 -0
  1618. package/node_modules/es-errors/LICENSE +21 -0
  1619. package/node_modules/es-errors/README.md +55 -0
  1620. package/node_modules/es-errors/eval.d.ts +3 -0
  1621. package/node_modules/es-errors/eval.js +4 -0
  1622. package/node_modules/es-errors/index.d.ts +3 -0
  1623. package/node_modules/es-errors/index.js +4 -0
  1624. package/node_modules/es-errors/package.json +80 -0
  1625. package/node_modules/es-errors/range.d.ts +3 -0
  1626. package/node_modules/es-errors/range.js +4 -0
  1627. package/node_modules/es-errors/ref.d.ts +3 -0
  1628. package/node_modules/es-errors/ref.js +4 -0
  1629. package/node_modules/es-errors/syntax.d.ts +3 -0
  1630. package/node_modules/es-errors/syntax.js +4 -0
  1631. package/node_modules/es-errors/test/index.js +19 -0
  1632. package/node_modules/es-errors/tsconfig.json +49 -0
  1633. package/node_modules/es-errors/type.d.ts +3 -0
  1634. package/node_modules/es-errors/type.js +4 -0
  1635. package/node_modules/es-errors/uri.d.ts +3 -0
  1636. package/node_modules/es-errors/uri.js +4 -0
  1637. package/node_modules/es-object-atoms/.eslintrc +16 -0
  1638. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  1639. package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  1640. package/node_modules/es-object-atoms/LICENSE +21 -0
  1641. package/node_modules/es-object-atoms/README.md +63 -0
  1642. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  1643. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  1644. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  1645. package/node_modules/es-object-atoms/ToObject.js +10 -0
  1646. package/node_modules/es-object-atoms/index.d.ts +3 -0
  1647. package/node_modules/es-object-atoms/index.js +4 -0
  1648. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  1649. package/node_modules/es-object-atoms/isObject.js +6 -0
  1650. package/node_modules/es-object-atoms/package.json +80 -0
  1651. package/node_modules/es-object-atoms/test/index.js +38 -0
  1652. package/node_modules/es-object-atoms/tsconfig.json +6 -0
  1653. package/node_modules/escape-html/LICENSE +24 -0
  1654. package/node_modules/escape-html/Readme.md +43 -0
  1655. package/node_modules/escape-html/index.js +78 -0
  1656. package/node_modules/escape-html/package.json +24 -0
  1657. package/node_modules/etag/HISTORY.md +83 -0
  1658. package/node_modules/etag/LICENSE +22 -0
  1659. package/node_modules/etag/README.md +159 -0
  1660. package/node_modules/etag/index.js +131 -0
  1661. package/node_modules/etag/package.json +47 -0
  1662. package/node_modules/events/.airtap.yml +15 -0
  1663. package/node_modules/events/.github/FUNDING.yml +12 -0
  1664. package/node_modules/events/.travis.yml +18 -0
  1665. package/node_modules/events/History.md +118 -0
  1666. package/node_modules/events/LICENSE +22 -0
  1667. package/node_modules/events/Readme.md +50 -0
  1668. package/node_modules/events/events.js +497 -0
  1669. package/node_modules/events/package.json +37 -0
  1670. package/node_modules/events/security.md +10 -0
  1671. package/node_modules/events/tests/add-listeners.js +111 -0
  1672. package/node_modules/events/tests/check-listener-leaks.js +101 -0
  1673. package/node_modules/events/tests/common.js +104 -0
  1674. package/node_modules/events/tests/errors.js +13 -0
  1675. package/node_modules/events/tests/events-list.js +28 -0
  1676. package/node_modules/events/tests/events-once.js +234 -0
  1677. package/node_modules/events/tests/index.js +64 -0
  1678. package/node_modules/events/tests/legacy-compat.js +16 -0
  1679. package/node_modules/events/tests/listener-count.js +37 -0
  1680. package/node_modules/events/tests/listeners-side-effects.js +56 -0
  1681. package/node_modules/events/tests/listeners.js +168 -0
  1682. package/node_modules/events/tests/max-listeners.js +47 -0
  1683. package/node_modules/events/tests/method-names.js +35 -0
  1684. package/node_modules/events/tests/modify-in-emit.js +90 -0
  1685. package/node_modules/events/tests/num-args.js +60 -0
  1686. package/node_modules/events/tests/once.js +83 -0
  1687. package/node_modules/events/tests/prepend.js +31 -0
  1688. package/node_modules/events/tests/remove-all-listeners.js +133 -0
  1689. package/node_modules/events/tests/remove-listeners.js +212 -0
  1690. package/node_modules/events/tests/set-max-listeners-side-effects.js +31 -0
  1691. package/node_modules/events/tests/special-event-names.js +45 -0
  1692. package/node_modules/events/tests/subclass.js +66 -0
  1693. package/node_modules/events/tests/symbols.js +25 -0
  1694. package/node_modules/eventsource/LICENSE +22 -0
  1695. package/node_modules/eventsource/README.md +167 -0
  1696. package/node_modules/eventsource/dist/index.cjs +273 -0
  1697. package/node_modules/eventsource/dist/index.cjs.map +1 -0
  1698. package/node_modules/eventsource/dist/index.d.cts +332 -0
  1699. package/node_modules/eventsource/dist/index.d.ts +332 -0
  1700. package/node_modules/eventsource/dist/index.js +273 -0
  1701. package/node_modules/eventsource/dist/index.js.map +1 -0
  1702. package/node_modules/eventsource/package.json +130 -0
  1703. package/node_modules/eventsource/src/EventSource.ts +596 -0
  1704. package/node_modules/eventsource/src/errors.ts +141 -0
  1705. package/node_modules/eventsource/src/index.ts +3 -0
  1706. package/node_modules/eventsource/src/types.ts +152 -0
  1707. package/node_modules/eventsource-parser/LICENSE +21 -0
  1708. package/node_modules/eventsource-parser/README.md +126 -0
  1709. package/node_modules/eventsource-parser/dist/index.cjs +106 -0
  1710. package/node_modules/eventsource-parser/dist/index.cjs.map +1 -0
  1711. package/node_modules/eventsource-parser/dist/index.d.cts +144 -0
  1712. package/node_modules/eventsource-parser/dist/index.d.ts +144 -0
  1713. package/node_modules/eventsource-parser/dist/index.js +106 -0
  1714. package/node_modules/eventsource-parser/dist/index.js.map +1 -0
  1715. package/node_modules/eventsource-parser/dist/stream.cjs +28 -0
  1716. package/node_modules/eventsource-parser/dist/stream.cjs.map +1 -0
  1717. package/node_modules/eventsource-parser/dist/stream.d.cts +118 -0
  1718. package/node_modules/eventsource-parser/dist/stream.d.ts +118 -0
  1719. package/node_modules/eventsource-parser/dist/stream.js +29 -0
  1720. package/node_modules/eventsource-parser/dist/stream.js.map +1 -0
  1721. package/node_modules/eventsource-parser/package.json +115 -0
  1722. package/node_modules/eventsource-parser/src/errors.ts +44 -0
  1723. package/node_modules/eventsource-parser/src/index.ts +3 -0
  1724. package/node_modules/eventsource-parser/src/parse.ts +232 -0
  1725. package/node_modules/eventsource-parser/src/stream.ts +88 -0
  1726. package/node_modules/eventsource-parser/src/types.ts +97 -0
  1727. package/node_modules/eventsource-parser/stream.js +2 -0
  1728. package/node_modules/expand-template/.travis.yml +6 -0
  1729. package/node_modules/expand-template/LICENSE +21 -0
  1730. package/node_modules/expand-template/README.md +43 -0
  1731. package/node_modules/expand-template/index.js +26 -0
  1732. package/node_modules/expand-template/package.json +29 -0
  1733. package/node_modules/expand-template/test.js +67 -0
  1734. package/node_modules/express-rate-limit/dist/index.cjs +823 -0
  1735. package/node_modules/express-rate-limit/dist/index.d.cts +588 -0
  1736. package/node_modules/express-rate-limit/dist/index.d.mts +588 -0
  1737. package/node_modules/express-rate-limit/dist/index.d.ts +588 -0
  1738. package/node_modules/express-rate-limit/dist/index.mjs +794 -0
  1739. package/node_modules/express-rate-limit/license.md +20 -0
  1740. package/node_modules/express-rate-limit/package.json +133 -0
  1741. package/node_modules/express-rate-limit/readme.md +147 -0
  1742. package/node_modules/express-rate-limit/tsconfig.json +8 -0
  1743. package/node_modules/fast-deep-equal/LICENSE +21 -0
  1744. package/node_modules/fast-deep-equal/README.md +96 -0
  1745. package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
  1746. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  1747. package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
  1748. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  1749. package/node_modules/fast-deep-equal/index.d.ts +4 -0
  1750. package/node_modules/fast-deep-equal/index.js +46 -0
  1751. package/node_modules/fast-deep-equal/package.json +61 -0
  1752. package/node_modules/fast-deep-equal/react.d.ts +2 -0
  1753. package/node_modules/fast-deep-equal/react.js +53 -0
  1754. package/node_modules/fast-uri/.gitattributes +2 -0
  1755. package/node_modules/fast-uri/.github/.stale.yml +21 -0
  1756. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  1757. package/node_modules/fast-uri/.github/tests_checker.yml +8 -0
  1758. package/node_modules/fast-uri/.github/workflows/ci.yml +101 -0
  1759. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  1760. package/node_modules/fast-uri/LICENSE +32 -0
  1761. package/node_modules/fast-uri/README.md +143 -0
  1762. package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  1763. package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  1764. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  1765. package/node_modules/fast-uri/benchmark/package.json +17 -0
  1766. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  1767. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  1768. package/node_modules/fast-uri/eslint.config.js +6 -0
  1769. package/node_modules/fast-uri/index.js +340 -0
  1770. package/node_modules/fast-uri/lib/schemes.js +267 -0
  1771. package/node_modules/fast-uri/lib/utils.js +336 -0
  1772. package/node_modules/fast-uri/package.json +69 -0
  1773. package/node_modules/fast-uri/test/ajv.test.js +43 -0
  1774. package/node_modules/fast-uri/test/equal.test.js +108 -0
  1775. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
  1776. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  1777. package/node_modules/fast-uri/test/parse.test.js +318 -0
  1778. package/node_modules/fast-uri/test/resolve.test.js +78 -0
  1779. package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  1780. package/node_modules/fast-uri/test/serialize.test.js +151 -0
  1781. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  1782. package/node_modules/fast-uri/test/uri-js.test.js +912 -0
  1783. package/node_modules/fast-uri/test/util.test.js +38 -0
  1784. package/node_modules/fast-uri/tsconfig.json +9 -0
  1785. package/node_modules/fast-uri/types/index.d.ts +60 -0
  1786. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  1787. package/node_modules/file-uri-to-path/.npmignore +1 -0
  1788. package/node_modules/file-uri-to-path/.travis.yml +30 -0
  1789. package/node_modules/file-uri-to-path/History.md +21 -0
  1790. package/node_modules/file-uri-to-path/LICENSE +20 -0
  1791. package/node_modules/file-uri-to-path/README.md +74 -0
  1792. package/node_modules/file-uri-to-path/index.d.ts +2 -0
  1793. package/node_modules/file-uri-to-path/index.js +66 -0
  1794. package/node_modules/file-uri-to-path/package.json +32 -0
  1795. package/node_modules/file-uri-to-path/test/test.js +24 -0
  1796. package/node_modules/file-uri-to-path/test/tests.json +13 -0
  1797. package/node_modules/forwarded/HISTORY.md +21 -0
  1798. package/node_modules/forwarded/LICENSE +22 -0
  1799. package/node_modules/forwarded/README.md +57 -0
  1800. package/node_modules/forwarded/index.js +90 -0
  1801. package/node_modules/forwarded/package.json +45 -0
  1802. package/node_modules/fs-constants/LICENSE +21 -0
  1803. package/node_modules/fs-constants/README.md +26 -0
  1804. package/node_modules/fs-constants/browser.js +1 -0
  1805. package/node_modules/fs-constants/index.js +1 -0
  1806. package/node_modules/fs-constants/package.json +19 -0
  1807. package/node_modules/function-bind/.eslintrc +21 -0
  1808. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  1809. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  1810. package/node_modules/function-bind/.nycrc +13 -0
  1811. package/node_modules/function-bind/CHANGELOG.md +136 -0
  1812. package/node_modules/function-bind/LICENSE +20 -0
  1813. package/node_modules/function-bind/README.md +46 -0
  1814. package/node_modules/function-bind/implementation.js +84 -0
  1815. package/node_modules/function-bind/index.js +5 -0
  1816. package/node_modules/function-bind/package.json +87 -0
  1817. package/node_modules/function-bind/test/.eslintrc +9 -0
  1818. package/node_modules/function-bind/test/index.js +252 -0
  1819. package/node_modules/get-intrinsic/.eslintrc +42 -0
  1820. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  1821. package/node_modules/get-intrinsic/.nycrc +9 -0
  1822. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  1823. package/node_modules/get-intrinsic/LICENSE +21 -0
  1824. package/node_modules/get-intrinsic/README.md +71 -0
  1825. package/node_modules/get-intrinsic/index.js +378 -0
  1826. package/node_modules/get-intrinsic/package.json +97 -0
  1827. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  1828. package/node_modules/get-proto/.eslintrc +10 -0
  1829. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  1830. package/node_modules/get-proto/.nycrc +9 -0
  1831. package/node_modules/get-proto/CHANGELOG.md +21 -0
  1832. package/node_modules/get-proto/LICENSE +21 -0
  1833. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  1834. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  1835. package/node_modules/get-proto/README.md +50 -0
  1836. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  1837. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  1838. package/node_modules/get-proto/index.d.ts +5 -0
  1839. package/node_modules/get-proto/index.js +27 -0
  1840. package/node_modules/get-proto/package.json +81 -0
  1841. package/node_modules/get-proto/test/index.js +68 -0
  1842. package/node_modules/get-proto/tsconfig.json +9 -0
  1843. package/node_modules/github-from-package/.travis.yml +4 -0
  1844. package/node_modules/github-from-package/LICENSE +18 -0
  1845. package/node_modules/github-from-package/example/package.json +8 -0
  1846. package/node_modules/github-from-package/example/url.js +3 -0
  1847. package/node_modules/github-from-package/index.js +17 -0
  1848. package/node_modules/github-from-package/package.json +30 -0
  1849. package/node_modules/github-from-package/readme.markdown +53 -0
  1850. package/node_modules/github-from-package/test/a.json +8 -0
  1851. package/node_modules/github-from-package/test/b.json +5 -0
  1852. package/node_modules/github-from-package/test/c.json +5 -0
  1853. package/node_modules/github-from-package/test/d.json +7 -0
  1854. package/node_modules/github-from-package/test/e.json +5 -0
  1855. package/node_modules/github-from-package/test/url.js +19 -0
  1856. package/node_modules/gopd/.eslintrc +16 -0
  1857. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  1858. package/node_modules/gopd/CHANGELOG.md +45 -0
  1859. package/node_modules/gopd/LICENSE +21 -0
  1860. package/node_modules/gopd/README.md +40 -0
  1861. package/node_modules/gopd/gOPD.d.ts +1 -0
  1862. package/node_modules/gopd/gOPD.js +4 -0
  1863. package/node_modules/gopd/index.d.ts +5 -0
  1864. package/node_modules/gopd/index.js +15 -0
  1865. package/node_modules/gopd/package.json +77 -0
  1866. package/node_modules/gopd/test/index.js +36 -0
  1867. package/node_modules/gopd/tsconfig.json +9 -0
  1868. package/node_modules/graphology/LICENSE.txt +21 -0
  1869. package/node_modules/graphology/README.md +9 -0
  1870. package/node_modules/graphology/dist/graphology.cjs.js +4978 -0
  1871. package/node_modules/graphology/dist/graphology.cjs.js.map +1 -0
  1872. package/node_modules/graphology/dist/graphology.d.ts +36 -0
  1873. package/node_modules/graphology/dist/graphology.esm.js +6655 -0
  1874. package/node_modules/graphology/dist/graphology.esm.js.map +1 -0
  1875. package/node_modules/graphology/dist/graphology.mjs +6655 -0
  1876. package/node_modules/graphology/dist/graphology.mjs.map +1 -0
  1877. package/node_modules/graphology/dist/graphology.umd.js +5564 -0
  1878. package/node_modules/graphology/dist/graphology.umd.js.map +1 -0
  1879. package/node_modules/graphology/dist/graphology.umd.min.js +2 -0
  1880. package/node_modules/graphology/dist/graphology.umd.min.js.map +1 -0
  1881. package/node_modules/graphology/package.json +86 -0
  1882. package/node_modules/graphology/specs/attributes.js +865 -0
  1883. package/node_modules/graphology/specs/events.js +385 -0
  1884. package/node_modules/graphology/specs/helpers.js +88 -0
  1885. package/node_modules/graphology/specs/index.js +66 -0
  1886. package/node_modules/graphology/specs/instantiation.js +187 -0
  1887. package/node_modules/graphology/specs/iteration/edges.js +697 -0
  1888. package/node_modules/graphology/specs/iteration/index.js +129 -0
  1889. package/node_modules/graphology/specs/iteration/neighbors.js +244 -0
  1890. package/node_modules/graphology/specs/iteration/nodes.js +219 -0
  1891. package/node_modules/graphology/specs/known.js +45 -0
  1892. package/node_modules/graphology/specs/misc.js +88 -0
  1893. package/node_modules/graphology/specs/mutation.js +713 -0
  1894. package/node_modules/graphology/specs/properties.js +168 -0
  1895. package/node_modules/graphology/specs/read.js +772 -0
  1896. package/node_modules/graphology/specs/serialization.js +204 -0
  1897. package/node_modules/graphology/specs/utils.js +204 -0
  1898. package/node_modules/graphology-communities-louvain/LICENSE.txt +21 -0
  1899. package/node_modules/graphology-communities-louvain/README.md +136 -0
  1900. package/node_modules/graphology-communities-louvain/experimental/robust-randomness.d.ts +53 -0
  1901. package/node_modules/graphology-communities-louvain/experimental/robust-randomness.js +511 -0
  1902. package/node_modules/graphology-communities-louvain/index.d.ts +55 -0
  1903. package/node_modules/graphology-communities-louvain/index.js +784 -0
  1904. package/node_modules/graphology-communities-louvain/package.json +51 -0
  1905. package/node_modules/graphology-indices/LICENSE.txt +21 -0
  1906. package/node_modules/graphology-indices/README.md +21 -0
  1907. package/node_modules/graphology-indices/bfs-queue.d.ts +20 -0
  1908. package/node_modules/graphology-indices/bfs-queue.js +84 -0
  1909. package/node_modules/graphology-indices/dfs-stack.d.ts +19 -0
  1910. package/node_modules/graphology-indices/dfs-stack.js +79 -0
  1911. package/node_modules/graphology-indices/index.d.ts +5 -0
  1912. package/node_modules/graphology-indices/index.js +16 -0
  1913. package/node_modules/graphology-indices/louvain.d.ts +128 -0
  1914. package/node_modules/graphology-indices/louvain.js +1021 -0
  1915. package/node_modules/graphology-indices/neighborhood.d.ts +42 -0
  1916. package/node_modules/graphology-indices/neighborhood.js +163 -0
  1917. package/node_modules/graphology-indices/package.json +44 -0
  1918. package/node_modules/graphology-indices/sorted-components.d.ts +10 -0
  1919. package/node_modules/graphology-indices/sorted-components.js +83 -0
  1920. package/node_modules/graphology-metrics/LICENSE.txt +21 -0
  1921. package/node_modules/graphology-metrics/README.md +660 -0
  1922. package/node_modules/graphology-metrics/centrality/betweenness.d.ts +34 -0
  1923. package/node_modules/graphology-metrics/centrality/betweenness.js +104 -0
  1924. package/node_modules/graphology-metrics/centrality/closeness.d.ts +20 -0
  1925. package/node_modules/graphology-metrics/centrality/closeness.js +149 -0
  1926. package/node_modules/graphology-metrics/centrality/degree.d.ts +18 -0
  1927. package/node_modules/graphology-metrics/centrality/degree.js +98 -0
  1928. package/node_modules/graphology-metrics/centrality/edge-betweenness.d.ts +34 -0
  1929. package/node_modules/graphology-metrics/centrality/edge-betweenness.js +132 -0
  1930. package/node_modules/graphology-metrics/centrality/eigenvector.d.ts +37 -0
  1931. package/node_modules/graphology-metrics/centrality/eigenvector.js +150 -0
  1932. package/node_modules/graphology-metrics/centrality/hits.d.ts +42 -0
  1933. package/node_modules/graphology-metrics/centrality/hits.js +203 -0
  1934. package/node_modules/graphology-metrics/centrality/index.d.ts +11 -0
  1935. package/node_modules/graphology-metrics/centrality/index.js +18 -0
  1936. package/node_modules/graphology-metrics/centrality/pagerank.d.ts +36 -0
  1937. package/node_modules/graphology-metrics/centrality/pagerank.js +141 -0
  1938. package/node_modules/graphology-metrics/edge/chi-square-g-square.d.ts +45 -0
  1939. package/node_modules/graphology-metrics/edge/chi-square-g-square.js +197 -0
  1940. package/node_modules/graphology-metrics/edge/chi-square.js +7 -0
  1941. package/node_modules/graphology-metrics/edge/disparity.d.ts +35 -0
  1942. package/node_modules/graphology-metrics/edge/disparity.js +150 -0
  1943. package/node_modules/graphology-metrics/edge/g-square.js +7 -0
  1944. package/node_modules/graphology-metrics/edge/index.d.ts +3 -0
  1945. package/node_modules/graphology-metrics/edge/index.js +4 -0
  1946. package/node_modules/graphology-metrics/edge/simmelian-strength.d.ts +12 -0
  1947. package/node_modules/graphology-metrics/edge/simmelian-strength.js +53 -0
  1948. package/node_modules/graphology-metrics/graph/density.d.ts +34 -0
  1949. package/node_modules/graphology-metrics/graph/density.js +118 -0
  1950. package/node_modules/graphology-metrics/graph/diameter.d.ts +3 -0
  1951. package/node_modules/graphology-metrics/graph/diameter.js +30 -0
  1952. package/node_modules/graphology-metrics/graph/extent.d.ts +30 -0
  1953. package/node_modules/graphology-metrics/graph/extent.js +91 -0
  1954. package/node_modules/graphology-metrics/graph/index.d.ts +15 -0
  1955. package/node_modules/graphology-metrics/graph/index.js +19 -0
  1956. package/node_modules/graphology-metrics/graph/modularity.d.ts +60 -0
  1957. package/node_modules/graphology-metrics/graph/modularity.js +581 -0
  1958. package/node_modules/graphology-metrics/graph/simple-size.d.ts +3 -0
  1959. package/node_modules/graphology-metrics/graph/simple-size.js +45 -0
  1960. package/node_modules/graphology-metrics/graph/weighted-size.d.ts +9 -0
  1961. package/node_modules/graphology-metrics/graph/weighted-size.js +41 -0
  1962. package/node_modules/graphology-metrics/index.d.ts +5 -0
  1963. package/node_modules/graphology-metrics/index.js +11 -0
  1964. package/node_modules/graphology-metrics/layout-quality/connected-closeness.d.ts +30 -0
  1965. package/node_modules/graphology-metrics/layout-quality/connected-closeness.js +238 -0
  1966. package/node_modules/graphology-metrics/layout-quality/edge-uniformity.d.ts +3 -0
  1967. package/node_modules/graphology-metrics/layout-quality/edge-uniformity.js +57 -0
  1968. package/node_modules/graphology-metrics/layout-quality/index.d.ts +4 -0
  1969. package/node_modules/graphology-metrics/layout-quality/index.js +4 -0
  1970. package/node_modules/graphology-metrics/layout-quality/neighborhood-preservation.d.ts +3 -0
  1971. package/node_modules/graphology-metrics/layout-quality/neighborhood-preservation.js +62 -0
  1972. package/node_modules/graphology-metrics/layout-quality/stress.d.ts +3 -0
  1973. package/node_modules/graphology-metrics/layout-quality/stress.js +74 -0
  1974. package/node_modules/graphology-metrics/node/clustering-ambiguity.d.ts +11 -0
  1975. package/node_modules/graphology-metrics/node/clustering-ambiguity.js +160 -0
  1976. package/node_modules/graphology-metrics/node/eccentricity.d.ts +3 -0
  1977. package/node_modules/graphology-metrics/node/eccentricity.js +39 -0
  1978. package/node_modules/graphology-metrics/node/index.d.ts +3 -0
  1979. package/node_modules/graphology-metrics/node/index.js +12 -0
  1980. package/node_modules/graphology-metrics/node/weighted-degree.d.ts +69 -0
  1981. package/node_modules/graphology-metrics/node/weighted-degree.js +89 -0
  1982. package/node_modules/graphology-metrics/package.json +72 -0
  1983. package/node_modules/graphology-shortest-path/LICENSE.txt +21 -0
  1984. package/node_modules/graphology-shortest-path/README.md +205 -0
  1985. package/node_modules/graphology-shortest-path/astar.d.ts +20 -0
  1986. package/node_modules/graphology-shortest-path/astar.js +176 -0
  1987. package/node_modules/graphology-shortest-path/dijkstra.d.ts +44 -0
  1988. package/node_modules/graphology-shortest-path/dijkstra.js +381 -0
  1989. package/node_modules/graphology-shortest-path/index.d.ts +13 -0
  1990. package/node_modules/graphology-shortest-path/index.js +20 -0
  1991. package/node_modules/graphology-shortest-path/indexed-brandes.d.ts +38 -0
  1992. package/node_modules/graphology-shortest-path/indexed-brandes.js +195 -0
  1993. package/node_modules/graphology-shortest-path/package.json +49 -0
  1994. package/node_modules/graphology-shortest-path/unweighted.d.ts +34 -0
  1995. package/node_modules/graphology-shortest-path/unweighted.js +350 -0
  1996. package/node_modules/graphology-shortest-path/utils.d.ts +6 -0
  1997. package/node_modules/graphology-shortest-path/utils.js +50 -0
  1998. package/node_modules/graphology-traversal/LICENSE.txt +21 -0
  1999. package/node_modules/graphology-traversal/README.md +122 -0
  2000. package/node_modules/graphology-traversal/bfs.d.ts +14 -0
  2001. package/node_modules/graphology-traversal/bfs.js +84 -0
  2002. package/node_modules/graphology-traversal/dfs.d.ts +14 -0
  2003. package/node_modules/graphology-traversal/dfs.js +84 -0
  2004. package/node_modules/graphology-traversal/index.d.ts +2 -0
  2005. package/node_modules/graphology-traversal/index.js +7 -0
  2006. package/node_modules/graphology-traversal/package.json +47 -0
  2007. package/node_modules/graphology-traversal/types.d.ts +16 -0
  2008. package/node_modules/graphology-traversal/utils.js +19 -0
  2009. package/node_modules/graphology-utils/LICENSE.txt +21 -0
  2010. package/node_modules/graphology-utils/README.md +274 -0
  2011. package/node_modules/graphology-utils/add-edge.d.ts +37 -0
  2012. package/node_modules/graphology-utils/add-edge.js +85 -0
  2013. package/node_modules/graphology-utils/add-node.d.ts +7 -0
  2014. package/node_modules/graphology-utils/add-node.js +11 -0
  2015. package/node_modules/graphology-utils/defaults.d.ts +4 -0
  2016. package/node_modules/graphology-utils/defaults.js +47 -0
  2017. package/node_modules/graphology-utils/getters.d.ts +79 -0
  2018. package/node_modules/graphology-utils/getters.js +137 -0
  2019. package/node_modules/graphology-utils/index.d.ts +10 -0
  2020. package/node_modules/graphology-utils/index.js +16 -0
  2021. package/node_modules/graphology-utils/infer-multi.d.ts +3 -0
  2022. package/node_modules/graphology-utils/infer-multi.js +48 -0
  2023. package/node_modules/graphology-utils/infer-type.d.ts +3 -0
  2024. package/node_modules/graphology-utils/infer-type.js +35 -0
  2025. package/node_modules/graphology-utils/is-graph-constructor.d.ts +1 -0
  2026. package/node_modules/graphology-utils/is-graph-constructor.js +23 -0
  2027. package/node_modules/graphology-utils/is-graph.d.ts +1 -0
  2028. package/node_modules/graphology-utils/is-graph.js +23 -0
  2029. package/node_modules/graphology-utils/merge-clique.d.ts +3 -0
  2030. package/node_modules/graphology-utils/merge-clique.js +28 -0
  2031. package/node_modules/graphology-utils/merge-cycle.d.ts +3 -0
  2032. package/node_modules/graphology-utils/merge-cycle.js +31 -0
  2033. package/node_modules/graphology-utils/merge-path.d.ts +3 -0
  2034. package/node_modules/graphology-utils/merge-path.js +27 -0
  2035. package/node_modules/graphology-utils/merge-star.d.ts +3 -0
  2036. package/node_modules/graphology-utils/merge-star.js +28 -0
  2037. package/node_modules/graphology-utils/package.json +56 -0
  2038. package/node_modules/graphology-utils/rename-graph-keys.d.ts +7 -0
  2039. package/node_modules/graphology-utils/rename-graph-keys.js +68 -0
  2040. package/node_modules/graphology-utils/update-graph-keys.d.ts +18 -0
  2041. package/node_modules/graphology-utils/update-graph-keys.js +69 -0
  2042. package/node_modules/has-symbols/.eslintrc +11 -0
  2043. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  2044. package/node_modules/has-symbols/.nycrc +9 -0
  2045. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  2046. package/node_modules/has-symbols/LICENSE +21 -0
  2047. package/node_modules/has-symbols/README.md +46 -0
  2048. package/node_modules/has-symbols/index.d.ts +3 -0
  2049. package/node_modules/has-symbols/index.js +14 -0
  2050. package/node_modules/has-symbols/package.json +111 -0
  2051. package/node_modules/has-symbols/shams.d.ts +3 -0
  2052. package/node_modules/has-symbols/shams.js +45 -0
  2053. package/node_modules/has-symbols/test/index.js +22 -0
  2054. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  2055. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  2056. package/node_modules/has-symbols/test/tests.js +58 -0
  2057. package/node_modules/has-symbols/tsconfig.json +10 -0
  2058. package/node_modules/hasown/.eslintrc +5 -0
  2059. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  2060. package/node_modules/hasown/.nycrc +13 -0
  2061. package/node_modules/hasown/CHANGELOG.md +40 -0
  2062. package/node_modules/hasown/LICENSE +21 -0
  2063. package/node_modules/hasown/README.md +40 -0
  2064. package/node_modules/hasown/index.d.ts +3 -0
  2065. package/node_modules/hasown/index.js +8 -0
  2066. package/node_modules/hasown/package.json +92 -0
  2067. package/node_modules/hasown/tsconfig.json +6 -0
  2068. package/node_modules/http-errors/HISTORY.md +186 -0
  2069. package/node_modules/http-errors/LICENSE +23 -0
  2070. package/node_modules/http-errors/README.md +169 -0
  2071. package/node_modules/http-errors/index.js +290 -0
  2072. package/node_modules/http-errors/package.json +54 -0
  2073. package/node_modules/ieee754/LICENSE +11 -0
  2074. package/node_modules/ieee754/README.md +51 -0
  2075. package/node_modules/ieee754/index.d.ts +10 -0
  2076. package/node_modules/ieee754/index.js +85 -0
  2077. package/node_modules/ieee754/package.json +52 -0
  2078. package/node_modules/inherits/LICENSE +16 -0
  2079. package/node_modules/inherits/README.md +42 -0
  2080. package/node_modules/inherits/inherits.js +9 -0
  2081. package/node_modules/inherits/inherits_browser.js +27 -0
  2082. package/node_modules/inherits/package.json +29 -0
  2083. package/node_modules/ini/LICENSE +15 -0
  2084. package/node_modules/ini/README.md +102 -0
  2085. package/node_modules/ini/ini.js +206 -0
  2086. package/node_modules/ini/package.json +33 -0
  2087. package/node_modules/ipaddr.js/LICENSE +19 -0
  2088. package/node_modules/ipaddr.js/README.md +233 -0
  2089. package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
  2090. package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
  2091. package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
  2092. package/node_modules/ipaddr.js/package.json +35 -0
  2093. package/node_modules/is-promise/LICENSE +19 -0
  2094. package/node_modules/is-promise/index.d.ts +2 -0
  2095. package/node_modules/is-promise/index.js +6 -0
  2096. package/node_modules/is-promise/index.mjs +3 -0
  2097. package/node_modules/is-promise/package.json +30 -0
  2098. package/node_modules/is-promise/readme.md +33 -0
  2099. package/node_modules/isexe/.npmignore +2 -0
  2100. package/node_modules/isexe/LICENSE +15 -0
  2101. package/node_modules/isexe/README.md +51 -0
  2102. package/node_modules/isexe/index.js +57 -0
  2103. package/node_modules/isexe/mode.js +41 -0
  2104. package/node_modules/isexe/package.json +31 -0
  2105. package/node_modules/isexe/test/basic.js +221 -0
  2106. package/node_modules/isexe/windows.js +42 -0
  2107. package/node_modules/jose/LICENSE.md +21 -0
  2108. package/node_modules/jose/README.md +153 -0
  2109. package/node_modules/jose/dist/types/index.d.ts +55 -0
  2110. package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +31 -0
  2111. package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +65 -0
  2112. package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +31 -0
  2113. package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +83 -0
  2114. package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +31 -0
  2115. package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +74 -0
  2116. package/node_modules/jose/dist/types/jwk/embedded.d.ts +17 -0
  2117. package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +32 -0
  2118. package/node_modules/jose/dist/types/jwks/local.d.ts +29 -0
  2119. package/node_modules/jose/dist/types/jwks/remote.d.ts +237 -0
  2120. package/node_modules/jose/dist/types/jws/compact/sign.d.ts +36 -0
  2121. package/node_modules/jose/dist/types/jws/compact/verify.d.ts +33 -0
  2122. package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +42 -0
  2123. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +33 -0
  2124. package/node_modules/jose/dist/types/jws/general/sign.d.ts +53 -0
  2125. package/node_modules/jose/dist/types/jws/general/verify.d.ts +33 -0
  2126. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +35 -0
  2127. package/node_modules/jose/dist/types/jwt/encrypt.d.ts +91 -0
  2128. package/node_modules/jose/dist/types/jwt/sign.d.ts +43 -0
  2129. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +43 -0
  2130. package/node_modules/jose/dist/types/jwt/verify.d.ts +37 -0
  2131. package/node_modules/jose/dist/types/key/export.d.ts +33 -0
  2132. package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +47 -0
  2133. package/node_modules/jose/dist/types/key/generate_secret.d.ts +35 -0
  2134. package/node_modules/jose/dist/types/key/import.d.ts +83 -0
  2135. package/node_modules/jose/dist/types/types.d.ts +841 -0
  2136. package/node_modules/jose/dist/types/util/base64url.d.ts +9 -0
  2137. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +18 -0
  2138. package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +17 -0
  2139. package/node_modules/jose/dist/types/util/errors.d.ts +213 -0
  2140. package/node_modules/jose/dist/webapi/index.js +32 -0
  2141. package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +27 -0
  2142. package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
  2143. package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +165 -0
  2144. package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +169 -0
  2145. package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +31 -0
  2146. package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +187 -0
  2147. package/node_modules/jose/dist/webapi/jwk/embedded.js +17 -0
  2148. package/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
  2149. package/node_modules/jose/dist/webapi/jwks/local.js +119 -0
  2150. package/node_modules/jose/dist/webapi/jwks/remote.js +179 -0
  2151. package/node_modules/jose/dist/webapi/jws/compact/sign.js +18 -0
  2152. package/node_modules/jose/dist/webapi/jws/compact/verify.js +21 -0
  2153. package/node_modules/jose/dist/webapi/jws/flattened/sign.js +92 -0
  2154. package/node_modules/jose/dist/webapi/jws/flattened/verify.js +120 -0
  2155. package/node_modules/jose/dist/webapi/jws/general/sign.js +73 -0
  2156. package/node_modules/jose/dist/webapi/jws/general/verify.js +24 -0
  2157. package/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
  2158. package/node_modules/jose/dist/webapi/jwt/encrypt.js +108 -0
  2159. package/node_modules/jose/dist/webapi/jwt/sign.js +52 -0
  2160. package/node_modules/jose/dist/webapi/jwt/unsecured.js +63 -0
  2161. package/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
  2162. package/node_modules/jose/dist/webapi/key/export.js +11 -0
  2163. package/node_modules/jose/dist/webapi/key/generate_key_pair.js +97 -0
  2164. package/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
  2165. package/node_modules/jose/dist/webapi/key/import.js +57 -0
  2166. package/node_modules/jose/dist/webapi/lib/aesgcmkw.js +16 -0
  2167. package/node_modules/jose/dist/webapi/lib/aeskw.js +25 -0
  2168. package/node_modules/jose/dist/webapi/lib/asn1.js +243 -0
  2169. package/node_modules/jose/dist/webapi/lib/base64.js +22 -0
  2170. package/node_modules/jose/dist/webapi/lib/buffer_utils.js +43 -0
  2171. package/node_modules/jose/dist/webapi/lib/cek.js +19 -0
  2172. package/node_modules/jose/dist/webapi/lib/check_cek_length.js +7 -0
  2173. package/node_modules/jose/dist/webapi/lib/check_iv_length.js +7 -0
  2174. package/node_modules/jose/dist/webapi/lib/check_key_length.js +8 -0
  2175. package/node_modules/jose/dist/webapi/lib/check_key_type.js +122 -0
  2176. package/node_modules/jose/dist/webapi/lib/crypto_key.js +143 -0
  2177. package/node_modules/jose/dist/webapi/lib/decrypt.js +106 -0
  2178. package/node_modules/jose/dist/webapi/lib/decrypt_key_management.js +127 -0
  2179. package/node_modules/jose/dist/webapi/lib/digest.js +4 -0
  2180. package/node_modules/jose/dist/webapi/lib/ecdhes.js +52 -0
  2181. package/node_modules/jose/dist/webapi/lib/encrypt.js +74 -0
  2182. package/node_modules/jose/dist/webapi/lib/encrypt_key_management.js +92 -0
  2183. package/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js +12 -0
  2184. package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +27 -0
  2185. package/node_modules/jose/dist/webapi/lib/is_disjoint.js +21 -0
  2186. package/node_modules/jose/dist/webapi/lib/is_jwk.js +6 -0
  2187. package/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -0
  2188. package/node_modules/jose/dist/webapi/lib/is_object.js +14 -0
  2189. package/node_modules/jose/dist/webapi/lib/iv.js +19 -0
  2190. package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +109 -0
  2191. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +238 -0
  2192. package/node_modules/jose/dist/webapi/lib/key_to_jwk.js +31 -0
  2193. package/node_modules/jose/dist/webapi/lib/normalize_key.js +176 -0
  2194. package/node_modules/jose/dist/webapi/lib/pbes2kw.js +39 -0
  2195. package/node_modules/jose/dist/webapi/lib/private_symbols.js +1 -0
  2196. package/node_modules/jose/dist/webapi/lib/rsaes.js +24 -0
  2197. package/node_modules/jose/dist/webapi/lib/sign.js +9 -0
  2198. package/node_modules/jose/dist/webapi/lib/subtle_dsa.js +31 -0
  2199. package/node_modules/jose/dist/webapi/lib/validate_algorithms.js +10 -0
  2200. package/node_modules/jose/dist/webapi/lib/validate_crit.js +33 -0
  2201. package/node_modules/jose/dist/webapi/lib/verify.js +14 -0
  2202. package/node_modules/jose/dist/webapi/util/base64url.js +30 -0
  2203. package/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
  2204. package/node_modules/jose/dist/webapi/util/decode_protected_header.js +34 -0
  2205. package/node_modules/jose/dist/webapi/util/errors.js +99 -0
  2206. package/node_modules/jose/package.json +200 -0
  2207. package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  2208. package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  2209. package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  2210. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  2211. package/node_modules/json-schema-traverse/LICENSE +21 -0
  2212. package/node_modules/json-schema-traverse/README.md +95 -0
  2213. package/node_modules/json-schema-traverse/index.d.ts +40 -0
  2214. package/node_modules/json-schema-traverse/index.js +93 -0
  2215. package/node_modules/json-schema-traverse/package.json +43 -0
  2216. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  2217. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  2218. package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  2219. package/node_modules/json-schema-typed/LICENSE.md +57 -0
  2220. package/node_modules/json-schema-typed/README.md +108 -0
  2221. package/node_modules/json-schema-typed/draft_07.d.ts +882 -0
  2222. package/node_modules/json-schema-typed/draft_07.js +328 -0
  2223. package/node_modules/json-schema-typed/draft_2019_09.d.ts +1247 -0
  2224. package/node_modules/json-schema-typed/draft_2019_09.js +349 -0
  2225. package/node_modules/json-schema-typed/draft_2020_12.d.ts +1239 -0
  2226. package/node_modules/json-schema-typed/draft_2020_12.js +352 -0
  2227. package/node_modules/json-schema-typed/package.json +44 -0
  2228. package/node_modules/math-intrinsics/.eslintrc +16 -0
  2229. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  2230. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  2231. package/node_modules/math-intrinsics/LICENSE +21 -0
  2232. package/node_modules/math-intrinsics/README.md +50 -0
  2233. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  2234. package/node_modules/math-intrinsics/abs.js +4 -0
  2235. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  2236. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  2237. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  2238. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  2239. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  2240. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  2241. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  2242. package/node_modules/math-intrinsics/floor.js +4 -0
  2243. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  2244. package/node_modules/math-intrinsics/isFinite.js +12 -0
  2245. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  2246. package/node_modules/math-intrinsics/isInteger.js +16 -0
  2247. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  2248. package/node_modules/math-intrinsics/isNaN.js +6 -0
  2249. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  2250. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  2251. package/node_modules/math-intrinsics/max.d.ts +1 -0
  2252. package/node_modules/math-intrinsics/max.js +4 -0
  2253. package/node_modules/math-intrinsics/min.d.ts +1 -0
  2254. package/node_modules/math-intrinsics/min.js +4 -0
  2255. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  2256. package/node_modules/math-intrinsics/mod.js +9 -0
  2257. package/node_modules/math-intrinsics/package.json +86 -0
  2258. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  2259. package/node_modules/math-intrinsics/pow.js +4 -0
  2260. package/node_modules/math-intrinsics/round.d.ts +1 -0
  2261. package/node_modules/math-intrinsics/round.js +4 -0
  2262. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  2263. package/node_modules/math-intrinsics/sign.js +11 -0
  2264. package/node_modules/math-intrinsics/test/index.js +192 -0
  2265. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  2266. package/node_modules/mimic-response/index.d.ts +17 -0
  2267. package/node_modules/mimic-response/index.js +77 -0
  2268. package/node_modules/mimic-response/license +9 -0
  2269. package/node_modules/mimic-response/package.json +42 -0
  2270. package/node_modules/mimic-response/readme.md +78 -0
  2271. package/node_modules/minimist/.eslintrc +29 -0
  2272. package/node_modules/minimist/.github/FUNDING.yml +12 -0
  2273. package/node_modules/minimist/.nycrc +14 -0
  2274. package/node_modules/minimist/CHANGELOG.md +298 -0
  2275. package/node_modules/minimist/LICENSE +18 -0
  2276. package/node_modules/minimist/README.md +121 -0
  2277. package/node_modules/minimist/example/parse.js +4 -0
  2278. package/node_modules/minimist/index.js +263 -0
  2279. package/node_modules/minimist/package.json +75 -0
  2280. package/node_modules/minimist/test/all_bool.js +34 -0
  2281. package/node_modules/minimist/test/bool.js +177 -0
  2282. package/node_modules/minimist/test/dash.js +43 -0
  2283. package/node_modules/minimist/test/default_bool.js +37 -0
  2284. package/node_modules/minimist/test/dotted.js +24 -0
  2285. package/node_modules/minimist/test/kv_short.js +32 -0
  2286. package/node_modules/minimist/test/long.js +33 -0
  2287. package/node_modules/minimist/test/num.js +38 -0
  2288. package/node_modules/minimist/test/parse.js +209 -0
  2289. package/node_modules/minimist/test/parse_modified.js +11 -0
  2290. package/node_modules/minimist/test/proto.js +64 -0
  2291. package/node_modules/minimist/test/short.js +69 -0
  2292. package/node_modules/minimist/test/stop_early.js +17 -0
  2293. package/node_modules/minimist/test/unknown.js +104 -0
  2294. package/node_modules/minimist/test/whitespace.js +10 -0
  2295. package/node_modules/mkdirp-classic/LICENSE +21 -0
  2296. package/node_modules/mkdirp-classic/README.md +18 -0
  2297. package/node_modules/mkdirp-classic/index.js +98 -0
  2298. package/node_modules/mkdirp-classic/package.json +18 -0
  2299. package/node_modules/mnemonist/LICENSE.txt +21 -0
  2300. package/node_modules/mnemonist/README.md +112 -0
  2301. package/node_modules/mnemonist/bi-map.d.ts +49 -0
  2302. package/node_modules/mnemonist/bi-map.js +195 -0
  2303. package/node_modules/mnemonist/bit-set.d.ts +29 -0
  2304. package/node_modules/mnemonist/bit-set.js +379 -0
  2305. package/node_modules/mnemonist/bit-vector.d.ts +42 -0
  2306. package/node_modules/mnemonist/bit-vector.js +550 -0
  2307. package/node_modules/mnemonist/bk-tree.d.ts +24 -0
  2308. package/node_modules/mnemonist/bk-tree.js +180 -0
  2309. package/node_modules/mnemonist/bloom-filter.d.ts +29 -0
  2310. package/node_modules/mnemonist/bloom-filter.js +186 -0
  2311. package/node_modules/mnemonist/circular-buffer.d.ts +34 -0
  2312. package/node_modules/mnemonist/circular-buffer.js +140 -0
  2313. package/node_modules/mnemonist/critbit-tree-map.js +515 -0
  2314. package/node_modules/mnemonist/default-map.d.ts +29 -0
  2315. package/node_modules/mnemonist/default-map.js +162 -0
  2316. package/node_modules/mnemonist/default-weak-map.d.ts +18 -0
  2317. package/node_modules/mnemonist/default-weak-map.js +108 -0
  2318. package/node_modules/mnemonist/fibonacci-heap.d.ts +71 -0
  2319. package/node_modules/mnemonist/fibonacci-heap.js +320 -0
  2320. package/node_modules/mnemonist/fixed-critbit-tree-map.js +427 -0
  2321. package/node_modules/mnemonist/fixed-deque.d.ts +34 -0
  2322. package/node_modules/mnemonist/fixed-deque.js +357 -0
  2323. package/node_modules/mnemonist/fixed-reverse-heap.d.ts +25 -0
  2324. package/node_modules/mnemonist/fixed-reverse-heap.js +209 -0
  2325. package/node_modules/mnemonist/fixed-stack.d.ts +36 -0
  2326. package/node_modules/mnemonist/fixed-stack.js +242 -0
  2327. package/node_modules/mnemonist/fuzzy-map.d.ts +33 -0
  2328. package/node_modules/mnemonist/fuzzy-map.js +185 -0
  2329. package/node_modules/mnemonist/fuzzy-multi-map.d.ts +36 -0
  2330. package/node_modules/mnemonist/fuzzy-multi-map.js +196 -0
  2331. package/node_modules/mnemonist/hashed-array-tree.d.ts +32 -0
  2332. package/node_modules/mnemonist/hashed-array-tree.js +209 -0
  2333. package/node_modules/mnemonist/heap.d.ts +96 -0
  2334. package/node_modules/mnemonist/heap.js +576 -0
  2335. package/node_modules/mnemonist/index.d.ts +48 -0
  2336. package/node_modules/mnemonist/index.js +58 -0
  2337. package/node_modules/mnemonist/inverted-index.d.ts +33 -0
  2338. package/node_modules/mnemonist/inverted-index.js +249 -0
  2339. package/node_modules/mnemonist/kd-tree.d.ts +28 -0
  2340. package/node_modules/mnemonist/kd-tree.js +447 -0
  2341. package/node_modules/mnemonist/linked-list.d.ts +32 -0
  2342. package/node_modules/mnemonist/linked-list.js +261 -0
  2343. package/node_modules/mnemonist/lru-cache-with-delete.d.ts +13 -0
  2344. package/node_modules/mnemonist/lru-cache-with-delete.js +287 -0
  2345. package/node_modules/mnemonist/lru-cache.d.ts +43 -0
  2346. package/node_modules/mnemonist/lru-cache.js +436 -0
  2347. package/node_modules/mnemonist/lru-map-with-delete.d.ts +13 -0
  2348. package/node_modules/mnemonist/lru-map-with-delete.js +287 -0
  2349. package/node_modules/mnemonist/lru-map.d.ts +43 -0
  2350. package/node_modules/mnemonist/lru-map.js +261 -0
  2351. package/node_modules/mnemonist/multi-array.js +447 -0
  2352. package/node_modules/mnemonist/multi-map.d.ts +47 -0
  2353. package/node_modules/mnemonist/multi-map.js +408 -0
  2354. package/node_modules/mnemonist/multi-set.d.ts +40 -0
  2355. package/node_modules/mnemonist/multi-set.js +445 -0
  2356. package/node_modules/mnemonist/package.json +104 -0
  2357. package/node_modules/mnemonist/passjoin-index.d.ts +54 -0
  2358. package/node_modules/mnemonist/passjoin-index.js +518 -0
  2359. package/node_modules/mnemonist/queue.d.ts +30 -0
  2360. package/node_modules/mnemonist/queue.js +215 -0
  2361. package/node_modules/mnemonist/semi-dynamic-trie.js +251 -0
  2362. package/node_modules/mnemonist/set.d.ts +18 -0
  2363. package/node_modules/mnemonist/set.js +356 -0
  2364. package/node_modules/mnemonist/sort/insertion.d.ts +4 -0
  2365. package/node_modules/mnemonist/sort/insertion.js +50 -0
  2366. package/node_modules/mnemonist/sort/quick.d.ts +4 -0
  2367. package/node_modules/mnemonist/sort/quick.js +116 -0
  2368. package/node_modules/mnemonist/sparse-map.d.ts +26 -0
  2369. package/node_modules/mnemonist/sparse-map.js +243 -0
  2370. package/node_modules/mnemonist/sparse-queue-set.d.ts +24 -0
  2371. package/node_modules/mnemonist/sparse-queue-set.js +218 -0
  2372. package/node_modules/mnemonist/sparse-set.d.ts +23 -0
  2373. package/node_modules/mnemonist/sparse-set.js +168 -0
  2374. package/node_modules/mnemonist/stack.d.ts +30 -0
  2375. package/node_modules/mnemonist/stack.js +210 -0
  2376. package/node_modules/mnemonist/static-disjoint-set.d.ts +23 -0
  2377. package/node_modules/mnemonist/static-disjoint-set.js +195 -0
  2378. package/node_modules/mnemonist/static-interval-tree.d.ts +27 -0
  2379. package/node_modules/mnemonist/static-interval-tree.js +387 -0
  2380. package/node_modules/mnemonist/suffix-array.d.ts +37 -0
  2381. package/node_modules/mnemonist/suffix-array.js +352 -0
  2382. package/node_modules/mnemonist/symspell.d.ts +33 -0
  2383. package/node_modules/mnemonist/symspell.js +547 -0
  2384. package/node_modules/mnemonist/trie-map.d.ts +30 -0
  2385. package/node_modules/mnemonist/trie-map.js +477 -0
  2386. package/node_modules/mnemonist/trie.d.ts +26 -0
  2387. package/node_modules/mnemonist/trie.js +167 -0
  2388. package/node_modules/mnemonist/utils/binary-search.js +216 -0
  2389. package/node_modules/mnemonist/utils/bitwise.js +109 -0
  2390. package/node_modules/mnemonist/utils/comparators.js +79 -0
  2391. package/node_modules/mnemonist/utils/hash-tables.js +107 -0
  2392. package/node_modules/mnemonist/utils/iterables.js +93 -0
  2393. package/node_modules/mnemonist/utils/merge.js +563 -0
  2394. package/node_modules/mnemonist/utils/murmurhash3.js +87 -0
  2395. package/node_modules/mnemonist/utils/typed-arrays.d.ts +10 -0
  2396. package/node_modules/mnemonist/utils/typed-arrays.js +187 -0
  2397. package/node_modules/mnemonist/utils/types.d.ts +18 -0
  2398. package/node_modules/mnemonist/vector.d.ts +81 -0
  2399. package/node_modules/mnemonist/vector.js +373 -0
  2400. package/node_modules/mnemonist/vp-tree.d.ts +27 -0
  2401. package/node_modules/mnemonist/vp-tree.js +367 -0
  2402. package/node_modules/ms/index.js +162 -0
  2403. package/node_modules/ms/license.md +21 -0
  2404. package/node_modules/ms/package.json +38 -0
  2405. package/node_modules/ms/readme.md +59 -0
  2406. package/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +31 -0
  2407. package/node_modules/napi-build-utils/LICENSE +21 -0
  2408. package/node_modules/napi-build-utils/README.md +52 -0
  2409. package/node_modules/napi-build-utils/index.js +214 -0
  2410. package/node_modules/napi-build-utils/index.md +0 -0
  2411. package/node_modules/napi-build-utils/package.json +42 -0
  2412. package/node_modules/node-abi/LICENSE +21 -0
  2413. package/node_modules/node-abi/README.md +54 -0
  2414. package/node_modules/node-abi/abi_registry.json +425 -0
  2415. package/node_modules/node-abi/index.js +179 -0
  2416. package/node_modules/node-abi/package.json +45 -0
  2417. package/node_modules/object-assign/index.js +90 -0
  2418. package/node_modules/object-assign/license +21 -0
  2419. package/node_modules/object-assign/package.json +42 -0
  2420. package/node_modules/object-assign/readme.md +61 -0
  2421. package/node_modules/object-inspect/.eslintrc +53 -0
  2422. package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
  2423. package/node_modules/object-inspect/.nycrc +13 -0
  2424. package/node_modules/object-inspect/CHANGELOG.md +424 -0
  2425. package/node_modules/object-inspect/LICENSE +21 -0
  2426. package/node_modules/object-inspect/example/all.js +23 -0
  2427. package/node_modules/object-inspect/example/circular.js +6 -0
  2428. package/node_modules/object-inspect/example/fn.js +5 -0
  2429. package/node_modules/object-inspect/example/inspect.js +10 -0
  2430. package/node_modules/object-inspect/index.js +544 -0
  2431. package/node_modules/object-inspect/package-support.json +20 -0
  2432. package/node_modules/object-inspect/package.json +105 -0
  2433. package/node_modules/object-inspect/readme.markdown +84 -0
  2434. package/node_modules/object-inspect/test/bigint.js +58 -0
  2435. package/node_modules/object-inspect/test/browser/dom.js +15 -0
  2436. package/node_modules/object-inspect/test/circular.js +16 -0
  2437. package/node_modules/object-inspect/test/deep.js +12 -0
  2438. package/node_modules/object-inspect/test/element.js +53 -0
  2439. package/node_modules/object-inspect/test/err.js +48 -0
  2440. package/node_modules/object-inspect/test/fakes.js +29 -0
  2441. package/node_modules/object-inspect/test/fn.js +76 -0
  2442. package/node_modules/object-inspect/test/global.js +17 -0
  2443. package/node_modules/object-inspect/test/has.js +15 -0
  2444. package/node_modules/object-inspect/test/holes.js +15 -0
  2445. package/node_modules/object-inspect/test/indent-option.js +271 -0
  2446. package/node_modules/object-inspect/test/inspect.js +139 -0
  2447. package/node_modules/object-inspect/test/lowbyte.js +12 -0
  2448. package/node_modules/object-inspect/test/number.js +58 -0
  2449. package/node_modules/object-inspect/test/quoteStyle.js +26 -0
  2450. package/node_modules/object-inspect/test/toStringTag.js +40 -0
  2451. package/node_modules/object-inspect/test/undef.js +12 -0
  2452. package/node_modules/object-inspect/test/values.js +261 -0
  2453. package/node_modules/object-inspect/test-core-js.js +26 -0
  2454. package/node_modules/object-inspect/util.inspect.js +1 -0
  2455. package/node_modules/obliterator/LICENSE.txt +21 -0
  2456. package/node_modules/obliterator/README.md +415 -0
  2457. package/node_modules/obliterator/chain.d.ts +5 -0
  2458. package/node_modules/obliterator/chain.js +46 -0
  2459. package/node_modules/obliterator/combinations.d.ts +4 -0
  2460. package/node_modules/obliterator/combinations.js +76 -0
  2461. package/node_modules/obliterator/consume.d.ts +1 -0
  2462. package/node_modules/obliterator/consume.js +29 -0
  2463. package/node_modules/obliterator/every.d.ts +8 -0
  2464. package/node_modules/obliterator/every.js +27 -0
  2465. package/node_modules/obliterator/filter.d.ts +8 -0
  2466. package/node_modules/obliterator/filter.js +28 -0
  2467. package/node_modules/obliterator/find.d.ts +8 -0
  2468. package/node_modules/obliterator/find.js +27 -0
  2469. package/node_modules/obliterator/foreach-with-null-keys.d.ts +29 -0
  2470. package/node_modules/obliterator/foreach-with-null-keys.js +93 -0
  2471. package/node_modules/obliterator/foreach.d.ts +24 -0
  2472. package/node_modules/obliterator/foreach.js +73 -0
  2473. package/node_modules/obliterator/includes.d.ts +6 -0
  2474. package/node_modules/obliterator/includes.js +27 -0
  2475. package/node_modules/obliterator/index.d.ts +20 -0
  2476. package/node_modules/obliterator/index.js +26 -0
  2477. package/node_modules/obliterator/iter.d.ts +1 -0
  2478. package/node_modules/obliterator/iter.js +46 -0
  2479. package/node_modules/obliterator/iterator.d.ts +18 -0
  2480. package/node_modules/obliterator/iterator.js +96 -0
  2481. package/node_modules/obliterator/map.d.ts +8 -0
  2482. package/node_modules/obliterator/map.js +29 -0
  2483. package/node_modules/obliterator/match.d.ts +4 -0
  2484. package/node_modules/obliterator/match.js +43 -0
  2485. package/node_modules/obliterator/package.json +46 -0
  2486. package/node_modules/obliterator/permutations.d.ts +4 -0
  2487. package/node_modules/obliterator/permutations.js +94 -0
  2488. package/node_modules/obliterator/power-set.d.ts +3 -0
  2489. package/node_modules/obliterator/power-set.js +27 -0
  2490. package/node_modules/obliterator/range.d.ts +10 -0
  2491. package/node_modules/obliterator/range.js +44 -0
  2492. package/node_modules/obliterator/some.d.ts +8 -0
  2493. package/node_modules/obliterator/some.js +27 -0
  2494. package/node_modules/obliterator/split.d.ts +4 -0
  2495. package/node_modules/obliterator/split.js +68 -0
  2496. package/node_modules/obliterator/support.js +2 -0
  2497. package/node_modules/obliterator/take-into.d.ts +9 -0
  2498. package/node_modules/obliterator/take-into.js +39 -0
  2499. package/node_modules/obliterator/take.d.ts +6 -0
  2500. package/node_modules/obliterator/take.js +39 -0
  2501. package/node_modules/obliterator/types.d.ts +18 -0
  2502. package/node_modules/on-finished/HISTORY.md +98 -0
  2503. package/node_modules/on-finished/LICENSE +23 -0
  2504. package/node_modules/on-finished/README.md +162 -0
  2505. package/node_modules/on-finished/index.js +234 -0
  2506. package/node_modules/on-finished/package.json +39 -0
  2507. package/node_modules/once/LICENSE +15 -0
  2508. package/node_modules/once/README.md +79 -0
  2509. package/node_modules/once/once.js +42 -0
  2510. package/node_modules/once/package.json +33 -0
  2511. package/node_modules/pandemonium/LICENSE.txt +21 -0
  2512. package/node_modules/pandemonium/README.md +639 -0
  2513. package/node_modules/pandemonium/choice.d.ts +12 -0
  2514. package/node_modules/pandemonium/choice.js +38 -0
  2515. package/node_modules/pandemonium/dangerously-mutating-sample.d.ts +19 -0
  2516. package/node_modules/pandemonium/dangerously-mutating-sample.js +73 -0
  2517. package/node_modules/pandemonium/fisher-yates-permutation.d.ts +10 -0
  2518. package/node_modules/pandemonium/fisher-yates-permutation.js +66 -0
  2519. package/node_modules/pandemonium/fisher-yates-sample.d.ts +14 -0
  2520. package/node_modules/pandemonium/fisher-yates-sample.js +58 -0
  2521. package/node_modules/pandemonium/geometric-reservoir-sample.d.ts +19 -0
  2522. package/node_modules/pandemonium/geometric-reservoir-sample.js +85 -0
  2523. package/node_modules/pandemonium/index.d.ts +60 -0
  2524. package/node_modules/pandemonium/index.js +108 -0
  2525. package/node_modules/pandemonium/naive-sample.d.ts +15 -0
  2526. package/node_modules/pandemonium/naive-sample.js +65 -0
  2527. package/node_modules/pandemonium/package.json +57 -0
  2528. package/node_modules/pandemonium/random-boolean.d.ts +12 -0
  2529. package/node_modules/pandemonium/random-boolean.js +34 -0
  2530. package/node_modules/pandemonium/random-float.d.ts +12 -0
  2531. package/node_modules/pandemonium/random-float.js +36 -0
  2532. package/node_modules/pandemonium/random-index.d.ts +12 -0
  2533. package/node_modules/pandemonium/random-index.js +37 -0
  2534. package/node_modules/pandemonium/random-ordered-pair.d.ts +14 -0
  2535. package/node_modules/pandemonium/random-ordered-pair.js +50 -0
  2536. package/node_modules/pandemonium/random-pair.d.ts +12 -0
  2537. package/node_modules/pandemonium/random-pair.js +59 -0
  2538. package/node_modules/pandemonium/random-string.d.ts +19 -0
  2539. package/node_modules/pandemonium/random-string.js +59 -0
  2540. package/node_modules/pandemonium/random-typed-int.d.ts +4 -0
  2541. package/node_modules/pandemonium/random-typed-int.js +28 -0
  2542. package/node_modules/pandemonium/random.d.ts +12 -0
  2543. package/node_modules/pandemonium/random.js +36 -0
  2544. package/node_modules/pandemonium/reservoir-sample.d.ts +21 -0
  2545. package/node_modules/pandemonium/reservoir-sample.js +100 -0
  2546. package/node_modules/pandemonium/sample-ordered-pairs.d.ts +17 -0
  2547. package/node_modules/pandemonium/sample-ordered-pairs.js +60 -0
  2548. package/node_modules/pandemonium/sample-pairs.d.ts +15 -0
  2549. package/node_modules/pandemonium/sample-pairs.js +67 -0
  2550. package/node_modules/pandemonium/sample-with-replacements.d.ts +19 -0
  2551. package/node_modules/pandemonium/sample-with-replacements.js +52 -0
  2552. package/node_modules/pandemonium/shuffle-in-place.d.ts +14 -0
  2553. package/node_modules/pandemonium/shuffle-in-place.js +49 -0
  2554. package/node_modules/pandemonium/shuffle.d.ts +12 -0
  2555. package/node_modules/pandemonium/shuffle.js +43 -0
  2556. package/node_modules/pandemonium/test.js +1292 -0
  2557. package/node_modules/pandemonium/types.d.ts +1 -0
  2558. package/node_modules/pandemonium/utils.d.ts +15 -0
  2559. package/node_modules/pandemonium/utils.js +66 -0
  2560. package/node_modules/pandemonium/weighted-choice.d.ts +45 -0
  2561. package/node_modules/pandemonium/weighted-choice.js +67 -0
  2562. package/node_modules/pandemonium/weighted-random-index.d.ts +47 -0
  2563. package/node_modules/pandemonium/weighted-random-index.js +161 -0
  2564. package/node_modules/pandemonium/weighted-reservoir-sample.d.ts +39 -0
  2565. package/node_modules/pandemonium/weighted-reservoir-sample.js +158 -0
  2566. package/node_modules/parseurl/HISTORY.md +58 -0
  2567. package/node_modules/parseurl/LICENSE +24 -0
  2568. package/node_modules/parseurl/README.md +133 -0
  2569. package/node_modules/parseurl/index.js +158 -0
  2570. package/node_modules/parseurl/package.json +40 -0
  2571. package/node_modules/path-key/index.d.ts +40 -0
  2572. package/node_modules/path-key/index.js +16 -0
  2573. package/node_modules/path-key/license +9 -0
  2574. package/node_modules/path-key/package.json +39 -0
  2575. package/node_modules/path-key/readme.md +61 -0
  2576. package/node_modules/pkce-challenge/CHANGELOG.md +114 -0
  2577. package/node_modules/pkce-challenge/LICENSE +21 -0
  2578. package/node_modules/pkce-challenge/README.md +55 -0
  2579. package/node_modules/pkce-challenge/dist/index.browser.d.ts +19 -0
  2580. package/node_modules/pkce-challenge/dist/index.browser.js +75 -0
  2581. package/node_modules/pkce-challenge/dist/index.node.cjs +83 -0
  2582. package/node_modules/pkce-challenge/dist/index.node.d.cts +19 -0
  2583. package/node_modules/pkce-challenge/dist/index.node.d.ts +19 -0
  2584. package/node_modules/pkce-challenge/dist/index.node.js +78 -0
  2585. package/node_modules/pkce-challenge/package.json +59 -0
  2586. package/node_modules/prebuild-install/CHANGELOG.md +131 -0
  2587. package/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
  2588. package/node_modules/prebuild-install/LICENSE +21 -0
  2589. package/node_modules/prebuild-install/README.md +163 -0
  2590. package/node_modules/prebuild-install/asset.js +44 -0
  2591. package/node_modules/prebuild-install/bin.js +78 -0
  2592. package/node_modules/prebuild-install/download.js +142 -0
  2593. package/node_modules/prebuild-install/error.js +14 -0
  2594. package/node_modules/prebuild-install/help.txt +16 -0
  2595. package/node_modules/prebuild-install/index.js +1 -0
  2596. package/node_modules/prebuild-install/log.js +33 -0
  2597. package/node_modules/prebuild-install/package.json +67 -0
  2598. package/node_modules/prebuild-install/proxy.js +35 -0
  2599. package/node_modules/prebuild-install/rc.js +64 -0
  2600. package/node_modules/prebuild-install/util.js +143 -0
  2601. package/node_modules/proxy-addr/HISTORY.md +161 -0
  2602. package/node_modules/proxy-addr/LICENSE +22 -0
  2603. package/node_modules/proxy-addr/README.md +139 -0
  2604. package/node_modules/proxy-addr/index.js +327 -0
  2605. package/node_modules/proxy-addr/package.json +47 -0
  2606. package/node_modules/pump/.github/FUNDING.yml +2 -0
  2607. package/node_modules/pump/.travis.yml +5 -0
  2608. package/node_modules/pump/LICENSE +21 -0
  2609. package/node_modules/pump/README.md +74 -0
  2610. package/node_modules/pump/SECURITY.md +5 -0
  2611. package/node_modules/pump/index.js +86 -0
  2612. package/node_modules/pump/package.json +24 -0
  2613. package/node_modules/pump/test-browser.js +66 -0
  2614. package/node_modules/pump/test-node.js +53 -0
  2615. package/node_modules/qs/.editorconfig +46 -0
  2616. package/node_modules/qs/.eslintrc +39 -0
  2617. package/node_modules/qs/.github/FUNDING.yml +12 -0
  2618. package/node_modules/qs/.nycrc +13 -0
  2619. package/node_modules/qs/CHANGELOG.md +622 -0
  2620. package/node_modules/qs/LICENSE.md +29 -0
  2621. package/node_modules/qs/README.md +733 -0
  2622. package/node_modules/qs/dist/qs.js +141 -0
  2623. package/node_modules/qs/lib/formats.js +23 -0
  2624. package/node_modules/qs/lib/index.js +11 -0
  2625. package/node_modules/qs/lib/parse.js +328 -0
  2626. package/node_modules/qs/lib/stringify.js +356 -0
  2627. package/node_modules/qs/lib/utils.js +268 -0
  2628. package/node_modules/qs/package.json +93 -0
  2629. package/node_modules/qs/test/empty-keys-cases.js +267 -0
  2630. package/node_modules/qs/test/parse.js +1276 -0
  2631. package/node_modules/qs/test/stringify.js +1306 -0
  2632. package/node_modules/qs/test/utils.js +262 -0
  2633. package/node_modules/range-parser/HISTORY.md +56 -0
  2634. package/node_modules/range-parser/LICENSE +23 -0
  2635. package/node_modules/range-parser/README.md +84 -0
  2636. package/node_modules/range-parser/index.js +162 -0
  2637. package/node_modules/range-parser/package.json +44 -0
  2638. package/node_modules/raw-body/LICENSE +22 -0
  2639. package/node_modules/raw-body/README.md +223 -0
  2640. package/node_modules/raw-body/index.d.ts +85 -0
  2641. package/node_modules/raw-body/index.js +336 -0
  2642. package/node_modules/raw-body/node_modules/iconv-lite/Changelog.md +241 -0
  2643. package/node_modules/raw-body/node_modules/iconv-lite/LICENSE +21 -0
  2644. package/node_modules/raw-body/node_modules/iconv-lite/README.md +138 -0
  2645. package/node_modules/raw-body/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  2646. package/node_modules/raw-body/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  2647. package/node_modules/raw-body/node_modules/iconv-lite/encodings/index.js +23 -0
  2648. package/node_modules/raw-body/node_modules/iconv-lite/encodings/internal.js +218 -0
  2649. package/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  2650. package/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  2651. package/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
  2652. package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  2653. package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  2654. package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  2655. package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  2656. package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  2657. package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  2658. package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  2659. package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  2660. package/node_modules/raw-body/node_modules/iconv-lite/encodings/utf16.js +187 -0
  2661. package/node_modules/raw-body/node_modules/iconv-lite/encodings/utf32.js +307 -0
  2662. package/node_modules/raw-body/node_modules/iconv-lite/encodings/utf7.js +283 -0
  2663. package/node_modules/raw-body/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  2664. package/node_modules/raw-body/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  2665. package/node_modules/raw-body/node_modules/iconv-lite/lib/index.d.ts +131 -0
  2666. package/node_modules/raw-body/node_modules/iconv-lite/lib/index.js +183 -0
  2667. package/node_modules/raw-body/node_modules/iconv-lite/lib/streams.js +105 -0
  2668. package/node_modules/raw-body/node_modules/iconv-lite/package.json +65 -0
  2669. package/node_modules/raw-body/node_modules/iconv-lite/types/encodings.d.ts +423 -0
  2670. package/node_modules/raw-body/package.json +46 -0
  2671. package/node_modules/rc/LICENSE.APACHE2 +15 -0
  2672. package/node_modules/rc/LICENSE.BSD +26 -0
  2673. package/node_modules/rc/LICENSE.MIT +24 -0
  2674. package/node_modules/rc/README.md +227 -0
  2675. package/node_modules/rc/browser.js +7 -0
  2676. package/node_modules/rc/cli.js +4 -0
  2677. package/node_modules/rc/index.js +53 -0
  2678. package/node_modules/rc/lib/utils.js +104 -0
  2679. package/node_modules/rc/package.json +29 -0
  2680. package/node_modules/rc/test/ini.js +16 -0
  2681. package/node_modules/rc/test/nested-env-vars.js +50 -0
  2682. package/node_modules/rc/test/test.js +59 -0
  2683. package/node_modules/require-from-string/index.js +34 -0
  2684. package/node_modules/require-from-string/license +21 -0
  2685. package/node_modules/require-from-string/package.json +28 -0
  2686. package/node_modules/require-from-string/readme.md +56 -0
  2687. package/node_modules/router/HISTORY.md +228 -0
  2688. package/node_modules/router/LICENSE +23 -0
  2689. package/node_modules/router/README.md +416 -0
  2690. package/node_modules/router/index.js +748 -0
  2691. package/node_modules/router/lib/layer.js +247 -0
  2692. package/node_modules/router/lib/route.js +242 -0
  2693. package/node_modules/router/node_modules/path-to-regexp/LICENSE +21 -0
  2694. package/node_modules/router/node_modules/path-to-regexp/Readme.md +224 -0
  2695. package/node_modules/router/node_modules/path-to-regexp/dist/index.d.ts +144 -0
  2696. package/node_modules/router/node_modules/path-to-regexp/dist/index.js +409 -0
  2697. package/node_modules/router/node_modules/path-to-regexp/dist/index.js.map +1 -0
  2698. package/node_modules/router/node_modules/path-to-regexp/package.json +64 -0
  2699. package/node_modules/router/package.json +44 -0
  2700. package/node_modules/safe-buffer/LICENSE +21 -0
  2701. package/node_modules/safe-buffer/README.md +584 -0
  2702. package/node_modules/safe-buffer/index.d.ts +187 -0
  2703. package/node_modules/safe-buffer/index.js +65 -0
  2704. package/node_modules/safe-buffer/package.json +51 -0
  2705. package/node_modules/safer-buffer/LICENSE +21 -0
  2706. package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  2707. package/node_modules/safer-buffer/Readme.md +156 -0
  2708. package/node_modules/safer-buffer/dangerous.js +58 -0
  2709. package/node_modules/safer-buffer/package.json +34 -0
  2710. package/node_modules/safer-buffer/safer.js +77 -0
  2711. package/node_modules/safer-buffer/tests.js +406 -0
  2712. package/node_modules/semver/LICENSE +15 -0
  2713. package/node_modules/semver/README.md +664 -0
  2714. package/node_modules/semver/bin/semver.js +191 -0
  2715. package/node_modules/semver/classes/comparator.js +143 -0
  2716. package/node_modules/semver/classes/index.js +7 -0
  2717. package/node_modules/semver/classes/range.js +557 -0
  2718. package/node_modules/semver/classes/semver.js +333 -0
  2719. package/node_modules/semver/functions/clean.js +8 -0
  2720. package/node_modules/semver/functions/cmp.js +54 -0
  2721. package/node_modules/semver/functions/coerce.js +62 -0
  2722. package/node_modules/semver/functions/compare-build.js +9 -0
  2723. package/node_modules/semver/functions/compare-loose.js +5 -0
  2724. package/node_modules/semver/functions/compare.js +7 -0
  2725. package/node_modules/semver/functions/diff.js +60 -0
  2726. package/node_modules/semver/functions/eq.js +5 -0
  2727. package/node_modules/semver/functions/gt.js +5 -0
  2728. package/node_modules/semver/functions/gte.js +5 -0
  2729. package/node_modules/semver/functions/inc.js +21 -0
  2730. package/node_modules/semver/functions/lt.js +5 -0
  2731. package/node_modules/semver/functions/lte.js +5 -0
  2732. package/node_modules/semver/functions/major.js +5 -0
  2733. package/node_modules/semver/functions/minor.js +5 -0
  2734. package/node_modules/semver/functions/neq.js +5 -0
  2735. package/node_modules/semver/functions/parse.js +18 -0
  2736. package/node_modules/semver/functions/patch.js +5 -0
  2737. package/node_modules/semver/functions/prerelease.js +8 -0
  2738. package/node_modules/semver/functions/rcompare.js +5 -0
  2739. package/node_modules/semver/functions/rsort.js +5 -0
  2740. package/node_modules/semver/functions/satisfies.js +12 -0
  2741. package/node_modules/semver/functions/sort.js +5 -0
  2742. package/node_modules/semver/functions/valid.js +8 -0
  2743. package/node_modules/semver/index.js +91 -0
  2744. package/node_modules/semver/internal/constants.js +37 -0
  2745. package/node_modules/semver/internal/debug.js +11 -0
  2746. package/node_modules/semver/internal/identifiers.js +29 -0
  2747. package/node_modules/semver/internal/lrucache.js +42 -0
  2748. package/node_modules/semver/internal/parse-options.js +17 -0
  2749. package/node_modules/semver/internal/re.js +223 -0
  2750. package/node_modules/semver/package.json +78 -0
  2751. package/node_modules/semver/preload.js +4 -0
  2752. package/node_modules/semver/range.bnf +16 -0
  2753. package/node_modules/semver/ranges/gtr.js +6 -0
  2754. package/node_modules/semver/ranges/intersects.js +9 -0
  2755. package/node_modules/semver/ranges/ltr.js +6 -0
  2756. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  2757. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  2758. package/node_modules/semver/ranges/min-version.js +63 -0
  2759. package/node_modules/semver/ranges/outside.js +82 -0
  2760. package/node_modules/semver/ranges/simplify.js +49 -0
  2761. package/node_modules/semver/ranges/subset.js +249 -0
  2762. package/node_modules/semver/ranges/to-comparators.js +10 -0
  2763. package/node_modules/semver/ranges/valid.js +13 -0
  2764. package/node_modules/setprototypeof/LICENSE +13 -0
  2765. package/node_modules/setprototypeof/README.md +31 -0
  2766. package/node_modules/setprototypeof/index.d.ts +2 -0
  2767. package/node_modules/setprototypeof/index.js +17 -0
  2768. package/node_modules/setprototypeof/package.json +38 -0
  2769. package/node_modules/setprototypeof/test/index.js +24 -0
  2770. package/node_modules/shebang-command/index.js +19 -0
  2771. package/node_modules/shebang-command/license +9 -0
  2772. package/node_modules/shebang-command/package.json +34 -0
  2773. package/node_modules/shebang-command/readme.md +34 -0
  2774. package/node_modules/shebang-regex/index.d.ts +22 -0
  2775. package/node_modules/shebang-regex/index.js +2 -0
  2776. package/node_modules/shebang-regex/license +9 -0
  2777. package/node_modules/shebang-regex/package.json +35 -0
  2778. package/node_modules/shebang-regex/readme.md +33 -0
  2779. package/node_modules/side-channel/.editorconfig +9 -0
  2780. package/node_modules/side-channel/.eslintrc +12 -0
  2781. package/node_modules/side-channel/.github/FUNDING.yml +12 -0
  2782. package/node_modules/side-channel/.nycrc +13 -0
  2783. package/node_modules/side-channel/CHANGELOG.md +110 -0
  2784. package/node_modules/side-channel/LICENSE +21 -0
  2785. package/node_modules/side-channel/README.md +61 -0
  2786. package/node_modules/side-channel/index.d.ts +14 -0
  2787. package/node_modules/side-channel/index.js +43 -0
  2788. package/node_modules/side-channel/package.json +85 -0
  2789. package/node_modules/side-channel/test/index.js +104 -0
  2790. package/node_modules/side-channel/tsconfig.json +9 -0
  2791. package/node_modules/side-channel-list/.editorconfig +9 -0
  2792. package/node_modules/side-channel-list/.eslintrc +11 -0
  2793. package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  2794. package/node_modules/side-channel-list/.nycrc +13 -0
  2795. package/node_modules/side-channel-list/CHANGELOG.md +15 -0
  2796. package/node_modules/side-channel-list/LICENSE +21 -0
  2797. package/node_modules/side-channel-list/README.md +62 -0
  2798. package/node_modules/side-channel-list/index.d.ts +13 -0
  2799. package/node_modules/side-channel-list/index.js +113 -0
  2800. package/node_modules/side-channel-list/list.d.ts +14 -0
  2801. package/node_modules/side-channel-list/package.json +77 -0
  2802. package/node_modules/side-channel-list/test/index.js +104 -0
  2803. package/node_modules/side-channel-list/tsconfig.json +9 -0
  2804. package/node_modules/side-channel-map/.editorconfig +9 -0
  2805. package/node_modules/side-channel-map/.eslintrc +11 -0
  2806. package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
  2807. package/node_modules/side-channel-map/.nycrc +13 -0
  2808. package/node_modules/side-channel-map/CHANGELOG.md +22 -0
  2809. package/node_modules/side-channel-map/LICENSE +21 -0
  2810. package/node_modules/side-channel-map/README.md +62 -0
  2811. package/node_modules/side-channel-map/index.d.ts +15 -0
  2812. package/node_modules/side-channel-map/index.js +68 -0
  2813. package/node_modules/side-channel-map/package.json +80 -0
  2814. package/node_modules/side-channel-map/test/index.js +114 -0
  2815. package/node_modules/side-channel-map/tsconfig.json +9 -0
  2816. package/node_modules/side-channel-weakmap/.editorconfig +9 -0
  2817. package/node_modules/side-channel-weakmap/.eslintrc +12 -0
  2818. package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
  2819. package/node_modules/side-channel-weakmap/.nycrc +13 -0
  2820. package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
  2821. package/node_modules/side-channel-weakmap/LICENSE +21 -0
  2822. package/node_modules/side-channel-weakmap/README.md +62 -0
  2823. package/node_modules/side-channel-weakmap/index.d.ts +15 -0
  2824. package/node_modules/side-channel-weakmap/index.js +84 -0
  2825. package/node_modules/side-channel-weakmap/package.json +87 -0
  2826. package/node_modules/side-channel-weakmap/test/index.js +114 -0
  2827. package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
  2828. package/node_modules/simple-concat/.travis.yml +3 -0
  2829. package/node_modules/simple-concat/LICENSE +20 -0
  2830. package/node_modules/simple-concat/README.md +44 -0
  2831. package/node_modules/simple-concat/index.js +15 -0
  2832. package/node_modules/simple-concat/package.json +47 -0
  2833. package/node_modules/simple-concat/test/basic.js +41 -0
  2834. package/node_modules/simple-get/.github/dependabot.yml +15 -0
  2835. package/node_modules/simple-get/.github/workflows/ci.yml +23 -0
  2836. package/node_modules/simple-get/LICENSE +20 -0
  2837. package/node_modules/simple-get/README.md +333 -0
  2838. package/node_modules/simple-get/index.js +108 -0
  2839. package/node_modules/simple-get/package.json +67 -0
  2840. package/node_modules/statuses/HISTORY.md +87 -0
  2841. package/node_modules/statuses/LICENSE +23 -0
  2842. package/node_modules/statuses/README.md +139 -0
  2843. package/node_modules/statuses/codes.json +65 -0
  2844. package/node_modules/statuses/index.js +146 -0
  2845. package/node_modules/statuses/package.json +49 -0
  2846. package/node_modules/string_decoder/.travis.yml +50 -0
  2847. package/node_modules/string_decoder/LICENSE +48 -0
  2848. package/node_modules/string_decoder/README.md +47 -0
  2849. package/node_modules/string_decoder/lib/string_decoder.js +296 -0
  2850. package/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +21 -0
  2851. package/node_modules/string_decoder/node_modules/safe-buffer/README.md +584 -0
  2852. package/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +187 -0
  2853. package/node_modules/string_decoder/node_modules/safe-buffer/index.js +62 -0
  2854. package/node_modules/string_decoder/node_modules/safe-buffer/package.json +37 -0
  2855. package/node_modules/string_decoder/package.json +31 -0
  2856. package/node_modules/strip-json-comments/index.js +70 -0
  2857. package/node_modules/strip-json-comments/license +21 -0
  2858. package/node_modules/strip-json-comments/package.json +42 -0
  2859. package/node_modules/strip-json-comments/readme.md +64 -0
  2860. package/node_modules/tar-fs/.travis.yml +6 -0
  2861. package/node_modules/tar-fs/LICENSE +21 -0
  2862. package/node_modules/tar-fs/README.md +165 -0
  2863. package/node_modules/tar-fs/index.js +363 -0
  2864. package/node_modules/tar-fs/package.json +41 -0
  2865. package/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
  2866. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
  2867. package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  2868. package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  2869. package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  2870. package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  2871. package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  2872. package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  2873. package/node_modules/tar-fs/test/fixtures/e/file +0 -0
  2874. package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  2875. package/node_modules/tar-fs/test/index.js +346 -0
  2876. package/node_modules/tar-stream/LICENSE +21 -0
  2877. package/node_modules/tar-stream/README.md +168 -0
  2878. package/node_modules/tar-stream/extract.js +257 -0
  2879. package/node_modules/tar-stream/headers.js +295 -0
  2880. package/node_modules/tar-stream/index.js +2 -0
  2881. package/node_modules/tar-stream/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  2882. package/node_modules/tar-stream/node_modules/readable-stream/GOVERNANCE.md +136 -0
  2883. package/node_modules/tar-stream/node_modules/readable-stream/LICENSE +47 -0
  2884. package/node_modules/tar-stream/node_modules/readable-stream/README.md +106 -0
  2885. package/node_modules/tar-stream/node_modules/readable-stream/errors-browser.js +127 -0
  2886. package/node_modules/tar-stream/node_modules/readable-stream/errors.js +116 -0
  2887. package/node_modules/tar-stream/node_modules/readable-stream/experimentalWarning.js +17 -0
  2888. package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
  2889. package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
  2890. package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
  2891. package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_transform.js +190 -0
  2892. package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js +641 -0
  2893. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
  2894. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
  2895. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
  2896. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
  2897. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  2898. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
  2899. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
  2900. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
  2901. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  2902. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  2903. package/node_modules/tar-stream/node_modules/readable-stream/package.json +68 -0
  2904. package/node_modules/tar-stream/node_modules/readable-stream/readable-browser.js +9 -0
  2905. package/node_modules/tar-stream/node_modules/readable-stream/readable.js +16 -0
  2906. package/node_modules/tar-stream/pack.js +255 -0
  2907. package/node_modules/tar-stream/package.json +58 -0
  2908. package/node_modules/tar-stream/sandbox.js +11 -0
  2909. package/node_modules/toidentifier/HISTORY.md +9 -0
  2910. package/node_modules/toidentifier/LICENSE +21 -0
  2911. package/node_modules/toidentifier/README.md +61 -0
  2912. package/node_modules/toidentifier/index.js +32 -0
  2913. package/node_modules/toidentifier/package.json +38 -0
  2914. package/node_modules/tunnel-agent/LICENSE +55 -0
  2915. package/node_modules/tunnel-agent/README.md +4 -0
  2916. package/node_modules/tunnel-agent/index.js +244 -0
  2917. package/node_modules/tunnel-agent/package.json +22 -0
  2918. package/node_modules/unpipe/HISTORY.md +4 -0
  2919. package/node_modules/unpipe/LICENSE +22 -0
  2920. package/node_modules/unpipe/README.md +43 -0
  2921. package/node_modules/unpipe/index.js +69 -0
  2922. package/node_modules/unpipe/package.json +27 -0
  2923. package/node_modules/util-deprecate/History.md +16 -0
  2924. package/node_modules/util-deprecate/LICENSE +24 -0
  2925. package/node_modules/util-deprecate/README.md +53 -0
  2926. package/node_modules/util-deprecate/browser.js +67 -0
  2927. package/node_modules/util-deprecate/node.js +6 -0
  2928. package/node_modules/util-deprecate/package.json +27 -0
  2929. package/node_modules/uuid/CHANGELOG.md +274 -0
  2930. package/node_modules/uuid/CONTRIBUTING.md +18 -0
  2931. package/node_modules/uuid/LICENSE.md +9 -0
  2932. package/node_modules/uuid/README.md +466 -0
  2933. package/node_modules/uuid/dist/bin/uuid +2 -0
  2934. package/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  2935. package/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  2936. package/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  2937. package/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  2938. package/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  2939. package/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  2940. package/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  2941. package/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  2942. package/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  2943. package/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  2944. package/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  2945. package/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  2946. package/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  2947. package/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  2948. package/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  2949. package/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  2950. package/node_modules/uuid/dist/esm-browser/index.js +9 -0
  2951. package/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  2952. package/node_modules/uuid/dist/esm-browser/native.js +4 -0
  2953. package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  2954. package/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  2955. package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  2956. package/node_modules/uuid/dist/esm-browser/rng.js +18 -0
  2957. package/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  2958. package/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
  2959. package/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  2960. package/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  2961. package/node_modules/uuid/dist/esm-browser/v35.js +66 -0
  2962. package/node_modules/uuid/dist/esm-browser/v4.js +29 -0
  2963. package/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  2964. package/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  2965. package/node_modules/uuid/dist/esm-browser/version.js +11 -0
  2966. package/node_modules/uuid/dist/esm-node/index.js +9 -0
  2967. package/node_modules/uuid/dist/esm-node/md5.js +13 -0
  2968. package/node_modules/uuid/dist/esm-node/native.js +4 -0
  2969. package/node_modules/uuid/dist/esm-node/nil.js +1 -0
  2970. package/node_modules/uuid/dist/esm-node/parse.js +35 -0
  2971. package/node_modules/uuid/dist/esm-node/regex.js +1 -0
  2972. package/node_modules/uuid/dist/esm-node/rng.js +12 -0
  2973. package/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  2974. package/node_modules/uuid/dist/esm-node/stringify.js +33 -0
  2975. package/node_modules/uuid/dist/esm-node/v1.js +95 -0
  2976. package/node_modules/uuid/dist/esm-node/v3.js +4 -0
  2977. package/node_modules/uuid/dist/esm-node/v35.js +66 -0
  2978. package/node_modules/uuid/dist/esm-node/v4.js +29 -0
  2979. package/node_modules/uuid/dist/esm-node/v5.js +4 -0
  2980. package/node_modules/uuid/dist/esm-node/validate.js +7 -0
  2981. package/node_modules/uuid/dist/esm-node/version.js +11 -0
  2982. package/node_modules/uuid/dist/index.js +79 -0
  2983. package/node_modules/uuid/dist/md5-browser.js +223 -0
  2984. package/node_modules/uuid/dist/md5.js +23 -0
  2985. package/node_modules/uuid/dist/native-browser.js +11 -0
  2986. package/node_modules/uuid/dist/native.js +15 -0
  2987. package/node_modules/uuid/dist/nil.js +8 -0
  2988. package/node_modules/uuid/dist/parse.js +45 -0
  2989. package/node_modules/uuid/dist/regex.js +8 -0
  2990. package/node_modules/uuid/dist/rng-browser.js +25 -0
  2991. package/node_modules/uuid/dist/rng.js +24 -0
  2992. package/node_modules/uuid/dist/sha1-browser.js +104 -0
  2993. package/node_modules/uuid/dist/sha1.js +23 -0
  2994. package/node_modules/uuid/dist/stringify.js +44 -0
  2995. package/node_modules/uuid/dist/uuid-bin.js +85 -0
  2996. package/node_modules/uuid/dist/v1.js +107 -0
  2997. package/node_modules/uuid/dist/v3.js +16 -0
  2998. package/node_modules/uuid/dist/v35.js +80 -0
  2999. package/node_modules/uuid/dist/v4.js +43 -0
  3000. package/node_modules/uuid/dist/v5.js +16 -0
  3001. package/node_modules/uuid/dist/validate.js +17 -0
  3002. package/node_modules/uuid/dist/version.js +21 -0
  3003. package/node_modules/uuid/package.json +135 -0
  3004. package/node_modules/uuid/wrapper.mjs +10 -0
  3005. package/node_modules/vary/HISTORY.md +39 -0
  3006. package/node_modules/vary/LICENSE +22 -0
  3007. package/node_modules/vary/README.md +101 -0
  3008. package/node_modules/vary/index.js +149 -0
  3009. package/node_modules/vary/package.json +43 -0
  3010. package/node_modules/which/LICENSE +15 -0
  3011. package/node_modules/which/README.md +54 -0
  3012. package/node_modules/which/bin/node-which +52 -0
  3013. package/node_modules/which/package.json +43 -0
  3014. package/node_modules/which/which.js +125 -0
  3015. package/node_modules/wrappy/LICENSE +15 -0
  3016. package/node_modules/wrappy/README.md +36 -0
  3017. package/node_modules/wrappy/package.json +29 -0
  3018. package/node_modules/wrappy/wrappy.js +33 -0
  3019. package/node_modules/zod/LICENSE +21 -0
  3020. package/node_modules/zod/README.md +208 -0
  3021. package/node_modules/zod/index.cjs +33 -0
  3022. package/node_modules/zod/index.d.cts +4 -0
  3023. package/node_modules/zod/index.d.ts +4 -0
  3024. package/node_modules/zod/index.js +4 -0
  3025. package/node_modules/zod/package.json +118 -0
  3026. package/node_modules/zod/src/index.ts +4 -0
  3027. package/node_modules/zod/src/v3/ZodError.ts +330 -0
  3028. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  3029. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  3030. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  3031. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  3032. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  3033. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  3034. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  3035. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  3036. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  3037. package/node_modules/zod/src/v3/errors.ts +13 -0
  3038. package/node_modules/zod/src/v3/external.ts +6 -0
  3039. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  3040. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  3041. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  3042. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  3043. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  3044. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  3045. package/node_modules/zod/src/v3/index.ts +4 -0
  3046. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  3047. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  3048. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  3049. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  3050. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  3051. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  3052. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  3053. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  3054. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  3055. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  3056. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  3057. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  3058. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  3059. package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  3060. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  3061. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  3062. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  3063. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  3064. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  3065. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  3066. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  3067. package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  3068. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  3069. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  3070. package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  3071. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  3072. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  3073. package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  3074. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  3075. package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  3076. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  3077. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  3078. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  3079. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  3080. package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  3081. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  3082. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  3083. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  3084. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  3085. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  3086. package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  3087. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  3088. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  3089. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  3090. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  3091. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  3092. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  3093. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  3094. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  3095. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  3096. package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  3097. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  3098. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  3099. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  3100. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  3101. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  3102. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  3103. package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  3104. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  3105. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  3106. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  3107. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  3108. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  3109. package/node_modules/zod/src/v3/types.ts +5136 -0
  3110. package/node_modules/zod/src/v4/classic/checks.ts +30 -0
  3111. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  3112. package/node_modules/zod/src/v4/classic/compat.ts +66 -0
  3113. package/node_modules/zod/src/v4/classic/errors.ts +75 -0
  3114. package/node_modules/zod/src/v4/classic/external.ts +50 -0
  3115. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  3116. package/node_modules/zod/src/v4/classic/iso.ts +90 -0
  3117. package/node_modules/zod/src/v4/classic/parse.ts +33 -0
  3118. package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  3119. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  3120. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  3121. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  3122. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  3123. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  3124. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  3125. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  3126. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  3127. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  3128. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  3129. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  3130. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  3131. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  3132. package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  3133. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  3134. package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  3135. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  3136. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  3137. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  3138. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  3139. package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  3140. package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  3141. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  3142. package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  3143. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  3144. package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  3145. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  3146. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  3147. package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  3148. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  3149. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  3150. package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  3151. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  3152. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  3153. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  3154. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  3155. package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  3156. package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  3157. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  3158. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  3159. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  3160. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  3161. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  3162. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  3163. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  3164. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  3165. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  3166. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  3167. package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  3168. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  3169. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  3170. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  3171. package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  3172. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  3173. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  3174. package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  3175. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  3176. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  3177. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  3178. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  3179. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  3180. package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  3181. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  3182. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  3183. package/node_modules/zod/src/v4/core/api.ts +1594 -0
  3184. package/node_modules/zod/src/v4/core/checks.ts +1283 -0
  3185. package/node_modules/zod/src/v4/core/config.ts +15 -0
  3186. package/node_modules/zod/src/v4/core/core.ts +134 -0
  3187. package/node_modules/zod/src/v4/core/doc.ts +44 -0
  3188. package/node_modules/zod/src/v4/core/errors.ts +424 -0
  3189. package/node_modules/zod/src/v4/core/function.ts +176 -0
  3190. package/node_modules/zod/src/v4/core/index.ts +15 -0
  3191. package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  3192. package/node_modules/zod/src/v4/core/parse.ts +94 -0
  3193. package/node_modules/zod/src/v4/core/regexes.ts +135 -0
  3194. package/node_modules/zod/src/v4/core/registries.ts +96 -0
  3195. package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  3196. package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  3197. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  3198. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  3199. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  3200. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  3201. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  3202. package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  3203. package/node_modules/zod/src/v4/core/util.ts +775 -0
  3204. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  3205. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  3206. package/node_modules/zod/src/v4/index.ts +4 -0
  3207. package/node_modules/zod/src/v4/locales/ar.ts +125 -0
  3208. package/node_modules/zod/src/v4/locales/az.ts +121 -0
  3209. package/node_modules/zod/src/v4/locales/be.ts +184 -0
  3210. package/node_modules/zod/src/v4/locales/ca.ts +127 -0
  3211. package/node_modules/zod/src/v4/locales/cs.ts +142 -0
  3212. package/node_modules/zod/src/v4/locales/de.ts +124 -0
  3213. package/node_modules/zod/src/v4/locales/en.ts +127 -0
  3214. package/node_modules/zod/src/v4/locales/eo.ts +125 -0
  3215. package/node_modules/zod/src/v4/locales/es.ts +125 -0
  3216. package/node_modules/zod/src/v4/locales/fa.ts +134 -0
  3217. package/node_modules/zod/src/v4/locales/fi.ts +131 -0
  3218. package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  3219. package/node_modules/zod/src/v4/locales/fr.ts +124 -0
  3220. package/node_modules/zod/src/v4/locales/he.ts +125 -0
  3221. package/node_modules/zod/src/v4/locales/hu.ts +126 -0
  3222. package/node_modules/zod/src/v4/locales/id.ts +125 -0
  3223. package/node_modules/zod/src/v4/locales/index.ts +39 -0
  3224. package/node_modules/zod/src/v4/locales/it.ts +125 -0
  3225. package/node_modules/zod/src/v4/locales/ja.ts +122 -0
  3226. package/node_modules/zod/src/v4/locales/kh.ts +126 -0
  3227. package/node_modules/zod/src/v4/locales/ko.ts +131 -0
  3228. package/node_modules/zod/src/v4/locales/mk.ts +127 -0
  3229. package/node_modules/zod/src/v4/locales/ms.ts +124 -0
  3230. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  3231. package/node_modules/zod/src/v4/locales/no.ts +124 -0
  3232. package/node_modules/zod/src/v4/locales/ota.ts +125 -0
  3233. package/node_modules/zod/src/v4/locales/pl.ts +126 -0
  3234. package/node_modules/zod/src/v4/locales/ps.ts +133 -0
  3235. package/node_modules/zod/src/v4/locales/pt.ts +123 -0
  3236. package/node_modules/zod/src/v4/locales/ru.ts +184 -0
  3237. package/node_modules/zod/src/v4/locales/sl.ts +126 -0
  3238. package/node_modules/zod/src/v4/locales/sv.ts +127 -0
  3239. package/node_modules/zod/src/v4/locales/ta.ts +125 -0
  3240. package/node_modules/zod/src/v4/locales/th.ts +126 -0
  3241. package/node_modules/zod/src/v4/locales/tr.ts +121 -0
  3242. package/node_modules/zod/src/v4/locales/ua.ts +126 -0
  3243. package/node_modules/zod/src/v4/locales/ur.ts +126 -0
  3244. package/node_modules/zod/src/v4/locales/vi.ts +125 -0
  3245. package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  3246. package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  3247. package/node_modules/zod/src/v4/mini/checks.ts +32 -0
  3248. package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  3249. package/node_modules/zod/src/v4/mini/external.ts +40 -0
  3250. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  3251. package/node_modules/zod/src/v4/mini/iso.ts +62 -0
  3252. package/node_modules/zod/src/v4/mini/parse.ts +1 -0
  3253. package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  3254. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  3255. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  3256. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  3257. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  3258. package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  3259. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  3260. package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  3261. package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  3262. package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  3263. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  3264. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  3265. package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  3266. package/node_modules/zod/src/v4-mini/index.ts +1 -0
  3267. package/node_modules/zod/v3/ZodError.cjs +138 -0
  3268. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  3269. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  3270. package/node_modules/zod/v3/ZodError.js +133 -0
  3271. package/node_modules/zod/v3/errors.cjs +17 -0
  3272. package/node_modules/zod/v3/errors.d.cts +5 -0
  3273. package/node_modules/zod/v3/errors.d.ts +5 -0
  3274. package/node_modules/zod/v3/errors.js +9 -0
  3275. package/node_modules/zod/v3/external.cjs +22 -0
  3276. package/node_modules/zod/v3/external.d.cts +6 -0
  3277. package/node_modules/zod/v3/external.d.ts +6 -0
  3278. package/node_modules/zod/v3/external.js +6 -0
  3279. package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  3280. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  3281. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  3282. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  3283. package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  3284. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  3285. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  3286. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  3287. package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  3288. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  3289. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  3290. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  3291. package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  3292. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  3293. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  3294. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  3295. package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  3296. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  3297. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  3298. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  3299. package/node_modules/zod/v3/helpers/util.cjs +137 -0
  3300. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  3301. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  3302. package/node_modules/zod/v3/helpers/util.js +133 -0
  3303. package/node_modules/zod/v3/index.cjs +33 -0
  3304. package/node_modules/zod/v3/index.d.cts +4 -0
  3305. package/node_modules/zod/v3/index.d.ts +4 -0
  3306. package/node_modules/zod/v3/index.js +4 -0
  3307. package/node_modules/zod/v3/locales/en.cjs +111 -0
  3308. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  3309. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  3310. package/node_modules/zod/v3/locales/en.js +109 -0
  3311. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  3312. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  3313. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  3314. package/node_modules/zod/v3/standard-schema.js +1 -0
  3315. package/node_modules/zod/v3/types.cjs +3775 -0
  3316. package/node_modules/zod/v3/types.d.cts +1031 -0
  3317. package/node_modules/zod/v3/types.d.ts +1031 -0
  3318. package/node_modules/zod/v3/types.js +3693 -0
  3319. package/node_modules/zod/v4/classic/checks.cjs +32 -0
  3320. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  3321. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  3322. package/node_modules/zod/v4/classic/checks.js +1 -0
  3323. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  3324. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  3325. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  3326. package/node_modules/zod/v4/classic/coerce.js +17 -0
  3327. package/node_modules/zod/v4/classic/compat.cjs +57 -0
  3328. package/node_modules/zod/v4/classic/compat.d.cts +46 -0
  3329. package/node_modules/zod/v4/classic/compat.d.ts +46 -0
  3330. package/node_modules/zod/v4/classic/compat.js +27 -0
  3331. package/node_modules/zod/v4/classic/errors.cjs +67 -0
  3332. package/node_modules/zod/v4/classic/errors.d.cts +30 -0
  3333. package/node_modules/zod/v4/classic/errors.d.ts +30 -0
  3334. package/node_modules/zod/v4/classic/errors.js +41 -0
  3335. package/node_modules/zod/v4/classic/external.cjs +70 -0
  3336. package/node_modules/zod/v4/classic/external.d.cts +13 -0
  3337. package/node_modules/zod/v4/classic/external.d.ts +13 -0
  3338. package/node_modules/zod/v4/classic/external.js +18 -0
  3339. package/node_modules/zod/v4/classic/index.cjs +33 -0
  3340. package/node_modules/zod/v4/classic/index.d.cts +4 -0
  3341. package/node_modules/zod/v4/classic/index.d.ts +4 -0
  3342. package/node_modules/zod/v4/classic/index.js +4 -0
  3343. package/node_modules/zod/v4/classic/iso.cjs +60 -0
  3344. package/node_modules/zod/v4/classic/iso.d.cts +22 -0
  3345. package/node_modules/zod/v4/classic/iso.d.ts +22 -0
  3346. package/node_modules/zod/v4/classic/iso.js +30 -0
  3347. package/node_modules/zod/v4/classic/parse.cjs +32 -0
  3348. package/node_modules/zod/v4/classic/parse.d.cts +23 -0
  3349. package/node_modules/zod/v4/classic/parse.d.ts +23 -0
  3350. package/node_modules/zod/v4/classic/parse.js +6 -0
  3351. package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  3352. package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  3353. package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  3354. package/node_modules/zod/v4/classic/schemas.js +1006 -0
  3355. package/node_modules/zod/v4/core/api.cjs +1039 -0
  3356. package/node_modules/zod/v4/core/api.d.cts +284 -0
  3357. package/node_modules/zod/v4/core/api.d.ts +284 -0
  3358. package/node_modules/zod/v4/core/api.js +906 -0
  3359. package/node_modules/zod/v4/core/checks.cjs +591 -0
  3360. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  3361. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  3362. package/node_modules/zod/v4/core/checks.js +565 -0
  3363. package/node_modules/zod/v4/core/core.cjs +67 -0
  3364. package/node_modules/zod/v4/core/core.d.cts +49 -0
  3365. package/node_modules/zod/v4/core/core.d.ts +49 -0
  3366. package/node_modules/zod/v4/core/core.js +61 -0
  3367. package/node_modules/zod/v4/core/doc.cjs +39 -0
  3368. package/node_modules/zod/v4/core/doc.d.cts +14 -0
  3369. package/node_modules/zod/v4/core/doc.d.ts +14 -0
  3370. package/node_modules/zod/v4/core/doc.js +35 -0
  3371. package/node_modules/zod/v4/core/errors.cjs +226 -0
  3372. package/node_modules/zod/v4/core/errors.d.cts +208 -0
  3373. package/node_modules/zod/v4/core/errors.d.ts +208 -0
  3374. package/node_modules/zod/v4/core/errors.js +195 -0
  3375. package/node_modules/zod/v4/core/function.cjs +102 -0
  3376. package/node_modules/zod/v4/core/function.d.cts +52 -0
  3377. package/node_modules/zod/v4/core/function.d.ts +52 -0
  3378. package/node_modules/zod/v4/core/function.js +75 -0
  3379. package/node_modules/zod/v4/core/index.cjs +44 -0
  3380. package/node_modules/zod/v4/core/index.d.cts +15 -0
  3381. package/node_modules/zod/v4/core/index.d.ts +15 -0
  3382. package/node_modules/zod/v4/core/index.js +15 -0
  3383. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  3384. package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  3385. package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  3386. package/node_modules/zod/v4/core/json-schema.js +1 -0
  3387. package/node_modules/zod/v4/core/parse.cjs +87 -0
  3388. package/node_modules/zod/v4/core/parse.d.cts +25 -0
  3389. package/node_modules/zod/v4/core/parse.d.ts +25 -0
  3390. package/node_modules/zod/v4/core/parse.js +57 -0
  3391. package/node_modules/zod/v4/core/regexes.cjs +103 -0
  3392. package/node_modules/zod/v4/core/regexes.d.cts +62 -0
  3393. package/node_modules/zod/v4/core/regexes.d.ts +62 -0
  3394. package/node_modules/zod/v4/core/regexes.js +95 -0
  3395. package/node_modules/zod/v4/core/registries.cjs +56 -0
  3396. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  3397. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  3398. package/node_modules/zod/v4/core/registries.js +51 -0
  3399. package/node_modules/zod/v4/core/schemas.cjs +1748 -0
  3400. package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  3401. package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  3402. package/node_modules/zod/v4/core/schemas.js +1717 -0
  3403. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  3404. package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  3405. package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  3406. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  3407. package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  3408. package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  3409. package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  3410. package/node_modules/zod/v4/core/to-json-schema.js +849 -0
  3411. package/node_modules/zod/v4/core/util.cjs +539 -0
  3412. package/node_modules/zod/v4/core/util.d.cts +183 -0
  3413. package/node_modules/zod/v4/core/util.d.ts +183 -0
  3414. package/node_modules/zod/v4/core/util.js +493 -0
  3415. package/node_modules/zod/v4/core/versions.cjs +8 -0
  3416. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  3417. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  3418. package/node_modules/zod/v4/core/versions.js +5 -0
  3419. package/node_modules/zod/v4/index.cjs +22 -0
  3420. package/node_modules/zod/v4/index.d.cts +3 -0
  3421. package/node_modules/zod/v4/index.d.ts +3 -0
  3422. package/node_modules/zod/v4/index.js +3 -0
  3423. package/node_modules/zod/v4/locales/ar.cjs +142 -0
  3424. package/node_modules/zod/v4/locales/ar.d.cts +4 -0
  3425. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  3426. package/node_modules/zod/v4/locales/ar.js +116 -0
  3427. package/node_modules/zod/v4/locales/az.cjs +141 -0
  3428. package/node_modules/zod/v4/locales/az.d.cts +4 -0
  3429. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  3430. package/node_modules/zod/v4/locales/az.js +115 -0
  3431. package/node_modules/zod/v4/locales/be.cjs +190 -0
  3432. package/node_modules/zod/v4/locales/be.d.cts +4 -0
  3433. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  3434. package/node_modules/zod/v4/locales/be.js +164 -0
  3435. package/node_modules/zod/v4/locales/ca.cjs +144 -0
  3436. package/node_modules/zod/v4/locales/ca.d.cts +4 -0
  3437. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  3438. package/node_modules/zod/v4/locales/ca.js +118 -0
  3439. package/node_modules/zod/v4/locales/cs.cjs +161 -0
  3440. package/node_modules/zod/v4/locales/cs.d.cts +4 -0
  3441. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  3442. package/node_modules/zod/v4/locales/cs.js +135 -0
  3443. package/node_modules/zod/v4/locales/de.cjs +142 -0
  3444. package/node_modules/zod/v4/locales/de.d.cts +4 -0
  3445. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  3446. package/node_modules/zod/v4/locales/de.js +116 -0
  3447. package/node_modules/zod/v4/locales/en.cjs +145 -0
  3448. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  3449. package/node_modules/zod/v4/locales/en.d.ts +5 -0
  3450. package/node_modules/zod/v4/locales/en.js +117 -0
  3451. package/node_modules/zod/v4/locales/eo.cjs +144 -0
  3452. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  3453. package/node_modules/zod/v4/locales/eo.d.ts +5 -0
  3454. package/node_modules/zod/v4/locales/eo.js +116 -0
  3455. package/node_modules/zod/v4/locales/es.cjs +143 -0
  3456. package/node_modules/zod/v4/locales/es.d.cts +4 -0
  3457. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  3458. package/node_modules/zod/v4/locales/es.js +117 -0
  3459. package/node_modules/zod/v4/locales/fa.cjs +148 -0
  3460. package/node_modules/zod/v4/locales/fa.d.cts +4 -0
  3461. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  3462. package/node_modules/zod/v4/locales/fa.js +122 -0
  3463. package/node_modules/zod/v4/locales/fi.cjs +148 -0
  3464. package/node_modules/zod/v4/locales/fi.d.cts +4 -0
  3465. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  3466. package/node_modules/zod/v4/locales/fi.js +122 -0
  3467. package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  3468. package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  3469. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  3470. package/node_modules/zod/v4/locales/fr-CA.js +117 -0
  3471. package/node_modules/zod/v4/locales/fr.cjs +142 -0
  3472. package/node_modules/zod/v4/locales/fr.d.cts +4 -0
  3473. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  3474. package/node_modules/zod/v4/locales/fr.js +116 -0
  3475. package/node_modules/zod/v4/locales/he.cjs +143 -0
  3476. package/node_modules/zod/v4/locales/he.d.cts +4 -0
  3477. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  3478. package/node_modules/zod/v4/locales/he.js +117 -0
  3479. package/node_modules/zod/v4/locales/hu.cjs +143 -0
  3480. package/node_modules/zod/v4/locales/hu.d.cts +4 -0
  3481. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  3482. package/node_modules/zod/v4/locales/hu.js +117 -0
  3483. package/node_modules/zod/v4/locales/id.cjs +142 -0
  3484. package/node_modules/zod/v4/locales/id.d.cts +4 -0
  3485. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  3486. package/node_modules/zod/v4/locales/id.js +116 -0
  3487. package/node_modules/zod/v4/locales/index.cjs +84 -0
  3488. package/node_modules/zod/v4/locales/index.d.cts +39 -0
  3489. package/node_modules/zod/v4/locales/index.d.ts +39 -0
  3490. package/node_modules/zod/v4/locales/index.js +39 -0
  3491. package/node_modules/zod/v4/locales/it.cjs +143 -0
  3492. package/node_modules/zod/v4/locales/it.d.cts +4 -0
  3493. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  3494. package/node_modules/zod/v4/locales/it.js +117 -0
  3495. package/node_modules/zod/v4/locales/ja.cjs +141 -0
  3496. package/node_modules/zod/v4/locales/ja.d.cts +4 -0
  3497. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  3498. package/node_modules/zod/v4/locales/ja.js +115 -0
  3499. package/node_modules/zod/v4/locales/kh.cjs +143 -0
  3500. package/node_modules/zod/v4/locales/kh.d.cts +4 -0
  3501. package/node_modules/zod/v4/locales/kh.d.ts +4 -0
  3502. package/node_modules/zod/v4/locales/kh.js +117 -0
  3503. package/node_modules/zod/v4/locales/ko.cjs +147 -0
  3504. package/node_modules/zod/v4/locales/ko.d.cts +4 -0
  3505. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  3506. package/node_modules/zod/v4/locales/ko.js +121 -0
  3507. package/node_modules/zod/v4/locales/mk.cjs +144 -0
  3508. package/node_modules/zod/v4/locales/mk.d.cts +4 -0
  3509. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  3510. package/node_modules/zod/v4/locales/mk.js +118 -0
  3511. package/node_modules/zod/v4/locales/ms.cjs +142 -0
  3512. package/node_modules/zod/v4/locales/ms.d.cts +4 -0
  3513. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  3514. package/node_modules/zod/v4/locales/ms.js +116 -0
  3515. package/node_modules/zod/v4/locales/nl.cjs +143 -0
  3516. package/node_modules/zod/v4/locales/nl.d.cts +4 -0
  3517. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  3518. package/node_modules/zod/v4/locales/nl.js +117 -0
  3519. package/node_modules/zod/v4/locales/no.cjs +142 -0
  3520. package/node_modules/zod/v4/locales/no.d.cts +4 -0
  3521. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  3522. package/node_modules/zod/v4/locales/no.js +116 -0
  3523. package/node_modules/zod/v4/locales/ota.cjs +143 -0
  3524. package/node_modules/zod/v4/locales/ota.d.cts +4 -0
  3525. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  3526. package/node_modules/zod/v4/locales/ota.js +117 -0
  3527. package/node_modules/zod/v4/locales/pl.cjs +143 -0
  3528. package/node_modules/zod/v4/locales/pl.d.cts +4 -0
  3529. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  3530. package/node_modules/zod/v4/locales/pl.js +117 -0
  3531. package/node_modules/zod/v4/locales/ps.cjs +148 -0
  3532. package/node_modules/zod/v4/locales/ps.d.cts +4 -0
  3533. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  3534. package/node_modules/zod/v4/locales/ps.js +122 -0
  3535. package/node_modules/zod/v4/locales/pt.cjs +142 -0
  3536. package/node_modules/zod/v4/locales/pt.d.cts +4 -0
  3537. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  3538. package/node_modules/zod/v4/locales/pt.js +116 -0
  3539. package/node_modules/zod/v4/locales/ru.cjs +190 -0
  3540. package/node_modules/zod/v4/locales/ru.d.cts +4 -0
  3541. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  3542. package/node_modules/zod/v4/locales/ru.js +164 -0
  3543. package/node_modules/zod/v4/locales/sl.cjs +143 -0
  3544. package/node_modules/zod/v4/locales/sl.d.cts +4 -0
  3545. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  3546. package/node_modules/zod/v4/locales/sl.js +117 -0
  3547. package/node_modules/zod/v4/locales/sv.cjs +144 -0
  3548. package/node_modules/zod/v4/locales/sv.d.cts +4 -0
  3549. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  3550. package/node_modules/zod/v4/locales/sv.js +118 -0
  3551. package/node_modules/zod/v4/locales/ta.cjs +143 -0
  3552. package/node_modules/zod/v4/locales/ta.d.cts +4 -0
  3553. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  3554. package/node_modules/zod/v4/locales/ta.js +117 -0
  3555. package/node_modules/zod/v4/locales/th.cjs +143 -0
  3556. package/node_modules/zod/v4/locales/th.d.cts +4 -0
  3557. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  3558. package/node_modules/zod/v4/locales/th.js +117 -0
  3559. package/node_modules/zod/v4/locales/tr.cjs +143 -0
  3560. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  3561. package/node_modules/zod/v4/locales/tr.d.ts +5 -0
  3562. package/node_modules/zod/v4/locales/tr.js +115 -0
  3563. package/node_modules/zod/v4/locales/ua.cjs +143 -0
  3564. package/node_modules/zod/v4/locales/ua.d.cts +4 -0
  3565. package/node_modules/zod/v4/locales/ua.d.ts +4 -0
  3566. package/node_modules/zod/v4/locales/ua.js +117 -0
  3567. package/node_modules/zod/v4/locales/ur.cjs +143 -0
  3568. package/node_modules/zod/v4/locales/ur.d.cts +4 -0
  3569. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  3570. package/node_modules/zod/v4/locales/ur.js +117 -0
  3571. package/node_modules/zod/v4/locales/vi.cjs +142 -0
  3572. package/node_modules/zod/v4/locales/vi.d.cts +4 -0
  3573. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  3574. package/node_modules/zod/v4/locales/vi.js +116 -0
  3575. package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  3576. package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  3577. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  3578. package/node_modules/zod/v4/locales/zh-CN.js +116 -0
  3579. package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  3580. package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  3581. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  3582. package/node_modules/zod/v4/locales/zh-TW.js +117 -0
  3583. package/node_modules/zod/v4/mini/checks.cjs +34 -0
  3584. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  3585. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  3586. package/node_modules/zod/v4/mini/checks.js +1 -0
  3587. package/node_modules/zod/v4/mini/coerce.cjs +47 -0
  3588. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  3589. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  3590. package/node_modules/zod/v4/mini/coerce.js +17 -0
  3591. package/node_modules/zod/v4/mini/external.cjs +62 -0
  3592. package/node_modules/zod/v4/mini/external.d.cts +11 -0
  3593. package/node_modules/zod/v4/mini/external.d.ts +11 -0
  3594. package/node_modules/zod/v4/mini/external.js +13 -0
  3595. package/node_modules/zod/v4/mini/index.cjs +32 -0
  3596. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  3597. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  3598. package/node_modules/zod/v4/mini/index.js +3 -0
  3599. package/node_modules/zod/v4/mini/iso.cjs +60 -0
  3600. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  3601. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  3602. package/node_modules/zod/v4/mini/iso.js +30 -0
  3603. package/node_modules/zod/v4/mini/parse.cjs +8 -0
  3604. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  3605. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  3606. package/node_modules/zod/v4/mini/parse.js +1 -0
  3607. package/node_modules/zod/v4/mini/schemas.cjs +839 -0
  3608. package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  3609. package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  3610. package/node_modules/zod/v4/mini/schemas.js +732 -0
  3611. package/node_modules/zod/v4-mini/index.cjs +17 -0
  3612. package/node_modules/zod/v4-mini/index.d.cts +1 -0
  3613. package/node_modules/zod/v4-mini/index.d.ts +1 -0
  3614. package/node_modules/zod/v4-mini/index.js +1 -0
  3615. package/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
  3616. package/node_modules/zod-to-json-schema/.github/FUNDING.yml +1 -0
  3617. package/node_modules/zod-to-json-schema/.prettierrc.json +1 -0
  3618. package/node_modules/zod-to-json-schema/LICENSE +15 -0
  3619. package/node_modules/zod-to-json-schema/README.md +390 -0
  3620. package/node_modules/zod-to-json-schema/changelog.md +82 -0
  3621. package/node_modules/zod-to-json-schema/contributing.md +9 -0
  3622. package/node_modules/zod-to-json-schema/createIndex.ts +32 -0
  3623. package/node_modules/zod-to-json-schema/dist/cjs/Options.js +51 -0
  3624. package/node_modules/zod-to-json-schema/dist/cjs/Refs.js +26 -0
  3625. package/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +19 -0
  3626. package/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +12 -0
  3627. package/node_modules/zod-to-json-schema/dist/cjs/index.js +56 -0
  3628. package/node_modules/zod-to-json-schema/dist/cjs/package.json +1 -0
  3629. package/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +66 -0
  3630. package/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +2 -0
  3631. package/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +21 -0
  3632. package/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +30 -0
  3633. package/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +53 -0
  3634. package/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +9 -0
  3635. package/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +8 -0
  3636. package/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +8 -0
  3637. package/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +50 -0
  3638. package/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +11 -0
  3639. package/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +11 -0
  3640. package/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +10 -0
  3641. package/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +56 -0
  3642. package/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +25 -0
  3643. package/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +30 -0
  3644. package/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +20 -0
  3645. package/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +15 -0
  3646. package/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +14 -0
  3647. package/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +37 -0
  3648. package/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +56 -0
  3649. package/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +76 -0
  3650. package/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +25 -0
  3651. package/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +24 -0
  3652. package/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +8 -0
  3653. package/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +8 -0
  3654. package/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +65 -0
  3655. package/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +24 -0
  3656. package/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +356 -0
  3657. package/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +36 -0
  3658. package/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +10 -0
  3659. package/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +84 -0
  3660. package/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +8 -0
  3661. package/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +109 -0
  3662. package/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +90 -0
  3663. package/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
  3664. package/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
  3665. package/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
  3666. package/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
  3667. package/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
  3668. package/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
  3669. package/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
  3670. package/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
  3671. package/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
  3672. package/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
  3673. package/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
  3674. package/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
  3675. package/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
  3676. package/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
  3677. package/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
  3678. package/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
  3679. package/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
  3680. package/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
  3681. package/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
  3682. package/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
  3683. package/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
  3684. package/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
  3685. package/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
  3686. package/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
  3687. package/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
  3688. package/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
  3689. package/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
  3690. package/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
  3691. package/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
  3692. package/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
  3693. package/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
  3694. package/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
  3695. package/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
  3696. package/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
  3697. package/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
  3698. package/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
  3699. package/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
  3700. package/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
  3701. package/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
  3702. package/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
  3703. package/node_modules/zod-to-json-schema/dist/types/Options.d.ts +37 -0
  3704. package/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +17 -0
  3705. package/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +15 -0
  3706. package/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +1 -0
  3707. package/node_modules/zod-to-json-schema/dist/types/index.d.ts +40 -0
  3708. package/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +4 -0
  3709. package/node_modules/zod-to-json-schema/dist/types/parseTypes.d.ts +34 -0
  3710. package/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +5 -0
  3711. package/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +12 -0
  3712. package/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +14 -0
  3713. package/node_modules/zod-to-json-schema/dist/types/parsers/boolean.d.ts +4 -0
  3714. package/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +3 -0
  3715. package/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +3 -0
  3716. package/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +15 -0
  3717. package/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +6 -0
  3718. package/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +4 -0
  3719. package/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +6 -0
  3720. package/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +8 -0
  3721. package/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +9 -0
  3722. package/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +15 -0
  3723. package/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +6 -0
  3724. package/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +6 -0
  3725. package/node_modules/zod-to-json-schema/dist/types/parsers/null.d.ts +5 -0
  3726. package/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +10 -0
  3727. package/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +13 -0
  3728. package/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +10 -0
  3729. package/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +4 -0
  3730. package/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +5 -0
  3731. package/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +4 -0
  3732. package/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +3 -0
  3733. package/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +13 -0
  3734. package/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +13 -0
  3735. package/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +73 -0
  3736. package/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +13 -0
  3737. package/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +6 -0
  3738. package/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +23 -0
  3739. package/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +4 -0
  3740. package/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +5 -0
  3741. package/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +10 -0
  3742. package/node_modules/zod-to-json-schema/package.json +78 -0
  3743. package/node_modules/zod-to-json-schema/postcjs.ts +3 -0
  3744. package/node_modules/zod-to-json-schema/postesm.ts +3 -0
  3745. package/package.json +85 -0
  3746. package/packages/core/dist/database/sqlite.d.ts +391 -0
  3747. package/packages/core/dist/database/sqlite.d.ts.map +1 -0
  3748. package/packages/core/dist/database/sqlite.js +1806 -0
  3749. package/packages/core/dist/database/sqlite.js.map +1 -0
  3750. package/packages/core/dist/index.d.ts +12 -0
  3751. package/packages/core/dist/index.d.ts.map +1 -0
  3752. package/packages/core/dist/index.js +20 -0
  3753. package/packages/core/dist/index.js.map +1 -0
  3754. package/packages/core/dist/services/AnalysisService.d.ts +61 -0
  3755. package/packages/core/dist/services/AnalysisService.d.ts.map +1 -0
  3756. package/packages/core/dist/services/AnalysisService.js +223 -0
  3757. package/packages/core/dist/services/AnalysisService.js.map +1 -0
  3758. package/packages/core/dist/services/ContextService.d.ts +27 -0
  3759. package/packages/core/dist/services/ContextService.d.ts.map +1 -0
  3760. package/packages/core/dist/services/ContextService.js +1109 -0
  3761. package/packages/core/dist/services/ContextService.js.map +1 -0
  3762. package/packages/core/dist/services/DocumentWriter.d.ts +132 -0
  3763. package/packages/core/dist/services/DocumentWriter.d.ts.map +1 -0
  3764. package/packages/core/dist/services/DocumentWriter.js +583 -0
  3765. package/packages/core/dist/services/DocumentWriter.js.map +1 -0
  3766. package/packages/core/dist/services/EmbeddingService.d.ts +55 -0
  3767. package/packages/core/dist/services/EmbeddingService.d.ts.map +1 -0
  3768. package/packages/core/dist/services/EmbeddingService.js +142 -0
  3769. package/packages/core/dist/services/EmbeddingService.js.map +1 -0
  3770. package/packages/core/dist/services/GraphStore.d.ts +606 -0
  3771. package/packages/core/dist/services/GraphStore.d.ts.map +1 -0
  3772. package/packages/core/dist/services/GraphStore.js +2244 -0
  3773. package/packages/core/dist/services/GraphStore.js.map +1 -0
  3774. package/packages/core/dist/types/index.d.ts +162 -0
  3775. package/packages/core/dist/types/index.d.ts.map +1 -0
  3776. package/packages/core/dist/types/index.js +2 -0
  3777. package/packages/core/dist/types/index.js.map +1 -0
  3778. package/packages/core/node_modules/better-sqlite3/LICENSE +21 -0
  3779. package/packages/core/node_modules/better-sqlite3/README.md +99 -0
  3780. package/packages/core/node_modules/better-sqlite3/binding.gyp +38 -0
  3781. package/packages/core/node_modules/better-sqlite3/deps/common.gypi +68 -0
  3782. package/packages/core/node_modules/better-sqlite3/deps/copy.js +31 -0
  3783. package/packages/core/node_modules/better-sqlite3/deps/defines.gypi +41 -0
  3784. package/packages/core/node_modules/better-sqlite3/deps/download.sh +122 -0
  3785. package/packages/core/node_modules/better-sqlite3/deps/patches/1208.patch +15 -0
  3786. package/packages/core/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +261480 -0
  3787. package/packages/core/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +13715 -0
  3788. package/packages/core/node_modules/better-sqlite3/deps/sqlite3/sqlite3ext.h +719 -0
  3789. package/packages/core/node_modules/better-sqlite3/deps/sqlite3.gyp +80 -0
  3790. package/packages/core/node_modules/better-sqlite3/deps/test_extension.c +21 -0
  3791. package/packages/core/node_modules/better-sqlite3/lib/database.js +90 -0
  3792. package/packages/core/node_modules/better-sqlite3/lib/index.js +3 -0
  3793. package/packages/core/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
  3794. package/packages/core/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
  3795. package/packages/core/node_modules/better-sqlite3/lib/methods/function.js +31 -0
  3796. package/packages/core/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
  3797. package/packages/core/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
  3798. package/packages/core/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
  3799. package/packages/core/node_modules/better-sqlite3/lib/methods/table.js +189 -0
  3800. package/packages/core/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
  3801. package/packages/core/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
  3802. package/packages/core/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
  3803. package/packages/core/node_modules/better-sqlite3/lib/util.js +12 -0
  3804. package/packages/core/node_modules/better-sqlite3/package.json +54 -0
  3805. package/packages/core/node_modules/better-sqlite3/src/better_sqlite3.cpp +2186 -0
  3806. package/packages/core/node_modules/better-sqlite3/src/better_sqlite3.hpp +1036 -0
  3807. package/packages/core/package.json +57 -0
  3808. package/packages/mcp-server/README.md +132 -0
  3809. package/packages/mcp-server/dist/context-manager.d.ts +32 -0
  3810. package/packages/mcp-server/dist/context-manager.d.ts.map +1 -0
  3811. package/packages/mcp-server/dist/context-manager.js +163 -0
  3812. package/packages/mcp-server/dist/context-manager.js.map +1 -0
  3813. package/packages/mcp-server/dist/index.d.ts +3 -0
  3814. package/packages/mcp-server/dist/index.d.ts.map +1 -0
  3815. package/packages/mcp-server/dist/index.js +160 -0
  3816. package/packages/mcp-server/dist/index.js.map +1 -0
  3817. package/packages/mcp-server/dist/instructions.d.ts +19 -0
  3818. package/packages/mcp-server/dist/instructions.d.ts.map +1 -0
  3819. package/packages/mcp-server/dist/instructions.js +265 -0
  3820. package/packages/mcp-server/dist/instructions.js.map +1 -0
  3821. package/packages/mcp-server/dist/tools/batch.d.ts +5 -0
  3822. package/packages/mcp-server/dist/tools/batch.d.ts.map +1 -0
  3823. package/packages/mcp-server/dist/tools/batch.js +608 -0
  3824. package/packages/mcp-server/dist/tools/batch.js.map +1 -0
  3825. package/packages/mcp-server/dist/tools/concept.d.ts +5 -0
  3826. package/packages/mcp-server/dist/tools/concept.d.ts.map +1 -0
  3827. package/packages/mcp-server/dist/tools/concept.js +894 -0
  3828. package/packages/mcp-server/dist/tools/concept.js.map +1 -0
  3829. package/packages/mcp-server/dist/tools/connection.d.ts +5 -0
  3830. package/packages/mcp-server/dist/tools/connection.d.ts.map +1 -0
  3831. package/packages/mcp-server/dist/tools/connection.js +361 -0
  3832. package/packages/mcp-server/dist/tools/connection.js.map +1 -0
  3833. package/packages/mcp-server/dist/tools/document.d.ts +5 -0
  3834. package/packages/mcp-server/dist/tools/document.d.ts.map +1 -0
  3835. package/packages/mcp-server/dist/tools/document.js +2239 -0
  3836. package/packages/mcp-server/dist/tools/document.js.map +1 -0
  3837. package/packages/mcp-server/dist/tools/index.d.ts +6 -0
  3838. package/packages/mcp-server/dist/tools/index.d.ts.map +1 -0
  3839. package/packages/mcp-server/dist/tools/index.js +165 -0
  3840. package/packages/mcp-server/dist/tools/index.js.map +1 -0
  3841. package/packages/mcp-server/dist/tools/reflection.d.ts +5 -0
  3842. package/packages/mcp-server/dist/tools/reflection.d.ts.map +1 -0
  3843. package/packages/mcp-server/dist/tools/reflection.js +1940 -0
  3844. package/packages/mcp-server/dist/tools/reflection.js.map +1 -0
  3845. package/packages/mcp-server/dist/tools/solvers.d.ts +4 -0
  3846. package/packages/mcp-server/dist/tools/solvers.d.ts.map +1 -0
  3847. package/packages/mcp-server/dist/tools/solvers.js +1022 -0
  3848. package/packages/mcp-server/dist/tools/solvers.js.map +1 -0
  3849. package/packages/mcp-server/dist/tools/source.d.ts +5 -0
  3850. package/packages/mcp-server/dist/tools/source.d.ts.map +1 -0
  3851. package/packages/mcp-server/dist/tools/source.js +451 -0
  3852. package/packages/mcp-server/dist/tools/source.js.map +1 -0
  3853. package/packages/mcp-server/dist/tools/synthesis.d.ts +5 -0
  3854. package/packages/mcp-server/dist/tools/synthesis.d.ts.map +1 -0
  3855. package/packages/mcp-server/dist/tools/synthesis.js +1094 -0
  3856. package/packages/mcp-server/dist/tools/synthesis.js.map +1 -0
  3857. package/packages/mcp-server/dist/tools/thematic.d.ts +11 -0
  3858. package/packages/mcp-server/dist/tools/thematic.d.ts.map +1 -0
  3859. package/packages/mcp-server/dist/tools/thematic.js +621 -0
  3860. package/packages/mcp-server/dist/tools/thematic.js.map +1 -0
  3861. package/packages/mcp-server/package.json +62 -0
  3862. package/prompts/README.md +200 -0
  3863. package/prompts/advanced/sema.md +45 -0
  3864. package/prompts/core/edge_types.md +68 -0
  3865. package/prompts/core/emergent_wisdom.md +167 -0
  3866. package/prompts/core/five_laws.md +69 -0
  3867. package/prompts/core/identity.md +21 -0
  3868. package/prompts/core/node_types.md +46 -0
  3869. package/prompts/core/orientation.md +60 -0
  3870. package/prompts/core/philosophy.md +53 -0
  3871. package/prompts/modes/fresh_reading.md +40 -0
  3872. package/prompts/modes/reading.md +134 -0
  3873. package/prompts/modes/reading_thinker.md +113 -0
  3874. package/prompts/modes/think_phase.md +86 -0
  3875. package/prompts/roles/architect.md +33 -0
  3876. package/prompts/roles/axiologist.md +33 -0
  3877. package/prompts/roles/belief_tracker.md +75 -0
  3878. package/prompts/roles/connector.md +48 -0
  3879. package/prompts/roles/critic.md +47 -0
  3880. package/prompts/roles/methodologist.md +33 -0
  3881. package/prompts/roles/psychologist.md +33 -0
  3882. package/prompts/roles/reader.md +85 -0
  3883. package/prompts/roles/skeptic.md +31 -0
  3884. package/prompts/roles/speculator.md +70 -0
  3885. package/prompts/roles/synthesizer.md +245 -0
  3886. package/prompts/roles/translator.md +129 -0
  3887. package/prompts/tools/api_reference.md +117 -0
  3888. package/prompts/tools/document.md +112 -0
  3889. package/prompts/tools/graph.md +75 -0
  3890. package/prompts/tools/graph_vision.md +92 -0
  3891. package/prompts/workflows/checkpoints.md +79 -0
  3892. package/prompts/workflows/coherence.md +16 -0
  3893. package/prompts/workflows/cross_project.md +54 -0
  3894. package/prompts/workflows/grounded_serendipity.md +18 -0
  3895. package/prompts/workflows/narrative_engine.md +27 -0
  3896. package/prompts/workflows/orchestration.md +27 -0
  3897. package/prompts/workflows/references.md +58 -0
  3898. package/prompts/workflows/serendipity.md +16 -0
  3899. package/prompts/workflows/worker.md +45 -0
  3900. package/server.json +28 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphology.umd.min.js","sources":["../src/utils.js","../../../node_modules/events/events.js","../../../node_modules/obliterator/iterator.js","../../../node_modules/obliterator/support.js","../../../node_modules/obliterator/iter.js","../../../node_modules/obliterator/take.js","../src/errors.js","../src/data.js","../src/attributes/nodes.js","../src/attributes/edges.js","../../../node_modules/obliterator/chain.js","../src/iteration/edges.js","../src/iteration/neighbors.js","../src/iteration/adjacency.js","../src/serialization.js","../src/graph.js","../src/classes.js"],"sourcesContent":["/**\n * Graphology Utilities\n * =====================\n *\n * Collection of helpful functions used by the implementation.\n */\n\n/**\n * Object.assign-like polyfill.\n *\n * @param {object} target - First object.\n * @param {object} [...objects] - Objects to merge.\n * @return {object}\n */\nfunction assignPolyfill() {\n const target = arguments[0];\n\n for (let i = 1, l = arguments.length; i < l; i++) {\n if (!arguments[i]) continue;\n\n for (const k in arguments[i]) target[k] = arguments[i][k];\n }\n\n return target;\n}\n\nlet assign = assignPolyfill;\n\nif (typeof Object.assign === 'function') assign = Object.assign;\n\nexport {assign};\n\n/**\n * Function returning the first matching edge for given path.\n * Note: this function does not check the existence of source & target. This\n * must be performed by the caller.\n *\n * @param {Graph} graph - Target graph.\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n * @param {string} type - Type of the edge (mixed, directed or undirected).\n * @return {string|null}\n */\nexport function getMatchingEdge(graph, source, target, type) {\n const sourceData = graph._nodes.get(source);\n\n let edge = null;\n\n if (!sourceData) return edge;\n\n if (type === 'mixed') {\n edge =\n (sourceData.out && sourceData.out[target]) ||\n (sourceData.undirected && sourceData.undirected[target]);\n } else if (type === 'directed') {\n edge = sourceData.out && sourceData.out[target];\n } else {\n edge = sourceData.undirected && sourceData.undirected[target];\n }\n\n return edge;\n}\n\n/**\n * Checks whether the given value is a plain object.\n *\n * @param {mixed} value - Target value.\n * @return {boolean}\n */\nexport function isPlainObject(value) {\n // NOTE: as per https://github.com/graphology/graphology/issues/149\n // this function has been loosened not to reject object instances\n // coming from other JavaScript contexts. It has also been chosen\n // not to improve it to avoid obvious false positives and avoid\n // taking a performance hit. People should really use TypeScript\n // if they want to avoid feeding subtly irrelvant attribute objects.\n return typeof value === 'object' && value !== null;\n}\n\n/**\n * Checks whether the given object is empty.\n *\n * @param {object} o - Target Object.\n * @return {boolean}\n */\nexport function isEmpty(o) {\n let k;\n\n for (k in o) return false;\n\n return true;\n}\n\n/**\n * Creates a \"private\" property for the given member name by concealing it\n * using the `enumerable` option.\n *\n * @param {object} target - Target object.\n * @param {string} name - Member name.\n */\nexport function privateProperty(target, name, value) {\n Object.defineProperty(target, name, {\n enumerable: false,\n configurable: false,\n writable: true,\n value\n });\n}\n\n/**\n * Creates a read-only property for the given member name & the given getter.\n *\n * @param {object} target - Target object.\n * @param {string} name - Member name.\n * @param {mixed} value - The attached getter or fixed value.\n */\nexport function readOnlyProperty(target, name, value) {\n const descriptor = {\n enumerable: true,\n configurable: true\n };\n\n if (typeof value === 'function') {\n descriptor.get = value;\n } else {\n descriptor.value = value;\n descriptor.writable = false;\n }\n\n Object.defineProperty(target, name, descriptor);\n}\n\n/**\n * Returns whether the given object constitute valid hints.\n *\n * @param {object} hints - Target object.\n */\nexport function validateHints(hints) {\n if (!isPlainObject(hints)) return false;\n\n if (hints.attributes && !Array.isArray(hints.attributes)) return false;\n\n return true;\n}\n\n/**\n * Creates a function generating incremental ids for edges.\n *\n * @return {function}\n */\nexport function incrementalIdStartingFromRandomByte() {\n let i = Math.floor(Math.random() * 256) & 0xff;\n\n return () => {\n return i++;\n };\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","/**\n * Obliterator Iterator Class\n * ===========================\n *\n * Simple class representing the library's iterators.\n */\n\n/**\n * Iterator class.\n *\n * @constructor\n * @param {function} next - Next function.\n */\nfunction Iterator(next) {\n if (typeof next !== 'function')\n throw new Error('obliterator/iterator: expecting a function!');\n\n this.next = next;\n}\n\n/**\n * If symbols are supported, we add `next` to `Symbol.iterator`.\n */\nif (typeof Symbol !== 'undefined')\n Iterator.prototype[Symbol.iterator] = function () {\n return this;\n };\n\n/**\n * Returning an iterator of the given values.\n *\n * @param {any...} values - Values.\n * @return {Iterator}\n */\nIterator.of = function () {\n var args = arguments,\n l = args.length,\n i = 0;\n\n return new Iterator(function () {\n if (i >= l) return {done: true};\n\n return {done: false, value: args[i++]};\n });\n};\n\n/**\n * Returning an empty iterator.\n *\n * @return {Iterator}\n */\nIterator.empty = function () {\n var iterator = new Iterator(function () {\n return {done: true};\n });\n\n return iterator;\n};\n\n/**\n * Returning an iterator over the given indexed sequence.\n *\n * @param {string|Array} sequence - Target sequence.\n * @return {Iterator}\n */\nIterator.fromSequence = function (sequence) {\n var i = 0,\n l = sequence.length;\n\n return new Iterator(function () {\n if (i >= l) return {done: true};\n\n return {done: false, value: sequence[i++]};\n });\n};\n\n/**\n * Returning whether the given value is an iterator.\n *\n * @param {any} value - Value.\n * @return {boolean}\n */\nIterator.is = function (value) {\n if (value instanceof Iterator) return true;\n\n return (\n typeof value === 'object' &&\n value !== null &&\n typeof value.next === 'function'\n );\n};\n\n/**\n * Exporting.\n */\nmodule.exports = Iterator;\n","exports.ARRAY_BUFFER_SUPPORT = typeof ArrayBuffer !== 'undefined';\nexports.SYMBOL_SUPPORT = typeof Symbol !== 'undefined';\n","/**\n * Obliterator Iter Function\n * ==========================\n *\n * Function coercing values to an iterator. It can be quite useful when needing\n * to handle iterables and iterators the same way.\n */\nvar Iterator = require('./iterator.js');\nvar support = require('./support.js');\n\nvar ARRAY_BUFFER_SUPPORT = support.ARRAY_BUFFER_SUPPORT;\nvar SYMBOL_SUPPORT = support.SYMBOL_SUPPORT;\n\nfunction iterOrNull(target) {\n // Indexed sequence\n if (\n typeof target === 'string' ||\n Array.isArray(target) ||\n (ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(target))\n )\n return Iterator.fromSequence(target);\n\n // Invalid value\n if (typeof target !== 'object' || target === null) return null;\n\n // Iterable\n if (SYMBOL_SUPPORT && typeof target[Symbol.iterator] === 'function')\n return target[Symbol.iterator]();\n\n // Iterator duck-typing\n if (typeof target.next === 'function') return target;\n\n // Invalid object\n return null;\n}\n\nmodule.exports = function iter(target) {\n var iterator = iterOrNull(target);\n\n if (!iterator)\n throw new Error(\n 'obliterator: target is not iterable nor a valid iterator.'\n );\n\n return iterator;\n};\n","/* eslint no-constant-condition: 0 */\n/**\n * Obliterator Take Function\n * ==========================\n *\n * Function taking n or every value of the given iterator and returns them\n * into an array.\n */\nvar iter = require('./iter.js');\n\n/**\n * Take.\n *\n * @param {Iterable} iterable - Target iterable.\n * @param {number} [n] - Optional number of items to take.\n * @return {array}\n */\nmodule.exports = function take(iterable, n) {\n var l = arguments.length > 1 ? n : Infinity,\n array = l !== Infinity ? new Array(l) : [],\n step,\n i = 0;\n\n var iterator = iter(iterable);\n\n while (true) {\n if (i === l) return array;\n\n step = iterator.next();\n\n if (step.done) {\n if (i !== n) array.length = i;\n\n return array;\n }\n\n array[i++] = step.value;\n }\n};\n","/**\n * Graphology Custom Errors\n * =========================\n *\n * Defining custom errors for ease of use & easy unit tests across\n * implementations (normalized typology rather than relying on error\n * messages to check whether the correct error was found).\n */\nexport class GraphError extends Error {\n constructor(message) {\n super();\n this.name = 'GraphError';\n this.message = message;\n }\n}\n\nexport class InvalidArgumentsGraphError extends GraphError {\n constructor(message) {\n super(message);\n this.name = 'InvalidArgumentsGraphError';\n\n // This is V8 specific to enhance stack readability\n if (typeof Error.captureStackTrace === 'function')\n Error.captureStackTrace(\n this,\n InvalidArgumentsGraphError.prototype.constructor\n );\n }\n}\n\nexport class NotFoundGraphError extends GraphError {\n constructor(message) {\n super(message);\n this.name = 'NotFoundGraphError';\n\n // This is V8 specific to enhance stack readability\n if (typeof Error.captureStackTrace === 'function')\n Error.captureStackTrace(this, NotFoundGraphError.prototype.constructor);\n }\n}\n\nexport class UsageGraphError extends GraphError {\n constructor(message) {\n super(message);\n this.name = 'UsageGraphError';\n\n // This is V8 specific to enhance stack readability\n if (typeof Error.captureStackTrace === 'function')\n Error.captureStackTrace(this, UsageGraphError.prototype.constructor);\n }\n}\n","/**\n * Graphology Internal Data Classes\n * =================================\n *\n * Internal classes hopefully reduced to structs by engines & storing\n * necessary information for nodes & edges.\n *\n * Note that those classes don't rely on the `class` keyword to avoid some\n * cruft introduced by most of ES2015 transpilers.\n */\n\n/**\n * MixedNodeData class.\n *\n * @constructor\n * @param {string} string - The node's key.\n * @param {object} attributes - Node's attributes.\n */\nexport function MixedNodeData(key, attributes) {\n // Attributes\n this.key = key;\n this.attributes = attributes;\n\n this.clear();\n}\n\nMixedNodeData.prototype.clear = function () {\n // Degrees\n this.inDegree = 0;\n this.outDegree = 0;\n this.undirectedDegree = 0;\n this.undirectedLoops = 0;\n this.directedLoops = 0;\n\n // Indices\n this.in = {};\n this.out = {};\n this.undirected = {};\n};\n\n/**\n * DirectedNodeData class.\n *\n * @constructor\n * @param {string} string - The node's key.\n * @param {object} attributes - Node's attributes.\n */\nexport function DirectedNodeData(key, attributes) {\n // Attributes\n this.key = key;\n this.attributes = attributes;\n\n this.clear();\n}\n\nDirectedNodeData.prototype.clear = function () {\n // Degrees\n this.inDegree = 0;\n this.outDegree = 0;\n this.directedLoops = 0;\n\n // Indices\n this.in = {};\n this.out = {};\n};\n\n/**\n * UndirectedNodeData class.\n *\n * @constructor\n * @param {string} string - The node's key.\n * @param {object} attributes - Node's attributes.\n */\nexport function UndirectedNodeData(key, attributes) {\n // Attributes\n this.key = key;\n this.attributes = attributes;\n\n this.clear();\n}\n\nUndirectedNodeData.prototype.clear = function () {\n // Degrees\n this.undirectedDegree = 0;\n this.undirectedLoops = 0;\n\n // Indices\n this.undirected = {};\n};\n\n/**\n * EdgeData class.\n *\n * @constructor\n * @param {boolean} undirected - Whether the edge is undirected.\n * @param {string} string - The edge's key.\n * @param {string} source - Source of the edge.\n * @param {string} target - Target of the edge.\n * @param {object} attributes - Edge's attributes.\n */\nexport function EdgeData(undirected, key, source, target, attributes) {\n // Attributes\n this.key = key;\n this.attributes = attributes;\n this.undirected = undirected;\n\n // Extremities\n this.source = source;\n this.target = target;\n}\n\nEdgeData.prototype.attach = function () {\n let outKey = 'out';\n let inKey = 'in';\n\n if (this.undirected) outKey = inKey = 'undirected';\n\n const source = this.source.key;\n const target = this.target.key;\n\n // Handling source\n this.source[outKey][target] = this;\n\n if (this.undirected && source === target) return;\n\n // Handling target\n this.target[inKey][source] = this;\n};\n\nEdgeData.prototype.attachMulti = function () {\n let outKey = 'out';\n let inKey = 'in';\n\n const source = this.source.key;\n const target = this.target.key;\n\n if (this.undirected) outKey = inKey = 'undirected';\n\n // Handling source\n const adj = this.source[outKey];\n const head = adj[target];\n\n if (typeof head === 'undefined') {\n adj[target] = this;\n\n // Self-loop optimization\n if (!(this.undirected && source === target)) {\n // Handling target\n this.target[inKey][source] = this;\n }\n\n return;\n }\n\n // Prepending to doubly-linked list\n head.previous = this;\n this.next = head;\n\n // Pointing to new head\n // NOTE: use mutating swap later to avoid lookup?\n adj[target] = this;\n this.target[inKey][source] = this;\n};\n\nEdgeData.prototype.detach = function () {\n const source = this.source.key;\n const target = this.target.key;\n\n let outKey = 'out';\n let inKey = 'in';\n\n if (this.undirected) outKey = inKey = 'undirected';\n\n delete this.source[outKey][target];\n\n // No-op delete in case of undirected self-loop\n delete this.target[inKey][source];\n};\n\nEdgeData.prototype.detachMulti = function () {\n const source = this.source.key;\n const target = this.target.key;\n\n let outKey = 'out';\n let inKey = 'in';\n\n if (this.undirected) outKey = inKey = 'undirected';\n\n // Deleting from doubly-linked list\n if (this.previous === undefined) {\n // We are dealing with the head\n\n // Should we delete the adjacency entry because it is now empty?\n if (this.next === undefined) {\n delete this.source[outKey][target];\n\n // No-op delete in case of undirected self-loop\n delete this.target[inKey][source];\n } else {\n // Detaching\n this.next.previous = undefined;\n\n // NOTE: could avoid the lookups by creating a #.become mutating method\n this.source[outKey][target] = this.next;\n\n // No-op delete in case of undirected self-loop\n this.target[inKey][source] = this.next;\n }\n } else {\n // We are dealing with another list node\n this.previous.next = this.next;\n\n // If not last\n if (this.next !== undefined) {\n this.next.previous = this.previous;\n }\n }\n};\n","/**\n * Graphology Node Attributes methods\n * ===================================\n */\nimport {assign, isPlainObject} from '../utils';\n\nimport {InvalidArgumentsGraphError, NotFoundGraphError} from '../errors';\n\nconst NODE = 0;\nconst SOURCE = 1;\nconst TARGET = 2;\nconst OPPOSITE = 3;\n\nfunction findRelevantNodeData(\n graph,\n method,\n mode,\n nodeOrEdge,\n nameOrEdge,\n add1,\n add2\n) {\n let nodeData, edgeData, arg1, arg2;\n\n nodeOrEdge = '' + nodeOrEdge;\n\n if (mode === NODE) {\n nodeData = graph._nodes.get(nodeOrEdge);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find the \"${nodeOrEdge}\" node in the graph.`\n );\n\n arg1 = nameOrEdge;\n arg2 = add1;\n } else if (mode === OPPOSITE) {\n nameOrEdge = '' + nameOrEdge;\n\n edgeData = graph._edges.get(nameOrEdge);\n\n if (!edgeData)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find the \"${nameOrEdge}\" edge in the graph.`\n );\n\n const source = edgeData.source.key;\n const target = edgeData.target.key;\n\n if (nodeOrEdge === source) {\n nodeData = edgeData.target;\n } else if (nodeOrEdge === target) {\n nodeData = edgeData.source;\n } else {\n throw new NotFoundGraphError(\n `Graph.${method}: the \"${nodeOrEdge}\" node is not attached to the \"${nameOrEdge}\" edge (${source}, ${target}).`\n );\n }\n\n arg1 = add1;\n arg2 = add2;\n } else {\n edgeData = graph._edges.get(nodeOrEdge);\n\n if (!edgeData)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find the \"${nodeOrEdge}\" edge in the graph.`\n );\n\n if (mode === SOURCE) {\n nodeData = edgeData.source;\n } else {\n nodeData = edgeData.target;\n }\n\n arg1 = nameOrEdge;\n arg2 = add1;\n }\n\n return [nodeData, arg1, arg2];\n}\n\nfunction attachNodeAttributeGetter(Class, method, mode) {\n Class.prototype[method] = function (nodeOrEdge, nameOrEdge, add1) {\n const [data, name] = findRelevantNodeData(\n this,\n method,\n mode,\n nodeOrEdge,\n nameOrEdge,\n add1\n );\n\n return data.attributes[name];\n };\n}\n\nfunction attachNodeAttributesGetter(Class, method, mode) {\n Class.prototype[method] = function (nodeOrEdge, nameOrEdge) {\n const [data] = findRelevantNodeData(\n this,\n method,\n mode,\n nodeOrEdge,\n nameOrEdge\n );\n\n return data.attributes;\n };\n}\n\nfunction attachNodeAttributeChecker(Class, method, mode) {\n Class.prototype[method] = function (nodeOrEdge, nameOrEdge, add1) {\n const [data, name] = findRelevantNodeData(\n this,\n method,\n mode,\n nodeOrEdge,\n nameOrEdge,\n add1\n );\n\n return data.attributes.hasOwnProperty(name);\n };\n}\n\nfunction attachNodeAttributeSetter(Class, method, mode) {\n Class.prototype[method] = function (nodeOrEdge, nameOrEdge, add1, add2) {\n const [data, name, value] = findRelevantNodeData(\n this,\n method,\n mode,\n nodeOrEdge,\n nameOrEdge,\n add1,\n add2\n );\n\n data.attributes[name] = value;\n\n // Emitting\n this.emit('nodeAttributesUpdated', {\n key: data.key,\n type: 'set',\n attributes: data.attributes,\n name\n });\n\n return this;\n };\n}\n\nfunction attachNodeAttributeUpdater(Class, method, mode) {\n Class.prototype[method] = function (nodeOrEdge, nameOrEdge, add1, add2) {\n const [data, name, updater] = findRelevantNodeData(\n this,\n method,\n mode,\n nodeOrEdge,\n nameOrEdge,\n add1,\n add2\n );\n\n if (typeof updater !== 'function')\n throw new InvalidArgumentsGraphError(\n `Graph.${method}: updater should be a function.`\n );\n\n const attributes = data.attributes;\n const value = updater(attributes[name]);\n\n attributes[name] = value;\n\n // Emitting\n this.emit('nodeAttributesUpdated', {\n key: data.key,\n type: 'set',\n attributes: data.attributes,\n name\n });\n\n return this;\n };\n}\n\nfunction attachNodeAttributeRemover(Class, method, mode) {\n Class.prototype[method] = function (nodeOrEdge, nameOrEdge, add1) {\n const [data, name] = findRelevantNodeData(\n this,\n method,\n mode,\n nodeOrEdge,\n nameOrEdge,\n add1\n );\n\n delete data.attributes[name];\n\n // Emitting\n this.emit('nodeAttributesUpdated', {\n key: data.key,\n type: 'remove',\n attributes: data.attributes,\n name\n });\n\n return this;\n };\n}\n\nfunction attachNodeAttributesReplacer(Class, method, mode) {\n Class.prototype[method] = function (nodeOrEdge, nameOrEdge, add1) {\n const [data, attributes] = findRelevantNodeData(\n this,\n method,\n mode,\n nodeOrEdge,\n nameOrEdge,\n add1\n );\n\n if (!isPlainObject(attributes))\n throw new InvalidArgumentsGraphError(\n `Graph.${method}: provided attributes are not a plain object.`\n );\n\n data.attributes = attributes;\n\n // Emitting\n this.emit('nodeAttributesUpdated', {\n key: data.key,\n type: 'replace',\n attributes: data.attributes\n });\n\n return this;\n };\n}\n\nfunction attachNodeAttributesMerger(Class, method, mode) {\n Class.prototype[method] = function (nodeOrEdge, nameOrEdge, add1) {\n const [data, attributes] = findRelevantNodeData(\n this,\n method,\n mode,\n nodeOrEdge,\n nameOrEdge,\n add1\n );\n\n if (!isPlainObject(attributes))\n throw new InvalidArgumentsGraphError(\n `Graph.${method}: provided attributes are not a plain object.`\n );\n\n assign(data.attributes, attributes);\n\n // Emitting\n this.emit('nodeAttributesUpdated', {\n key: data.key,\n type: 'merge',\n attributes: data.attributes,\n data: attributes\n });\n\n return this;\n };\n}\n\nfunction attachNodeAttributesUpdater(Class, method, mode) {\n Class.prototype[method] = function (nodeOrEdge, nameOrEdge, add1) {\n const [data, updater] = findRelevantNodeData(\n this,\n method,\n mode,\n nodeOrEdge,\n nameOrEdge,\n add1\n );\n\n if (typeof updater !== 'function')\n throw new InvalidArgumentsGraphError(\n `Graph.${method}: provided updater is not a function.`\n );\n\n data.attributes = updater(data.attributes);\n\n // Emitting\n this.emit('nodeAttributesUpdated', {\n key: data.key,\n type: 'update',\n attributes: data.attributes\n });\n\n return this;\n };\n}\n\n/**\n * List of methods to attach.\n */\nconst NODE_ATTRIBUTES_METHODS = [\n {\n name: element => `get${element}Attribute`,\n attacher: attachNodeAttributeGetter\n },\n {\n name: element => `get${element}Attributes`,\n attacher: attachNodeAttributesGetter\n },\n {\n name: element => `has${element}Attribute`,\n attacher: attachNodeAttributeChecker\n },\n {\n name: element => `set${element}Attribute`,\n attacher: attachNodeAttributeSetter\n },\n {\n name: element => `update${element}Attribute`,\n attacher: attachNodeAttributeUpdater\n },\n {\n name: element => `remove${element}Attribute`,\n attacher: attachNodeAttributeRemover\n },\n {\n name: element => `replace${element}Attributes`,\n attacher: attachNodeAttributesReplacer\n },\n {\n name: element => `merge${element}Attributes`,\n attacher: attachNodeAttributesMerger\n },\n {\n name: element => `update${element}Attributes`,\n attacher: attachNodeAttributesUpdater\n }\n];\n\n/**\n * Attach every attributes-related methods to a Graph class.\n *\n * @param {function} Graph - Target class.\n */\nexport default function attachNodeAttributesMethods(Graph) {\n NODE_ATTRIBUTES_METHODS.forEach(function ({name, attacher}) {\n // For nodes\n attacher(Graph, name('Node'), NODE);\n\n // For sources\n attacher(Graph, name('Source'), SOURCE);\n\n // For targets\n attacher(Graph, name('Target'), TARGET);\n\n // For opposites\n attacher(Graph, name('Opposite'), OPPOSITE);\n });\n}\n","/**\n * Graphology Edge Attributes methods\n * ===================================\n */\nimport {assign, isPlainObject, getMatchingEdge} from '../utils';\n\nimport {\n InvalidArgumentsGraphError,\n NotFoundGraphError,\n UsageGraphError\n} from '../errors';\n\n/**\n * Attach an attribute getter method onto the provided class.\n *\n * @param {function} Class - Target class.\n * @param {string} method - Method name.\n * @param {string} type - Type of the edge to find.\n */\nfunction attachEdgeAttributeGetter(Class, method, type) {\n /**\n * Get the desired attribute for the given element (node or edge).\n *\n * Arity 2:\n * @param {any} element - Target element.\n * @param {string} name - Attribute's name.\n *\n * Arity 3 (only for edges):\n * @param {any} source - Source element.\n * @param {any} target - Target element.\n * @param {string} name - Attribute's name.\n *\n * @return {mixed} - The attribute's value.\n *\n * @throws {Error} - Will throw if too many arguments are provided.\n * @throws {Error} - Will throw if any of the elements is not found.\n */\n Class.prototype[method] = function (element, name) {\n let data;\n\n if (this.type !== 'mixed' && type !== 'mixed' && type !== this.type)\n throw new UsageGraphError(\n `Graph.${method}: cannot find this type of edges in your ${this.type} graph.`\n );\n\n if (arguments.length > 2) {\n if (this.multi)\n throw new UsageGraphError(\n `Graph.${method}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`\n );\n\n const source = '' + element;\n const target = '' + name;\n\n name = arguments[2];\n\n data = getMatchingEdge(this, source, target, type);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find an edge for the given path (\"${source}\" - \"${target}\").`\n );\n } else {\n if (type !== 'mixed')\n throw new UsageGraphError(\n `Graph.${method}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`\n );\n\n element = '' + element;\n data = this._edges.get(element);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find the \"${element}\" edge in the graph.`\n );\n }\n\n return data.attributes[name];\n };\n}\n\n/**\n * Attach an attributes getter method onto the provided class.\n *\n * @param {function} Class - Target class.\n * @param {string} method - Method name.\n * @param {string} type - Type of the edge to find.\n */\nfunction attachEdgeAttributesGetter(Class, method, type) {\n /**\n * Retrieves all the target element's attributes.\n *\n * Arity 2:\n * @param {any} element - Target element.\n *\n * Arity 3 (only for edges):\n * @param {any} source - Source element.\n * @param {any} target - Target element.\n *\n * @return {object} - The element's attributes.\n *\n * @throws {Error} - Will throw if too many arguments are provided.\n * @throws {Error} - Will throw if any of the elements is not found.\n */\n Class.prototype[method] = function (element) {\n let data;\n\n if (this.type !== 'mixed' && type !== 'mixed' && type !== this.type)\n throw new UsageGraphError(\n `Graph.${method}: cannot find this type of edges in your ${this.type} graph.`\n );\n\n if (arguments.length > 1) {\n if (this.multi)\n throw new UsageGraphError(\n `Graph.${method}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`\n );\n\n const source = '' + element,\n target = '' + arguments[1];\n\n data = getMatchingEdge(this, source, target, type);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find an edge for the given path (\"${source}\" - \"${target}\").`\n );\n } else {\n if (type !== 'mixed')\n throw new UsageGraphError(\n `Graph.${method}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`\n );\n\n element = '' + element;\n data = this._edges.get(element);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find the \"${element}\" edge in the graph.`\n );\n }\n\n return data.attributes;\n };\n}\n\n/**\n * Attach an attribute checker method onto the provided class.\n *\n * @param {function} Class - Target class.\n * @param {string} method - Method name.\n * @param {string} type - Type of the edge to find.\n */\nfunction attachEdgeAttributeChecker(Class, method, type) {\n /**\n * Checks whether the desired attribute is set for the given element (node or edge).\n *\n * Arity 2:\n * @param {any} element - Target element.\n * @param {string} name - Attribute's name.\n *\n * Arity 3 (only for edges):\n * @param {any} source - Source element.\n * @param {any} target - Target element.\n * @param {string} name - Attribute's name.\n *\n * @return {boolean}\n *\n * @throws {Error} - Will throw if too many arguments are provided.\n * @throws {Error} - Will throw if any of the elements is not found.\n */\n Class.prototype[method] = function (element, name) {\n let data;\n\n if (this.type !== 'mixed' && type !== 'mixed' && type !== this.type)\n throw new UsageGraphError(\n `Graph.${method}: cannot find this type of edges in your ${this.type} graph.`\n );\n\n if (arguments.length > 2) {\n if (this.multi)\n throw new UsageGraphError(\n `Graph.${method}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`\n );\n\n const source = '' + element;\n const target = '' + name;\n\n name = arguments[2];\n\n data = getMatchingEdge(this, source, target, type);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find an edge for the given path (\"${source}\" - \"${target}\").`\n );\n } else {\n if (type !== 'mixed')\n throw new UsageGraphError(\n `Graph.${method}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`\n );\n\n element = '' + element;\n data = this._edges.get(element);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find the \"${element}\" edge in the graph.`\n );\n }\n\n return data.attributes.hasOwnProperty(name);\n };\n}\n\n/**\n * Attach an attribute setter method onto the provided class.\n *\n * @param {function} Class - Target class.\n * @param {string} method - Method name.\n * @param {string} type - Type of the edge to find.\n */\nfunction attachEdgeAttributeSetter(Class, method, type) {\n /**\n * Set the desired attribute for the given element (node or edge).\n *\n * Arity 2:\n * @param {any} element - Target element.\n * @param {string} name - Attribute's name.\n * @param {mixed} value - New attribute value.\n *\n * Arity 3 (only for edges):\n * @param {any} source - Source element.\n * @param {any} target - Target element.\n * @param {string} name - Attribute's name.\n * @param {mixed} value - New attribute value.\n *\n * @return {Graph} - Returns itself for chaining.\n *\n * @throws {Error} - Will throw if too many arguments are provided.\n * @throws {Error} - Will throw if any of the elements is not found.\n */\n Class.prototype[method] = function (element, name, value) {\n let data;\n\n if (this.type !== 'mixed' && type !== 'mixed' && type !== this.type)\n throw new UsageGraphError(\n `Graph.${method}: cannot find this type of edges in your ${this.type} graph.`\n );\n\n if (arguments.length > 3) {\n if (this.multi)\n throw new UsageGraphError(\n `Graph.${method}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`\n );\n\n const source = '' + element;\n const target = '' + name;\n\n name = arguments[2];\n value = arguments[3];\n\n data = getMatchingEdge(this, source, target, type);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find an edge for the given path (\"${source}\" - \"${target}\").`\n );\n } else {\n if (type !== 'mixed')\n throw new UsageGraphError(\n `Graph.${method}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`\n );\n\n element = '' + element;\n data = this._edges.get(element);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find the \"${element}\" edge in the graph.`\n );\n }\n\n data.attributes[name] = value;\n\n // Emitting\n this.emit('edgeAttributesUpdated', {\n key: data.key,\n type: 'set',\n attributes: data.attributes,\n name\n });\n\n return this;\n };\n}\n\n/**\n * Attach an attribute updater method onto the provided class.\n *\n * @param {function} Class - Target class.\n * @param {string} method - Method name.\n * @param {string} type - Type of the edge to find.\n */\nfunction attachEdgeAttributeUpdater(Class, method, type) {\n /**\n * Update the desired attribute for the given element (node or edge) using\n * the provided function.\n *\n * Arity 2:\n * @param {any} element - Target element.\n * @param {string} name - Attribute's name.\n * @param {function} updater - Updater function.\n *\n * Arity 3 (only for edges):\n * @param {any} source - Source element.\n * @param {any} target - Target element.\n * @param {string} name - Attribute's name.\n * @param {function} updater - Updater function.\n *\n * @return {Graph} - Returns itself for chaining.\n *\n * @throws {Error} - Will throw if too many arguments are provided.\n * @throws {Error} - Will throw if any of the elements is not found.\n */\n Class.prototype[method] = function (element, name, updater) {\n let data;\n\n if (this.type !== 'mixed' && type !== 'mixed' && type !== this.type)\n throw new UsageGraphError(\n `Graph.${method}: cannot find this type of edges in your ${this.type} graph.`\n );\n\n if (arguments.length > 3) {\n if (this.multi)\n throw new UsageGraphError(\n `Graph.${method}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`\n );\n\n const source = '' + element;\n const target = '' + name;\n\n name = arguments[2];\n updater = arguments[3];\n\n data = getMatchingEdge(this, source, target, type);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find an edge for the given path (\"${source}\" - \"${target}\").`\n );\n } else {\n if (type !== 'mixed')\n throw new UsageGraphError(\n `Graph.${method}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`\n );\n\n element = '' + element;\n data = this._edges.get(element);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find the \"${element}\" edge in the graph.`\n );\n }\n\n if (typeof updater !== 'function')\n throw new InvalidArgumentsGraphError(\n `Graph.${method}: updater should be a function.`\n );\n\n data.attributes[name] = updater(data.attributes[name]);\n\n // Emitting\n this.emit('edgeAttributesUpdated', {\n key: data.key,\n type: 'set',\n attributes: data.attributes,\n name\n });\n\n return this;\n };\n}\n\n/**\n * Attach an attribute remover method onto the provided class.\n *\n * @param {function} Class - Target class.\n * @param {string} method - Method name.\n * @param {string} type - Type of the edge to find.\n */\nfunction attachEdgeAttributeRemover(Class, method, type) {\n /**\n * Remove the desired attribute for the given element (node or edge).\n *\n * Arity 2:\n * @param {any} element - Target element.\n * @param {string} name - Attribute's name.\n *\n * Arity 3 (only for edges):\n * @param {any} source - Source element.\n * @param {any} target - Target element.\n * @param {string} name - Attribute's name.\n *\n * @return {Graph} - Returns itself for chaining.\n *\n * @throws {Error} - Will throw if too many arguments are provided.\n * @throws {Error} - Will throw if any of the elements is not found.\n */\n Class.prototype[method] = function (element, name) {\n let data;\n\n if (this.type !== 'mixed' && type !== 'mixed' && type !== this.type)\n throw new UsageGraphError(\n `Graph.${method}: cannot find this type of edges in your ${this.type} graph.`\n );\n\n if (arguments.length > 2) {\n if (this.multi)\n throw new UsageGraphError(\n `Graph.${method}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`\n );\n\n const source = '' + element;\n const target = '' + name;\n\n name = arguments[2];\n\n data = getMatchingEdge(this, source, target, type);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find an edge for the given path (\"${source}\" - \"${target}\").`\n );\n } else {\n if (type !== 'mixed')\n throw new UsageGraphError(\n `Graph.${method}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`\n );\n\n element = '' + element;\n data = this._edges.get(element);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find the \"${element}\" edge in the graph.`\n );\n }\n\n delete data.attributes[name];\n\n // Emitting\n this.emit('edgeAttributesUpdated', {\n key: data.key,\n type: 'remove',\n attributes: data.attributes,\n name\n });\n\n return this;\n };\n}\n\n/**\n * Attach an attribute replacer method onto the provided class.\n *\n * @param {function} Class - Target class.\n * @param {string} method - Method name.\n * @param {string} type - Type of the edge to find.\n */\nfunction attachEdgeAttributesReplacer(Class, method, type) {\n /**\n * Replace the attributes for the given element (node or edge).\n *\n * Arity 2:\n * @param {any} element - Target element.\n * @param {object} attributes - New attributes.\n *\n * Arity 3 (only for edges):\n * @param {any} source - Source element.\n * @param {any} target - Target element.\n * @param {object} attributes - New attributes.\n *\n * @return {Graph} - Returns itself for chaining.\n *\n * @throws {Error} - Will throw if too many arguments are provided.\n * @throws {Error} - Will throw if any of the elements is not found.\n */\n Class.prototype[method] = function (element, attributes) {\n let data;\n\n if (this.type !== 'mixed' && type !== 'mixed' && type !== this.type)\n throw new UsageGraphError(\n `Graph.${method}: cannot find this type of edges in your ${this.type} graph.`\n );\n\n if (arguments.length > 2) {\n if (this.multi)\n throw new UsageGraphError(\n `Graph.${method}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`\n );\n\n const source = '' + element,\n target = '' + attributes;\n\n attributes = arguments[2];\n\n data = getMatchingEdge(this, source, target, type);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find an edge for the given path (\"${source}\" - \"${target}\").`\n );\n } else {\n if (type !== 'mixed')\n throw new UsageGraphError(\n `Graph.${method}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`\n );\n\n element = '' + element;\n data = this._edges.get(element);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find the \"${element}\" edge in the graph.`\n );\n }\n\n if (!isPlainObject(attributes))\n throw new InvalidArgumentsGraphError(\n `Graph.${method}: provided attributes are not a plain object.`\n );\n\n data.attributes = attributes;\n\n // Emitting\n this.emit('edgeAttributesUpdated', {\n key: data.key,\n type: 'replace',\n attributes: data.attributes\n });\n\n return this;\n };\n}\n\n/**\n * Attach an attribute merger method onto the provided class.\n *\n * @param {function} Class - Target class.\n * @param {string} method - Method name.\n * @param {string} type - Type of the edge to find.\n */\nfunction attachEdgeAttributesMerger(Class, method, type) {\n /**\n * Merge the attributes for the given element (node or edge).\n *\n * Arity 2:\n * @param {any} element - Target element.\n * @param {object} attributes - Attributes to merge.\n *\n * Arity 3 (only for edges):\n * @param {any} source - Source element.\n * @param {any} target - Target element.\n * @param {object} attributes - Attributes to merge.\n *\n * @return {Graph} - Returns itself for chaining.\n *\n * @throws {Error} - Will throw if too many arguments are provided.\n * @throws {Error} - Will throw if any of the elements is not found.\n */\n Class.prototype[method] = function (element, attributes) {\n let data;\n\n if (this.type !== 'mixed' && type !== 'mixed' && type !== this.type)\n throw new UsageGraphError(\n `Graph.${method}: cannot find this type of edges in your ${this.type} graph.`\n );\n\n if (arguments.length > 2) {\n if (this.multi)\n throw new UsageGraphError(\n `Graph.${method}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`\n );\n\n const source = '' + element,\n target = '' + attributes;\n\n attributes = arguments[2];\n\n data = getMatchingEdge(this, source, target, type);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find an edge for the given path (\"${source}\" - \"${target}\").`\n );\n } else {\n if (type !== 'mixed')\n throw new UsageGraphError(\n `Graph.${method}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`\n );\n\n element = '' + element;\n data = this._edges.get(element);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find the \"${element}\" edge in the graph.`\n );\n }\n\n if (!isPlainObject(attributes))\n throw new InvalidArgumentsGraphError(\n `Graph.${method}: provided attributes are not a plain object.`\n );\n\n assign(data.attributes, attributes);\n\n // Emitting\n this.emit('edgeAttributesUpdated', {\n key: data.key,\n type: 'merge',\n attributes: data.attributes,\n data: attributes\n });\n\n return this;\n };\n}\n\n/**\n * Attach an attribute updater method onto the provided class.\n *\n * @param {function} Class - Target class.\n * @param {string} method - Method name.\n * @param {string} type - Type of the edge to find.\n */\nfunction attachEdgeAttributesUpdater(Class, method, type) {\n /**\n * Update the attributes of the given element (node or edge).\n *\n * Arity 2:\n * @param {any} element - Target element.\n * @param {function} updater - Updater function.\n *\n * Arity 3 (only for edges):\n * @param {any} source - Source element.\n * @param {any} target - Target element.\n * @param {function} updater - Updater function.\n *\n * @return {Graph} - Returns itself for chaining.\n *\n * @throws {Error} - Will throw if too many arguments are provided.\n * @throws {Error} - Will throw if any of the elements is not found.\n */\n Class.prototype[method] = function (element, updater) {\n let data;\n\n if (this.type !== 'mixed' && type !== 'mixed' && type !== this.type)\n throw new UsageGraphError(\n `Graph.${method}: cannot find this type of edges in your ${this.type} graph.`\n );\n\n if (arguments.length > 2) {\n if (this.multi)\n throw new UsageGraphError(\n `Graph.${method}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`\n );\n\n const source = '' + element,\n target = '' + updater;\n\n updater = arguments[2];\n\n data = getMatchingEdge(this, source, target, type);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find an edge for the given path (\"${source}\" - \"${target}\").`\n );\n } else {\n if (type !== 'mixed')\n throw new UsageGraphError(\n `Graph.${method}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`\n );\n\n element = '' + element;\n data = this._edges.get(element);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.${method}: could not find the \"${element}\" edge in the graph.`\n );\n }\n\n if (typeof updater !== 'function')\n throw new InvalidArgumentsGraphError(\n `Graph.${method}: provided updater is not a function.`\n );\n\n data.attributes = updater(data.attributes);\n\n // Emitting\n this.emit('edgeAttributesUpdated', {\n key: data.key,\n type: 'update',\n attributes: data.attributes\n });\n\n return this;\n };\n}\n\n/**\n * List of methods to attach.\n */\nconst EDGE_ATTRIBUTES_METHODS = [\n {\n name: element => `get${element}Attribute`,\n attacher: attachEdgeAttributeGetter\n },\n {\n name: element => `get${element}Attributes`,\n attacher: attachEdgeAttributesGetter\n },\n {\n name: element => `has${element}Attribute`,\n attacher: attachEdgeAttributeChecker\n },\n {\n name: element => `set${element}Attribute`,\n attacher: attachEdgeAttributeSetter\n },\n {\n name: element => `update${element}Attribute`,\n attacher: attachEdgeAttributeUpdater\n },\n {\n name: element => `remove${element}Attribute`,\n attacher: attachEdgeAttributeRemover\n },\n {\n name: element => `replace${element}Attributes`,\n attacher: attachEdgeAttributesReplacer\n },\n {\n name: element => `merge${element}Attributes`,\n attacher: attachEdgeAttributesMerger\n },\n {\n name: element => `update${element}Attributes`,\n attacher: attachEdgeAttributesUpdater\n }\n];\n\n/**\n * Attach every attributes-related methods to a Graph class.\n *\n * @param {function} Graph - Target class.\n */\nexport default function attachEdgeAttributesMethods(Graph) {\n EDGE_ATTRIBUTES_METHODS.forEach(function ({name, attacher}) {\n // For edges\n attacher(Graph, name('Edge'), 'mixed');\n\n // For directed edges\n attacher(Graph, name('DirectedEdge'), 'directed');\n\n // For undirected edges\n attacher(Graph, name('UndirectedEdge'), 'undirected');\n });\n}\n","/**\n * Obliterator Chain Function\n * ===========================\n *\n * Variadic function combining the given iterables.\n */\nvar Iterator = require('./iterator.js');\nvar iter = require('./iter.js');\n\n/**\n * Chain.\n *\n * @param {...Iterator} iterables - Target iterables.\n * @return {Iterator}\n */\nmodule.exports = function chain() {\n var iterables = arguments;\n var current = null;\n var i = -1;\n\n /* eslint-disable no-constant-condition */\n return new Iterator(function next() {\n var step = null;\n\n do {\n if (current === null) {\n i++;\n\n if (i >= iterables.length) return {done: true};\n\n current = iter(iterables[i]);\n }\n\n step = current.next();\n\n if (step.done === true) {\n current = null;\n continue;\n }\n\n break;\n } while (true);\n\n return step;\n });\n};\n","/**\n * Graphology Edge Iteration\n * ==========================\n *\n * Attaching some methods to the Graph class to be able to iterate over a\n * graph's edges.\n */\nimport Iterator from 'obliterator/iterator';\nimport chain from 'obliterator/chain';\nimport take from 'obliterator/take';\n\nimport {InvalidArgumentsGraphError, NotFoundGraphError} from '../errors';\n\n/**\n * Definitions.\n */\nconst EDGES_ITERATION = [\n {\n name: 'edges',\n type: 'mixed'\n },\n {\n name: 'inEdges',\n type: 'directed',\n direction: 'in'\n },\n {\n name: 'outEdges',\n type: 'directed',\n direction: 'out'\n },\n {\n name: 'inboundEdges',\n type: 'mixed',\n direction: 'in'\n },\n {\n name: 'outboundEdges',\n type: 'mixed',\n direction: 'out'\n },\n {\n name: 'directedEdges',\n type: 'directed'\n },\n {\n name: 'undirectedEdges',\n type: 'undirected'\n }\n];\n\n/**\n * Function iterating over edges from the given object to match one of them.\n *\n * @param {object} object - Target object.\n * @param {function} callback - Function to call.\n */\nfunction forEachSimple(breakable, object, callback, avoid) {\n let shouldBreak = false;\n\n for (const k in object) {\n if (k === avoid) continue;\n\n const edgeData = object[k];\n\n shouldBreak = callback(\n edgeData.key,\n edgeData.attributes,\n edgeData.source.key,\n edgeData.target.key,\n edgeData.source.attributes,\n edgeData.target.attributes,\n edgeData.undirected\n );\n\n if (breakable && shouldBreak) return edgeData.key;\n }\n\n return;\n}\n\nfunction forEachMulti(breakable, object, callback, avoid) {\n let edgeData, source, target;\n\n let shouldBreak = false;\n\n for (const k in object) {\n if (k === avoid) continue;\n\n edgeData = object[k];\n\n do {\n source = edgeData.source;\n target = edgeData.target;\n\n shouldBreak = callback(\n edgeData.key,\n edgeData.attributes,\n source.key,\n target.key,\n source.attributes,\n target.attributes,\n edgeData.undirected\n );\n\n if (breakable && shouldBreak) return edgeData.key;\n\n edgeData = edgeData.next;\n } while (edgeData !== undefined);\n }\n\n return;\n}\n\n/**\n * Function returning an iterator over edges from the given object.\n *\n * @param {object} object - Target object.\n * @return {Iterator}\n */\nfunction createIterator(object, avoid) {\n const keys = Object.keys(object);\n const l = keys.length;\n\n let edgeData;\n let i = 0;\n\n return new Iterator(function next() {\n do {\n if (!edgeData) {\n if (i >= l) return {done: true};\n\n const k = keys[i++];\n\n if (k === avoid) {\n edgeData = undefined;\n continue;\n }\n\n edgeData = object[k];\n } else {\n edgeData = edgeData.next;\n }\n } while (!edgeData);\n\n return {\n done: false,\n value: {\n edge: edgeData.key,\n attributes: edgeData.attributes,\n source: edgeData.source.key,\n target: edgeData.target.key,\n sourceAttributes: edgeData.source.attributes,\n targetAttributes: edgeData.target.attributes,\n undirected: edgeData.undirected\n }\n };\n });\n}\n\n/**\n * Function iterating over the egdes from the object at given key to match\n * one of them.\n *\n * @param {object} object - Target object.\n * @param {mixed} k - Neighbor key.\n * @param {function} callback - Callback to use.\n */\nfunction forEachForKeySimple(breakable, object, k, callback) {\n const edgeData = object[k];\n\n if (!edgeData) return;\n\n const sourceData = edgeData.source;\n const targetData = edgeData.target;\n\n if (\n callback(\n edgeData.key,\n edgeData.attributes,\n sourceData.key,\n targetData.key,\n sourceData.attributes,\n targetData.attributes,\n edgeData.undirected\n ) &&\n breakable\n )\n return edgeData.key;\n}\n\nfunction forEachForKeyMulti(breakable, object, k, callback) {\n let edgeData = object[k];\n\n if (!edgeData) return;\n\n let shouldBreak = false;\n\n do {\n shouldBreak = callback(\n edgeData.key,\n edgeData.attributes,\n edgeData.source.key,\n edgeData.target.key,\n edgeData.source.attributes,\n edgeData.target.attributes,\n edgeData.undirected\n );\n\n if (breakable && shouldBreak) return edgeData.key;\n\n edgeData = edgeData.next;\n } while (edgeData !== undefined);\n\n return;\n}\n\n/**\n * Function returning an iterator over the egdes from the object at given key.\n *\n * @param {object} object - Target object.\n * @param {mixed} k - Neighbor key.\n * @return {Iterator}\n */\nfunction createIteratorForKey(object, k) {\n let edgeData = object[k];\n\n if (edgeData.next !== undefined) {\n return new Iterator(function () {\n if (!edgeData) return {done: true};\n\n const value = {\n edge: edgeData.key,\n attributes: edgeData.attributes,\n source: edgeData.source.key,\n target: edgeData.target.key,\n sourceAttributes: edgeData.source.attributes,\n targetAttributes: edgeData.target.attributes,\n undirected: edgeData.undirected\n };\n\n edgeData = edgeData.next;\n\n return {\n done: false,\n value\n };\n });\n }\n\n return Iterator.of({\n edge: edgeData.key,\n attributes: edgeData.attributes,\n source: edgeData.source.key,\n target: edgeData.target.key,\n sourceAttributes: edgeData.source.attributes,\n targetAttributes: edgeData.target.attributes,\n undirected: edgeData.undirected\n });\n}\n\n/**\n * Function creating an array of edges for the given type.\n *\n * @param {Graph} graph - Target Graph instance.\n * @param {string} type - Type of edges to retrieve.\n * @return {array} - Array of edges.\n */\nfunction createEdgeArray(graph, type) {\n if (graph.size === 0) return [];\n\n if (type === 'mixed' || type === graph.type) {\n if (typeof Array.from === 'function')\n return Array.from(graph._edges.keys());\n\n return take(graph._edges.keys(), graph._edges.size);\n }\n\n const size =\n type === 'undirected' ? graph.undirectedSize : graph.directedSize;\n\n const list = new Array(size),\n mask = type === 'undirected';\n\n const iterator = graph._edges.values();\n\n let i = 0;\n let step, data;\n\n while (((step = iterator.next()), step.done !== true)) {\n data = step.value;\n\n if (data.undirected === mask) list[i++] = data.key;\n }\n\n return list;\n}\n\n/**\n * Function iterating over a graph's edges using a callback to match one of\n * them.\n *\n * @param {Graph} graph - Target Graph instance.\n * @param {string} type - Type of edges to retrieve.\n * @param {function} callback - Function to call.\n */\nfunction forEachEdge(breakable, graph, type, callback) {\n if (graph.size === 0) return;\n\n const shouldFilter = type !== 'mixed' && type !== graph.type;\n const mask = type === 'undirected';\n\n let step, data;\n let shouldBreak = false;\n const iterator = graph._edges.values();\n\n while (((step = iterator.next()), step.done !== true)) {\n data = step.value;\n\n if (shouldFilter && data.undirected !== mask) continue;\n\n const {key, attributes, source, target} = data;\n\n shouldBreak = callback(\n key,\n attributes,\n source.key,\n target.key,\n source.attributes,\n target.attributes,\n data.undirected\n );\n\n if (breakable && shouldBreak) return key;\n }\n\n return;\n}\n\n/**\n * Function creating an iterator of edges for the given type.\n *\n * @param {Graph} graph - Target Graph instance.\n * @param {string} type - Type of edges to retrieve.\n * @return {Iterator}\n */\nfunction createEdgeIterator(graph, type) {\n if (graph.size === 0) return Iterator.empty();\n\n const shouldFilter = type !== 'mixed' && type !== graph.type;\n const mask = type === 'undirected';\n\n const iterator = graph._edges.values();\n\n return new Iterator(function next() {\n let step, data;\n\n // eslint-disable-next-line no-constant-condition\n while (true) {\n step = iterator.next();\n\n if (step.done) return step;\n\n data = step.value;\n\n if (shouldFilter && data.undirected !== mask) continue;\n\n break;\n }\n\n const value = {\n edge: data.key,\n attributes: data.attributes,\n source: data.source.key,\n target: data.target.key,\n sourceAttributes: data.source.attributes,\n targetAttributes: data.target.attributes,\n undirected: data.undirected\n };\n\n return {value, done: false};\n });\n}\n\n/**\n * Function iterating over a node's edges using a callback to match one of them.\n *\n * @param {boolean} multi - Whether the graph is multi or not.\n * @param {string} type - Type of edges to retrieve.\n * @param {string} direction - In or out?\n * @param {any} nodeData - Target node's data.\n * @param {function} callback - Function to call.\n */\nfunction forEachEdgeForNode(\n breakable,\n multi,\n type,\n direction,\n nodeData,\n callback\n) {\n const fn = multi ? forEachMulti : forEachSimple;\n\n let found;\n\n if (type !== 'undirected') {\n if (direction !== 'out') {\n found = fn(breakable, nodeData.in, callback);\n\n if (breakable && found) return found;\n }\n if (direction !== 'in') {\n found = fn(\n breakable,\n nodeData.out,\n callback,\n !direction ? nodeData.key : undefined\n );\n\n if (breakable && found) return found;\n }\n }\n\n if (type !== 'directed') {\n found = fn(breakable, nodeData.undirected, callback);\n\n if (breakable && found) return found;\n }\n\n return;\n}\n\n/**\n * Function creating an array of edges for the given type & the given node.\n *\n * @param {boolean} multi - Whether the graph is multi or not.\n * @param {string} type - Type of edges to retrieve.\n * @param {string} direction - In or out?\n * @param {any} nodeData - Target node's data.\n * @return {array} - Array of edges.\n */\nfunction createEdgeArrayForNode(multi, type, direction, nodeData) {\n const edges = []; // TODO: possibility to know size beforehand or factorize with map\n\n forEachEdgeForNode(false, multi, type, direction, nodeData, function (key) {\n edges.push(key);\n });\n\n return edges;\n}\n\n/**\n * Function iterating over a node's edges using a callback.\n *\n * @param {string} type - Type of edges to retrieve.\n * @param {string} direction - In or out?\n * @param {any} nodeData - Target node's data.\n * @return {Iterator}\n */\nfunction createEdgeIteratorForNode(type, direction, nodeData) {\n let iterator = Iterator.empty();\n\n if (type !== 'undirected') {\n if (direction !== 'out' && typeof nodeData.in !== 'undefined')\n iterator = chain(iterator, createIterator(nodeData.in));\n if (direction !== 'in' && typeof nodeData.out !== 'undefined')\n iterator = chain(\n iterator,\n createIterator(nodeData.out, !direction ? nodeData.key : undefined)\n );\n }\n\n if (type !== 'directed' && typeof nodeData.undirected !== 'undefined') {\n iterator = chain(iterator, createIterator(nodeData.undirected));\n }\n\n return iterator;\n}\n\n/**\n * Function iterating over edges for the given path using a callback to match\n * one of them.\n *\n * @param {string} type - Type of edges to retrieve.\n * @param {boolean} multi - Whether the graph is multi.\n * @param {string} direction - In or out?\n * @param {NodeData} sourceData - Source node's data.\n * @param {string} target - Target node.\n * @param {function} callback - Function to call.\n */\nfunction forEachEdgeForPath(\n breakable,\n type,\n multi,\n direction,\n sourceData,\n target,\n callback\n) {\n const fn = multi ? forEachForKeyMulti : forEachForKeySimple;\n\n let found;\n\n if (type !== 'undirected') {\n if (typeof sourceData.in !== 'undefined' && direction !== 'out') {\n found = fn(breakable, sourceData.in, target, callback);\n\n if (breakable && found) return found;\n }\n\n if (\n typeof sourceData.out !== 'undefined' &&\n direction !== 'in' &&\n (direction || sourceData.key !== target)\n ) {\n found = fn(breakable, sourceData.out, target, callback);\n\n if (breakable && found) return found;\n }\n }\n\n if (type !== 'directed') {\n if (typeof sourceData.undirected !== 'undefined') {\n found = fn(breakable, sourceData.undirected, target, callback);\n\n if (breakable && found) return found;\n }\n }\n\n return;\n}\n\n/**\n * Function creating an array of edges for the given path.\n *\n * @param {string} type - Type of edges to retrieve.\n * @param {boolean} multi - Whether the graph is multi.\n * @param {string} direction - In or out?\n * @param {NodeData} sourceData - Source node's data.\n * @param {any} target - Target node.\n * @return {array} - Array of edges.\n */\nfunction createEdgeArrayForPath(type, multi, direction, sourceData, target) {\n const edges = []; // TODO: possibility to know size beforehand or factorize with map\n\n forEachEdgeForPath(\n false,\n type,\n multi,\n direction,\n sourceData,\n target,\n function (key) {\n edges.push(key);\n }\n );\n\n return edges;\n}\n\n/**\n * Function returning an iterator over edges for the given path.\n *\n * @param {string} type - Type of edges to retrieve.\n * @param {string} direction - In or out?\n * @param {NodeData} sourceData - Source node's data.\n * @param {string} target - Target node.\n * @param {function} callback - Function to call.\n */\nfunction createEdgeIteratorForPath(type, direction, sourceData, target) {\n let iterator = Iterator.empty();\n\n if (type !== 'undirected') {\n if (\n typeof sourceData.in !== 'undefined' &&\n direction !== 'out' &&\n target in sourceData.in\n )\n iterator = chain(iterator, createIteratorForKey(sourceData.in, target));\n\n if (\n typeof sourceData.out !== 'undefined' &&\n direction !== 'in' &&\n target in sourceData.out &&\n (direction || sourceData.key !== target)\n )\n iterator = chain(iterator, createIteratorForKey(sourceData.out, target));\n }\n\n if (type !== 'directed') {\n if (\n typeof sourceData.undirected !== 'undefined' &&\n target in sourceData.undirected\n )\n iterator = chain(\n iterator,\n createIteratorForKey(sourceData.undirected, target)\n );\n }\n\n return iterator;\n}\n\n/**\n * Function attaching an edge array creator method to the Graph prototype.\n *\n * @param {function} Class - Target class.\n * @param {object} description - Method description.\n */\nfunction attachEdgeArrayCreator(Class, description) {\n const {name, type, direction} = description;\n\n /**\n * Function returning an array of certain edges.\n *\n * Arity 0: Return all the relevant edges.\n *\n * Arity 1: Return all of a node's relevant edges.\n * @param {any} node - Target node.\n *\n * Arity 2: Return the relevant edges across the given path.\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n *\n * @return {array|number} - The edges or the number of edges.\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n Class.prototype[name] = function (source, target) {\n // Early termination\n if (type !== 'mixed' && this.type !== 'mixed' && type !== this.type)\n return [];\n\n if (!arguments.length) return createEdgeArray(this, type);\n\n if (arguments.length === 1) {\n source = '' + source;\n\n const nodeData = this._nodes.get(source);\n\n if (typeof nodeData === 'undefined')\n throw new NotFoundGraphError(\n `Graph.${name}: could not find the \"${source}\" node in the graph.`\n );\n\n // Iterating over a node's edges\n return createEdgeArrayForNode(\n this.multi,\n type === 'mixed' ? this.type : type,\n direction,\n nodeData\n );\n }\n\n if (arguments.length === 2) {\n source = '' + source;\n target = '' + target;\n\n const sourceData = this._nodes.get(source);\n\n if (!sourceData)\n throw new NotFoundGraphError(\n `Graph.${name}: could not find the \"${source}\" source node in the graph.`\n );\n\n if (!this._nodes.has(target))\n throw new NotFoundGraphError(\n `Graph.${name}: could not find the \"${target}\" target node in the graph.`\n );\n\n // Iterating over the edges between source & target\n return createEdgeArrayForPath(\n type,\n this.multi,\n direction,\n sourceData,\n target\n );\n }\n\n throw new InvalidArgumentsGraphError(\n `Graph.${name}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`\n );\n };\n}\n\n/**\n * Function attaching a edge callback iterator method to the Graph prototype.\n *\n * @param {function} Class - Target class.\n * @param {object} description - Method description.\n */\nfunction attachForEachEdge(Class, description) {\n const {name, type, direction} = description;\n\n const forEachName = 'forEach' + name[0].toUpperCase() + name.slice(1, -1);\n\n /**\n * Function iterating over the graph's relevant edges by applying the given\n * callback.\n *\n * Arity 1: Iterate over all the relevant edges.\n * @param {function} callback - Callback to use.\n *\n * Arity 2: Iterate over all of a node's relevant edges.\n * @param {any} node - Target node.\n * @param {function} callback - Callback to use.\n *\n * Arity 3: Iterate over the relevant edges across the given path.\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n * @param {function} callback - Callback to use.\n *\n * @return {undefined}\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n Class.prototype[forEachName] = function (source, target, callback) {\n // Early termination\n if (type !== 'mixed' && this.type !== 'mixed' && type !== this.type) return;\n\n if (arguments.length === 1) {\n callback = source;\n return forEachEdge(false, this, type, callback);\n }\n\n if (arguments.length === 2) {\n source = '' + source;\n callback = target;\n\n const nodeData = this._nodes.get(source);\n\n if (typeof nodeData === 'undefined')\n throw new NotFoundGraphError(\n `Graph.${forEachName}: could not find the \"${source}\" node in the graph.`\n );\n\n // Iterating over a node's edges\n // TODO: maybe attach the sub method to the instance dynamically?\n return forEachEdgeForNode(\n false,\n this.multi,\n type === 'mixed' ? this.type : type,\n direction,\n nodeData,\n callback\n );\n }\n\n if (arguments.length === 3) {\n source = '' + source;\n target = '' + target;\n\n const sourceData = this._nodes.get(source);\n\n if (!sourceData)\n throw new NotFoundGraphError(\n `Graph.${forEachName}: could not find the \"${source}\" source node in the graph.`\n );\n\n if (!this._nodes.has(target))\n throw new NotFoundGraphError(\n `Graph.${forEachName}: could not find the \"${target}\" target node in the graph.`\n );\n\n // Iterating over the edges between source & target\n return forEachEdgeForPath(\n false,\n type,\n this.multi,\n direction,\n sourceData,\n target,\n callback\n );\n }\n\n throw new InvalidArgumentsGraphError(\n `Graph.${forEachName}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`\n );\n };\n\n /**\n * Function mapping the graph's relevant edges by applying the given\n * callback.\n *\n * Arity 1: Map all the relevant edges.\n * @param {function} callback - Callback to use.\n *\n * Arity 2: Map all of a node's relevant edges.\n * @param {any} node - Target node.\n * @param {function} callback - Callback to use.\n *\n * Arity 3: Map the relevant edges across the given path.\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n * @param {function} callback - Callback to use.\n *\n * @return {undefined}\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n const mapName = 'map' + name[0].toUpperCase() + name.slice(1);\n\n Class.prototype[mapName] = function () {\n const args = Array.prototype.slice.call(arguments);\n const callback = args.pop();\n\n let result;\n\n // We know the result length beforehand\n if (args.length === 0) {\n let length = 0;\n\n if (type !== 'directed') length += this.undirectedSize;\n if (type !== 'undirected') length += this.directedSize;\n\n result = new Array(length);\n\n let i = 0;\n\n args.push((e, ea, s, t, sa, ta, u) => {\n result[i++] = callback(e, ea, s, t, sa, ta, u);\n });\n }\n\n // We don't know the result length beforehand\n // TODO: we can in some instances of simple graphs, knowing degree\n else {\n result = [];\n\n args.push((e, ea, s, t, sa, ta, u) => {\n result.push(callback(e, ea, s, t, sa, ta, u));\n });\n }\n\n this[forEachName].apply(this, args);\n\n return result;\n };\n\n /**\n * Function filtering the graph's relevant edges using the provided predicate\n * function.\n *\n * Arity 1: Filter all the relevant edges.\n * @param {function} predicate - Predicate to use.\n *\n * Arity 2: Filter all of a node's relevant edges.\n * @param {any} node - Target node.\n * @param {function} predicate - Predicate to use.\n *\n * Arity 3: Filter the relevant edges across the given path.\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n * @param {function} predicate - Predicate to use.\n *\n * @return {undefined}\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n const filterName = 'filter' + name[0].toUpperCase() + name.slice(1);\n\n Class.prototype[filterName] = function () {\n const args = Array.prototype.slice.call(arguments);\n const callback = args.pop();\n\n const result = [];\n\n args.push((e, ea, s, t, sa, ta, u) => {\n if (callback(e, ea, s, t, sa, ta, u)) result.push(e);\n });\n\n this[forEachName].apply(this, args);\n\n return result;\n };\n\n /**\n * Function reducing the graph's relevant edges using the provided accumulator\n * function.\n *\n * Arity 1: Reduce all the relevant edges.\n * @param {function} accumulator - Accumulator to use.\n * @param {any} initialValue - Initial value.\n *\n * Arity 2: Reduce all of a node's relevant edges.\n * @param {any} node - Target node.\n * @param {function} accumulator - Accumulator to use.\n * @param {any} initialValue - Initial value.\n *\n * Arity 3: Reduce the relevant edges across the given path.\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n * @param {function} accumulator - Accumulator to use.\n * @param {any} initialValue - Initial value.\n *\n * @return {undefined}\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n const reduceName = 'reduce' + name[0].toUpperCase() + name.slice(1);\n\n Class.prototype[reduceName] = function () {\n let args = Array.prototype.slice.call(arguments);\n\n if (args.length < 2 || args.length > 4) {\n throw new InvalidArgumentsGraphError(\n `Graph.${reduceName}: invalid number of arguments (expecting 2, 3 or 4 and got ${args.length}).`\n );\n }\n\n if (\n typeof args[args.length - 1] === 'function' &&\n typeof args[args.length - 2] !== 'function'\n ) {\n throw new InvalidArgumentsGraphError(\n `Graph.${reduceName}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`\n );\n }\n\n let callback;\n let initialValue;\n\n if (args.length === 2) {\n callback = args[0];\n initialValue = args[1];\n args = [];\n } else if (args.length === 3) {\n callback = args[1];\n initialValue = args[2];\n args = [args[0]];\n } else if (args.length === 4) {\n callback = args[2];\n initialValue = args[3];\n args = [args[0], args[1]];\n }\n\n let accumulator = initialValue;\n\n args.push((e, ea, s, t, sa, ta, u) => {\n accumulator = callback(accumulator, e, ea, s, t, sa, ta, u);\n });\n\n this[forEachName].apply(this, args);\n\n return accumulator;\n };\n}\n\n/**\n * Function attaching a breakable edge callback iterator method to the Graph\n * prototype.\n *\n * @param {function} Class - Target class.\n * @param {object} description - Method description.\n */\nfunction attachFindEdge(Class, description) {\n const {name, type, direction} = description;\n\n const findEdgeName = 'find' + name[0].toUpperCase() + name.slice(1, -1);\n\n /**\n * Function iterating over the graph's relevant edges in order to match\n * one of them using the provided predicate function.\n *\n * Arity 1: Iterate over all the relevant edges.\n * @param {function} callback - Callback to use.\n *\n * Arity 2: Iterate over all of a node's relevant edges.\n * @param {any} node - Target node.\n * @param {function} callback - Callback to use.\n *\n * Arity 3: Iterate over the relevant edges across the given path.\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n * @param {function} callback - Callback to use.\n *\n * @return {undefined}\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n Class.prototype[findEdgeName] = function (source, target, callback) {\n // Early termination\n if (type !== 'mixed' && this.type !== 'mixed' && type !== this.type)\n return false;\n\n if (arguments.length === 1) {\n callback = source;\n return forEachEdge(true, this, type, callback);\n }\n\n if (arguments.length === 2) {\n source = '' + source;\n callback = target;\n\n const nodeData = this._nodes.get(source);\n\n if (typeof nodeData === 'undefined')\n throw new NotFoundGraphError(\n `Graph.${findEdgeName}: could not find the \"${source}\" node in the graph.`\n );\n\n // Iterating over a node's edges\n // TODO: maybe attach the sub method to the instance dynamically?\n return forEachEdgeForNode(\n true,\n this.multi,\n type === 'mixed' ? this.type : type,\n direction,\n nodeData,\n callback\n );\n }\n\n if (arguments.length === 3) {\n source = '' + source;\n target = '' + target;\n\n const sourceData = this._nodes.get(source);\n\n if (!sourceData)\n throw new NotFoundGraphError(\n `Graph.${findEdgeName}: could not find the \"${source}\" source node in the graph.`\n );\n\n if (!this._nodes.has(target))\n throw new NotFoundGraphError(\n `Graph.${findEdgeName}: could not find the \"${target}\" target node in the graph.`\n );\n\n // Iterating over the edges between source & target\n return forEachEdgeForPath(\n true,\n type,\n this.multi,\n direction,\n sourceData,\n target,\n callback\n );\n }\n\n throw new InvalidArgumentsGraphError(\n `Graph.${findEdgeName}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`\n );\n };\n\n /**\n * Function iterating over the graph's relevant edges in order to assert\n * whether any one of them matches the provided predicate function.\n *\n * Arity 1: Iterate over all the relevant edges.\n * @param {function} callback - Callback to use.\n *\n * Arity 2: Iterate over all of a node's relevant edges.\n * @param {any} node - Target node.\n * @param {function} callback - Callback to use.\n *\n * Arity 3: Iterate over the relevant edges across the given path.\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n * @param {function} callback - Callback to use.\n *\n * @return {undefined}\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n const someName = 'some' + name[0].toUpperCase() + name.slice(1, -1);\n\n Class.prototype[someName] = function () {\n const args = Array.prototype.slice.call(arguments);\n const callback = args.pop();\n\n args.push((e, ea, s, t, sa, ta, u) => {\n return callback(e, ea, s, t, sa, ta, u);\n });\n\n const found = this[findEdgeName].apply(this, args);\n\n if (found) return true;\n\n return false;\n };\n\n /**\n * Function iterating over the graph's relevant edges in order to assert\n * whether all of them matche the provided predicate function.\n *\n * Arity 1: Iterate over all the relevant edges.\n * @param {function} callback - Callback to use.\n *\n * Arity 2: Iterate over all of a node's relevant edges.\n * @param {any} node - Target node.\n * @param {function} callback - Callback to use.\n *\n * Arity 3: Iterate over the relevant edges across the given path.\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n * @param {function} callback - Callback to use.\n *\n * @return {undefined}\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n const everyName = 'every' + name[0].toUpperCase() + name.slice(1, -1);\n\n Class.prototype[everyName] = function () {\n const args = Array.prototype.slice.call(arguments);\n const callback = args.pop();\n\n args.push((e, ea, s, t, sa, ta, u) => {\n return !callback(e, ea, s, t, sa, ta, u);\n });\n\n const found = this[findEdgeName].apply(this, args);\n\n if (found) return false;\n\n return true;\n };\n}\n\n/**\n * Function attaching an edge iterator method to the Graph prototype.\n *\n * @param {function} Class - Target class.\n * @param {object} description - Method description.\n */\nfunction attachEdgeIteratorCreator(Class, description) {\n const {name: originalName, type, direction} = description;\n\n const name = originalName.slice(0, -1) + 'Entries';\n\n /**\n * Function returning an iterator over the graph's edges.\n *\n * Arity 0: Iterate over all the relevant edges.\n *\n * Arity 1: Iterate over all of a node's relevant edges.\n * @param {any} node - Target node.\n *\n * Arity 2: Iterate over the relevant edges across the given path.\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n *\n * @return {array|number} - The edges or the number of edges.\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n Class.prototype[name] = function (source, target) {\n // Early termination\n if (type !== 'mixed' && this.type !== 'mixed' && type !== this.type)\n return Iterator.empty();\n\n if (!arguments.length) return createEdgeIterator(this, type);\n\n if (arguments.length === 1) {\n source = '' + source;\n\n const sourceData = this._nodes.get(source);\n\n if (!sourceData)\n throw new NotFoundGraphError(\n `Graph.${name}: could not find the \"${source}\" node in the graph.`\n );\n\n // Iterating over a node's edges\n return createEdgeIteratorForNode(type, direction, sourceData);\n }\n\n if (arguments.length === 2) {\n source = '' + source;\n target = '' + target;\n\n const sourceData = this._nodes.get(source);\n\n if (!sourceData)\n throw new NotFoundGraphError(\n `Graph.${name}: could not find the \"${source}\" source node in the graph.`\n );\n\n if (!this._nodes.has(target))\n throw new NotFoundGraphError(\n `Graph.${name}: could not find the \"${target}\" target node in the graph.`\n );\n\n // Iterating over the edges between source & target\n return createEdgeIteratorForPath(type, direction, sourceData, target);\n }\n\n throw new InvalidArgumentsGraphError(\n `Graph.${name}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`\n );\n };\n}\n\n/**\n * Function attaching every edge iteration method to the Graph class.\n *\n * @param {function} Graph - Graph class.\n */\nexport default function attachEdgeIterationMethods(Graph) {\n EDGES_ITERATION.forEach(description => {\n attachEdgeArrayCreator(Graph, description);\n attachForEachEdge(Graph, description);\n attachFindEdge(Graph, description);\n attachEdgeIteratorCreator(Graph, description);\n });\n}\n","/**\n * Graphology Neighbor Iteration\n * ==============================\n *\n * Attaching some methods to the Graph class to be able to iterate over\n * neighbors.\n */\nimport Iterator from 'obliterator/iterator';\nimport chain from 'obliterator/chain';\n\nimport {NotFoundGraphError, InvalidArgumentsGraphError} from '../errors';\n\n/**\n * Definitions.\n */\nconst NEIGHBORS_ITERATION = [\n {\n name: 'neighbors',\n type: 'mixed'\n },\n {\n name: 'inNeighbors',\n type: 'directed',\n direction: 'in'\n },\n {\n name: 'outNeighbors',\n type: 'directed',\n direction: 'out'\n },\n {\n name: 'inboundNeighbors',\n type: 'mixed',\n direction: 'in'\n },\n {\n name: 'outboundNeighbors',\n type: 'mixed',\n direction: 'out'\n },\n {\n name: 'directedNeighbors',\n type: 'directed'\n },\n {\n name: 'undirectedNeighbors',\n type: 'undirected'\n }\n];\n\n/**\n * Helpers.\n */\nfunction CompositeSetWrapper() {\n this.A = null;\n this.B = null;\n}\n\nCompositeSetWrapper.prototype.wrap = function (set) {\n if (this.A === null) this.A = set;\n else if (this.B === null) this.B = set;\n};\n\nCompositeSetWrapper.prototype.has = function (key) {\n if (this.A !== null && key in this.A) return true;\n if (this.B !== null && key in this.B) return true;\n return false;\n};\n\n/**\n * Function iterating over the given node's relevant neighbors to match\n * one of them using a predicated function.\n *\n * @param {string} type - Type of neighbors.\n * @param {string} direction - Direction.\n * @param {any} nodeData - Target node's data.\n * @param {function} callback - Callback to use.\n */\nfunction forEachInObjectOnce(breakable, visited, nodeData, object, callback) {\n for (const k in object) {\n const edgeData = object[k];\n\n const sourceData = edgeData.source;\n const targetData = edgeData.target;\n\n const neighborData = sourceData === nodeData ? targetData : sourceData;\n\n if (visited && visited.has(neighborData.key)) continue;\n\n const shouldBreak = callback(neighborData.key, neighborData.attributes);\n\n if (breakable && shouldBreak) return neighborData.key;\n }\n\n return;\n}\n\nfunction forEachNeighbor(breakable, type, direction, nodeData, callback) {\n // If we want only undirected or in or out, we can roll some optimizations\n if (type !== 'mixed') {\n if (type === 'undirected')\n return forEachInObjectOnce(\n breakable,\n null,\n nodeData,\n nodeData.undirected,\n callback\n );\n\n if (typeof direction === 'string')\n return forEachInObjectOnce(\n breakable,\n null,\n nodeData,\n nodeData[direction],\n callback\n );\n }\n\n // Else we need to keep a set of neighbors not to return duplicates\n // We cheat by querying the other adjacencies\n const visited = new CompositeSetWrapper();\n\n let found;\n\n if (type !== 'undirected') {\n if (direction !== 'out') {\n found = forEachInObjectOnce(\n breakable,\n null,\n nodeData,\n nodeData.in,\n callback\n );\n\n if (breakable && found) return found;\n\n visited.wrap(nodeData.in);\n }\n if (direction !== 'in') {\n found = forEachInObjectOnce(\n breakable,\n visited,\n nodeData,\n nodeData.out,\n callback\n );\n\n if (breakable && found) return found;\n\n visited.wrap(nodeData.out);\n }\n }\n\n if (type !== 'directed') {\n found = forEachInObjectOnce(\n breakable,\n visited,\n nodeData,\n nodeData.undirected,\n callback\n );\n\n if (breakable && found) return found;\n }\n\n return;\n}\n\n/**\n * Function creating an array of relevant neighbors for the given node.\n *\n * @param {string} type - Type of neighbors.\n * @param {string} direction - Direction.\n * @param {any} nodeData - Target node's data.\n * @return {Array} - The list of neighbors.\n */\nfunction createNeighborArrayForNode(type, direction, nodeData) {\n // If we want only undirected or in or out, we can roll some optimizations\n if (type !== 'mixed') {\n if (type === 'undirected') return Object.keys(nodeData.undirected);\n\n if (typeof direction === 'string') return Object.keys(nodeData[direction]);\n }\n\n const neighbors = [];\n\n forEachNeighbor(false, type, direction, nodeData, function (key) {\n neighbors.push(key);\n });\n\n return neighbors;\n}\n\n/**\n * Function returning an iterator over the given node's relevant neighbors.\n *\n * @param {string} type - Type of neighbors.\n * @param {string} direction - Direction.\n * @param {any} nodeData - Target node's data.\n * @return {Iterator}\n */\nfunction createDedupedObjectIterator(visited, nodeData, object) {\n const keys = Object.keys(object);\n const l = keys.length;\n\n let i = 0;\n\n return new Iterator(function next() {\n let neighborData = null;\n\n do {\n if (i >= l) {\n if (visited) visited.wrap(object);\n return {done: true};\n }\n\n const edgeData = object[keys[i++]];\n\n const sourceData = edgeData.source;\n const targetData = edgeData.target;\n\n neighborData = sourceData === nodeData ? targetData : sourceData;\n\n if (visited && visited.has(neighborData.key)) {\n neighborData = null;\n continue;\n }\n } while (neighborData === null);\n\n return {\n done: false,\n value: {neighbor: neighborData.key, attributes: neighborData.attributes}\n };\n });\n}\n\nfunction createNeighborIterator(type, direction, nodeData) {\n // If we want only undirected or in or out, we can roll some optimizations\n if (type !== 'mixed') {\n if (type === 'undirected')\n return createDedupedObjectIterator(null, nodeData, nodeData.undirected);\n\n if (typeof direction === 'string')\n return createDedupedObjectIterator(null, nodeData, nodeData[direction]);\n }\n\n let iterator = Iterator.empty();\n\n // Else we need to keep a set of neighbors not to return duplicates\n // We cheat by querying the other adjacencies\n const visited = new CompositeSetWrapper();\n\n if (type !== 'undirected') {\n if (direction !== 'out') {\n iterator = chain(\n iterator,\n createDedupedObjectIterator(visited, nodeData, nodeData.in)\n );\n }\n if (direction !== 'in') {\n iterator = chain(\n iterator,\n createDedupedObjectIterator(visited, nodeData, nodeData.out)\n );\n }\n }\n\n if (type !== 'directed') {\n iterator = chain(\n iterator,\n createDedupedObjectIterator(visited, nodeData, nodeData.undirected)\n );\n }\n\n return iterator;\n}\n\n/**\n * Function attaching a neighbors array creator method to the Graph prototype.\n *\n * @param {function} Class - Target class.\n * @param {object} description - Method description.\n */\nfunction attachNeighborArrayCreator(Class, description) {\n const {name, type, direction} = description;\n\n /**\n * Function returning an array of certain neighbors.\n *\n * @param {any} node - Target node.\n * @return {array} - The neighbors of neighbors.\n *\n * @throws {Error} - Will throw if node is not found in the graph.\n */\n Class.prototype[name] = function (node) {\n // Early termination\n if (type !== 'mixed' && this.type !== 'mixed' && type !== this.type)\n return [];\n\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (typeof nodeData === 'undefined')\n throw new NotFoundGraphError(\n `Graph.${name}: could not find the \"${node}\" node in the graph.`\n );\n\n // Here, we want to iterate over a node's relevant neighbors\n return createNeighborArrayForNode(\n type === 'mixed' ? this.type : type,\n direction,\n nodeData\n );\n };\n}\n\n/**\n * Function attaching a neighbors callback iterator method to the Graph prototype.\n *\n * @param {function} Class - Target class.\n * @param {object} description - Method description.\n */\nfunction attachForEachNeighbor(Class, description) {\n const {name, type, direction} = description;\n\n const forEachName = 'forEach' + name[0].toUpperCase() + name.slice(1, -1);\n\n /**\n * Function iterating over all the relevant neighbors using a callback.\n *\n * @param {any} node - Target node.\n * @param {function} callback - Callback to use.\n * @return {undefined}\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n Class.prototype[forEachName] = function (node, callback) {\n // Early termination\n if (type !== 'mixed' && this.type !== 'mixed' && type !== this.type) return;\n\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (typeof nodeData === 'undefined')\n throw new NotFoundGraphError(\n `Graph.${forEachName}: could not find the \"${node}\" node in the graph.`\n );\n\n // Here, we want to iterate over a node's relevant neighbors\n forEachNeighbor(\n false,\n type === 'mixed' ? this.type : type,\n direction,\n nodeData,\n callback\n );\n };\n\n /**\n * Function mapping the relevant neighbors using a callback.\n *\n * @param {any} node - Target node.\n * @param {function} callback - Callback to use.\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n const mapName = 'map' + name[0].toUpperCase() + name.slice(1);\n\n Class.prototype[mapName] = function (node, callback) {\n // TODO: optimize when size is known beforehand\n const result = [];\n\n this[forEachName](node, (n, a) => {\n result.push(callback(n, a));\n });\n\n return result;\n };\n\n /**\n * Function filtering the relevant neighbors using a callback.\n *\n * @param {any} node - Target node.\n * @param {function} callback - Callback to use.\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n const filterName = 'filter' + name[0].toUpperCase() + name.slice(1);\n\n Class.prototype[filterName] = function (node, callback) {\n const result = [];\n\n this[forEachName](node, (n, a) => {\n if (callback(n, a)) result.push(n);\n });\n\n return result;\n };\n\n /**\n * Function reducing the relevant neighbors using a callback.\n *\n * @param {any} node - Target node.\n * @param {function} callback - Callback to use.\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n const reduceName = 'reduce' + name[0].toUpperCase() + name.slice(1);\n\n Class.prototype[reduceName] = function (node, callback, initialValue) {\n if (arguments.length < 3)\n throw new InvalidArgumentsGraphError(\n `Graph.${reduceName}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`\n );\n\n let accumulator = initialValue;\n\n this[forEachName](node, (n, a) => {\n accumulator = callback(accumulator, n, a);\n });\n\n return accumulator;\n };\n}\n\n/**\n * Function attaching a breakable neighbors callback iterator method to the\n * Graph prototype.\n *\n * @param {function} Class - Target class.\n * @param {object} description - Method description.\n */\nfunction attachFindNeighbor(Class, description) {\n const {name, type, direction} = description;\n\n const capitalizedSingular = name[0].toUpperCase() + name.slice(1, -1);\n\n const findName = 'find' + capitalizedSingular;\n\n /**\n * Function iterating over all the relevant neighbors using a callback.\n *\n * @param {any} node - Target node.\n * @param {function} callback - Callback to use.\n * @return {undefined}\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n Class.prototype[findName] = function (node, callback) {\n // Early termination\n if (type !== 'mixed' && this.type !== 'mixed' && type !== this.type) return;\n\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (typeof nodeData === 'undefined')\n throw new NotFoundGraphError(\n `Graph.${findName}: could not find the \"${node}\" node in the graph.`\n );\n\n // Here, we want to iterate over a node's relevant neighbors\n return forEachNeighbor(\n true,\n type === 'mixed' ? this.type : type,\n direction,\n nodeData,\n callback\n );\n };\n\n /**\n * Function iterating over all the relevant neighbors to find if any of them\n * matches the given predicate.\n *\n * @param {any} node - Target node.\n * @param {function} callback - Callback to use.\n * @return {boolean}\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n const someName = 'some' + capitalizedSingular;\n\n Class.prototype[someName] = function (node, callback) {\n const found = this[findName](node, callback);\n\n if (found) return true;\n\n return false;\n };\n\n /**\n * Function iterating over all the relevant neighbors to find if all of them\n * matche the given predicate.\n *\n * @param {any} node - Target node.\n * @param {function} callback - Callback to use.\n * @return {boolean}\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n const everyName = 'every' + capitalizedSingular;\n\n Class.prototype[everyName] = function (node, callback) {\n const found = this[findName](node, (n, a) => {\n return !callback(n, a);\n });\n\n if (found) return false;\n\n return true;\n };\n}\n\n/**\n * Function attaching a neighbors callback iterator method to the Graph prototype.\n *\n * @param {function} Class - Target class.\n * @param {object} description - Method description.\n */\nfunction attachNeighborIteratorCreator(Class, description) {\n const {name, type, direction} = description;\n\n const iteratorName = name.slice(0, -1) + 'Entries';\n\n /**\n * Function returning an iterator over all the relevant neighbors.\n *\n * @param {any} node - Target node.\n * @return {Iterator}\n *\n * @throws {Error} - Will throw if there are too many arguments.\n */\n Class.prototype[iteratorName] = function (node) {\n // Early termination\n if (type !== 'mixed' && this.type !== 'mixed' && type !== this.type)\n return Iterator.empty();\n\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (typeof nodeData === 'undefined')\n throw new NotFoundGraphError(\n `Graph.${iteratorName}: could not find the \"${node}\" node in the graph.`\n );\n\n // Here, we want to iterate over a node's relevant neighbors\n return createNeighborIterator(\n type === 'mixed' ? this.type : type,\n direction,\n nodeData\n );\n };\n}\n\n/**\n * Function attaching every neighbor iteration method to the Graph class.\n *\n * @param {function} Graph - Graph class.\n */\nexport default function attachNeighborIterationMethods(Graph) {\n NEIGHBORS_ITERATION.forEach(description => {\n attachNeighborArrayCreator(Graph, description);\n attachForEachNeighbor(Graph, description);\n attachFindNeighbor(Graph, description);\n attachNeighborIteratorCreator(Graph, description);\n });\n}\n","/**\n * Graphology Adjacency Iteration\n * ===============================\n *\n * Attaching some methods to the Graph class to be able to iterate over a\n * graph's adjacency.\n */\n\n/**\n * Function iterating over a simple graph's adjacency using a callback.\n *\n * @param {boolean} breakable - Can we break?\n * @param {boolean} assymetric - Whether to emit undirected edges only once.\n * @param {boolean} disconnectedNodes - Whether to emit disconnected nodes.\n * @param {Graph} graph - Target Graph instance.\n * @param {callback} function - Iteration callback.\n */\nexport function forEachAdjacency(\n breakable,\n assymetric,\n disconnectedNodes,\n graph,\n callback\n) {\n const iterator = graph._nodes.values();\n\n const type = graph.type;\n\n let step, sourceData, neighbor, adj, edgeData, targetData, shouldBreak;\n\n while (((step = iterator.next()), step.done !== true)) {\n let hasEdges = false;\n\n sourceData = step.value;\n\n if (type !== 'undirected') {\n adj = sourceData.out;\n\n for (neighbor in adj) {\n edgeData = adj[neighbor];\n\n do {\n targetData = edgeData.target;\n\n hasEdges = true;\n shouldBreak = callback(\n sourceData.key,\n targetData.key,\n sourceData.attributes,\n targetData.attributes,\n edgeData.key,\n edgeData.attributes,\n edgeData.undirected\n );\n\n if (breakable && shouldBreak) return edgeData;\n\n edgeData = edgeData.next;\n } while (edgeData);\n }\n }\n\n if (type !== 'directed') {\n adj = sourceData.undirected;\n\n for (neighbor in adj) {\n if (assymetric && sourceData.key > neighbor) continue;\n\n edgeData = adj[neighbor];\n\n do {\n targetData = edgeData.target;\n\n if (targetData.key !== neighbor) targetData = edgeData.source;\n\n hasEdges = true;\n shouldBreak = callback(\n sourceData.key,\n targetData.key,\n sourceData.attributes,\n targetData.attributes,\n edgeData.key,\n edgeData.attributes,\n edgeData.undirected\n );\n\n if (breakable && shouldBreak) return edgeData;\n\n edgeData = edgeData.next;\n } while (edgeData);\n }\n }\n\n if (disconnectedNodes && !hasEdges) {\n shouldBreak = callback(\n sourceData.key,\n null,\n sourceData.attributes,\n null,\n null,\n null,\n null\n );\n\n if (breakable && shouldBreak) return null;\n }\n }\n\n return;\n}\n","/**\n * Graphology Serialization Utilities\n * ===================================\n *\n * Collection of functions used by the graph serialization schemes.\n */\nimport {InvalidArgumentsGraphError} from './errors';\nimport {assign, isPlainObject, isEmpty} from './utils';\n\n/**\n * Formats internal node data into a serialized node.\n *\n * @param {any} key - The node's key.\n * @param {object} data - Internal node's data.\n * @return {array} - The serialized node.\n */\nexport function serializeNode(key, data) {\n const serialized = {key};\n\n if (!isEmpty(data.attributes))\n serialized.attributes = assign({}, data.attributes);\n\n return serialized;\n}\n\n/**\n * Formats internal edge data into a serialized edge.\n *\n * @param {string} type - The graph's type.\n * @param {any} key - The edge's key.\n * @param {object} data - Internal edge's data.\n * @return {array} - The serialized edge.\n */\nexport function serializeEdge(type, key, data) {\n const serialized = {\n key,\n source: data.source.key,\n target: data.target.key\n };\n\n if (!isEmpty(data.attributes))\n serialized.attributes = assign({}, data.attributes);\n\n if (type === 'mixed' && data.undirected) serialized.undirected = true;\n\n return serialized;\n}\n\n/**\n * Checks whether the given value is a serialized node.\n *\n * @param {mixed} value - Target value.\n * @return {string|null}\n */\nexport function validateSerializedNode(value) {\n if (!isPlainObject(value))\n throw new InvalidArgumentsGraphError(\n 'Graph.import: invalid serialized node. A serialized node should be a plain object with at least a \"key\" property.'\n );\n\n if (!('key' in value))\n throw new InvalidArgumentsGraphError(\n 'Graph.import: serialized node is missing its key.'\n );\n\n if (\n 'attributes' in value &&\n (!isPlainObject(value.attributes) || value.attributes === null)\n )\n throw new InvalidArgumentsGraphError(\n 'Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.'\n );\n}\n\n/**\n * Checks whether the given value is a serialized edge.\n *\n * @param {mixed} value - Target value.\n * @return {string|null}\n */\nexport function validateSerializedEdge(value) {\n if (!isPlainObject(value))\n throw new InvalidArgumentsGraphError(\n 'Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a \"source\" & \"target\" property.'\n );\n\n if (!('source' in value))\n throw new InvalidArgumentsGraphError(\n 'Graph.import: serialized edge is missing its source.'\n );\n\n if (!('target' in value))\n throw new InvalidArgumentsGraphError(\n 'Graph.import: serialized edge is missing its target.'\n );\n\n if (\n 'attributes' in value &&\n (!isPlainObject(value.attributes) || value.attributes === null)\n )\n throw new InvalidArgumentsGraphError(\n 'Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.'\n );\n\n if ('undirected' in value && typeof value.undirected !== 'boolean')\n throw new InvalidArgumentsGraphError(\n 'Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.'\n );\n}\n","/* eslint no-nested-ternary: 0 */\n/**\n * Graphology Reference Implementation\n * ====================================\n *\n * Reference implementation of the graphology specs.\n */\nimport {EventEmitter} from 'events';\nimport Iterator from 'obliterator/iterator';\nimport take from 'obliterator/take';\n\nimport {\n InvalidArgumentsGraphError,\n NotFoundGraphError,\n UsageGraphError\n} from './errors';\n\nimport {\n MixedNodeData,\n DirectedNodeData,\n UndirectedNodeData,\n EdgeData\n} from './data';\n\nimport attachNodeAttributesMethods from './attributes/nodes';\nimport attachEdgeAttributesMethods from './attributes/edges';\nimport attachEdgeIterationMethods from './iteration/edges';\nimport attachNeighborIterationMethods from './iteration/neighbors';\nimport {forEachAdjacency} from './iteration/adjacency';\n\nimport {\n serializeNode,\n serializeEdge,\n validateSerializedNode,\n validateSerializedEdge\n} from './serialization';\n\nimport {\n assign,\n getMatchingEdge,\n isPlainObject,\n privateProperty,\n readOnlyProperty,\n incrementalIdStartingFromRandomByte,\n validateHints\n} from './utils';\n\n/**\n * Constants.\n */\nconst INSTANCE_ID = incrementalIdStartingFromRandomByte();\n\n/**\n * Enums.\n */\nconst TYPES = new Set(['directed', 'undirected', 'mixed']);\n\nconst EMITTER_PROPS = new Set([\n 'domain',\n '_events',\n '_eventsCount',\n '_maxListeners'\n]);\n\nconst EDGE_ADD_METHODS = [\n {\n name: verb => `${verb}Edge`,\n generateKey: true\n },\n {\n name: verb => `${verb}DirectedEdge`,\n generateKey: true,\n type: 'directed'\n },\n {\n name: verb => `${verb}UndirectedEdge`,\n generateKey: true,\n type: 'undirected'\n },\n {\n name: verb => `${verb}EdgeWithKey`\n },\n {\n name: verb => `${verb}DirectedEdgeWithKey`,\n type: 'directed'\n },\n {\n name: verb => `${verb}UndirectedEdgeWithKey`,\n type: 'undirected'\n }\n];\n\n/**\n * Default options.\n */\nconst DEFAULTS = {\n allowSelfLoops: true,\n multi: false,\n type: 'mixed'\n};\n\n/**\n * Abstract functions used by the Graph class for various methods.\n */\n\n/**\n * Internal method used to add a node to the given graph\n *\n * @param {Graph} graph - Target graph.\n * @param {any} node - The node's key.\n * @param {object} [attributes] - Optional attributes.\n * @return {NodeData} - Created node data.\n */\nfunction addNode(graph, node, attributes) {\n if (attributes && !isPlainObject(attributes))\n throw new InvalidArgumentsGraphError(\n `Graph.addNode: invalid attributes. Expecting an object but got \"${attributes}\"`\n );\n\n // String coercion\n node = '' + node;\n attributes = attributes || {};\n\n if (graph._nodes.has(node))\n throw new UsageGraphError(\n `Graph.addNode: the \"${node}\" node already exist in the graph.`\n );\n\n const data = new graph.NodeDataClass(node, attributes);\n\n // Adding the node to internal register\n graph._nodes.set(node, data);\n\n // Emitting\n graph.emit('nodeAdded', {\n key: node,\n attributes\n });\n\n return data;\n}\n\n/**\n * Same as the above but without sanity checks because we call this in contexts\n * where necessary checks were already done.\n */\nfunction unsafeAddNode(graph, node, attributes) {\n const data = new graph.NodeDataClass(node, attributes);\n\n graph._nodes.set(node, data);\n\n graph.emit('nodeAdded', {\n key: node,\n attributes\n });\n\n return data;\n}\n\n/**\n * Internal method used to add an arbitrary edge to the given graph.\n *\n * @param {Graph} graph - Target graph.\n * @param {string} name - Name of the child method for errors.\n * @param {boolean} mustGenerateKey - Should the graph generate an id?\n * @param {boolean} undirected - Whether the edge is undirected.\n * @param {any} edge - The edge's key.\n * @param {any} source - The source node.\n * @param {any} target - The target node.\n * @param {object} [attributes] - Optional attributes.\n * @return {any} - The edge.\n *\n * @throws {Error} - Will throw if the graph is of the wrong type.\n * @throws {Error} - Will throw if the given attributes are not an object.\n * @throws {Error} - Will throw if source or target doesn't exist.\n * @throws {Error} - Will throw if the edge already exist.\n */\nfunction addEdge(\n graph,\n name,\n mustGenerateKey,\n undirected,\n edge,\n source,\n target,\n attributes\n) {\n // Checking validity of operation\n if (!undirected && graph.type === 'undirected')\n throw new UsageGraphError(\n `Graph.${name}: you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead.`\n );\n\n if (undirected && graph.type === 'directed')\n throw new UsageGraphError(\n `Graph.${name}: you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead.`\n );\n\n if (attributes && !isPlainObject(attributes))\n throw new InvalidArgumentsGraphError(\n `Graph.${name}: invalid attributes. Expecting an object but got \"${attributes}\"`\n );\n\n // Coercion of source & target:\n source = '' + source;\n target = '' + target;\n attributes = attributes || {};\n\n if (!graph.allowSelfLoops && source === target)\n throw new UsageGraphError(\n `Graph.${name}: source & target are the same (\"${source}\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`\n );\n\n const sourceData = graph._nodes.get(source),\n targetData = graph._nodes.get(target);\n\n if (!sourceData)\n throw new NotFoundGraphError(\n `Graph.${name}: source node \"${source}\" not found.`\n );\n\n if (!targetData)\n throw new NotFoundGraphError(\n `Graph.${name}: target node \"${target}\" not found.`\n );\n\n // Must the graph generate an id for this edge?\n const eventData = {\n key: null,\n undirected,\n source,\n target,\n attributes\n };\n\n if (mustGenerateKey) {\n // NOTE: in this case we can guarantee that the key does not already\n // exist and is already correctly casted as a string\n edge = graph._edgeKeyGenerator();\n } else {\n // Coercion of edge key\n edge = '' + edge;\n\n // Here, we have a key collision\n if (graph._edges.has(edge))\n throw new UsageGraphError(\n `Graph.${name}: the \"${edge}\" edge already exists in the graph.`\n );\n }\n\n // Here, we might have a source / target collision\n if (\n !graph.multi &&\n (undirected\n ? typeof sourceData.undirected[target] !== 'undefined'\n : typeof sourceData.out[target] !== 'undefined')\n ) {\n throw new UsageGraphError(\n `Graph.${name}: an edge linking \"${source}\" to \"${target}\" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option.`\n );\n }\n\n // Storing some data\n const edgeData = new EdgeData(\n undirected,\n edge,\n sourceData,\n targetData,\n attributes\n );\n\n // Adding the edge to the internal register\n graph._edges.set(edge, edgeData);\n\n // Incrementing node degree counters\n const isSelfLoop = source === target;\n\n if (undirected) {\n sourceData.undirectedDegree++;\n targetData.undirectedDegree++;\n\n if (isSelfLoop) {\n sourceData.undirectedLoops++;\n graph._undirectedSelfLoopCount++;\n }\n } else {\n sourceData.outDegree++;\n targetData.inDegree++;\n\n if (isSelfLoop) {\n sourceData.directedLoops++;\n graph._directedSelfLoopCount++;\n }\n }\n\n // Updating relevant index\n if (graph.multi) edgeData.attachMulti();\n else edgeData.attach();\n\n if (undirected) graph._undirectedSize++;\n else graph._directedSize++;\n\n // Emitting\n eventData.key = edge;\n\n graph.emit('edgeAdded', eventData);\n\n return edge;\n}\n\n/**\n * Internal method used to add an arbitrary edge to the given graph.\n *\n * @param {Graph} graph - Target graph.\n * @param {string} name - Name of the child method for errors.\n * @param {boolean} mustGenerateKey - Should the graph generate an id?\n * @param {boolean} undirected - Whether the edge is undirected.\n * @param {any} edge - The edge's key.\n * @param {any} source - The source node.\n * @param {any} target - The target node.\n * @param {object} [attributes] - Optional attributes.\n * @param {boolean} [asUpdater] - Are we updating or merging?\n * @return {any} - The edge.\n *\n * @throws {Error} - Will throw if the graph is of the wrong type.\n * @throws {Error} - Will throw if the given attributes are not an object.\n * @throws {Error} - Will throw if source or target doesn't exist.\n * @throws {Error} - Will throw if the edge already exist.\n */\nfunction mergeEdge(\n graph,\n name,\n mustGenerateKey,\n undirected,\n edge,\n source,\n target,\n attributes,\n asUpdater\n) {\n // Checking validity of operation\n if (!undirected && graph.type === 'undirected')\n throw new UsageGraphError(\n `Graph.${name}: you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead.`\n );\n\n if (undirected && graph.type === 'directed')\n throw new UsageGraphError(\n `Graph.${name}: you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead.`\n );\n\n if (attributes) {\n if (asUpdater) {\n if (typeof attributes !== 'function')\n throw new InvalidArgumentsGraphError(\n `Graph.${name}: invalid updater function. Expecting a function but got \"${attributes}\"`\n );\n } else {\n if (!isPlainObject(attributes))\n throw new InvalidArgumentsGraphError(\n `Graph.${name}: invalid attributes. Expecting an object but got \"${attributes}\"`\n );\n }\n }\n\n // Coercion of source & target:\n source = '' + source;\n target = '' + target;\n\n let updater;\n\n if (asUpdater) {\n updater = attributes;\n attributes = undefined;\n }\n\n if (!graph.allowSelfLoops && source === target)\n throw new UsageGraphError(\n `Graph.${name}: source & target are the same (\"${source}\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`\n );\n\n let sourceData = graph._nodes.get(source);\n let targetData = graph._nodes.get(target);\n let edgeData;\n\n // Do we need to handle duplicate?\n let alreadyExistingEdgeData;\n\n if (!mustGenerateKey) {\n edgeData = graph._edges.get(edge);\n\n if (edgeData) {\n // Here, we need to ensure, if the user gave a key, that source & target\n // are consistent\n if (edgeData.source.key !== source || edgeData.target.key !== target) {\n // If source or target inconsistent\n if (\n !undirected ||\n edgeData.source.key !== target ||\n edgeData.target.key !== source\n ) {\n // If directed, or source/target aren't flipped\n throw new UsageGraphError(\n `Graph.${name}: inconsistency detected when attempting to merge the \"${edge}\" edge with \"${source}\" source & \"${target}\" target vs. (\"${edgeData.source.key}\", \"${edgeData.target.key}\").`\n );\n }\n }\n\n alreadyExistingEdgeData = edgeData;\n }\n }\n\n // Here, we might have a source / target collision\n if (!alreadyExistingEdgeData && !graph.multi && sourceData) {\n alreadyExistingEdgeData = undirected\n ? sourceData.undirected[target]\n : sourceData.out[target];\n }\n\n // Handling duplicates\n if (alreadyExistingEdgeData) {\n const info = [alreadyExistingEdgeData.key, false, false, false];\n\n // We can skip the attribute merging part if the user did not provide them\n if (asUpdater ? !updater : !attributes) return info;\n\n // Updating the attributes\n if (asUpdater) {\n const oldAttributes = alreadyExistingEdgeData.attributes;\n alreadyExistingEdgeData.attributes = updater(oldAttributes);\n\n graph.emit('edgeAttributesUpdated', {\n type: 'replace',\n key: alreadyExistingEdgeData.key,\n attributes: alreadyExistingEdgeData.attributes\n });\n }\n\n // Merging the attributes\n else {\n assign(alreadyExistingEdgeData.attributes, attributes);\n\n graph.emit('edgeAttributesUpdated', {\n type: 'merge',\n key: alreadyExistingEdgeData.key,\n attributes: alreadyExistingEdgeData.attributes,\n data: attributes\n });\n }\n\n return info;\n }\n\n attributes = attributes || {};\n\n if (asUpdater && updater) attributes = updater(attributes);\n\n // Must the graph generate an id for this edge?\n const eventData = {\n key: null,\n undirected,\n source,\n target,\n attributes\n };\n\n if (mustGenerateKey) {\n // NOTE: in this case we can guarantee that the key does not already\n // exist and is already correctly casted as a string\n edge = graph._edgeKeyGenerator();\n } else {\n // Coercion of edge key\n edge = '' + edge;\n\n // Here, we have a key collision\n if (graph._edges.has(edge))\n throw new UsageGraphError(\n `Graph.${name}: the \"${edge}\" edge already exists in the graph.`\n );\n }\n\n let sourceWasAdded = false;\n let targetWasAdded = false;\n\n if (!sourceData) {\n sourceData = unsafeAddNode(graph, source, {});\n sourceWasAdded = true;\n\n if (source === target) {\n targetData = sourceData;\n targetWasAdded = true;\n }\n }\n if (!targetData) {\n targetData = unsafeAddNode(graph, target, {});\n targetWasAdded = true;\n }\n\n // Storing some data\n edgeData = new EdgeData(undirected, edge, sourceData, targetData, attributes);\n\n // Adding the edge to the internal register\n graph._edges.set(edge, edgeData);\n\n // Incrementing node degree counters\n const isSelfLoop = source === target;\n\n if (undirected) {\n sourceData.undirectedDegree++;\n targetData.undirectedDegree++;\n\n if (isSelfLoop) {\n sourceData.undirectedLoops++;\n graph._undirectedSelfLoopCount++;\n }\n } else {\n sourceData.outDegree++;\n targetData.inDegree++;\n\n if (isSelfLoop) {\n sourceData.directedLoops++;\n graph._directedSelfLoopCount++;\n }\n }\n\n // Updating relevant index\n if (graph.multi) edgeData.attachMulti();\n else edgeData.attach();\n\n if (undirected) graph._undirectedSize++;\n else graph._directedSize++;\n\n // Emitting\n eventData.key = edge;\n\n graph.emit('edgeAdded', eventData);\n\n return [edge, true, sourceWasAdded, targetWasAdded];\n}\n\n/**\n * Internal method used to drop an edge.\n *\n * @param {Graph} graph - Target graph.\n * @param {EdgeData} edgeData - Data of the edge to drop.\n */\nfunction dropEdgeFromData(graph, edgeData) {\n // Dropping the edge from the register\n graph._edges.delete(edgeData.key);\n\n // Updating related degrees\n const {source: sourceData, target: targetData, attributes} = edgeData;\n\n const undirected = edgeData.undirected;\n\n const isSelfLoop = sourceData === targetData;\n\n if (undirected) {\n sourceData.undirectedDegree--;\n targetData.undirectedDegree--;\n\n if (isSelfLoop) {\n sourceData.undirectedLoops--;\n graph._undirectedSelfLoopCount--;\n }\n } else {\n sourceData.outDegree--;\n targetData.inDegree--;\n\n if (isSelfLoop) {\n sourceData.directedLoops--;\n graph._directedSelfLoopCount--;\n }\n }\n\n // Clearing index\n if (graph.multi) edgeData.detachMulti();\n else edgeData.detach();\n\n if (undirected) graph._undirectedSize--;\n else graph._directedSize--;\n\n // Emitting\n graph.emit('edgeDropped', {\n key: edgeData.key,\n attributes,\n source: sourceData.key,\n target: targetData.key,\n undirected\n });\n}\n\n/**\n * Graph class\n *\n * @constructor\n * @param {object} [options] - Options:\n * @param {boolean} [allowSelfLoops] - Allow self loops?\n * @param {string} [type] - Type of the graph.\n * @param {boolean} [map] - Allow references as keys?\n * @param {boolean} [multi] - Allow parallel edges?\n *\n * @throws {Error} - Will throw if the arguments are not valid.\n */\nexport default class Graph extends EventEmitter {\n constructor(options) {\n super();\n\n //-- Solving options\n options = assign({}, DEFAULTS, options);\n\n // Enforcing options validity\n if (typeof options.multi !== 'boolean')\n throw new InvalidArgumentsGraphError(\n `Graph.constructor: invalid 'multi' option. Expecting a boolean but got \"${options.multi}\".`\n );\n\n if (!TYPES.has(options.type))\n throw new InvalidArgumentsGraphError(\n `Graph.constructor: invalid 'type' option. Should be one of \"mixed\", \"directed\" or \"undirected\" but got \"${options.type}\".`\n );\n\n if (typeof options.allowSelfLoops !== 'boolean')\n throw new InvalidArgumentsGraphError(\n `Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got \"${options.allowSelfLoops}\".`\n );\n\n //-- Private properties\n\n // Utilities\n const NodeDataClass =\n options.type === 'mixed'\n ? MixedNodeData\n : options.type === 'directed'\n ? DirectedNodeData\n : UndirectedNodeData;\n\n privateProperty(this, 'NodeDataClass', NodeDataClass);\n\n // Internal edge key generator\n\n // NOTE: this internal generator produce keys that are strings\n // composed of a weird prefix, an incremental instance id starting from\n // a random byte and finally an internal instance incremental id.\n // All this to avoid intra-frame and cross-frame adversarial inputs\n // that can force a single #.addEdge call to degenerate into a O(n)\n // available key search loop.\n\n // It also ensures that automatically generated edge keys are unlikely\n // to produce collisions with arbitrary keys given by users.\n const instancePrefix = 'geid_' + INSTANCE_ID() + '_';\n let edgeId = 0;\n\n const edgeKeyGenerator = () => {\n let availableEdgeKey;\n\n do {\n availableEdgeKey = instancePrefix + edgeId++;\n } while (this._edges.has(availableEdgeKey));\n\n return availableEdgeKey;\n };\n\n // Indexes\n privateProperty(this, '_attributes', {});\n privateProperty(this, '_nodes', new Map());\n privateProperty(this, '_edges', new Map());\n privateProperty(this, '_directedSize', 0);\n privateProperty(this, '_undirectedSize', 0);\n privateProperty(this, '_directedSelfLoopCount', 0);\n privateProperty(this, '_undirectedSelfLoopCount', 0);\n privateProperty(this, '_edgeKeyGenerator', edgeKeyGenerator);\n\n // Options\n privateProperty(this, '_options', options);\n\n // Emitter properties\n EMITTER_PROPS.forEach(prop => privateProperty(this, prop, this[prop]));\n\n //-- Properties readers\n readOnlyProperty(this, 'order', () => this._nodes.size);\n readOnlyProperty(this, 'size', () => this._edges.size);\n readOnlyProperty(this, 'directedSize', () => this._directedSize);\n readOnlyProperty(this, 'undirectedSize', () => this._undirectedSize);\n readOnlyProperty(\n this,\n 'selfLoopCount',\n () => this._directedSelfLoopCount + this._undirectedSelfLoopCount\n );\n readOnlyProperty(\n this,\n 'directedSelfLoopCount',\n () => this._directedSelfLoopCount\n );\n readOnlyProperty(\n this,\n 'undirectedSelfLoopCount',\n () => this._undirectedSelfLoopCount\n );\n readOnlyProperty(this, 'multi', this._options.multi);\n readOnlyProperty(this, 'type', this._options.type);\n readOnlyProperty(this, 'allowSelfLoops', this._options.allowSelfLoops);\n readOnlyProperty(this, 'implementation', () => 'graphology');\n }\n\n _resetInstanceCounters() {\n this._directedSize = 0;\n this._undirectedSize = 0;\n this._directedSelfLoopCount = 0;\n this._undirectedSelfLoopCount = 0;\n }\n\n /**---------------------------------------------------------------------------\n * Read\n **---------------------------------------------------------------------------\n */\n\n /**\n * Method returning whether the given node is found in the graph.\n *\n * @param {any} node - The node.\n * @return {boolean}\n */\n hasNode(node) {\n return this._nodes.has('' + node);\n }\n\n /**\n * Method returning whether the given directed edge is found in the graph.\n *\n * Arity 1:\n * @param {any} edge - The edge's key.\n *\n * Arity 2:\n * @param {any} source - The edge's source.\n * @param {any} target - The edge's target.\n *\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the arguments are invalid.\n */\n hasDirectedEdge(source, target) {\n // Early termination\n if (this.type === 'undirected') return false;\n\n if (arguments.length === 1) {\n const edge = '' + source;\n\n const edgeData = this._edges.get(edge);\n\n return !!edgeData && !edgeData.undirected;\n } else if (arguments.length === 2) {\n source = '' + source;\n target = '' + target;\n\n // If the node source or the target is not in the graph we break\n const nodeData = this._nodes.get(source);\n\n if (!nodeData) return false;\n\n // Is there a directed edge pointing toward target?\n return nodeData.out.hasOwnProperty(target);\n }\n\n throw new InvalidArgumentsGraphError(\n `Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`\n );\n }\n\n /**\n * Method returning whether the given undirected edge is found in the graph.\n *\n * Arity 1:\n * @param {any} edge - The edge's key.\n *\n * Arity 2:\n * @param {any} source - The edge's source.\n * @param {any} target - The edge's target.\n *\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the arguments are invalid.\n */\n hasUndirectedEdge(source, target) {\n // Early termination\n if (this.type === 'directed') return false;\n\n if (arguments.length === 1) {\n const edge = '' + source;\n\n const edgeData = this._edges.get(edge);\n\n return !!edgeData && edgeData.undirected;\n } else if (arguments.length === 2) {\n source = '' + source;\n target = '' + target;\n\n // If the node source or the target is not in the graph we break\n const nodeData = this._nodes.get(source);\n\n if (!nodeData) return false;\n\n // Is there a directed edge pointing toward target?\n return nodeData.undirected.hasOwnProperty(target);\n }\n\n throw new InvalidArgumentsGraphError(\n `Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`\n );\n }\n\n /**\n * Method returning whether the given edge is found in the graph.\n *\n * Arity 1:\n * @param {any} edge - The edge's key.\n *\n * Arity 2:\n * @param {any} source - The edge's source.\n * @param {any} target - The edge's target.\n *\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the arguments are invalid.\n */\n hasEdge(source, target) {\n if (arguments.length === 1) {\n const edge = '' + source;\n\n return this._edges.has(edge);\n } else if (arguments.length === 2) {\n source = '' + source;\n target = '' + target;\n\n // If the node source or the target is not in the graph we break\n const nodeData = this._nodes.get(source);\n\n if (!nodeData) return false;\n\n // Is there a directed edge pointing toward target?\n return (\n (typeof nodeData.out !== 'undefined' &&\n nodeData.out.hasOwnProperty(target)) ||\n (typeof nodeData.undirected !== 'undefined' &&\n nodeData.undirected.hasOwnProperty(target))\n );\n }\n\n throw new InvalidArgumentsGraphError(\n `Graph.hasEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`\n );\n }\n\n /**\n * Method returning the edge matching source & target in a directed fashion.\n *\n * @param {any} source - The edge's source.\n * @param {any} target - The edge's target.\n *\n * @return {any|undefined}\n *\n * @throws {Error} - Will throw if the graph is multi.\n * @throws {Error} - Will throw if source or target doesn't exist.\n */\n directedEdge(source, target) {\n if (this.type === 'undirected') return;\n\n source = '' + source;\n target = '' + target;\n\n if (this.multi)\n throw new UsageGraphError(\n 'Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.'\n );\n\n const sourceData = this._nodes.get(source);\n\n if (!sourceData)\n throw new NotFoundGraphError(\n `Graph.directedEdge: could not find the \"${source}\" source node in the graph.`\n );\n\n if (!this._nodes.has(target))\n throw new NotFoundGraphError(\n `Graph.directedEdge: could not find the \"${target}\" target node in the graph.`\n );\n\n const edgeData = (sourceData.out && sourceData.out[target]) || undefined;\n\n if (edgeData) return edgeData.key;\n }\n\n /**\n * Method returning the edge matching source & target in a undirected fashion.\n *\n * @param {any} source - The edge's source.\n * @param {any} target - The edge's target.\n *\n * @return {any|undefined}\n *\n * @throws {Error} - Will throw if the graph is multi.\n * @throws {Error} - Will throw if source or target doesn't exist.\n */\n undirectedEdge(source, target) {\n if (this.type === 'directed') return;\n\n source = '' + source;\n target = '' + target;\n\n if (this.multi)\n throw new UsageGraphError(\n 'Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.'\n );\n\n const sourceData = this._nodes.get(source);\n\n if (!sourceData)\n throw new NotFoundGraphError(\n `Graph.undirectedEdge: could not find the \"${source}\" source node in the graph.`\n );\n\n if (!this._nodes.has(target))\n throw new NotFoundGraphError(\n `Graph.undirectedEdge: could not find the \"${target}\" target node in the graph.`\n );\n\n const edgeData =\n (sourceData.undirected && sourceData.undirected[target]) || undefined;\n\n if (edgeData) return edgeData.key;\n }\n\n /**\n * Method returning the edge matching source & target in a mixed fashion.\n *\n * @param {any} source - The edge's source.\n * @param {any} target - The edge's target.\n *\n * @return {any|undefined}\n *\n * @throws {Error} - Will throw if the graph is multi.\n * @throws {Error} - Will throw if source or target doesn't exist.\n */\n edge(source, target) {\n if (this.multi)\n throw new UsageGraphError(\n 'Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.'\n );\n\n source = '' + source;\n target = '' + target;\n\n const sourceData = this._nodes.get(source);\n\n if (!sourceData)\n throw new NotFoundGraphError(\n `Graph.edge: could not find the \"${source}\" source node in the graph.`\n );\n\n if (!this._nodes.has(target))\n throw new NotFoundGraphError(\n `Graph.edge: could not find the \"${target}\" target node in the graph.`\n );\n\n const edgeData =\n (sourceData.out && sourceData.out[target]) ||\n (sourceData.undirected && sourceData.undirected[target]) ||\n undefined;\n\n if (edgeData) return edgeData.key;\n }\n\n /**\n * Method returning whether two nodes are directed neighbors.\n *\n * @param {any} node - The node's key.\n * @param {any} neighbor - The neighbor's key.\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n areDirectedNeighbors(node, neighbor) {\n node = '' + node;\n neighbor = '' + neighbor;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.areDirectedNeighbors: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type === 'undirected') return false;\n\n return neighbor in nodeData.in || neighbor in nodeData.out;\n }\n\n /**\n * Method returning whether two nodes are out neighbors.\n *\n * @param {any} node - The node's key.\n * @param {any} neighbor - The neighbor's key.\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n areOutNeighbors(node, neighbor) {\n node = '' + node;\n neighbor = '' + neighbor;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.areOutNeighbors: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type === 'undirected') return false;\n\n return neighbor in nodeData.out;\n }\n\n /**\n * Method returning whether two nodes are in neighbors.\n *\n * @param {any} node - The node's key.\n * @param {any} neighbor - The neighbor's key.\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n areInNeighbors(node, neighbor) {\n node = '' + node;\n neighbor = '' + neighbor;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.areInNeighbors: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type === 'undirected') return false;\n\n return neighbor in nodeData.in;\n }\n\n /**\n * Method returning whether two nodes are undirected neighbors.\n *\n * @param {any} node - The node's key.\n * @param {any} neighbor - The neighbor's key.\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n areUndirectedNeighbors(node, neighbor) {\n node = '' + node;\n neighbor = '' + neighbor;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.areUndirectedNeighbors: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type === 'directed') return false;\n\n return neighbor in nodeData.undirected;\n }\n\n /**\n * Method returning whether two nodes are neighbors.\n *\n * @param {any} node - The node's key.\n * @param {any} neighbor - The neighbor's key.\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n areNeighbors(node, neighbor) {\n node = '' + node;\n neighbor = '' + neighbor;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.areNeighbors: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type !== 'undirected') {\n if (neighbor in nodeData.in || neighbor in nodeData.out) return true;\n }\n\n if (this.type !== 'directed') {\n if (neighbor in nodeData.undirected) return true;\n }\n\n return false;\n }\n\n /**\n * Method returning whether two nodes are inbound neighbors.\n *\n * @param {any} node - The node's key.\n * @param {any} neighbor - The neighbor's key.\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n areInboundNeighbors(node, neighbor) {\n node = '' + node;\n neighbor = '' + neighbor;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.areInboundNeighbors: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type !== 'undirected') {\n if (neighbor in nodeData.in) return true;\n }\n\n if (this.type !== 'directed') {\n if (neighbor in nodeData.undirected) return true;\n }\n\n return false;\n }\n\n /**\n * Method returning whether two nodes are outbound neighbors.\n *\n * @param {any} node - The node's key.\n * @param {any} neighbor - The neighbor's key.\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n areOutboundNeighbors(node, neighbor) {\n node = '' + node;\n neighbor = '' + neighbor;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.areOutboundNeighbors: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type !== 'undirected') {\n if (neighbor in nodeData.out) return true;\n }\n\n if (this.type !== 'directed') {\n if (neighbor in nodeData.undirected) return true;\n }\n\n return false;\n }\n\n /**\n * Method returning the given node's in degree.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's in degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n inDegree(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.inDegree: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type === 'undirected') return 0;\n\n return nodeData.inDegree;\n }\n\n /**\n * Method returning the given node's out degree.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's in degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n outDegree(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.outDegree: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type === 'undirected') return 0;\n\n return nodeData.outDegree;\n }\n\n /**\n * Method returning the given node's directed degree.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's in degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n directedDegree(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.directedDegree: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type === 'undirected') return 0;\n\n return nodeData.inDegree + nodeData.outDegree;\n }\n\n /**\n * Method returning the given node's undirected degree.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's in degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n undirectedDegree(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.undirectedDegree: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type === 'directed') return 0;\n\n return nodeData.undirectedDegree;\n }\n\n /**\n * Method returning the given node's inbound degree.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's inbound degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n inboundDegree(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.inboundDegree: could not find the \"${node}\" node in the graph.`\n );\n\n let degree = 0;\n\n if (this.type !== 'directed') {\n degree += nodeData.undirectedDegree;\n }\n\n if (this.type !== 'undirected') {\n degree += nodeData.inDegree;\n }\n\n return degree;\n }\n\n /**\n * Method returning the given node's outbound degree.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's outbound degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n outboundDegree(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.outboundDegree: could not find the \"${node}\" node in the graph.`\n );\n\n let degree = 0;\n\n if (this.type !== 'directed') {\n degree += nodeData.undirectedDegree;\n }\n\n if (this.type !== 'undirected') {\n degree += nodeData.outDegree;\n }\n\n return degree;\n }\n\n /**\n * Method returning the given node's directed degree.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n degree(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.degree: could not find the \"${node}\" node in the graph.`\n );\n\n let degree = 0;\n\n if (this.type !== 'directed') {\n degree += nodeData.undirectedDegree;\n }\n\n if (this.type !== 'undirected') {\n degree += nodeData.inDegree + nodeData.outDegree;\n }\n\n return degree;\n }\n\n /**\n * Method returning the given node's in degree without considering self loops.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's in degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n inDegreeWithoutSelfLoops(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.inDegreeWithoutSelfLoops: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type === 'undirected') return 0;\n\n return nodeData.inDegree - nodeData.directedLoops;\n }\n\n /**\n * Method returning the given node's out degree without considering self loops.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's in degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n outDegreeWithoutSelfLoops(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.outDegreeWithoutSelfLoops: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type === 'undirected') return 0;\n\n return nodeData.outDegree - nodeData.directedLoops;\n }\n\n /**\n * Method returning the given node's directed degree without considering self loops.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's in degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n directedDegreeWithoutSelfLoops(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.directedDegreeWithoutSelfLoops: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type === 'undirected') return 0;\n\n return nodeData.inDegree + nodeData.outDegree - nodeData.directedLoops * 2;\n }\n\n /**\n * Method returning the given node's undirected degree without considering self loops.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's in degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n undirectedDegreeWithoutSelfLoops(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.undirectedDegreeWithoutSelfLoops: could not find the \"${node}\" node in the graph.`\n );\n\n if (this.type === 'directed') return 0;\n\n return nodeData.undirectedDegree - nodeData.undirectedLoops * 2;\n }\n\n /**\n * Method returning the given node's inbound degree without considering self loops.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's inbound degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n inboundDegreeWithoutSelfLoops(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.inboundDegreeWithoutSelfLoops: could not find the \"${node}\" node in the graph.`\n );\n\n let degree = 0;\n let loops = 0;\n\n if (this.type !== 'directed') {\n degree += nodeData.undirectedDegree;\n loops += nodeData.undirectedLoops * 2;\n }\n\n if (this.type !== 'undirected') {\n degree += nodeData.inDegree;\n loops += nodeData.directedLoops;\n }\n\n return degree - loops;\n }\n\n /**\n * Method returning the given node's outbound degree without considering self loops.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's outbound degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n outboundDegreeWithoutSelfLoops(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.outboundDegreeWithoutSelfLoops: could not find the \"${node}\" node in the graph.`\n );\n\n let degree = 0;\n let loops = 0;\n\n if (this.type !== 'directed') {\n degree += nodeData.undirectedDegree;\n loops += nodeData.undirectedLoops * 2;\n }\n\n if (this.type !== 'undirected') {\n degree += nodeData.outDegree;\n loops += nodeData.directedLoops;\n }\n\n return degree - loops;\n }\n\n /**\n * Method returning the given node's directed degree without considering self loops.\n *\n * @param {any} node - The node's key.\n * @return {number} - The node's degree.\n *\n * @throws {Error} - Will throw if the node isn't in the graph.\n */\n degreeWithoutSelfLoops(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.degreeWithoutSelfLoops: could not find the \"${node}\" node in the graph.`\n );\n\n let degree = 0;\n let loops = 0;\n\n if (this.type !== 'directed') {\n degree += nodeData.undirectedDegree;\n loops += nodeData.undirectedLoops * 2;\n }\n\n if (this.type !== 'undirected') {\n degree += nodeData.inDegree + nodeData.outDegree;\n loops += nodeData.directedLoops * 2;\n }\n\n return degree - loops;\n }\n\n /**\n * Method returning the given edge's source.\n *\n * @param {any} edge - The edge's key.\n * @return {any} - The edge's source.\n *\n * @throws {Error} - Will throw if the edge isn't in the graph.\n */\n source(edge) {\n edge = '' + edge;\n\n const data = this._edges.get(edge);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.source: could not find the \"${edge}\" edge in the graph.`\n );\n\n return data.source.key;\n }\n\n /**\n * Method returning the given edge's target.\n *\n * @param {any} edge - The edge's key.\n * @return {any} - The edge's target.\n *\n * @throws {Error} - Will throw if the edge isn't in the graph.\n */\n target(edge) {\n edge = '' + edge;\n\n const data = this._edges.get(edge);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.target: could not find the \"${edge}\" edge in the graph.`\n );\n\n return data.target.key;\n }\n\n /**\n * Method returning the given edge's extremities.\n *\n * @param {any} edge - The edge's key.\n * @return {array} - The edge's extremities.\n *\n * @throws {Error} - Will throw if the edge isn't in the graph.\n */\n extremities(edge) {\n edge = '' + edge;\n\n const edgeData = this._edges.get(edge);\n\n if (!edgeData)\n throw new NotFoundGraphError(\n `Graph.extremities: could not find the \"${edge}\" edge in the graph.`\n );\n\n return [edgeData.source.key, edgeData.target.key];\n }\n\n /**\n * Given a node & an edge, returns the other extremity of the edge.\n *\n * @param {any} node - The node's key.\n * @param {any} edge - The edge's key.\n * @return {any} - The related node.\n *\n * @throws {Error} - Will throw if the edge isn't in the graph or if the\n * edge & node are not related.\n */\n opposite(node, edge) {\n node = '' + node;\n edge = '' + edge;\n\n const data = this._edges.get(edge);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.opposite: could not find the \"${edge}\" edge in the graph.`\n );\n\n const source = data.source.key;\n const target = data.target.key;\n\n if (node === source) return target;\n if (node === target) return source;\n\n throw new NotFoundGraphError(\n `Graph.opposite: the \"${node}\" node is not attached to the \"${edge}\" edge (${source}, ${target}).`\n );\n }\n\n /**\n * Returns whether the given edge has the given node as extremity.\n *\n * @param {any} edge - The edge's key.\n * @param {any} node - The node's key.\n * @return {boolean} - The related node.\n *\n * @throws {Error} - Will throw if either the node or the edge isn't in the graph.\n */\n hasExtremity(edge, node) {\n edge = '' + edge;\n node = '' + node;\n\n const data = this._edges.get(edge);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.hasExtremity: could not find the \"${edge}\" edge in the graph.`\n );\n\n return data.source.key === node || data.target.key === node;\n }\n\n /**\n * Method returning whether the given edge is undirected.\n *\n * @param {any} edge - The edge's key.\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the edge isn't in the graph.\n */\n isUndirected(edge) {\n edge = '' + edge;\n\n const data = this._edges.get(edge);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.isUndirected: could not find the \"${edge}\" edge in the graph.`\n );\n\n return data.undirected;\n }\n\n /**\n * Method returning whether the given edge is directed.\n *\n * @param {any} edge - The edge's key.\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the edge isn't in the graph.\n */\n isDirected(edge) {\n edge = '' + edge;\n\n const data = this._edges.get(edge);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.isDirected: could not find the \"${edge}\" edge in the graph.`\n );\n\n return !data.undirected;\n }\n\n /**\n * Method returning whether the given edge is a self loop.\n *\n * @param {any} edge - The edge's key.\n * @return {boolean}\n *\n * @throws {Error} - Will throw if the edge isn't in the graph.\n */\n isSelfLoop(edge) {\n edge = '' + edge;\n\n const data = this._edges.get(edge);\n\n if (!data)\n throw new NotFoundGraphError(\n `Graph.isSelfLoop: could not find the \"${edge}\" edge in the graph.`\n );\n\n return data.source === data.target;\n }\n\n /**---------------------------------------------------------------------------\n * Mutation\n **---------------------------------------------------------------------------\n */\n\n /**\n * Method used to add a node to the graph.\n *\n * @param {any} node - The node.\n * @param {object} [attributes] - Optional attributes.\n * @return {any} - The node.\n *\n * @throws {Error} - Will throw if the given node already exist.\n * @throws {Error} - Will throw if the given attributes are not an object.\n */\n addNode(node, attributes) {\n const nodeData = addNode(this, node, attributes);\n\n return nodeData.key;\n }\n\n /**\n * Method used to merge a node into the graph.\n *\n * @param {any} node - The node.\n * @param {object} [attributes] - Optional attributes.\n * @return {any} - The node.\n */\n mergeNode(node, attributes) {\n if (attributes && !isPlainObject(attributes))\n throw new InvalidArgumentsGraphError(\n `Graph.mergeNode: invalid attributes. Expecting an object but got \"${attributes}\"`\n );\n\n // String coercion\n node = '' + node;\n attributes = attributes || {};\n\n // If the node already exists, we merge the attributes\n let data = this._nodes.get(node);\n\n if (data) {\n if (attributes) {\n assign(data.attributes, attributes);\n\n this.emit('nodeAttributesUpdated', {\n type: 'merge',\n key: node,\n attributes: data.attributes,\n data: attributes\n });\n }\n return [node, false];\n }\n\n data = new this.NodeDataClass(node, attributes);\n\n // Adding the node to internal register\n this._nodes.set(node, data);\n\n // Emitting\n this.emit('nodeAdded', {\n key: node,\n attributes\n });\n\n return [node, true];\n }\n\n /**\n * Method used to add a node if it does not exist in the graph or else to\n * update its attributes using a function.\n *\n * @param {any} node - The node.\n * @param {function} [updater] - Optional updater function.\n * @return {any} - The node.\n */\n updateNode(node, updater) {\n if (updater && typeof updater !== 'function')\n throw new InvalidArgumentsGraphError(\n `Graph.updateNode: invalid updater function. Expecting a function but got \"${updater}\"`\n );\n\n // String coercion\n node = '' + node;\n\n // If the node already exists, we update the attributes\n let data = this._nodes.get(node);\n\n if (data) {\n if (updater) {\n const oldAttributes = data.attributes;\n data.attributes = updater(oldAttributes);\n\n this.emit('nodeAttributesUpdated', {\n type: 'replace',\n key: node,\n attributes: data.attributes\n });\n }\n return [node, false];\n }\n\n const attributes = updater ? updater({}) : {};\n\n data = new this.NodeDataClass(node, attributes);\n\n // Adding the node to internal register\n this._nodes.set(node, data);\n\n // Emitting\n this.emit('nodeAdded', {\n key: node,\n attributes\n });\n\n return [node, true];\n }\n\n /**\n * Method used to drop a single node & all its attached edges from the graph.\n *\n * @param {any} node - The node.\n * @return {Graph}\n *\n * @throws {Error} - Will throw if the node doesn't exist.\n */\n dropNode(node) {\n node = '' + node;\n\n const nodeData = this._nodes.get(node);\n\n if (!nodeData)\n throw new NotFoundGraphError(\n `Graph.dropNode: could not find the \"${node}\" node in the graph.`\n );\n\n let edgeData;\n\n // Removing attached edges\n // NOTE: we could be faster here, but this is such a pain to maintain\n if (this.type !== 'undirected') {\n for (const neighbor in nodeData.out) {\n edgeData = nodeData.out[neighbor];\n\n do {\n dropEdgeFromData(this, edgeData);\n edgeData = edgeData.next;\n } while (edgeData);\n }\n\n for (const neighbor in nodeData.in) {\n edgeData = nodeData.in[neighbor];\n\n do {\n dropEdgeFromData(this, edgeData);\n edgeData = edgeData.next;\n } while (edgeData);\n }\n }\n\n if (this.type !== 'directed') {\n for (const neighbor in nodeData.undirected) {\n edgeData = nodeData.undirected[neighbor];\n\n do {\n dropEdgeFromData(this, edgeData);\n edgeData = edgeData.next;\n } while (edgeData);\n }\n }\n\n // Dropping the node from the register\n this._nodes.delete(node);\n\n // Emitting\n this.emit('nodeDropped', {\n key: node,\n attributes: nodeData.attributes\n });\n }\n\n /**\n * Method used to drop a single edge from the graph.\n *\n * Arity 1:\n * @param {any} edge - The edge.\n *\n * Arity 2:\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n *\n * @return {Graph}\n *\n * @throws {Error} - Will throw if the edge doesn't exist.\n */\n dropEdge(edge) {\n let edgeData;\n\n if (arguments.length > 1) {\n const source = '' + arguments[0];\n const target = '' + arguments[1];\n\n edgeData = getMatchingEdge(this, source, target, this.type);\n\n if (!edgeData)\n throw new NotFoundGraphError(\n `Graph.dropEdge: could not find the \"${source}\" -> \"${target}\" edge in the graph.`\n );\n } else {\n edge = '' + edge;\n\n edgeData = this._edges.get(edge);\n\n if (!edgeData)\n throw new NotFoundGraphError(\n `Graph.dropEdge: could not find the \"${edge}\" edge in the graph.`\n );\n }\n\n dropEdgeFromData(this, edgeData);\n\n return this;\n }\n\n /**\n * Method used to drop a single directed edge from the graph.\n *\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n *\n * @return {Graph}\n *\n * @throws {Error} - Will throw if the edge doesn't exist.\n */\n dropDirectedEdge(source, target) {\n if (arguments.length < 2)\n throw new UsageGraphError(\n 'Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.'\n );\n\n if (this.multi)\n throw new UsageGraphError(\n 'Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.'\n );\n\n source = '' + source;\n target = '' + target;\n\n const edgeData = getMatchingEdge(this, source, target, 'directed');\n\n if (!edgeData)\n throw new NotFoundGraphError(\n `Graph.dropDirectedEdge: could not find a \"${source}\" -> \"${target}\" edge in the graph.`\n );\n\n dropEdgeFromData(this, edgeData);\n\n return this;\n }\n\n /**\n * Method used to drop a single undirected edge from the graph.\n *\n * @param {any} source - Source node.\n * @param {any} target - Target node.\n *\n * @return {Graph}\n *\n * @throws {Error} - Will throw if the edge doesn't exist.\n */\n dropUndirectedEdge(source, target) {\n if (arguments.length < 2)\n throw new UsageGraphError(\n 'Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.'\n );\n\n if (this.multi)\n throw new UsageGraphError(\n 'Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.'\n );\n\n const edgeData = getMatchingEdge(this, source, target, 'undirected');\n\n if (!edgeData)\n throw new NotFoundGraphError(\n `Graph.dropUndirectedEdge: could not find a \"${source}\" -> \"${target}\" edge in the graph.`\n );\n\n dropEdgeFromData(this, edgeData);\n\n return this;\n }\n\n /**\n * Method used to remove every edge & every node from the graph.\n *\n * @return {Graph}\n */\n clear() {\n // Clearing edges\n this._edges.clear();\n\n // Clearing nodes\n this._nodes.clear();\n\n // Reset counters\n this._resetInstanceCounters();\n\n // Emitting\n this.emit('cleared');\n }\n\n /**\n * Method used to remove every edge from the graph.\n *\n * @return {Graph}\n */\n clearEdges() {\n // Clearing structure index\n const iterator = this._nodes.values();\n\n let step;\n\n while (((step = iterator.next()), step.done !== true)) {\n step.value.clear();\n }\n\n // Clearing edges\n this._edges.clear();\n\n // Reset counters\n this._resetInstanceCounters();\n\n // Emitting\n this.emit('edgesCleared');\n }\n\n /**---------------------------------------------------------------------------\n * Attributes-related methods\n **---------------------------------------------------------------------------\n */\n\n /**\n * Method returning the desired graph's attribute.\n *\n * @param {string} name - Name of the attribute.\n * @return {any}\n */\n getAttribute(name) {\n return this._attributes[name];\n }\n\n /**\n * Method returning the graph's attributes.\n *\n * @return {object}\n */\n getAttributes() {\n return this._attributes;\n }\n\n /**\n * Method returning whether the graph has the desired attribute.\n *\n * @param {string} name - Name of the attribute.\n * @return {boolean}\n */\n hasAttribute(name) {\n return this._attributes.hasOwnProperty(name);\n }\n\n /**\n * Method setting a value for the desired graph's attribute.\n *\n * @param {string} name - Name of the attribute.\n * @param {any} value - Value for the attribute.\n * @return {Graph}\n */\n setAttribute(name, value) {\n this._attributes[name] = value;\n\n // Emitting\n this.emit('attributesUpdated', {\n type: 'set',\n attributes: this._attributes,\n name\n });\n\n return this;\n }\n\n /**\n * Method using a function to update the desired graph's attribute's value.\n *\n * @param {string} name - Name of the attribute.\n * @param {function} updater - Function use to update the attribute's value.\n * @return {Graph}\n */\n updateAttribute(name, updater) {\n if (typeof updater !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.updateAttribute: updater should be a function.'\n );\n\n const value = this._attributes[name];\n\n this._attributes[name] = updater(value);\n\n // Emitting\n this.emit('attributesUpdated', {\n type: 'set',\n attributes: this._attributes,\n name\n });\n\n return this;\n }\n\n /**\n * Method removing the desired graph's attribute.\n *\n * @param {string} name - Name of the attribute.\n * @return {Graph}\n */\n removeAttribute(name) {\n delete this._attributes[name];\n\n // Emitting\n this.emit('attributesUpdated', {\n type: 'remove',\n attributes: this._attributes,\n name\n });\n\n return this;\n }\n\n /**\n * Method replacing the graph's attributes.\n *\n * @param {object} attributes - New attributes.\n * @return {Graph}\n *\n * @throws {Error} - Will throw if given attributes are not a plain object.\n */\n replaceAttributes(attributes) {\n if (!isPlainObject(attributes))\n throw new InvalidArgumentsGraphError(\n 'Graph.replaceAttributes: provided attributes are not a plain object.'\n );\n\n this._attributes = attributes;\n\n // Emitting\n this.emit('attributesUpdated', {\n type: 'replace',\n attributes: this._attributes\n });\n\n return this;\n }\n\n /**\n * Method merging the graph's attributes.\n *\n * @param {object} attributes - Attributes to merge.\n * @return {Graph}\n *\n * @throws {Error} - Will throw if given attributes are not a plain object.\n */\n mergeAttributes(attributes) {\n if (!isPlainObject(attributes))\n throw new InvalidArgumentsGraphError(\n 'Graph.mergeAttributes: provided attributes are not a plain object.'\n );\n\n assign(this._attributes, attributes);\n\n // Emitting\n this.emit('attributesUpdated', {\n type: 'merge',\n attributes: this._attributes,\n data: attributes\n });\n\n return this;\n }\n\n /**\n * Method updating the graph's attributes.\n *\n * @param {function} updater - Function used to update the attributes.\n * @return {Graph}\n *\n * @throws {Error} - Will throw if given updater is not a function.\n */\n updateAttributes(updater) {\n if (typeof updater !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.updateAttributes: provided updater is not a function.'\n );\n\n this._attributes = updater(this._attributes);\n\n // Emitting\n this.emit('attributesUpdated', {\n type: 'update',\n attributes: this._attributes\n });\n\n return this;\n }\n\n /**\n * Method used to update each node's attributes using the given function.\n *\n * @param {function} updater - Updater function to use.\n * @param {object} [hints] - Optional hints.\n */\n updateEachNodeAttributes(updater, hints) {\n if (typeof updater !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.updateEachNodeAttributes: expecting an updater function.'\n );\n\n if (hints && !validateHints(hints))\n throw new InvalidArgumentsGraphError(\n 'Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}'\n );\n\n const iterator = this._nodes.values();\n\n let step, nodeData;\n\n while (((step = iterator.next()), step.done !== true)) {\n nodeData = step.value;\n nodeData.attributes = updater(nodeData.key, nodeData.attributes);\n }\n\n this.emit('eachNodeAttributesUpdated', {\n hints: hints ? hints : null\n });\n }\n\n /**\n * Method used to update each edge's attributes using the given function.\n *\n * @param {function} updater - Updater function to use.\n * @param {object} [hints] - Optional hints.\n */\n updateEachEdgeAttributes(updater, hints) {\n if (typeof updater !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.updateEachEdgeAttributes: expecting an updater function.'\n );\n\n if (hints && !validateHints(hints))\n throw new InvalidArgumentsGraphError(\n 'Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}'\n );\n\n const iterator = this._edges.values();\n\n let step, edgeData, sourceData, targetData;\n\n while (((step = iterator.next()), step.done !== true)) {\n edgeData = step.value;\n sourceData = edgeData.source;\n targetData = edgeData.target;\n\n edgeData.attributes = updater(\n edgeData.key,\n edgeData.attributes,\n sourceData.key,\n targetData.key,\n sourceData.attributes,\n targetData.attributes,\n edgeData.undirected\n );\n }\n\n this.emit('eachEdgeAttributesUpdated', {\n hints: hints ? hints : null\n });\n }\n\n /**---------------------------------------------------------------------------\n * Iteration-related methods\n **---------------------------------------------------------------------------\n */\n\n /**\n * Method iterating over the graph's adjacency using the given callback.\n *\n * @param {function} callback - Callback to use.\n */\n forEachAdjacencyEntry(callback) {\n if (typeof callback !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.forEachAdjacencyEntry: expecting a callback.'\n );\n\n forEachAdjacency(false, false, false, this, callback);\n }\n forEachAdjacencyEntryWithOrphans(callback) {\n if (typeof callback !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.'\n );\n\n forEachAdjacency(false, false, true, this, callback);\n }\n\n /**\n * Method iterating over the graph's assymetric adjacency using the given callback.\n *\n * @param {function} callback - Callback to use.\n */\n forEachAssymetricAdjacencyEntry(callback) {\n if (typeof callback !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.forEachAssymetricAdjacencyEntry: expecting a callback.'\n );\n\n forEachAdjacency(false, true, false, this, callback);\n }\n forEachAssymetricAdjacencyEntryWithOrphans(callback) {\n if (typeof callback !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.'\n );\n\n forEachAdjacency(false, true, true, this, callback);\n }\n\n /**\n * Method returning the list of the graph's nodes.\n *\n * @return {array} - The nodes.\n */\n nodes() {\n if (typeof Array.from === 'function') return Array.from(this._nodes.keys());\n\n return take(this._nodes.keys(), this._nodes.size);\n }\n\n /**\n * Method iterating over the graph's nodes using the given callback.\n *\n * @param {function} callback - Callback (key, attributes, index).\n */\n forEachNode(callback) {\n if (typeof callback !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.forEachNode: expecting a callback.'\n );\n\n const iterator = this._nodes.values();\n\n let step, nodeData;\n\n while (((step = iterator.next()), step.done !== true)) {\n nodeData = step.value;\n callback(nodeData.key, nodeData.attributes);\n }\n }\n\n /**\n * Method iterating attempting to find a node matching the given predicate\n * function.\n *\n * @param {function} callback - Callback (key, attributes).\n */\n findNode(callback) {\n if (typeof callback !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.findNode: expecting a callback.'\n );\n\n const iterator = this._nodes.values();\n\n let step, nodeData;\n\n while (((step = iterator.next()), step.done !== true)) {\n nodeData = step.value;\n\n if (callback(nodeData.key, nodeData.attributes)) return nodeData.key;\n }\n\n return;\n }\n\n /**\n * Method mapping nodes.\n *\n * @param {function} callback - Callback (key, attributes).\n */\n mapNodes(callback) {\n if (typeof callback !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.mapNode: expecting a callback.'\n );\n\n const iterator = this._nodes.values();\n\n let step, nodeData;\n\n const result = new Array(this.order);\n let i = 0;\n\n while (((step = iterator.next()), step.done !== true)) {\n nodeData = step.value;\n result[i++] = callback(nodeData.key, nodeData.attributes);\n }\n\n return result;\n }\n\n /**\n * Method returning whether some node verify the given predicate.\n *\n * @param {function} callback - Callback (key, attributes).\n */\n someNode(callback) {\n if (typeof callback !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.someNode: expecting a callback.'\n );\n\n const iterator = this._nodes.values();\n\n let step, nodeData;\n\n while (((step = iterator.next()), step.done !== true)) {\n nodeData = step.value;\n\n if (callback(nodeData.key, nodeData.attributes)) return true;\n }\n\n return false;\n }\n\n /**\n * Method returning whether all node verify the given predicate.\n *\n * @param {function} callback - Callback (key, attributes).\n */\n everyNode(callback) {\n if (typeof callback !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.everyNode: expecting a callback.'\n );\n\n const iterator = this._nodes.values();\n\n let step, nodeData;\n\n while (((step = iterator.next()), step.done !== true)) {\n nodeData = step.value;\n\n if (!callback(nodeData.key, nodeData.attributes)) return false;\n }\n\n return true;\n }\n\n /**\n * Method filtering nodes.\n *\n * @param {function} callback - Callback (key, attributes).\n */\n filterNodes(callback) {\n if (typeof callback !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.filterNodes: expecting a callback.'\n );\n\n const iterator = this._nodes.values();\n\n let step, nodeData;\n\n const result = [];\n\n while (((step = iterator.next()), step.done !== true)) {\n nodeData = step.value;\n\n if (callback(nodeData.key, nodeData.attributes))\n result.push(nodeData.key);\n }\n\n return result;\n }\n\n /**\n * Method reducing nodes.\n *\n * @param {function} callback - Callback (accumulator, key, attributes).\n */\n reduceNodes(callback, initialValue) {\n if (typeof callback !== 'function')\n throw new InvalidArgumentsGraphError(\n 'Graph.reduceNodes: expecting a callback.'\n );\n\n if (arguments.length < 2)\n throw new InvalidArgumentsGraphError(\n 'Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.'\n );\n\n let accumulator = initialValue;\n\n const iterator = this._nodes.values();\n\n let step, nodeData;\n\n while (((step = iterator.next()), step.done !== true)) {\n nodeData = step.value;\n accumulator = callback(accumulator, nodeData.key, nodeData.attributes);\n }\n\n return accumulator;\n }\n\n /**\n * Method returning an iterator over the graph's node entries.\n *\n * @return {Iterator}\n */\n nodeEntries() {\n const iterator = this._nodes.values();\n\n return new Iterator(() => {\n const step = iterator.next();\n\n if (step.done) return step;\n\n const data = step.value;\n\n return {\n value: {node: data.key, attributes: data.attributes},\n done: false\n };\n });\n }\n\n /**---------------------------------------------------------------------------\n * Serialization\n **---------------------------------------------------------------------------\n */\n\n /**\n * Method used to export the whole graph.\n *\n * @return {object} - The serialized graph.\n */\n export() {\n const nodes = new Array(this._nodes.size);\n\n let i = 0;\n\n this._nodes.forEach((data, key) => {\n nodes[i++] = serializeNode(key, data);\n });\n\n const edges = new Array(this._edges.size);\n\n i = 0;\n\n this._edges.forEach((data, key) => {\n edges[i++] = serializeEdge(this.type, key, data);\n });\n\n return {\n options: {\n type: this.type,\n multi: this.multi,\n allowSelfLoops: this.allowSelfLoops\n },\n attributes: this.getAttributes(),\n nodes,\n edges\n };\n }\n\n /**\n * Method used to import a serialized graph.\n *\n * @param {object|Graph} data - The serialized graph.\n * @param {boolean} merge - Whether to merge data.\n * @return {Graph} - Returns itself for chaining.\n */\n import(data, merge = false) {\n // Importing a Graph instance directly\n if (data instanceof Graph) {\n // Nodes\n data.forEachNode((n, a) => {\n if (merge) this.mergeNode(n, a);\n else this.addNode(n, a);\n });\n\n // Edges\n data.forEachEdge((e, a, s, t, _sa, _ta, u) => {\n if (merge) {\n if (u) this.mergeUndirectedEdgeWithKey(e, s, t, a);\n else this.mergeDirectedEdgeWithKey(e, s, t, a);\n } else {\n if (u) this.addUndirectedEdgeWithKey(e, s, t, a);\n else this.addDirectedEdgeWithKey(e, s, t, a);\n }\n });\n\n return this;\n }\n\n // Importing a serialized graph\n if (!isPlainObject(data))\n throw new InvalidArgumentsGraphError(\n 'Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.'\n );\n\n if (data.attributes) {\n if (!isPlainObject(data.attributes))\n throw new InvalidArgumentsGraphError(\n 'Graph.import: invalid attributes. Expecting a plain object.'\n );\n\n if (merge) this.mergeAttributes(data.attributes);\n else this.replaceAttributes(data.attributes);\n }\n\n let i, l, list, node, edge;\n\n if (data.nodes) {\n list = data.nodes;\n\n if (!Array.isArray(list))\n throw new InvalidArgumentsGraphError(\n 'Graph.import: invalid nodes. Expecting an array.'\n );\n\n for (i = 0, l = list.length; i < l; i++) {\n node = list[i];\n\n // Validating\n validateSerializedNode(node);\n\n // Adding the node\n const {key, attributes} = node;\n\n if (merge) this.mergeNode(key, attributes);\n else this.addNode(key, attributes);\n }\n }\n\n if (data.edges) {\n let undirectedByDefault = false;\n\n if (this.type === 'undirected') {\n undirectedByDefault = true;\n }\n\n list = data.edges;\n\n if (!Array.isArray(list))\n throw new InvalidArgumentsGraphError(\n 'Graph.import: invalid edges. Expecting an array.'\n );\n\n for (i = 0, l = list.length; i < l; i++) {\n edge = list[i];\n\n // Validating\n validateSerializedEdge(edge);\n\n // Adding the edge\n const {\n source,\n target,\n attributes,\n undirected = undirectedByDefault\n } = edge;\n\n let method;\n\n if ('key' in edge) {\n method = merge\n ? undirected\n ? this.mergeUndirectedEdgeWithKey\n : this.mergeDirectedEdgeWithKey\n : undirected\n ? this.addUndirectedEdgeWithKey\n : this.addDirectedEdgeWithKey;\n\n method.call(this, edge.key, source, target, attributes);\n } else {\n method = merge\n ? undirected\n ? this.mergeUndirectedEdge\n : this.mergeDirectedEdge\n : undirected\n ? this.addUndirectedEdge\n : this.addDirectedEdge;\n\n method.call(this, source, target, attributes);\n }\n }\n }\n\n return this;\n }\n\n /**---------------------------------------------------------------------------\n * Utils\n **---------------------------------------------------------------------------\n */\n\n /**\n * Method returning a null copy of the graph, i.e. a graph without nodes\n * & edges but with the exact same options.\n *\n * @param {object} options - Options to merge with the current ones.\n * @return {Graph} - The null copy.\n */\n nullCopy(options) {\n const graph = new Graph(assign({}, this._options, options));\n graph.replaceAttributes(assign({}, this.getAttributes()));\n return graph;\n }\n\n /**\n * Method returning an empty copy of the graph, i.e. a graph without edges but\n * with the exact same options.\n *\n * @param {object} options - Options to merge with the current ones.\n * @return {Graph} - The empty copy.\n */\n emptyCopy(options) {\n const graph = this.nullCopy(options);\n\n this._nodes.forEach((nodeData, key) => {\n const attributes = assign({}, nodeData.attributes);\n\n // NOTE: no need to emit events since user cannot access the instance yet\n nodeData = new graph.NodeDataClass(key, attributes);\n graph._nodes.set(key, nodeData);\n });\n\n return graph;\n }\n\n /**\n * Method returning an exact copy of the graph.\n *\n * @param {object} options - Upgrade options.\n * @return {Graph} - The copy.\n */\n copy(options) {\n options = options || {};\n\n if (\n typeof options.type === 'string' &&\n options.type !== this.type &&\n options.type !== 'mixed'\n )\n throw new UsageGraphError(\n `Graph.copy: cannot create an incompatible copy from \"${this.type}\" type to \"${options.type}\" because this would mean losing information about the current graph.`\n );\n\n if (\n typeof options.multi === 'boolean' &&\n options.multi !== this.multi &&\n options.multi !== true\n )\n throw new UsageGraphError(\n 'Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.'\n );\n\n if (\n typeof options.allowSelfLoops === 'boolean' &&\n options.allowSelfLoops !== this.allowSelfLoops &&\n options.allowSelfLoops !== true\n )\n throw new UsageGraphError(\n 'Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.'\n );\n\n const graph = this.emptyCopy(options);\n\n const iterator = this._edges.values();\n\n let step, edgeData;\n\n while (((step = iterator.next()), step.done !== true)) {\n edgeData = step.value;\n\n // NOTE: no need to emit events since user cannot access the instance yet\n addEdge(\n graph,\n 'copy',\n false,\n edgeData.undirected,\n edgeData.key,\n edgeData.source.key,\n edgeData.target.key,\n assign({}, edgeData.attributes)\n );\n }\n\n return graph;\n }\n\n /**---------------------------------------------------------------------------\n * Known methods\n **---------------------------------------------------------------------------\n */\n\n /**\n * Method used by JavaScript to perform JSON serialization.\n *\n * @return {object} - The serialized graph.\n */\n toJSON() {\n return this.export();\n }\n\n /**\n * Method returning [object Graph].\n */\n toString() {\n return '[object Graph]';\n }\n\n /**\n * Method used internally by node's console to display a custom object.\n *\n * @return {object} - Formatted object representation of the graph.\n */\n inspect() {\n const nodes = {};\n this._nodes.forEach((data, key) => {\n nodes[key] = data.attributes;\n });\n\n const edges = {},\n multiIndex = {};\n\n this._edges.forEach((data, key) => {\n const direction = data.undirected ? '--' : '->';\n\n let label = '';\n\n let source = data.source.key;\n let target = data.target.key;\n let tmp;\n\n if (data.undirected && source > target) {\n tmp = source;\n source = target;\n target = tmp;\n }\n\n const desc = `(${source})${direction}(${target})`;\n\n if (!key.startsWith('geid_')) {\n label += `[${key}]: `;\n } else if (this.multi) {\n if (typeof multiIndex[desc] === 'undefined') {\n multiIndex[desc] = 0;\n } else {\n multiIndex[desc]++;\n }\n\n label += `${multiIndex[desc]}. `;\n }\n\n label += desc;\n\n edges[label] = data.attributes;\n });\n\n const dummy = {};\n\n for (const k in this) {\n if (\n this.hasOwnProperty(k) &&\n !EMITTER_PROPS.has(k) &&\n typeof this[k] !== 'function' &&\n typeof k !== 'symbol'\n )\n dummy[k] = this[k];\n }\n\n dummy.attributes = this._attributes;\n dummy.nodes = nodes;\n dummy.edges = edges;\n\n privateProperty(dummy, 'constructor', this.constructor);\n\n return dummy;\n }\n}\n\n/**\n * Attaching methods to the prototype.\n *\n * Here, we are attaching a wide variety of methods to the Graph class'\n * prototype when those are very numerous and when their creation is\n * abstracted.\n */\n\n/**\n * Attaching custom inspect method for node >= 10.\n */\nif (typeof Symbol !== 'undefined')\n Graph.prototype[Symbol.for('nodejs.util.inspect.custom')] =\n Graph.prototype.inspect;\n\n/**\n * Related to edge addition.\n */\nEDGE_ADD_METHODS.forEach(method => {\n ['add', 'merge', 'update'].forEach(verb => {\n const name = method.name(verb);\n const fn = verb === 'add' ? addEdge : mergeEdge;\n\n if (method.generateKey) {\n Graph.prototype[name] = function (source, target, attributes) {\n return fn(\n this,\n name,\n true,\n (method.type || this.type) === 'undirected',\n null,\n source,\n target,\n attributes,\n verb === 'update'\n );\n };\n } else {\n Graph.prototype[name] = function (edge, source, target, attributes) {\n return fn(\n this,\n name,\n false,\n (method.type || this.type) === 'undirected',\n edge,\n source,\n target,\n attributes,\n verb === 'update'\n );\n };\n }\n });\n});\n\n/**\n * Attributes-related.\n */\nattachNodeAttributesMethods(Graph);\nattachEdgeAttributesMethods(Graph);\n\n/**\n * Edge iteration-related.\n */\nattachEdgeIterationMethods(Graph);\n\n/**\n * Neighbor iteration-related.\n */\nattachNeighborIterationMethods(Graph);\n","/**\n * Graphology Helper Classes\n * ==========================\n *\n * Building some higher-order classes instantiating the graph with\n * predefinite options.\n */\nimport {assign} from './utils';\nimport Graph from './graph';\n\nimport {\n InvalidArgumentsGraphError,\n NotFoundGraphError,\n UsageGraphError\n} from './errors';\n\n/**\n * Alternative constructors.\n */\nclass DirectedGraph extends Graph {\n constructor(options) {\n const finalOptions = assign({type: 'directed'}, options);\n\n if ('multi' in finalOptions && finalOptions.multi !== false)\n throw new InvalidArgumentsGraphError(\n 'DirectedGraph.from: inconsistent indication that the graph should be multi in given options!'\n );\n\n if (finalOptions.type !== 'directed')\n throw new InvalidArgumentsGraphError(\n 'DirectedGraph.from: inconsistent \"' +\n finalOptions.type +\n '\" type in given options!'\n );\n\n super(finalOptions);\n }\n}\nclass UndirectedGraph extends Graph {\n constructor(options) {\n const finalOptions = assign({type: 'undirected'}, options);\n\n if ('multi' in finalOptions && finalOptions.multi !== false)\n throw new InvalidArgumentsGraphError(\n 'UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!'\n );\n\n if (finalOptions.type !== 'undirected')\n throw new InvalidArgumentsGraphError(\n 'UndirectedGraph.from: inconsistent \"' +\n finalOptions.type +\n '\" type in given options!'\n );\n\n super(finalOptions);\n }\n}\nclass MultiGraph extends Graph {\n constructor(options) {\n const finalOptions = assign({multi: true}, options);\n\n if ('multi' in finalOptions && finalOptions.multi !== true)\n throw new InvalidArgumentsGraphError(\n 'MultiGraph.from: inconsistent indication that the graph should be simple in given options!'\n );\n\n super(finalOptions);\n }\n}\nclass MultiDirectedGraph extends Graph {\n constructor(options) {\n const finalOptions = assign({type: 'directed', multi: true}, options);\n\n if ('multi' in finalOptions && finalOptions.multi !== true)\n throw new InvalidArgumentsGraphError(\n 'MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!'\n );\n\n if (finalOptions.type !== 'directed')\n throw new InvalidArgumentsGraphError(\n 'MultiDirectedGraph.from: inconsistent \"' +\n finalOptions.type +\n '\" type in given options!'\n );\n\n super(finalOptions);\n }\n}\nclass MultiUndirectedGraph extends Graph {\n constructor(options) {\n const finalOptions = assign({type: 'undirected', multi: true}, options);\n\n if ('multi' in finalOptions && finalOptions.multi !== true)\n throw new InvalidArgumentsGraphError(\n 'MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!'\n );\n\n if (finalOptions.type !== 'undirected')\n throw new InvalidArgumentsGraphError(\n 'MultiUndirectedGraph.from: inconsistent \"' +\n finalOptions.type +\n '\" type in given options!'\n );\n\n super(finalOptions);\n }\n}\n\n/**\n * Attaching static #.from method to each of the constructors.\n */\nfunction attachStaticFromMethod(Class) {\n /**\n * Builds a graph from serialized data or another graph's data.\n *\n * @param {Graph|SerializedGraph} data - Hydratation data.\n * @param {object} [options] - Options.\n * @return {Class}\n */\n Class.from = function (data, options) {\n // Merging given options with serialized ones\n const finalOptions = assign({}, data.options, options);\n\n const instance = new Class(finalOptions);\n instance.import(data);\n\n return instance;\n };\n}\n\nattachStaticFromMethod(Graph);\nattachStaticFromMethod(DirectedGraph);\nattachStaticFromMethod(UndirectedGraph);\nattachStaticFromMethod(MultiGraph);\nattachStaticFromMethod(MultiDirectedGraph);\nattachStaticFromMethod(MultiUndirectedGraph);\n\nGraph.Graph = Graph;\nGraph.DirectedGraph = DirectedGraph;\nGraph.UndirectedGraph = UndirectedGraph;\nGraph.MultiGraph = MultiGraph;\nGraph.MultiDirectedGraph = MultiDirectedGraph;\nGraph.MultiUndirectedGraph = MultiUndirectedGraph;\n\nGraph.InvalidArgumentsGraphError = InvalidArgumentsGraphError;\nGraph.NotFoundGraphError = NotFoundGraphError;\nGraph.UsageGraphError = UsageGraphError;\n\nexport {\n Graph,\n DirectedGraph,\n UndirectedGraph,\n MultiGraph,\n MultiDirectedGraph,\n MultiUndirectedGraph\n};\n"],"names":["assign","target","arguments","i","l","length","k","getMatchingEdge","graph","source","type","sourceData","_nodes","get","edge","out","undirected","isPlainObject","value","_typeof","isEmpty","o","privateProperty","name","Object","defineProperty","enumerable","configurable","writable","readOnlyProperty","descriptor","validateHints","hints","attributes","Array","isArray","ReflectOwnKeys","R","Reflect","ReflectApply","apply","receiver","args","Function","prototype","call","ownKeys","getOwnPropertySymbols","getOwnPropertyNames","concat","NumberIsNaN","Number","isNaN","EventEmitter","init","this","eventsModule","exports","events","once","emitter","Promise","resolve","reject","errorListener","err","removeListener","resolver","slice","eventTargetAgnosticAddListener","handler","flags","on","addErrorHandlerIfEventEmitter","_events","undefined","_eventsCount","_maxListeners","defaultMaxListeners","checkListener","listener","TypeError","_getMaxListeners","that","_addListener","prepend","m","existing","warning","create","newListener","emit","unshift","push","warned","w","Error","String","count","console","warn","onceWrapper","fired","wrapFn","_onceWrap","state","wrapped","bind","_listeners","unwrap","evlistener","arr","ret","unwrapListeners","arrayClone","listenerCount","n","copy","addEventListener","wrapListener","arg","removeEventListener","Iterator","next","set","RangeError","getPrototypeOf","setMaxListeners","getMaxListeners","doError","error","er","message","context","len","listeners","addListener","prependListener","prependOnceListener","list","position","originalListener","shift","index","pop","spliceOne","off","removeAllListeners","key","keys","rawListeners","eventNames","Symbol","iterator","Iterator$2","of","done","empty","fromSequence","sequence","is","support","ARRAY_BUFFER_SUPPORT","ArrayBuffer","SYMBOL_SUPPORT","require$$0","require$$1","iter","isView","iterOrNull","take","iterable","step","Infinity","array","GraphError","_Error","_this","_inheritsLoose","_wrapNativeSuper","InvalidArgumentsGraphError","_GraphError","_this2","captureStackTrace","constructor","NotFoundGraphError","_GraphError2","_this3","UsageGraphError","_GraphError3","_this4","MixedNodeData","clear","DirectedNodeData","UndirectedNodeData","EdgeData","inDegree","outDegree","undirectedDegree","undirectedLoops","directedLoops","attach","outKey","inKey","attachMulti","adj","head","previous","detach","detachMulti","findRelevantNodeData","method","mode","nodeOrEdge","nameOrEdge","add1","add2","nodeData","edgeData","arg1","arg2","_edges","NODE_ATTRIBUTES_METHODS","element","attacher","Class","_findRelevantNodeData","data","_findRelevantNodeData3","hasOwnProperty","_findRelevantNodeData4","_findRelevantNodeData5","updater","_findRelevantNodeData6","_findRelevantNodeData7","_findRelevantNodeData8","_findRelevantNodeData9","EDGE_ATTRIBUTES_METHODS","multi","chain","iterables","current","EDGES_ITERATION","direction","forEachSimple","breakable","object","callback","avoid","shouldBreak","forEachMulti","createIterator","sourceAttributes","targetAttributes","forEachForKeySimple","targetData","forEachForKeyMulti","createIteratorForKey","createEdgeArray","size","from","undirectedSize","directedSize","mask","values","forEachEdge","shouldFilter","_data","createEdgeIterator","forEachEdgeForNode","found","fn","createEdgeArrayForNode","edges","createEdgeIteratorForNode","forEachEdgeForPath","createEdgeArrayForPath","createEdgeIteratorForPath","NEIGHBORS_ITERATION","CompositeSetWrapper","A","B","forEachInObjectOnce","visited","neighborData","has","forEachNeighbor","wrap","createDedupedObjectIterator","neighbor","attachNeighborArrayCreator","description","node","neighbors","createNeighborArrayForNode","attachNeighborIteratorCreator","iteratorName","createNeighborIterator","forEachAdjacency","assymetric","disconnectedNodes","hasEdges","validateSerializedNode","validateSerializedEdge","INSTANCE_ID","Math","floor","random","TYPES","Set","EMITTER_PROPS","DEFAULTS","allowSelfLoops","unsafeAddNode","NodeDataClass","addEdge","mustGenerateKey","eventData","_edgeKeyGenerator","isSelfLoop","_undirectedSelfLoopCount","_directedSelfLoopCount","_undirectedSize","_directedSize","mergeEdge","asUpdater","alreadyExistingEdgeData","info","oldAttributes","sourceWasAdded","targetWasAdded","dropEdgeFromData","Graph","_EventEmitter","options","_assertThisInitialized","instancePrefix","edgeId","Map","availableEdgeKey","forEach","prop","_options","_proto","_resetInstanceCounters","hasNode","hasDirectedEdge","hasUndirectedEdge","hasEdge","directedEdge","undirectedEdge","areDirectedNeighbors","areOutNeighbors","areInNeighbors","areUndirectedNeighbors","areNeighbors","areInboundNeighbors","areOutboundNeighbors","directedDegree","inboundDegree","degree","outboundDegree","inDegreeWithoutSelfLoops","outDegreeWithoutSelfLoops","directedDegreeWithoutSelfLoops","undirectedDegreeWithoutSelfLoops","inboundDegreeWithoutSelfLoops","loops","outboundDegreeWithoutSelfLoops","degreeWithoutSelfLoops","extremities","opposite","hasExtremity","isUndirected","isDirected","addNode","mergeNode","updateNode","dropNode","dropEdge","dropDirectedEdge","dropUndirectedEdge","clearEdges","getAttribute","_attributes","getAttributes","hasAttribute","setAttribute","updateAttribute","removeAttribute","replaceAttributes","mergeAttributes","updateAttributes","updateEachNodeAttributes","updateEachEdgeAttributes","forEachAdjacencyEntry","forEachAdjacencyEntryWithOrphans","forEachAssymetricAdjacencyEntry","forEachAssymetricAdjacencyEntryWithOrphans","nodes","forEachNode","findNode","mapNodes","result","order","someNode","everyNode","filterNodes","reduceNodes","initialValue","accumulator","nodeEntries","serialized","serializeNode","serializeEdge","merge","a","e","s","t","_sa","_ta","u","mergeUndirectedEdgeWithKey","mergeDirectedEdgeWithKey","addUndirectedEdgeWithKey","addDirectedEdgeWithKey","_node","undirectedByDefault","_edge","_edge$undirected","mergeUndirectedEdge","mergeDirectedEdge","addUndirectedEdge","addDirectedEdge","nullCopy","emptyCopy","toJSON","toString","inspect","multiIndex","tmp","label","desc","startsWith","dummy","verb","generateKey","_ref","attachNodeAttributesMethods","attachEdgeAttributesMethods","attachEdgeArrayCreator","forEachName","toUpperCase","mapName","ea","sa","ta","filterName","reduceName","attachForEachEdge","findEdgeName","someName","everyName","attachFindEdge","originalName","attachEdgeIteratorCreator","attachEdgeIterationMethods","attachForEachNeighbor","capitalizedSingular","findName","attachFindNeighbor","attachNeighborIterationMethods","DirectedGraph","_Graph","finalOptions","UndirectedGraph","_Graph2","MultiGraph","_Graph3","MultiDirectedGraph","_Graph4","MultiUndirectedGraph","_Graph5","attachStaticFromMethod","instance"],"mappings":"21DA0BA,IAAIA,EAZJ,WAGE,IAFA,IAAMC,EAASC,UAAU,GAEhBC,EAAI,EAAGC,EAAIF,UAAUG,OAAQF,EAAIC,EAAGD,IAC3C,GAAKD,UAAUC,GAEf,IAAK,IAAMG,KAAKJ,UAAUC,GAAIF,EAAOK,GAAKJ,UAAUC,GAAGG,GAGzD,OAAOL,CACT,EAmBO,SAASM,EAAgBC,EAAOC,EAAQR,EAAQS,GACrD,IAAMC,EAAaH,EAAMI,OAAOC,IAAIJ,GAEhCK,EAAO,KAEX,OAAKH,EAGHG,EADW,UAATJ,EAECC,EAAWI,KAAOJ,EAAWI,IAAId,IACjCU,EAAWK,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