@harrylabsj/kiwi-merchant-cloud 0.12.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 (3980) hide show
  1. package/app/a2a/client/client.d.ts +38 -0
  2. package/app/a2a/client/client.js +195 -0
  3. package/app/a2a/client/client.js.map +1 -0
  4. package/app/a2a/client/error.d.ts +35 -0
  5. package/app/a2a/client/error.js +34 -0
  6. package/app/a2a/client/error.js.map +1 -0
  7. package/app/a2a/client/index.d.ts +29 -0
  8. package/app/a2a/client/index.js +26 -0
  9. package/app/a2a/client/index.js.map +1 -0
  10. package/app/a2a/client/jsonrpc.d.ts +49 -0
  11. package/app/a2a/client/jsonrpc.js +86 -0
  12. package/app/a2a/client/jsonrpc.js.map +1 -0
  13. package/app/a2a/client/parse.d.ts +18 -0
  14. package/app/a2a/client/parse.js +158 -0
  15. package/app/a2a/client/parse.js.map +1 -0
  16. package/app/a2a/client/types.d.ts +113 -0
  17. package/app/a2a/client/types.js +26 -0
  18. package/app/a2a/client/types.js.map +1 -0
  19. package/app/a2a/client/url-policy.d.ts +51 -0
  20. package/app/a2a/client/url-policy.js +325 -0
  21. package/app/a2a/client/url-policy.js.map +1 -0
  22. package/app/a2a/clock.d.ts +30 -0
  23. package/app/a2a/clock.js +39 -0
  24. package/app/a2a/clock.js.map +1 -0
  25. package/app/a2a/negotiate.d.ts +96 -0
  26. package/app/a2a/negotiate.js +326 -0
  27. package/app/a2a/negotiate.js.map +1 -0
  28. package/app/a2a/node.d.ts +175 -0
  29. package/app/a2a/node.js +641 -0
  30. package/app/a2a/node.js.map +1 -0
  31. package/app/a2a/server/auth.d.ts +38 -0
  32. package/app/a2a/server/auth.js +121 -0
  33. package/app/a2a/server/auth.js.map +1 -0
  34. package/app/a2a/server/card.d.ts +25 -0
  35. package/app/a2a/server/card.js +135 -0
  36. package/app/a2a/server/card.js.map +1 -0
  37. package/app/a2a/server/errors.d.ts +127 -0
  38. package/app/a2a/server/errors.js +197 -0
  39. package/app/a2a/server/errors.js.map +1 -0
  40. package/app/a2a/server/generic-responder.d.ts +48 -0
  41. package/app/a2a/server/generic-responder.js +57 -0
  42. package/app/a2a/server/generic-responder.js.map +1 -0
  43. package/app/a2a/server/handler.d.ts +22 -0
  44. package/app/a2a/server/handler.js +57 -0
  45. package/app/a2a/server/handler.js.map +1 -0
  46. package/app/a2a/server/inbound-message.d.ts +37 -0
  47. package/app/a2a/server/inbound-message.js +104 -0
  48. package/app/a2a/server/inbound-message.js.map +1 -0
  49. package/app/a2a/server/index.d.ts +46 -0
  50. package/app/a2a/server/index.js +44 -0
  51. package/app/a2a/server/index.js.map +1 -0
  52. package/app/a2a/server/merchant-handler.d.ts +111 -0
  53. package/app/a2a/server/merchant-handler.js +993 -0
  54. package/app/a2a/server/merchant-handler.js.map +1 -0
  55. package/app/a2a/server/pipeline.d.ts +144 -0
  56. package/app/a2a/server/pipeline.js +561 -0
  57. package/app/a2a/server/pipeline.js.map +1 -0
  58. package/app/a2a/server/server.d.ts +101 -0
  59. package/app/a2a/server/server.js +800 -0
  60. package/app/a2a/server/server.js.map +1 -0
  61. package/app/a2a/server/task-registry.d.ts +59 -0
  62. package/app/a2a/server/task-registry.js +129 -0
  63. package/app/a2a/server/task-registry.js.map +1 -0
  64. package/app/a2a/server/throttle.d.ts +167 -0
  65. package/app/a2a/server/throttle.js +329 -0
  66. package/app/a2a/server/throttle.js.map +1 -0
  67. package/app/a2a/server/types.d.ts +234 -0
  68. package/app/a2a/server/types.js +17 -0
  69. package/app/a2a/server/types.js.map +1 -0
  70. package/app/a2a/server/ucp.d.ts +77 -0
  71. package/app/a2a/server/ucp.js +94 -0
  72. package/app/a2a/server/ucp.js.map +1 -0
  73. package/app/a2a/signing-key.d.ts +63 -0
  74. package/app/a2a/signing-key.js +191 -0
  75. package/app/a2a/signing-key.js.map +1 -0
  76. package/app/a2a/task/index.d.ts +24 -0
  77. package/app/a2a/task/index.js +22 -0
  78. package/app/a2a/task/index.js.map +1 -0
  79. package/app/a2a/task/ledger.d.ts +48 -0
  80. package/app/a2a/task/ledger.js +65 -0
  81. package/app/a2a/task/ledger.js.map +1 -0
  82. package/app/a2a/task/poller.d.ts +93 -0
  83. package/app/a2a/task/poller.js +184 -0
  84. package/app/a2a/task/poller.js.map +1 -0
  85. package/app/a2a/task/state.d.ts +72 -0
  86. package/app/a2a/task/state.js +119 -0
  87. package/app/a2a/task/state.js.map +1 -0
  88. package/app/a2a/ucp-agent.d.ts +49 -0
  89. package/app/a2a/ucp-agent.js +78 -0
  90. package/app/a2a/ucp-agent.js.map +1 -0
  91. package/app/a2a/v1/headers.d.ts +33 -0
  92. package/app/a2a/v1/headers.js +56 -0
  93. package/app/a2a/v1/headers.js.map +1 -0
  94. package/app/a2a/v1/methods.d.ts +52 -0
  95. package/app/a2a/v1/methods.js +75 -0
  96. package/app/a2a/v1/methods.js.map +1 -0
  97. package/app/a2a/v1/part.d.ts +48 -0
  98. package/app/a2a/v1/part.js +91 -0
  99. package/app/a2a/v1/part.js.map +1 -0
  100. package/app/a2a/v1/types.d.ts +94 -0
  101. package/app/a2a/v1/types.js +62 -0
  102. package/app/a2a/v1/types.js.map +1 -0
  103. package/app/agent/agent-db.d.ts +31 -0
  104. package/app/agent/agent-db.js +96 -0
  105. package/app/agent/agent-db.js.map +1 -0
  106. package/app/agent/buyer/buyer-tools.d.ts +82 -0
  107. package/app/agent/buyer/buyer-tools.js +1582 -0
  108. package/app/agent/buyer/buyer-tools.js.map +1 -0
  109. package/app/agent/buyer/ranker.d.ts +53 -0
  110. package/app/agent/buyer/ranker.js +153 -0
  111. package/app/agent/buyer/ranker.js.map +1 -0
  112. package/app/agent/buyer/scheduler.d.ts +67 -0
  113. package/app/agent/buyer/scheduler.js +329 -0
  114. package/app/agent/buyer/scheduler.js.map +1 -0
  115. package/app/agent/buyer/search-loop.d.ts +45 -0
  116. package/app/agent/buyer/search-loop.js +428 -0
  117. package/app/agent/buyer/search-loop.js.map +1 -0
  118. package/app/agent/buyer/task-store.d.ts +187 -0
  119. package/app/agent/buyer/task-store.js +656 -0
  120. package/app/agent/buyer/task-store.js.map +1 -0
  121. package/app/agent/buyer/types.d.ts +199 -0
  122. package/app/agent/buyer/types.js +127 -0
  123. package/app/agent/buyer/types.js.map +1 -0
  124. package/app/agent/chat-tools.d.ts +32 -0
  125. package/app/agent/chat-tools.js +200 -0
  126. package/app/agent/chat-tools.js.map +1 -0
  127. package/app/agent/chat-tui.d.ts +49 -0
  128. package/app/agent/chat-tui.js +314 -0
  129. package/app/agent/chat-tui.js.map +1 -0
  130. package/app/agent/connector/fake-connector.d.ts +50 -0
  131. package/app/agent/connector/fake-connector.js +138 -0
  132. package/app/agent/connector/fake-connector.js.map +1 -0
  133. package/app/agent/connector/http-connector.d.ts +49 -0
  134. package/app/agent/connector/http-connector.js +208 -0
  135. package/app/agent/connector/http-connector.js.map +1 -0
  136. package/app/agent/connector/types.d.ts +103 -0
  137. package/app/agent/connector/types.js +97 -0
  138. package/app/agent/connector/types.js.map +1 -0
  139. package/app/agent/context/fencing.d.ts +27 -0
  140. package/app/agent/context/fencing.js +126 -0
  141. package/app/agent/context/fencing.js.map +1 -0
  142. package/app/agent/context/grounding.d.ts +18 -0
  143. package/app/agent/context/grounding.js +22 -0
  144. package/app/agent/context/grounding.js.map +1 -0
  145. package/app/agent/fake-chat-model.d.ts +22 -0
  146. package/app/agent/fake-chat-model.js +132 -0
  147. package/app/agent/fake-chat-model.js.map +1 -0
  148. package/app/agent/host/events.d.ts +31 -0
  149. package/app/agent/host/events.js +62 -0
  150. package/app/agent/host/events.js.map +1 -0
  151. package/app/agent/host/tui-renderer.d.ts +17 -0
  152. package/app/agent/host/tui-renderer.js +125 -0
  153. package/app/agent/host/tui-renderer.js.map +1 -0
  154. package/app/agent/host/web-renderer.d.ts +76 -0
  155. package/app/agent/host/web-renderer.js +204 -0
  156. package/app/agent/host/web-renderer.js.map +1 -0
  157. package/app/agent/kernel-builder.d.ts +29 -0
  158. package/app/agent/kernel-builder.js +183 -0
  159. package/app/agent/kernel-builder.js.map +1 -0
  160. package/app/agent/kernel.d.ts +299 -0
  161. package/app/agent/kernel.js +1616 -0
  162. package/app/agent/kernel.js.map +1 -0
  163. package/app/agent/kiwi-tool.d.ts +33 -0
  164. package/app/agent/kiwi-tool.js +17 -0
  165. package/app/agent/kiwi-tool.js.map +1 -0
  166. package/app/agent/memory/schema.d.ts +32 -0
  167. package/app/agent/memory/schema.js +566 -0
  168. package/app/agent/memory/schema.js.map +1 -0
  169. package/app/agent/memory/store.d.ts +198 -0
  170. package/app/agent/memory/store.js +911 -0
  171. package/app/agent/memory/store.js.map +1 -0
  172. package/app/agent/memory/types.d.ts +139 -0
  173. package/app/agent/memory/types.js +119 -0
  174. package/app/agent/memory/types.js.map +1 -0
  175. package/app/agent/memory/vault.d.ts +49 -0
  176. package/app/agent/memory/vault.js +125 -0
  177. package/app/agent/memory/vault.js.map +1 -0
  178. package/app/agent/merchant/action-candidate.d.ts +137 -0
  179. package/app/agent/merchant/action-candidate.js +373 -0
  180. package/app/agent/merchant/action-candidate.js.map +1 -0
  181. package/app/agent/merchant/credential-broker.d.ts +67 -0
  182. package/app/agent/merchant/credential-broker.js +76 -0
  183. package/app/agent/merchant/credential-broker.js.map +1 -0
  184. package/app/agent/merchant/fake-merchant-client.d.ts +76 -0
  185. package/app/agent/merchant/fake-merchant-client.js +297 -0
  186. package/app/agent/merchant/fake-merchant-client.js.map +1 -0
  187. package/app/agent/merchant/intelligence/backend.d.ts +40 -0
  188. package/app/agent/merchant/intelligence/backend.js +2 -0
  189. package/app/agent/merchant/intelligence/backend.js.map +1 -0
  190. package/app/agent/merchant/intelligence/default-backend.d.ts +38 -0
  191. package/app/agent/merchant/intelligence/default-backend.js +477 -0
  192. package/app/agent/merchant/intelligence/default-backend.js.map +1 -0
  193. package/app/agent/merchant/intelligence/http-analytics-source.d.ts +55 -0
  194. package/app/agent/merchant/intelligence/http-analytics-source.js +193 -0
  195. package/app/agent/merchant/intelligence/http-analytics-source.js.map +1 -0
  196. package/app/agent/merchant/intelligence/types.d.ts +109 -0
  197. package/app/agent/merchant/intelligence/types.js +2 -0
  198. package/app/agent/merchant/intelligence/types.js.map +1 -0
  199. package/app/agent/merchant/merchant-client.d.ts +134 -0
  200. package/app/agent/merchant/merchant-client.js +460 -0
  201. package/app/agent/merchant/merchant-client.js.map +1 -0
  202. package/app/agent/merchant/merchant-enrichment.d.ts +10 -0
  203. package/app/agent/merchant/merchant-enrichment.js +38 -0
  204. package/app/agent/merchant/merchant-enrichment.js.map +1 -0
  205. package/app/agent/merchant/merchant-grounding.d.ts +5 -0
  206. package/app/agent/merchant/merchant-grounding.js +76 -0
  207. package/app/agent/merchant/merchant-grounding.js.map +1 -0
  208. package/app/agent/merchant/merchant-presentations.d.ts +8 -0
  209. package/app/agent/merchant/merchant-presentations.js +207 -0
  210. package/app/agent/merchant/merchant-presentations.js.map +1 -0
  211. package/app/agent/merchant/merchant-tools.d.ts +70 -0
  212. package/app/agent/merchant/merchant-tools.js +795 -0
  213. package/app/agent/merchant/merchant-tools.js.map +1 -0
  214. package/app/agent/merchant/types.d.ts +236 -0
  215. package/app/agent/merchant/types.js +252 -0
  216. package/app/agent/merchant/types.js.map +1 -0
  217. package/app/agent/mode.d.ts +32 -0
  218. package/app/agent/mode.js +34 -0
  219. package/app/agent/mode.js.map +1 -0
  220. package/app/agent/negotiation-chat.d.ts +93 -0
  221. package/app/agent/negotiation-chat.js +365 -0
  222. package/app/agent/negotiation-chat.js.map +1 -0
  223. package/app/agent/presentation/registry.d.ts +14 -0
  224. package/app/agent/presentation/registry.js +24 -0
  225. package/app/agent/presentation/registry.js.map +1 -0
  226. package/app/agent/presentation/runner.d.ts +11 -0
  227. package/app/agent/presentation/runner.js +17 -0
  228. package/app/agent/presentation/runner.js.map +1 -0
  229. package/app/agent/presentation/sanitize.d.ts +16 -0
  230. package/app/agent/presentation/sanitize.js +37 -0
  231. package/app/agent/presentation/sanitize.js.map +1 -0
  232. package/app/agent/presentation/types.d.ts +28 -0
  233. package/app/agent/presentation/types.js +8 -0
  234. package/app/agent/presentation/types.js.map +1 -0
  235. package/app/agent/session.d.ts +34 -0
  236. package/app/agent/session.js +156 -0
  237. package/app/agent/session.js.map +1 -0
  238. package/app/agent/skills/registry.d.ts +11 -0
  239. package/app/agent/skills/registry.js +119 -0
  240. package/app/agent/skills/registry.js.map +1 -0
  241. package/app/agent/skills/tools.d.ts +6 -0
  242. package/app/agent/skills/tools.js +36 -0
  243. package/app/agent/skills/tools.js.map +1 -0
  244. package/app/agent/skills/types.d.ts +9 -0
  245. package/app/agent/skills/types.js +2 -0
  246. package/app/agent/skills/types.js.map +1 -0
  247. package/app/agent/supplier/scheduler.d.ts +86 -0
  248. package/app/agent/supplier/scheduler.js +618 -0
  249. package/app/agent/supplier/scheduler.js.map +1 -0
  250. package/app/agent/supplier/store.d.ts +173 -0
  251. package/app/agent/supplier/store.js +387 -0
  252. package/app/agent/supplier/store.js.map +1 -0
  253. package/app/agent/system-prompt.d.ts +30 -0
  254. package/app/agent/system-prompt.js +94 -0
  255. package/app/agent/system-prompt.js.map +1 -0
  256. package/app/agent/write-gate.d.ts +102 -0
  257. package/app/agent/write-gate.js +82 -0
  258. package/app/agent/write-gate.js.map +1 -0
  259. package/app/alerts/external-delivery.d.ts +78 -0
  260. package/app/alerts/external-delivery.js +256 -0
  261. package/app/alerts/external-delivery.js.map +1 -0
  262. package/app/auth/app-oauth-callback.d.ts +38 -0
  263. package/app/auth/app-oauth-callback.js +119 -0
  264. package/app/auth/app-oauth-callback.js.map +1 -0
  265. package/app/auth/merchant-authorization.d.ts +49 -0
  266. package/app/auth/merchant-authorization.js +61 -0
  267. package/app/auth/merchant-authorization.js.map +1 -0
  268. package/app/auth/merchant-oauth.d.ts +255 -0
  269. package/app/auth/merchant-oauth.js +738 -0
  270. package/app/auth/merchant-oauth.js.map +1 -0
  271. package/app/auth/merchant-pairing.d.ts +113 -0
  272. package/app/auth/merchant-pairing.js +249 -0
  273. package/app/auth/merchant-pairing.js.map +1 -0
  274. package/app/auth/merchant-sessions.d.ts +77 -0
  275. package/app/auth/merchant-sessions.js +190 -0
  276. package/app/auth/merchant-sessions.js.map +1 -0
  277. package/app/buyer-core/a2a-knp.d.ts +71 -0
  278. package/app/buyer-core/a2a-knp.js +139 -0
  279. package/app/buyer-core/a2a-knp.js.map +1 -0
  280. package/app/buyer-core/a2a-negotiator.d.ts +37 -0
  281. package/app/buyer-core/a2a-negotiator.js +152 -0
  282. package/app/buyer-core/a2a-negotiator.js.map +1 -0
  283. package/app/buyer-core/a2a-quote-fetcher.d.ts +44 -0
  284. package/app/buyer-core/a2a-quote-fetcher.js +178 -0
  285. package/app/buyer-core/a2a-quote-fetcher.js.map +1 -0
  286. package/app/buyer-core/build-service.d.ts +51 -0
  287. package/app/buyer-core/build-service.js +96 -0
  288. package/app/buyer-core/build-service.js.map +1 -0
  289. package/app/buyer-core/errors.d.ts +31 -0
  290. package/app/buyer-core/errors.js +54 -0
  291. package/app/buyer-core/errors.js.map +1 -0
  292. package/app/buyer-core/merchant-index.d.ts +118 -0
  293. package/app/buyer-core/merchant-index.js +481 -0
  294. package/app/buyer-core/merchant-index.js.map +1 -0
  295. package/app/buyer-core/negotiator.d.ts +41 -0
  296. package/app/buyer-core/negotiator.js +192 -0
  297. package/app/buyer-core/negotiator.js.map +1 -0
  298. package/app/buyer-core/network-search.d.ts +92 -0
  299. package/app/buyer-core/network-search.js +144 -0
  300. package/app/buyer-core/network-search.js.map +1 -0
  301. package/app/buyer-core/product-summary.d.ts +71 -0
  302. package/app/buyer-core/product-summary.js +63 -0
  303. package/app/buyer-core/product-summary.js.map +1 -0
  304. package/app/buyer-core/quote-fetcher.d.ts +46 -0
  305. package/app/buyer-core/quote-fetcher.js +167 -0
  306. package/app/buyer-core/quote-fetcher.js.map +1 -0
  307. package/app/buyer-core/service.d.ts +359 -0
  308. package/app/buyer-core/service.js +700 -0
  309. package/app/buyer-core/service.js.map +1 -0
  310. package/app/buyer-core/store.d.ts +84 -0
  311. package/app/buyer-core/store.js +256 -0
  312. package/app/buyer-core/store.js.map +1 -0
  313. package/app/cli.d.ts +97 -0
  314. package/app/cli.js +2330 -0
  315. package/app/cli.js.map +1 -0
  316. package/app/cloud/binding/audit.d.ts +72 -0
  317. package/app/cloud/binding/audit.js +137 -0
  318. package/app/cloud/binding/audit.js.map +1 -0
  319. package/app/cloud/binding/enrollment-challenge.d.ts +37 -0
  320. package/app/cloud/binding/enrollment-challenge.js +153 -0
  321. package/app/cloud/binding/enrollment-challenge.js.map +1 -0
  322. package/app/cloud/binding/enrollment-heartbeat.d.ts +26 -0
  323. package/app/cloud/binding/enrollment-heartbeat.js +146 -0
  324. package/app/cloud/binding/enrollment-heartbeat.js.map +1 -0
  325. package/app/cloud/binding/enrollment-key-recovery.d.ts +27 -0
  326. package/app/cloud/binding/enrollment-key-recovery.js +127 -0
  327. package/app/cloud/binding/enrollment-key-recovery.js.map +1 -0
  328. package/app/cloud/binding/issuance.d.ts +76 -0
  329. package/app/cloud/binding/issuance.js +121 -0
  330. package/app/cloud/binding/issuance.js.map +1 -0
  331. package/app/cloud/binding/proofs.d.ts +110 -0
  332. package/app/cloud/binding/proofs.js +200 -0
  333. package/app/cloud/binding/proofs.js.map +1 -0
  334. package/app/cloud/binding/runtime-challenge.d.ts +48 -0
  335. package/app/cloud/binding/runtime-challenge.js +185 -0
  336. package/app/cloud/binding/runtime-challenge.js.map +1 -0
  337. package/app/cloud/bootstrap.d.ts +63 -0
  338. package/app/cloud/bootstrap.js +1161 -0
  339. package/app/cloud/bootstrap.js.map +1 -0
  340. package/app/cloud/catalog-client.d.ts +305 -0
  341. package/app/cloud/catalog-client.js +962 -0
  342. package/app/cloud/catalog-client.js.map +1 -0
  343. package/app/cloud/config.d.ts +103 -0
  344. package/app/cloud/config.js +274 -0
  345. package/app/cloud/config.js.map +1 -0
  346. package/app/cloud/http-router.d.ts +63 -0
  347. package/app/cloud/http-router.js +135 -0
  348. package/app/cloud/http-router.js.map +1 -0
  349. package/app/cloud/listing-publisher.d.ts +45 -0
  350. package/app/cloud/listing-publisher.js +244 -0
  351. package/app/cloud/listing-publisher.js.map +1 -0
  352. package/app/cloud/main.d.ts +16 -0
  353. package/app/cloud/main.js +64 -0
  354. package/app/cloud/main.js.map +1 -0
  355. package/app/cloud/merchant-connect.d.ts +47 -0
  356. package/app/cloud/merchant-connect.js +331 -0
  357. package/app/cloud/merchant-connect.js.map +1 -0
  358. package/app/cloud/merchant-identity.d.ts +14 -0
  359. package/app/cloud/merchant-identity.js +76 -0
  360. package/app/cloud/merchant-identity.js.map +1 -0
  361. package/app/cloud/onboarding/catalog-pipeline.d.ts +135 -0
  362. package/app/cloud/onboarding/catalog-pipeline.js +454 -0
  363. package/app/cloud/onboarding/catalog-pipeline.js.map +1 -0
  364. package/app/cloud/onboarding/local-fallback.d.ts +86 -0
  365. package/app/cloud/onboarding/local-fallback.js +98 -0
  366. package/app/cloud/onboarding/local-fallback.js.map +1 -0
  367. package/app/cloud/onboarding/steps.d.ts +95 -0
  368. package/app/cloud/onboarding/steps.js +175 -0
  369. package/app/cloud/onboarding/steps.js.map +1 -0
  370. package/app/cloud/onboarding/store.d.ts +136 -0
  371. package/app/cloud/onboarding/store.js +472 -0
  372. package/app/cloud/onboarding/store.js.map +1 -0
  373. package/app/cloud/onboarding/types.d.ts +132 -0
  374. package/app/cloud/onboarding/types.js +152 -0
  375. package/app/cloud/onboarding/types.js.map +1 -0
  376. package/app/cloud/product-import-tabular.d.ts +100 -0
  377. package/app/cloud/product-import-tabular.js +1073 -0
  378. package/app/cloud/product-import-tabular.js.map +1 -0
  379. package/app/cloud/product-source.d.ts +104 -0
  380. package/app/cloud/product-source.js +276 -0
  381. package/app/cloud/product-source.js.map +1 -0
  382. package/app/cloud/readiness.d.ts +49 -0
  383. package/app/cloud/readiness.js +54 -0
  384. package/app/cloud/readiness.js.map +1 -0
  385. package/app/cloud-sample/merchant.yaml +27 -0
  386. package/app/cloud-sample/products.json +22 -0
  387. package/app/commerce/data-source.d.ts +107 -0
  388. package/app/commerce/data-source.js +25 -0
  389. package/app/commerce/data-source.js.map +1 -0
  390. package/app/commerce/fake-client.d.ts +167 -0
  391. package/app/commerce/fake-client.js +549 -0
  392. package/app/commerce/fake-client.js.map +1 -0
  393. package/app/commerce/http-client.d.ts +73 -0
  394. package/app/commerce/http-client.js +288 -0
  395. package/app/commerce/http-client.js.map +1 -0
  396. package/app/commerce/shopping-cli-source.d.ts +57 -0
  397. package/app/commerce/shopping-cli-source.js +234 -0
  398. package/app/commerce/shopping-cli-source.js.map +1 -0
  399. package/app/commerce/types.d.ts +146 -0
  400. package/app/commerce/types.js +31 -0
  401. package/app/commerce/types.js.map +1 -0
  402. package/app/config/profile.d.ts +225 -0
  403. package/app/config/profile.js +654 -0
  404. package/app/config/profile.js.map +1 -0
  405. package/app/config/provider-kind.d.ts +26 -0
  406. package/app/config/provider-kind.js +19 -0
  407. package/app/config/provider-kind.js.map +1 -0
  408. package/app/contracts/cloud-contracts.d.ts +23 -0
  409. package/app/contracts/cloud-contracts.js +90 -0
  410. package/app/contracts/cloud-contracts.js.map +1 -0
  411. package/app/contracts/negotiation-schema.d.ts +28 -0
  412. package/app/contracts/negotiation-schema.js +101 -0
  413. package/app/contracts/negotiation-schema.js.map +1 -0
  414. package/app/contracts/northbound-schema.d.ts +27 -0
  415. package/app/contracts/northbound-schema.js +102 -0
  416. package/app/contracts/northbound-schema.js.map +1 -0
  417. package/app/contracts/schemas.d.ts +31 -0
  418. package/app/contracts/schemas.js +122 -0
  419. package/app/contracts/schemas.js.map +1 -0
  420. package/app/counterparty/a2a-direct/index.d.ts +57 -0
  421. package/app/counterparty/a2a-direct/index.js +378 -0
  422. package/app/counterparty/a2a-direct/index.js.map +1 -0
  423. package/app/counterparty/channel.d.ts +200 -0
  424. package/app/counterparty/channel.js +61 -0
  425. package/app/counterparty/channel.js.map +1 -0
  426. package/app/counterparty/index.d.ts +28 -0
  427. package/app/counterparty/index.js +24 -0
  428. package/app/counterparty/index.js.map +1 -0
  429. package/app/counterparty/platform-api/index.d.ts +41 -0
  430. package/app/counterparty/platform-api/index.js +65 -0
  431. package/app/counterparty/platform-api/index.js.map +1 -0
  432. package/app/counterparty/registry.d.ts +53 -0
  433. package/app/counterparty/registry.js +73 -0
  434. package/app/counterparty/registry.js.map +1 -0
  435. package/app/counterparty/shopping-cli-hosted/index.d.ts +39 -0
  436. package/app/counterparty/shopping-cli-hosted/index.js +377 -0
  437. package/app/counterparty/shopping-cli-hosted/index.js.map +1 -0
  438. package/app/demo/demo-runner.d.ts +81 -0
  439. package/app/demo/demo-runner.js +445 -0
  440. package/app/demo/demo-runner.js.map +1 -0
  441. package/app/discovery/agent-card/error.d.ts +28 -0
  442. package/app/discovery/agent-card/error.js +31 -0
  443. package/app/discovery/agent-card/error.js.map +1 -0
  444. package/app/discovery/agent-card/extensions.d.ts +20 -0
  445. package/app/discovery/agent-card/extensions.js +59 -0
  446. package/app/discovery/agent-card/extensions.js.map +1 -0
  447. package/app/discovery/agent-card/index.d.ts +29 -0
  448. package/app/discovery/agent-card/index.js +38 -0
  449. package/app/discovery/agent-card/index.js.map +1 -0
  450. package/app/discovery/agent-card/secrets.d.ts +30 -0
  451. package/app/discovery/agent-card/secrets.js +240 -0
  452. package/app/discovery/agent-card/secrets.js.map +1 -0
  453. package/app/discovery/agent-card/types.d.ts +113 -0
  454. package/app/discovery/agent-card/types.js +37 -0
  455. package/app/discovery/agent-card/types.js.map +1 -0
  456. package/app/discovery/agent-card/validate.d.ts +31 -0
  457. package/app/discovery/agent-card/validate.js +217 -0
  458. package/app/discovery/agent-card/validate.js.map +1 -0
  459. package/app/discovery/capability/error.d.ts +23 -0
  460. package/app/discovery/capability/error.js +28 -0
  461. package/app/discovery/capability/error.js.map +1 -0
  462. package/app/discovery/capability/index.d.ts +21 -0
  463. package/app/discovery/capability/index.js +21 -0
  464. package/app/discovery/capability/index.js.map +1 -0
  465. package/app/discovery/capability/intersect.d.ts +56 -0
  466. package/app/discovery/capability/intersect.js +137 -0
  467. package/app/discovery/capability/intersect.js.map +1 -0
  468. package/app/discovery/catalog-source/buyer-follows.d.ts +82 -0
  469. package/app/discovery/catalog-source/buyer-follows.js +228 -0
  470. package/app/discovery/catalog-source/buyer-follows.js.map +1 -0
  471. package/app/discovery/catalog-source/cloud-card.d.ts +184 -0
  472. package/app/discovery/catalog-source/cloud-card.js +385 -0
  473. package/app/discovery/catalog-source/cloud-card.js.map +1 -0
  474. package/app/discovery/catalog-source/cloud-hosting.d.ts +71 -0
  475. package/app/discovery/catalog-source/cloud-hosting.js +70 -0
  476. package/app/discovery/catalog-source/cloud-hosting.js.map +1 -0
  477. package/app/discovery/catalog-source/connector-identity.d.ts +75 -0
  478. package/app/discovery/catalog-source/connector-identity.js +175 -0
  479. package/app/discovery/catalog-source/connector-identity.js.map +1 -0
  480. package/app/discovery/catalog-source/errors.d.ts +42 -0
  481. package/app/discovery/catalog-source/errors.js +56 -0
  482. package/app/discovery/catalog-source/errors.js.map +1 -0
  483. package/app/discovery/catalog-source/index.d.ts +32 -0
  484. package/app/discovery/catalog-source/index.js +31 -0
  485. package/app/discovery/catalog-source/index.js.map +1 -0
  486. package/app/discovery/catalog-source/kiwi-record.d.ts +190 -0
  487. package/app/discovery/catalog-source/kiwi-record.js +72 -0
  488. package/app/discovery/catalog-source/kiwi-record.js.map +1 -0
  489. package/app/discovery/catalog-source/kiwi-schema.d.ts +33 -0
  490. package/app/discovery/catalog-source/kiwi-schema.js +106 -0
  491. package/app/discovery/catalog-source/kiwi-schema.js.map +1 -0
  492. package/app/discovery/catalog-source/kiwi-source.d.ts +38 -0
  493. package/app/discovery/catalog-source/kiwi-source.js +335 -0
  494. package/app/discovery/catalog-source/kiwi-source.js.map +1 -0
  495. package/app/discovery/catalog-source/merchant-publications.d.ts +65 -0
  496. package/app/discovery/catalog-source/merchant-publications.js +212 -0
  497. package/app/discovery/catalog-source/merchant-publications.js.map +1 -0
  498. package/app/discovery/catalog-source/register.d.ts +82 -0
  499. package/app/discovery/catalog-source/register.js +159 -0
  500. package/app/discovery/catalog-source/register.js.map +1 -0
  501. package/app/discovery/catalog-source/schema.d.ts +21 -0
  502. package/app/discovery/catalog-source/schema.js +63 -0
  503. package/app/discovery/catalog-source/schema.js.map +1 -0
  504. package/app/discovery/catalog-source/source.d.ts +47 -0
  505. package/app/discovery/catalog-source/source.js +202 -0
  506. package/app/discovery/catalog-source/source.js.map +1 -0
  507. package/app/discovery/catalog-source/types.d.ts +122 -0
  508. package/app/discovery/catalog-source/types.js +30 -0
  509. package/app/discovery/catalog-source/types.js.map +1 -0
  510. package/app/discovery/index.d.ts +25 -0
  511. package/app/discovery/index.js +25 -0
  512. package/app/discovery/index.js.map +1 -0
  513. package/app/discovery/merchant-subscriptions.d.ts +45 -0
  514. package/app/discovery/merchant-subscriptions.js +319 -0
  515. package/app/discovery/merchant-subscriptions.js.map +1 -0
  516. package/app/discovery/resolve.d.ts +230 -0
  517. package/app/discovery/resolve.js +487 -0
  518. package/app/discovery/resolve.js.map +1 -0
  519. package/app/discovery/ucp/error.d.ts +25 -0
  520. package/app/discovery/ucp/error.js +27 -0
  521. package/app/discovery/ucp/error.js.map +1 -0
  522. package/app/discovery/ucp/index.d.ts +33 -0
  523. package/app/discovery/ucp/index.js +28 -0
  524. package/app/discovery/ucp/index.js.map +1 -0
  525. package/app/discovery/ucp/intersect.d.ts +148 -0
  526. package/app/discovery/ucp/intersect.js +312 -0
  527. package/app/discovery/ucp/intersect.js.map +1 -0
  528. package/app/discovery/ucp/resolver.d.ts +69 -0
  529. package/app/discovery/ucp/resolver.js +243 -0
  530. package/app/discovery/ucp/resolver.js.map +1 -0
  531. package/app/discovery/ucp/types.d.ts +97 -0
  532. package/app/discovery/ucp/types.js +103 -0
  533. package/app/discovery/ucp/types.js.map +1 -0
  534. package/app/discovery/ucp/validate.d.ts +38 -0
  535. package/app/discovery/ucp/validate.js +232 -0
  536. package/app/discovery/ucp/validate.js.map +1 -0
  537. package/app/discovery/ucp/vendor.d.ts +60 -0
  538. package/app/discovery/ucp/vendor.js +61 -0
  539. package/app/discovery/ucp/vendor.js.map +1 -0
  540. package/app/doctor.d.ts +26 -0
  541. package/app/doctor.js +113 -0
  542. package/app/doctor.js.map +1 -0
  543. package/app/exit-codes.d.ts +26 -0
  544. package/app/exit-codes.js +27 -0
  545. package/app/exit-codes.js.map +1 -0
  546. package/app/fanout/disclosure.d.ts +138 -0
  547. package/app/fanout/disclosure.js +188 -0
  548. package/app/fanout/disclosure.js.map +1 -0
  549. package/app/fanout/index.d.ts +32 -0
  550. package/app/fanout/index.js +30 -0
  551. package/app/fanout/index.js.map +1 -0
  552. package/app/fanout/orchestrator.d.ts +155 -0
  553. package/app/fanout/orchestrator.js +442 -0
  554. package/app/fanout/orchestrator.js.map +1 -0
  555. package/app/fanout/policy.d.ts +128 -0
  556. package/app/fanout/policy.js +130 -0
  557. package/app/fanout/policy.js.map +1 -0
  558. package/app/fs/atomic-write.d.ts +18 -0
  559. package/app/fs/atomic-write.js +29 -0
  560. package/app/fs/atomic-write.js.map +1 -0
  561. package/app/handoff/acp-commerce.d.ts +58 -0
  562. package/app/handoff/acp-commerce.js +69 -0
  563. package/app/handoff/acp-commerce.js.map +1 -0
  564. package/app/handoff/authorization.d.ts +127 -0
  565. package/app/handoff/authorization.js +107 -0
  566. package/app/handoff/authorization.js.map +1 -0
  567. package/app/handoff/candidate.d.ts +94 -0
  568. package/app/handoff/candidate.js +172 -0
  569. package/app/handoff/candidate.js.map +1 -0
  570. package/app/handoff/channel.d.ts +88 -0
  571. package/app/handoff/channel.js +189 -0
  572. package/app/handoff/channel.js.map +1 -0
  573. package/app/handoff/completion.d.ts +44 -0
  574. package/app/handoff/completion.js +136 -0
  575. package/app/handoff/completion.js.map +1 -0
  576. package/app/handoff/delivery.d.ts +61 -0
  577. package/app/handoff/delivery.js +190 -0
  578. package/app/handoff/delivery.js.map +1 -0
  579. package/app/handoff/destination.d.ts +39 -0
  580. package/app/handoff/destination.js +110 -0
  581. package/app/handoff/destination.js.map +1 -0
  582. package/app/handoff/errors.d.ts +34 -0
  583. package/app/handoff/errors.js +48 -0
  584. package/app/handoff/errors.js.map +1 -0
  585. package/app/handoff/idempotency.d.ts +60 -0
  586. package/app/handoff/idempotency.js +178 -0
  587. package/app/handoff/idempotency.js.map +1 -0
  588. package/app/handoff/index.d.ts +46 -0
  589. package/app/handoff/index.js +48 -0
  590. package/app/handoff/index.js.map +1 -0
  591. package/app/handoff/ledger.d.ts +104 -0
  592. package/app/handoff/ledger.js +282 -0
  593. package/app/handoff/ledger.js.map +1 -0
  594. package/app/handoff/lifecycle.d.ts +29 -0
  595. package/app/handoff/lifecycle.js +102 -0
  596. package/app/handoff/lifecycle.js.map +1 -0
  597. package/app/handoff/metrics.d.ts +56 -0
  598. package/app/handoff/metrics.js +78 -0
  599. package/app/handoff/metrics.js.map +1 -0
  600. package/app/handoff/operator-approval.d.ts +143 -0
  601. package/app/handoff/operator-approval.js +287 -0
  602. package/app/handoff/operator-approval.js.map +1 -0
  603. package/app/handoff/order-record.d.ts +104 -0
  604. package/app/handoff/order-record.js +257 -0
  605. package/app/handoff/order-record.js.map +1 -0
  606. package/app/handoff/package.d.ts +102 -0
  607. package/app/handoff/package.js +132 -0
  608. package/app/handoff/package.js.map +1 -0
  609. package/app/handoff/transaction.d.ts +115 -0
  610. package/app/handoff/transaction.js +314 -0
  611. package/app/handoff/transaction.js.map +1 -0
  612. package/app/handoff/ucp-checkout/cart-channel.d.ts +111 -0
  613. package/app/handoff/ucp-checkout/cart-channel.js +370 -0
  614. package/app/handoff/ucp-checkout/cart-channel.js.map +1 -0
  615. package/app/handoff/ucp-checkout/cart-parse.d.ts +22 -0
  616. package/app/handoff/ucp-checkout/cart-parse.js +102 -0
  617. package/app/handoff/ucp-checkout/cart-parse.js.map +1 -0
  618. package/app/handoff/ucp-checkout/cart-types.d.ts +93 -0
  619. package/app/handoff/ucp-checkout/cart-types.js +38 -0
  620. package/app/handoff/ucp-checkout/cart-types.js.map +1 -0
  621. package/app/handoff/ucp-checkout/channel.d.ts +159 -0
  622. package/app/handoff/ucp-checkout/channel.js +641 -0
  623. package/app/handoff/ucp-checkout/channel.js.map +1 -0
  624. package/app/handoff/ucp-checkout/client.d.ts +88 -0
  625. package/app/handoff/ucp-checkout/client.js +228 -0
  626. package/app/handoff/ucp-checkout/client.js.map +1 -0
  627. package/app/handoff/ucp-checkout/endpoint.d.ts +36 -0
  628. package/app/handoff/ucp-checkout/endpoint.js +145 -0
  629. package/app/handoff/ucp-checkout/endpoint.js.map +1 -0
  630. package/app/handoff/ucp-checkout/index.d.ts +35 -0
  631. package/app/handoff/ucp-checkout/index.js +36 -0
  632. package/app/handoff/ucp-checkout/index.js.map +1 -0
  633. package/app/handoff/ucp-checkout/parse.d.ts +71 -0
  634. package/app/handoff/ucp-checkout/parse.js +349 -0
  635. package/app/handoff/ucp-checkout/parse.js.map +1 -0
  636. package/app/handoff/ucp-checkout/totals.d.ts +41 -0
  637. package/app/handoff/ucp-checkout/totals.js +36 -0
  638. package/app/handoff/ucp-checkout/totals.js.map +1 -0
  639. package/app/handoff/ucp-checkout/types.d.ts +149 -0
  640. package/app/handoff/ucp-checkout/types.js +58 -0
  641. package/app/handoff/ucp-checkout/types.js.map +1 -0
  642. package/app/handoff/url-safety.d.ts +44 -0
  643. package/app/handoff/url-safety.js +121 -0
  644. package/app/handoff/url-safety.js.map +1 -0
  645. package/app/http/cli.d.ts +16 -0
  646. package/app/http/cli.js +123 -0
  647. package/app/http/cli.js.map +1 -0
  648. package/app/http/merchant-engagement-api.d.ts +10 -0
  649. package/app/http/merchant-engagement-api.js +138 -0
  650. package/app/http/merchant-engagement-api.js.map +1 -0
  651. package/app/http/merchant-feed-api.d.ts +7 -0
  652. package/app/http/merchant-feed-api.js +129 -0
  653. package/app/http/merchant-feed-api.js.map +1 -0
  654. package/app/http/merchant-follow-api.d.ts +15 -0
  655. package/app/http/merchant-follow-api.js +192 -0
  656. package/app/http/merchant-follow-api.js.map +1 -0
  657. package/app/http/merchant-management/api.d.ts +258 -0
  658. package/app/http/merchant-management/api.js +3022 -0
  659. package/app/http/merchant-management/api.js.map +1 -0
  660. package/app/http/merchant-management/draft-store.d.ts +51 -0
  661. package/app/http/merchant-management/draft-store.js +95 -0
  662. package/app/http/merchant-management/draft-store.js.map +1 -0
  663. package/app/http/merchant-management/event-projection.d.ts +41 -0
  664. package/app/http/merchant-management/event-projection.js +190 -0
  665. package/app/http/merchant-management/event-projection.js.map +1 -0
  666. package/app/http/merchant-management/operation-store.d.ts +97 -0
  667. package/app/http/merchant-management/operation-store.js +252 -0
  668. package/app/http/merchant-management/operation-store.js.map +1 -0
  669. package/app/http/merchant-management/page.d.ts +29 -0
  670. package/app/http/merchant-management/page.js +641 -0
  671. package/app/http/merchant-management/page.js.map +1 -0
  672. package/app/http/merchant-management/problem-client.d.ts +19 -0
  673. package/app/http/merchant-management/problem-client.js +55 -0
  674. package/app/http/merchant-management/problem-client.js.map +1 -0
  675. package/app/http/merchant-management/problem.d.ts +74 -0
  676. package/app/http/merchant-management/problem.js +112 -0
  677. package/app/http/merchant-management/problem.js.map +1 -0
  678. package/app/http/merchant-management/reconciliation-worker.d.ts +95 -0
  679. package/app/http/merchant-management/reconciliation-worker.js +397 -0
  680. package/app/http/merchant-management/reconciliation-worker.js.map +1 -0
  681. package/app/http/merchant-management/service-state.d.ts +86 -0
  682. package/app/http/merchant-management/service-state.js +217 -0
  683. package/app/http/merchant-management/service-state.js.map +1 -0
  684. package/app/http/merchant-management/trusted-page.d.ts +3 -0
  685. package/app/http/merchant-management/trusted-page.js +73 -0
  686. package/app/http/merchant-management/trusted-page.js.map +1 -0
  687. package/app/http/merchant-management/webauthn-confirmation.d.ts +148 -0
  688. package/app/http/merchant-management/webauthn-confirmation.js +517 -0
  689. package/app/http/merchant-management/webauthn-confirmation.js.map +1 -0
  690. package/app/http/merchant-privacy-api.d.ts +9 -0
  691. package/app/http/merchant-privacy-api.js +96 -0
  692. package/app/http/merchant-privacy-api.js.map +1 -0
  693. package/app/http/merchant-server.d.ts +65 -0
  694. package/app/http/merchant-server.js +346 -0
  695. package/app/http/merchant-server.js.map +1 -0
  696. package/app/http/server.d.ts +39 -0
  697. package/app/http/server.js +300 -0
  698. package/app/http/server.js.map +1 -0
  699. package/app/i18n.d.ts +24 -0
  700. package/app/i18n.js +27 -0
  701. package/app/i18n.js.map +1 -0
  702. package/app/mcp/cli.d.ts +72 -0
  703. package/app/mcp/cli.js +153 -0
  704. package/app/mcp/cli.js.map +1 -0
  705. package/app/mcp/merchant-auth.d.ts +78 -0
  706. package/app/mcp/merchant-auth.js +146 -0
  707. package/app/mcp/merchant-auth.js.map +1 -0
  708. package/app/mcp/merchant-dirs.d.ts +26 -0
  709. package/app/mcp/merchant-dirs.js +44 -0
  710. package/app/mcp/merchant-dirs.js.map +1 -0
  711. package/app/mcp/merchant-resources.d.ts +38 -0
  712. package/app/mcp/merchant-resources.js +146 -0
  713. package/app/mcp/merchant-resources.js.map +1 -0
  714. package/app/mcp/merchant-rfq-resources.d.ts +37 -0
  715. package/app/mcp/merchant-rfq-resources.js +132 -0
  716. package/app/mcp/merchant-rfq-resources.js.map +1 -0
  717. package/app/mcp/merchant-rfq-tools.d.ts +61 -0
  718. package/app/mcp/merchant-rfq-tools.js +584 -0
  719. package/app/mcp/merchant-rfq-tools.js.map +1 -0
  720. package/app/mcp/merchant-runtime-assembly.d.ts +74 -0
  721. package/app/mcp/merchant-runtime-assembly.js +476 -0
  722. package/app/mcp/merchant-runtime-assembly.js.map +1 -0
  723. package/app/mcp/merchant-server.d.ts +171 -0
  724. package/app/mcp/merchant-server.js +852 -0
  725. package/app/mcp/merchant-server.js.map +1 -0
  726. package/app/mcp/merchant-tools.d.ts +103 -0
  727. package/app/mcp/merchant-tools.js +517 -0
  728. package/app/mcp/merchant-tools.js.map +1 -0
  729. package/app/mcp/server.d.ts +41 -0
  730. package/app/mcp/server.js +142 -0
  731. package/app/mcp/server.js.map +1 -0
  732. package/app/mcp/tools.d.ts +30 -0
  733. package/app/mcp/tools.js +426 -0
  734. package/app/mcp/tools.js.map +1 -0
  735. package/app/mcp/types.d.ts +107 -0
  736. package/app/mcp/types.js +56 -0
  737. package/app/mcp/types.js.map +1 -0
  738. package/app/merchant/application/actor.d.ts +85 -0
  739. package/app/merchant/application/actor.js +162 -0
  740. package/app/merchant/application/actor.js.map +1 -0
  741. package/app/merchant/application/money.d.ts +35 -0
  742. package/app/merchant/application/money.js +124 -0
  743. package/app/merchant/application/money.js.map +1 -0
  744. package/app/merchant/application/service.d.ts +228 -0
  745. package/app/merchant/application/service.js +262 -0
  746. package/app/merchant/application/service.js.map +1 -0
  747. package/app/merchant/clock-safety.d.ts +50 -0
  748. package/app/merchant/clock-safety.js +153 -0
  749. package/app/merchant/clock-safety.js.map +1 -0
  750. package/app/merchant/decision-backend.d.ts +82 -0
  751. package/app/merchant/decision-backend.js +272 -0
  752. package/app/merchant/decision-backend.js.map +1 -0
  753. package/app/merchant/engagement-store.d.ts +32 -0
  754. package/app/merchant/engagement-store.js +119 -0
  755. package/app/merchant/engagement-store.js.map +1 -0
  756. package/app/merchant/exact-product-executors.d.ts +11 -0
  757. package/app/merchant/exact-product-executors.js +132 -0
  758. package/app/merchant/exact-product-executors.js.map +1 -0
  759. package/app/merchant/feed-executors.d.ts +17 -0
  760. package/app/merchant/feed-executors.js +151 -0
  761. package/app/merchant/feed-executors.js.map +1 -0
  762. package/app/merchant/feed-store.d.ts +141 -0
  763. package/app/merchant/feed-store.js +496 -0
  764. package/app/merchant/feed-store.js.map +1 -0
  765. package/app/merchant/follow-store.d.ts +66 -0
  766. package/app/merchant/follow-store.js +295 -0
  767. package/app/merchant/follow-store.js.map +1 -0
  768. package/app/merchant/grant-executors.d.ts +11 -0
  769. package/app/merchant/grant-executors.js +136 -0
  770. package/app/merchant/grant-executors.js.map +1 -0
  771. package/app/merchant/grant-store.d.ts +125 -0
  772. package/app/merchant/grant-store.js +313 -0
  773. package/app/merchant/grant-store.js.map +1 -0
  774. package/app/merchant/inventory-executors.d.ts +47 -0
  775. package/app/merchant/inventory-executors.js +91 -0
  776. package/app/merchant/inventory-executors.js.map +1 -0
  777. package/app/merchant/listing-executors.d.ts +51 -0
  778. package/app/merchant/listing-executors.js +100 -0
  779. package/app/merchant/listing-executors.js.map +1 -0
  780. package/app/merchant/negotiation-observer.d.ts +92 -0
  781. package/app/merchant/negotiation-observer.js +278 -0
  782. package/app/merchant/negotiation-observer.js.map +1 -0
  783. package/app/merchant/operation-receipts.d.ts +57 -0
  784. package/app/merchant/operation-receipts.js +138 -0
  785. package/app/merchant/operation-receipts.js.map +1 -0
  786. package/app/merchant/operations-report.d.ts +85 -0
  787. package/app/merchant/operations-report.js +227 -0
  788. package/app/merchant/operations-report.js.map +1 -0
  789. package/app/merchant/ops.d.ts +69 -0
  790. package/app/merchant/ops.js +87 -0
  791. package/app/merchant/ops.js.map +1 -0
  792. package/app/merchant/promotion-broadcast-recovery.d.ts +22 -0
  793. package/app/merchant/promotion-broadcast-recovery.js +74 -0
  794. package/app/merchant/promotion-broadcast-recovery.js.map +1 -0
  795. package/app/merchant/promotion-broadcast-workflow.d.ts +42 -0
  796. package/app/merchant/promotion-broadcast-workflow.js +171 -0
  797. package/app/merchant/promotion-broadcast-workflow.js.map +1 -0
  798. package/app/merchant/promotion-executors.d.ts +18 -0
  799. package/app/merchant/promotion-executors.js +133 -0
  800. package/app/merchant/promotion-executors.js.map +1 -0
  801. package/app/merchant/promotion-store.d.ts +114 -0
  802. package/app/merchant/promotion-store.js +325 -0
  803. package/app/merchant/promotion-store.js.map +1 -0
  804. package/app/merchant/promotion-time.d.ts +19 -0
  805. package/app/merchant/promotion-time.js +162 -0
  806. package/app/merchant/promotion-time.js.map +1 -0
  807. package/app/merchant/quote-calculator.d.ts +32 -0
  808. package/app/merchant/quote-calculator.js +70 -0
  809. package/app/merchant/quote-calculator.js.map +1 -0
  810. package/app/merchant/service-control-executors.d.ts +15 -0
  811. package/app/merchant/service-control-executors.js +52 -0
  812. package/app/merchant/service-control-executors.js.map +1 -0
  813. package/app/merchant/stats-store.d.ts +86 -0
  814. package/app/merchant/stats-store.js +176 -0
  815. package/app/merchant/stats-store.js.map +1 -0
  816. package/app/merchant/ucp-profile.d.ts +39 -0
  817. package/app/merchant/ucp-profile.js +55 -0
  818. package/app/merchant/ucp-profile.js.map +1 -0
  819. package/app/merchant/workbench-service.d.ts +190 -0
  820. package/app/merchant/workbench-service.js +427 -0
  821. package/app/merchant/workbench-service.js.map +1 -0
  822. package/app/merchant-admin/pending-page.d.ts +139 -0
  823. package/app/merchant-admin/pending-page.js +89 -0
  824. package/app/merchant-admin/pending-page.js.map +1 -0
  825. package/app/merchant-admin/rfq-page.d.ts +105 -0
  826. package/app/merchant-admin/rfq-page.js +176 -0
  827. package/app/merchant-admin/rfq-page.js.map +1 -0
  828. package/app/merchant-core/commands.d.ts +126 -0
  829. package/app/merchant-core/commands.js +268 -0
  830. package/app/merchant-core/commands.js.map +1 -0
  831. package/app/merchant-core/executor.d.ts +93 -0
  832. package/app/merchant-core/executor.js +227 -0
  833. package/app/merchant-core/executor.js.map +1 -0
  834. package/app/merchant-core/negotiation-adapters.d.ts +55 -0
  835. package/app/merchant-core/negotiation-adapters.js +55 -0
  836. package/app/merchant-core/negotiation-adapters.js.map +1 -0
  837. package/app/merchant-core/network-checks.d.ts +65 -0
  838. package/app/merchant-core/network-checks.js +111 -0
  839. package/app/merchant-core/network-checks.js.map +1 -0
  840. package/app/merchant-core/operations.d.ts +64 -0
  841. package/app/merchant-core/operations.js +136 -0
  842. package/app/merchant-core/operations.js.map +1 -0
  843. package/app/merchant-core/policy-runtime.d.ts +70 -0
  844. package/app/merchant-core/policy-runtime.js +181 -0
  845. package/app/merchant-core/policy-runtime.js.map +1 -0
  846. package/app/merchant-core/product-import.d.ts +67 -0
  847. package/app/merchant-core/product-import.js +160 -0
  848. package/app/merchant-core/product-import.js.map +1 -0
  849. package/app/merchant-core/rfq/artifacts.d.ts +78 -0
  850. package/app/merchant-core/rfq/artifacts.js +219 -0
  851. package/app/merchant-core/rfq/artifacts.js.map +1 -0
  852. package/app/merchant-core/rfq/data-source-adapter.d.ts +49 -0
  853. package/app/merchant-core/rfq/data-source-adapter.js +128 -0
  854. package/app/merchant-core/rfq/data-source-adapter.js.map +1 -0
  855. package/app/merchant-core/rfq/delivery.d.ts +43 -0
  856. package/app/merchant-core/rfq/delivery.js +57 -0
  857. package/app/merchant-core/rfq/delivery.js.map +1 -0
  858. package/app/merchant-core/rfq/fact-resolver.d.ts +76 -0
  859. package/app/merchant-core/rfq/fact-resolver.js +220 -0
  860. package/app/merchant-core/rfq/fact-resolver.js.map +1 -0
  861. package/app/merchant-core/rfq/handoff.d.ts +54 -0
  862. package/app/merchant-core/rfq/handoff.js +71 -0
  863. package/app/merchant-core/rfq/handoff.js.map +1 -0
  864. package/app/merchant-core/rfq/policy.d.ts +77 -0
  865. package/app/merchant-core/rfq/policy.js +104 -0
  866. package/app/merchant-core/rfq/policy.js.map +1 -0
  867. package/app/merchant-core/rfq/pricing.d.ts +48 -0
  868. package/app/merchant-core/rfq/pricing.js +150 -0
  869. package/app/merchant-core/rfq/pricing.js.map +1 -0
  870. package/app/merchant-core/rfq/quote-revisions.d.ts +52 -0
  871. package/app/merchant-core/rfq/quote-revisions.js +126 -0
  872. package/app/merchant-core/rfq/quote-revisions.js.map +1 -0
  873. package/app/merchant-core/rfq/release-coordinator.d.ts +99 -0
  874. package/app/merchant-core/rfq/release-coordinator.js +355 -0
  875. package/app/merchant-core/rfq/release-coordinator.js.map +1 -0
  876. package/app/merchant-core/rfq/repository.d.ts +398 -0
  877. package/app/merchant-core/rfq/repository.js +855 -0
  878. package/app/merchant-core/rfq/repository.js.map +1 -0
  879. package/app/merchant-core/rfq/service.d.ts +398 -0
  880. package/app/merchant-core/rfq/service.js +1036 -0
  881. package/app/merchant-core/rfq/service.js.map +1 -0
  882. package/app/merchant-core/rfq/source-records.d.ts +97 -0
  883. package/app/merchant-core/rfq/source-records.js +349 -0
  884. package/app/merchant-core/rfq/source-records.js.map +1 -0
  885. package/app/merchant-core/rfq/types.d.ts +197 -0
  886. package/app/merchant-core/rfq/types.js +110 -0
  887. package/app/merchant-core/rfq/types.js.map +1 -0
  888. package/app/merchant-core/service.d.ts +320 -0
  889. package/app/merchant-core/service.js +597 -0
  890. package/app/merchant-core/service.js.map +1 -0
  891. package/app/merchant-core/storage/clock-skew-alerts.d.ts +21 -0
  892. package/app/merchant-core/storage/clock-skew-alerts.js +67 -0
  893. package/app/merchant-core/storage/clock-skew-alerts.js.map +1 -0
  894. package/app/merchant-core/storage/leased-job.d.ts +42 -0
  895. package/app/merchant-core/storage/leased-job.js +38 -0
  896. package/app/merchant-core/storage/leased-job.js.map +1 -0
  897. package/app/merchant-core/storage/operation-lifecycle.d.ts +78 -0
  898. package/app/merchant-core/storage/operation-lifecycle.js +111 -0
  899. package/app/merchant-core/storage/operation-lifecycle.js.map +1 -0
  900. package/app/merchant-core/storage/redact.d.ts +29 -0
  901. package/app/merchant-core/storage/redact.js +34 -0
  902. package/app/merchant-core/storage/redact.js.map +1 -0
  903. package/app/merchant-core/storage/schema.d.ts +24 -0
  904. package/app/merchant-core/storage/schema.js +22 -0
  905. package/app/merchant-core/storage/schema.js.map +1 -0
  906. package/app/merchant-core/storage/transaction.d.ts +47 -0
  907. package/app/merchant-core/storage/transaction.js +28 -0
  908. package/app/merchant-core/storage/transaction.js.map +1 -0
  909. package/app/merchant-gateway/catalog-publications.d.ts +124 -0
  910. package/app/merchant-gateway/catalog-publications.js +281 -0
  911. package/app/merchant-gateway/catalog-publications.js.map +1 -0
  912. package/app/merchant-gateway/catalog-tools.d.ts +46 -0
  913. package/app/merchant-gateway/catalog-tools.js +335 -0
  914. package/app/merchant-gateway/catalog-tools.js.map +1 -0
  915. package/app/merchant-gateway/cli.d.ts +75 -0
  916. package/app/merchant-gateway/cli.js +461 -0
  917. package/app/merchant-gateway/cli.js.map +1 -0
  918. package/app/merchant-gateway/credential-vault.d.ts +44 -0
  919. package/app/merchant-gateway/credential-vault.js +111 -0
  920. package/app/merchant-gateway/credential-vault.js.map +1 -0
  921. package/app/merchant-gateway/entry-server.d.ts +117 -0
  922. package/app/merchant-gateway/entry-server.js +757 -0
  923. package/app/merchant-gateway/entry-server.js.map +1 -0
  924. package/app/merchant-gateway/instance-registration.d.ts +144 -0
  925. package/app/merchant-gateway/instance-registration.js +391 -0
  926. package/app/merchant-gateway/instance-registration.js.map +1 -0
  927. package/app/merchant-gateway/instance-tools.d.ts +58 -0
  928. package/app/merchant-gateway/instance-tools.js +186 -0
  929. package/app/merchant-gateway/instance-tools.js.map +1 -0
  930. package/app/merchant-gateway/mcp-proxy.d.ts +25 -0
  931. package/app/merchant-gateway/mcp-proxy.js +192 -0
  932. package/app/merchant-gateway/mcp-proxy.js.map +1 -0
  933. package/app/merchant-gateway/pinned-fetch.d.ts +54 -0
  934. package/app/merchant-gateway/pinned-fetch.js +231 -0
  935. package/app/merchant-gateway/pinned-fetch.js.map +1 -0
  936. package/app/merchant-gateway/tenant-registry.d.ts +82 -0
  937. package/app/merchant-gateway/tenant-registry.js +190 -0
  938. package/app/merchant-gateway/tenant-registry.js.map +1 -0
  939. package/app/merchant-gateway/tool-bundle.d.ts +26 -0
  940. package/app/merchant-gateway/tool-bundle.js +56 -0
  941. package/app/merchant-gateway/tool-bundle.js.map +1 -0
  942. package/app/merchant-runtime/backup.d.ts +48 -0
  943. package/app/merchant-runtime/backup.js +226 -0
  944. package/app/merchant-runtime/backup.js.map +1 -0
  945. package/app/merchant-runtime/health.d.ts +99 -0
  946. package/app/merchant-runtime/health.js +206 -0
  947. package/app/merchant-runtime/health.js.map +1 -0
  948. package/app/merchant-runtime/jobs.d.ts +64 -0
  949. package/app/merchant-runtime/jobs.js +107 -0
  950. package/app/merchant-runtime/jobs.js.map +1 -0
  951. package/app/merchant-runtime/manager.d.ts +94 -0
  952. package/app/merchant-runtime/manager.js +305 -0
  953. package/app/merchant-runtime/manager.js.map +1 -0
  954. package/app/merchant-runtime/services.d.ts +30 -0
  955. package/app/merchant-runtime/services.js +51 -0
  956. package/app/merchant-runtime/services.js.map +1 -0
  957. package/app/negotiation/action-candidate.d.ts +97 -0
  958. package/app/negotiation/action-candidate.js +160 -0
  959. package/app/negotiation/action-candidate.js.map +1 -0
  960. package/app/negotiation/condition/evaluator.d.ts +36 -0
  961. package/app/negotiation/condition/evaluator.js +123 -0
  962. package/app/negotiation/condition/evaluator.js.map +1 -0
  963. package/app/negotiation/context-map/index.d.ts +23 -0
  964. package/app/negotiation/context-map/index.js +22 -0
  965. package/app/negotiation/context-map/index.js.map +1 -0
  966. package/app/negotiation/context-map/store.d.ts +51 -0
  967. package/app/negotiation/context-map/store.js +186 -0
  968. package/app/negotiation/context-map/store.js.map +1 -0
  969. package/app/negotiation/context-map/types.d.ts +29 -0
  970. package/app/negotiation/context-map/types.js +57 -0
  971. package/app/negotiation/context-map/types.js.map +1 -0
  972. package/app/negotiation/domain/common.d.ts +95 -0
  973. package/app/negotiation/domain/common.js +216 -0
  974. package/app/negotiation/domain/common.js.map +1 -0
  975. package/app/negotiation/domain/envelope.d.ts +55 -0
  976. package/app/negotiation/domain/envelope.js +110 -0
  977. package/app/negotiation/domain/envelope.js.map +1 -0
  978. package/app/negotiation/domain/identifiers.d.ts +65 -0
  979. package/app/negotiation/domain/identifiers.js +130 -0
  980. package/app/negotiation/domain/identifiers.js.map +1 -0
  981. package/app/negotiation/domain/objects.d.ts +156 -0
  982. package/app/negotiation/domain/objects.js +343 -0
  983. package/app/negotiation/domain/objects.js.map +1 -0
  984. package/app/negotiation/idempotency/index.d.ts +26 -0
  985. package/app/negotiation/idempotency/index.js +25 -0
  986. package/app/negotiation/idempotency/index.js.map +1 -0
  987. package/app/negotiation/idempotency/store.d.ts +75 -0
  988. package/app/negotiation/idempotency/store.js +260 -0
  989. package/app/negotiation/idempotency/store.js.map +1 -0
  990. package/app/negotiation/idempotency/types.d.ts +118 -0
  991. package/app/negotiation/idempotency/types.js +49 -0
  992. package/app/negotiation/idempotency/types.js.map +1 -0
  993. package/app/negotiation/jcs.d.ts +21 -0
  994. package/app/negotiation/jcs.js +117 -0
  995. package/app/negotiation/jcs.js.map +1 -0
  996. package/app/negotiation/lease/store.d.ts +21 -0
  997. package/app/negotiation/lease/store.js +175 -0
  998. package/app/negotiation/lease/store.js.map +1 -0
  999. package/app/negotiation/ledger/event.d.ts +148 -0
  1000. package/app/negotiation/ledger/event.js +207 -0
  1001. package/app/negotiation/ledger/event.js.map +1 -0
  1002. package/app/negotiation/ledger/index.d.ts +28 -0
  1003. package/app/negotiation/ledger/index.js +26 -0
  1004. package/app/negotiation/ledger/index.js.map +1 -0
  1005. package/app/negotiation/ledger/payload-segments.d.ts +51 -0
  1006. package/app/negotiation/ledger/payload-segments.js +247 -0
  1007. package/app/negotiation/ledger/payload-segments.js.map +1 -0
  1008. package/app/negotiation/ledger/store.d.ts +131 -0
  1009. package/app/negotiation/ledger/store.js +500 -0
  1010. package/app/negotiation/ledger/store.js.map +1 -0
  1011. package/app/negotiation/prompt.d.ts +34 -0
  1012. package/app/negotiation/prompt.js +113 -0
  1013. package/app/negotiation/prompt.js.map +1 -0
  1014. package/app/negotiation/recovery/index.d.ts +26 -0
  1015. package/app/negotiation/recovery/index.js +24 -0
  1016. package/app/negotiation/recovery/index.js.map +1 -0
  1017. package/app/negotiation/recovery/outbound.d.ts +49 -0
  1018. package/app/negotiation/recovery/outbound.js +34 -0
  1019. package/app/negotiation/recovery/outbound.js.map +1 -0
  1020. package/app/negotiation/recovery/recover.d.ts +59 -0
  1021. package/app/negotiation/recovery/recover.js +510 -0
  1022. package/app/negotiation/recovery/recover.js.map +1 -0
  1023. package/app/negotiation/recovery/types.d.ts +85 -0
  1024. package/app/negotiation/recovery/types.js +17 -0
  1025. package/app/negotiation/recovery/types.js.map +1 -0
  1026. package/app/negotiation/state/phase.d.ts +70 -0
  1027. package/app/negotiation/state/phase.js +220 -0
  1028. package/app/negotiation/state/phase.js.map +1 -0
  1029. package/app/negotiation/types.d.ts +139 -0
  1030. package/app/negotiation/types.js +24 -0
  1031. package/app/negotiation/types.js.map +1 -0
  1032. package/app/net/safe-http.d.ts +54 -0
  1033. package/app/net/safe-http.js +124 -0
  1034. package/app/net/safe-http.js.map +1 -0
  1035. package/app/net/url.d.ts +26 -0
  1036. package/app/net/url.js +32 -0
  1037. package/app/net/url.js.map +1 -0
  1038. package/app/operator/controller.d.ts +184 -0
  1039. package/app/operator/controller.js +797 -0
  1040. package/app/operator/controller.js.map +1 -0
  1041. package/app/operator/runner.d.ts +139 -0
  1042. package/app/operator/runner.js +267 -0
  1043. package/app/operator/runner.js.map +1 -0
  1044. package/app/operator/store.d.ts +39 -0
  1045. package/app/operator/store.js +169 -0
  1046. package/app/operator/store.js.map +1 -0
  1047. package/app/operator/strategy.d.ts +54 -0
  1048. package/app/operator/strategy.js +249 -0
  1049. package/app/operator/strategy.js.map +1 -0
  1050. package/app/operator/tui.d.ts +27 -0
  1051. package/app/operator/tui.js +395 -0
  1052. package/app/operator/tui.js.map +1 -0
  1053. package/app/operator/types.d.ts +224 -0
  1054. package/app/operator/types.js +17 -0
  1055. package/app/operator/types.js.map +1 -0
  1056. package/app/privacy/ledger-payload-deletion.d.ts +10 -0
  1057. package/app/privacy/ledger-payload-deletion.js +31 -0
  1058. package/app/privacy/ledger-payload-deletion.js.map +1 -0
  1059. package/app/privacy/local-backup-deletion.d.ts +13 -0
  1060. package/app/privacy/local-backup-deletion.js +115 -0
  1061. package/app/privacy/local-backup-deletion.js.map +1 -0
  1062. package/app/privacy/workbench-retention.d.ts +105 -0
  1063. package/app/privacy/workbench-retention.js +501 -0
  1064. package/app/privacy/workbench-retention.js.map +1 -0
  1065. package/app/product-buyer.d.ts +79 -0
  1066. package/app/product-buyer.js +165 -0
  1067. package/app/product-buyer.js.map +1 -0
  1068. package/app/product-catalog.d.ts +43 -0
  1069. package/app/product-catalog.js +60 -0
  1070. package/app/product-catalog.js.map +1 -0
  1071. package/app/product-cli.d.ts +70 -0
  1072. package/app/product-cli.js +259 -0
  1073. package/app/product-cli.js.map +1 -0
  1074. package/app/product-compat.d.ts +58 -0
  1075. package/app/product-compat.js +74 -0
  1076. package/app/product-compat.js.map +1 -0
  1077. package/app/product-init.d.ts +102 -0
  1078. package/app/product-init.js +294 -0
  1079. package/app/product-init.js.map +1 -0
  1080. package/app/product-merchant.d.ts +43 -0
  1081. package/app/product-merchant.js +75 -0
  1082. package/app/product-merchant.js.map +1 -0
  1083. package/app/product-publish.d.ts +89 -0
  1084. package/app/product-publish.js +538 -0
  1085. package/app/product-publish.js.map +1 -0
  1086. package/app/product-setup-public.d.ts +51 -0
  1087. package/app/product-setup-public.js +165 -0
  1088. package/app/product-setup-public.js.map +1 -0
  1089. package/app/product-supplier.d.ts +148 -0
  1090. package/app/product-supplier.js +452 -0
  1091. package/app/product-supplier.js.map +1 -0
  1092. package/app/protocol/legacy-shopping-negotiation/adapter.d.ts +42 -0
  1093. package/app/protocol/legacy-shopping-negotiation/adapter.js +561 -0
  1094. package/app/protocol/legacy-shopping-negotiation/adapter.js.map +1 -0
  1095. package/app/protocol/legacy-shopping-negotiation/mapping.d.ts +78 -0
  1096. package/app/protocol/legacy-shopping-negotiation/mapping.js +321 -0
  1097. package/app/protocol/legacy-shopping-negotiation/mapping.js.map +1 -0
  1098. package/app/protocol/legacy-shopping-negotiation/money.d.ts +49 -0
  1099. package/app/protocol/legacy-shopping-negotiation/money.js +70 -0
  1100. package/app/protocol/legacy-shopping-negotiation/money.js.map +1 -0
  1101. package/app/protocol/legacy-shopping-negotiation/types.d.ts +107 -0
  1102. package/app/protocol/legacy-shopping-negotiation/types.js +34 -0
  1103. package/app/protocol/legacy-shopping-negotiation/types.js.map +1 -0
  1104. package/app/runtime/buyer-policy.d.ts +58 -0
  1105. package/app/runtime/buyer-policy.js +89 -0
  1106. package/app/runtime/buyer-policy.js.map +1 -0
  1107. package/app/runtime/fake-model.d.ts +77 -0
  1108. package/app/runtime/fake-model.js +313 -0
  1109. package/app/runtime/fake-model.js.map +1 -0
  1110. package/app/runtime/foreground.d.ts +56 -0
  1111. package/app/runtime/foreground.js +97 -0
  1112. package/app/runtime/foreground.js.map +1 -0
  1113. package/app/runtime/heartbeat.d.ts +36 -0
  1114. package/app/runtime/heartbeat.js +49 -0
  1115. package/app/runtime/heartbeat.js.map +1 -0
  1116. package/app/runtime/merchant-turn.d.ts +35 -0
  1117. package/app/runtime/merchant-turn.js +20 -0
  1118. package/app/runtime/merchant-turn.js.map +1 -0
  1119. package/app/runtime/model.d.ts +40 -0
  1120. package/app/runtime/model.js +86 -0
  1121. package/app/runtime/model.js.map +1 -0
  1122. package/app/runtime/negotiation-turn.d.ts +101 -0
  1123. package/app/runtime/negotiation-turn.js +317 -0
  1124. package/app/runtime/negotiation-turn.js.map +1 -0
  1125. package/app/runtime/tools.d.ts +64 -0
  1126. package/app/runtime/tools.js +236 -0
  1127. package/app/runtime/tools.js.map +1 -0
  1128. package/app/supervisor/init.d.ts +31 -0
  1129. package/app/supervisor/init.js +222 -0
  1130. package/app/supervisor/init.js.map +1 -0
  1131. package/app/supervisor/logs.d.ts +28 -0
  1132. package/app/supervisor/logs.js +101 -0
  1133. package/app/supervisor/logs.js.map +1 -0
  1134. package/app/supervisor/manage.d.ts +76 -0
  1135. package/app/supervisor/manage.js +510 -0
  1136. package/app/supervisor/manage.js.map +1 -0
  1137. package/app/supervisor/manifest.d.ts +69 -0
  1138. package/app/supervisor/manifest.js +209 -0
  1139. package/app/supervisor/manifest.js.map +1 -0
  1140. package/app/supervisor/stack-config.d.ts +84 -0
  1141. package/app/supervisor/stack-config.js +270 -0
  1142. package/app/supervisor/stack-config.js.map +1 -0
  1143. package/app/supervisor/wrapper.d.ts +17 -0
  1144. package/app/supervisor/wrapper.js +138 -0
  1145. package/app/supervisor/wrapper.js.map +1 -0
  1146. package/app/trust/binding/claims.d.ts +92 -0
  1147. package/app/trust/binding/claims.js +175 -0
  1148. package/app/trust/binding/claims.js.map +1 -0
  1149. package/app/trust/binding/thumbprint.d.ts +35 -0
  1150. package/app/trust/binding/thumbprint.js +88 -0
  1151. package/app/trust/binding/thumbprint.js.map +1 -0
  1152. package/app/trust/binding/verify.d.ts +84 -0
  1153. package/app/trust/binding/verify.js +121 -0
  1154. package/app/trust/binding/verify.js.map +1 -0
  1155. package/app/trust/identity/auth-verifier.d.ts +115 -0
  1156. package/app/trust/identity/auth-verifier.js +216 -0
  1157. package/app/trust/identity/auth-verifier.js.map +1 -0
  1158. package/app/trust/identity/identity-binding.d.ts +63 -0
  1159. package/app/trust/identity/identity-binding.js +59 -0
  1160. package/app/trust/identity/identity-binding.js.map +1 -0
  1161. package/app/trust/identity/index.d.ts +38 -0
  1162. package/app/trust/identity/index.js +31 -0
  1163. package/app/trust/identity/index.js.map +1 -0
  1164. package/app/trust/identity/jwk.d.ts +11 -0
  1165. package/app/trust/identity/jwk.js +2 -0
  1166. package/app/trust/identity/jwk.js.map +1 -0
  1167. package/app/trust/identity/jws.d.ts +86 -0
  1168. package/app/trust/identity/jws.js +207 -0
  1169. package/app/trust/identity/jws.js.map +1 -0
  1170. package/app/trust/identity/keys.d.ts +72 -0
  1171. package/app/trust/identity/keys.js +118 -0
  1172. package/app/trust/identity/keys.js.map +1 -0
  1173. package/app/trust/identity/message-signature.d.ts +92 -0
  1174. package/app/trust/identity/message-signature.js +320 -0
  1175. package/app/trust/identity/message-signature.js.map +1 -0
  1176. package/app/trust/identity/nonce.d.ts +45 -0
  1177. package/app/trust/identity/nonce.js +50 -0
  1178. package/app/trust/identity/nonce.js.map +1 -0
  1179. package/app/trust/identity/signature-base.d.ts +84 -0
  1180. package/app/trust/identity/signature-base.js +261 -0
  1181. package/app/trust/identity/signature-base.js.map +1 -0
  1182. package/app/trust/identity/trust-policy.d.ts +92 -0
  1183. package/app/trust/identity/trust-policy.js +95 -0
  1184. package/app/trust/identity/trust-policy.js.map +1 -0
  1185. package/app/trust/index.d.ts +21 -0
  1186. package/app/trust/index.js +22 -0
  1187. package/app/trust/index.js.map +1 -0
  1188. package/app/trust/records/evaluator.d.ts +76 -0
  1189. package/app/trust/records/evaluator.js +122 -0
  1190. package/app/trust/records/evaluator.js.map +1 -0
  1191. package/app/trust/records/index.d.ts +28 -0
  1192. package/app/trust/records/index.js +26 -0
  1193. package/app/trust/records/index.js.map +1 -0
  1194. package/app/trust/records/store.d.ts +75 -0
  1195. package/app/trust/records/store.js +339 -0
  1196. package/app/trust/records/store.js.map +1 -0
  1197. package/app/trust/records/types.d.ts +159 -0
  1198. package/app/trust/records/types.js +40 -0
  1199. package/app/trust/records/types.js.map +1 -0
  1200. package/app/tui/banner.d.ts +46 -0
  1201. package/app/tui/banner.js +99 -0
  1202. package/app/tui/banner.js.map +1 -0
  1203. package/app/tui/styles.d.ts +70 -0
  1204. package/app/tui/styles.js +197 -0
  1205. package/app/tui/styles.js.map +1 -0
  1206. package/app/tui/theme.d.ts +63 -0
  1207. package/app/tui/theme.js +136 -0
  1208. package/app/tui/theme.js.map +1 -0
  1209. package/app/weixin/channel.d.ts +92 -0
  1210. package/app/weixin/channel.js +386 -0
  1211. package/app/weixin/channel.js.map +1 -0
  1212. package/app/weixin/cli-weixin.d.ts +29 -0
  1213. package/app/weixin/cli-weixin.js +130 -0
  1214. package/app/weixin/cli-weixin.js.map +1 -0
  1215. package/app/weixin/credentials.d.ts +33 -0
  1216. package/app/weixin/credentials.js +118 -0
  1217. package/app/weixin/credentials.js.map +1 -0
  1218. package/app/weixin/ilink-client.d.ts +53 -0
  1219. package/app/weixin/ilink-client.js +333 -0
  1220. package/app/weixin/ilink-client.js.map +1 -0
  1221. package/app/weixin/login.d.ts +37 -0
  1222. package/app/weixin/login.js +96 -0
  1223. package/app/weixin/login.js.map +1 -0
  1224. package/app/weixin/qr.d.ts +26 -0
  1225. package/app/weixin/qr.js +525 -0
  1226. package/app/weixin/qr.js.map +1 -0
  1227. package/app/weixin/types.d.ts +114 -0
  1228. package/app/weixin/types.js +48 -0
  1229. package/app/weixin/types.js.map +1 -0
  1230. package/build-manifest.json +19910 -0
  1231. package/contracts/candidate-agent-dto-1.0.schema.json +172 -0
  1232. package/contracts/card-publication/0.1.2/request.schema.json +78 -0
  1233. package/contracts/commerce-intent/1.0/schema.json +124 -0
  1234. package/contracts/conformance/python-service/run.py +134 -0
  1235. package/contracts/delegation-policy/1.0/schema.json +143 -0
  1236. package/contracts/effective-authorization/1.0/schema.json +167 -0
  1237. package/contracts/interop/kiwi-buyer-message-send.json +43 -0
  1238. package/contracts/interop/knp-data-part-examples.json +243 -0
  1239. package/contracts/kiwi-catalog/1.0/agent-record.schema.json +78 -0
  1240. package/contracts/kiwi-catalog/1.0/listing-record.schema.json +98 -0
  1241. package/contracts/kiwi-catalog/1.0/listing-search-result.schema.json +60 -0
  1242. package/contracts/kiwi-contracts.lock.json +7 -0
  1243. package/contracts/manifest.json +211 -0
  1244. package/contracts/merchant-management/1.0/README.md +109 -0
  1245. package/contracts/merchant-management/1.0/approval-decision.schema.json +16 -0
  1246. package/contracts/merchant-management/1.0/approval-preview.schema.json +26 -0
  1247. package/contracts/merchant-management/1.0/connector-delivery-manifest.schema.json +78 -0
  1248. package/contracts/merchant-management/1.0/management-error.schema.json +30 -0
  1249. package/contracts/merchant-management/1.0/operation-receipt.schema.json +28 -0
  1250. package/contracts/merchant-management/1.0/runtime-management-descriptor.schema.json +33 -0
  1251. package/contracts/merchant-management/1.0/runtime-status.schema.json +42 -0
  1252. package/contracts/merchant-rfq/0.1.0/delivery-record.schema.json +206 -0
  1253. package/contracts/merchant-rfq/0.1.0/fact-snapshot.schema.json +118 -0
  1254. package/contracts/merchant-rfq/0.1.0/handoff-record.schema.json +251 -0
  1255. package/contracts/merchant-rfq/0.1.0/pricing-input.schema.json +139 -0
  1256. package/contracts/merchant-rfq/0.1.0/quote-revision.schema.json +153 -0
  1257. package/contracts/merchant-rfq/0.1.0/release-request.schema.json +121 -0
  1258. package/contracts/merchant-rfq/0.1.0/rfq-case.schema.json +357 -0
  1259. package/contracts/merchant-rfq/0.1.0/source-record.schema.json +162 -0
  1260. package/contracts/merchant-workbench/1.0/README.md +6 -0
  1261. package/contracts/merchant-workbench/1.0/money.schema.json +19 -0
  1262. package/contracts/merchant-workbench/1.0/problem.schema.json +73 -0
  1263. package/contracts/negotiation/1.0/schema.json +501 -0
  1264. package/contracts/persistent-task/1.0/schema.json +191 -0
  1265. package/contracts/runtime-binding/0.1.2/binding-request.schema.json +73 -0
  1266. package/contracts/runtime-binding/0.1.2/claims.schema.json +100 -0
  1267. package/contracts/runtime-binding/0.1.2/document.schema.json +163 -0
  1268. package/contracts/shopping.negotiation/0.1/capabilities.schema.json +47 -0
  1269. package/contracts/shopping.negotiation/0.1/decision.schema.json +120 -0
  1270. package/contracts/shopping.negotiation/0.1/policy-result.schema.json +52 -0
  1271. package/contracts/shopping.negotiation/0.1/snapshot.schema.json +172 -0
  1272. package/contracts/vectors/binding-thumbprint.json +15 -0
  1273. package/contracts/vectors/candidate-agent.invalid-private-field.json +7 -0
  1274. package/contracts/vectors/candidate-agent.valid.json +26 -0
  1275. package/contracts/vectors/commerce-intent.invalid-no-items.json +7 -0
  1276. package/contracts/vectors/commerce-intent.valid.json +32 -0
  1277. package/contracts/vectors/delegation-policy.invalid-payment-auto.json +15 -0
  1278. package/contracts/vectors/delegation-policy.valid.json +25 -0
  1279. package/contracts/vectors/effective-authorization.invalid-deny-wins.json +20 -0
  1280. package/contracts/vectors/effective-authorization.valid.json +23 -0
  1281. package/contracts/vectors/persistent-task.invalid-no-idempotency.json +7 -0
  1282. package/contracts/vectors/persistent-task.valid.json +45 -0
  1283. package/index.js +6 -0
  1284. package/node_modules/@hexagon/base64/dist/base64.cjs +198 -0
  1285. package/node_modules/@hexagon/base64/dist/base64.min.js +1 -0
  1286. package/node_modules/@hexagon/base64/dist/base64.min.mjs +1 -0
  1287. package/node_modules/@hexagon/base64/package.json +73 -0
  1288. package/node_modules/@hexagon/base64/src/base64.js +190 -0
  1289. package/node_modules/@hexagon/base64/src/base64.single.js +3 -0
  1290. package/node_modules/@hono/node-server/dist/conninfo.cjs +22 -0
  1291. package/node_modules/@hono/node-server/dist/conninfo.d.cts +11 -0
  1292. package/node_modules/@hono/node-server/dist/conninfo.d.mts +11 -0
  1293. package/node_modules/@hono/node-server/dist/conninfo.mjs +20 -0
  1294. package/node_modules/@hono/node-server/dist/constants-BLSFu_RU.mjs +5 -0
  1295. package/node_modules/@hono/node-server/dist/constants-BXAKTxRC.cjs +11 -0
  1296. package/node_modules/@hono/node-server/dist/early-hints.cjs +35 -0
  1297. package/node_modules/@hono/node-server/dist/early-hints.d.cts +16 -0
  1298. package/node_modules/@hono/node-server/dist/early-hints.d.mts +16 -0
  1299. package/node_modules/@hono/node-server/dist/early-hints.mjs +33 -0
  1300. package/node_modules/@hono/node-server/dist/index.cjs +1318 -0
  1301. package/node_modules/@hono/node-server/dist/index.d.cts +101 -0
  1302. package/node_modules/@hono/node-server/dist/index.d.mts +101 -0
  1303. package/node_modules/@hono/node-server/dist/index.mjs +1313 -0
  1304. package/node_modules/@hono/node-server/dist/serve-static.cjs +151 -0
  1305. package/node_modules/@hono/node-server/dist/serve-static.d.cts +18 -0
  1306. package/node_modules/@hono/node-server/dist/serve-static.d.mts +18 -0
  1307. package/node_modules/@hono/node-server/dist/serve-static.mjs +150 -0
  1308. package/node_modules/@hono/node-server/dist/utils/response.cjs +8 -0
  1309. package/node_modules/@hono/node-server/dist/utils/response.d.cts +4 -0
  1310. package/node_modules/@hono/node-server/dist/utils/response.d.mts +4 -0
  1311. package/node_modules/@hono/node-server/dist/utils/response.mjs +7 -0
  1312. package/node_modules/@hono/node-server/dist/utils/stream.cjs +65 -0
  1313. package/node_modules/@hono/node-server/dist/utils/stream.d.cts +6 -0
  1314. package/node_modules/@hono/node-server/dist/utils/stream.d.mts +6 -0
  1315. package/node_modules/@hono/node-server/dist/utils/stream.mjs +64 -0
  1316. package/node_modules/@hono/node-server/package.json +127 -0
  1317. package/node_modules/@levischuck/tiny-cbor/esm/cbor/cbor.js +440 -0
  1318. package/node_modules/@levischuck/tiny-cbor/esm/cbor/cbor_internal.js +111 -0
  1319. package/node_modules/@levischuck/tiny-cbor/esm/index.js +1 -0
  1320. package/node_modules/@levischuck/tiny-cbor/esm/package.json +3 -0
  1321. package/node_modules/@levischuck/tiny-cbor/package.json +25 -0
  1322. package/node_modules/@levischuck/tiny-cbor/script/cbor/cbor.js +447 -0
  1323. package/node_modules/@levischuck/tiny-cbor/script/cbor/cbor_internal.js +116 -0
  1324. package/node_modules/@levischuck/tiny-cbor/script/index.js +8 -0
  1325. package/node_modules/@levischuck/tiny-cbor/script/package.json +3 -0
  1326. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js +320 -0
  1327. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js +1044 -0
  1328. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js +618 -0
  1329. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js +252 -0
  1330. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js +211 -0
  1331. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js +202 -0
  1332. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js +484 -0
  1333. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js +58 -0
  1334. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js +29 -0
  1335. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js +188 -0
  1336. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js +68 -0
  1337. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js +39 -0
  1338. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js +19 -0
  1339. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js +36 -0
  1340. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js +250 -0
  1341. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js +251 -0
  1342. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js +28 -0
  1343. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js +51 -0
  1344. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/package.json +1 -0
  1345. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js +3 -0
  1346. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js +202 -0
  1347. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js +201 -0
  1348. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js +21 -0
  1349. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js +77 -0
  1350. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js +65 -0
  1351. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js +136 -0
  1352. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js +21 -0
  1353. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js +75 -0
  1354. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js +71 -0
  1355. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js +3 -0
  1356. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js +162 -0
  1357. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js +128 -0
  1358. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js +3 -0
  1359. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js +48 -0
  1360. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js +58 -0
  1361. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js +433 -0
  1362. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +922 -0
  1363. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js +80 -0
  1364. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/requestBody.js +64 -0
  1365. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js +172 -0
  1366. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.js +17 -0
  1367. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js +88 -0
  1368. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js +165 -0
  1369. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js +965 -0
  1370. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js +263 -0
  1371. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js +79 -0
  1372. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js +48 -0
  1373. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js +234 -0
  1374. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.js +64 -0
  1375. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js +25 -0
  1376. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js +1112 -0
  1377. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js +23 -0
  1378. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js +46 -0
  1379. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js +97 -0
  1380. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js +43 -0
  1381. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js +243 -0
  1382. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js +27 -0
  1383. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js +2105 -0
  1384. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js +94 -0
  1385. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js +69 -0
  1386. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js +30 -0
  1387. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js +3 -0
  1388. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js +290 -0
  1389. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +1019 -0
  1390. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +613 -0
  1391. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js +245 -0
  1392. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js +206 -0
  1393. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js +194 -0
  1394. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +479 -0
  1395. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js +54 -0
  1396. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js +13 -0
  1397. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js +184 -0
  1398. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +64 -0
  1399. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js +20 -0
  1400. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +16 -0
  1401. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +32 -0
  1402. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +246 -0
  1403. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js +246 -0
  1404. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js +10 -0
  1405. package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js +47 -0
  1406. package/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json +1 -0
  1407. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js +2 -0
  1408. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js +180 -0
  1409. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js +171 -0
  1410. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js +15 -0
  1411. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js +71 -0
  1412. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js +59 -0
  1413. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js +107 -0
  1414. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js +18 -0
  1415. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js +72 -0
  1416. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js +45 -0
  1417. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js +2 -0
  1418. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js +158 -0
  1419. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js +118 -0
  1420. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js +2 -0
  1421. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +41 -0
  1422. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js +52 -0
  1423. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +429 -0
  1424. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +917 -0
  1425. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js +76 -0
  1426. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/requestBody.js +58 -0
  1427. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js +165 -0
  1428. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js +13 -0
  1429. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js +81 -0
  1430. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js +161 -0
  1431. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +961 -0
  1432. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +228 -0
  1433. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +51 -0
  1434. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js +44 -0
  1435. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +208 -0
  1436. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js +57 -0
  1437. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js +22 -0
  1438. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +1107 -0
  1439. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js +19 -0
  1440. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js +40 -0
  1441. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +92 -0
  1442. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js +39 -0
  1443. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +239 -0
  1444. package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js +24 -0
  1445. package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +2065 -0
  1446. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +87 -0
  1447. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js +65 -0
  1448. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js +29 -0
  1449. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js +2 -0
  1450. package/node_modules/@modelcontextprotocol/sdk/package.json +165 -0
  1451. package/node_modules/@peculiar/asn1-android/build/cjs/attestation.js +39 -0
  1452. package/node_modules/@peculiar/asn1-android/build/cjs/index.js +6 -0
  1453. package/node_modules/@peculiar/asn1-android/build/cjs/key_description.js +519 -0
  1454. package/node_modules/@peculiar/asn1-android/build/cjs/nonstandard.js +107 -0
  1455. package/node_modules/@peculiar/asn1-android/build/es2015/attestation.js +34 -0
  1456. package/node_modules/@peculiar/asn1-android/build/es2015/index.js +3 -0
  1457. package/node_modules/@peculiar/asn1-android/build/es2015/key_description.js +512 -0
  1458. package/node_modules/@peculiar/asn1-android/build/es2015/nonstandard.js +103 -0
  1459. package/node_modules/@peculiar/asn1-android/package.json +54 -0
  1460. package/node_modules/@peculiar/asn1-asym-key/build/cjs/index.js +84 -0
  1461. package/node_modules/@peculiar/asn1-asym-key/build/es2015/index.js +77 -0
  1462. package/node_modules/@peculiar/asn1-asym-key/package.json +55 -0
  1463. package/node_modules/@peculiar/asn1-cms/build/cjs/attribute.js +22 -0
  1464. package/node_modules/@peculiar/asn1-cms/build/cjs/attributes/counter_signature.js +13 -0
  1465. package/node_modules/@peculiar/asn1-cms/build/cjs/attributes/index.js +8 -0
  1466. package/node_modules/@peculiar/asn1-cms/build/cjs/attributes/message_digest.js +8 -0
  1467. package/node_modules/@peculiar/asn1-cms/build/cjs/attributes/signing_time.js +13 -0
  1468. package/node_modules/@peculiar/asn1-cms/build/cjs/certificate_choices.js +64 -0
  1469. package/node_modules/@peculiar/asn1-cms/build/cjs/content_info.js +22 -0
  1470. package/node_modules/@peculiar/asn1-cms/build/cjs/encapsulated_content_info.js +40 -0
  1471. package/node_modules/@peculiar/asn1-cms/build/cjs/encrypted_content_info.js +56 -0
  1472. package/node_modules/@peculiar/asn1-cms/build/cjs/enveloped_data.js +60 -0
  1473. package/node_modules/@peculiar/asn1-cms/build/cjs/index.js +24 -0
  1474. package/node_modules/@peculiar/asn1-cms/build/cjs/issuer_and_serial_number.js +23 -0
  1475. package/node_modules/@peculiar/asn1-cms/build/cjs/kek_recipient_info.js +53 -0
  1476. package/node_modules/@peculiar/asn1-cms/build/cjs/key_agree_recipient_info.js +167 -0
  1477. package/node_modules/@peculiar/asn1-cms/build/cjs/key_trans_recipient_info.js +51 -0
  1478. package/node_modules/@peculiar/asn1-cms/build/cjs/object_identifiers.js +10 -0
  1479. package/node_modules/@peculiar/asn1-cms/build/cjs/originator_info.js +31 -0
  1480. package/node_modules/@peculiar/asn1-cms/build/cjs/other_key_attribute.js +22 -0
  1481. package/node_modules/@peculiar/asn1-cms/build/cjs/password_recipient_info.js +32 -0
  1482. package/node_modules/@peculiar/asn1-cms/build/cjs/recipient_info.js +75 -0
  1483. package/node_modules/@peculiar/asn1-cms/build/cjs/recipient_infos.js +20 -0
  1484. package/node_modules/@peculiar/asn1-cms/build/cjs/revocation_info_choice.js +54 -0
  1485. package/node_modules/@peculiar/asn1-cms/build/cjs/signed_data.js +64 -0
  1486. package/node_modules/@peculiar/asn1-cms/build/cjs/signer_identifier.js +28 -0
  1487. package/node_modules/@peculiar/asn1-cms/build/cjs/signer_info.js +70 -0
  1488. package/node_modules/@peculiar/asn1-cms/build/cjs/types.js +51 -0
  1489. package/node_modules/@peculiar/asn1-cms/build/es2015/attribute.js +18 -0
  1490. package/node_modules/@peculiar/asn1-cms/build/es2015/attributes/counter_signature.js +10 -0
  1491. package/node_modules/@peculiar/asn1-cms/build/es2015/attributes/index.js +4 -0
  1492. package/node_modules/@peculiar/asn1-cms/build/es2015/attributes/message_digest.js +4 -0
  1493. package/node_modules/@peculiar/asn1-cms/build/es2015/attributes/signing_time.js +10 -0
  1494. package/node_modules/@peculiar/asn1-cms/build/es2015/certificate_choices.js +60 -0
  1495. package/node_modules/@peculiar/asn1-cms/build/es2015/content_info.js +18 -0
  1496. package/node_modules/@peculiar/asn1-cms/build/es2015/encapsulated_content_info.js +36 -0
  1497. package/node_modules/@peculiar/asn1-cms/build/es2015/encrypted_content_info.js +52 -0
  1498. package/node_modules/@peculiar/asn1-cms/build/es2015/enveloped_data.js +56 -0
  1499. package/node_modules/@peculiar/asn1-cms/build/es2015/index.js +21 -0
  1500. package/node_modules/@peculiar/asn1-cms/build/es2015/issuer_and_serial_number.js +19 -0
  1501. package/node_modules/@peculiar/asn1-cms/build/es2015/kek_recipient_info.js +48 -0
  1502. package/node_modules/@peculiar/asn1-cms/build/es2015/key_agree_recipient_info.js +160 -0
  1503. package/node_modules/@peculiar/asn1-cms/build/es2015/key_trans_recipient_info.js +47 -0
  1504. package/node_modules/@peculiar/asn1-cms/build/es2015/object_identifiers.js +7 -0
  1505. package/node_modules/@peculiar/asn1-cms/build/es2015/originator_info.js +27 -0
  1506. package/node_modules/@peculiar/asn1-cms/build/es2015/other_key_attribute.js +18 -0
  1507. package/node_modules/@peculiar/asn1-cms/build/es2015/password_recipient_info.js +28 -0
  1508. package/node_modules/@peculiar/asn1-cms/build/es2015/recipient_info.js +71 -0
  1509. package/node_modules/@peculiar/asn1-cms/build/es2015/recipient_infos.js +17 -0
  1510. package/node_modules/@peculiar/asn1-cms/build/es2015/revocation_info_choice.js +50 -0
  1511. package/node_modules/@peculiar/asn1-cms/build/es2015/signed_data.js +60 -0
  1512. package/node_modules/@peculiar/asn1-cms/build/es2015/signer_identifier.js +25 -0
  1513. package/node_modules/@peculiar/asn1-cms/build/es2015/signer_info.js +66 -0
  1514. package/node_modules/@peculiar/asn1-cms/build/es2015/types.js +48 -0
  1515. package/node_modules/@peculiar/asn1-cms/package.json +55 -0
  1516. package/node_modules/@peculiar/asn1-csr/build/cjs/attributes.js +20 -0
  1517. package/node_modules/@peculiar/asn1-csr/build/cjs/certification_request.js +29 -0
  1518. package/node_modules/@peculiar/asn1-csr/build/cjs/certification_request_info.js +34 -0
  1519. package/node_modules/@peculiar/asn1-csr/build/cjs/index.js +6 -0
  1520. package/node_modules/@peculiar/asn1-csr/build/es2015/attributes.js +17 -0
  1521. package/node_modules/@peculiar/asn1-csr/build/es2015/certification_request.js +25 -0
  1522. package/node_modules/@peculiar/asn1-csr/build/es2015/certification_request_info.js +30 -0
  1523. package/node_modules/@peculiar/asn1-csr/build/es2015/index.js +3 -0
  1524. package/node_modules/@peculiar/asn1-csr/package.json +55 -0
  1525. package/node_modules/@peculiar/asn1-ecc/build/cjs/algorithms.js +14 -0
  1526. package/node_modules/@peculiar/asn1-ecc/build/cjs/ec_parameters.js +27 -0
  1527. package/node_modules/@peculiar/asn1-ecc/build/cjs/ec_private_key.js +36 -0
  1528. package/node_modules/@peculiar/asn1-ecc/build/cjs/ec_signature_value.js +25 -0
  1529. package/node_modules/@peculiar/asn1-ecc/build/cjs/index.js +9 -0
  1530. package/node_modules/@peculiar/asn1-ecc/build/cjs/object_identifiers.js +26 -0
  1531. package/node_modules/@peculiar/asn1-ecc/build/cjs/rfc3279.js +95 -0
  1532. package/node_modules/@peculiar/asn1-ecc/build/es2015/algorithms.js +10 -0
  1533. package/node_modules/@peculiar/asn1-ecc/build/es2015/ec_parameters.js +24 -0
  1534. package/node_modules/@peculiar/asn1-ecc/build/es2015/ec_private_key.js +32 -0
  1535. package/node_modules/@peculiar/asn1-ecc/build/es2015/ec_signature_value.js +21 -0
  1536. package/node_modules/@peculiar/asn1-ecc/build/es2015/index.js +6 -0
  1537. package/node_modules/@peculiar/asn1-ecc/build/es2015/object_identifiers.js +23 -0
  1538. package/node_modules/@peculiar/asn1-ecc/build/es2015/rfc3279.js +90 -0
  1539. package/node_modules/@peculiar/asn1-ecc/package.json +56 -0
  1540. package/node_modules/@peculiar/asn1-pfx/build/cjs/attribute.js +36 -0
  1541. package/node_modules/@peculiar/asn1-pfx/build/cjs/authenticated_safe.js +20 -0
  1542. package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/cert_bag.js +26 -0
  1543. package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/crl_bag.js +25 -0
  1544. package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/index.js +9 -0
  1545. package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/key_bag.js +12 -0
  1546. package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/pkcs8_shrouded_key_bag.js +12 -0
  1547. package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/secret_bag.js +22 -0
  1548. package/node_modules/@peculiar/asn1-pfx/build/cjs/bags/types.js +11 -0
  1549. package/node_modules/@peculiar/asn1-pfx/build/cjs/index.js +10 -0
  1550. package/node_modules/@peculiar/asn1-pfx/build/cjs/mac_data.js +27 -0
  1551. package/node_modules/@peculiar/asn1-pfx/build/cjs/object_identifiers.js +14 -0
  1552. package/node_modules/@peculiar/asn1-pfx/build/cjs/pfx.js +28 -0
  1553. package/node_modules/@peculiar/asn1-pfx/build/cjs/safe_bag.js +45 -0
  1554. package/node_modules/@peculiar/asn1-pfx/build/es2015/attribute.js +32 -0
  1555. package/node_modules/@peculiar/asn1-pfx/build/es2015/authenticated_safe.js +17 -0
  1556. package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/cert_bag.js +22 -0
  1557. package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/crl_bag.js +21 -0
  1558. package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/index.js +6 -0
  1559. package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/key_bag.js +9 -0
  1560. package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/pkcs8_shrouded_key_bag.js +9 -0
  1561. package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/secret_bag.js +18 -0
  1562. package/node_modules/@peculiar/asn1-pfx/build/es2015/bags/types.js +8 -0
  1563. package/node_modules/@peculiar/asn1-pfx/build/es2015/index.js +7 -0
  1564. package/node_modules/@peculiar/asn1-pfx/build/es2015/mac_data.js +23 -0
  1565. package/node_modules/@peculiar/asn1-pfx/build/es2015/object_identifiers.js +11 -0
  1566. package/node_modules/@peculiar/asn1-pfx/build/es2015/pfx.js +24 -0
  1567. package/node_modules/@peculiar/asn1-pfx/build/es2015/safe_bag.js +41 -0
  1568. package/node_modules/@peculiar/asn1-pfx/package.json +57 -0
  1569. package/node_modules/@peculiar/asn1-pkcs8/build/cjs/encrypted_private_key_info.js +23 -0
  1570. package/node_modules/@peculiar/asn1-pkcs8/build/cjs/index.js +5 -0
  1571. package/node_modules/@peculiar/asn1-pkcs8/build/cjs/private_key_info.js +54 -0
  1572. package/node_modules/@peculiar/asn1-pkcs8/build/es2015/encrypted_private_key_info.js +18 -0
  1573. package/node_modules/@peculiar/asn1-pkcs8/build/es2015/index.js +2 -0
  1574. package/node_modules/@peculiar/asn1-pkcs8/build/es2015/private_key_info.js +49 -0
  1575. package/node_modules/@peculiar/asn1-pkcs8/package.json +53 -0
  1576. package/node_modules/@peculiar/asn1-pkcs9/build/cjs/index.js +301 -0
  1577. package/node_modules/@peculiar/asn1-pkcs9/build/es2015/index.js +293 -0
  1578. package/node_modules/@peculiar/asn1-pkcs9/package.json +57 -0
  1579. package/node_modules/@peculiar/asn1-rsa/build/cjs/algorithms.js +40 -0
  1580. package/node_modules/@peculiar/asn1-rsa/build/cjs/index.js +9 -0
  1581. package/node_modules/@peculiar/asn1-rsa/build/cjs/object_identifiers.js +28 -0
  1582. package/node_modules/@peculiar/asn1-rsa/build/cjs/other_prime_info.js +46 -0
  1583. package/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/index.js +6 -0
  1584. package/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/rsaes_oaep.js +45 -0
  1585. package/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/rsassa_pkcs1_v1_5.js +20 -0
  1586. package/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/rsassa_pss.js +53 -0
  1587. package/node_modules/@peculiar/asn1-rsa/build/cjs/rsa_private_key.js +79 -0
  1588. package/node_modules/@peculiar/asn1-rsa/build/cjs/rsa_public_key.js +25 -0
  1589. package/node_modules/@peculiar/asn1-rsa/build/es2015/algorithms.js +36 -0
  1590. package/node_modules/@peculiar/asn1-rsa/build/es2015/index.js +6 -0
  1591. package/node_modules/@peculiar/asn1-rsa/build/es2015/object_identifiers.js +25 -0
  1592. package/node_modules/@peculiar/asn1-rsa/build/es2015/other_prime_info.js +42 -0
  1593. package/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/index.js +3 -0
  1594. package/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsaes_oaep.js +41 -0
  1595. package/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsassa_pkcs1_v1_5.js +16 -0
  1596. package/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsassa_pss.js +49 -0
  1597. package/node_modules/@peculiar/asn1-rsa/build/es2015/rsa_private_key.js +75 -0
  1598. package/node_modules/@peculiar/asn1-rsa/build/es2015/rsa_public_key.js +21 -0
  1599. package/node_modules/@peculiar/asn1-rsa/package.json +54 -0
  1600. package/node_modules/@peculiar/asn1-schema/build/cjs/convert.js +25 -0
  1601. package/node_modules/@peculiar/asn1-schema/build/cjs/converters.js +148 -0
  1602. package/node_modules/@peculiar/asn1-schema/build/cjs/decorators.js +52 -0
  1603. package/node_modules/@peculiar/asn1-schema/build/cjs/enums.js +40 -0
  1604. package/node_modules/@peculiar/asn1-schema/build/cjs/errors/index.js +4 -0
  1605. package/node_modules/@peculiar/asn1-schema/build/cjs/errors/schema_validation.js +7 -0
  1606. package/node_modules/@peculiar/asn1-schema/build/cjs/helper.js +44 -0
  1607. package/node_modules/@peculiar/asn1-schema/build/cjs/index.js +22 -0
  1608. package/node_modules/@peculiar/asn1-schema/build/cjs/objects.js +17 -0
  1609. package/node_modules/@peculiar/asn1-schema/build/cjs/parser.js +313 -0
  1610. package/node_modules/@peculiar/asn1-schema/build/cjs/schema.js +165 -0
  1611. package/node_modules/@peculiar/asn1-schema/build/cjs/serializer.js +150 -0
  1612. package/node_modules/@peculiar/asn1-schema/build/cjs/storage.js +5 -0
  1613. package/node_modules/@peculiar/asn1-schema/build/cjs/types/bit_string.js +71 -0
  1614. package/node_modules/@peculiar/asn1-schema/build/cjs/types/index.js +5 -0
  1615. package/node_modules/@peculiar/asn1-schema/build/cjs/types/octet_string.js +45 -0
  1616. package/node_modules/@peculiar/asn1-schema/build/cjs/types.js +2 -0
  1617. package/node_modules/@peculiar/asn1-schema/build/es2015/convert.js +20 -0
  1618. package/node_modules/@peculiar/asn1-schema/build/es2015/converters.js +143 -0
  1619. package/node_modules/@peculiar/asn1-schema/build/es2015/decorators.js +43 -0
  1620. package/node_modules/@peculiar/asn1-schema/build/es2015/enums.js +37 -0
  1621. package/node_modules/@peculiar/asn1-schema/build/es2015/errors/index.js +1 -0
  1622. package/node_modules/@peculiar/asn1-schema/build/es2015/errors/schema_validation.js +3 -0
  1623. package/node_modules/@peculiar/asn1-schema/build/es2015/helper.js +39 -0
  1624. package/node_modules/@peculiar/asn1-schema/build/es2015/index.js +9 -0
  1625. package/node_modules/@peculiar/asn1-schema/build/es2015/objects.js +13 -0
  1626. package/node_modules/@peculiar/asn1-schema/build/es2015/parser.js +308 -0
  1627. package/node_modules/@peculiar/asn1-schema/build/es2015/schema.js +160 -0
  1628. package/node_modules/@peculiar/asn1-schema/build/es2015/serializer.js +145 -0
  1629. package/node_modules/@peculiar/asn1-schema/build/es2015/storage.js +2 -0
  1630. package/node_modules/@peculiar/asn1-schema/build/es2015/types/bit_string.js +66 -0
  1631. package/node_modules/@peculiar/asn1-schema/build/es2015/types/index.js +2 -0
  1632. package/node_modules/@peculiar/asn1-schema/build/es2015/types/octet_string.js +40 -0
  1633. package/node_modules/@peculiar/asn1-schema/build/es2015/types.js +1 -0
  1634. package/node_modules/@peculiar/asn1-schema/package.json +64 -0
  1635. package/node_modules/@peculiar/asn1-x509/build/cjs/algorithm_identifier.js +28 -0
  1636. package/node_modules/@peculiar/asn1-x509/build/cjs/attribute.js +22 -0
  1637. package/node_modules/@peculiar/asn1-x509/build/cjs/certificate.js +29 -0
  1638. package/node_modules/@peculiar/asn1-x509/build/cjs/certificate_list.js +29 -0
  1639. package/node_modules/@peculiar/asn1-x509/build/cjs/extension.js +41 -0
  1640. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/authority_information_access.js +36 -0
  1641. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/authority_key_identifier.js +48 -0
  1642. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/basic_constraints.js +27 -0
  1643. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/certificate_issuer.js +19 -0
  1644. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/certificate_policies.js +136 -0
  1645. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_delta_indicator.js +14 -0
  1646. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_distribution_points.js +132 -0
  1647. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_freshest.js +22 -0
  1648. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_issuing_distribution_point.js +68 -0
  1649. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_number.js +20 -0
  1650. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_reason.js +39 -0
  1651. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/entrust_version_info.js +46 -0
  1652. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/extended_key_usage.js +28 -0
  1653. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/index.js +28 -0
  1654. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/inhibit_any_policy.js +23 -0
  1655. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/invalidity_date.js +22 -0
  1656. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/issuer_alternative_name.js +19 -0
  1657. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/key_usage.js +56 -0
  1658. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/name_constraints.js +74 -0
  1659. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/policy_constraints.js +33 -0
  1660. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/policy_mappings.js +35 -0
  1661. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/private_key_usage_period.js +31 -0
  1662. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_alternative_name.js +19 -0
  1663. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_directory_attributes.js +22 -0
  1664. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_info_access.js +22 -0
  1665. package/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_key_identifier.js +9 -0
  1666. package/node_modules/@peculiar/asn1-x509/build/cjs/general_name.js +132 -0
  1667. package/node_modules/@peculiar/asn1-x509/build/cjs/general_names.js +20 -0
  1668. package/node_modules/@peculiar/asn1-x509/build/cjs/index.js +19 -0
  1669. package/node_modules/@peculiar/asn1-x509/build/cjs/ip_converter.js +177 -0
  1670. package/node_modules/@peculiar/asn1-x509/build/cjs/name.js +110 -0
  1671. package/node_modules/@peculiar/asn1-x509/build/cjs/object_identifiers.js +16 -0
  1672. package/node_modules/@peculiar/asn1-x509/build/cjs/subject_public_key_info.js +20 -0
  1673. package/node_modules/@peculiar/asn1-x509/build/cjs/tbs_cert_list.js +83 -0
  1674. package/node_modules/@peculiar/asn1-x509/build/cjs/tbs_certificate.js +78 -0
  1675. package/node_modules/@peculiar/asn1-x509/build/cjs/time.js +43 -0
  1676. package/node_modules/@peculiar/asn1-x509/build/cjs/types.js +9 -0
  1677. package/node_modules/@peculiar/asn1-x509/build/cjs/validity.js +23 -0
  1678. package/node_modules/@peculiar/asn1-x509/build/es2015/algorithm_identifier.js +24 -0
  1679. package/node_modules/@peculiar/asn1-x509/build/es2015/attribute.js +18 -0
  1680. package/node_modules/@peculiar/asn1-x509/build/es2015/certificate.js +25 -0
  1681. package/node_modules/@peculiar/asn1-x509/build/es2015/certificate_list.js +25 -0
  1682. package/node_modules/@peculiar/asn1-x509/build/es2015/extension.js +37 -0
  1683. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_information_access.js +32 -0
  1684. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_key_identifier.js +43 -0
  1685. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/basic_constraints.js +23 -0
  1686. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_issuer.js +16 -0
  1687. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_policies.js +129 -0
  1688. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_delta_indicator.js +11 -0
  1689. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_distribution_points.js +127 -0
  1690. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_freshest.js +19 -0
  1691. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_issuing_distribution_point.js +64 -0
  1692. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_number.js +17 -0
  1693. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_reason.js +36 -0
  1694. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/entrust_version_info.js +41 -0
  1695. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/extended_key_usage.js +25 -0
  1696. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/index.js +25 -0
  1697. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/inhibit_any_policy.js +20 -0
  1698. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/invalidity_date.js +19 -0
  1699. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/issuer_alternative_name.js +16 -0
  1700. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/key_usage.js +52 -0
  1701. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/name_constraints.js +69 -0
  1702. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_constraints.js +29 -0
  1703. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_mappings.js +31 -0
  1704. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/private_key_usage_period.js +27 -0
  1705. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_alternative_name.js +16 -0
  1706. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_directory_attributes.js +19 -0
  1707. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_info_access.js +19 -0
  1708. package/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_key_identifier.js +5 -0
  1709. package/node_modules/@peculiar/asn1-x509/build/es2015/general_name.js +127 -0
  1710. package/node_modules/@peculiar/asn1-x509/build/es2015/general_names.js +17 -0
  1711. package/node_modules/@peculiar/asn1-x509/build/es2015/index.js +16 -0
  1712. package/node_modules/@peculiar/asn1-x509/build/es2015/ip_converter.js +173 -0
  1713. package/node_modules/@peculiar/asn1-x509/build/es2015/name.js +106 -0
  1714. package/node_modules/@peculiar/asn1-x509/build/es2015/object_identifiers.js +13 -0
  1715. package/node_modules/@peculiar/asn1-x509/build/es2015/subject_public_key_info.js +16 -0
  1716. package/node_modules/@peculiar/asn1-x509/build/es2015/tbs_cert_list.js +78 -0
  1717. package/node_modules/@peculiar/asn1-x509/build/es2015/tbs_certificate.js +74 -0
  1718. package/node_modules/@peculiar/asn1-x509/build/es2015/time.js +40 -0
  1719. package/node_modules/@peculiar/asn1-x509/build/es2015/types.js +6 -0
  1720. package/node_modules/@peculiar/asn1-x509/build/es2015/validity.js +19 -0
  1721. package/node_modules/@peculiar/asn1-x509/package.json +54 -0
  1722. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/aa_clear_attrs.js +27 -0
  1723. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/aa_controls.js +44 -0
  1724. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/attr_cert_issuer.js +31 -0
  1725. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/attr_cert_validity_period.js +19 -0
  1726. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/attr_spec.js +19 -0
  1727. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/attribute_certificate.js +25 -0
  1728. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/attribute_certificate_info.js +67 -0
  1729. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/class_list.js +16 -0
  1730. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/clearance.js +31 -0
  1731. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/holder.js +41 -0
  1732. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/ietf_attr_syntax.js +46 -0
  1733. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/index.js +23 -0
  1734. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/issuer_serial.js +30 -0
  1735. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/object_digest_info.js +37 -0
  1736. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/object_identifiers.js +17 -0
  1737. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/proxy_info.js +20 -0
  1738. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/role_syntax.js +29 -0
  1739. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/security_category.js +27 -0
  1740. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/svce_auth_info.js +27 -0
  1741. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/target.js +79 -0
  1742. package/node_modules/@peculiar/asn1-x509-attr/build/cjs/v2_form.js +39 -0
  1743. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/aa_clear_attrs.js +23 -0
  1744. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/aa_controls.js +40 -0
  1745. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/attr_cert_issuer.js +28 -0
  1746. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/attr_cert_validity_period.js +15 -0
  1747. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/attr_spec.js +16 -0
  1748. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/attribute_certificate.js +21 -0
  1749. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/attribute_certificate_info.js +63 -0
  1750. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/class_list.js +12 -0
  1751. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/clearance.js +27 -0
  1752. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/holder.js +37 -0
  1753. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/ietf_attr_syntax.js +41 -0
  1754. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/index.js +20 -0
  1755. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/issuer_serial.js +26 -0
  1756. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/object_digest_info.js +33 -0
  1757. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/object_identifiers.js +14 -0
  1758. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/proxy_info.js +17 -0
  1759. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/role_syntax.js +25 -0
  1760. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/security_category.js +23 -0
  1761. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/svce_auth_info.js +23 -0
  1762. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/target.js +75 -0
  1763. package/node_modules/@peculiar/asn1-x509-attr/build/es2015/v2_form.js +35 -0
  1764. package/node_modules/@peculiar/asn1-x509-attr/package.json +54 -0
  1765. package/node_modules/@peculiar/asn1-x509-post-quantum/build/cjs/composite_keys.js +49 -0
  1766. package/node_modules/@peculiar/asn1-x509-post-quantum/build/cjs/composite_signatures.js +34 -0
  1767. package/node_modules/@peculiar/asn1-x509-post-quantum/build/cjs/index.js +6 -0
  1768. package/node_modules/@peculiar/asn1-x509-post-quantum/build/cjs/object_identifiers.js +19 -0
  1769. package/node_modules/@peculiar/asn1-x509-post-quantum/build/es2015/composite_keys.js +44 -0
  1770. package/node_modules/@peculiar/asn1-x509-post-quantum/build/es2015/composite_signatures.js +31 -0
  1771. package/node_modules/@peculiar/asn1-x509-post-quantum/build/es2015/index.js +3 -0
  1772. package/node_modules/@peculiar/asn1-x509-post-quantum/build/es2015/object_identifiers.js +16 -0
  1773. package/node_modules/@peculiar/asn1-x509-post-quantum/package.json +56 -0
  1774. package/node_modules/@peculiar/utils/build/cjs/bytes/buffer-source.js +115 -0
  1775. package/node_modules/@peculiar/utils/build/cjs/bytes/concat.js +41 -0
  1776. package/node_modules/@peculiar/utils/build/cjs/bytes/equal.js +17 -0
  1777. package/node_modules/@peculiar/utils/build/cjs/bytes/index.js +31 -0
  1778. package/node_modules/@peculiar/utils/build/cjs/bytes/sequence.js +161 -0
  1779. package/node_modules/@peculiar/utils/build/cjs/bytes/types.js +2 -0
  1780. package/node_modules/@peculiar/utils/build/cjs/converters/convert.js +74 -0
  1781. package/node_modules/@peculiar/utils/build/cjs/converters/defaults.js +72 -0
  1782. package/node_modules/@peculiar/utils/build/cjs/converters/index.js +18 -0
  1783. package/node_modules/@peculiar/utils/build/cjs/converters/registry.js +188 -0
  1784. package/node_modules/@peculiar/utils/build/cjs/converters/types.js +2 -0
  1785. package/node_modules/@peculiar/utils/build/cjs/encoding/base64.js +48 -0
  1786. package/node_modules/@peculiar/utils/build/cjs/encoding/base64url.js +26 -0
  1787. package/node_modules/@peculiar/utils/build/cjs/encoding/binary.js +26 -0
  1788. package/node_modules/@peculiar/utils/build/cjs/encoding/hex.js +229 -0
  1789. package/node_modules/@peculiar/utils/build/cjs/encoding/index.js +10 -0
  1790. package/node_modules/@peculiar/utils/build/cjs/encoding/utf16.js +24 -0
  1791. package/node_modules/@peculiar/utils/build/cjs/encoding/utf8.js +13 -0
  1792. package/node_modules/@peculiar/utils/build/cjs/index.js +10 -0
  1793. package/node_modules/@peculiar/utils/build/cjs/legacy/buffer-source-converter.js +37 -0
  1794. package/node_modules/@peculiar/utils/build/cjs/legacy/convert.js +72 -0
  1795. package/node_modules/@peculiar/utils/build/cjs/legacy/functions.js +23 -0
  1796. package/node_modules/@peculiar/utils/build/cjs/legacy/index.js +11 -0
  1797. package/node_modules/@peculiar/utils/build/cjs/package.json +3 -0
  1798. package/node_modules/@peculiar/utils/build/cjs/pem/index.js +14 -0
  1799. package/node_modules/@peculiar/utils/build/cjs/pem/pem.js +140 -0
  1800. package/node_modules/@peculiar/utils/build/cjs/pem/types.js +2 -0
  1801. package/node_modules/@peculiar/utils/build/esm/bytes/buffer-source.js +101 -0
  1802. package/node_modules/@peculiar/utils/build/esm/bytes/concat.js +37 -0
  1803. package/node_modules/@peculiar/utils/build/esm/bytes/equal.js +14 -0
  1804. package/node_modules/@peculiar/utils/build/esm/bytes/index.js +4 -0
  1805. package/node_modules/@peculiar/utils/build/esm/bytes/sequence.js +150 -0
  1806. package/node_modules/@peculiar/utils/build/esm/bytes/types.js +1 -0
  1807. package/node_modules/@peculiar/utils/build/esm/converters/convert.js +71 -0
  1808. package/node_modules/@peculiar/utils/build/esm/converters/defaults.js +68 -0
  1809. package/node_modules/@peculiar/utils/build/esm/converters/index.js +3 -0
  1810. package/node_modules/@peculiar/utils/build/esm/converters/registry.js +185 -0
  1811. package/node_modules/@peculiar/utils/build/esm/converters/types.js +1 -0
  1812. package/node_modules/@peculiar/utils/build/esm/encoding/base64.js +40 -0
  1813. package/node_modules/@peculiar/utils/build/esm/encoding/base64url.js +19 -0
  1814. package/node_modules/@peculiar/utils/build/esm/encoding/binary.js +20 -0
  1815. package/node_modules/@peculiar/utils/build/esm/encoding/hex.js +220 -0
  1816. package/node_modules/@peculiar/utils/build/esm/encoding/index.js +6 -0
  1817. package/node_modules/@peculiar/utils/build/esm/encoding/utf16.js +19 -0
  1818. package/node_modules/@peculiar/utils/build/esm/encoding/utf8.js +8 -0
  1819. package/node_modules/@peculiar/utils/build/esm/index.js +6 -0
  1820. package/node_modules/@peculiar/utils/build/esm/legacy/buffer-source-converter.js +33 -0
  1821. package/node_modules/@peculiar/utils/build/esm/legacy/convert.js +68 -0
  1822. package/node_modules/@peculiar/utils/build/esm/legacy/functions.js +18 -0
  1823. package/node_modules/@peculiar/utils/build/esm/legacy/index.js +3 -0
  1824. package/node_modules/@peculiar/utils/build/esm/pem/index.js +1 -0
  1825. package/node_modules/@peculiar/utils/build/esm/pem/pem.js +129 -0
  1826. package/node_modules/@peculiar/utils/build/esm/pem/types.js +1 -0
  1827. package/node_modules/@peculiar/utils/package.json +111 -0
  1828. package/node_modules/@peculiar/x509/build/x509.cjs.js +3629 -0
  1829. package/node_modules/@peculiar/x509/build/x509.es.js +3552 -0
  1830. package/node_modules/@peculiar/x509/build/x509.js +85 -0
  1831. package/node_modules/@peculiar/x509/package.json +101 -0
  1832. package/node_modules/@simplewebauthn/server/esm/authentication/generateAuthenticationOptions.js +41 -0
  1833. package/node_modules/@simplewebauthn/server/esm/authentication/verifyAuthenticationResponse.js +221 -0
  1834. package/node_modules/@simplewebauthn/server/esm/errors/index.js +24 -0
  1835. package/node_modules/@simplewebauthn/server/esm/helpers/convertAAGUIDToString.js +17 -0
  1836. package/node_modules/@simplewebauthn/server/esm/helpers/convertCOSEtoPKCS.js +21 -0
  1837. package/node_modules/@simplewebauthn/server/esm/helpers/convertCertBufferToPEM.js +31 -0
  1838. package/node_modules/@simplewebauthn/server/esm/helpers/convertPEMToBytes.js +11 -0
  1839. package/node_modules/@simplewebauthn/server/esm/helpers/convertX509PublicKeyToCOSE.js +89 -0
  1840. package/node_modules/@simplewebauthn/server/esm/helpers/cose.js +105 -0
  1841. package/node_modules/@simplewebauthn/server/esm/helpers/decodeAttestationObject.js +16 -0
  1842. package/node_modules/@simplewebauthn/server/esm/helpers/decodeAuthenticatorExtensions.js +34 -0
  1843. package/node_modules/@simplewebauthn/server/esm/helpers/decodeClientDataJSON.js +16 -0
  1844. package/node_modules/@simplewebauthn/server/esm/helpers/decodeCredentialPublicKey.js +11 -0
  1845. package/node_modules/@simplewebauthn/server/esm/helpers/fetch.js +14 -0
  1846. package/node_modules/@simplewebauthn/server/esm/helpers/generateChallenge.js +24 -0
  1847. package/node_modules/@simplewebauthn/server/esm/helpers/generateUserID.js +20 -0
  1848. package/node_modules/@simplewebauthn/server/esm/helpers/getCertificateInfo.js +77 -0
  1849. package/node_modules/@simplewebauthn/server/esm/helpers/index.js +19 -0
  1850. package/node_modules/@simplewebauthn/server/esm/helpers/isCertRevoked.js +117 -0
  1851. package/node_modules/@simplewebauthn/server/esm/helpers/iso/index.js +11 -0
  1852. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoBase64URL.js +72 -0
  1853. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCBOR.js +35 -0
  1854. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/digest.js +14 -0
  1855. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/getRandomValues.js +11 -0
  1856. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/getWebCrypto.js +61 -0
  1857. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/importJWKKey.js +10 -0
  1858. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/index.js +7 -0
  1859. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoHashAlgName.js +23 -0
  1860. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoKeyAlgName.js +34 -0
  1861. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/runtimeSupportsWebCryptoKeyAlg.js +16 -0
  1862. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/structs.js +1 -0
  1863. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/unwrapEC2Signature.js +73 -0
  1864. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verify.js +36 -0
  1865. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyAKP.js +48 -0
  1866. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyEC2.js +70 -0
  1867. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyOKP.js +48 -0
  1868. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyRSA.js +88 -0
  1869. package/node_modules/@simplewebauthn/server/esm/helpers/iso/isoUint8Array.js +79 -0
  1870. package/node_modules/@simplewebauthn/server/esm/helpers/logging.js +30 -0
  1871. package/node_modules/@simplewebauthn/server/esm/helpers/mapJWSAlgToCOSEAlg.js +31 -0
  1872. package/node_modules/@simplewebauthn/server/esm/helpers/mapX509SignatureAlgToCOSEAlg.js +44 -0
  1873. package/node_modules/@simplewebauthn/server/esm/helpers/matchExpectedRPID.js +41 -0
  1874. package/node_modules/@simplewebauthn/server/esm/helpers/parseAuthenticatorData.js +106 -0
  1875. package/node_modules/@simplewebauthn/server/esm/helpers/parseBackupFlags.js +25 -0
  1876. package/node_modules/@simplewebauthn/server/esm/helpers/toHash.js +12 -0
  1877. package/node_modules/@simplewebauthn/server/esm/helpers/validateCertificatePath.js +194 -0
  1878. package/node_modules/@simplewebauthn/server/esm/helpers/validateExtFIDOGenCEAAGUID.js +34 -0
  1879. package/node_modules/@simplewebauthn/server/esm/helpers/verifySignature.js +35 -0
  1880. package/node_modules/@simplewebauthn/server/esm/index.js +9 -0
  1881. package/node_modules/@simplewebauthn/server/esm/metadata/mdsTypes.js +17 -0
  1882. package/node_modules/@simplewebauthn/server/esm/metadata/parseJWT.js +12 -0
  1883. package/node_modules/@simplewebauthn/server/esm/metadata/verifyAttestationWithMetadata.js +153 -0
  1884. package/node_modules/@simplewebauthn/server/esm/metadata/verifyJWT.js +42 -0
  1885. package/node_modules/@simplewebauthn/server/esm/metadata/verifyMDSBlob.js +59 -0
  1886. package/node_modules/@simplewebauthn/server/esm/package.json +3 -0
  1887. package/node_modules/@simplewebauthn/server/esm/registration/generateRegistrationOptions.js +163 -0
  1888. package/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/constants.js +136 -0
  1889. package/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/isValidTPMManufacturerID.js +6 -0
  1890. package/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/parseCertInfo.js +58 -0
  1891. package/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/parsePubArea.js +94 -0
  1892. package/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/verifyAttestationTPM.js +332 -0
  1893. package/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationAndroidKey.js +120 -0
  1894. package/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationAndroidSafetyNet.js +113 -0
  1895. package/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationApple.js +58 -0
  1896. package/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationFIDOU2F.js +48 -0
  1897. package/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationPacked.js +113 -0
  1898. package/node_modules/@simplewebauthn/server/esm/registration/verifyRegistrationResponse.js +224 -0
  1899. package/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/android-key.js +171 -0
  1900. package/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/android-safetynet.js +32 -0
  1901. package/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/apple.js +25 -0
  1902. package/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/mds.js +74 -0
  1903. package/node_modules/@simplewebauthn/server/esm/services/metadataService.js +274 -0
  1904. package/node_modules/@simplewebauthn/server/esm/services/settingsService.js +86 -0
  1905. package/node_modules/@simplewebauthn/server/esm/types/dom.js +1 -0
  1906. package/node_modules/@simplewebauthn/server/esm/types/index.js +1 -0
  1907. package/node_modules/@simplewebauthn/server/package.json +67 -0
  1908. package/node_modules/@simplewebauthn/server/script/authentication/generateAuthenticationOptions.js +44 -0
  1909. package/node_modules/@simplewebauthn/server/script/authentication/verifyAuthenticationResponse.js +224 -0
  1910. package/node_modules/@simplewebauthn/server/script/errors/index.js +29 -0
  1911. package/node_modules/@simplewebauthn/server/script/helpers/convertAAGUIDToString.js +20 -0
  1912. package/node_modules/@simplewebauthn/server/script/helpers/convertCOSEtoPKCS.js +24 -0
  1913. package/node_modules/@simplewebauthn/server/script/helpers/convertCertBufferToPEM.js +34 -0
  1914. package/node_modules/@simplewebauthn/server/script/helpers/convertPEMToBytes.js +14 -0
  1915. package/node_modules/@simplewebauthn/server/script/helpers/convertX509PublicKeyToCOSE.js +92 -0
  1916. package/node_modules/@simplewebauthn/server/script/helpers/cose.js +116 -0
  1917. package/node_modules/@simplewebauthn/server/script/helpers/decodeAttestationObject.js +20 -0
  1918. package/node_modules/@simplewebauthn/server/script/helpers/decodeAuthenticatorExtensions.js +37 -0
  1919. package/node_modules/@simplewebauthn/server/script/helpers/decodeClientDataJSON.js +20 -0
  1920. package/node_modules/@simplewebauthn/server/script/helpers/decodeCredentialPublicKey.js +15 -0
  1921. package/node_modules/@simplewebauthn/server/script/helpers/fetch.js +18 -0
  1922. package/node_modules/@simplewebauthn/server/script/helpers/generateChallenge.js +28 -0
  1923. package/node_modules/@simplewebauthn/server/script/helpers/generateUserID.js +24 -0
  1924. package/node_modules/@simplewebauthn/server/script/helpers/getCertificateInfo.js +80 -0
  1925. package/node_modules/@simplewebauthn/server/script/helpers/index.js +49 -0
  1926. package/node_modules/@simplewebauthn/server/script/helpers/isCertRevoked.js +120 -0
  1927. package/node_modules/@simplewebauthn/server/script/helpers/iso/index.js +37 -0
  1928. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoBase64URL.js +85 -0
  1929. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCBOR.js +62 -0
  1930. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/digest.js +17 -0
  1931. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/getRandomValues.js +14 -0
  1932. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/getWebCrypto.js +66 -0
  1933. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/importJWKKey.js +13 -0
  1934. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/index.js +13 -0
  1935. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoHashAlgName.js +26 -0
  1936. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoKeyAlgName.js +37 -0
  1937. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/runtimeSupportsWebCryptoKeyAlg.js +19 -0
  1938. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/structs.js +2 -0
  1939. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/unwrapEC2Signature.js +76 -0
  1940. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/verify.js +39 -0
  1941. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/verifyAKP.js +51 -0
  1942. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/verifyEC2.js +73 -0
  1943. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/verifyOKP.js +51 -0
  1944. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoCrypto/verifyRSA.js +91 -0
  1945. package/node_modules/@simplewebauthn/server/script/helpers/iso/isoUint8Array.js +89 -0
  1946. package/node_modules/@simplewebauthn/server/script/helpers/logging.js +34 -0
  1947. package/node_modules/@simplewebauthn/server/script/helpers/mapJWSAlgToCOSEAlg.js +34 -0
  1948. package/node_modules/@simplewebauthn/server/script/helpers/mapX509SignatureAlgToCOSEAlg.js +47 -0
  1949. package/node_modules/@simplewebauthn/server/script/helpers/matchExpectedRPID.js +44 -0
  1950. package/node_modules/@simplewebauthn/server/script/helpers/parseAuthenticatorData.js +110 -0
  1951. package/node_modules/@simplewebauthn/server/script/helpers/parseBackupFlags.js +30 -0
  1952. package/node_modules/@simplewebauthn/server/script/helpers/toHash.js +15 -0
  1953. package/node_modules/@simplewebauthn/server/script/helpers/validateCertificatePath.js +197 -0
  1954. package/node_modules/@simplewebauthn/server/script/helpers/validateExtFIDOGenCEAAGUID.js +37 -0
  1955. package/node_modules/@simplewebauthn/server/script/helpers/verifySignature.js +39 -0
  1956. package/node_modules/@simplewebauthn/server/script/index.js +25 -0
  1957. package/node_modules/@simplewebauthn/server/script/metadata/mdsTypes.js +18 -0
  1958. package/node_modules/@simplewebauthn/server/script/metadata/parseJWT.js +15 -0
  1959. package/node_modules/@simplewebauthn/server/script/metadata/verifyAttestationWithMetadata.js +157 -0
  1960. package/node_modules/@simplewebauthn/server/script/metadata/verifyJWT.js +45 -0
  1961. package/node_modules/@simplewebauthn/server/script/metadata/verifyMDSBlob.js +62 -0
  1962. package/node_modules/@simplewebauthn/server/script/package.json +3 -0
  1963. package/node_modules/@simplewebauthn/server/script/registration/generateRegistrationOptions.js +167 -0
  1964. package/node_modules/@simplewebauthn/server/script/registration/verifications/tpm/constants.js +139 -0
  1965. package/node_modules/@simplewebauthn/server/script/registration/verifications/tpm/isValidTPMManufacturerID.js +9 -0
  1966. package/node_modules/@simplewebauthn/server/script/registration/verifications/tpm/parseCertInfo.js +61 -0
  1967. package/node_modules/@simplewebauthn/server/script/registration/verifications/tpm/parsePubArea.js +97 -0
  1968. package/node_modules/@simplewebauthn/server/script/registration/verifications/tpm/verifyAttestationTPM.js +335 -0
  1969. package/node_modules/@simplewebauthn/server/script/registration/verifications/verifyAttestationAndroidKey.js +123 -0
  1970. package/node_modules/@simplewebauthn/server/script/registration/verifications/verifyAttestationAndroidSafetyNet.js +116 -0
  1971. package/node_modules/@simplewebauthn/server/script/registration/verifications/verifyAttestationApple.js +61 -0
  1972. package/node_modules/@simplewebauthn/server/script/registration/verifications/verifyAttestationFIDOU2F.js +51 -0
  1973. package/node_modules/@simplewebauthn/server/script/registration/verifications/verifyAttestationPacked.js +116 -0
  1974. package/node_modules/@simplewebauthn/server/script/registration/verifyRegistrationResponse.js +227 -0
  1975. package/node_modules/@simplewebauthn/server/script/services/defaultRootCerts/android-key.js +174 -0
  1976. package/node_modules/@simplewebauthn/server/script/services/defaultRootCerts/android-safetynet.js +35 -0
  1977. package/node_modules/@simplewebauthn/server/script/services/defaultRootCerts/apple.js +28 -0
  1978. package/node_modules/@simplewebauthn/server/script/services/defaultRootCerts/mds.js +77 -0
  1979. package/node_modules/@simplewebauthn/server/script/services/metadataService.js +278 -0
  1980. package/node_modules/@simplewebauthn/server/script/services/settingsService.js +89 -0
  1981. package/node_modules/@simplewebauthn/server/script/types/dom.js +2 -0
  1982. package/node_modules/@simplewebauthn/server/script/types/index.js +2 -0
  1983. package/node_modules/accepts/index.js +238 -0
  1984. package/node_modules/accepts/package.json +47 -0
  1985. package/node_modules/ajv/.runkit_example.js +23 -0
  1986. package/node_modules/ajv/dist/2019.js +61 -0
  1987. package/node_modules/ajv/dist/2020.js +55 -0
  1988. package/node_modules/ajv/dist/ajv.js +50 -0
  1989. package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  1990. package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  1991. package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  1992. package/node_modules/ajv/dist/compile/errors.js +123 -0
  1993. package/node_modules/ajv/dist/compile/index.js +242 -0
  1994. package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  1995. package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
  1996. package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  1997. package/node_modules/ajv/dist/compile/names.js +28 -0
  1998. package/node_modules/ajv/dist/compile/ref_error.js +12 -0
  1999. package/node_modules/ajv/dist/compile/resolve.js +155 -0
  2000. package/node_modules/ajv/dist/compile/rules.js +26 -0
  2001. package/node_modules/ajv/dist/compile/util.js +178 -0
  2002. package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  2003. package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  2004. package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  2005. package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  2006. package/node_modules/ajv/dist/compile/validate/index.js +520 -0
  2007. package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  2008. package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  2009. package/node_modules/ajv/dist/core.js +618 -0
  2010. package/node_modules/ajv/dist/jtd.js +72 -0
  2011. package/node_modules/ajv/dist/refs/data.json +13 -0
  2012. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  2013. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  2014. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  2015. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  2016. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  2017. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  2018. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  2019. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  2020. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  2021. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  2022. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  2023. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  2024. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  2025. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  2026. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  2027. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  2028. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  2029. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  2030. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  2031. package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  2032. package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  2033. package/node_modules/ajv/dist/runtime/equal.js +7 -0
  2034. package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  2035. package/node_modules/ajv/dist/runtime/quote.js +30 -0
  2036. package/node_modules/ajv/dist/runtime/re2.js +6 -0
  2037. package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  2038. package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  2039. package/node_modules/ajv/dist/runtime/uri.js +6 -0
  2040. package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  2041. package/node_modules/ajv/dist/standalone/index.js +90 -0
  2042. package/node_modules/ajv/dist/standalone/instance.js +35 -0
  2043. package/node_modules/ajv/dist/types/index.js +3 -0
  2044. package/node_modules/ajv/dist/types/json-schema.js +3 -0
  2045. package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  2046. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  2047. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  2048. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  2049. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  2050. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  2051. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  2052. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  2053. package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  2054. package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  2055. package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  2056. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  2057. package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  2058. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  2059. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  2060. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  2061. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  2062. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  2063. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  2064. package/node_modules/ajv/dist/vocabularies/code.js +131 -0
  2065. package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  2066. package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  2067. package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  2068. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  2069. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  2070. package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  2071. package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  2072. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  2073. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  2074. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  2075. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  2076. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  2077. package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  2078. package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  2079. package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  2080. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  2081. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  2082. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  2083. package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  2084. package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  2085. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  2086. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  2087. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  2088. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  2089. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  2090. package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  2091. package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  2092. package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  2093. package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  2094. package/node_modules/ajv/dist/vocabularies/next.js +8 -0
  2095. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  2096. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  2097. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  2098. package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  2099. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  2100. package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  2101. package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  2102. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  2103. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  2104. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  2105. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  2106. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  2107. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  2108. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  2109. package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  2110. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  2111. package/node_modules/ajv/lib/2019.ts +81 -0
  2112. package/node_modules/ajv/lib/2020.ts +75 -0
  2113. package/node_modules/ajv/lib/ajv.ts +70 -0
  2114. package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  2115. package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  2116. package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  2117. package/node_modules/ajv/lib/compile/errors.ts +184 -0
  2118. package/node_modules/ajv/lib/compile/index.ts +324 -0
  2119. package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  2120. package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
  2121. package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  2122. package/node_modules/ajv/lib/compile/names.ts +27 -0
  2123. package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  2124. package/node_modules/ajv/lib/compile/resolve.ts +149 -0
  2125. package/node_modules/ajv/lib/compile/rules.ts +50 -0
  2126. package/node_modules/ajv/lib/compile/util.ts +213 -0
  2127. package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  2128. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  2129. package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  2130. package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  2131. package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  2132. package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  2133. package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  2134. package/node_modules/ajv/lib/core.ts +892 -0
  2135. package/node_modules/ajv/lib/jtd.ts +132 -0
  2136. package/node_modules/ajv/lib/refs/data.json +13 -0
  2137. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  2138. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  2139. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  2140. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  2141. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  2142. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  2143. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  2144. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  2145. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  2146. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  2147. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  2148. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  2149. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  2150. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  2151. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  2152. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  2153. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  2154. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  2155. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  2156. package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  2157. package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  2158. package/node_modules/ajv/lib/runtime/equal.ts +7 -0
  2159. package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  2160. package/node_modules/ajv/lib/runtime/quote.ts +31 -0
  2161. package/node_modules/ajv/lib/runtime/re2.ts +6 -0
  2162. package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  2163. package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  2164. package/node_modules/ajv/lib/runtime/uri.ts +6 -0
  2165. package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  2166. package/node_modules/ajv/lib/standalone/index.ts +100 -0
  2167. package/node_modules/ajv/lib/standalone/instance.ts +36 -0
  2168. package/node_modules/ajv/lib/types/index.ts +244 -0
  2169. package/node_modules/ajv/lib/types/json-schema.ts +187 -0
  2170. package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  2171. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  2172. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  2173. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  2174. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  2175. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  2176. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  2177. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  2178. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  2179. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  2180. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  2181. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  2182. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  2183. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  2184. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  2185. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  2186. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  2187. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  2188. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  2189. package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  2190. package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  2191. package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  2192. package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  2193. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  2194. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  2195. package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  2196. package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  2197. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  2198. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  2199. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  2200. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  2201. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  2202. package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  2203. package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  2204. package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  2205. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  2206. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  2207. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  2208. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  2209. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  2210. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  2211. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  2212. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  2213. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  2214. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  2215. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  2216. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  2217. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  2218. package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  2219. package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  2220. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  2221. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  2222. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  2223. package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  2224. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  2225. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  2226. package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  2227. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  2228. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  2229. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  2230. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  2231. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  2232. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  2233. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
  2234. package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  2235. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  2236. package/node_modules/ajv/package.json +126 -0
  2237. package/node_modules/ajv-formats/dist/formats.js +208 -0
  2238. package/node_modules/ajv-formats/dist/index.js +37 -0
  2239. package/node_modules/ajv-formats/dist/limit.js +69 -0
  2240. package/node_modules/ajv-formats/package.json +74 -0
  2241. package/node_modules/ajv-formats/src/formats.ts +269 -0
  2242. package/node_modules/ajv-formats/src/index.ts +62 -0
  2243. package/node_modules/ajv-formats/src/limit.ts +99 -0
  2244. package/node_modules/asn1js/build/index.es.js +3198 -0
  2245. package/node_modules/asn1js/build/index.js +3266 -0
  2246. package/node_modules/asn1js/package.json +86 -0
  2247. package/node_modules/body-parser/index.js +55 -0
  2248. package/node_modules/body-parser/lib/read.js +247 -0
  2249. package/node_modules/body-parser/lib/types/json.js +186 -0
  2250. package/node_modules/body-parser/lib/types/raw.js +42 -0
  2251. package/node_modules/body-parser/lib/types/text.js +36 -0
  2252. package/node_modules/body-parser/lib/types/urlencoded.js +138 -0
  2253. package/node_modules/body-parser/lib/utils.js +100 -0
  2254. package/node_modules/body-parser/node_modules/content-type/dist/index.js +176 -0
  2255. package/node_modules/body-parser/node_modules/content-type/package.json +52 -0
  2256. package/node_modules/body-parser/package.json +65 -0
  2257. package/node_modules/bytes/index.js +170 -0
  2258. package/node_modules/bytes/package.json +42 -0
  2259. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  2260. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  2261. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  2262. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  2263. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  2264. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  2265. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  2266. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  2267. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  2268. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  2269. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  2270. package/node_modules/call-bound/.eslintrc +13 -0
  2271. package/node_modules/call-bound/.github/FUNDING.yml +12 -0
  2272. package/node_modules/call-bound/.nycrc +9 -0
  2273. package/node_modules/call-bound/index.js +19 -0
  2274. package/node_modules/call-bound/package.json +99 -0
  2275. package/node_modules/call-bound/tsconfig.json +10 -0
  2276. package/node_modules/content-disposition/index.js +536 -0
  2277. package/node_modules/content-disposition/package.json +40 -0
  2278. package/node_modules/content-type/index.js +225 -0
  2279. package/node_modules/content-type/package.json +42 -0
  2280. package/node_modules/cookie/index.js +335 -0
  2281. package/node_modules/cookie/package.json +44 -0
  2282. package/node_modules/cookie-signature/index.js +47 -0
  2283. package/node_modules/cookie-signature/package.json +24 -0
  2284. package/node_modules/cors/lib/index.js +238 -0
  2285. package/node_modules/cors/package.json +42 -0
  2286. package/node_modules/cross-spawn/index.js +39 -0
  2287. package/node_modules/cross-spawn/lib/enoent.js +59 -0
  2288. package/node_modules/cross-spawn/lib/parse.js +91 -0
  2289. package/node_modules/cross-spawn/lib/util/escape.js +47 -0
  2290. package/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
  2291. package/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
  2292. package/node_modules/cross-spawn/package.json +73 -0
  2293. package/node_modules/debug/package.json +64 -0
  2294. package/node_modules/debug/src/browser.js +272 -0
  2295. package/node_modules/debug/src/common.js +292 -0
  2296. package/node_modules/debug/src/index.js +10 -0
  2297. package/node_modules/debug/src/node.js +263 -0
  2298. package/node_modules/depd/index.js +538 -0
  2299. package/node_modules/depd/lib/browser/index.js +77 -0
  2300. package/node_modules/depd/package.json +45 -0
  2301. package/node_modules/dunder-proto/.eslintrc +5 -0
  2302. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  2303. package/node_modules/dunder-proto/.nycrc +13 -0
  2304. package/node_modules/dunder-proto/get.js +30 -0
  2305. package/node_modules/dunder-proto/package.json +76 -0
  2306. package/node_modules/dunder-proto/set.js +35 -0
  2307. package/node_modules/dunder-proto/tsconfig.json +9 -0
  2308. package/node_modules/ee-first/index.js +95 -0
  2309. package/node_modules/ee-first/package.json +29 -0
  2310. package/node_modules/encodeurl/index.js +60 -0
  2311. package/node_modules/encodeurl/package.json +40 -0
  2312. package/node_modules/es-define-property/.eslintrc +13 -0
  2313. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  2314. package/node_modules/es-define-property/.nycrc +9 -0
  2315. package/node_modules/es-define-property/index.js +14 -0
  2316. package/node_modules/es-define-property/package.json +81 -0
  2317. package/node_modules/es-define-property/tsconfig.json +10 -0
  2318. package/node_modules/es-errors/.eslintrc +5 -0
  2319. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  2320. package/node_modules/es-errors/eval.js +4 -0
  2321. package/node_modules/es-errors/index.js +4 -0
  2322. package/node_modules/es-errors/package.json +80 -0
  2323. package/node_modules/es-errors/range.js +4 -0
  2324. package/node_modules/es-errors/ref.js +4 -0
  2325. package/node_modules/es-errors/syntax.js +4 -0
  2326. package/node_modules/es-errors/tsconfig.json +49 -0
  2327. package/node_modules/es-errors/type.js +4 -0
  2328. package/node_modules/es-errors/uri.js +4 -0
  2329. package/node_modules/es-object-atoms/.eslintrc +16 -0
  2330. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  2331. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  2332. package/node_modules/es-object-atoms/ToObject.js +10 -0
  2333. package/node_modules/es-object-atoms/index.js +4 -0
  2334. package/node_modules/es-object-atoms/isObject.js +6 -0
  2335. package/node_modules/es-object-atoms/package.json +79 -0
  2336. package/node_modules/es-object-atoms/tsconfig.json +7 -0
  2337. package/node_modules/escape-html/index.js +78 -0
  2338. package/node_modules/escape-html/package.json +24 -0
  2339. package/node_modules/etag/index.js +131 -0
  2340. package/node_modules/etag/package.json +47 -0
  2341. package/node_modules/eventsource/dist/index.cjs +273 -0
  2342. package/node_modules/eventsource/dist/index.d.cts +332 -0
  2343. package/node_modules/eventsource/dist/index.js +273 -0
  2344. package/node_modules/eventsource/package.json +130 -0
  2345. package/node_modules/eventsource/src/EventSource.ts +596 -0
  2346. package/node_modules/eventsource/src/errors.ts +141 -0
  2347. package/node_modules/eventsource/src/index.ts +3 -0
  2348. package/node_modules/eventsource/src/types.ts +152 -0
  2349. package/node_modules/eventsource-parser/dist/index.cjs +177 -0
  2350. package/node_modules/eventsource-parser/dist/index.d.cts +169 -0
  2351. package/node_modules/eventsource-parser/dist/index.js +177 -0
  2352. package/node_modules/eventsource-parser/dist/stream.cjs +29 -0
  2353. package/node_modules/eventsource-parser/dist/stream.d.cts +134 -0
  2354. package/node_modules/eventsource-parser/dist/stream.js +30 -0
  2355. package/node_modules/eventsource-parser/package.json +92 -0
  2356. package/node_modules/eventsource-parser/src/errors.ts +44 -0
  2357. package/node_modules/eventsource-parser/src/index.ts +8 -0
  2358. package/node_modules/eventsource-parser/src/parse.ts +439 -0
  2359. package/node_modules/eventsource-parser/src/stream.ts +107 -0
  2360. package/node_modules/eventsource-parser/src/types.ts +122 -0
  2361. package/node_modules/eventsource-parser/stream.js +2 -0
  2362. package/node_modules/express/index.js +11 -0
  2363. package/node_modules/express/lib/application.js +631 -0
  2364. package/node_modules/express/lib/express.js +81 -0
  2365. package/node_modules/express/lib/request.js +514 -0
  2366. package/node_modules/express/lib/response.js +1053 -0
  2367. package/node_modules/express/lib/utils.js +271 -0
  2368. package/node_modules/express/lib/view.js +205 -0
  2369. package/node_modules/express/package.json +99 -0
  2370. package/node_modules/express-rate-limit/dist/index.cjs +1088 -0
  2371. package/node_modules/express-rate-limit/dist/index.d.cts +699 -0
  2372. package/node_modules/express-rate-limit/dist/index.d.mts +699 -0
  2373. package/node_modules/express-rate-limit/dist/index.mjs +1044 -0
  2374. package/node_modules/express-rate-limit/package.json +116 -0
  2375. package/node_modules/express-rate-limit/tsconfig.json +8 -0
  2376. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  2377. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  2378. package/node_modules/fast-deep-equal/index.js +46 -0
  2379. package/node_modules/fast-deep-equal/package.json +61 -0
  2380. package/node_modules/fast-deep-equal/react.js +53 -0
  2381. package/node_modules/fast-uri/.gitattributes +2 -0
  2382. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  2383. package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
  2384. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
  2385. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  2386. package/node_modules/fast-uri/eslint.config.js +6 -0
  2387. package/node_modules/fast-uri/index.js +631 -0
  2388. package/node_modules/fast-uri/lib/schemes.js +272 -0
  2389. package/node_modules/fast-uri/lib/utils.js +747 -0
  2390. package/node_modules/fast-uri/package.json +68 -0
  2391. package/node_modules/fast-uri/tsconfig.json +9 -0
  2392. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  2393. package/node_modules/finalhandler/index.js +293 -0
  2394. package/node_modules/finalhandler/package.json +47 -0
  2395. package/node_modules/forwarded/index.js +90 -0
  2396. package/node_modules/forwarded/package.json +45 -0
  2397. package/node_modules/fresh/index.js +136 -0
  2398. package/node_modules/fresh/package.json +46 -0
  2399. package/node_modules/function-bind/.eslintrc +21 -0
  2400. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  2401. package/node_modules/function-bind/.nycrc +13 -0
  2402. package/node_modules/function-bind/implementation.js +84 -0
  2403. package/node_modules/function-bind/index.js +5 -0
  2404. package/node_modules/function-bind/package.json +87 -0
  2405. package/node_modules/get-intrinsic/.eslintrc +42 -0
  2406. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  2407. package/node_modules/get-intrinsic/.nycrc +9 -0
  2408. package/node_modules/get-intrinsic/index.js +378 -0
  2409. package/node_modules/get-intrinsic/package.json +97 -0
  2410. package/node_modules/get-proto/.eslintrc +10 -0
  2411. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  2412. package/node_modules/get-proto/.nycrc +9 -0
  2413. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  2414. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  2415. package/node_modules/get-proto/index.js +27 -0
  2416. package/node_modules/get-proto/package.json +81 -0
  2417. package/node_modules/get-proto/tsconfig.json +9 -0
  2418. package/node_modules/gopd/.eslintrc +16 -0
  2419. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  2420. package/node_modules/gopd/gOPD.js +4 -0
  2421. package/node_modules/gopd/index.js +15 -0
  2422. package/node_modules/gopd/package.json +77 -0
  2423. package/node_modules/gopd/tsconfig.json +9 -0
  2424. package/node_modules/has-symbols/.eslintrc +11 -0
  2425. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  2426. package/node_modules/has-symbols/.nycrc +9 -0
  2427. package/node_modules/has-symbols/index.js +14 -0
  2428. package/node_modules/has-symbols/package.json +111 -0
  2429. package/node_modules/has-symbols/shams.js +45 -0
  2430. package/node_modules/has-symbols/tsconfig.json +10 -0
  2431. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  2432. package/node_modules/hasown/.nycrc +13 -0
  2433. package/node_modules/hasown/eslint.config.mjs +6 -0
  2434. package/node_modules/hasown/index.js +8 -0
  2435. package/node_modules/hasown/package.json +91 -0
  2436. package/node_modules/hasown/tsconfig.json +6 -0
  2437. package/node_modules/hono/dist/_virtual/_rolldown/runtime.js +13 -0
  2438. package/node_modules/hono/dist/adapter/aws-lambda/conninfo.js +43 -0
  2439. package/node_modules/hono/dist/adapter/aws-lambda/handler.js +342 -0
  2440. package/node_modules/hono/dist/adapter/aws-lambda/index.js +3 -0
  2441. package/node_modules/hono/dist/adapter/aws-lambda/types.js +1 -0
  2442. package/node_modules/hono/dist/adapter/bun/conninfo.js +22 -0
  2443. package/node_modules/hono/dist/adapter/bun/index.js +6 -0
  2444. package/node_modules/hono/dist/adapter/bun/serve-static.js +30 -0
  2445. package/node_modules/hono/dist/adapter/bun/server.js +11 -0
  2446. package/node_modules/hono/dist/adapter/bun/ssg.js +27 -0
  2447. package/node_modules/hono/dist/adapter/bun/websocket.js +66 -0
  2448. package/node_modules/hono/dist/adapter/cloudflare-pages/conninfo.js +24 -0
  2449. package/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +64 -0
  2450. package/node_modules/hono/dist/adapter/cloudflare-pages/index.js +3 -0
  2451. package/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +7 -0
  2452. package/node_modules/hono/dist/adapter/cloudflare-workers/index.js +4 -0
  2453. package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +7 -0
  2454. package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +28 -0
  2455. package/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +22 -0
  2456. package/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +33 -0
  2457. package/node_modules/hono/dist/adapter/deno/conninfo.js +17 -0
  2458. package/node_modules/hono/dist/adapter/deno/deno.d.js +1 -0
  2459. package/node_modules/hono/dist/adapter/deno/index.js +5 -0
  2460. package/node_modules/hono/dist/adapter/deno/serve-static.js +35 -0
  2461. package/node_modules/hono/dist/adapter/deno/ssg.js +29 -0
  2462. package/node_modules/hono/dist/adapter/deno/websocket.js +32 -0
  2463. package/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +7 -0
  2464. package/node_modules/hono/dist/adapter/lambda-edge/handler.js +111 -0
  2465. package/node_modules/hono/dist/adapter/lambda-edge/index.js +3 -0
  2466. package/node_modules/hono/dist/adapter/netlify/conninfo.js +24 -0
  2467. package/node_modules/hono/dist/adapter/netlify/handler.js +11 -0
  2468. package/node_modules/hono/dist/adapter/netlify/index.js +3 -0
  2469. package/node_modules/hono/dist/adapter/netlify/mod.js +3 -0
  2470. package/node_modules/hono/dist/adapter/service-worker/handler.js +16 -0
  2471. package/node_modules/hono/dist/adapter/service-worker/index.js +25 -0
  2472. package/node_modules/hono/dist/adapter/service-worker/types.js +1 -0
  2473. package/node_modules/hono/dist/adapter/vercel/conninfo.js +7 -0
  2474. package/node_modules/hono/dist/adapter/vercel/handler.js +9 -0
  2475. package/node_modules/hono/dist/adapter/vercel/index.js +3 -0
  2476. package/node_modules/hono/dist/cjs/_virtual/_rolldown/runtime.js +33 -0
  2477. package/node_modules/hono/dist/cjs/adapter/aws-lambda/conninfo.js +44 -0
  2478. package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +352 -0
  2479. package/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +7 -0
  2480. package/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +0 -0
  2481. package/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +23 -0
  2482. package/node_modules/hono/dist/cjs/adapter/bun/index.js +14 -0
  2483. package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +31 -0
  2484. package/node_modules/hono/dist/cjs/adapter/bun/server.js +12 -0
  2485. package/node_modules/hono/dist/cjs/adapter/bun/ssg.js +29 -0
  2486. package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +70 -0
  2487. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/conninfo.js +25 -0
  2488. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +67 -0
  2489. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +7 -0
  2490. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +8 -0
  2491. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +7 -0
  2492. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +8 -0
  2493. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +29 -0
  2494. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +23 -0
  2495. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +34 -0
  2496. package/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +18 -0
  2497. package/node_modules/hono/dist/cjs/adapter/deno/deno.d.js +0 -0
  2498. package/node_modules/hono/dist/cjs/adapter/deno/index.js +10 -0
  2499. package/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +36 -0
  2500. package/node_modules/hono/dist/cjs/adapter/deno/ssg.js +31 -0
  2501. package/node_modules/hono/dist/cjs/adapter/deno/websocket.js +33 -0
  2502. package/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +8 -0
  2503. package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +116 -0
  2504. package/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +5 -0
  2505. package/node_modules/hono/dist/cjs/adapter/netlify/conninfo.js +25 -0
  2506. package/node_modules/hono/dist/cjs/adapter/netlify/handler.js +12 -0
  2507. package/node_modules/hono/dist/cjs/adapter/netlify/index.js +5 -0
  2508. package/node_modules/hono/dist/cjs/adapter/netlify/mod.js +5 -0
  2509. package/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +17 -0
  2510. package/node_modules/hono/dist/cjs/adapter/service-worker/index.js +27 -0
  2511. package/node_modules/hono/dist/cjs/adapter/service-worker/types.js +0 -0
  2512. package/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +8 -0
  2513. package/node_modules/hono/dist/cjs/adapter/vercel/handler.js +10 -0
  2514. package/node_modules/hono/dist/cjs/adapter/vercel/index.js +5 -0
  2515. package/node_modules/hono/dist/cjs/client/client.js +145 -0
  2516. package/node_modules/hono/dist/cjs/client/fetch-result-please.js +67 -0
  2517. package/node_modules/hono/dist/cjs/client/index.js +7 -0
  2518. package/node_modules/hono/dist/cjs/client/types.js +0 -0
  2519. package/node_modules/hono/dist/cjs/client/utils.js +70 -0
  2520. package/node_modules/hono/dist/cjs/compose.js +51 -0
  2521. package/node_modules/hono/dist/cjs/context.js +383 -0
  2522. package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +54 -0
  2523. package/node_modules/hono/dist/cjs/helper/accepts/index.js +3 -0
  2524. package/node_modules/hono/dist/cjs/helper/adapter/index.js +41 -0
  2525. package/node_modules/hono/dist/cjs/helper/conninfo/index.js +0 -0
  2526. package/node_modules/hono/dist/cjs/helper/conninfo/types.js +0 -0
  2527. package/node_modules/hono/dist/cjs/helper/cookie/index.js +89 -0
  2528. package/node_modules/hono/dist/cjs/helper/css/common.js +194 -0
  2529. package/node_modules/hono/dist/cjs/helper/css/index.js +142 -0
  2530. package/node_modules/hono/dist/cjs/helper/dev/index.js +53 -0
  2531. package/node_modules/hono/dist/cjs/helper/factory/index.js +33 -0
  2532. package/node_modules/hono/dist/cjs/helper/html/index.js +34 -0
  2533. package/node_modules/hono/dist/cjs/helper/proxy/index.js +122 -0
  2534. package/node_modules/hono/dist/cjs/helper/route/index.js +128 -0
  2535. package/node_modules/hono/dist/cjs/helper/ssg/index.js +19 -0
  2536. package/node_modules/hono/dist/cjs/helper/ssg/middleware.js +65 -0
  2537. package/node_modules/hono/dist/cjs/helper/ssg/plugins.js +68 -0
  2538. package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +220 -0
  2539. package/node_modules/hono/dist/cjs/helper/ssg/utils.js +70 -0
  2540. package/node_modules/hono/dist/cjs/helper/streaming/index.js +8 -0
  2541. package/node_modules/hono/dist/cjs/helper/streaming/sse.js +59 -0
  2542. package/node_modules/hono/dist/cjs/helper/streaming/stream.js +26 -0
  2543. package/node_modules/hono/dist/cjs/helper/streaming/text.js +12 -0
  2544. package/node_modules/hono/dist/cjs/helper/streaming/utils.js +16 -0
  2545. package/node_modules/hono/dist/cjs/helper/testing/index.js +18 -0
  2546. package/node_modules/hono/dist/cjs/helper/websocket/index.js +56 -0
  2547. package/node_modules/hono/dist/cjs/hono-base.js +349 -0
  2548. package/node_modules/hono/dist/cjs/hono.js +29 -0
  2549. package/node_modules/hono/dist/cjs/http-exception.js +56 -0
  2550. package/node_modules/hono/dist/cjs/index.js +22 -0
  2551. package/node_modules/hono/dist/cjs/jsx/base.js +266 -0
  2552. package/node_modules/hono/dist/cjs/jsx/children.js +19 -0
  2553. package/node_modules/hono/dist/cjs/jsx/components.js +147 -0
  2554. package/node_modules/hono/dist/cjs/jsx/constants.js +15 -0
  2555. package/node_modules/hono/dist/cjs/jsx/context.js +170 -0
  2556. package/node_modules/hono/dist/cjs/jsx/dom/client.js +56 -0
  2557. package/node_modules/hono/dist/cjs/jsx/dom/components.js +26 -0
  2558. package/node_modules/hono/dist/cjs/jsx/dom/context.js +43 -0
  2559. package/node_modules/hono/dist/cjs/jsx/dom/css.js +153 -0
  2560. package/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +65 -0
  2561. package/node_modules/hono/dist/cjs/jsx/dom/index.js +122 -0
  2562. package/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +306 -0
  2563. package/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +17 -0
  2564. package/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +5 -0
  2565. package/node_modules/hono/dist/cjs/jsx/dom/render.js +525 -0
  2566. package/node_modules/hono/dist/cjs/jsx/dom/server.js +44 -0
  2567. package/node_modules/hono/dist/cjs/jsx/dom/utils.js +9 -0
  2568. package/node_modules/hono/dist/cjs/jsx/hooks/index.js +280 -0
  2569. package/node_modules/hono/dist/cjs/jsx/index.js +89 -0
  2570. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +27 -0
  2571. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +138 -0
  2572. package/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +0 -0
  2573. package/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +16 -0
  2574. package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +37 -0
  2575. package/node_modules/hono/dist/cjs/jsx/streaming.js +135 -0
  2576. package/node_modules/hono/dist/cjs/jsx/types.js +0 -0
  2577. package/node_modules/hono/dist/cjs/jsx/utils.js +116 -0
  2578. package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +100 -0
  2579. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +97 -0
  2580. package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +69 -0
  2581. package/node_modules/hono/dist/cjs/middleware/cache/index.js +173 -0
  2582. package/node_modules/hono/dist/cjs/middleware/combine/index.js +139 -0
  2583. package/node_modules/hono/dist/cjs/middleware/compress/index.js +82 -0
  2584. package/node_modules/hono/dist/cjs/middleware/context-storage/index.js +55 -0
  2585. package/node_modules/hono/dist/cjs/middleware/cors/index.js +109 -0
  2586. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +106 -0
  2587. package/node_modules/hono/dist/cjs/middleware/etag/digest.js +62 -0
  2588. package/node_modules/hono/dist/cjs/middleware/etag/index.js +79 -0
  2589. package/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +168 -0
  2590. package/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +104 -0
  2591. package/node_modules/hono/dist/cjs/middleware/jwk/index.js +3 -0
  2592. package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +122 -0
  2593. package/node_modules/hono/dist/cjs/middleware/jwt/index.js +9 -0
  2594. package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +124 -0
  2595. package/node_modules/hono/dist/cjs/middleware/language/index.js +7 -0
  2596. package/node_modules/hono/dist/cjs/middleware/language/language.js +208 -0
  2597. package/node_modules/hono/dist/cjs/middleware/logger/index.js +51 -0
  2598. package/node_modules/hono/dist/cjs/middleware/method-not-allowed/index.js +84 -0
  2599. package/node_modules/hono/dist/cjs/middleware/method-override/index.js +105 -0
  2600. package/node_modules/hono/dist/cjs/middleware/powered-by/index.js +25 -0
  2601. package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +41 -0
  2602. package/node_modules/hono/dist/cjs/middleware/request-id/index.js +3 -0
  2603. package/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +35 -0
  2604. package/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +4 -0
  2605. package/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +0 -0
  2606. package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +166 -0
  2607. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +61 -0
  2608. package/node_modules/hono/dist/cjs/middleware/serve-static/path.js +17 -0
  2609. package/node_modules/hono/dist/cjs/middleware/timeout/index.js +42 -0
  2610. package/node_modules/hono/dist/cjs/middleware/timing/index.js +7 -0
  2611. package/node_modules/hono/dist/cjs/middleware/timing/timing.js +189 -0
  2612. package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +89 -0
  2613. package/node_modules/hono/dist/cjs/package.json +3 -0
  2614. package/node_modules/hono/dist/cjs/preset/quick.js +19 -0
  2615. package/node_modules/hono/dist/cjs/preset/tiny.js +16 -0
  2616. package/node_modules/hono/dist/cjs/request/constants.js +5 -0
  2617. package/node_modules/hono/dist/cjs/request.js +337 -0
  2618. package/node_modules/hono/dist/cjs/router/linear-router/index.js +3 -0
  2619. package/node_modules/hono/dist/cjs/router/linear-router/router.js +97 -0
  2620. package/node_modules/hono/dist/cjs/router/pattern-router/index.js +3 -0
  2621. package/node_modules/hono/dist/cjs/router/pattern-router/router.js +42 -0
  2622. package/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +7 -0
  2623. package/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +21 -0
  2624. package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +96 -0
  2625. package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +97 -0
  2626. package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +102 -0
  2627. package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +74 -0
  2628. package/node_modules/hono/dist/cjs/router/smart-router/index.js +3 -0
  2629. package/node_modules/hono/dist/cjs/router/smart-router/router.js +50 -0
  2630. package/node_modules/hono/dist/cjs/router/trie-router/index.js +3 -0
  2631. package/node_modules/hono/dist/cjs/router/trie-router/node.js +135 -0
  2632. package/node_modules/hono/dist/cjs/router/trie-router/router.js +16 -0
  2633. package/node_modules/hono/dist/cjs/router/utils.js +5 -0
  2634. package/node_modules/hono/dist/cjs/router.js +40 -0
  2635. package/node_modules/hono/dist/cjs/types.js +5 -0
  2636. package/node_modules/hono/dist/cjs/utils/accept.js +194 -0
  2637. package/node_modules/hono/dist/cjs/utils/basic-auth.js +21 -0
  2638. package/node_modules/hono/dist/cjs/utils/body.js +97 -0
  2639. package/node_modules/hono/dist/cjs/utils/buffer.js +55 -0
  2640. package/node_modules/hono/dist/cjs/utils/color.js +39 -0
  2641. package/node_modules/hono/dist/cjs/utils/compress.js +12 -0
  2642. package/node_modules/hono/dist/cjs/utils/concurrent.js +31 -0
  2643. package/node_modules/hono/dist/cjs/utils/constants.js +8 -0
  2644. package/node_modules/hono/dist/cjs/utils/cookie.js +129 -0
  2645. package/node_modules/hono/dist/cjs/utils/crypto.js +38 -0
  2646. package/node_modules/hono/dist/cjs/utils/encode.js +37 -0
  2647. package/node_modules/hono/dist/cjs/utils/filepath.js +27 -0
  2648. package/node_modules/hono/dist/cjs/utils/handler.js +14 -0
  2649. package/node_modules/hono/dist/cjs/utils/headers.js +0 -0
  2650. package/node_modules/hono/dist/cjs/utils/html.js +109 -0
  2651. package/node_modules/hono/dist/cjs/utils/http-status.js +0 -0
  2652. package/node_modules/hono/dist/cjs/utils/ipaddr.js +247 -0
  2653. package/node_modules/hono/dist/cjs/utils/jwt/index.js +15 -0
  2654. package/node_modules/hono/dist/cjs/utils/jwt/jwa.js +25 -0
  2655. package/node_modules/hono/dist/cjs/utils/jwt/jws.js +135 -0
  2656. package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +136 -0
  2657. package/node_modules/hono/dist/cjs/utils/jwt/types.js +124 -0
  2658. package/node_modules/hono/dist/cjs/utils/jwt/utf8.js +11 -0
  2659. package/node_modules/hono/dist/cjs/utils/mime.js +80 -0
  2660. package/node_modules/hono/dist/cjs/utils/stream.js +89 -0
  2661. package/node_modules/hono/dist/cjs/utils/types.js +0 -0
  2662. package/node_modules/hono/dist/cjs/utils/url.js +215 -0
  2663. package/node_modules/hono/dist/cjs/validator/index.js +3 -0
  2664. package/node_modules/hono/dist/cjs/validator/utils.js +0 -0
  2665. package/node_modules/hono/dist/cjs/validator/validator.js +65 -0
  2666. package/node_modules/hono/dist/client/client.js +144 -0
  2667. package/node_modules/hono/dist/client/fetch-result-please.js +65 -0
  2668. package/node_modules/hono/dist/client/index.js +4 -0
  2669. package/node_modules/hono/dist/client/types.js +1 -0
  2670. package/node_modules/hono/dist/client/utils.js +62 -0
  2671. package/node_modules/hono/dist/compose.js +50 -0
  2672. package/node_modules/hono/dist/context.js +381 -0
  2673. package/node_modules/hono/dist/helper/accepts/accepts.js +52 -0
  2674. package/node_modules/hono/dist/helper/accepts/index.js +2 -0
  2675. package/node_modules/hono/dist/helper/adapter/index.js +37 -0
  2676. package/node_modules/hono/dist/helper/conninfo/index.js +1 -0
  2677. package/node_modules/hono/dist/helper/conninfo/types.js +1 -0
  2678. package/node_modules/hono/dist/helper/cookie/index.js +82 -0
  2679. package/node_modules/hono/dist/helper/css/common.js +178 -0
  2680. package/node_modules/hono/dist/helper/css/index.js +135 -0
  2681. package/node_modules/hono/dist/helper/dev/index.js +50 -0
  2682. package/node_modules/hono/dist/helper/factory/index.js +30 -0
  2683. package/node_modules/hono/dist/helper/html/index.js +32 -0
  2684. package/node_modules/hono/dist/helper/proxy/index.js +121 -0
  2685. package/node_modules/hono/dist/helper/route/index.js +124 -0
  2686. package/node_modules/hono/dist/helper/ssg/index.js +4 -0
  2687. package/node_modules/hono/dist/helper/ssg/middleware.js +58 -0
  2688. package/node_modules/hono/dist/helper/ssg/plugins.js +66 -0
  2689. package/node_modules/hono/dist/helper/ssg/ssg.js +212 -0
  2690. package/node_modules/hono/dist/helper/ssg/utils.js +65 -0
  2691. package/node_modules/hono/dist/helper/streaming/index.js +4 -0
  2692. package/node_modules/hono/dist/helper/streaming/sse.js +57 -0
  2693. package/node_modules/hono/dist/helper/streaming/stream.js +25 -0
  2694. package/node_modules/hono/dist/helper/streaming/text.js +11 -0
  2695. package/node_modules/hono/dist/helper/streaming/utils.js +10 -0
  2696. package/node_modules/hono/dist/helper/testing/index.js +17 -0
  2697. package/node_modules/hono/dist/helper/websocket/index.js +53 -0
  2698. package/node_modules/hono/dist/hono-base.js +348 -0
  2699. package/node_modules/hono/dist/hono.js +28 -0
  2700. package/node_modules/hono/dist/http-exception.js +55 -0
  2701. package/node_modules/hono/dist/index.js +20 -0
  2702. package/node_modules/hono/dist/jsx/base.js +251 -0
  2703. package/node_modules/hono/dist/jsx/children.js +17 -0
  2704. package/node_modules/hono/dist/jsx/components.js +145 -0
  2705. package/node_modules/hono/dist/jsx/constants.js +9 -0
  2706. package/node_modules/hono/dist/jsx/context.js +165 -0
  2707. package/node_modules/hono/dist/jsx/dom/client.js +50 -0
  2708. package/node_modules/hono/dist/jsx/dom/components.js +24 -0
  2709. package/node_modules/hono/dist/jsx/dom/context.js +41 -0
  2710. package/node_modules/hono/dist/jsx/dom/css.js +145 -0
  2711. package/node_modules/hono/dist/jsx/dom/hooks/index.js +60 -0
  2712. package/node_modules/hono/dist/jsx/dom/index.js +79 -0
  2713. package/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +290 -0
  2714. package/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +15 -0
  2715. package/node_modules/hono/dist/jsx/dom/jsx-runtime.js +2 -0
  2716. package/node_modules/hono/dist/jsx/dom/render.js +516 -0
  2717. package/node_modules/hono/dist/jsx/dom/server.js +37 -0
  2718. package/node_modules/hono/dist/jsx/dom/utils.js +8 -0
  2719. package/node_modules/hono/dist/jsx/hooks/index.js +259 -0
  2720. package/node_modules/hono/dist/jsx/index.js +50 -0
  2721. package/node_modules/hono/dist/jsx/intrinsic-element/common.js +22 -0
  2722. package/node_modules/hono/dist/jsx/intrinsic-element/components.js +124 -0
  2723. package/node_modules/hono/dist/jsx/intrinsic-elements.js +1 -0
  2724. package/node_modules/hono/dist/jsx/jsx-dev-runtime.js +14 -0
  2725. package/node_modules/hono/dist/jsx/jsx-runtime.js +31 -0
  2726. package/node_modules/hono/dist/jsx/streaming.js +132 -0
  2727. package/node_modules/hono/dist/jsx/types.js +1 -0
  2728. package/node_modules/hono/dist/jsx/utils.js +112 -0
  2729. package/node_modules/hono/dist/middleware/basic-auth/index.js +99 -0
  2730. package/node_modules/hono/dist/middleware/bearer-auth/index.js +96 -0
  2731. package/node_modules/hono/dist/middleware/body-limit/index.js +68 -0
  2732. package/node_modules/hono/dist/middleware/cache/index.js +172 -0
  2733. package/node_modules/hono/dist/middleware/combine/index.js +136 -0
  2734. package/node_modules/hono/dist/middleware/compress/index.js +80 -0
  2735. package/node_modules/hono/dist/middleware/context-storage/index.js +53 -0
  2736. package/node_modules/hono/dist/middleware/cors/index.js +108 -0
  2737. package/node_modules/hono/dist/middleware/csrf/index.js +105 -0
  2738. package/node_modules/hono/dist/middleware/etag/digest.js +61 -0
  2739. package/node_modules/hono/dist/middleware/etag/index.js +77 -0
  2740. package/node_modules/hono/dist/middleware/ip-restriction/index.js +167 -0
  2741. package/node_modules/hono/dist/middleware/jsx-renderer/index.js +101 -0
  2742. package/node_modules/hono/dist/middleware/jwk/index.js +2 -0
  2743. package/node_modules/hono/dist/middleware/jwk/jwk.js +121 -0
  2744. package/node_modules/hono/dist/middleware/jwt/index.js +3 -0
  2745. package/node_modules/hono/dist/middleware/jwt/jwt.js +119 -0
  2746. package/node_modules/hono/dist/middleware/language/index.js +2 -0
  2747. package/node_modules/hono/dist/middleware/language/language.js +198 -0
  2748. package/node_modules/hono/dist/middleware/logger/index.js +50 -0
  2749. package/node_modules/hono/dist/middleware/method-not-allowed/index.js +83 -0
  2750. package/node_modules/hono/dist/middleware/method-override/index.js +104 -0
  2751. package/node_modules/hono/dist/middleware/powered-by/index.js +24 -0
  2752. package/node_modules/hono/dist/middleware/pretty-json/index.js +40 -0
  2753. package/node_modules/hono/dist/middleware/request-id/index.js +2 -0
  2754. package/node_modules/hono/dist/middleware/request-id/request-id.js +34 -0
  2755. package/node_modules/hono/dist/middleware/secure-headers/index.js +2 -0
  2756. package/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +1 -0
  2757. package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +164 -0
  2758. package/node_modules/hono/dist/middleware/serve-static/index.js +60 -0
  2759. package/node_modules/hono/dist/middleware/serve-static/path.js +16 -0
  2760. package/node_modules/hono/dist/middleware/timeout/index.js +42 -0
  2761. package/node_modules/hono/dist/middleware/timing/index.js +2 -0
  2762. package/node_modules/hono/dist/middleware/timing/timing.js +184 -0
  2763. package/node_modules/hono/dist/middleware/trailing-slash/index.js +87 -0
  2764. package/node_modules/hono/dist/preset/quick.js +18 -0
  2765. package/node_modules/hono/dist/preset/tiny.js +15 -0
  2766. package/node_modules/hono/dist/request/constants.js +4 -0
  2767. package/node_modules/hono/dist/request.js +335 -0
  2768. package/node_modules/hono/dist/router/linear-router/index.js +2 -0
  2769. package/node_modules/hono/dist/router/linear-router/router.js +96 -0
  2770. package/node_modules/hono/dist/router/pattern-router/index.js +2 -0
  2771. package/node_modules/hono/dist/router/pattern-router/router.js +41 -0
  2772. package/node_modules/hono/dist/router/reg-exp-router/index.js +3 -0
  2773. package/node_modules/hono/dist/router/reg-exp-router/matcher.js +19 -0
  2774. package/node_modules/hono/dist/router/reg-exp-router/node.js +91 -0
  2775. package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +94 -0
  2776. package/node_modules/hono/dist/router/reg-exp-router/router.js +101 -0
  2777. package/node_modules/hono/dist/router/reg-exp-router/trie.js +73 -0
  2778. package/node_modules/hono/dist/router/smart-router/index.js +2 -0
  2779. package/node_modules/hono/dist/router/smart-router/router.js +49 -0
  2780. package/node_modules/hono/dist/router/trie-router/index.js +2 -0
  2781. package/node_modules/hono/dist/router/trie-router/node.js +134 -0
  2782. package/node_modules/hono/dist/router/trie-router/router.js +15 -0
  2783. package/node_modules/hono/dist/router/utils.js +4 -0
  2784. package/node_modules/hono/dist/router.js +35 -0
  2785. package/node_modules/hono/dist/types/package.json +3 -0
  2786. package/node_modules/hono/dist/types.js +4 -0
  2787. package/node_modules/hono/dist/utils/accept.js +193 -0
  2788. package/node_modules/hono/dist/utils/basic-auth.js +20 -0
  2789. package/node_modules/hono/dist/utils/body.js +96 -0
  2790. package/node_modules/hono/dist/utils/buffer.js +51 -0
  2791. package/node_modules/hono/dist/utils/color.js +37 -0
  2792. package/node_modules/hono/dist/utils/compress.js +11 -0
  2793. package/node_modules/hono/dist/utils/concurrent.js +30 -0
  2794. package/node_modules/hono/dist/utils/constants.js +7 -0
  2795. package/node_modules/hono/dist/utils/cookie.js +125 -0
  2796. package/node_modules/hono/dist/utils/crypto.js +34 -0
  2797. package/node_modules/hono/dist/utils/encode.js +33 -0
  2798. package/node_modules/hono/dist/utils/filepath.js +25 -0
  2799. package/node_modules/hono/dist/utils/handler.js +12 -0
  2800. package/node_modules/hono/dist/utils/headers.js +1 -0
  2801. package/node_modules/hono/dist/utils/html.js +103 -0
  2802. package/node_modules/hono/dist/utils/http-status.js +1 -0
  2803. package/node_modules/hono/dist/utils/ipaddr.js +238 -0
  2804. package/node_modules/hono/dist/utils/jwt/index.js +14 -0
  2805. package/node_modules/hono/dist/utils/jwt/jwa.js +24 -0
  2806. package/node_modules/hono/dist/utils/jwt/jws.js +133 -0
  2807. package/node_modules/hono/dist/utils/jwt/jwt.js +130 -0
  2808. package/node_modules/hono/dist/utils/jwt/types.js +108 -0
  2809. package/node_modules/hono/dist/utils/jwt/utf8.js +9 -0
  2810. package/node_modules/hono/dist/utils/mime.js +77 -0
  2811. package/node_modules/hono/dist/utils/stream.js +88 -0
  2812. package/node_modules/hono/dist/utils/types.js +1 -0
  2813. package/node_modules/hono/dist/utils/url.js +201 -0
  2814. package/node_modules/hono/dist/validator/index.js +2 -0
  2815. package/node_modules/hono/dist/validator/utils.js +1 -0
  2816. package/node_modules/hono/dist/validator/validator.js +64 -0
  2817. package/node_modules/hono/package.json +706 -0
  2818. package/node_modules/http-errors/index.js +290 -0
  2819. package/node_modules/http-errors/package.json +54 -0
  2820. package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  2821. package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  2822. package/node_modules/iconv-lite/encodings/index.js +23 -0
  2823. package/node_modules/iconv-lite/encodings/internal.js +218 -0
  2824. package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  2825. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  2826. package/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
  2827. package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  2828. package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  2829. package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  2830. package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  2831. package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  2832. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  2833. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  2834. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  2835. package/node_modules/iconv-lite/encodings/utf16.js +187 -0
  2836. package/node_modules/iconv-lite/encodings/utf32.js +314 -0
  2837. package/node_modules/iconv-lite/encodings/utf7.js +283 -0
  2838. package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  2839. package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  2840. package/node_modules/iconv-lite/lib/index.js +182 -0
  2841. package/node_modules/iconv-lite/lib/streams.js +105 -0
  2842. package/node_modules/iconv-lite/package.json +70 -0
  2843. package/node_modules/inherits/inherits.js +9 -0
  2844. package/node_modules/inherits/inherits_browser.js +27 -0
  2845. package/node_modules/inherits/package.json +29 -0
  2846. package/node_modules/ip-address/dist/address-error.js +12 -0
  2847. package/node_modules/ip-address/dist/common.js +154 -0
  2848. package/node_modules/ip-address/dist/ip-address.js +35 -0
  2849. package/node_modules/ip-address/dist/ipv4.js +595 -0
  2850. package/node_modules/ip-address/dist/ipv6.js +1458 -0
  2851. package/node_modules/ip-address/dist/v4/constants.js +51 -0
  2852. package/node_modules/ip-address/dist/v6/constants.js +128 -0
  2853. package/node_modules/ip-address/dist/v6/helpers.js +54 -0
  2854. package/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
  2855. package/node_modules/ip-address/package.json +90 -0
  2856. package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
  2857. package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
  2858. package/node_modules/ipaddr.js/package.json +35 -0
  2859. package/node_modules/is-promise/index.js +6 -0
  2860. package/node_modules/is-promise/index.mjs +3 -0
  2861. package/node_modules/is-promise/package.json +30 -0
  2862. package/node_modules/isexe/.npmignore +2 -0
  2863. package/node_modules/isexe/index.js +57 -0
  2864. package/node_modules/isexe/mode.js +41 -0
  2865. package/node_modules/isexe/package.json +31 -0
  2866. package/node_modules/isexe/windows.js +42 -0
  2867. package/node_modules/jose/dist/webapi/index.js +70 -0
  2868. package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +7 -0
  2869. package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +26 -0
  2870. package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +15 -0
  2871. package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +35 -0
  2872. package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +40 -0
  2873. package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +105 -0
  2874. package/node_modules/jose/dist/webapi/jwk/embedded.js +30 -0
  2875. package/node_modules/jose/dist/webapi/jwk/thumbprint.js +55 -0
  2876. package/node_modules/jose/dist/webapi/jwks/local.js +59 -0
  2877. package/node_modules/jose/dist/webapi/jwks/remote.js +101 -0
  2878. package/node_modules/jose/dist/webapi/jws/compact/sign.js +20 -0
  2879. package/node_modules/jose/dist/webapi/jws/compact/verify.js +8 -0
  2880. package/node_modules/jose/dist/webapi/jws/flattened/sign.js +23 -0
  2881. package/node_modules/jose/dist/webapi/jws/flattened/verify.js +12 -0
  2882. package/node_modules/jose/dist/webapi/jws/general/sign.js +58 -0
  2883. package/node_modules/jose/dist/webapi/jws/general/verify.js +48 -0
  2884. package/node_modules/jose/dist/webapi/jwt/decrypt.js +13 -0
  2885. package/node_modules/jose/dist/webapi/jwt/encrypt.js +45 -0
  2886. package/node_modules/jose/dist/webapi/jwt/sign.js +19 -0
  2887. package/node_modules/jose/dist/webapi/jwt/unsecured.js +34 -0
  2888. package/node_modules/jose/dist/webapi/jwt/verify.js +13 -0
  2889. package/node_modules/jose/dist/webapi/key/export.js +35 -0
  2890. package/node_modules/jose/dist/webapi/key/generate_key_pair.js +35 -0
  2891. package/node_modules/jose/dist/webapi/key/generate_secret.js +36 -0
  2892. package/node_modules/jose/dist/webapi/key/import.js +53 -0
  2893. package/node_modules/jose/dist/webapi/lib/asn1.js +138 -0
  2894. package/node_modules/jose/dist/webapi/lib/buffer_utils.js +75 -0
  2895. package/node_modules/jose/dist/webapi/lib/content_encryption.js +90 -0
  2896. package/node_modules/jose/dist/webapi/lib/deflate.js +40 -0
  2897. package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +116 -0
  2898. package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +187 -0
  2899. package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +75 -0
  2900. package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +74 -0
  2901. package/node_modules/jose/dist/webapi/lib/jws_sign.js +46 -0
  2902. package/node_modules/jose/dist/webapi/lib/jws_verify.js +86 -0
  2903. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +146 -0
  2904. package/node_modules/jose/dist/webapi/lib/key.js +155 -0
  2905. package/node_modules/jose/dist/webapi/lib/key_algorithm.js +15 -0
  2906. package/node_modules/jose/dist/webapi/lib/key_descriptor.js +9 -0
  2907. package/node_modules/jose/dist/webapi/lib/key_management.js +196 -0
  2908. package/node_modules/jose/dist/webapi/lib/validate.js +122 -0
  2909. package/node_modules/jose/dist/webapi/util/base64url.js +16 -0
  2910. package/node_modules/jose/dist/webapi/util/decode_jwt.js +33 -0
  2911. package/node_modules/jose/dist/webapi/util/decode_protected_header.js +19 -0
  2912. package/node_modules/jose/dist/webapi/util/errors.js +109 -0
  2913. package/node_modules/jose/package.json +134 -0
  2914. package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  2915. package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  2916. package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  2917. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  2918. package/node_modules/json-schema-traverse/index.js +93 -0
  2919. package/node_modules/json-schema-traverse/package.json +43 -0
  2920. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  2921. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  2922. package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  2923. package/node_modules/json-schema-typed/draft_07.js +328 -0
  2924. package/node_modules/json-schema-typed/draft_2019_09.js +349 -0
  2925. package/node_modules/json-schema-typed/draft_2020_12.js +352 -0
  2926. package/node_modules/json-schema-typed/package.json +44 -0
  2927. package/node_modules/math-intrinsics/.eslintrc +16 -0
  2928. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  2929. package/node_modules/math-intrinsics/abs.js +4 -0
  2930. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  2931. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  2932. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  2933. package/node_modules/math-intrinsics/floor.js +4 -0
  2934. package/node_modules/math-intrinsics/isFinite.js +12 -0
  2935. package/node_modules/math-intrinsics/isInteger.js +16 -0
  2936. package/node_modules/math-intrinsics/isNaN.js +6 -0
  2937. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  2938. package/node_modules/math-intrinsics/max.js +4 -0
  2939. package/node_modules/math-intrinsics/min.js +4 -0
  2940. package/node_modules/math-intrinsics/mod.js +9 -0
  2941. package/node_modules/math-intrinsics/package.json +86 -0
  2942. package/node_modules/math-intrinsics/pow.js +4 -0
  2943. package/node_modules/math-intrinsics/round.js +4 -0
  2944. package/node_modules/math-intrinsics/sign.js +11 -0
  2945. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  2946. package/node_modules/media-typer/index.js +135 -0
  2947. package/node_modules/media-typer/package.json +37 -0
  2948. package/node_modules/merge-descriptors/index.js +26 -0
  2949. package/node_modules/merge-descriptors/package.json +50 -0
  2950. package/node_modules/mime-db/db.json +9342 -0
  2951. package/node_modules/mime-db/index.js +12 -0
  2952. package/node_modules/mime-db/package.json +56 -0
  2953. package/node_modules/mime-types/index.js +211 -0
  2954. package/node_modules/mime-types/mimeScore.js +57 -0
  2955. package/node_modules/mime-types/package.json +49 -0
  2956. package/node_modules/ms/index.js +162 -0
  2957. package/node_modules/ms/package.json +38 -0
  2958. package/node_modules/negotiator/index.js +83 -0
  2959. package/node_modules/negotiator/lib/accept.js +54 -0
  2960. package/node_modules/negotiator/lib/charset.js +145 -0
  2961. package/node_modules/negotiator/lib/encoding.js +184 -0
  2962. package/node_modules/negotiator/lib/language.js +158 -0
  2963. package/node_modules/negotiator/lib/mediaType.js +176 -0
  2964. package/node_modules/negotiator/node_modules/content-type/dist/index.js +176 -0
  2965. package/node_modules/negotiator/node_modules/content-type/package.json +52 -0
  2966. package/node_modules/negotiator/package.json +49 -0
  2967. package/node_modules/object-assign/index.js +90 -0
  2968. package/node_modules/object-assign/package.json +42 -0
  2969. package/node_modules/object-inspect/.eslintrc +53 -0
  2970. package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
  2971. package/node_modules/object-inspect/.nycrc +13 -0
  2972. package/node_modules/object-inspect/example/all.js +23 -0
  2973. package/node_modules/object-inspect/example/circular.js +6 -0
  2974. package/node_modules/object-inspect/example/fn.js +5 -0
  2975. package/node_modules/object-inspect/example/inspect.js +10 -0
  2976. package/node_modules/object-inspect/index.js +544 -0
  2977. package/node_modules/object-inspect/package-support.json +20 -0
  2978. package/node_modules/object-inspect/package.json +105 -0
  2979. package/node_modules/object-inspect/test-core-js.js +26 -0
  2980. package/node_modules/object-inspect/util.inspect.js +1 -0
  2981. package/node_modules/on-finished/index.js +234 -0
  2982. package/node_modules/on-finished/package.json +39 -0
  2983. package/node_modules/once/once.js +42 -0
  2984. package/node_modules/once/package.json +33 -0
  2985. package/node_modules/parseurl/index.js +158 -0
  2986. package/node_modules/parseurl/package.json +40 -0
  2987. package/node_modules/path-key/index.js +16 -0
  2988. package/node_modules/path-key/package.json +39 -0
  2989. package/node_modules/path-to-regexp/dist/index.js +431 -0
  2990. package/node_modules/path-to-regexp/package.json +64 -0
  2991. package/node_modules/pkce-challenge/dist/index.browser.js +75 -0
  2992. package/node_modules/pkce-challenge/dist/index.node.cjs +83 -0
  2993. package/node_modules/pkce-challenge/dist/index.node.d.cts +19 -0
  2994. package/node_modules/pkce-challenge/dist/index.node.js +78 -0
  2995. package/node_modules/pkce-challenge/package.json +59 -0
  2996. package/node_modules/proxy-addr/index.js +359 -0
  2997. package/node_modules/proxy-addr/package.json +51 -0
  2998. package/node_modules/pvtsutils/build/index.es.js +393 -0
  2999. package/node_modules/pvtsutils/build/index.js +399 -0
  3000. package/node_modules/pvtsutils/package.json +76 -0
  3001. package/node_modules/pvutils/build/utils.es.js +340 -0
  3002. package/node_modules/pvutils/build/utils.js +361 -0
  3003. package/node_modules/pvutils/package.json +63 -0
  3004. package/node_modules/qs/.editorconfig +46 -0
  3005. package/node_modules/qs/.github/FUNDING.yml +12 -0
  3006. package/node_modules/qs/.nycrc +13 -0
  3007. package/node_modules/qs/dist/qs.js +141 -0
  3008. package/node_modules/qs/eslint.config.mjs +57 -0
  3009. package/node_modules/qs/lib/formats.js +23 -0
  3010. package/node_modules/qs/lib/index.js +11 -0
  3011. package/node_modules/qs/lib/parse.js +413 -0
  3012. package/node_modules/qs/lib/stringify.js +378 -0
  3013. package/node_modules/qs/lib/utils.js +388 -0
  3014. package/node_modules/qs/package.json +95 -0
  3015. package/node_modules/range-parser/index.js +181 -0
  3016. package/node_modules/range-parser/package.json +48 -0
  3017. package/node_modules/raw-body/index.js +336 -0
  3018. package/node_modules/raw-body/package.json +46 -0
  3019. package/node_modules/reflect-metadata/CopyrightNotice.txt +15 -0
  3020. package/node_modules/reflect-metadata/Reflect.js +1415 -0
  3021. package/node_modules/reflect-metadata/ReflectLite.js +1137 -0
  3022. package/node_modules/reflect-metadata/ReflectNoConflict.js +1111 -0
  3023. package/node_modules/reflect-metadata/package.json +68 -0
  3024. package/node_modules/require-from-string/index.js +34 -0
  3025. package/node_modules/require-from-string/package.json +28 -0
  3026. package/node_modules/router/index.js +748 -0
  3027. package/node_modules/router/lib/layer.js +247 -0
  3028. package/node_modules/router/lib/route.js +242 -0
  3029. package/node_modules/router/package.json +44 -0
  3030. package/node_modules/safer-buffer/dangerous.js +58 -0
  3031. package/node_modules/safer-buffer/package.json +34 -0
  3032. package/node_modules/safer-buffer/safer.js +77 -0
  3033. package/node_modules/safer-buffer/tests.js +406 -0
  3034. package/node_modules/send/index.js +997 -0
  3035. package/node_modules/send/package.json +63 -0
  3036. package/node_modules/serve-static/index.js +208 -0
  3037. package/node_modules/serve-static/package.json +44 -0
  3038. package/node_modules/setprototypeof/index.js +17 -0
  3039. package/node_modules/setprototypeof/package.json +38 -0
  3040. package/node_modules/shebang-command/index.js +19 -0
  3041. package/node_modules/shebang-command/package.json +34 -0
  3042. package/node_modules/shebang-regex/index.js +2 -0
  3043. package/node_modules/shebang-regex/package.json +35 -0
  3044. package/node_modules/side-channel/.editorconfig +9 -0
  3045. package/node_modules/side-channel/.eslintrc +12 -0
  3046. package/node_modules/side-channel/.github/FUNDING.yml +12 -0
  3047. package/node_modules/side-channel/.nycrc +13 -0
  3048. package/node_modules/side-channel/index.js +46 -0
  3049. package/node_modules/side-channel/package.json +85 -0
  3050. package/node_modules/side-channel/tsconfig.json +9 -0
  3051. package/node_modules/side-channel-list/.editorconfig +9 -0
  3052. package/node_modules/side-channel-list/.eslintrc +11 -0
  3053. package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  3054. package/node_modules/side-channel-list/.nycrc +13 -0
  3055. package/node_modules/side-channel-list/index.js +111 -0
  3056. package/node_modules/side-channel-list/package.json +77 -0
  3057. package/node_modules/side-channel-list/tsconfig.json +9 -0
  3058. package/node_modules/side-channel-map/.editorconfig +9 -0
  3059. package/node_modules/side-channel-map/.eslintrc +11 -0
  3060. package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
  3061. package/node_modules/side-channel-map/.nycrc +13 -0
  3062. package/node_modules/side-channel-map/index.js +68 -0
  3063. package/node_modules/side-channel-map/package.json +80 -0
  3064. package/node_modules/side-channel-map/tsconfig.json +9 -0
  3065. package/node_modules/side-channel-weakmap/.editorconfig +9 -0
  3066. package/node_modules/side-channel-weakmap/.eslintrc +12 -0
  3067. package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
  3068. package/node_modules/side-channel-weakmap/.nycrc +13 -0
  3069. package/node_modules/side-channel-weakmap/index.js +84 -0
  3070. package/node_modules/side-channel-weakmap/package.json +87 -0
  3071. package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
  3072. package/node_modules/statuses/codes.json +65 -0
  3073. package/node_modules/statuses/index.js +146 -0
  3074. package/node_modules/statuses/package.json +49 -0
  3075. package/node_modules/toidentifier/index.js +32 -0
  3076. package/node_modules/toidentifier/package.json +38 -0
  3077. package/node_modules/tslib/CopyrightNotice.txt +15 -0
  3078. package/node_modules/tslib/modules/index.js +70 -0
  3079. package/node_modules/tslib/modules/package.json +3 -0
  3080. package/node_modules/tslib/package.json +47 -0
  3081. package/node_modules/tslib/tslib.es6.html +1 -0
  3082. package/node_modules/tslib/tslib.es6.js +402 -0
  3083. package/node_modules/tslib/tslib.es6.mjs +401 -0
  3084. package/node_modules/tslib/tslib.html +1 -0
  3085. package/node_modules/tslib/tslib.js +484 -0
  3086. package/node_modules/tsyringe/dist/cjs/decorators/auto-injectable.js +46 -0
  3087. package/node_modules/tsyringe/dist/cjs/decorators/index.js +20 -0
  3088. package/node_modules/tsyringe/dist/cjs/decorators/inject-all-with-transform.js +13 -0
  3089. package/node_modules/tsyringe/dist/cjs/decorators/inject-all.js +12 -0
  3090. package/node_modules/tsyringe/dist/cjs/decorators/inject-with-transform.js +10 -0
  3091. package/node_modules/tsyringe/dist/cjs/decorators/inject.js +12 -0
  3092. package/node_modules/tsyringe/dist/cjs/decorators/injectable.js +21 -0
  3093. package/node_modules/tsyringe/dist/cjs/decorators/registry.js +14 -0
  3094. package/node_modules/tsyringe/dist/cjs/decorators/scoped.js +13 -0
  3095. package/node_modules/tsyringe/dist/cjs/decorators/singleton.js +11 -0
  3096. package/node_modules/tsyringe/dist/cjs/dependency-container.js +341 -0
  3097. package/node_modules/tsyringe/dist/cjs/error-helpers.js +19 -0
  3098. package/node_modules/tsyringe/dist/cjs/factories/factory-function.js +2 -0
  3099. package/node_modules/tsyringe/dist/cjs/factories/index.js +8 -0
  3100. package/node_modules/tsyringe/dist/cjs/factories/instance-caching-factory.js +12 -0
  3101. package/node_modules/tsyringe/dist/cjs/factories/instance-per-container-caching-factory.js +14 -0
  3102. package/node_modules/tsyringe/dist/cjs/factories/predicate-aware-class-factory.js +19 -0
  3103. package/node_modules/tsyringe/dist/cjs/index.js +15 -0
  3104. package/node_modules/tsyringe/dist/cjs/interceptors.js +17 -0
  3105. package/node_modules/tsyringe/dist/cjs/lazy-helpers.js +54 -0
  3106. package/node_modules/tsyringe/dist/cjs/providers/class-provider.js +7 -0
  3107. package/node_modules/tsyringe/dist/cjs/providers/factory-provider.js +7 -0
  3108. package/node_modules/tsyringe/dist/cjs/providers/index.js +12 -0
  3109. package/node_modules/tsyringe/dist/cjs/providers/injection-token.js +24 -0
  3110. package/node_modules/tsyringe/dist/cjs/providers/provider.js +14 -0
  3111. package/node_modules/tsyringe/dist/cjs/providers/token-provider.js +7 -0
  3112. package/node_modules/tsyringe/dist/cjs/providers/value-provider.js +7 -0
  3113. package/node_modules/tsyringe/dist/cjs/reflection-helpers.js +27 -0
  3114. package/node_modules/tsyringe/dist/cjs/registry-base.js +39 -0
  3115. package/node_modules/tsyringe/dist/cjs/registry.js +6 -0
  3116. package/node_modules/tsyringe/dist/cjs/resolution-context.js +8 -0
  3117. package/node_modules/tsyringe/dist/cjs/types/constructor.js +2 -0
  3118. package/node_modules/tsyringe/dist/cjs/types/dependency-container.js +2 -0
  3119. package/node_modules/tsyringe/dist/cjs/types/dictionary.js +2 -0
  3120. package/node_modules/tsyringe/dist/cjs/types/disposable.js +13 -0
  3121. package/node_modules/tsyringe/dist/cjs/types/frequency.js +2 -0
  3122. package/node_modules/tsyringe/dist/cjs/types/index.js +4 -0
  3123. package/node_modules/tsyringe/dist/cjs/types/interceptor-options.js +2 -0
  3124. package/node_modules/tsyringe/dist/cjs/types/lifecycle.js +10 -0
  3125. package/node_modules/tsyringe/dist/cjs/types/registration-options.js +2 -0
  3126. package/node_modules/tsyringe/dist/cjs/types/transform.js +2 -0
  3127. package/node_modules/tsyringe/dist/esm2015/decorators/auto-injectable.js +44 -0
  3128. package/node_modules/tsyringe/dist/esm2015/decorators/index.js +9 -0
  3129. package/node_modules/tsyringe/dist/esm2015/decorators/inject-all-with-transform.js +11 -0
  3130. package/node_modules/tsyringe/dist/esm2015/decorators/inject-all.js +10 -0
  3131. package/node_modules/tsyringe/dist/esm2015/decorators/inject-with-transform.js +8 -0
  3132. package/node_modules/tsyringe/dist/esm2015/decorators/inject.js +10 -0
  3133. package/node_modules/tsyringe/dist/esm2015/decorators/injectable.js +19 -0
  3134. package/node_modules/tsyringe/dist/esm2015/decorators/registry.js +12 -0
  3135. package/node_modules/tsyringe/dist/esm2015/decorators/scoped.js +10 -0
  3136. package/node_modules/tsyringe/dist/esm2015/decorators/singleton.js +9 -0
  3137. package/node_modules/tsyringe/dist/esm2015/dependency-container.js +338 -0
  3138. package/node_modules/tsyringe/dist/esm2015/error-helpers.js +15 -0
  3139. package/node_modules/tsyringe/dist/esm2015/factories/factory-function.js +0 -0
  3140. package/node_modules/tsyringe/dist/esm2015/factories/index.js +3 -0
  3141. package/node_modules/tsyringe/dist/esm2015/factories/instance-caching-factory.js +9 -0
  3142. package/node_modules/tsyringe/dist/esm2015/factories/instance-per-container-caching-factory.js +11 -0
  3143. package/node_modules/tsyringe/dist/esm2015/factories/predicate-aware-class-factory.js +16 -0
  3144. package/node_modules/tsyringe/dist/esm2015/index.js +9 -0
  3145. package/node_modules/tsyringe/dist/esm2015/interceptors.js +11 -0
  3146. package/node_modules/tsyringe/dist/esm2015/lazy-helpers.js +49 -0
  3147. package/node_modules/tsyringe/dist/esm2015/providers/class-provider.js +3 -0
  3148. package/node_modules/tsyringe/dist/esm2015/providers/factory-provider.js +3 -0
  3149. package/node_modules/tsyringe/dist/esm2015/providers/index.js +5 -0
  3150. package/node_modules/tsyringe/dist/esm2015/providers/injection-token.js +17 -0
  3151. package/node_modules/tsyringe/dist/esm2015/providers/provider.js +10 -0
  3152. package/node_modules/tsyringe/dist/esm2015/providers/token-provider.js +3 -0
  3153. package/node_modules/tsyringe/dist/esm2015/providers/value-provider.js +3 -0
  3154. package/node_modules/tsyringe/dist/esm2015/reflection-helpers.js +22 -0
  3155. package/node_modules/tsyringe/dist/esm2015/registry-base.js +36 -0
  3156. package/node_modules/tsyringe/dist/esm2015/registry.js +3 -0
  3157. package/node_modules/tsyringe/dist/esm2015/resolution-context.js +5 -0
  3158. package/node_modules/tsyringe/dist/esm2015/types/constructor.js +0 -0
  3159. package/node_modules/tsyringe/dist/esm2015/types/dependency-container.js +0 -0
  3160. package/node_modules/tsyringe/dist/esm2015/types/dictionary.js +0 -0
  3161. package/node_modules/tsyringe/dist/esm2015/types/disposable.js +9 -0
  3162. package/node_modules/tsyringe/dist/esm2015/types/frequency.js +0 -0
  3163. package/node_modules/tsyringe/dist/esm2015/types/index.js +1 -0
  3164. package/node_modules/tsyringe/dist/esm2015/types/interceptor-options.js +0 -0
  3165. package/node_modules/tsyringe/dist/esm2015/types/lifecycle.js +8 -0
  3166. package/node_modules/tsyringe/dist/esm2015/types/registration-options.js +0 -0
  3167. package/node_modules/tsyringe/dist/esm2015/types/transform.js +0 -0
  3168. package/node_modules/tsyringe/dist/esm5/decorators/auto-injectable.js +48 -0
  3169. package/node_modules/tsyringe/dist/esm5/decorators/index.js +9 -0
  3170. package/node_modules/tsyringe/dist/esm5/decorators/inject-all-with-transform.js +15 -0
  3171. package/node_modules/tsyringe/dist/esm5/decorators/inject-all.js +10 -0
  3172. package/node_modules/tsyringe/dist/esm5/decorators/inject-with-transform.js +12 -0
  3173. package/node_modules/tsyringe/dist/esm5/decorators/inject.js +10 -0
  3174. package/node_modules/tsyringe/dist/esm5/decorators/injectable.js +19 -0
  3175. package/node_modules/tsyringe/dist/esm5/decorators/registry.js +13 -0
  3176. package/node_modules/tsyringe/dist/esm5/decorators/scoped.js +10 -0
  3177. package/node_modules/tsyringe/dist/esm5/decorators/singleton.js +9 -0
  3178. package/node_modules/tsyringe/dist/esm5/dependency-container.js +410 -0
  3179. package/node_modules/tsyringe/dist/esm5/error-helpers.js +17 -0
  3180. package/node_modules/tsyringe/dist/esm5/factories/factory-function.js +0 -0
  3181. package/node_modules/tsyringe/dist/esm5/factories/index.js +3 -0
  3182. package/node_modules/tsyringe/dist/esm5/factories/instance-caching-factory.js +9 -0
  3183. package/node_modules/tsyringe/dist/esm5/factories/instance-per-container-caching-factory.js +11 -0
  3184. package/node_modules/tsyringe/dist/esm5/factories/predicate-aware-class-factory.js +17 -0
  3185. package/node_modules/tsyringe/dist/esm5/index.js +9 -0
  3186. package/node_modules/tsyringe/dist/esm5/interceptors.js +26 -0
  3187. package/node_modules/tsyringe/dist/esm5/lazy-helpers.js +57 -0
  3188. package/node_modules/tsyringe/dist/esm5/providers/class-provider.js +3 -0
  3189. package/node_modules/tsyringe/dist/esm5/providers/factory-provider.js +3 -0
  3190. package/node_modules/tsyringe/dist/esm5/providers/index.js +5 -0
  3191. package/node_modules/tsyringe/dist/esm5/providers/injection-token.js +17 -0
  3192. package/node_modules/tsyringe/dist/esm5/providers/provider.js +10 -0
  3193. package/node_modules/tsyringe/dist/esm5/providers/token-provider.js +3 -0
  3194. package/node_modules/tsyringe/dist/esm5/providers/value-provider.js +3 -0
  3195. package/node_modules/tsyringe/dist/esm5/reflection-helpers.js +22 -0
  3196. package/node_modules/tsyringe/dist/esm5/registry-base.js +38 -0
  3197. package/node_modules/tsyringe/dist/esm5/registry.js +10 -0
  3198. package/node_modules/tsyringe/dist/esm5/resolution-context.js +7 -0
  3199. package/node_modules/tsyringe/dist/esm5/types/constructor.js +0 -0
  3200. package/node_modules/tsyringe/dist/esm5/types/dependency-container.js +0 -0
  3201. package/node_modules/tsyringe/dist/esm5/types/dictionary.js +0 -0
  3202. package/node_modules/tsyringe/dist/esm5/types/disposable.js +9 -0
  3203. package/node_modules/tsyringe/dist/esm5/types/frequency.js +0 -0
  3204. package/node_modules/tsyringe/dist/esm5/types/index.js +1 -0
  3205. package/node_modules/tsyringe/dist/esm5/types/interceptor-options.js +0 -0
  3206. package/node_modules/tsyringe/dist/esm5/types/lifecycle.js +8 -0
  3207. package/node_modules/tsyringe/dist/esm5/types/registration-options.js +0 -0
  3208. package/node_modules/tsyringe/dist/esm5/types/transform.js +0 -0
  3209. package/node_modules/tsyringe/node_modules/tslib/CopyrightNotice.txt +15 -0
  3210. package/node_modules/tsyringe/node_modules/tslib/modules/index.js +51 -0
  3211. package/node_modules/tsyringe/node_modules/tslib/modules/package.json +3 -0
  3212. package/node_modules/tsyringe/node_modules/tslib/package.json +37 -0
  3213. package/node_modules/tsyringe/node_modules/tslib/tslib.es6.html +1 -0
  3214. package/node_modules/tsyringe/node_modules/tslib/tslib.es6.js +218 -0
  3215. package/node_modules/tsyringe/node_modules/tslib/tslib.html +1 -0
  3216. package/node_modules/tsyringe/node_modules/tslib/tslib.js +284 -0
  3217. package/node_modules/tsyringe/package.json +63 -0
  3218. package/node_modules/type-is/index.js +240 -0
  3219. package/node_modules/type-is/node_modules/content-type/dist/index.js +176 -0
  3220. package/node_modules/type-is/node_modules/content-type/package.json +52 -0
  3221. package/node_modules/type-is/package.json +51 -0
  3222. package/node_modules/unpipe/index.js +69 -0
  3223. package/node_modules/unpipe/package.json +27 -0
  3224. package/node_modules/vary/index.js +149 -0
  3225. package/node_modules/vary/package.json +43 -0
  3226. package/node_modules/which/bin/node-which +52 -0
  3227. package/node_modules/which/package.json +43 -0
  3228. package/node_modules/which/which.js +125 -0
  3229. package/node_modules/wrappy/package.json +29 -0
  3230. package/node_modules/wrappy/wrappy.js +33 -0
  3231. package/node_modules/yaml/bin.mjs +11 -0
  3232. package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
  3233. package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
  3234. package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
  3235. package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
  3236. package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
  3237. package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
  3238. package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
  3239. package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
  3240. package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
  3241. package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
  3242. package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +225 -0
  3243. package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
  3244. package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
  3245. package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
  3246. package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
  3247. package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
  3248. package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
  3249. package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  3250. package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  3251. package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  3252. package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
  3253. package/node_modules/yaml/browser/dist/errors.js +57 -0
  3254. package/node_modules/yaml/browser/dist/index.js +17 -0
  3255. package/node_modules/yaml/browser/dist/log.js +11 -0
  3256. package/node_modules/yaml/browser/dist/nodes/Alias.js +116 -0
  3257. package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
  3258. package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
  3259. package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
  3260. package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
  3261. package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
  3262. package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
  3263. package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
  3264. package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
  3265. package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
  3266. package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
  3267. package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
  3268. package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
  3269. package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
  3270. package/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
  3271. package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
  3272. package/node_modules/yaml/browser/dist/parse/parser.js +975 -0
  3273. package/node_modules/yaml/browser/dist/public-api.js +102 -0
  3274. package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
  3275. package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
  3276. package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
  3277. package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
  3278. package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
  3279. package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
  3280. package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
  3281. package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
  3282. package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
  3283. package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
  3284. package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
  3285. package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
  3286. package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
  3287. package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
  3288. package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
  3289. package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
  3290. package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
  3291. package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
  3292. package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
  3293. package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
  3294. package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
  3295. package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
  3296. package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
  3297. package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
  3298. package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
  3299. package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
  3300. package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
  3301. package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
  3302. package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
  3303. package/node_modules/yaml/browser/dist/util.js +11 -0
  3304. package/node_modules/yaml/browser/dist/visit.js +233 -0
  3305. package/node_modules/yaml/browser/index.js +5 -0
  3306. package/node_modules/yaml/browser/package.json +3 -0
  3307. package/node_modules/yaml/dist/cli.mjs +201 -0
  3308. package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
  3309. package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
  3310. package/node_modules/yaml/dist/compose/compose-node.js +112 -0
  3311. package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
  3312. package/node_modules/yaml/dist/compose/composer.js +224 -0
  3313. package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
  3314. package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
  3315. package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
  3316. package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
  3317. package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
  3318. package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +227 -0
  3319. package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
  3320. package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
  3321. package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
  3322. package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
  3323. package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
  3324. package/node_modules/yaml/dist/doc/Document.js +337 -0
  3325. package/node_modules/yaml/dist/doc/anchors.js +76 -0
  3326. package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
  3327. package/node_modules/yaml/dist/doc/createNode.js +90 -0
  3328. package/node_modules/yaml/dist/doc/directives.js +178 -0
  3329. package/node_modules/yaml/dist/errors.js +62 -0
  3330. package/node_modules/yaml/dist/index.js +50 -0
  3331. package/node_modules/yaml/dist/log.js +19 -0
  3332. package/node_modules/yaml/dist/nodes/Alias.js +118 -0
  3333. package/node_modules/yaml/dist/nodes/Collection.js +151 -0
  3334. package/node_modules/yaml/dist/nodes/Node.js +40 -0
  3335. package/node_modules/yaml/dist/nodes/Pair.js +39 -0
  3336. package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
  3337. package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
  3338. package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
  3339. package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
  3340. package/node_modules/yaml/dist/nodes/identity.js +53 -0
  3341. package/node_modules/yaml/dist/nodes/toJS.js +39 -0
  3342. package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
  3343. package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
  3344. package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
  3345. package/node_modules/yaml/dist/parse/cst.js +112 -0
  3346. package/node_modules/yaml/dist/parse/lexer.js +723 -0
  3347. package/node_modules/yaml/dist/parse/line-counter.js +41 -0
  3348. package/node_modules/yaml/dist/parse/parser.js +980 -0
  3349. package/node_modules/yaml/dist/public-api.js +107 -0
  3350. package/node_modules/yaml/dist/schema/Schema.js +39 -0
  3351. package/node_modules/yaml/dist/schema/common/map.js +19 -0
  3352. package/node_modules/yaml/dist/schema/common/null.js +17 -0
  3353. package/node_modules/yaml/dist/schema/common/seq.js +19 -0
  3354. package/node_modules/yaml/dist/schema/common/string.js +16 -0
  3355. package/node_modules/yaml/dist/schema/core/bool.js +21 -0
  3356. package/node_modules/yaml/dist/schema/core/float.js +47 -0
  3357. package/node_modules/yaml/dist/schema/core/int.js +42 -0
  3358. package/node_modules/yaml/dist/schema/core/schema.js +25 -0
  3359. package/node_modules/yaml/dist/schema/json/schema.js +64 -0
  3360. package/node_modules/yaml/dist/schema/tags.js +99 -0
  3361. package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
  3362. package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
  3363. package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
  3364. package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
  3365. package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
  3366. package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
  3367. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
  3368. package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
  3369. package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
  3370. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
  3371. package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
  3372. package/node_modules/yaml/dist/stringify/stringify.js +132 -0
  3373. package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
  3374. package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
  3375. package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
  3376. package/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
  3377. package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
  3378. package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
  3379. package/node_modules/yaml/dist/test-events.js +134 -0
  3380. package/node_modules/yaml/dist/util.js +28 -0
  3381. package/node_modules/yaml/dist/visit.js +236 -0
  3382. package/node_modules/yaml/package.json +97 -0
  3383. package/node_modules/yaml/util.js +2 -0
  3384. package/node_modules/zod/compile.cjs +96 -0
  3385. package/node_modules/zod/compile.d.cts +1 -0
  3386. package/node_modules/zod/compile.js +52 -0
  3387. package/node_modules/zod/index.cjs +52 -0
  3388. package/node_modules/zod/index.d.cts +3 -0
  3389. package/node_modules/zod/index.js +7 -0
  3390. package/node_modules/zod/locales/index.cjs +36 -0
  3391. package/node_modules/zod/locales/index.d.cts +1 -0
  3392. package/node_modules/zod/locales/index.js +1 -0
  3393. package/node_modules/zod/locales/package.json +7 -0
  3394. package/node_modules/zod/mini/index.cjs +51 -0
  3395. package/node_modules/zod/mini/index.d.cts +3 -0
  3396. package/node_modules/zod/mini/index.js +3 -0
  3397. package/node_modules/zod/mini/package.json +7 -0
  3398. package/node_modules/zod/package.json +147 -0
  3399. package/node_modules/zod/src/compile.ts +56 -0
  3400. package/node_modules/zod/src/index.ts +7 -0
  3401. package/node_modules/zod/src/locales/index.ts +1 -0
  3402. package/node_modules/zod/src/mini/index.ts +3 -0
  3403. package/node_modules/zod/src/v3/ZodError.ts +340 -0
  3404. package/node_modules/zod/src/v3/errors.ts +13 -0
  3405. package/node_modules/zod/src/v3/external.ts +6 -0
  3406. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  3407. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  3408. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  3409. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  3410. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  3411. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  3412. package/node_modules/zod/src/v3/index.ts +4 -0
  3413. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  3414. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  3415. package/node_modules/zod/src/v3/types.ts +5138 -0
  3416. package/node_modules/zod/src/v4/classic/checks.ts +33 -0
  3417. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  3418. package/node_modules/zod/src/v4/classic/compat.ts +78 -0
  3419. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  3420. package/node_modules/zod/src/v4/classic/errors.ts +97 -0
  3421. package/node_modules/zod/src/v4/classic/external.ts +57 -0
  3422. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  3423. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  3424. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  3425. package/node_modules/zod/src/v4/classic/iso.ts +20 -0
  3426. package/node_modules/zod/src/v4/classic/parse.ts +88 -0
  3427. package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  3428. package/node_modules/zod/src/v4/core/api.ts +1875 -0
  3429. package/node_modules/zod/src/v4/core/checks.ts +1266 -0
  3430. package/node_modules/zod/src/v4/core/compile.ts +2313 -0
  3431. package/node_modules/zod/src/v4/core/core.ts +230 -0
  3432. package/node_modules/zod/src/v4/core/doc.ts +52 -0
  3433. package/node_modules/zod/src/v4/core/errors.ts +543 -0
  3434. package/node_modules/zod/src/v4/core/index.ts +19 -0
  3435. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  3436. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  3437. package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  3438. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  3439. package/node_modules/zod/src/v4/core/parse.ts +309 -0
  3440. package/node_modules/zod/src/v4/core/regexes.ts +217 -0
  3441. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  3442. package/node_modules/zod/src/v4/core/schemas.ts +5192 -0
  3443. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  3444. package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  3445. package/node_modules/zod/src/v4/core/util.ts +1280 -0
  3446. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  3447. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  3448. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  3449. package/node_modules/zod/src/v4/index.ts +4 -0
  3450. package/node_modules/zod/src/v4/locales/ar.ts +120 -0
  3451. package/node_modules/zod/src/v4/locales/az.ts +116 -0
  3452. package/node_modules/zod/src/v4/locales/be.ts +188 -0
  3453. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  3454. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  3455. package/node_modules/zod/src/v4/locales/ca.ts +121 -0
  3456. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  3457. package/node_modules/zod/src/v4/locales/cs.ts +123 -0
  3458. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  3459. package/node_modules/zod/src/v4/locales/de.ts +121 -0
  3460. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  3461. package/node_modules/zod/src/v4/locales/en.ts +136 -0
  3462. package/node_modules/zod/src/v4/locales/eo.ts +123 -0
  3463. package/node_modules/zod/src/v4/locales/es.ts +145 -0
  3464. package/node_modules/zod/src/v4/locales/fa.ts +131 -0
  3465. package/node_modules/zod/src/v4/locales/fi.ts +126 -0
  3466. package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  3467. package/node_modules/zod/src/v4/locales/fr.ts +139 -0
  3468. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  3469. package/node_modules/zod/src/v4/locales/he.ts +253 -0
  3470. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  3471. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  3472. package/node_modules/zod/src/v4/locales/hu.ts +122 -0
  3473. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  3474. package/node_modules/zod/src/v4/locales/id.ts +120 -0
  3475. package/node_modules/zod/src/v4/locales/index.ts +63 -0
  3476. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  3477. package/node_modules/zod/src/v4/locales/it.ts +121 -0
  3478. package/node_modules/zod/src/v4/locales/ja.ts +119 -0
  3479. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  3480. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  3481. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  3482. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  3483. package/node_modules/zod/src/v4/locales/ko.ts +126 -0
  3484. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  3485. package/node_modules/zod/src/v4/locales/mk.ts +123 -0
  3486. package/node_modules/zod/src/v4/locales/ms.ts +120 -0
  3487. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  3488. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  3489. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  3490. package/node_modules/zod/src/v4/locales/no.ts +121 -0
  3491. package/node_modules/zod/src/v4/locales/ota.ts +122 -0
  3492. package/node_modules/zod/src/v4/locales/pl.ts +123 -0
  3493. package/node_modules/zod/src/v4/locales/ps.ts +131 -0
  3494. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  3495. package/node_modules/zod/src/v4/locales/pt.ts +159 -0
  3496. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  3497. package/node_modules/zod/src/v4/locales/ru.ts +188 -0
  3498. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  3499. package/node_modules/zod/src/v4/locales/sl.ts +123 -0
  3500. package/node_modules/zod/src/v4/locales/sv.ts +124 -0
  3501. package/node_modules/zod/src/v4/locales/ta.ts +123 -0
  3502. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  3503. package/node_modules/zod/src/v4/locales/th.ts +124 -0
  3504. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  3505. package/node_modules/zod/src/v4/locales/tr.ts +116 -0
  3506. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  3507. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  3508. package/node_modules/zod/src/v4/locales/ur.ts +124 -0
  3509. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  3510. package/node_modules/zod/src/v4/locales/vi.ts +122 -0
  3511. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  3512. package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  3513. package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  3514. package/node_modules/zod/src/v4/mini/checks.ts +33 -0
  3515. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  3516. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  3517. package/node_modules/zod/src/v4/mini/external.ts +52 -0
  3518. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  3519. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  3520. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  3521. package/node_modules/zod/src/v4/mini/parse.ts +16 -0
  3522. package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  3523. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  3524. package/node_modules/zod/v3/ZodError.cjs +167 -0
  3525. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  3526. package/node_modules/zod/v3/ZodError.js +143 -0
  3527. package/node_modules/zod/v3/errors.cjs +36 -0
  3528. package/node_modules/zod/v3/errors.d.cts +5 -0
  3529. package/node_modules/zod/v3/errors.js +9 -0
  3530. package/node_modules/zod/v3/external.cjs +41 -0
  3531. package/node_modules/zod/v3/external.d.cts +6 -0
  3532. package/node_modules/zod/v3/external.js +6 -0
  3533. package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  3534. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  3535. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  3536. package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  3537. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  3538. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  3539. package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  3540. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  3541. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  3542. package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  3543. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  3544. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  3545. package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  3546. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  3547. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  3548. package/node_modules/zod/v3/helpers/util.cjs +156 -0
  3549. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  3550. package/node_modules/zod/v3/helpers/util.js +133 -0
  3551. package/node_modules/zod/v3/index.cjs +52 -0
  3552. package/node_modules/zod/v3/index.d.cts +4 -0
  3553. package/node_modules/zod/v3/index.js +4 -0
  3554. package/node_modules/zod/v3/locales/en.cjs +112 -0
  3555. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  3556. package/node_modules/zod/v3/locales/en.js +109 -0
  3557. package/node_modules/zod/v3/package.json +7 -0
  3558. package/node_modules/zod/v3/standard-schema.cjs +21 -0
  3559. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  3560. package/node_modules/zod/v3/standard-schema.js +1 -0
  3561. package/node_modules/zod/v3/types.cjs +3798 -0
  3562. package/node_modules/zod/v3/types.d.cts +1034 -0
  3563. package/node_modules/zod/v3/types.js +3697 -0
  3564. package/node_modules/zod/v4/classic/checks.cjs +53 -0
  3565. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  3566. package/node_modules/zod/v4/classic/checks.js +1 -0
  3567. package/node_modules/zod/v4/classic/coerce.cjs +66 -0
  3568. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  3569. package/node_modules/zod/v4/classic/coerce.js +17 -0
  3570. package/node_modules/zod/v4/classic/compat.cjs +80 -0
  3571. package/node_modules/zod/v4/classic/compat.d.cts +48 -0
  3572. package/node_modules/zod/v4/classic/compat.js +31 -0
  3573. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  3574. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  3575. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  3576. package/node_modules/zod/v4/classic/errors.cjs +102 -0
  3577. package/node_modules/zod/v4/classic/errors.d.cts +29 -0
  3578. package/node_modules/zod/v4/classic/errors.js +57 -0
  3579. package/node_modules/zod/v4/classic/external.cjs +97 -0
  3580. package/node_modules/zod/v4/classic/external.d.cts +19 -0
  3581. package/node_modules/zod/v4/classic/external.js +17 -0
  3582. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  3583. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  3584. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  3585. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  3586. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  3587. package/node_modules/zod/v4/classic/in-out.js +36 -0
  3588. package/node_modules/zod/v4/classic/index.cjs +52 -0
  3589. package/node_modules/zod/v4/classic/index.d.cts +3 -0
  3590. package/node_modules/zod/v4/classic/index.js +4 -0
  3591. package/node_modules/zod/v4/classic/iso.cjs +68 -0
  3592. package/node_modules/zod/v4/classic/iso.d.cts +7 -0
  3593. package/node_modules/zod/v4/classic/iso.js +15 -0
  3594. package/node_modules/zod/v4/classic/package.json +7 -0
  3595. package/node_modules/zod/v4/classic/parse.cjs +63 -0
  3596. package/node_modules/zod/v4/classic/parse.d.cts +44 -0
  3597. package/node_modules/zod/v4/classic/parse.js +16 -0
  3598. package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  3599. package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  3600. package/node_modules/zod/v4/classic/schemas.js +1535 -0
  3601. package/node_modules/zod/v4/core/api.cjs +1269 -0
  3602. package/node_modules/zod/v4/core/api.d.cts +335 -0
  3603. package/node_modules/zod/v4/core/api.js +1107 -0
  3604. package/node_modules/zod/v4/core/checks.cjs +561 -0
  3605. package/node_modules/zod/v4/core/checks.d.cts +294 -0
  3606. package/node_modules/zod/v4/core/checks.js +516 -0
  3607. package/node_modules/zod/v4/core/compile.cjs +1908 -0
  3608. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  3609. package/node_modules/zod/v4/core/compile.js +1858 -0
  3610. package/node_modules/zod/v4/core/core.cjs +167 -0
  3611. package/node_modules/zod/v4/core/core.d.cts +82 -0
  3612. package/node_modules/zod/v4/core/core.js +141 -0
  3613. package/node_modules/zod/v4/core/doc.cjs +61 -0
  3614. package/node_modules/zod/v4/core/doc.d.cts +16 -0
  3615. package/node_modules/zod/v4/core/doc.js +38 -0
  3616. package/node_modules/zod/v4/core/errors.cjs +317 -0
  3617. package/node_modules/zod/v4/core/errors.d.cts +225 -0
  3618. package/node_modules/zod/v4/core/errors.js +267 -0
  3619. package/node_modules/zod/v4/core/index.cjs +70 -0
  3620. package/node_modules/zod/v4/core/index.d.cts +19 -0
  3621. package/node_modules/zod/v4/core/index.js +19 -0
  3622. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  3623. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  3624. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  3625. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  3626. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  3627. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  3628. package/node_modules/zod/v4/core/json-schema.cjs +21 -0
  3629. package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  3630. package/node_modules/zod/v4/core/json-schema.js +1 -0
  3631. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  3632. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  3633. package/node_modules/zod/v4/core/memoizer.js +311 -0
  3634. package/node_modules/zod/v4/core/package.json +7 -0
  3635. package/node_modules/zod/v4/core/parse.cjs +233 -0
  3636. package/node_modules/zod/v4/core/parse.d.cts +52 -0
  3637. package/node_modules/zod/v4/core/parse.js +175 -0
  3638. package/node_modules/zod/v4/core/regexes.cjs +209 -0
  3639. package/node_modules/zod/v4/core/regexes.d.cts +90 -0
  3640. package/node_modules/zod/v4/core/regexes.js +156 -0
  3641. package/node_modules/zod/v4/core/registries.cjs +75 -0
  3642. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  3643. package/node_modules/zod/v4/core/registries.js +51 -0
  3644. package/node_modules/zod/v4/core/schemas.cjs +2669 -0
  3645. package/node_modules/zod/v4/core/schemas.d.cts +1273 -0
  3646. package/node_modules/zod/v4/core/schemas.js +2606 -0
  3647. package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  3648. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  3649. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  3650. package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  3651. package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  3652. package/node_modules/zod/v4/core/to-json-schema.js +651 -0
  3653. package/node_modules/zod/v4/core/util.cjs +949 -0
  3654. package/node_modules/zod/v4/core/util.d.cts +278 -0
  3655. package/node_modules/zod/v4/core/util.js +859 -0
  3656. package/node_modules/zod/v4/core/versions.cjs +27 -0
  3657. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  3658. package/node_modules/zod/v4/core/versions.js +5 -0
  3659. package/node_modules/zod/v4/core/visit.cjs +214 -0
  3660. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  3661. package/node_modules/zod/v4/core/visit.js +169 -0
  3662. package/node_modules/zod/v4/index.cjs +51 -0
  3663. package/node_modules/zod/v4/index.d.cts +3 -0
  3664. package/node_modules/zod/v4/index.js +4 -0
  3665. package/node_modules/zod/v4/locales/ar.cjs +138 -0
  3666. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  3667. package/node_modules/zod/v4/locales/ar.js +111 -0
  3668. package/node_modules/zod/v4/locales/az.cjs +137 -0
  3669. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  3670. package/node_modules/zod/v4/locales/az.js +110 -0
  3671. package/node_modules/zod/v4/locales/be.cjs +195 -0
  3672. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  3673. package/node_modules/zod/v4/locales/be.js +168 -0
  3674. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  3675. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  3676. package/node_modules/zod/v4/locales/bg.js +125 -0
  3677. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  3678. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  3679. package/node_modules/zod/v4/locales/bn.js +113 -0
  3680. package/node_modules/zod/v4/locales/ca.cjs +139 -0
  3681. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  3682. package/node_modules/zod/v4/locales/ca.js +112 -0
  3683. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  3684. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  3685. package/node_modules/zod/v4/locales/ckb.js +133 -0
  3686. package/node_modules/zod/v4/locales/cs.cjs +143 -0
  3687. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  3688. package/node_modules/zod/v4/locales/cs.js +116 -0
  3689. package/node_modules/zod/v4/locales/da.cjs +147 -0
  3690. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  3691. package/node_modules/zod/v4/locales/da.js +120 -0
  3692. package/node_modules/zod/v4/locales/de.cjs +140 -0
  3693. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  3694. package/node_modules/zod/v4/locales/de.js +113 -0
  3695. package/node_modules/zod/v4/locales/el.cjs +139 -0
  3696. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  3697. package/node_modules/zod/v4/locales/el.js +112 -0
  3698. package/node_modules/zod/v4/locales/en.cjs +152 -0
  3699. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  3700. package/node_modules/zod/v4/locales/en.js +125 -0
  3701. package/node_modules/zod/v4/locales/eo.cjs +141 -0
  3702. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  3703. package/node_modules/zod/v4/locales/eo.js +114 -0
  3704. package/node_modules/zod/v4/locales/es.cjs +163 -0
  3705. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  3706. package/node_modules/zod/v4/locales/es.js +136 -0
  3707. package/node_modules/zod/v4/locales/fa.cjs +146 -0
  3708. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  3709. package/node_modules/zod/v4/locales/fa.js +119 -0
  3710. package/node_modules/zod/v4/locales/fi.cjs +144 -0
  3711. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  3712. package/node_modules/zod/v4/locales/fi.js +117 -0
  3713. package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  3714. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  3715. package/node_modules/zod/v4/locales/fr-CA.js +112 -0
  3716. package/node_modules/zod/v4/locales/fr.cjs +156 -0
  3717. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  3718. package/node_modules/zod/v4/locales/fr.js +129 -0
  3719. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  3720. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  3721. package/node_modules/zod/v4/locales/gu.js +113 -0
  3722. package/node_modules/zod/v4/locales/he.cjs +248 -0
  3723. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  3724. package/node_modules/zod/v4/locales/he.js +221 -0
  3725. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  3726. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  3727. package/node_modules/zod/v4/locales/hi.js +111 -0
  3728. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  3729. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  3730. package/node_modules/zod/v4/locales/hr.js +126 -0
  3731. package/node_modules/zod/v4/locales/hu.cjs +140 -0
  3732. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  3733. package/node_modules/zod/v4/locales/hu.js +113 -0
  3734. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  3735. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  3736. package/node_modules/zod/v4/locales/hy.js +158 -0
  3737. package/node_modules/zod/v4/locales/id.cjs +138 -0
  3738. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  3739. package/node_modules/zod/v4/locales/id.js +111 -0
  3740. package/node_modules/zod/v4/locales/index.cjs +152 -0
  3741. package/node_modules/zod/v4/locales/index.d.cts +63 -0
  3742. package/node_modules/zod/v4/locales/index.js +63 -0
  3743. package/node_modules/zod/v4/locales/is.cjs +141 -0
  3744. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  3745. package/node_modules/zod/v4/locales/is.js +114 -0
  3746. package/node_modules/zod/v4/locales/it.cjs +140 -0
  3747. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  3748. package/node_modules/zod/v4/locales/it.js +113 -0
  3749. package/node_modules/zod/v4/locales/ja.cjs +139 -0
  3750. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  3751. package/node_modules/zod/v4/locales/ja.js +112 -0
  3752. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  3753. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  3754. package/node_modules/zod/v4/locales/ka.js +117 -0
  3755. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  3756. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  3757. package/node_modules/zod/v4/locales/kh.js +5 -0
  3758. package/node_modules/zod/v4/locales/km.cjs +142 -0
  3759. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  3760. package/node_modules/zod/v4/locales/km.js +115 -0
  3761. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  3762. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  3763. package/node_modules/zod/v4/locales/kn.js +116 -0
  3764. package/node_modules/zod/v4/locales/ko.cjs +143 -0
  3765. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  3766. package/node_modules/zod/v4/locales/ko.js +116 -0
  3767. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  3768. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  3769. package/node_modules/zod/v4/locales/lt.js +207 -0
  3770. package/node_modules/zod/v4/locales/mk.cjs +141 -0
  3771. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  3772. package/node_modules/zod/v4/locales/mk.js +114 -0
  3773. package/node_modules/zod/v4/locales/ms.cjs +139 -0
  3774. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  3775. package/node_modules/zod/v4/locales/ms.js +112 -0
  3776. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  3777. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  3778. package/node_modules/zod/v4/locales/ne.js +111 -0
  3779. package/node_modules/zod/v4/locales/nl.cjs +142 -0
  3780. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  3781. package/node_modules/zod/v4/locales/nl.js +115 -0
  3782. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  3783. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  3784. package/node_modules/zod/v4/locales/nn.js +113 -0
  3785. package/node_modules/zod/v4/locales/no.cjs +140 -0
  3786. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  3787. package/node_modules/zod/v4/locales/no.js +113 -0
  3788. package/node_modules/zod/v4/locales/ota.cjs +141 -0
  3789. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  3790. package/node_modules/zod/v4/locales/ota.js +114 -0
  3791. package/node_modules/zod/v4/locales/package.json +7 -0
  3792. package/node_modules/zod/v4/locales/pl.cjs +141 -0
  3793. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  3794. package/node_modules/zod/v4/locales/pl.js +114 -0
  3795. package/node_modules/zod/v4/locales/ps.cjs +146 -0
  3796. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  3797. package/node_modules/zod/v4/locales/ps.js +119 -0
  3798. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  3799. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  3800. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  3801. package/node_modules/zod/v4/locales/pt.cjs +169 -0
  3802. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  3803. package/node_modules/zod/v4/locales/pt.js +142 -0
  3804. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  3805. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  3806. package/node_modules/zod/v4/locales/ro.js +122 -0
  3807. package/node_modules/zod/v4/locales/ru.cjs +195 -0
  3808. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  3809. package/node_modules/zod/v4/locales/ru.js +168 -0
  3810. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  3811. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  3812. package/node_modules/zod/v4/locales/sk.js +116 -0
  3813. package/node_modules/zod/v4/locales/sl.cjs +141 -0
  3814. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  3815. package/node_modules/zod/v4/locales/sl.js +114 -0
  3816. package/node_modules/zod/v4/locales/sv.cjs +142 -0
  3817. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  3818. package/node_modules/zod/v4/locales/sv.js +115 -0
  3819. package/node_modules/zod/v4/locales/ta.cjs +142 -0
  3820. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  3821. package/node_modules/zod/v4/locales/ta.js +115 -0
  3822. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  3823. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  3824. package/node_modules/zod/v4/locales/tg.js +117 -0
  3825. package/node_modules/zod/v4/locales/th.cjs +142 -0
  3826. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  3827. package/node_modules/zod/v4/locales/th.js +115 -0
  3828. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  3829. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  3830. package/node_modules/zod/v4/locales/tk.js +107 -0
  3831. package/node_modules/zod/v4/locales/tr.cjs +137 -0
  3832. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  3833. package/node_modules/zod/v4/locales/tr.js +110 -0
  3834. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  3835. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  3836. package/node_modules/zod/v4/locales/ua.js +5 -0
  3837. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  3838. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  3839. package/node_modules/zod/v4/locales/uk.js +113 -0
  3840. package/node_modules/zod/v4/locales/ur.cjs +142 -0
  3841. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  3842. package/node_modules/zod/v4/locales/ur.js +115 -0
  3843. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  3844. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  3845. package/node_modules/zod/v4/locales/uz.js +113 -0
  3846. package/node_modules/zod/v4/locales/vi.cjs +140 -0
  3847. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  3848. package/node_modules/zod/v4/locales/vi.js +113 -0
  3849. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  3850. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  3851. package/node_modules/zod/v4/locales/yo.js +112 -0
  3852. package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  3853. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  3854. package/node_modules/zod/v4/locales/zh-CN.js +114 -0
  3855. package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  3856. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  3857. package/node_modules/zod/v4/locales/zh-TW.js +112 -0
  3858. package/node_modules/zod/v4/mini/checks.cjs +54 -0
  3859. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  3860. package/node_modules/zod/v4/mini/checks.js +1 -0
  3861. package/node_modules/zod/v4/mini/coerce.cjs +71 -0
  3862. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  3863. package/node_modules/zod/v4/mini/coerce.js +22 -0
  3864. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  3865. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  3866. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  3867. package/node_modules/zod/v4/mini/external.cjs +95 -0
  3868. package/node_modules/zod/v4/mini/external.d.cts +16 -0
  3869. package/node_modules/zod/v4/mini/external.js +16 -0
  3870. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  3871. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  3872. package/node_modules/zod/v4/mini/in-out.js +36 -0
  3873. package/node_modules/zod/v4/mini/index.cjs +51 -0
  3874. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  3875. package/node_modules/zod/v4/mini/index.js +3 -0
  3876. package/node_modules/zod/v4/mini/iso.cjs +83 -0
  3877. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  3878. package/node_modules/zod/v4/mini/iso.js +34 -0
  3879. package/node_modules/zod/v4/mini/package.json +7 -0
  3880. package/node_modules/zod/v4/mini/parse.cjs +37 -0
  3881. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  3882. package/node_modules/zod/v4/mini/parse.js +1 -0
  3883. package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  3884. package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  3885. package/node_modules/zod/v4/mini/schemas.js +1002 -0
  3886. package/node_modules/zod/v4/package.json +7 -0
  3887. package/node_modules/zod/v4-mini/index.cjs +51 -0
  3888. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  3889. package/node_modules/zod/v4-mini/index.js +3 -0
  3890. package/node_modules/zod/v4-mini/package.json +7 -0
  3891. package/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
  3892. package/node_modules/zod-to-json-schema/.github/FUNDING.yml +1 -0
  3893. package/node_modules/zod-to-json-schema/.prettierrc.json +1 -0
  3894. package/node_modules/zod-to-json-schema/createIndex.ts +32 -0
  3895. package/node_modules/zod-to-json-schema/dist/cjs/Options.js +51 -0
  3896. package/node_modules/zod-to-json-schema/dist/cjs/Refs.js +26 -0
  3897. package/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +19 -0
  3898. package/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +12 -0
  3899. package/node_modules/zod-to-json-schema/dist/cjs/index.js +56 -0
  3900. package/node_modules/zod-to-json-schema/dist/cjs/package.json +1 -0
  3901. package/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +66 -0
  3902. package/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +2 -0
  3903. package/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +21 -0
  3904. package/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +30 -0
  3905. package/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +53 -0
  3906. package/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +9 -0
  3907. package/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +8 -0
  3908. package/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +8 -0
  3909. package/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +50 -0
  3910. package/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +11 -0
  3911. package/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +11 -0
  3912. package/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +10 -0
  3913. package/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +56 -0
  3914. package/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +25 -0
  3915. package/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +30 -0
  3916. package/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +20 -0
  3917. package/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +15 -0
  3918. package/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +14 -0
  3919. package/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +37 -0
  3920. package/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +56 -0
  3921. package/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +76 -0
  3922. package/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +25 -0
  3923. package/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +24 -0
  3924. package/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +8 -0
  3925. package/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +8 -0
  3926. package/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +65 -0
  3927. package/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +24 -0
  3928. package/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +356 -0
  3929. package/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +36 -0
  3930. package/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +10 -0
  3931. package/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +84 -0
  3932. package/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +8 -0
  3933. package/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +109 -0
  3934. package/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +90 -0
  3935. package/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
  3936. package/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
  3937. package/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
  3938. package/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
  3939. package/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
  3940. package/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
  3941. package/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
  3942. package/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
  3943. package/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
  3944. package/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
  3945. package/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
  3946. package/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
  3947. package/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
  3948. package/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
  3949. package/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
  3950. package/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
  3951. package/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
  3952. package/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
  3953. package/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
  3954. package/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
  3955. package/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
  3956. package/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
  3957. package/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
  3958. package/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
  3959. package/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
  3960. package/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
  3961. package/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
  3962. package/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
  3963. package/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
  3964. package/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
  3965. package/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
  3966. package/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
  3967. package/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
  3968. package/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
  3969. package/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
  3970. package/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
  3971. package/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
  3972. package/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
  3973. package/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
  3974. package/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
  3975. package/node_modules/zod-to-json-schema/package.json +85 -0
  3976. package/node_modules/zod-to-json-schema/postcjs.ts +3 -0
  3977. package/node_modules/zod-to-json-schema/postesm.ts +3 -0
  3978. package/package.json +45 -0
  3979. package/prepare.mjs +220 -0
  3980. package/runtime-package.json +23 -0
@@ -0,0 +1,3629 @@
1
+ /*!
2
+ * MIT License
3
+ *
4
+ * Copyright (c) Peculiar Ventures. All rights reserved.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ *
24
+ */
25
+ 'use strict';
26
+
27
+ var asn1Schema = require('@peculiar/asn1-schema');
28
+ var asn1X509 = require('@peculiar/asn1-x509');
29
+ var pvtsutils = require('pvtsutils');
30
+ var tslib = require('tslib');
31
+ var asn1Cms = require('@peculiar/asn1-cms');
32
+ var asn1Ecc = require('@peculiar/asn1-ecc');
33
+ var asn1Rsa = require('@peculiar/asn1-rsa');
34
+ var tsyringe = require('tsyringe');
35
+ var asnPkcs9 = require('@peculiar/asn1-pkcs9');
36
+ var asn1X509PostQuantum = require('@peculiar/asn1-x509-post-quantum');
37
+ var asn1Csr = require('@peculiar/asn1-csr');
38
+
39
+ function _interopNamespaceDefault(e) {
40
+ var n = Object.create(null);
41
+ if (e) {
42
+ Object.keys(e).forEach(function (k) {
43
+ if (k !== 'default') {
44
+ var d = Object.getOwnPropertyDescriptor(e, k);
45
+ Object.defineProperty(n, k, d.get ? d : {
46
+ enumerable: true,
47
+ get: function () { return e[k]; }
48
+ });
49
+ }
50
+ });
51
+ }
52
+ n.default = e;
53
+ return Object.freeze(n);
54
+ }
55
+
56
+ var asn1X509__namespace = /*#__PURE__*/_interopNamespaceDefault(asn1X509);
57
+ var asn1Cms__namespace = /*#__PURE__*/_interopNamespaceDefault(asn1Cms);
58
+ var asn1Ecc__namespace = /*#__PURE__*/_interopNamespaceDefault(asn1Ecc);
59
+ var asn1Rsa__namespace = /*#__PURE__*/_interopNamespaceDefault(asn1Rsa);
60
+ var asnPkcs9__namespace = /*#__PURE__*/_interopNamespaceDefault(asnPkcs9);
61
+
62
+ const diAlgorithm = "crypto.algorithm";
63
+ class AlgorithmProvider {
64
+ getAlgorithms() {
65
+ return tsyringe.container.resolveAll(diAlgorithm);
66
+ }
67
+ toAsnAlgorithm(alg) {
68
+ const algCopy = { ...alg };
69
+ if (algCopy.hash && typeof algCopy.hash === "string") {
70
+ algCopy.hash = { name: algCopy.hash };
71
+ }
72
+ for (const algorithm of this.getAlgorithms()) {
73
+ const res = algorithm.toAsnAlgorithm(algCopy);
74
+ if (res) {
75
+ return res;
76
+ }
77
+ }
78
+ if (/^[0-9.]+$/.test(alg.name)) {
79
+ const res = new asn1X509.AlgorithmIdentifier({ algorithm: alg.name });
80
+ if ("parameters" in alg) {
81
+ const unknown = alg;
82
+ res.parameters = unknown.parameters;
83
+ }
84
+ return res;
85
+ }
86
+ throw new Error("Cannot convert WebCrypto algorithm to ASN.1 algorithm");
87
+ }
88
+ toWebAlgorithm(alg) {
89
+ for (const algorithm of this.getAlgorithms()) {
90
+ const res = algorithm.toWebAlgorithm(alg);
91
+ if (res) {
92
+ return res;
93
+ }
94
+ }
95
+ const unknown = {
96
+ name: alg.algorithm,
97
+ parameters: alg.parameters,
98
+ };
99
+ return unknown;
100
+ }
101
+ }
102
+ const diAlgorithmProvider = "crypto.algorithmProvider";
103
+ tsyringe.container.registerSingleton(diAlgorithmProvider, AlgorithmProvider);
104
+
105
+ var EcAlgorithm_1;
106
+ const idVersionOne = "1.3.36.3.3.2.8.1.1";
107
+ const idBrainpoolP160r1 = `${idVersionOne}.1`;
108
+ const idBrainpoolP160t1 = `${idVersionOne}.2`;
109
+ const idBrainpoolP192r1 = `${idVersionOne}.3`;
110
+ const idBrainpoolP192t1 = `${idVersionOne}.4`;
111
+ const idBrainpoolP224r1 = `${idVersionOne}.5`;
112
+ const idBrainpoolP224t1 = `${idVersionOne}.6`;
113
+ const idBrainpoolP256r1 = `${idVersionOne}.7`;
114
+ const idBrainpoolP256t1 = `${idVersionOne}.8`;
115
+ const idBrainpoolP320r1 = `${idVersionOne}.9`;
116
+ const idBrainpoolP320t1 = `${idVersionOne}.10`;
117
+ const idBrainpoolP384r1 = `${idVersionOne}.11`;
118
+ const idBrainpoolP384t1 = `${idVersionOne}.12`;
119
+ const idBrainpoolP512r1 = `${idVersionOne}.13`;
120
+ const idBrainpoolP512t1 = `${idVersionOne}.14`;
121
+ const brainpoolP160r1 = "brainpoolP160r1";
122
+ const brainpoolP160t1 = "brainpoolP160t1";
123
+ const brainpoolP192r1 = "brainpoolP192r1";
124
+ const brainpoolP192t1 = "brainpoolP192t1";
125
+ const brainpoolP224r1 = "brainpoolP224r1";
126
+ const brainpoolP224t1 = "brainpoolP224t1";
127
+ const brainpoolP256r1 = "brainpoolP256r1";
128
+ const brainpoolP256t1 = "brainpoolP256t1";
129
+ const brainpoolP320r1 = "brainpoolP320r1";
130
+ const brainpoolP320t1 = "brainpoolP320t1";
131
+ const brainpoolP384r1 = "brainpoolP384r1";
132
+ const brainpoolP384t1 = "brainpoolP384t1";
133
+ const brainpoolP512r1 = "brainpoolP512r1";
134
+ const brainpoolP512t1 = "brainpoolP512t1";
135
+ const ECDSA = "ECDSA";
136
+ exports.EcAlgorithm = EcAlgorithm_1 = class EcAlgorithm {
137
+ toAsnAlgorithm(alg) {
138
+ switch (alg.name.toLowerCase()) {
139
+ case ECDSA.toLowerCase():
140
+ if ("hash" in alg) {
141
+ const hash = typeof alg.hash === "string" ? alg.hash : alg.hash.name;
142
+ switch (hash.toLowerCase()) {
143
+ case "sha-1":
144
+ return asn1Ecc__namespace.ecdsaWithSHA1;
145
+ case "sha-256":
146
+ return asn1Ecc__namespace.ecdsaWithSHA256;
147
+ case "sha-384":
148
+ return asn1Ecc__namespace.ecdsaWithSHA384;
149
+ case "sha-512":
150
+ return asn1Ecc__namespace.ecdsaWithSHA512;
151
+ }
152
+ }
153
+ else if ("namedCurve" in alg) {
154
+ let parameters = "";
155
+ switch (alg.namedCurve) {
156
+ case "P-256":
157
+ parameters = asn1Ecc__namespace.id_secp256r1;
158
+ break;
159
+ case "K-256":
160
+ parameters = EcAlgorithm_1.SECP256K1;
161
+ break;
162
+ case "P-384":
163
+ parameters = asn1Ecc__namespace.id_secp384r1;
164
+ break;
165
+ case "P-521":
166
+ parameters = asn1Ecc__namespace.id_secp521r1;
167
+ break;
168
+ case brainpoolP160r1:
169
+ parameters = idBrainpoolP160r1;
170
+ break;
171
+ case brainpoolP160t1:
172
+ parameters = idBrainpoolP160t1;
173
+ break;
174
+ case brainpoolP192r1:
175
+ parameters = idBrainpoolP192r1;
176
+ break;
177
+ case brainpoolP192t1:
178
+ parameters = idBrainpoolP192t1;
179
+ break;
180
+ case brainpoolP224r1:
181
+ parameters = idBrainpoolP224r1;
182
+ break;
183
+ case brainpoolP224t1:
184
+ parameters = idBrainpoolP224t1;
185
+ break;
186
+ case brainpoolP256r1:
187
+ parameters = idBrainpoolP256r1;
188
+ break;
189
+ case brainpoolP256t1:
190
+ parameters = idBrainpoolP256t1;
191
+ break;
192
+ case brainpoolP320r1:
193
+ parameters = idBrainpoolP320r1;
194
+ break;
195
+ case brainpoolP320t1:
196
+ parameters = idBrainpoolP320t1;
197
+ break;
198
+ case brainpoolP384r1:
199
+ parameters = idBrainpoolP384r1;
200
+ break;
201
+ case brainpoolP384t1:
202
+ parameters = idBrainpoolP384t1;
203
+ break;
204
+ case brainpoolP512r1:
205
+ parameters = idBrainpoolP512r1;
206
+ break;
207
+ case brainpoolP512t1:
208
+ parameters = idBrainpoolP512t1;
209
+ break;
210
+ }
211
+ if (parameters) {
212
+ return new asn1X509.AlgorithmIdentifier({
213
+ algorithm: asn1Ecc__namespace.id_ecPublicKey,
214
+ parameters: asn1Schema.AsnConvert.serialize(new asn1Ecc__namespace.ECParameters({ namedCurve: parameters })),
215
+ });
216
+ }
217
+ }
218
+ }
219
+ return null;
220
+ }
221
+ toWebAlgorithm(alg) {
222
+ switch (alg.algorithm) {
223
+ case asn1Ecc__namespace.id_ecdsaWithSHA1:
224
+ return {
225
+ name: ECDSA,
226
+ hash: { name: "SHA-1" },
227
+ };
228
+ case asn1Ecc__namespace.id_ecdsaWithSHA256:
229
+ return {
230
+ name: ECDSA,
231
+ hash: { name: "SHA-256" },
232
+ };
233
+ case asn1Ecc__namespace.id_ecdsaWithSHA384:
234
+ return {
235
+ name: ECDSA,
236
+ hash: { name: "SHA-384" },
237
+ };
238
+ case asn1Ecc__namespace.id_ecdsaWithSHA512:
239
+ return {
240
+ name: ECDSA,
241
+ hash: { name: "SHA-512" },
242
+ };
243
+ case asn1Ecc__namespace.id_ecPublicKey: {
244
+ if (!alg.parameters) {
245
+ throw new TypeError("Cannot get required parameters from EC algorithm");
246
+ }
247
+ const parameters = asn1Schema.AsnConvert.parse(alg.parameters, asn1Ecc__namespace.ECParameters);
248
+ switch (parameters.namedCurve) {
249
+ case asn1Ecc__namespace.id_secp256r1:
250
+ return {
251
+ name: ECDSA,
252
+ namedCurve: "P-256",
253
+ };
254
+ case EcAlgorithm_1.SECP256K1:
255
+ return {
256
+ name: ECDSA,
257
+ namedCurve: "K-256",
258
+ };
259
+ case asn1Ecc__namespace.id_secp384r1:
260
+ return {
261
+ name: ECDSA,
262
+ namedCurve: "P-384",
263
+ };
264
+ case asn1Ecc__namespace.id_secp521r1:
265
+ return {
266
+ name: ECDSA,
267
+ namedCurve: "P-521",
268
+ };
269
+ case idBrainpoolP160r1:
270
+ return {
271
+ name: ECDSA,
272
+ namedCurve: brainpoolP160r1,
273
+ };
274
+ case idBrainpoolP160t1:
275
+ return {
276
+ name: ECDSA,
277
+ namedCurve: brainpoolP160t1,
278
+ };
279
+ case idBrainpoolP192r1:
280
+ return {
281
+ name: ECDSA,
282
+ namedCurve: brainpoolP192r1,
283
+ };
284
+ case idBrainpoolP192t1:
285
+ return {
286
+ name: ECDSA,
287
+ namedCurve: brainpoolP192t1,
288
+ };
289
+ case idBrainpoolP224r1:
290
+ return {
291
+ name: ECDSA,
292
+ namedCurve: brainpoolP224r1,
293
+ };
294
+ case idBrainpoolP224t1:
295
+ return {
296
+ name: ECDSA,
297
+ namedCurve: brainpoolP224t1,
298
+ };
299
+ case idBrainpoolP256r1:
300
+ return {
301
+ name: ECDSA,
302
+ namedCurve: brainpoolP256r1,
303
+ };
304
+ case idBrainpoolP256t1:
305
+ return {
306
+ name: ECDSA,
307
+ namedCurve: brainpoolP256t1,
308
+ };
309
+ case idBrainpoolP320r1:
310
+ return {
311
+ name: ECDSA,
312
+ namedCurve: brainpoolP320r1,
313
+ };
314
+ case idBrainpoolP320t1:
315
+ return {
316
+ name: ECDSA,
317
+ namedCurve: brainpoolP320t1,
318
+ };
319
+ case idBrainpoolP384r1:
320
+ return {
321
+ name: ECDSA,
322
+ namedCurve: brainpoolP384r1,
323
+ };
324
+ case idBrainpoolP384t1:
325
+ return {
326
+ name: ECDSA,
327
+ namedCurve: brainpoolP384t1,
328
+ };
329
+ case idBrainpoolP512r1:
330
+ return {
331
+ name: ECDSA,
332
+ namedCurve: brainpoolP512r1,
333
+ };
334
+ case idBrainpoolP512t1:
335
+ return {
336
+ name: ECDSA,
337
+ namedCurve: brainpoolP512t1,
338
+ };
339
+ }
340
+ }
341
+ }
342
+ return null;
343
+ }
344
+ };
345
+ exports.EcAlgorithm.SECP256K1 = "1.3.132.0.10";
346
+ exports.EcAlgorithm = EcAlgorithm_1 = tslib.__decorate([
347
+ tsyringe.injectable()
348
+ ], exports.EcAlgorithm);
349
+ tsyringe.container.registerSingleton(diAlgorithm, exports.EcAlgorithm);
350
+
351
+ const NAME = Symbol("name");
352
+ const VALUE = Symbol("value");
353
+ class TextObject {
354
+ constructor(name, items = {}, value = "") {
355
+ this[NAME] = name;
356
+ this[VALUE] = value;
357
+ for (const key in items) {
358
+ this[key] = items[key];
359
+ }
360
+ }
361
+ }
362
+ TextObject.NAME = NAME;
363
+ TextObject.VALUE = VALUE;
364
+ class DefaultAlgorithmSerializer {
365
+ static toTextObject(alg) {
366
+ const obj = new TextObject("Algorithm Identifier", {}, OidSerializer.toString(alg.algorithm));
367
+ if (alg.parameters) {
368
+ switch (alg.algorithm) {
369
+ case asn1Ecc__namespace.id_ecPublicKey: {
370
+ const ecAlg = new exports.EcAlgorithm().toWebAlgorithm(alg);
371
+ if (ecAlg && "namedCurve" in ecAlg) {
372
+ obj["Named Curve"] = ecAlg.namedCurve;
373
+ }
374
+ else {
375
+ obj["Parameters"] = alg.parameters;
376
+ }
377
+ break;
378
+ }
379
+ default:
380
+ obj["Parameters"] = alg.parameters;
381
+ }
382
+ }
383
+ return obj;
384
+ }
385
+ }
386
+ class OidSerializer {
387
+ static toString(oid) {
388
+ const name = this.items[oid];
389
+ if (name) {
390
+ return name;
391
+ }
392
+ return oid;
393
+ }
394
+ }
395
+ OidSerializer.items = {
396
+ [asn1Rsa__namespace.id_sha1]: "sha1",
397
+ [asn1Rsa__namespace.id_sha224]: "sha224",
398
+ [asn1Rsa__namespace.id_sha256]: "sha256",
399
+ [asn1Rsa__namespace.id_sha384]: "sha384",
400
+ [asn1Rsa__namespace.id_sha512]: "sha512",
401
+ [asn1Rsa__namespace.id_rsaEncryption]: "rsaEncryption",
402
+ [asn1Rsa__namespace.id_sha1WithRSAEncryption]: "sha1WithRSAEncryption",
403
+ [asn1Rsa__namespace.id_sha224WithRSAEncryption]: "sha224WithRSAEncryption",
404
+ [asn1Rsa__namespace.id_sha256WithRSAEncryption]: "sha256WithRSAEncryption",
405
+ [asn1Rsa__namespace.id_sha384WithRSAEncryption]: "sha384WithRSAEncryption",
406
+ [asn1Rsa__namespace.id_sha512WithRSAEncryption]: "sha512WithRSAEncryption",
407
+ [asn1Ecc__namespace.id_ecPublicKey]: "ecPublicKey",
408
+ [asn1Ecc__namespace.id_ecdsaWithSHA1]: "ecdsaWithSHA1",
409
+ [asn1Ecc__namespace.id_ecdsaWithSHA224]: "ecdsaWithSHA224",
410
+ [asn1Ecc__namespace.id_ecdsaWithSHA256]: "ecdsaWithSHA256",
411
+ [asn1Ecc__namespace.id_ecdsaWithSHA384]: "ecdsaWithSHA384",
412
+ [asn1Ecc__namespace.id_ecdsaWithSHA512]: "ecdsaWithSHA512",
413
+ [asn1X509__namespace.id_kp_serverAuth]: "TLS WWW server authentication",
414
+ [asn1X509__namespace.id_kp_clientAuth]: "TLS WWW client authentication",
415
+ [asn1X509__namespace.id_kp_codeSigning]: "Code Signing",
416
+ [asn1X509__namespace.id_kp_emailProtection]: "E-mail Protection",
417
+ [asn1X509__namespace.id_kp_timeStamping]: "Time Stamping",
418
+ [asn1X509__namespace.id_kp_OCSPSigning]: "OCSP Signing",
419
+ [asn1Cms__namespace.id_signedData]: "Signed Data",
420
+ };
421
+ class TextConverter {
422
+ static serialize(obj) {
423
+ return this.serializeObj(obj).join("\n");
424
+ }
425
+ static pad(deep = 0) {
426
+ return "".padStart(2 * deep, " ");
427
+ }
428
+ static serializeObj(obj, deep = 0) {
429
+ const res = [];
430
+ let pad = this.pad(deep++);
431
+ let value = "";
432
+ const objValue = obj[TextObject.VALUE];
433
+ if (objValue) {
434
+ value = ` ${objValue}`;
435
+ }
436
+ res.push(`${pad}${obj[TextObject.NAME]}:${value}`);
437
+ pad = this.pad(deep);
438
+ for (const key in obj) {
439
+ if (typeof key === "symbol") {
440
+ continue;
441
+ }
442
+ const value = obj[key];
443
+ const keyValue = key ? `${key}: ` : "";
444
+ if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
445
+ res.push(`${pad}${keyValue}${value}`);
446
+ }
447
+ else if (value instanceof Date) {
448
+ res.push(`${pad}${keyValue}${value.toUTCString()}`);
449
+ }
450
+ else if (Array.isArray(value)) {
451
+ for (const obj of value) {
452
+ obj[TextObject.NAME] = key;
453
+ res.push(...this.serializeObj(obj, deep));
454
+ }
455
+ }
456
+ else if (value instanceof TextObject) {
457
+ value[TextObject.NAME] = key;
458
+ res.push(...this.serializeObj(value, deep));
459
+ }
460
+ else if (pvtsutils.BufferSourceConverter.isBufferSource(value)) {
461
+ if (key) {
462
+ res.push(`${pad}${keyValue}`);
463
+ res.push(...this.serializeBufferSource(value, deep + 1));
464
+ }
465
+ else {
466
+ res.push(...this.serializeBufferSource(value, deep));
467
+ }
468
+ }
469
+ else if ("toTextObject" in value) {
470
+ const obj = value.toTextObject();
471
+ obj[TextObject.NAME] = key;
472
+ res.push(...this.serializeObj(obj, deep));
473
+ }
474
+ else {
475
+ throw new TypeError("Cannot serialize data in text format. Unsupported type.");
476
+ }
477
+ }
478
+ return res;
479
+ }
480
+ static serializeBufferSource(buffer, deep = 0) {
481
+ const pad = this.pad(deep);
482
+ const view = pvtsutils.BufferSourceConverter.toUint8Array(buffer);
483
+ const res = [];
484
+ for (let i = 0; i < view.length;) {
485
+ const row = [];
486
+ for (let j = 0; j < 16 && i < view.length; j++) {
487
+ if (j === 8) {
488
+ row.push("");
489
+ }
490
+ const hex = view[i++].toString(16).padStart(2, "0");
491
+ row.push(hex);
492
+ }
493
+ res.push(`${pad}${row.join(" ")}`);
494
+ }
495
+ return res;
496
+ }
497
+ static serializeAlgorithm(alg) {
498
+ return this.algorithmSerializer.toTextObject(alg);
499
+ }
500
+ }
501
+ TextConverter.oidSerializer = OidSerializer;
502
+ TextConverter.algorithmSerializer = DefaultAlgorithmSerializer;
503
+
504
+ var _AsnData_rawData, _AsnData_options;
505
+ class AsnData {
506
+ get parseOptions() {
507
+ return tslib.__classPrivateFieldGet(this, _AsnData_options, "f");
508
+ }
509
+ get rawData() {
510
+ if (!tslib.__classPrivateFieldGet(this, _AsnData_rawData, "f")) {
511
+ tslib.__classPrivateFieldSet(this, _AsnData_rawData, asn1Schema.AsnConvert.serialize(this.asn), "f");
512
+ }
513
+ return tslib.__classPrivateFieldGet(this, _AsnData_rawData, "f");
514
+ }
515
+ constructor(...args) {
516
+ _AsnData_rawData.set(this, void 0);
517
+ _AsnData_options.set(this, void 0);
518
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
519
+ tslib.__classPrivateFieldSet(this, _AsnData_options, args[2], "f");
520
+ this.asn = asn1Schema.AsnConvert.parse(args[0], args[1], args[2]);
521
+ tslib.__classPrivateFieldSet(this, _AsnData_rawData, pvtsutils.BufferSourceConverter.toArrayBuffer(args[0]), "f");
522
+ this.onInit(this.asn);
523
+ }
524
+ else {
525
+ tslib.__classPrivateFieldSet(this, _AsnData_options, args[1], "f");
526
+ this.asn = args[0];
527
+ this.onInit(this.asn);
528
+ }
529
+ }
530
+ equal(data) {
531
+ if (data instanceof AsnData) {
532
+ return pvtsutils.isEqual(data.rawData, this.rawData);
533
+ }
534
+ return false;
535
+ }
536
+ toString(format = "text") {
537
+ switch (format) {
538
+ case "asn":
539
+ return asn1Schema.AsnConvert.toString(this.rawData, tslib.__classPrivateFieldGet(this, _AsnData_options, "f"));
540
+ case "text":
541
+ return TextConverter.serialize(this.toTextObject());
542
+ case "hex":
543
+ return pvtsutils.Convert.ToHex(this.rawData);
544
+ case "base64":
545
+ return pvtsutils.Convert.ToBase64(this.rawData);
546
+ case "base64url":
547
+ return pvtsutils.Convert.ToBase64Url(this.rawData);
548
+ default:
549
+ throw TypeError("Argument 'format' is unsupported value");
550
+ }
551
+ }
552
+ getTextName() {
553
+ const constructor = this.constructor;
554
+ return constructor.NAME;
555
+ }
556
+ toTextObject() {
557
+ const obj = this.toTextObjectEmpty();
558
+ obj[""] = this.rawData;
559
+ return obj;
560
+ }
561
+ toTextObjectEmpty(value) {
562
+ return new TextObject(this.getTextName(), {}, value);
563
+ }
564
+ }
565
+ _AsnData_rawData = new WeakMap(), _AsnData_options = new WeakMap();
566
+ AsnData.NAME = "ASN";
567
+
568
+ class Extension extends AsnData {
569
+ constructor(...args) {
570
+ let raw;
571
+ let options;
572
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
573
+ raw = pvtsutils.BufferSourceConverter.toArrayBuffer(args[0]);
574
+ options = args[1];
575
+ }
576
+ else {
577
+ raw = asn1Schema.AsnConvert.serialize(new asn1X509.Extension({
578
+ extnID: args[0],
579
+ critical: args[1],
580
+ extnValue: new asn1Schema.OctetString(pvtsutils.BufferSourceConverter.toArrayBuffer(args[2])),
581
+ }));
582
+ }
583
+ super(raw, asn1X509.Extension, options);
584
+ }
585
+ onInit(asn) {
586
+ this.type = asn.extnID;
587
+ this.critical = asn.critical;
588
+ this.value = asn.extnValue.buffer;
589
+ }
590
+ toTextObject() {
591
+ const obj = this.toTextObjectWithoutValue();
592
+ obj[""] = this.value;
593
+ return obj;
594
+ }
595
+ toTextObjectWithoutValue() {
596
+ const obj = this.toTextObjectEmpty(this.critical ? "critical" : undefined);
597
+ if (obj[TextObject.NAME] === Extension.NAME) {
598
+ obj[TextObject.NAME] = OidSerializer.toString(this.type);
599
+ }
600
+ return obj;
601
+ }
602
+ }
603
+
604
+ var _a;
605
+ class CryptoProvider {
606
+ static isCryptoKeyPair(data) {
607
+ return data && data.privateKey && data.publicKey;
608
+ }
609
+ static isCryptoKey(data) {
610
+ return data && data.usages && data.type && data.algorithm && data.extractable !== undefined;
611
+ }
612
+ constructor() {
613
+ this.items = new Map();
614
+ this[_a] = "CryptoProvider";
615
+ if (typeof self !== "undefined" && typeof crypto !== "undefined") {
616
+ this.set(CryptoProvider.DEFAULT, crypto);
617
+ }
618
+ else if (typeof global !== "undefined" && global.crypto && global.crypto.subtle) {
619
+ this.set(CryptoProvider.DEFAULT, global.crypto);
620
+ }
621
+ }
622
+ clear() {
623
+ this.items.clear();
624
+ }
625
+ delete(key) {
626
+ return this.items.delete(key);
627
+ }
628
+ forEach(callbackfn, thisArg) {
629
+ return this.items.forEach(callbackfn, thisArg);
630
+ }
631
+ has(key) {
632
+ return this.items.has(key);
633
+ }
634
+ get size() {
635
+ return this.items.size;
636
+ }
637
+ entries() {
638
+ return this.items.entries();
639
+ }
640
+ keys() {
641
+ return this.items.keys();
642
+ }
643
+ values() {
644
+ return this.items.values();
645
+ }
646
+ [Symbol.iterator]() {
647
+ return this.items[Symbol.iterator]();
648
+ }
649
+ get(key = CryptoProvider.DEFAULT) {
650
+ const crypto = this.items.get(key.toLowerCase());
651
+ if (!crypto) {
652
+ throw new Error(`Cannot get Crypto by name '${key}'`);
653
+ }
654
+ return crypto;
655
+ }
656
+ set(key, value) {
657
+ if (typeof key === "string") {
658
+ if (!value) {
659
+ throw new TypeError("Argument 'value' is required");
660
+ }
661
+ this.items.set(key.toLowerCase(), value);
662
+ }
663
+ else {
664
+ this.items.set(CryptoProvider.DEFAULT, key);
665
+ }
666
+ return this;
667
+ }
668
+ }
669
+ _a = Symbol.toStringTag;
670
+ CryptoProvider.DEFAULT = "default";
671
+ const cryptoProvider = new CryptoProvider();
672
+
673
+ const OID_REGEX = /^[0-2](?:\.[1-9][0-9]*)+$/;
674
+ function isOID(id) {
675
+ return new RegExp(OID_REGEX).test(id);
676
+ }
677
+ class NameIdentifier {
678
+ constructor(names = {}) {
679
+ this.items = {};
680
+ for (const id in names) {
681
+ this.register(id, names[id]);
682
+ }
683
+ }
684
+ get(idOrName) {
685
+ return this.items[idOrName] || null;
686
+ }
687
+ findId(idOrName) {
688
+ if (!isOID(idOrName)) {
689
+ return this.get(idOrName);
690
+ }
691
+ return idOrName;
692
+ }
693
+ register(id, name) {
694
+ this.items[id] = name;
695
+ this.items[name] = id;
696
+ }
697
+ }
698
+ const names = new NameIdentifier();
699
+ names.register("CN", "2.5.4.3");
700
+ names.register("L", "2.5.4.7");
701
+ names.register("ST", "2.5.4.8");
702
+ names.register("O", "2.5.4.10");
703
+ names.register("OU", "2.5.4.11");
704
+ names.register("C", "2.5.4.6");
705
+ names.register("DC", "0.9.2342.19200300.100.1.25");
706
+ names.register("E", "1.2.840.113549.1.9.1");
707
+ names.register("G", "2.5.4.42");
708
+ names.register("I", "2.5.4.43");
709
+ names.register("SN", "2.5.4.4");
710
+ names.register("T", "2.5.4.12");
711
+ function replaceUnknownCharacter(text, char) {
712
+ return `\\${pvtsutils.Convert.ToHex(pvtsutils.Convert.FromUtf8String(char)).toUpperCase()}`;
713
+ }
714
+ function escape(data) {
715
+ return data
716
+ .replace(/([,+"\\<>;])/g, "\\$1")
717
+ .replace(/^([ #])/, "\\$1")
718
+ .replace(/([ ]$)/, "\\$1")
719
+ .replace(/([\r\n\t])/, replaceUnknownCharacter);
720
+ }
721
+ class Name {
722
+ static isASCII(text) {
723
+ for (let i = 0; i < text.length; i++) {
724
+ const code = text.charCodeAt(i);
725
+ if (code > 0xff) {
726
+ return false;
727
+ }
728
+ }
729
+ return true;
730
+ }
731
+ static isPrintableString(text) {
732
+ return /^[A-Za-z0-9 '()+,-./:=?]*$/g.test(text);
733
+ }
734
+ constructor(data, extraNames = {}) {
735
+ this.extraNames = new NameIdentifier();
736
+ this.asn = new asn1X509.Name();
737
+ for (const key in extraNames) {
738
+ if (Object.prototype.hasOwnProperty.call(extraNames, key)) {
739
+ const value = extraNames[key];
740
+ this.extraNames.register(key, value);
741
+ }
742
+ }
743
+ if (typeof data === "string") {
744
+ this.asn = this.fromString(data);
745
+ }
746
+ else if (data instanceof asn1X509.Name) {
747
+ this.asn = data;
748
+ }
749
+ else if (pvtsutils.BufferSourceConverter.isBufferSource(data)) {
750
+ this.asn = asn1Schema.AsnConvert.parse(data, asn1X509.Name);
751
+ }
752
+ else {
753
+ this.asn = this.fromJSON(data);
754
+ }
755
+ }
756
+ getField(idOrName) {
757
+ const id = this.extraNames.findId(idOrName) || names.findId(idOrName);
758
+ const res = [];
759
+ for (const name of this.asn) {
760
+ for (const rdn of name) {
761
+ if (rdn.type === id) {
762
+ res.push(rdn.value.toString());
763
+ }
764
+ }
765
+ }
766
+ return res;
767
+ }
768
+ getName(idOrName) {
769
+ return this.extraNames.get(idOrName) || names.get(idOrName);
770
+ }
771
+ toString() {
772
+ return this.asn
773
+ .map((rdn) => rdn
774
+ .map((o) => {
775
+ const type = this.getName(o.type) || o.type;
776
+ const value = o.value.anyValue
777
+ ?
778
+ `#${pvtsutils.Convert.ToHex(o.value.anyValue)}`
779
+ :
780
+ escape(o.value.toString());
781
+ return `${type}=${value}`;
782
+ })
783
+ .join("+"))
784
+ .join(", ");
785
+ }
786
+ toJSON() {
787
+ var _a;
788
+ const json = [];
789
+ for (const rdn of this.asn) {
790
+ const jsonItem = {};
791
+ for (const attr of rdn) {
792
+ const type = this.getName(attr.type) || attr.type;
793
+ (_a = jsonItem[type]) !== null && _a !== void 0 ? _a : (jsonItem[type] = []);
794
+ jsonItem[type].push(attr.value.anyValue ? `#${pvtsutils.Convert.ToHex(attr.value.anyValue)}` : attr.value.toString());
795
+ }
796
+ json.push(jsonItem);
797
+ }
798
+ return json;
799
+ }
800
+ fromString(data) {
801
+ const asn = new asn1X509.Name();
802
+ const regex = /(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+"\\](?=[,+]|$))|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g;
803
+ let matches = null;
804
+ let level = ",";
805
+ while ((matches = regex.exec(`${data},`))) {
806
+ let [, type, value] = matches;
807
+ const lastChar = value[value.length - 1];
808
+ if (lastChar === "," || lastChar === "+") {
809
+ value = value.slice(0, value.length - 1);
810
+ matches[3] = lastChar;
811
+ }
812
+ const next = matches[3];
813
+ type = this.getTypeOid(type);
814
+ const attr = this.createAttribute(type, value);
815
+ if (level === "+") {
816
+ asn[asn.length - 1].push(attr);
817
+ }
818
+ else {
819
+ asn.push(new asn1X509.RelativeDistinguishedName([attr]));
820
+ }
821
+ level = next;
822
+ }
823
+ return asn;
824
+ }
825
+ fromJSON(data) {
826
+ const asn = new asn1X509.Name();
827
+ for (const item of data) {
828
+ const asnRdn = new asn1X509.RelativeDistinguishedName();
829
+ for (const type in item) {
830
+ const typeId = this.getTypeOid(type);
831
+ const values = item[type];
832
+ for (const value of values) {
833
+ const asnAttr = this.createAttribute(typeId, value);
834
+ asnRdn.push(asnAttr);
835
+ }
836
+ }
837
+ asn.push(asnRdn);
838
+ }
839
+ return asn;
840
+ }
841
+ getTypeOid(type) {
842
+ if (!/[\d.]+/.test(type)) {
843
+ type = this.getName(type) || "";
844
+ }
845
+ if (!type) {
846
+ throw new Error(`Cannot get OID for name type '${type}'`);
847
+ }
848
+ return type;
849
+ }
850
+ createAttribute(type, value) {
851
+ const attr = new asn1X509.AttributeTypeAndValue({ type });
852
+ if (typeof value === "object") {
853
+ for (const key in value) {
854
+ switch (key) {
855
+ case "ia5String":
856
+ attr.value.ia5String = value[key];
857
+ break;
858
+ case "utf8String":
859
+ attr.value.utf8String = value[key];
860
+ break;
861
+ case "universalString":
862
+ attr.value.universalString = value[key];
863
+ break;
864
+ case "bmpString":
865
+ attr.value.bmpString = value[key];
866
+ break;
867
+ case "printableString":
868
+ attr.value.printableString = value[key];
869
+ break;
870
+ }
871
+ }
872
+ }
873
+ else if (value[0] === "#") {
874
+ attr.value.anyValue = pvtsutils.Convert.FromHex(value.slice(1));
875
+ }
876
+ else {
877
+ const processedValue = this.processStringValue(value);
878
+ if (type === this.getName("E") || type === this.getName("DC")) {
879
+ attr.value.ia5String = processedValue;
880
+ }
881
+ else {
882
+ if (Name.isPrintableString(processedValue)) {
883
+ attr.value.printableString = processedValue;
884
+ }
885
+ else {
886
+ attr.value.utf8String = processedValue;
887
+ }
888
+ }
889
+ }
890
+ return attr;
891
+ }
892
+ processStringValue(value) {
893
+ const quotedMatches = /"(.*?[^\\])?"/.exec(value);
894
+ if (quotedMatches) {
895
+ value = quotedMatches[1];
896
+ }
897
+ return value
898
+ .replace(/\\0a/gi, "\n")
899
+ .replace(/\\0d/gi, "\r")
900
+ .replace(/\\0g/gi, "\t")
901
+ .replace(/\\(.)/g, "$1");
902
+ }
903
+ toArrayBuffer() {
904
+ return asn1Schema.AsnConvert.serialize(this.asn);
905
+ }
906
+ async getThumbprint(arg1, arg2) {
907
+ let crypto;
908
+ let algorithm = "SHA-1";
909
+ if (arg1) {
910
+ if (typeof arg1 === "object" && "subtle" in arg1) {
911
+ crypto = arg1;
912
+ }
913
+ else {
914
+ algorithm = arg1;
915
+ crypto = arg2;
916
+ }
917
+ }
918
+ crypto !== null && crypto !== void 0 ? crypto : (crypto = cryptoProvider.get());
919
+ return await crypto.subtle.digest(algorithm, this.toArrayBuffer());
920
+ }
921
+ }
922
+
923
+ const ERR_GN_CONSTRUCTOR = "Cannot initialize GeneralName from ASN.1 data.";
924
+ const ERR_GN_STRING_FORMAT = `${ERR_GN_CONSTRUCTOR} Unsupported string format in use.`;
925
+ const ERR_GUID = `${ERR_GN_CONSTRUCTOR} Value doesn't match to GUID regular expression.`;
926
+ const GUID_REGEX = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i;
927
+ const id_GUID = "1.3.6.1.4.1.311.25.1";
928
+ const id_UPN = "1.3.6.1.4.1.311.20.2.3";
929
+ const DNS = "dns";
930
+ const DN = "dn";
931
+ const EMAIL = "email";
932
+ const IP = "ip";
933
+ const URL = "url";
934
+ const GUID = "guid";
935
+ const UPN = "upn";
936
+ const REGISTERED_ID = "id";
937
+ class GeneralName extends AsnData {
938
+ constructor(...args) {
939
+ let name;
940
+ if (args.length === 2) {
941
+ switch (args[0]) {
942
+ case DN: {
943
+ const derName = new Name(args[1]).toArrayBuffer();
944
+ const asnName = asn1Schema.AsnConvert.parse(derName, asn1X509__namespace.Name);
945
+ name = new asn1X509__namespace.GeneralName({ directoryName: asnName });
946
+ break;
947
+ }
948
+ case DNS:
949
+ name = new asn1X509__namespace.GeneralName({ dNSName: args[1] });
950
+ break;
951
+ case EMAIL:
952
+ name = new asn1X509__namespace.GeneralName({ rfc822Name: args[1] });
953
+ break;
954
+ case GUID: {
955
+ const matches = new RegExp(GUID_REGEX, "i").exec(args[1]);
956
+ if (!matches) {
957
+ throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
958
+ }
959
+ const hex = matches
960
+ .slice(1)
961
+ .map((o, i) => {
962
+ if (i < 3) {
963
+ return pvtsutils.Convert.ToHex(new Uint8Array(pvtsutils.Convert.FromHex(o)).reverse());
964
+ }
965
+ return o;
966
+ })
967
+ .join("");
968
+ name = new asn1X509__namespace.GeneralName({
969
+ otherName: new asn1X509__namespace.OtherName({
970
+ typeId: id_GUID,
971
+ value: asn1Schema.AsnConvert.serialize(new asn1Schema.OctetString(pvtsutils.Convert.FromHex(hex))),
972
+ }),
973
+ });
974
+ break;
975
+ }
976
+ case IP:
977
+ name = new asn1X509__namespace.GeneralName({ iPAddress: args[1] });
978
+ break;
979
+ case REGISTERED_ID:
980
+ name = new asn1X509__namespace.GeneralName({ registeredID: args[1] });
981
+ break;
982
+ case UPN: {
983
+ name = new asn1X509__namespace.GeneralName({
984
+ otherName: new asn1X509__namespace.OtherName({
985
+ typeId: id_UPN,
986
+ value: asn1Schema.AsnConvert.serialize(asn1Schema.AsnUtf8StringConverter.toASN(args[1])),
987
+ }),
988
+ });
989
+ break;
990
+ }
991
+ case URL:
992
+ name = new asn1X509__namespace.GeneralName({ uniformResourceIdentifier: args[1] });
993
+ break;
994
+ default:
995
+ throw new Error("Cannot create GeneralName. Unsupported type of the name");
996
+ }
997
+ }
998
+ else if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
999
+ name = asn1Schema.AsnConvert.parse(args[0], asn1X509__namespace.GeneralName);
1000
+ }
1001
+ else {
1002
+ name = args[0];
1003
+ }
1004
+ super(name);
1005
+ }
1006
+ onInit(asn) {
1007
+ if (asn.dNSName != undefined) {
1008
+ this.type = DNS;
1009
+ this.value = asn.dNSName;
1010
+ }
1011
+ else if (asn.rfc822Name != undefined) {
1012
+ this.type = EMAIL;
1013
+ this.value = asn.rfc822Name;
1014
+ }
1015
+ else if (asn.iPAddress != undefined) {
1016
+ this.type = IP;
1017
+ this.value = asn.iPAddress;
1018
+ }
1019
+ else if (asn.uniformResourceIdentifier != undefined) {
1020
+ this.type = URL;
1021
+ this.value = asn.uniformResourceIdentifier;
1022
+ }
1023
+ else if (asn.registeredID != undefined) {
1024
+ this.type = REGISTERED_ID;
1025
+ this.value = asn.registeredID;
1026
+ }
1027
+ else if (asn.directoryName != undefined) {
1028
+ this.type = DN;
1029
+ this.value = new Name(asn.directoryName).toString();
1030
+ }
1031
+ else if (asn.otherName != undefined) {
1032
+ if (asn.otherName.typeId === id_GUID) {
1033
+ this.type = GUID;
1034
+ const guid = asn1Schema.AsnConvert.parse(asn.otherName.value, asn1Schema.OctetString);
1035
+ const matches = new RegExp(GUID_REGEX, "i").exec(pvtsutils.Convert.ToHex(guid));
1036
+ if (!matches) {
1037
+ throw new Error(ERR_GUID);
1038
+ }
1039
+ this.value = matches
1040
+ .slice(1)
1041
+ .map((o, i) => {
1042
+ if (i < 3) {
1043
+ return pvtsutils.Convert.ToHex(new Uint8Array(pvtsutils.Convert.FromHex(o)).reverse());
1044
+ }
1045
+ return o;
1046
+ })
1047
+ .join("-");
1048
+ }
1049
+ else if (asn.otherName.typeId === id_UPN) {
1050
+ this.type = UPN;
1051
+ this.value = asn1Schema.AsnConvert.parse(asn.otherName.value, asn1X509__namespace.DirectoryString).toString();
1052
+ }
1053
+ else {
1054
+ throw new Error(ERR_GN_STRING_FORMAT);
1055
+ }
1056
+ }
1057
+ else {
1058
+ throw new Error(ERR_GN_STRING_FORMAT);
1059
+ }
1060
+ }
1061
+ toJSON() {
1062
+ return {
1063
+ type: this.type,
1064
+ value: this.value,
1065
+ };
1066
+ }
1067
+ toTextObject() {
1068
+ let type;
1069
+ switch (this.type) {
1070
+ case DN:
1071
+ case DNS:
1072
+ case GUID:
1073
+ case IP:
1074
+ case REGISTERED_ID:
1075
+ case UPN:
1076
+ case URL:
1077
+ type = this.type.toUpperCase();
1078
+ break;
1079
+ case EMAIL:
1080
+ type = "Email";
1081
+ break;
1082
+ default:
1083
+ throw new Error("Unsupported GeneralName type");
1084
+ }
1085
+ let value = this.value;
1086
+ if (this.type === REGISTERED_ID) {
1087
+ value = OidSerializer.toString(value);
1088
+ }
1089
+ return new TextObject(type, undefined, value);
1090
+ }
1091
+ }
1092
+ class GeneralNames extends AsnData {
1093
+ constructor(params) {
1094
+ let names;
1095
+ if (params instanceof asn1X509__namespace.GeneralNames) {
1096
+ names = params;
1097
+ }
1098
+ else if (Array.isArray(params)) {
1099
+ const items = [];
1100
+ for (const name of params) {
1101
+ if (name instanceof asn1X509__namespace.GeneralName) {
1102
+ items.push(name);
1103
+ }
1104
+ else {
1105
+ const asnName = asn1Schema.AsnConvert.parse(new GeneralName(name.type, name.value).rawData, asn1X509__namespace.GeneralName);
1106
+ items.push(asnName);
1107
+ }
1108
+ }
1109
+ names = new asn1X509__namespace.GeneralNames(items);
1110
+ }
1111
+ else if (pvtsutils.BufferSourceConverter.isBufferSource(params)) {
1112
+ names = asn1Schema.AsnConvert.parse(params, asn1X509__namespace.GeneralNames);
1113
+ }
1114
+ else {
1115
+ throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");
1116
+ }
1117
+ super(names);
1118
+ }
1119
+ onInit(asn) {
1120
+ const items = [];
1121
+ for (const asnName of asn) {
1122
+ let name = null;
1123
+ try {
1124
+ name = new GeneralName(asnName);
1125
+ }
1126
+ catch {
1127
+ continue;
1128
+ }
1129
+ items.push(name);
1130
+ }
1131
+ this.items = items;
1132
+ }
1133
+ toJSON() {
1134
+ return this.items.map((o) => o.toJSON());
1135
+ }
1136
+ toTextObject() {
1137
+ const res = super.toTextObjectEmpty();
1138
+ for (const name of this.items) {
1139
+ const nameObj = name.toTextObject();
1140
+ let field = res[nameObj[TextObject.NAME]];
1141
+ if (!Array.isArray(field)) {
1142
+ field = [];
1143
+ res[nameObj[TextObject.NAME]] = field;
1144
+ }
1145
+ field.push(nameObj);
1146
+ }
1147
+ return res;
1148
+ }
1149
+ }
1150
+ GeneralNames.NAME = "GeneralNames";
1151
+
1152
+ const rPaddingTag = "-{5}";
1153
+ const rEolChars = "\\n";
1154
+ const rNameTag = `[^${rEolChars}]+`;
1155
+ const rBeginTag = `${rPaddingTag}BEGIN (${rNameTag}(?=${rPaddingTag}))${rPaddingTag}`;
1156
+ const rEndTag = `${rPaddingTag}END \\1${rPaddingTag}`;
1157
+ const rEolGroup = "\\n";
1158
+ const rHeaderKey = `[^:${rEolChars}]+`;
1159
+ const rHeaderValue = `(?:[^${rEolChars}]+${rEolGroup}(?: +[^${rEolChars}]+${rEolGroup})*)`;
1160
+ const rBase64Chars = "[a-zA-Z0-9=+/]+";
1161
+ const rBase64 = `(?:${rBase64Chars}${rEolGroup})+`;
1162
+ const rPem = `${rBeginTag}${rEolGroup}(?:((?:${rHeaderKey}: ${rHeaderValue})+))?${rEolGroup}?(${rBase64})${rEndTag}`;
1163
+ const rEolPattern = new RegExp(`[${rEolChars}]+`, "g");
1164
+ class PemConverter {
1165
+ static isPem(data) {
1166
+ return typeof data === "string" && new RegExp(rPem, "g").test(data.replace(/\r/g, ""));
1167
+ }
1168
+ static decodeWithHeaders(pem) {
1169
+ pem = pem.replace(/\r/g, "");
1170
+ const pattern = new RegExp(rPem, "g");
1171
+ const res = [];
1172
+ let matches = null;
1173
+ while ((matches = pattern.exec(pem))) {
1174
+ const base64 = matches[3].replace(rEolPattern, "");
1175
+ const pemStruct = {
1176
+ type: matches[1],
1177
+ headers: [],
1178
+ rawData: pvtsutils.Convert.FromBase64(base64),
1179
+ };
1180
+ const headersString = matches[2];
1181
+ if (headersString) {
1182
+ const headers = headersString.split(new RegExp(rEolGroup, "g"));
1183
+ let lastHeader = null;
1184
+ for (const header of headers) {
1185
+ const [key, value] = header.split(/:(.*)/);
1186
+ if (value === undefined) {
1187
+ if (!lastHeader) {
1188
+ throw new Error("Cannot parse PEM string. Incorrect header value");
1189
+ }
1190
+ lastHeader.value += key.trim();
1191
+ }
1192
+ else {
1193
+ if (lastHeader) {
1194
+ pemStruct.headers.push(lastHeader);
1195
+ }
1196
+ lastHeader = {
1197
+ key,
1198
+ value: value.trim(),
1199
+ };
1200
+ }
1201
+ }
1202
+ if (lastHeader) {
1203
+ pemStruct.headers.push(lastHeader);
1204
+ }
1205
+ }
1206
+ res.push(pemStruct);
1207
+ }
1208
+ return res;
1209
+ }
1210
+ static decode(pem) {
1211
+ const blocks = this.decodeWithHeaders(pem);
1212
+ return blocks.map((o) => o.rawData);
1213
+ }
1214
+ static decodeFirst(pem) {
1215
+ const items = this.decode(pem);
1216
+ if (!items.length) {
1217
+ throw new RangeError("PEM string doesn't contain any objects");
1218
+ }
1219
+ return items[0];
1220
+ }
1221
+ static encode(rawData, tag) {
1222
+ if (Array.isArray(rawData)) {
1223
+ const raws = new Array();
1224
+ if (tag) {
1225
+ rawData.forEach((element) => {
1226
+ if (!pvtsutils.BufferSourceConverter.isBufferSource(element)) {
1227
+ throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource");
1228
+ }
1229
+ raws.push(this.encodeStruct({
1230
+ type: tag,
1231
+ rawData: pvtsutils.BufferSourceConverter.toArrayBuffer(element),
1232
+ }));
1233
+ });
1234
+ }
1235
+ else {
1236
+ rawData.forEach((element) => {
1237
+ if (!("type" in element)) {
1238
+ throw new TypeError("Cannot encode array of PemStruct in PEM format. Not all items of the array are PemStrut");
1239
+ }
1240
+ raws.push(this.encodeStruct(element));
1241
+ });
1242
+ }
1243
+ return raws.join("\n");
1244
+ }
1245
+ else {
1246
+ if (!tag) {
1247
+ throw new Error("Required argument 'tag' is missed");
1248
+ }
1249
+ return this.encodeStruct({
1250
+ type: tag,
1251
+ rawData: pvtsutils.BufferSourceConverter.toArrayBuffer(rawData),
1252
+ });
1253
+ }
1254
+ }
1255
+ static encodeStruct(pem) {
1256
+ var _a;
1257
+ const upperCaseType = pem.type.toLocaleUpperCase();
1258
+ const res = [];
1259
+ res.push(`-----BEGIN ${upperCaseType}-----`);
1260
+ if ((_a = pem.headers) === null || _a === void 0 ? void 0 : _a.length) {
1261
+ for (const header of pem.headers) {
1262
+ res.push(`${header.key}: ${header.value}`);
1263
+ }
1264
+ res.push("");
1265
+ }
1266
+ const base64 = pvtsutils.Convert.ToBase64(pem.rawData);
1267
+ for (let i = 0; i < base64.length; i += 64) {
1268
+ res.push(base64.substring(i, i + 64));
1269
+ }
1270
+ res.push(`-----END ${upperCaseType}-----`);
1271
+ return res.join("\n");
1272
+ }
1273
+ }
1274
+ PemConverter.CertificateTag = "CERTIFICATE";
1275
+ PemConverter.CrlTag = "CRL";
1276
+ PemConverter.CertificateRequestTag = "CERTIFICATE REQUEST";
1277
+ PemConverter.PublicKeyTag = "PUBLIC KEY";
1278
+ PemConverter.PrivateKeyTag = "PRIVATE KEY";
1279
+
1280
+ class PemData extends AsnData {
1281
+ static isAsnEncoded(data) {
1282
+ return pvtsutils.BufferSourceConverter.isBufferSource(data) || typeof data === "string";
1283
+ }
1284
+ static toArrayBuffer(raw) {
1285
+ if (typeof raw === "string") {
1286
+ if (PemConverter.isPem(raw)) {
1287
+ return PemConverter.decode(raw)[0];
1288
+ }
1289
+ else if (pvtsutils.Convert.isHex(raw)) {
1290
+ return pvtsutils.Convert.FromHex(raw);
1291
+ }
1292
+ else if (pvtsutils.Convert.isBase64(raw)) {
1293
+ return pvtsutils.Convert.FromBase64(raw);
1294
+ }
1295
+ else if (pvtsutils.Convert.isBase64Url(raw)) {
1296
+ return pvtsutils.Convert.FromBase64Url(raw);
1297
+ }
1298
+ else {
1299
+ throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url");
1300
+ }
1301
+ }
1302
+ else {
1303
+ const buffer = pvtsutils.BufferSourceConverter.toUint8Array(raw);
1304
+ if (buffer.length > 0 && buffer[0] === 0x30) {
1305
+ return pvtsutils.BufferSourceConverter.toArrayBuffer(raw);
1306
+ }
1307
+ const stringRaw = pvtsutils.Convert.ToBinary(raw);
1308
+ if (PemConverter.isPem(stringRaw)) {
1309
+ return PemConverter.decode(stringRaw)[0];
1310
+ }
1311
+ else if (pvtsutils.Convert.isHex(stringRaw)) {
1312
+ return pvtsutils.Convert.FromHex(stringRaw);
1313
+ }
1314
+ else if (pvtsutils.Convert.isBase64(stringRaw)) {
1315
+ return pvtsutils.Convert.FromBase64(stringRaw);
1316
+ }
1317
+ else if (pvtsutils.Convert.isBase64Url(stringRaw)) {
1318
+ return pvtsutils.Convert.FromBase64Url(stringRaw);
1319
+ }
1320
+ throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url");
1321
+ }
1322
+ }
1323
+ constructor(...args) {
1324
+ if (PemData.isAsnEncoded(args[0])) {
1325
+ super(PemData.toArrayBuffer(args[0]), args[1], args[2]);
1326
+ }
1327
+ else {
1328
+ super(args[0], args[1]);
1329
+ }
1330
+ }
1331
+ toString(format = "pem") {
1332
+ switch (format) {
1333
+ case "pem":
1334
+ return PemConverter.encode(this.rawData, this.tag);
1335
+ default:
1336
+ return super.toString(format);
1337
+ }
1338
+ }
1339
+ }
1340
+
1341
+ class PublicKey extends PemData {
1342
+ static async create(data, crypto = cryptoProvider.get()) {
1343
+ if (data instanceof PublicKey) {
1344
+ return data;
1345
+ }
1346
+ else if (CryptoProvider.isCryptoKey(data)) {
1347
+ if (data.type !== "public") {
1348
+ throw new TypeError("Public key is required");
1349
+ }
1350
+ const spki = await crypto.subtle.exportKey("spki", data);
1351
+ return new PublicKey(spki);
1352
+ }
1353
+ else if (data.publicKey) {
1354
+ return data.publicKey;
1355
+ }
1356
+ else if (pvtsutils.BufferSourceConverter.isBufferSource(data)) {
1357
+ return new PublicKey(data);
1358
+ }
1359
+ else {
1360
+ throw new TypeError("Unsupported PublicKeyType");
1361
+ }
1362
+ }
1363
+ constructor(param, options) {
1364
+ if (PemData.isAsnEncoded(param)) {
1365
+ super(param, asn1X509.SubjectPublicKeyInfo, options);
1366
+ }
1367
+ else {
1368
+ super(param, options);
1369
+ }
1370
+ this.tag = PemConverter.PublicKeyTag;
1371
+ }
1372
+ async export(arg1, arg2, arg3) {
1373
+ let crypto;
1374
+ let keyUsages = ["verify"];
1375
+ let algorithm = {
1376
+ hash: "SHA-256",
1377
+ ...this.algorithm,
1378
+ };
1379
+ if (arg2) {
1380
+ algorithm = arg1;
1381
+ keyUsages = arg2;
1382
+ crypto = arg3;
1383
+ }
1384
+ else {
1385
+ crypto = arg1;
1386
+ }
1387
+ crypto !== null && crypto !== void 0 ? crypto : (crypto = cryptoProvider.get());
1388
+ let raw = this.rawData;
1389
+ const asnSpki = asn1Schema.AsnConvert.parse(this.rawData, asn1X509.SubjectPublicKeyInfo, this.parseOptions);
1390
+ if (asnSpki.algorithm.algorithm === asn1Rsa.id_RSASSA_PSS) {
1391
+ raw = convertSpkiToRsaPkcs1(asnSpki, raw);
1392
+ }
1393
+ return crypto.subtle.importKey("spki", raw, algorithm, true, keyUsages);
1394
+ }
1395
+ onInit(asn) {
1396
+ const algProv = tsyringe.container.resolve(diAlgorithmProvider);
1397
+ const algorithm = (this.algorithm = algProv.toWebAlgorithm(asn.algorithm));
1398
+ switch (asn.algorithm.algorithm) {
1399
+ case asn1Rsa.id_rsaEncryption: {
1400
+ const rsaPublicKey = asn1Schema.AsnConvert.parse(asn.subjectPublicKey, asn1Rsa.RSAPublicKey, this.parseOptions);
1401
+ const modulus = pvtsutils.BufferSourceConverter.toUint8Array(rsaPublicKey.modulus);
1402
+ algorithm.publicExponent = pvtsutils.BufferSourceConverter.toUint8Array(rsaPublicKey.publicExponent);
1403
+ algorithm.modulusLength = (!modulus[0] ? modulus.slice(1) : modulus).byteLength << 3;
1404
+ break;
1405
+ }
1406
+ }
1407
+ }
1408
+ async getThumbprint(arg1, arg2) {
1409
+ let crypto;
1410
+ let algorithm = "SHA-1";
1411
+ if (arg1) {
1412
+ if (typeof arg1 === "object" && "subtle" in arg1) {
1413
+ crypto = arg1;
1414
+ }
1415
+ else {
1416
+ algorithm = arg1;
1417
+ crypto = arg2;
1418
+ }
1419
+ }
1420
+ crypto !== null && crypto !== void 0 ? crypto : (crypto = cryptoProvider.get());
1421
+ return await crypto.subtle.digest(algorithm, this.rawData);
1422
+ }
1423
+ async getKeyIdentifier(arg1, arg2) {
1424
+ let crypto;
1425
+ let algorithm = "SHA-1";
1426
+ if (arg1) {
1427
+ if (typeof arg1 === "object" && "subtle" in arg1) {
1428
+ crypto = arg1;
1429
+ }
1430
+ else {
1431
+ algorithm = arg1;
1432
+ crypto = arg2;
1433
+ }
1434
+ }
1435
+ crypto !== null && crypto !== void 0 ? crypto : (crypto = cryptoProvider.get());
1436
+ const asn = asn1Schema.AsnConvert.parse(this.rawData, asn1X509.SubjectPublicKeyInfo, this.parseOptions);
1437
+ return await crypto.subtle.digest(algorithm, asn.subjectPublicKey);
1438
+ }
1439
+ toTextObject() {
1440
+ const obj = this.toTextObjectEmpty();
1441
+ const asn = asn1Schema.AsnConvert.parse(this.rawData, asn1X509.SubjectPublicKeyInfo, this.parseOptions);
1442
+ obj["Algorithm"] = TextConverter.serializeAlgorithm(asn.algorithm);
1443
+ switch (asn.algorithm.algorithm) {
1444
+ case asn1Ecc.id_ecPublicKey:
1445
+ obj["EC Point"] = asn.subjectPublicKey;
1446
+ break;
1447
+ case asn1Rsa.id_rsaEncryption:
1448
+ default:
1449
+ obj["Raw Data"] = asn.subjectPublicKey;
1450
+ }
1451
+ return obj;
1452
+ }
1453
+ }
1454
+ function convertSpkiToRsaPkcs1(asnSpki, raw) {
1455
+ asnSpki.algorithm = new asn1X509.AlgorithmIdentifier({
1456
+ algorithm: asn1Rsa.id_rsaEncryption,
1457
+ parameters: null,
1458
+ });
1459
+ raw = asn1Schema.AsnConvert.serialize(asnSpki);
1460
+ return raw;
1461
+ }
1462
+
1463
+ class AuthorityKeyIdentifierExtension extends Extension {
1464
+ static async create(param, critical = false, crypto = cryptoProvider.get()) {
1465
+ if ("name" in param && "serialNumber" in param) {
1466
+ return new AuthorityKeyIdentifierExtension(param, critical);
1467
+ }
1468
+ const key = await PublicKey.create(param, crypto);
1469
+ const id = await key.getKeyIdentifier(crypto);
1470
+ return new AuthorityKeyIdentifierExtension(pvtsutils.Convert.ToHex(id), critical);
1471
+ }
1472
+ constructor(...args) {
1473
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1474
+ super(args[0], args[1]);
1475
+ }
1476
+ else if (typeof args[0] === "string") {
1477
+ const value = new asn1X509__namespace.AuthorityKeyIdentifier({
1478
+ keyIdentifier: new asn1X509__namespace.KeyIdentifier(pvtsutils.Convert.FromHex(args[0])),
1479
+ });
1480
+ super(asn1X509__namespace.id_ce_authorityKeyIdentifier, args[1], asn1Schema.AsnConvert.serialize(value));
1481
+ }
1482
+ else {
1483
+ const certId = args[0];
1484
+ const certIdName = certId.name instanceof GeneralNames
1485
+ ? asn1Schema.AsnConvert.parse(certId.name.rawData, asn1X509__namespace.GeneralNames)
1486
+ : certId.name;
1487
+ const value = new asn1X509__namespace.AuthorityKeyIdentifier({
1488
+ authorityCertIssuer: certIdName,
1489
+ authorityCertSerialNumber: pvtsutils.Convert.FromHex(certId.serialNumber),
1490
+ });
1491
+ super(asn1X509__namespace.id_ce_authorityKeyIdentifier, args[1], asn1Schema.AsnConvert.serialize(value));
1492
+ }
1493
+ }
1494
+ onInit(asn) {
1495
+ super.onInit(asn);
1496
+ const aki = asn1Schema.AsnConvert.parse(asn.extnValue, asn1X509__namespace.AuthorityKeyIdentifier, this.parseOptions);
1497
+ if (aki.keyIdentifier) {
1498
+ this.keyId = pvtsutils.Convert.ToHex(aki.keyIdentifier);
1499
+ }
1500
+ if (aki.authorityCertIssuer || aki.authorityCertSerialNumber) {
1501
+ this.certId = {
1502
+ name: aki.authorityCertIssuer || [],
1503
+ serialNumber: aki.authorityCertSerialNumber
1504
+ ? pvtsutils.Convert.ToHex(aki.authorityCertSerialNumber)
1505
+ : "",
1506
+ };
1507
+ }
1508
+ }
1509
+ toTextObject() {
1510
+ const obj = this.toTextObjectWithoutValue();
1511
+ const asn = asn1Schema.AsnConvert.parse(this.value, asn1X509__namespace.AuthorityKeyIdentifier, this.parseOptions);
1512
+ if (asn.authorityCertIssuer) {
1513
+ obj["Authority Issuer"] = new GeneralNames(asn.authorityCertIssuer).toTextObject();
1514
+ }
1515
+ if (asn.authorityCertSerialNumber) {
1516
+ obj["Authority Serial Number"] = asn.authorityCertSerialNumber;
1517
+ }
1518
+ if (asn.keyIdentifier) {
1519
+ obj[""] = asn.keyIdentifier;
1520
+ }
1521
+ return obj;
1522
+ }
1523
+ }
1524
+ AuthorityKeyIdentifierExtension.NAME = "Authority Key Identifier";
1525
+
1526
+ class BasicConstraintsExtension extends Extension {
1527
+ constructor(...args) {
1528
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1529
+ super(args[0], args[1]);
1530
+ const value = asn1Schema.AsnConvert.parse(this.value, asn1X509.BasicConstraints, this.parseOptions);
1531
+ this.ca = value.cA;
1532
+ this.pathLength = value.pathLenConstraint;
1533
+ }
1534
+ else {
1535
+ const value = new asn1X509.BasicConstraints({
1536
+ cA: args[0],
1537
+ pathLenConstraint: args[1],
1538
+ });
1539
+ super(asn1X509.id_ce_basicConstraints, args[2], asn1Schema.AsnConvert.serialize(value));
1540
+ this.ca = args[0];
1541
+ this.pathLength = args[1];
1542
+ }
1543
+ }
1544
+ toTextObject() {
1545
+ const obj = this.toTextObjectWithoutValue();
1546
+ if (this.ca) {
1547
+ obj["CA"] = this.ca;
1548
+ }
1549
+ if (this.pathLength !== undefined) {
1550
+ obj["Path Length"] = this.pathLength;
1551
+ }
1552
+ return obj;
1553
+ }
1554
+ }
1555
+ BasicConstraintsExtension.NAME = "Basic Constraints";
1556
+
1557
+ exports.ExtendedKeyUsage = void 0;
1558
+ (function (ExtendedKeyUsage) {
1559
+ ExtendedKeyUsage["serverAuth"] = "1.3.6.1.5.5.7.3.1";
1560
+ ExtendedKeyUsage["clientAuth"] = "1.3.6.1.5.5.7.3.2";
1561
+ ExtendedKeyUsage["codeSigning"] = "1.3.6.1.5.5.7.3.3";
1562
+ ExtendedKeyUsage["emailProtection"] = "1.3.6.1.5.5.7.3.4";
1563
+ ExtendedKeyUsage["timeStamping"] = "1.3.6.1.5.5.7.3.8";
1564
+ ExtendedKeyUsage["ocspSigning"] = "1.3.6.1.5.5.7.3.9";
1565
+ })(exports.ExtendedKeyUsage || (exports.ExtendedKeyUsage = {}));
1566
+ class ExtendedKeyUsageExtension extends Extension {
1567
+ constructor(...args) {
1568
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1569
+ super(args[0], args[1]);
1570
+ const value = asn1Schema.AsnConvert.parse(this.value, asn1X509__namespace.ExtendedKeyUsage, this.parseOptions);
1571
+ this.usages = value.map((o) => o);
1572
+ }
1573
+ else {
1574
+ const value = new asn1X509__namespace.ExtendedKeyUsage(args[0]);
1575
+ super(asn1X509__namespace.id_ce_extKeyUsage, args[1], asn1Schema.AsnConvert.serialize(value));
1576
+ this.usages = args[0];
1577
+ }
1578
+ }
1579
+ toTextObject() {
1580
+ const obj = this.toTextObjectWithoutValue();
1581
+ obj[""] = this.usages.map((o) => OidSerializer.toString(o)).join(", ");
1582
+ return obj;
1583
+ }
1584
+ }
1585
+ ExtendedKeyUsageExtension.NAME = "Extended Key Usages";
1586
+
1587
+ exports.KeyUsageFlags = void 0;
1588
+ (function (KeyUsageFlags) {
1589
+ KeyUsageFlags[KeyUsageFlags["digitalSignature"] = 1] = "digitalSignature";
1590
+ KeyUsageFlags[KeyUsageFlags["nonRepudiation"] = 2] = "nonRepudiation";
1591
+ KeyUsageFlags[KeyUsageFlags["keyEncipherment"] = 4] = "keyEncipherment";
1592
+ KeyUsageFlags[KeyUsageFlags["dataEncipherment"] = 8] = "dataEncipherment";
1593
+ KeyUsageFlags[KeyUsageFlags["keyAgreement"] = 16] = "keyAgreement";
1594
+ KeyUsageFlags[KeyUsageFlags["keyCertSign"] = 32] = "keyCertSign";
1595
+ KeyUsageFlags[KeyUsageFlags["cRLSign"] = 64] = "cRLSign";
1596
+ KeyUsageFlags[KeyUsageFlags["encipherOnly"] = 128] = "encipherOnly";
1597
+ KeyUsageFlags[KeyUsageFlags["decipherOnly"] = 256] = "decipherOnly";
1598
+ })(exports.KeyUsageFlags || (exports.KeyUsageFlags = {}));
1599
+ class KeyUsagesExtension extends Extension {
1600
+ constructor(...args) {
1601
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1602
+ super(args[0], args[1]);
1603
+ const value = asn1Schema.AsnConvert.parse(this.value, asn1X509.KeyUsage, this.parseOptions);
1604
+ this.usages = value.toNumber();
1605
+ }
1606
+ else {
1607
+ const value = new asn1X509.KeyUsage(args[0]);
1608
+ super(asn1X509.id_ce_keyUsage, args[1], asn1Schema.AsnConvert.serialize(value));
1609
+ this.usages = args[0];
1610
+ }
1611
+ }
1612
+ toTextObject() {
1613
+ const obj = this.toTextObjectWithoutValue();
1614
+ const asn = asn1Schema.AsnConvert.parse(this.value, asn1X509.KeyUsage, this.parseOptions);
1615
+ obj[""] = asn.toJSON().join(", ");
1616
+ return obj;
1617
+ }
1618
+ }
1619
+ KeyUsagesExtension.NAME = "Key Usages";
1620
+
1621
+ class SubjectKeyIdentifierExtension extends Extension {
1622
+ static async create(publicKey, critical = false, crypto = cryptoProvider.get()) {
1623
+ const key = await PublicKey.create(publicKey, crypto);
1624
+ const id = await key.getKeyIdentifier(crypto);
1625
+ return new SubjectKeyIdentifierExtension(pvtsutils.Convert.ToHex(id), critical);
1626
+ }
1627
+ constructor(...args) {
1628
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1629
+ super(args[0], args[1]);
1630
+ const value = asn1Schema.AsnConvert.parse(this.value, asn1X509__namespace.SubjectKeyIdentifier, this.parseOptions);
1631
+ this.keyId = pvtsutils.Convert.ToHex(value);
1632
+ }
1633
+ else {
1634
+ const identifier = typeof args[0] === "string" ? pvtsutils.Convert.FromHex(args[0]) : args[0];
1635
+ const value = new asn1X509__namespace.SubjectKeyIdentifier(identifier);
1636
+ super(asn1X509__namespace.id_ce_subjectKeyIdentifier, args[1], asn1Schema.AsnConvert.serialize(value));
1637
+ this.keyId = pvtsutils.Convert.ToHex(identifier);
1638
+ }
1639
+ }
1640
+ toTextObject() {
1641
+ const obj = this.toTextObjectWithoutValue();
1642
+ const asn = asn1Schema.AsnConvert.parse(this.value, asn1X509__namespace.SubjectKeyIdentifier, this.parseOptions);
1643
+ obj[""] = asn;
1644
+ return obj;
1645
+ }
1646
+ }
1647
+ SubjectKeyIdentifierExtension.NAME = "Subject Key Identifier";
1648
+
1649
+ class SubjectAlternativeNameExtension extends Extension {
1650
+ constructor(...args) {
1651
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1652
+ super(args[0], args[1]);
1653
+ }
1654
+ else {
1655
+ super(asn1X509__namespace.id_ce_subjectAltName, args[1], new GeneralNames(args[0] || []).rawData);
1656
+ }
1657
+ }
1658
+ onInit(asn) {
1659
+ super.onInit(asn);
1660
+ const value = asn1Schema.AsnConvert.parse(asn.extnValue, asn1X509__namespace.SubjectAlternativeName, this.parseOptions);
1661
+ this.names = new GeneralNames(value);
1662
+ }
1663
+ toTextObject() {
1664
+ const obj = this.toTextObjectWithoutValue();
1665
+ const namesObj = this.names.toTextObject();
1666
+ for (const key in namesObj) {
1667
+ obj[key] = namesObj[key];
1668
+ }
1669
+ return obj;
1670
+ }
1671
+ }
1672
+ SubjectAlternativeNameExtension.NAME = "Subject Alternative Name";
1673
+
1674
+ class ExtensionFactory {
1675
+ static register(id, type) {
1676
+ this.items.set(id, type);
1677
+ }
1678
+ static create(data, options) {
1679
+ const extension = new Extension(data, options);
1680
+ const Type = this.items.get(extension.type);
1681
+ if (Type) {
1682
+ return new Type(data, options);
1683
+ }
1684
+ return extension;
1685
+ }
1686
+ }
1687
+ ExtensionFactory.items = new Map();
1688
+
1689
+ class CertificatePolicyExtension extends Extension {
1690
+ constructor(...args) {
1691
+ var _a;
1692
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1693
+ super(args[0], args[1]);
1694
+ const asnPolicies = asn1Schema.AsnConvert.parse(this.value, asn1X509__namespace.CertificatePolicies, this.parseOptions);
1695
+ this.policies = asnPolicies.map((o) => o.policyIdentifier);
1696
+ }
1697
+ else {
1698
+ const policies = args[0];
1699
+ const critical = (_a = args[1]) !== null && _a !== void 0 ? _a : false;
1700
+ const value = new asn1X509__namespace.CertificatePolicies(policies.map((o) => new asn1X509__namespace.PolicyInformation({ policyIdentifier: o })));
1701
+ super(asn1X509__namespace.id_ce_certificatePolicies, critical, asn1Schema.AsnConvert.serialize(value));
1702
+ this.policies = policies;
1703
+ }
1704
+ }
1705
+ toTextObject() {
1706
+ const obj = this.toTextObjectWithoutValue();
1707
+ obj["Policy"] = this.policies.map((o) => new TextObject("", {}, OidSerializer.toString(o)));
1708
+ return obj;
1709
+ }
1710
+ }
1711
+ CertificatePolicyExtension.NAME = "Certificate Policies";
1712
+ ExtensionFactory.register(asn1X509__namespace.id_ce_certificatePolicies, CertificatePolicyExtension);
1713
+
1714
+ class CRLDistributionPointsExtension extends Extension {
1715
+ constructor(...args) {
1716
+ var _a;
1717
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1718
+ super(args[0], args[1]);
1719
+ }
1720
+ else if (Array.isArray(args[0]) && typeof args[0][0] === "string") {
1721
+ const urls = args[0];
1722
+ const dps = urls.map((url) => {
1723
+ return new asn1X509__namespace.DistributionPoint({
1724
+ distributionPoint: new asn1X509__namespace.DistributionPointName({
1725
+ fullName: [new asn1X509__namespace.GeneralName({ uniformResourceIdentifier: url })],
1726
+ }),
1727
+ });
1728
+ });
1729
+ const value = new asn1X509__namespace.CRLDistributionPoints(dps);
1730
+ super(asn1X509__namespace.id_ce_cRLDistributionPoints, args[1], asn1Schema.AsnConvert.serialize(value));
1731
+ }
1732
+ else {
1733
+ const value = new asn1X509__namespace.CRLDistributionPoints(args[0]);
1734
+ super(asn1X509__namespace.id_ce_cRLDistributionPoints, args[1], asn1Schema.AsnConvert.serialize(value));
1735
+ }
1736
+ (_a = this.distributionPoints) !== null && _a !== void 0 ? _a : (this.distributionPoints = []);
1737
+ }
1738
+ onInit(asn) {
1739
+ super.onInit(asn);
1740
+ const crlExt = asn1Schema.AsnConvert.parse(asn.extnValue, asn1X509__namespace.CRLDistributionPoints, this.parseOptions);
1741
+ this.distributionPoints = crlExt;
1742
+ }
1743
+ toTextObject() {
1744
+ const obj = this.toTextObjectWithoutValue();
1745
+ obj["Distribution Point"] = this.distributionPoints.map((dp) => {
1746
+ var _a;
1747
+ const dpObj = new TextObject("");
1748
+ if ((_a = dp.distributionPoint) === null || _a === void 0 ? void 0 : _a.fullName) {
1749
+ dpObj[""] = dp.distributionPoint.fullName
1750
+ .map((name) => new GeneralName(name).toString())
1751
+ .join(", ");
1752
+ }
1753
+ if (dp.reasons) {
1754
+ dpObj["Reasons"] = dp.reasons.toString();
1755
+ }
1756
+ if (dp.cRLIssuer) {
1757
+ dpObj["CRL Issuer"] = dp.cRLIssuer.map((issuer) => issuer.toString()).join(", ");
1758
+ }
1759
+ return dpObj;
1760
+ });
1761
+ return obj;
1762
+ }
1763
+ }
1764
+ CRLDistributionPointsExtension.NAME = "CRL Distribution Points";
1765
+
1766
+ class AuthorityInfoAccessExtension extends Extension {
1767
+ constructor(...args) {
1768
+ var _a, _b, _c, _d;
1769
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1770
+ super(args[0], args[1]);
1771
+ }
1772
+ else if (args[0] instanceof asn1X509__namespace.AuthorityInfoAccessSyntax) {
1773
+ const value = new asn1X509__namespace.AuthorityInfoAccessSyntax(args[0]);
1774
+ super(asn1X509__namespace.id_pe_authorityInfoAccess, args[1], asn1Schema.AsnConvert.serialize(value));
1775
+ }
1776
+ else {
1777
+ const params = args[0];
1778
+ const value = new asn1X509__namespace.AuthorityInfoAccessSyntax();
1779
+ addAccessDescriptions(value, params, asn1X509__namespace.id_ad_ocsp, "ocsp");
1780
+ addAccessDescriptions(value, params, asn1X509__namespace.id_ad_caIssuers, "caIssuers");
1781
+ addAccessDescriptions(value, params, asn1X509__namespace.id_ad_timeStamping, "timeStamping");
1782
+ addAccessDescriptions(value, params, asn1X509__namespace.id_ad_caRepository, "caRepository");
1783
+ super(asn1X509__namespace.id_pe_authorityInfoAccess, args[1], asn1Schema.AsnConvert.serialize(value));
1784
+ }
1785
+ (_a = this.ocsp) !== null && _a !== void 0 ? _a : (this.ocsp = []);
1786
+ (_b = this.caIssuers) !== null && _b !== void 0 ? _b : (this.caIssuers = []);
1787
+ (_c = this.timeStamping) !== null && _c !== void 0 ? _c : (this.timeStamping = []);
1788
+ (_d = this.caRepository) !== null && _d !== void 0 ? _d : (this.caRepository = []);
1789
+ }
1790
+ onInit(asn) {
1791
+ super.onInit(asn);
1792
+ this.ocsp = [];
1793
+ this.caIssuers = [];
1794
+ this.timeStamping = [];
1795
+ this.caRepository = [];
1796
+ const aia = asn1Schema.AsnConvert.parse(asn.extnValue, asn1X509__namespace.AuthorityInfoAccessSyntax, this.parseOptions);
1797
+ aia.forEach((accessDescription) => {
1798
+ switch (accessDescription.accessMethod) {
1799
+ case asn1X509__namespace.id_ad_ocsp:
1800
+ this.ocsp.push(new GeneralName(accessDescription.accessLocation));
1801
+ break;
1802
+ case asn1X509__namespace.id_ad_caIssuers:
1803
+ this.caIssuers.push(new GeneralName(accessDescription.accessLocation));
1804
+ break;
1805
+ case asn1X509__namespace.id_ad_timeStamping:
1806
+ this.timeStamping.push(new GeneralName(accessDescription.accessLocation));
1807
+ break;
1808
+ case asn1X509__namespace.id_ad_caRepository:
1809
+ this.caRepository.push(new GeneralName(accessDescription.accessLocation));
1810
+ break;
1811
+ }
1812
+ });
1813
+ }
1814
+ toTextObject() {
1815
+ const obj = this.toTextObjectWithoutValue();
1816
+ if (this.ocsp.length) {
1817
+ addUrlsToObject(obj, "OCSP", this.ocsp);
1818
+ }
1819
+ if (this.caIssuers.length) {
1820
+ addUrlsToObject(obj, "CA Issuers", this.caIssuers);
1821
+ }
1822
+ if (this.timeStamping.length) {
1823
+ addUrlsToObject(obj, "Time Stamping", this.timeStamping);
1824
+ }
1825
+ if (this.caRepository.length) {
1826
+ addUrlsToObject(obj, "CA Repository", this.caRepository);
1827
+ }
1828
+ return obj;
1829
+ }
1830
+ }
1831
+ AuthorityInfoAccessExtension.NAME = "Authority Info Access";
1832
+ function addUrlsToObject(obj, key, urls) {
1833
+ if (urls.length === 1) {
1834
+ obj[key] = urls[0].toTextObject();
1835
+ }
1836
+ else {
1837
+ const names = new TextObject("");
1838
+ urls.forEach((name, index) => {
1839
+ const nameObj = name.toTextObject();
1840
+ const indexedKey = `${nameObj[TextObject.NAME]} ${index + 1}`;
1841
+ let field = names[indexedKey];
1842
+ if (!Array.isArray(field)) {
1843
+ field = [];
1844
+ names[indexedKey] = field;
1845
+ }
1846
+ field.push(nameObj);
1847
+ });
1848
+ obj[key] = names;
1849
+ }
1850
+ }
1851
+ function addAccessDescriptions(value, params, method, key) {
1852
+ const items = params[key];
1853
+ if (items) {
1854
+ const array = Array.isArray(items) ? items : [items];
1855
+ array.forEach((url) => {
1856
+ if (typeof url === "string") {
1857
+ url = new GeneralName("url", url);
1858
+ }
1859
+ value.push(new asn1X509__namespace.AccessDescription({
1860
+ accessMethod: method,
1861
+ accessLocation: asn1Schema.AsnConvert.parse(url.rawData, asn1X509__namespace.GeneralName),
1862
+ }));
1863
+ });
1864
+ }
1865
+ }
1866
+
1867
+ class IssuerAlternativeNameExtension extends Extension {
1868
+ constructor(...args) {
1869
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1870
+ super(args[0], args[1]);
1871
+ }
1872
+ else {
1873
+ super(asn1X509__namespace.id_ce_issuerAltName, args[1], new GeneralNames(args[0] || []).rawData);
1874
+ }
1875
+ }
1876
+ onInit(asn) {
1877
+ super.onInit(asn);
1878
+ const value = asn1Schema.AsnConvert.parse(asn.extnValue, asn1X509__namespace.GeneralNames, this.parseOptions);
1879
+ this.names = new GeneralNames(value);
1880
+ }
1881
+ toTextObject() {
1882
+ const obj = this.toTextObjectWithoutValue();
1883
+ const namesObj = this.names.toTextObject();
1884
+ for (const key in namesObj) {
1885
+ obj[key] = namesObj[key];
1886
+ }
1887
+ return obj;
1888
+ }
1889
+ }
1890
+ IssuerAlternativeNameExtension.NAME = "Issuer Alternative Name";
1891
+
1892
+ class Attribute extends AsnData {
1893
+ constructor(...args) {
1894
+ let raw;
1895
+ let options;
1896
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1897
+ raw = pvtsutils.BufferSourceConverter.toArrayBuffer(args[0]);
1898
+ options = args[1];
1899
+ }
1900
+ else {
1901
+ const type = args[0];
1902
+ const values = Array.isArray(args[1])
1903
+ ? args[1].map((o) => pvtsutils.BufferSourceConverter.toArrayBuffer(o))
1904
+ : [];
1905
+ raw = asn1Schema.AsnConvert.serialize(new asn1X509.Attribute({
1906
+ type,
1907
+ values,
1908
+ }));
1909
+ }
1910
+ super(raw, asn1X509.Attribute, options);
1911
+ }
1912
+ onInit(asn) {
1913
+ this.type = asn.type;
1914
+ this.values = asn.values;
1915
+ }
1916
+ toTextObject() {
1917
+ const obj = this.toTextObjectWithoutValue();
1918
+ obj["Value"] = this.values.map((o) => new TextObject("", { "": o }));
1919
+ return obj;
1920
+ }
1921
+ toTextObjectWithoutValue() {
1922
+ const obj = this.toTextObjectEmpty();
1923
+ if (obj[TextObject.NAME] === Attribute.NAME) {
1924
+ obj[TextObject.NAME] = OidSerializer.toString(this.type);
1925
+ }
1926
+ return obj;
1927
+ }
1928
+ }
1929
+ Attribute.NAME = "Attribute";
1930
+
1931
+ class ChallengePasswordAttribute extends Attribute {
1932
+ constructor(...args) {
1933
+ var _a;
1934
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1935
+ super(args[0], args[1]);
1936
+ }
1937
+ else {
1938
+ const value = new asnPkcs9__namespace.ChallengePassword({ printableString: args[0] });
1939
+ super(asnPkcs9__namespace.id_pkcs9_at_challengePassword, [asn1Schema.AsnConvert.serialize(value)]);
1940
+ }
1941
+ (_a = this.password) !== null && _a !== void 0 ? _a : (this.password = "");
1942
+ }
1943
+ onInit(asn) {
1944
+ super.onInit(asn);
1945
+ if (this.values[0]) {
1946
+ const value = asn1Schema.AsnConvert.parse(this.values[0], asnPkcs9__namespace.ChallengePassword, this.parseOptions);
1947
+ this.password = value.toString();
1948
+ }
1949
+ }
1950
+ toTextObject() {
1951
+ const obj = this.toTextObjectWithoutValue();
1952
+ obj[TextObject.VALUE] = this.password;
1953
+ return obj;
1954
+ }
1955
+ }
1956
+ ChallengePasswordAttribute.NAME = "Challenge Password";
1957
+
1958
+ class ExtensionsAttribute extends Attribute {
1959
+ constructor(...args) {
1960
+ var _a;
1961
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
1962
+ super(args[0], args[1]);
1963
+ }
1964
+ else {
1965
+ const extensions = args[0];
1966
+ const value = new asn1X509__namespace.Extensions();
1967
+ for (const extension of extensions) {
1968
+ value.push(asn1Schema.AsnConvert.parse(extension.rawData, asn1X509__namespace.Extension));
1969
+ }
1970
+ super(asnPkcs9__namespace.id_pkcs9_at_extensionRequest, [asn1Schema.AsnConvert.serialize(value)]);
1971
+ }
1972
+ (_a = this.items) !== null && _a !== void 0 ? _a : (this.items = []);
1973
+ }
1974
+ onInit(asn) {
1975
+ super.onInit(asn);
1976
+ if (this.values[0]) {
1977
+ const value = asn1Schema.AsnConvert.parse(this.values[0], asn1X509__namespace.Extensions, this.parseOptions);
1978
+ this.items = value.map((o) => ExtensionFactory.create(asn1Schema.AsnConvert.serialize(o), this.parseOptions));
1979
+ }
1980
+ }
1981
+ toTextObject() {
1982
+ const obj = this.toTextObjectWithoutValue();
1983
+ const extensions = this.items.map((o) => o.toTextObject());
1984
+ for (const extension of extensions) {
1985
+ obj[extension[TextObject.NAME]] = extension;
1986
+ }
1987
+ return obj;
1988
+ }
1989
+ }
1990
+ ExtensionsAttribute.NAME = "Extensions";
1991
+
1992
+ class AttributeFactory {
1993
+ static register(id, type) {
1994
+ this.items.set(id, type);
1995
+ }
1996
+ static create(data, options) {
1997
+ const attribute = new Attribute(data, options);
1998
+ const Type = this.items.get(attribute.type);
1999
+ if (Type) {
2000
+ return new Type(data, options);
2001
+ }
2002
+ return attribute;
2003
+ }
2004
+ }
2005
+ AttributeFactory.items = new Map();
2006
+
2007
+ const diAsnSignatureFormatter = "crypto.signatureFormatter";
2008
+ class AsnDefaultSignatureFormatter {
2009
+ toAsnSignature(algorithm, signature) {
2010
+ return pvtsutils.BufferSourceConverter.toArrayBuffer(signature);
2011
+ }
2012
+ toWebSignature(algorithm, signature) {
2013
+ return pvtsutils.BufferSourceConverter.toArrayBuffer(signature);
2014
+ }
2015
+ }
2016
+
2017
+ var RsaAlgorithm_1;
2018
+ exports.RsaAlgorithm = RsaAlgorithm_1 = class RsaAlgorithm {
2019
+ static createPssParams(hash, saltLength) {
2020
+ const hashAlgorithm = RsaAlgorithm_1.getHashAlgorithm(hash);
2021
+ if (!hashAlgorithm) {
2022
+ return null;
2023
+ }
2024
+ return new asn1Rsa__namespace.RsaSaPssParams({
2025
+ hashAlgorithm,
2026
+ maskGenAlgorithm: new asn1X509.AlgorithmIdentifier({
2027
+ algorithm: asn1Rsa__namespace.id_mgf1,
2028
+ parameters: asn1Schema.AsnConvert.serialize(hashAlgorithm),
2029
+ }),
2030
+ saltLength,
2031
+ });
2032
+ }
2033
+ static getHashAlgorithm(alg) {
2034
+ const algProv = tsyringe.container.resolve(diAlgorithmProvider);
2035
+ if (typeof alg === "string") {
2036
+ return algProv.toAsnAlgorithm({ name: alg });
2037
+ }
2038
+ if (typeof alg === "object" && alg && "name" in alg) {
2039
+ return algProv.toAsnAlgorithm(alg);
2040
+ }
2041
+ return null;
2042
+ }
2043
+ toAsnAlgorithm(alg) {
2044
+ switch (alg.name.toLowerCase()) {
2045
+ case "rsassa-pkcs1-v1_5":
2046
+ if ("hash" in alg) {
2047
+ let hash;
2048
+ if (typeof alg.hash === "string") {
2049
+ hash = alg.hash;
2050
+ }
2051
+ else if (alg.hash &&
2052
+ typeof alg.hash === "object" &&
2053
+ "name" in alg.hash &&
2054
+ typeof alg.hash.name === "string") {
2055
+ hash = alg.hash.name.toUpperCase();
2056
+ }
2057
+ else {
2058
+ throw new Error("Cannot get hash algorithm name");
2059
+ }
2060
+ switch (hash.toLowerCase()) {
2061
+ case "sha-1":
2062
+ return new asn1X509.AlgorithmIdentifier({
2063
+ algorithm: asn1Rsa__namespace.id_sha1WithRSAEncryption,
2064
+ parameters: null,
2065
+ });
2066
+ case "sha-256":
2067
+ return new asn1X509.AlgorithmIdentifier({
2068
+ algorithm: asn1Rsa__namespace.id_sha256WithRSAEncryption,
2069
+ parameters: null,
2070
+ });
2071
+ case "sha-384":
2072
+ return new asn1X509.AlgorithmIdentifier({
2073
+ algorithm: asn1Rsa__namespace.id_sha384WithRSAEncryption,
2074
+ parameters: null,
2075
+ });
2076
+ case "sha-512":
2077
+ return new asn1X509.AlgorithmIdentifier({
2078
+ algorithm: asn1Rsa__namespace.id_sha512WithRSAEncryption,
2079
+ parameters: null,
2080
+ });
2081
+ }
2082
+ }
2083
+ else {
2084
+ return new asn1X509.AlgorithmIdentifier({
2085
+ algorithm: asn1Rsa__namespace.id_rsaEncryption,
2086
+ parameters: null,
2087
+ });
2088
+ }
2089
+ break;
2090
+ case "rsa-pss":
2091
+ if ("hash" in alg) {
2092
+ if (!("saltLength" in alg && typeof alg.saltLength === "number")) {
2093
+ throw new Error("Cannot get 'saltLength' from 'alg' argument");
2094
+ }
2095
+ const pssParams = RsaAlgorithm_1.createPssParams(alg.hash, alg.saltLength);
2096
+ if (!pssParams) {
2097
+ throw new Error("Cannot create PSS parameters");
2098
+ }
2099
+ return new asn1X509.AlgorithmIdentifier({
2100
+ algorithm: asn1Rsa__namespace.id_RSASSA_PSS,
2101
+ parameters: asn1Schema.AsnConvert.serialize(pssParams),
2102
+ });
2103
+ }
2104
+ else {
2105
+ return new asn1X509.AlgorithmIdentifier({
2106
+ algorithm: asn1Rsa__namespace.id_RSASSA_PSS,
2107
+ parameters: null,
2108
+ });
2109
+ }
2110
+ }
2111
+ return null;
2112
+ }
2113
+ toWebAlgorithm(alg) {
2114
+ switch (alg.algorithm) {
2115
+ case asn1Rsa__namespace.id_rsaEncryption:
2116
+ return { name: "RSASSA-PKCS1-v1_5" };
2117
+ case asn1Rsa__namespace.id_sha1WithRSAEncryption:
2118
+ return {
2119
+ name: "RSASSA-PKCS1-v1_5",
2120
+ hash: { name: "SHA-1" },
2121
+ };
2122
+ case asn1Rsa__namespace.id_sha256WithRSAEncryption:
2123
+ return {
2124
+ name: "RSASSA-PKCS1-v1_5",
2125
+ hash: { name: "SHA-256" },
2126
+ };
2127
+ case asn1Rsa__namespace.id_sha384WithRSAEncryption:
2128
+ return {
2129
+ name: "RSASSA-PKCS1-v1_5",
2130
+ hash: { name: "SHA-384" },
2131
+ };
2132
+ case asn1Rsa__namespace.id_sha512WithRSAEncryption:
2133
+ return {
2134
+ name: "RSASSA-PKCS1-v1_5",
2135
+ hash: { name: "SHA-512" },
2136
+ };
2137
+ case asn1Rsa__namespace.id_RSASSA_PSS:
2138
+ if (alg.parameters) {
2139
+ const pssParams = asn1Schema.AsnConvert.parse(alg.parameters, asn1Rsa__namespace.RsaSaPssParams);
2140
+ const algProv = tsyringe.container.resolve(diAlgorithmProvider);
2141
+ const hashAlg = algProv.toWebAlgorithm(pssParams.hashAlgorithm);
2142
+ return {
2143
+ name: "RSA-PSS",
2144
+ hash: hashAlg,
2145
+ saltLength: pssParams.saltLength,
2146
+ };
2147
+ }
2148
+ else {
2149
+ return { name: "RSA-PSS" };
2150
+ }
2151
+ }
2152
+ return null;
2153
+ }
2154
+ };
2155
+ exports.RsaAlgorithm = RsaAlgorithm_1 = tslib.__decorate([
2156
+ tsyringe.injectable()
2157
+ ], exports.RsaAlgorithm);
2158
+ tsyringe.container.registerSingleton(diAlgorithm, exports.RsaAlgorithm);
2159
+
2160
+ exports.ShaAlgorithm = class ShaAlgorithm {
2161
+ toAsnAlgorithm(alg) {
2162
+ switch (alg.name.toLowerCase()) {
2163
+ case "sha-1":
2164
+ return new asn1X509.AlgorithmIdentifier({ algorithm: asn1Rsa.id_sha1 });
2165
+ case "sha-256":
2166
+ return new asn1X509.AlgorithmIdentifier({ algorithm: asn1Rsa.id_sha256 });
2167
+ case "sha-384":
2168
+ return new asn1X509.AlgorithmIdentifier({ algorithm: asn1Rsa.id_sha384 });
2169
+ case "sha-512":
2170
+ return new asn1X509.AlgorithmIdentifier({ algorithm: asn1Rsa.id_sha512 });
2171
+ }
2172
+ return null;
2173
+ }
2174
+ toWebAlgorithm(alg) {
2175
+ switch (alg.algorithm) {
2176
+ case asn1Rsa.id_sha1:
2177
+ return { name: "SHA-1" };
2178
+ case asn1Rsa.id_sha256:
2179
+ return { name: "SHA-256" };
2180
+ case asn1Rsa.id_sha384:
2181
+ return { name: "SHA-384" };
2182
+ case asn1Rsa.id_sha512:
2183
+ return { name: "SHA-512" };
2184
+ }
2185
+ return null;
2186
+ }
2187
+ };
2188
+ exports.ShaAlgorithm = tslib.__decorate([
2189
+ tsyringe.injectable()
2190
+ ], exports.ShaAlgorithm);
2191
+ tsyringe.container.registerSingleton(diAlgorithm, exports.ShaAlgorithm);
2192
+
2193
+ class AsnEcSignatureFormatter {
2194
+ addPadding(pointSize, data) {
2195
+ const bytes = pvtsutils.BufferSourceConverter.toUint8Array(data);
2196
+ const res = new Uint8Array(pointSize);
2197
+ res.set(bytes, pointSize - bytes.length);
2198
+ return res.buffer;
2199
+ }
2200
+ removePadding(data, positive = false) {
2201
+ let bytes = pvtsutils.BufferSourceConverter.toUint8Array(data);
2202
+ for (let i = 0; i < bytes.length; i++) {
2203
+ if (!bytes[i]) {
2204
+ continue;
2205
+ }
2206
+ bytes = bytes.slice(i);
2207
+ break;
2208
+ }
2209
+ if (positive && bytes[0] > 127) {
2210
+ const result = new Uint8Array(bytes.length + 1);
2211
+ result.set(bytes, 1);
2212
+ return result.buffer;
2213
+ }
2214
+ return bytes.buffer;
2215
+ }
2216
+ toAsnSignature(algorithm, signature) {
2217
+ if (algorithm.name === "ECDSA") {
2218
+ const namedCurve = algorithm.namedCurve;
2219
+ const pointSize = AsnEcSignatureFormatter.namedCurveSize.get(namedCurve) ||
2220
+ AsnEcSignatureFormatter.defaultNamedCurveSize;
2221
+ const ecSignature = new asn1Ecc.ECDSASigValue();
2222
+ const uint8Signature = pvtsutils.BufferSourceConverter.toUint8Array(signature);
2223
+ ecSignature.r = this.removePadding(uint8Signature.slice(0, pointSize), true);
2224
+ ecSignature.s = this.removePadding(uint8Signature.slice(pointSize, pointSize + pointSize), true);
2225
+ return asn1Schema.AsnConvert.serialize(ecSignature);
2226
+ }
2227
+ return null;
2228
+ }
2229
+ toWebSignature(algorithm, signature) {
2230
+ if (algorithm.name === "ECDSA") {
2231
+ const ecSigValue = asn1Schema.AsnConvert.parse(signature, asn1Ecc.ECDSASigValue);
2232
+ const namedCurve = algorithm.namedCurve;
2233
+ const pointSize = AsnEcSignatureFormatter.namedCurveSize.get(namedCurve) ||
2234
+ AsnEcSignatureFormatter.defaultNamedCurveSize;
2235
+ const r = this.addPadding(pointSize, this.removePadding(ecSigValue.r));
2236
+ const s = this.addPadding(pointSize, this.removePadding(ecSigValue.s));
2237
+ return pvtsutils.combine(r, s);
2238
+ }
2239
+ return null;
2240
+ }
2241
+ }
2242
+ AsnEcSignatureFormatter.namedCurveSize = new Map();
2243
+ AsnEcSignatureFormatter.defaultNamedCurveSize = 32;
2244
+
2245
+ const idX25519 = "1.3.101.110";
2246
+ const idX448 = "1.3.101.111";
2247
+ const idEd25519 = "1.3.101.112";
2248
+ const idEd448 = "1.3.101.113";
2249
+ exports.EdAlgorithm = class EdAlgorithm {
2250
+ toAsnAlgorithm(alg) {
2251
+ let algorithm = null;
2252
+ switch (alg.name.toLowerCase()) {
2253
+ case "ed25519":
2254
+ algorithm = idEd25519;
2255
+ break;
2256
+ case "x25519":
2257
+ algorithm = idX25519;
2258
+ break;
2259
+ case "eddsa":
2260
+ switch (alg.namedCurve.toLowerCase()) {
2261
+ case "ed25519":
2262
+ algorithm = idEd25519;
2263
+ break;
2264
+ case "ed448":
2265
+ algorithm = idEd448;
2266
+ break;
2267
+ }
2268
+ break;
2269
+ case "ecdh-es":
2270
+ switch (alg.namedCurve.toLowerCase()) {
2271
+ case "x25519":
2272
+ algorithm = idX25519;
2273
+ break;
2274
+ case "x448":
2275
+ algorithm = idX448;
2276
+ break;
2277
+ }
2278
+ }
2279
+ if (algorithm) {
2280
+ return new asn1X509.AlgorithmIdentifier({ algorithm });
2281
+ }
2282
+ return null;
2283
+ }
2284
+ toWebAlgorithm(alg) {
2285
+ switch (alg.algorithm) {
2286
+ case idEd25519:
2287
+ return { name: "Ed25519" };
2288
+ case idEd448:
2289
+ return {
2290
+ name: "EdDSA",
2291
+ namedCurve: "Ed448",
2292
+ };
2293
+ case idX25519:
2294
+ return { name: "X25519" };
2295
+ case idX448:
2296
+ return {
2297
+ name: "ECDH-ES",
2298
+ namedCurve: "X448",
2299
+ };
2300
+ }
2301
+ return null;
2302
+ }
2303
+ };
2304
+ exports.EdAlgorithm = tslib.__decorate([
2305
+ tsyringe.injectable()
2306
+ ], exports.EdAlgorithm);
2307
+ tsyringe.container.registerSingleton(diAlgorithm, exports.EdAlgorithm);
2308
+
2309
+ exports.MlDsaAlgorithm = class MlDsaAlgorithm {
2310
+ toAsnAlgorithm(alg) {
2311
+ let algorithm = null;
2312
+ switch (alg.name.toLowerCase()) {
2313
+ case "ml-dsa-44":
2314
+ algorithm = asn1X509PostQuantum.id_ml_dsa_44;
2315
+ break;
2316
+ case "ml-dsa-65":
2317
+ algorithm = asn1X509PostQuantum.id_ml_dsa_65;
2318
+ break;
2319
+ case "ml-dsa-87":
2320
+ algorithm = asn1X509PostQuantum.id_ml_dsa_87;
2321
+ break;
2322
+ }
2323
+ if (algorithm) {
2324
+ return new asn1X509.AlgorithmIdentifier({ algorithm });
2325
+ }
2326
+ return null;
2327
+ }
2328
+ toWebAlgorithm(alg) {
2329
+ switch (alg.algorithm) {
2330
+ case asn1X509PostQuantum.id_ml_dsa_44:
2331
+ return { name: "ML-DSA-44" };
2332
+ case asn1X509PostQuantum.id_ml_dsa_65:
2333
+ return { name: "ML-DSA-65" };
2334
+ case asn1X509PostQuantum.id_ml_dsa_87:
2335
+ return { name: "ML-DSA-87" };
2336
+ }
2337
+ return null;
2338
+ }
2339
+ };
2340
+ exports.MlDsaAlgorithm = tslib.__decorate([
2341
+ tsyringe.injectable()
2342
+ ], exports.MlDsaAlgorithm);
2343
+ tsyringe.container.registerSingleton(diAlgorithm, exports.MlDsaAlgorithm);
2344
+
2345
+ exports.SlhDsaAlgorithm = class SlhDsaAlgorithm {
2346
+ toAsnAlgorithm(alg) {
2347
+ let algorithm = null;
2348
+ switch (alg.name.toLowerCase()) {
2349
+ case "slh-dsa-sha2-128s":
2350
+ algorithm = asn1X509PostQuantum.id_slh_dsa_sha2_128s;
2351
+ break;
2352
+ case "slh-dsa-sha2-128f":
2353
+ algorithm = asn1X509PostQuantum.id_slh_dsa_sha2_128f;
2354
+ break;
2355
+ case "slh-dsa-sha2-192s":
2356
+ algorithm = asn1X509PostQuantum.id_slh_dsa_sha2_192s;
2357
+ break;
2358
+ case "slh-dsa-sha2-192f":
2359
+ algorithm = asn1X509PostQuantum.id_slh_dsa_sha2_192f;
2360
+ break;
2361
+ case "slh-dsa-sha2-256s":
2362
+ algorithm = asn1X509PostQuantum.id_slh_dsa_sha2_256s;
2363
+ break;
2364
+ case "slh-dsa-sha2-256f":
2365
+ algorithm = asn1X509PostQuantum.id_slh_dsa_sha2_256f;
2366
+ break;
2367
+ case "slh-dsa-shake-128s":
2368
+ algorithm = asn1X509PostQuantum.id_slh_dsa_shake_128s;
2369
+ break;
2370
+ case "slh-dsa-shake-128f":
2371
+ algorithm = asn1X509PostQuantum.id_slh_dsa_shake_128f;
2372
+ break;
2373
+ case "slh-dsa-shake-192s":
2374
+ algorithm = asn1X509PostQuantum.id_slh_dsa_shake_192s;
2375
+ break;
2376
+ case "slh-dsa-shake-192f":
2377
+ algorithm = asn1X509PostQuantum.id_slh_dsa_shake_192f;
2378
+ break;
2379
+ case "slh-dsa-shake-256s":
2380
+ algorithm = asn1X509PostQuantum.id_slh_dsa_shake_256s;
2381
+ break;
2382
+ case "slh-dsa-shake-256f":
2383
+ algorithm = asn1X509PostQuantum.id_slh_dsa_shake_256f;
2384
+ break;
2385
+ }
2386
+ if (algorithm) {
2387
+ return new asn1X509.AlgorithmIdentifier({ algorithm });
2388
+ }
2389
+ return null;
2390
+ }
2391
+ toWebAlgorithm(alg) {
2392
+ switch (alg.algorithm) {
2393
+ case asn1X509PostQuantum.id_slh_dsa_sha2_128s:
2394
+ return { name: "SLH-DSA-SHA2-128s" };
2395
+ case asn1X509PostQuantum.id_slh_dsa_sha2_128f:
2396
+ return { name: "SLH-DSA-SHA2-128f" };
2397
+ case asn1X509PostQuantum.id_slh_dsa_sha2_192s:
2398
+ return { name: "SLH-DSA-SHA2-192s" };
2399
+ case asn1X509PostQuantum.id_slh_dsa_sha2_192f:
2400
+ return { name: "SLH-DSA-SHA2-192f" };
2401
+ case asn1X509PostQuantum.id_slh_dsa_sha2_256s:
2402
+ return { name: "SLH-DSA-SHA2-256s" };
2403
+ case asn1X509PostQuantum.id_slh_dsa_sha2_256f:
2404
+ return { name: "SLH-DSA-SHA2-256f" };
2405
+ case asn1X509PostQuantum.id_slh_dsa_shake_128s:
2406
+ return { name: "SLH-DSA-SHAKE-128s" };
2407
+ case asn1X509PostQuantum.id_slh_dsa_shake_128f:
2408
+ return { name: "SLH-DSA-SHAKE-128f" };
2409
+ case asn1X509PostQuantum.id_slh_dsa_shake_192s:
2410
+ return { name: "SLH-DSA-SHAKE-192s" };
2411
+ case asn1X509PostQuantum.id_slh_dsa_shake_192f:
2412
+ return { name: "SLH-DSA-SHAKE-192f" };
2413
+ case asn1X509PostQuantum.id_slh_dsa_shake_256s:
2414
+ return { name: "SLH-DSA-SHAKE-256s" };
2415
+ case asn1X509PostQuantum.id_slh_dsa_shake_256f:
2416
+ return { name: "SLH-DSA-SHAKE-256f" };
2417
+ }
2418
+ return null;
2419
+ }
2420
+ };
2421
+ exports.SlhDsaAlgorithm = tslib.__decorate([
2422
+ tsyringe.injectable()
2423
+ ], exports.SlhDsaAlgorithm);
2424
+ tsyringe.container.registerSingleton(diAlgorithm, exports.SlhDsaAlgorithm);
2425
+
2426
+ var _Pkcs10CertificateRequest_tbs, _Pkcs10CertificateRequest_subjectName, _Pkcs10CertificateRequest_subject, _Pkcs10CertificateRequest_signatureAlgorithm, _Pkcs10CertificateRequest_signature, _Pkcs10CertificateRequest_publicKey, _Pkcs10CertificateRequest_attributes, _Pkcs10CertificateRequest_extensions;
2427
+ class Pkcs10CertificateRequest extends PemData {
2428
+ get subjectName() {
2429
+ if (!tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_subjectName, "f")) {
2430
+ tslib.__classPrivateFieldSet(this, _Pkcs10CertificateRequest_subjectName, new Name(this.asn.certificationRequestInfo.subject), "f");
2431
+ }
2432
+ return tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_subjectName, "f");
2433
+ }
2434
+ get subject() {
2435
+ if (!tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_subject, "f")) {
2436
+ tslib.__classPrivateFieldSet(this, _Pkcs10CertificateRequest_subject, this.subjectName.toString(), "f");
2437
+ }
2438
+ return tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_subject, "f");
2439
+ }
2440
+ get signatureAlgorithm() {
2441
+ if (!tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_signatureAlgorithm, "f")) {
2442
+ const algProv = tsyringe.container.resolve(diAlgorithmProvider);
2443
+ tslib.__classPrivateFieldSet(this, _Pkcs10CertificateRequest_signatureAlgorithm, algProv.toWebAlgorithm(this.asn.signatureAlgorithm), "f");
2444
+ }
2445
+ return tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_signatureAlgorithm, "f");
2446
+ }
2447
+ get signature() {
2448
+ if (!tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_signature, "f")) {
2449
+ tslib.__classPrivateFieldSet(this, _Pkcs10CertificateRequest_signature, this.asn.signature, "f");
2450
+ }
2451
+ return tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_signature, "f");
2452
+ }
2453
+ get publicKey() {
2454
+ if (!tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_publicKey, "f")) {
2455
+ tslib.__classPrivateFieldSet(this, _Pkcs10CertificateRequest_publicKey, new PublicKey(this.asn.certificationRequestInfo.subjectPKInfo, this.parseOptions), "f");
2456
+ }
2457
+ return tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_publicKey, "f");
2458
+ }
2459
+ get attributes() {
2460
+ if (!tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_attributes, "f")) {
2461
+ tslib.__classPrivateFieldSet(this, _Pkcs10CertificateRequest_attributes, this.asn.certificationRequestInfo.attributes.map((o) => AttributeFactory.create(asn1Schema.AsnConvert.serialize(o), this.parseOptions)), "f");
2462
+ }
2463
+ return tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_attributes, "f");
2464
+ }
2465
+ get extensions() {
2466
+ if (!tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_extensions, "f")) {
2467
+ tslib.__classPrivateFieldSet(this, _Pkcs10CertificateRequest_extensions, [], "f");
2468
+ const extensions = this.getAttribute(asnPkcs9.id_pkcs9_at_extensionRequest);
2469
+ if (extensions instanceof ExtensionsAttribute) {
2470
+ tslib.__classPrivateFieldSet(this, _Pkcs10CertificateRequest_extensions, extensions.items, "f");
2471
+ }
2472
+ }
2473
+ return tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_extensions, "f");
2474
+ }
2475
+ get tbs() {
2476
+ if (!tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_tbs, "f")) {
2477
+ tslib.__classPrivateFieldSet(this, _Pkcs10CertificateRequest_tbs, this.asn.certificationRequestInfoRaw ||
2478
+ asn1Schema.AsnConvert.serialize(this.asn.certificationRequestInfo), "f");
2479
+ }
2480
+ return tslib.__classPrivateFieldGet(this, _Pkcs10CertificateRequest_tbs, "f");
2481
+ }
2482
+ constructor(param, options) {
2483
+ const args = PemData.isAsnEncoded(param)
2484
+ ? [param, asn1Csr.CertificationRequest, options]
2485
+ : [param, options];
2486
+ super(args[0], args[1], args[2]);
2487
+ _Pkcs10CertificateRequest_tbs.set(this, void 0);
2488
+ _Pkcs10CertificateRequest_subjectName.set(this, void 0);
2489
+ _Pkcs10CertificateRequest_subject.set(this, void 0);
2490
+ _Pkcs10CertificateRequest_signatureAlgorithm.set(this, void 0);
2491
+ _Pkcs10CertificateRequest_signature.set(this, void 0);
2492
+ _Pkcs10CertificateRequest_publicKey.set(this, void 0);
2493
+ _Pkcs10CertificateRequest_attributes.set(this, void 0);
2494
+ _Pkcs10CertificateRequest_extensions.set(this, void 0);
2495
+ this.tag = PemConverter.CertificateRequestTag;
2496
+ }
2497
+ onInit(_asn) {
2498
+ }
2499
+ getAttribute(type) {
2500
+ for (const attr of this.attributes) {
2501
+ if (attr.type === type) {
2502
+ return attr;
2503
+ }
2504
+ }
2505
+ return null;
2506
+ }
2507
+ getAttributes(type) {
2508
+ return this.attributes.filter((o) => o.type === type);
2509
+ }
2510
+ getExtension(type) {
2511
+ for (const ext of this.extensions) {
2512
+ if (ext.type === type) {
2513
+ return ext;
2514
+ }
2515
+ }
2516
+ return null;
2517
+ }
2518
+ getExtensions(type) {
2519
+ return this.extensions.filter((o) => o.type === type);
2520
+ }
2521
+ async verify(crypto = cryptoProvider.get()) {
2522
+ const algorithm = {
2523
+ ...this.publicKey.algorithm,
2524
+ ...this.signatureAlgorithm,
2525
+ };
2526
+ const publicKey = await this.publicKey.export(algorithm, ["verify"], crypto);
2527
+ const signatureFormatters = tsyringe.container
2528
+ .resolveAll(diAsnSignatureFormatter)
2529
+ .reverse();
2530
+ let signature = null;
2531
+ for (const signatureFormatter of signatureFormatters) {
2532
+ signature = signatureFormatter.toWebSignature(algorithm, this.signature);
2533
+ if (signature) {
2534
+ break;
2535
+ }
2536
+ }
2537
+ if (!signature) {
2538
+ throw Error("Cannot convert WebCrypto signature value to ASN.1 format");
2539
+ }
2540
+ const ok = await crypto.subtle.verify(this.signatureAlgorithm, publicKey, signature, this.tbs);
2541
+ return ok;
2542
+ }
2543
+ toTextObject() {
2544
+ const obj = this.toTextObjectEmpty();
2545
+ const req = asn1Schema.AsnConvert.parse(this.rawData, asn1Csr.CertificationRequest, this.parseOptions);
2546
+ const tbs = req.certificationRequestInfo;
2547
+ const data = new TextObject("", {
2548
+ Version: `${asn1X509.Version[tbs.version]} (${tbs.version})`,
2549
+ Subject: this.subject,
2550
+ "Subject Public Key Info": this.publicKey,
2551
+ });
2552
+ if (this.attributes.length) {
2553
+ const attrs = new TextObject("");
2554
+ for (const ext of this.attributes) {
2555
+ const attrObj = ext.toTextObject();
2556
+ attrs[attrObj[TextObject.NAME]] = attrObj;
2557
+ }
2558
+ data["Attributes"] = attrs;
2559
+ }
2560
+ obj["Data"] = data;
2561
+ obj["Signature"] = new TextObject("", {
2562
+ Algorithm: TextConverter.serializeAlgorithm(req.signatureAlgorithm),
2563
+ "": req.signature,
2564
+ });
2565
+ return obj;
2566
+ }
2567
+ }
2568
+ _Pkcs10CertificateRequest_tbs = new WeakMap(), _Pkcs10CertificateRequest_subjectName = new WeakMap(), _Pkcs10CertificateRequest_subject = new WeakMap(), _Pkcs10CertificateRequest_signatureAlgorithm = new WeakMap(), _Pkcs10CertificateRequest_signature = new WeakMap(), _Pkcs10CertificateRequest_publicKey = new WeakMap(), _Pkcs10CertificateRequest_attributes = new WeakMap(), _Pkcs10CertificateRequest_extensions = new WeakMap();
2569
+ Pkcs10CertificateRequest.NAME = "PKCS#10 Certificate Request";
2570
+
2571
+ class Pkcs10CertificateRequestGenerator {
2572
+ static async create(params, crypto = cryptoProvider.get()) {
2573
+ if (!params.keys.privateKey) {
2574
+ throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");
2575
+ }
2576
+ if (!params.keys.publicKey) {
2577
+ throw new Error("Bad field 'keys' in 'params' argument. 'publicKey' is empty");
2578
+ }
2579
+ const spki = await crypto.subtle.exportKey("spki", params.keys.publicKey);
2580
+ const asnReq = new asn1Csr.CertificationRequest({
2581
+ certificationRequestInfo: new asn1Csr.CertificationRequestInfo({
2582
+ subjectPKInfo: asn1Schema.AsnConvert.parse(spki, asn1X509.SubjectPublicKeyInfo),
2583
+ }),
2584
+ });
2585
+ if (params.name) {
2586
+ const name = params.name instanceof Name ? params.name : new Name(params.name);
2587
+ asnReq.certificationRequestInfo.subject = asn1Schema.AsnConvert.parse(name.toArrayBuffer(), asn1X509.Name);
2588
+ }
2589
+ if (params.attributes) {
2590
+ for (const o of params.attributes) {
2591
+ asnReq.certificationRequestInfo.attributes.push(asn1Schema.AsnConvert.parse(o.rawData, asn1X509.Attribute));
2592
+ }
2593
+ }
2594
+ if (params.extensions && params.extensions.length) {
2595
+ const attr = new asn1X509.Attribute({ type: asnPkcs9.id_pkcs9_at_extensionRequest });
2596
+ const extensions = new asn1X509.Extensions();
2597
+ for (const o of params.extensions) {
2598
+ extensions.push(asn1Schema.AsnConvert.parse(o.rawData, asn1X509.Extension));
2599
+ }
2600
+ attr.values.push(asn1Schema.AsnConvert.serialize(extensions));
2601
+ asnReq.certificationRequestInfo.attributes.push(attr);
2602
+ }
2603
+ const signingAlgorithm = {
2604
+ ...params.signingAlgorithm,
2605
+ ...params.keys.privateKey.algorithm,
2606
+ };
2607
+ const algProv = tsyringe.container.resolve(diAlgorithmProvider);
2608
+ asnReq.signatureAlgorithm = algProv.toAsnAlgorithm(signingAlgorithm);
2609
+ const tbs = asn1Schema.AsnConvert.serialize(asnReq.certificationRequestInfo);
2610
+ const signature = await crypto.subtle.sign(signingAlgorithm, params.keys.privateKey, tbs);
2611
+ const signatureFormatters = tsyringe.container
2612
+ .resolveAll(diAsnSignatureFormatter)
2613
+ .reverse();
2614
+ let asnSignature = null;
2615
+ for (const signatureFormatter of signatureFormatters) {
2616
+ asnSignature = signatureFormatter.toAsnSignature(signingAlgorithm, signature);
2617
+ if (asnSignature) {
2618
+ break;
2619
+ }
2620
+ }
2621
+ if (!asnSignature) {
2622
+ throw Error("Cannot convert WebCrypto signature value to ASN.1 format");
2623
+ }
2624
+ asnReq.signature = asnSignature;
2625
+ return new Pkcs10CertificateRequest(asn1Schema.AsnConvert.serialize(asnReq));
2626
+ }
2627
+ }
2628
+
2629
+ function toPositiveIntegerOctets(input) {
2630
+ let firstNonZero = 0;
2631
+ while (firstNonZero < input.length - 1 && input[firstNonZero] === 0) {
2632
+ firstNonZero++;
2633
+ }
2634
+ let serialNumber = input.slice(firstNonZero);
2635
+ if (!serialNumber.length) {
2636
+ serialNumber = new Uint8Array([0x00]);
2637
+ }
2638
+ if (serialNumber[0] > 0x7f) {
2639
+ const newSerialNumber = new Uint8Array(serialNumber.length + 1);
2640
+ newSerialNumber[0] = 0x00;
2641
+ newSerialNumber.set(serialNumber, 1);
2642
+ serialNumber = newSerialNumber;
2643
+ }
2644
+ return serialNumber.buffer;
2645
+ }
2646
+ function normalizeCertificateSerialNumber(input) {
2647
+ return toPositiveIntegerOctets(pvtsutils.BufferSourceConverter.toUint8Array(pvtsutils.Convert.FromHex(input || "")));
2648
+ }
2649
+ function generateCertificateSerialNumber(input, crypto = cryptoProvider.get()) {
2650
+ const inputView = pvtsutils.BufferSourceConverter.toUint8Array(pvtsutils.Convert.FromHex(input || ""));
2651
+ const serialNumber = inputView.length && inputView.some((o) => o > 0)
2652
+ ? inputView
2653
+ : crypto.getRandomValues(new Uint8Array(16));
2654
+ return toPositiveIntegerOctets(serialNumber);
2655
+ }
2656
+ function getCertificateSerialNumber(raw) {
2657
+ let serialNumber = pvtsutils.BufferSourceConverter.toUint8Array(raw);
2658
+ if (serialNumber.length > 1 && serialNumber[0] === 0x00 && serialNumber[1] > 0x7f) {
2659
+ serialNumber = serialNumber.slice(1);
2660
+ }
2661
+ return pvtsutils.Convert.ToHex(serialNumber);
2662
+ }
2663
+
2664
+ var _X509Certificate_tbs, _X509Certificate_serialNumber, _X509Certificate_subjectName, _X509Certificate_subject, _X509Certificate_issuerName, _X509Certificate_issuer, _X509Certificate_notBefore, _X509Certificate_notAfter, _X509Certificate_signatureAlgorithm, _X509Certificate_signature, _X509Certificate_extensions, _X509Certificate_publicKey;
2665
+ class X509Certificate extends PemData {
2666
+ get publicKey() {
2667
+ if (!tslib.__classPrivateFieldGet(this, _X509Certificate_publicKey, "f")) {
2668
+ tslib.__classPrivateFieldSet(this, _X509Certificate_publicKey, new PublicKey(this.asn.tbsCertificate.subjectPublicKeyInfo, this.parseOptions), "f");
2669
+ }
2670
+ return tslib.__classPrivateFieldGet(this, _X509Certificate_publicKey, "f");
2671
+ }
2672
+ get serialNumber() {
2673
+ if (!tslib.__classPrivateFieldGet(this, _X509Certificate_serialNumber, "f")) {
2674
+ tslib.__classPrivateFieldSet(this, _X509Certificate_serialNumber, getCertificateSerialNumber(this.asn.tbsCertificate.serialNumber), "f");
2675
+ }
2676
+ return tslib.__classPrivateFieldGet(this, _X509Certificate_serialNumber, "f");
2677
+ }
2678
+ get subjectName() {
2679
+ if (!tslib.__classPrivateFieldGet(this, _X509Certificate_subjectName, "f")) {
2680
+ tslib.__classPrivateFieldSet(this, _X509Certificate_subjectName, new Name(this.asn.tbsCertificate.subject), "f");
2681
+ }
2682
+ return tslib.__classPrivateFieldGet(this, _X509Certificate_subjectName, "f");
2683
+ }
2684
+ get subject() {
2685
+ if (!tslib.__classPrivateFieldGet(this, _X509Certificate_subject, "f")) {
2686
+ tslib.__classPrivateFieldSet(this, _X509Certificate_subject, this.subjectName.toString(), "f");
2687
+ }
2688
+ return tslib.__classPrivateFieldGet(this, _X509Certificate_subject, "f");
2689
+ }
2690
+ get issuerName() {
2691
+ if (!tslib.__classPrivateFieldGet(this, _X509Certificate_issuerName, "f")) {
2692
+ tslib.__classPrivateFieldSet(this, _X509Certificate_issuerName, new Name(this.asn.tbsCertificate.issuer), "f");
2693
+ }
2694
+ return tslib.__classPrivateFieldGet(this, _X509Certificate_issuerName, "f");
2695
+ }
2696
+ get issuer() {
2697
+ if (!tslib.__classPrivateFieldGet(this, _X509Certificate_issuer, "f")) {
2698
+ tslib.__classPrivateFieldSet(this, _X509Certificate_issuer, this.issuerName.toString(), "f");
2699
+ }
2700
+ return tslib.__classPrivateFieldGet(this, _X509Certificate_issuer, "f");
2701
+ }
2702
+ get notBefore() {
2703
+ if (!tslib.__classPrivateFieldGet(this, _X509Certificate_notBefore, "f")) {
2704
+ const notBefore = this.asn.tbsCertificate.validity.notBefore.utcTime ||
2705
+ this.asn.tbsCertificate.validity.notBefore.generalTime;
2706
+ if (!notBefore) {
2707
+ throw new Error("Cannot get 'notBefore' value");
2708
+ }
2709
+ tslib.__classPrivateFieldSet(this, _X509Certificate_notBefore, notBefore, "f");
2710
+ }
2711
+ return tslib.__classPrivateFieldGet(this, _X509Certificate_notBefore, "f");
2712
+ }
2713
+ get notAfter() {
2714
+ if (!tslib.__classPrivateFieldGet(this, _X509Certificate_notAfter, "f")) {
2715
+ const notAfter = this.asn.tbsCertificate.validity.notAfter.utcTime ||
2716
+ this.asn.tbsCertificate.validity.notAfter.generalTime;
2717
+ if (!notAfter) {
2718
+ throw new Error("Cannot get 'notAfter' value");
2719
+ }
2720
+ tslib.__classPrivateFieldSet(this, _X509Certificate_notAfter, notAfter, "f");
2721
+ }
2722
+ return tslib.__classPrivateFieldGet(this, _X509Certificate_notAfter, "f");
2723
+ }
2724
+ get signatureAlgorithm() {
2725
+ if (!tslib.__classPrivateFieldGet(this, _X509Certificate_signatureAlgorithm, "f")) {
2726
+ const algProv = tsyringe.container.resolve(diAlgorithmProvider);
2727
+ tslib.__classPrivateFieldSet(this, _X509Certificate_signatureAlgorithm, algProv.toWebAlgorithm(this.asn.signatureAlgorithm), "f");
2728
+ }
2729
+ return tslib.__classPrivateFieldGet(this, _X509Certificate_signatureAlgorithm, "f");
2730
+ }
2731
+ get signature() {
2732
+ if (!tslib.__classPrivateFieldGet(this, _X509Certificate_signature, "f")) {
2733
+ tslib.__classPrivateFieldSet(this, _X509Certificate_signature, this.asn.signatureValue, "f");
2734
+ }
2735
+ return tslib.__classPrivateFieldGet(this, _X509Certificate_signature, "f");
2736
+ }
2737
+ get extensions() {
2738
+ if (!tslib.__classPrivateFieldGet(this, _X509Certificate_extensions, "f")) {
2739
+ tslib.__classPrivateFieldSet(this, _X509Certificate_extensions, [], "f");
2740
+ if (this.asn.tbsCertificate.extensions) {
2741
+ tslib.__classPrivateFieldSet(this, _X509Certificate_extensions, this.asn.tbsCertificate.extensions.map((o) => ExtensionFactory.create(asn1Schema.AsnConvert.serialize(o), this.parseOptions)), "f");
2742
+ }
2743
+ }
2744
+ return tslib.__classPrivateFieldGet(this, _X509Certificate_extensions, "f");
2745
+ }
2746
+ get tbs() {
2747
+ if (!tslib.__classPrivateFieldGet(this, _X509Certificate_tbs, "f")) {
2748
+ tslib.__classPrivateFieldSet(this, _X509Certificate_tbs, this.asn.tbsCertificateRaw || asn1Schema.AsnConvert.serialize(this.asn.tbsCertificate), "f");
2749
+ }
2750
+ return tslib.__classPrivateFieldGet(this, _X509Certificate_tbs, "f");
2751
+ }
2752
+ constructor(param, options) {
2753
+ const args = PemData.isAsnEncoded(param) ? [param, asn1X509.Certificate, options] : [param, options];
2754
+ super(args[0], args[1], args[2]);
2755
+ _X509Certificate_tbs.set(this, void 0);
2756
+ _X509Certificate_serialNumber.set(this, void 0);
2757
+ _X509Certificate_subjectName.set(this, void 0);
2758
+ _X509Certificate_subject.set(this, void 0);
2759
+ _X509Certificate_issuerName.set(this, void 0);
2760
+ _X509Certificate_issuer.set(this, void 0);
2761
+ _X509Certificate_notBefore.set(this, void 0);
2762
+ _X509Certificate_notAfter.set(this, void 0);
2763
+ _X509Certificate_signatureAlgorithm.set(this, void 0);
2764
+ _X509Certificate_signature.set(this, void 0);
2765
+ _X509Certificate_extensions.set(this, void 0);
2766
+ _X509Certificate_publicKey.set(this, void 0);
2767
+ this.tag = PemConverter.CertificateTag;
2768
+ }
2769
+ onInit(_asn) {
2770
+ }
2771
+ getExtension(type) {
2772
+ for (const ext of this.extensions) {
2773
+ if (typeof type === "string") {
2774
+ if (ext.type === type) {
2775
+ return ext;
2776
+ }
2777
+ }
2778
+ else {
2779
+ if (ext instanceof type) {
2780
+ return ext;
2781
+ }
2782
+ }
2783
+ }
2784
+ return null;
2785
+ }
2786
+ getExtensions(type) {
2787
+ return this.extensions.filter((o) => {
2788
+ if (typeof type === "string") {
2789
+ return o.type === type;
2790
+ }
2791
+ else {
2792
+ return o instanceof type;
2793
+ }
2794
+ });
2795
+ }
2796
+ async verify(params = {}, crypto = cryptoProvider.get()) {
2797
+ let keyAlgorithm;
2798
+ let publicKey;
2799
+ const paramsKey = params.publicKey;
2800
+ try {
2801
+ if (!paramsKey) {
2802
+ keyAlgorithm = {
2803
+ ...this.publicKey.algorithm,
2804
+ ...this.signatureAlgorithm,
2805
+ };
2806
+ publicKey = await this.publicKey.export(keyAlgorithm, ["verify"], crypto);
2807
+ }
2808
+ else if ("publicKey" in paramsKey) {
2809
+ keyAlgorithm = {
2810
+ ...paramsKey.publicKey.algorithm,
2811
+ ...this.signatureAlgorithm,
2812
+ };
2813
+ publicKey = await paramsKey.publicKey.export(keyAlgorithm, ["verify"], crypto);
2814
+ }
2815
+ else if (paramsKey instanceof PublicKey) {
2816
+ keyAlgorithm = {
2817
+ ...paramsKey.algorithm,
2818
+ ...this.signatureAlgorithm,
2819
+ };
2820
+ publicKey = await paramsKey.export(keyAlgorithm, ["verify"], crypto);
2821
+ }
2822
+ else if (pvtsutils.BufferSourceConverter.isBufferSource(paramsKey)) {
2823
+ const key = new PublicKey(paramsKey);
2824
+ keyAlgorithm = {
2825
+ ...key.algorithm,
2826
+ ...this.signatureAlgorithm,
2827
+ };
2828
+ publicKey = await key.export(keyAlgorithm, ["verify"], crypto);
2829
+ }
2830
+ else {
2831
+ keyAlgorithm = {
2832
+ ...paramsKey.algorithm,
2833
+ ...this.signatureAlgorithm,
2834
+ };
2835
+ publicKey = paramsKey;
2836
+ }
2837
+ }
2838
+ catch {
2839
+ return false;
2840
+ }
2841
+ const signatureFormatters = tsyringe.container
2842
+ .resolveAll(diAsnSignatureFormatter)
2843
+ .reverse();
2844
+ let signature = null;
2845
+ for (const signatureFormatter of signatureFormatters) {
2846
+ signature = signatureFormatter.toWebSignature(keyAlgorithm, this.signature);
2847
+ if (signature) {
2848
+ break;
2849
+ }
2850
+ }
2851
+ if (!signature) {
2852
+ throw Error("Cannot convert ASN.1 signature value to WebCrypto format");
2853
+ }
2854
+ const ok = await crypto.subtle.verify(this.signatureAlgorithm, publicKey, signature, this.tbs);
2855
+ if (params.signatureOnly) {
2856
+ return ok;
2857
+ }
2858
+ else {
2859
+ const date = params.date || new Date();
2860
+ const time = date.getTime();
2861
+ return ok && this.notBefore.getTime() < time && time < this.notAfter.getTime();
2862
+ }
2863
+ }
2864
+ async getThumbprint(arg1, arg2) {
2865
+ let crypto;
2866
+ let algorithm = "SHA-1";
2867
+ if (arg1) {
2868
+ if (typeof arg1 === "object" && "subtle" in arg1) {
2869
+ crypto = arg1;
2870
+ }
2871
+ else {
2872
+ algorithm = arg1;
2873
+ crypto = arg2;
2874
+ }
2875
+ }
2876
+ crypto !== null && crypto !== void 0 ? crypto : (crypto = cryptoProvider.get());
2877
+ return await crypto.subtle.digest(algorithm, this.rawData);
2878
+ }
2879
+ async isSelfSigned(crypto = cryptoProvider.get()) {
2880
+ return this.subject === this.issuer && (await this.verify({ signatureOnly: true }, crypto));
2881
+ }
2882
+ toTextObject() {
2883
+ const obj = this.toTextObjectEmpty();
2884
+ const cert = asn1Schema.AsnConvert.parse(this.rawData, asn1X509.Certificate, this.parseOptions);
2885
+ const tbs = cert.tbsCertificate;
2886
+ const data = new TextObject("", {
2887
+ Version: `${asn1X509.Version[tbs.version]} (${tbs.version})`,
2888
+ "Serial Number": tbs.serialNumber,
2889
+ "Signature Algorithm": TextConverter.serializeAlgorithm(tbs.signature),
2890
+ Issuer: this.issuer,
2891
+ Validity: new TextObject("", {
2892
+ "Not Before": tbs.validity.notBefore.getTime(),
2893
+ "Not After": tbs.validity.notAfter.getTime(),
2894
+ }),
2895
+ Subject: this.subject,
2896
+ "Subject Public Key Info": this.publicKey,
2897
+ });
2898
+ if (tbs.issuerUniqueID) {
2899
+ data["Issuer Unique ID"] = tbs.issuerUniqueID;
2900
+ }
2901
+ if (tbs.subjectUniqueID) {
2902
+ data["Subject Unique ID"] = tbs.subjectUniqueID;
2903
+ }
2904
+ if (this.extensions.length) {
2905
+ const extensions = new TextObject("");
2906
+ for (const ext of this.extensions) {
2907
+ const extObj = ext.toTextObject();
2908
+ extensions[extObj[TextObject.NAME]] = extObj;
2909
+ }
2910
+ data["Extensions"] = extensions;
2911
+ }
2912
+ obj["Data"] = data;
2913
+ obj["Signature"] = new TextObject("", {
2914
+ Algorithm: TextConverter.serializeAlgorithm(cert.signatureAlgorithm),
2915
+ "": cert.signatureValue,
2916
+ });
2917
+ return obj;
2918
+ }
2919
+ }
2920
+ _X509Certificate_tbs = new WeakMap(), _X509Certificate_serialNumber = new WeakMap(), _X509Certificate_subjectName = new WeakMap(), _X509Certificate_subject = new WeakMap(), _X509Certificate_issuerName = new WeakMap(), _X509Certificate_issuer = new WeakMap(), _X509Certificate_notBefore = new WeakMap(), _X509Certificate_notAfter = new WeakMap(), _X509Certificate_signatureAlgorithm = new WeakMap(), _X509Certificate_signature = new WeakMap(), _X509Certificate_extensions = new WeakMap(), _X509Certificate_publicKey = new WeakMap();
2921
+ X509Certificate.NAME = "Certificate";
2922
+
2923
+ var _X509Certificates_options;
2924
+ class X509Certificates extends Array {
2925
+ constructor(param, options) {
2926
+ super();
2927
+ _X509Certificates_options.set(this, void 0);
2928
+ if (PemData.isAsnEncoded(param)) {
2929
+ this.import(param, options);
2930
+ }
2931
+ else if (param instanceof X509Certificate) {
2932
+ this.push(param);
2933
+ }
2934
+ else if (Array.isArray(param)) {
2935
+ for (const item of param) {
2936
+ this.push(item);
2937
+ }
2938
+ }
2939
+ }
2940
+ export(format) {
2941
+ const signedData = new asn1Cms__namespace.SignedData();
2942
+ signedData.version = 1;
2943
+ signedData.encapContentInfo.eContentType = asn1Cms__namespace.id_data;
2944
+ signedData.encapContentInfo.eContent = new asn1Cms__namespace.EncapsulatedContent({
2945
+ single: new asn1Schema.OctetString(),
2946
+ });
2947
+ signedData.certificates = new asn1Cms__namespace.CertificateSet(this.map((o) => new asn1Cms__namespace.CertificateChoices({
2948
+ certificate: asn1Schema.AsnConvert.parse(o.rawData, asn1X509.Certificate, tslib.__classPrivateFieldGet(this, _X509Certificates_options, "f")),
2949
+ })));
2950
+ const cms = new asn1Cms__namespace.ContentInfo({
2951
+ contentType: asn1Cms__namespace.id_signedData,
2952
+ content: asn1Schema.AsnConvert.serialize(signedData),
2953
+ });
2954
+ const raw = asn1Schema.AsnConvert.serialize(cms);
2955
+ if (format === "raw") {
2956
+ return raw;
2957
+ }
2958
+ return this.toString(format);
2959
+ }
2960
+ import(data, options) {
2961
+ const raw = PemData.toArrayBuffer(data);
2962
+ const cms = asn1Schema.AsnConvert.parse(raw, asn1Cms__namespace.ContentInfo, options);
2963
+ if (cms.contentType !== asn1Cms__namespace.id_signedData) {
2964
+ throw new TypeError("Cannot parse CMS package. Incoming data is not a SignedData object.");
2965
+ }
2966
+ const signedData = asn1Schema.AsnConvert.parse(cms.content, asn1Cms__namespace.SignedData, options);
2967
+ const certificates = [];
2968
+ for (const item of signedData.certificates || []) {
2969
+ if (item.certificate) {
2970
+ certificates.push(new X509Certificate(item.certificate, options));
2971
+ }
2972
+ }
2973
+ this.clear();
2974
+ for (const certificate of certificates) {
2975
+ this.push(certificate);
2976
+ }
2977
+ tslib.__classPrivateFieldSet(this, _X509Certificates_options, options, "f");
2978
+ }
2979
+ clear() {
2980
+ while (this.pop()) {
2981
+ }
2982
+ }
2983
+ toString(format = "pem") {
2984
+ const raw = this.export("raw");
2985
+ switch (format) {
2986
+ case "pem":
2987
+ return PemConverter.encode(raw, "CMS");
2988
+ case "pem-chain":
2989
+ return this.map((o) => o.toString("pem")).join("\n");
2990
+ case "asn":
2991
+ return asn1Schema.AsnConvert.toString(raw, tslib.__classPrivateFieldGet(this, _X509Certificates_options, "f"));
2992
+ case "hex":
2993
+ return pvtsutils.Convert.ToHex(raw);
2994
+ case "base64":
2995
+ return pvtsutils.Convert.ToBase64(raw);
2996
+ case "base64url":
2997
+ return pvtsutils.Convert.ToBase64Url(raw);
2998
+ case "text":
2999
+ return TextConverter.serialize(this.toTextObject());
3000
+ default:
3001
+ throw TypeError("Argument 'format' is unsupported value");
3002
+ }
3003
+ }
3004
+ toTextObject() {
3005
+ const contentInfo = asn1Schema.AsnConvert.parse(this.export("raw"), asn1Cms__namespace.ContentInfo, tslib.__classPrivateFieldGet(this, _X509Certificates_options, "f"));
3006
+ const signedData = asn1Schema.AsnConvert.parse(contentInfo.content, asn1Cms__namespace.SignedData, tslib.__classPrivateFieldGet(this, _X509Certificates_options, "f"));
3007
+ const obj = new TextObject("X509Certificates", {
3008
+ "Content Type": OidSerializer.toString(contentInfo.contentType),
3009
+ Content: new TextObject("", {
3010
+ Version: `${asn1Cms__namespace.CMSVersion[signedData.version]} (${signedData.version})`,
3011
+ Certificates: new TextObject("", { Certificate: this.map((o) => o.toTextObject()) }),
3012
+ }),
3013
+ });
3014
+ return obj;
3015
+ }
3016
+ }
3017
+ _X509Certificates_options = new WeakMap();
3018
+
3019
+ class X509ChainBuilder {
3020
+ constructor(params = {}) {
3021
+ this.certificates = [];
3022
+ if (params.certificates) {
3023
+ this.certificates = params.certificates;
3024
+ }
3025
+ }
3026
+ async build(cert, crypto = cryptoProvider.get()) {
3027
+ const chain = new X509Certificates(cert);
3028
+ let current = cert;
3029
+ while ((current = await this.findIssuer(current, crypto))) {
3030
+ const thumbprint = await current.getThumbprint(crypto);
3031
+ for (const item of chain) {
3032
+ const thumbprint2 = await item.getThumbprint(crypto);
3033
+ if (pvtsutils.isEqual(thumbprint, thumbprint2)) {
3034
+ throw new Error("Cannot build a certificate chain. Circular dependency.");
3035
+ }
3036
+ }
3037
+ chain.push(current);
3038
+ }
3039
+ return chain;
3040
+ }
3041
+ async findIssuer(cert, crypto = cryptoProvider.get()) {
3042
+ if (!(await cert.isSelfSigned(crypto))) {
3043
+ const akiExt = cert.getExtension(asn1X509__namespace.id_ce_authorityKeyIdentifier);
3044
+ for (const item of this.certificates) {
3045
+ if (item.subject !== cert.issuer) {
3046
+ continue;
3047
+ }
3048
+ if (akiExt) {
3049
+ if (akiExt.keyId) {
3050
+ const skiExt = item.getExtension(asn1X509__namespace.id_ce_subjectKeyIdentifier);
3051
+ if (skiExt && skiExt.keyId !== akiExt.keyId) {
3052
+ continue;
3053
+ }
3054
+ }
3055
+ else if (akiExt.certId) {
3056
+ const sanExt = item.getExtension(asn1X509__namespace.id_ce_subjectAltName);
3057
+ if (sanExt &&
3058
+ !(akiExt.certId.serialNumber === item.serialNumber &&
3059
+ pvtsutils.isEqual(asn1Schema.AsnConvert.serialize(akiExt.certId.name), asn1Schema.AsnConvert.serialize(sanExt)))) {
3060
+ continue;
3061
+ }
3062
+ }
3063
+ }
3064
+ try {
3065
+ const algorithm = {
3066
+ ...item.publicKey.algorithm,
3067
+ ...cert.signatureAlgorithm,
3068
+ };
3069
+ const publicKey = await item.publicKey.export(algorithm, ["verify"], crypto);
3070
+ const ok = await cert.verify({
3071
+ publicKey,
3072
+ signatureOnly: true,
3073
+ }, crypto);
3074
+ if (!ok) {
3075
+ continue;
3076
+ }
3077
+ }
3078
+ catch {
3079
+ continue;
3080
+ }
3081
+ return item;
3082
+ }
3083
+ }
3084
+ return null;
3085
+ }
3086
+ }
3087
+
3088
+ class X509CertificateGenerator {
3089
+ static async createSelfSigned(params, crypto = cryptoProvider.get()) {
3090
+ if (!params.keys.privateKey) {
3091
+ throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");
3092
+ }
3093
+ if (!params.keys.publicKey) {
3094
+ throw new Error("Bad field 'keys' in 'params' argument. 'publicKey' is empty");
3095
+ }
3096
+ return this.create({
3097
+ serialNumber: params.serialNumber,
3098
+ subject: params.name,
3099
+ issuer: params.name,
3100
+ notBefore: params.notBefore,
3101
+ notAfter: params.notAfter,
3102
+ publicKey: params.keys.publicKey,
3103
+ signingKey: params.keys.privateKey,
3104
+ signingAlgorithm: params.signingAlgorithm,
3105
+ extensions: params.extensions,
3106
+ }, crypto);
3107
+ }
3108
+ static async create(params, crypto = cryptoProvider.get()) {
3109
+ var _a;
3110
+ let spki;
3111
+ if (params.publicKey instanceof PublicKey) {
3112
+ spki = params.publicKey.rawData;
3113
+ }
3114
+ else if ("publicKey" in params.publicKey) {
3115
+ spki = params.publicKey.publicKey.rawData;
3116
+ }
3117
+ else if (pvtsutils.BufferSourceConverter.isBufferSource(params.publicKey)) {
3118
+ spki = params.publicKey;
3119
+ }
3120
+ else {
3121
+ spki = await crypto.subtle.exportKey("spki", params.publicKey);
3122
+ }
3123
+ const serialNumber = generateCertificateSerialNumber(params.serialNumber, crypto);
3124
+ const notBefore = params.notBefore || new Date();
3125
+ const notAfter = params.notAfter || new Date(notBefore.getTime() + 31536000000);
3126
+ const asnX509 = new asn1X509__namespace.Certificate({
3127
+ tbsCertificate: new asn1X509__namespace.TBSCertificate({
3128
+ version: asn1X509__namespace.Version.v3,
3129
+ serialNumber,
3130
+ validity: new asn1X509__namespace.Validity({
3131
+ notBefore,
3132
+ notAfter,
3133
+ }),
3134
+ extensions: new asn1X509__namespace.Extensions(((_a = params.extensions) === null || _a === void 0 ? void 0 : _a.map((o) => asn1Schema.AsnConvert.parse(o.rawData, asn1X509__namespace.Extension))) || []),
3135
+ subjectPublicKeyInfo: asn1Schema.AsnConvert.parse(spki, asn1X509__namespace.SubjectPublicKeyInfo),
3136
+ }),
3137
+ });
3138
+ if (params.subject) {
3139
+ const name = params.subject instanceof Name ? params.subject : new Name(params.subject);
3140
+ asnX509.tbsCertificate.subject = asn1Schema.AsnConvert.parse(name.toArrayBuffer(), asn1X509__namespace.Name);
3141
+ }
3142
+ if (params.issuer) {
3143
+ const name = params.issuer instanceof Name ? params.issuer : new Name(params.issuer);
3144
+ asnX509.tbsCertificate.issuer = asn1Schema.AsnConvert.parse(name.toArrayBuffer(), asn1X509__namespace.Name);
3145
+ }
3146
+ const defaultSigningAlgorithm = { hash: "SHA-256" };
3147
+ const signatureAlgorithm = "signingKey" in params
3148
+ ? {
3149
+ ...defaultSigningAlgorithm,
3150
+ ...params.signingAlgorithm,
3151
+ ...params.signingKey.algorithm,
3152
+ }
3153
+ : {
3154
+ ...defaultSigningAlgorithm,
3155
+ ...params.signingAlgorithm,
3156
+ };
3157
+ const algProv = tsyringe.container.resolve(diAlgorithmProvider);
3158
+ asnX509.tbsCertificate.signature = asnX509.signatureAlgorithm =
3159
+ algProv.toAsnAlgorithm(signatureAlgorithm);
3160
+ const tbs = asn1Schema.AsnConvert.serialize(asnX509.tbsCertificate);
3161
+ const signatureValue = "signingKey" in params
3162
+ ?
3163
+ await crypto.subtle.sign(signatureAlgorithm, params.signingKey, tbs)
3164
+ :
3165
+ params.signature;
3166
+ const signatureFormatters = tsyringe.container
3167
+ .resolveAll(diAsnSignatureFormatter)
3168
+ .reverse();
3169
+ let asnSignature = null;
3170
+ for (const signatureFormatter of signatureFormatters) {
3171
+ asnSignature = signatureFormatter.toAsnSignature(signatureAlgorithm, signatureValue);
3172
+ if (asnSignature) {
3173
+ break;
3174
+ }
3175
+ }
3176
+ if (!asnSignature) {
3177
+ throw Error("Cannot convert ASN.1 signature value to WebCrypto format");
3178
+ }
3179
+ asnX509.signatureValue = asnSignature;
3180
+ return new X509Certificate(asn1Schema.AsnConvert.serialize(asnX509));
3181
+ }
3182
+ }
3183
+
3184
+ var _X509CrlEntry_serialNumber, _X509CrlEntry_revocationDate, _X509CrlEntry_reason, _X509CrlEntry_invalidity, _X509CrlEntry_extensions;
3185
+ exports.X509CrlReason = void 0;
3186
+ (function (X509CrlReason) {
3187
+ X509CrlReason[X509CrlReason["unspecified"] = 0] = "unspecified";
3188
+ X509CrlReason[X509CrlReason["keyCompromise"] = 1] = "keyCompromise";
3189
+ X509CrlReason[X509CrlReason["cACompromise"] = 2] = "cACompromise";
3190
+ X509CrlReason[X509CrlReason["affiliationChanged"] = 3] = "affiliationChanged";
3191
+ X509CrlReason[X509CrlReason["superseded"] = 4] = "superseded";
3192
+ X509CrlReason[X509CrlReason["cessationOfOperation"] = 5] = "cessationOfOperation";
3193
+ X509CrlReason[X509CrlReason["certificateHold"] = 6] = "certificateHold";
3194
+ X509CrlReason[X509CrlReason["removeFromCRL"] = 8] = "removeFromCRL";
3195
+ X509CrlReason[X509CrlReason["privilegeWithdrawn"] = 9] = "privilegeWithdrawn";
3196
+ X509CrlReason[X509CrlReason["aACompromise"] = 10] = "aACompromise";
3197
+ })(exports.X509CrlReason || (exports.X509CrlReason = {}));
3198
+ class X509CrlEntry extends AsnData {
3199
+ get serialNumber() {
3200
+ if (!tslib.__classPrivateFieldGet(this, _X509CrlEntry_serialNumber, "f")) {
3201
+ tslib.__classPrivateFieldSet(this, _X509CrlEntry_serialNumber, getCertificateSerialNumber(this.asn.userCertificate), "f");
3202
+ }
3203
+ return tslib.__classPrivateFieldGet(this, _X509CrlEntry_serialNumber, "f");
3204
+ }
3205
+ get revocationDate() {
3206
+ if (!tslib.__classPrivateFieldGet(this, _X509CrlEntry_revocationDate, "f")) {
3207
+ tslib.__classPrivateFieldSet(this, _X509CrlEntry_revocationDate, this.asn.revocationDate.getTime(), "f");
3208
+ }
3209
+ return tslib.__classPrivateFieldGet(this, _X509CrlEntry_revocationDate, "f");
3210
+ }
3211
+ get reason() {
3212
+ if (tslib.__classPrivateFieldGet(this, _X509CrlEntry_reason, "f") === undefined) {
3213
+ void this.extensions;
3214
+ }
3215
+ return tslib.__classPrivateFieldGet(this, _X509CrlEntry_reason, "f");
3216
+ }
3217
+ get invalidity() {
3218
+ if (tslib.__classPrivateFieldGet(this, _X509CrlEntry_invalidity, "f") === undefined) {
3219
+ void this.extensions;
3220
+ }
3221
+ return tslib.__classPrivateFieldGet(this, _X509CrlEntry_invalidity, "f");
3222
+ }
3223
+ get extensions() {
3224
+ if (!tslib.__classPrivateFieldGet(this, _X509CrlEntry_extensions, "f")) {
3225
+ tslib.__classPrivateFieldSet(this, _X509CrlEntry_extensions, [], "f");
3226
+ if (this.asn.crlEntryExtensions) {
3227
+ tslib.__classPrivateFieldSet(this, _X509CrlEntry_extensions, this.asn.crlEntryExtensions.map((o) => {
3228
+ const extension = ExtensionFactory.create(asn1Schema.AsnConvert.serialize(o), this.parseOptions);
3229
+ switch (extension.type) {
3230
+ case asn1X509.id_ce_cRLReasons:
3231
+ if (tslib.__classPrivateFieldGet(this, _X509CrlEntry_reason, "f") === undefined) {
3232
+ tslib.__classPrivateFieldSet(this, _X509CrlEntry_reason, asn1Schema.AsnConvert.parse(extension.value, asn1X509.CRLReason, this.parseOptions)
3233
+ .reason, "f");
3234
+ }
3235
+ break;
3236
+ case asn1X509.id_ce_invalidityDate:
3237
+ if (tslib.__classPrivateFieldGet(this, _X509CrlEntry_invalidity, "f") === undefined) {
3238
+ tslib.__classPrivateFieldSet(this, _X509CrlEntry_invalidity, asn1Schema.AsnConvert.parse(extension.value, asn1X509.InvalidityDate, this.parseOptions).value, "f");
3239
+ }
3240
+ break;
3241
+ }
3242
+ return extension;
3243
+ }), "f");
3244
+ }
3245
+ }
3246
+ return tslib.__classPrivateFieldGet(this, _X509CrlEntry_extensions, "f");
3247
+ }
3248
+ constructor(...args) {
3249
+ let raw;
3250
+ let options;
3251
+ if (pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
3252
+ raw = pvtsutils.BufferSourceConverter.toArrayBuffer(args[0]);
3253
+ options = args[1];
3254
+ }
3255
+ else if (typeof args[0] === "string") {
3256
+ raw = asn1Schema.AsnConvert.serialize(new asn1X509.RevokedCertificate({
3257
+ userCertificate: normalizeCertificateSerialNumber(args[0]),
3258
+ revocationDate: new asn1X509.Time(args[1]),
3259
+ crlEntryExtensions: args[2],
3260
+ }));
3261
+ }
3262
+ else if (args[0] instanceof asn1X509.RevokedCertificate) {
3263
+ raw = args[0];
3264
+ options = args[1];
3265
+ }
3266
+ if (!raw) {
3267
+ throw new TypeError("Cannot create X509CrlEntry instance. Wrong constructor arguments.");
3268
+ }
3269
+ const superArgs = raw instanceof asn1X509.RevokedCertificate ? [raw, options] : [raw, asn1X509.RevokedCertificate, options];
3270
+ super(superArgs[0], superArgs[1], superArgs[2]);
3271
+ _X509CrlEntry_serialNumber.set(this, void 0);
3272
+ _X509CrlEntry_revocationDate.set(this, void 0);
3273
+ _X509CrlEntry_reason.set(this, void 0);
3274
+ _X509CrlEntry_invalidity.set(this, void 0);
3275
+ _X509CrlEntry_extensions.set(this, void 0);
3276
+ }
3277
+ onInit(_asn) {
3278
+ }
3279
+ }
3280
+ _X509CrlEntry_serialNumber = new WeakMap(), _X509CrlEntry_revocationDate = new WeakMap(), _X509CrlEntry_reason = new WeakMap(), _X509CrlEntry_invalidity = new WeakMap(), _X509CrlEntry_extensions = new WeakMap();
3281
+
3282
+ var _X509Crl_tbs, _X509Crl_signatureAlgorithm, _X509Crl_issuerName, _X509Crl_thisUpdate, _X509Crl_nextUpdate, _X509Crl_entries, _X509Crl_extensions;
3283
+ class X509Crl extends PemData {
3284
+ get version() {
3285
+ return this.asn.tbsCertList.version;
3286
+ }
3287
+ get signatureAlgorithm() {
3288
+ if (!tslib.__classPrivateFieldGet(this, _X509Crl_signatureAlgorithm, "f")) {
3289
+ const algProv = tsyringe.container.resolve(diAlgorithmProvider);
3290
+ tslib.__classPrivateFieldSet(this, _X509Crl_signatureAlgorithm, algProv.toWebAlgorithm(this.asn.signatureAlgorithm), "f");
3291
+ }
3292
+ return tslib.__classPrivateFieldGet(this, _X509Crl_signatureAlgorithm, "f");
3293
+ }
3294
+ get signature() {
3295
+ return this.asn.signature;
3296
+ }
3297
+ get issuer() {
3298
+ return this.issuerName.toString();
3299
+ }
3300
+ get issuerName() {
3301
+ if (!tslib.__classPrivateFieldGet(this, _X509Crl_issuerName, "f")) {
3302
+ tslib.__classPrivateFieldSet(this, _X509Crl_issuerName, new Name(this.asn.tbsCertList.issuer), "f");
3303
+ }
3304
+ return tslib.__classPrivateFieldGet(this, _X509Crl_issuerName, "f");
3305
+ }
3306
+ get thisUpdate() {
3307
+ if (!tslib.__classPrivateFieldGet(this, _X509Crl_thisUpdate, "f")) {
3308
+ const thisUpdate = this.asn.tbsCertList.thisUpdate.getTime();
3309
+ if (!thisUpdate) {
3310
+ throw new Error("Cannot get 'thisUpdate' value");
3311
+ }
3312
+ tslib.__classPrivateFieldSet(this, _X509Crl_thisUpdate, thisUpdate, "f");
3313
+ }
3314
+ return tslib.__classPrivateFieldGet(this, _X509Crl_thisUpdate, "f");
3315
+ }
3316
+ get nextUpdate() {
3317
+ var _a;
3318
+ if (tslib.__classPrivateFieldGet(this, _X509Crl_nextUpdate, "f") === undefined) {
3319
+ tslib.__classPrivateFieldSet(this, _X509Crl_nextUpdate, ((_a = this.asn.tbsCertList.nextUpdate) === null || _a === void 0 ? void 0 : _a.getTime()) || undefined, "f");
3320
+ }
3321
+ return tslib.__classPrivateFieldGet(this, _X509Crl_nextUpdate, "f");
3322
+ }
3323
+ get entries() {
3324
+ var _a;
3325
+ if (!tslib.__classPrivateFieldGet(this, _X509Crl_entries, "f")) {
3326
+ tslib.__classPrivateFieldSet(this, _X509Crl_entries, ((_a = this.asn.tbsCertList.revokedCertificates) === null || _a === void 0 ? void 0 : _a.map((o) => new X509CrlEntry(o, this.parseOptions))) || [], "f");
3327
+ }
3328
+ return tslib.__classPrivateFieldGet(this, _X509Crl_entries, "f");
3329
+ }
3330
+ get extensions() {
3331
+ if (!tslib.__classPrivateFieldGet(this, _X509Crl_extensions, "f")) {
3332
+ tslib.__classPrivateFieldSet(this, _X509Crl_extensions, [], "f");
3333
+ if (this.asn.tbsCertList.crlExtensions) {
3334
+ tslib.__classPrivateFieldSet(this, _X509Crl_extensions, this.asn.tbsCertList.crlExtensions.map((o) => ExtensionFactory.create(asn1Schema.AsnConvert.serialize(o), this.parseOptions)), "f");
3335
+ }
3336
+ }
3337
+ return tslib.__classPrivateFieldGet(this, _X509Crl_extensions, "f");
3338
+ }
3339
+ get tbs() {
3340
+ if (!tslib.__classPrivateFieldGet(this, _X509Crl_tbs, "f")) {
3341
+ tslib.__classPrivateFieldSet(this, _X509Crl_tbs, this.asn.tbsCertListRaw || asn1Schema.AsnConvert.serialize(this.asn.tbsCertList), "f");
3342
+ }
3343
+ return tslib.__classPrivateFieldGet(this, _X509Crl_tbs, "f");
3344
+ }
3345
+ get tbsCertListSignatureAlgorithm() {
3346
+ return this.asn.tbsCertList.signature;
3347
+ }
3348
+ get certListSignatureAlgorithm() {
3349
+ return this.asn.signatureAlgorithm;
3350
+ }
3351
+ constructor(param, options) {
3352
+ const args = PemData.isAsnEncoded(param) ? [param, asn1X509.CertificateList, options] : [param, options];
3353
+ super(args[0], args[1], args[2]);
3354
+ this.tag = PemConverter.CrlTag;
3355
+ _X509Crl_tbs.set(this, void 0);
3356
+ _X509Crl_signatureAlgorithm.set(this, void 0);
3357
+ _X509Crl_issuerName.set(this, void 0);
3358
+ _X509Crl_thisUpdate.set(this, void 0);
3359
+ _X509Crl_nextUpdate.set(this, void 0);
3360
+ _X509Crl_entries.set(this, void 0);
3361
+ _X509Crl_extensions.set(this, void 0);
3362
+ }
3363
+ onInit(_asn) {
3364
+ }
3365
+ getExtension(type) {
3366
+ for (const ext of this.extensions) {
3367
+ if (typeof type === "string") {
3368
+ if (ext.type === type) {
3369
+ return ext;
3370
+ }
3371
+ }
3372
+ else {
3373
+ if (ext instanceof type) {
3374
+ return ext;
3375
+ }
3376
+ }
3377
+ }
3378
+ return null;
3379
+ }
3380
+ getExtensions(type) {
3381
+ return this.extensions.filter((o) => {
3382
+ if (typeof type === "string") {
3383
+ return o.type === type;
3384
+ }
3385
+ else {
3386
+ return o instanceof type;
3387
+ }
3388
+ });
3389
+ }
3390
+ async verify(params, crypto = cryptoProvider.get()) {
3391
+ if (!this.certListSignatureAlgorithm.isEqual(this.tbsCertListSignatureAlgorithm)) {
3392
+ throw new Error("algorithm identifier in the sequence tbsCertList and CertificateList mismatch");
3393
+ }
3394
+ let keyAlgorithm;
3395
+ let publicKey;
3396
+ const paramsKey = params.publicKey;
3397
+ try {
3398
+ if (paramsKey instanceof X509Certificate) {
3399
+ keyAlgorithm = {
3400
+ ...paramsKey.publicKey.algorithm,
3401
+ ...paramsKey.signatureAlgorithm,
3402
+ };
3403
+ publicKey = await paramsKey.publicKey.export(keyAlgorithm, ["verify"]);
3404
+ }
3405
+ else if (paramsKey instanceof PublicKey) {
3406
+ keyAlgorithm = {
3407
+ ...paramsKey.algorithm,
3408
+ ...this.signatureAlgorithm,
3409
+ };
3410
+ publicKey = await paramsKey.export(keyAlgorithm, ["verify"]);
3411
+ }
3412
+ else {
3413
+ keyAlgorithm = {
3414
+ ...paramsKey.algorithm,
3415
+ ...this.signatureAlgorithm,
3416
+ };
3417
+ publicKey = paramsKey;
3418
+ }
3419
+ }
3420
+ catch {
3421
+ return false;
3422
+ }
3423
+ const signatureFormatters = tsyringe.container
3424
+ .resolveAll(diAsnSignatureFormatter)
3425
+ .reverse();
3426
+ let signature = null;
3427
+ for (const signatureFormatter of signatureFormatters) {
3428
+ signature = signatureFormatter.toWebSignature(keyAlgorithm, this.signature);
3429
+ if (signature) {
3430
+ break;
3431
+ }
3432
+ }
3433
+ if (!signature) {
3434
+ throw Error("Cannot convert ASN.1 signature value to WebCrypto format");
3435
+ }
3436
+ return await crypto.subtle.verify(this.signatureAlgorithm, publicKey, signature, this.tbs);
3437
+ }
3438
+ async getThumbprint(arg1, arg2) {
3439
+ let crypto;
3440
+ let algorithm = "SHA-1";
3441
+ if (arg1) {
3442
+ if (typeof arg1 === "object" && "subtle" in arg1) {
3443
+ crypto = arg1;
3444
+ }
3445
+ else {
3446
+ algorithm = arg1;
3447
+ crypto = arg2;
3448
+ }
3449
+ }
3450
+ crypto !== null && crypto !== void 0 ? crypto : (crypto = cryptoProvider.get());
3451
+ return await crypto.subtle.digest(algorithm, this.rawData);
3452
+ }
3453
+ findRevoked(certOrSerialNumber) {
3454
+ const serialNumber = typeof certOrSerialNumber === "string" ? certOrSerialNumber : certOrSerialNumber.serialNumber;
3455
+ const serialBuffer = normalizeCertificateSerialNumber(serialNumber);
3456
+ for (const revoked of this.asn.tbsCertList.revokedCertificates || []) {
3457
+ if (pvtsutils.BufferSourceConverter.isEqual(revoked.userCertificate, serialBuffer)) {
3458
+ return new X509CrlEntry(asn1Schema.AsnConvert.serialize(revoked), this.parseOptions);
3459
+ }
3460
+ }
3461
+ return null;
3462
+ }
3463
+ }
3464
+ _X509Crl_tbs = new WeakMap(), _X509Crl_signatureAlgorithm = new WeakMap(), _X509Crl_issuerName = new WeakMap(), _X509Crl_thisUpdate = new WeakMap(), _X509Crl_nextUpdate = new WeakMap(), _X509Crl_entries = new WeakMap(), _X509Crl_extensions = new WeakMap();
3465
+
3466
+ class X509CrlGenerator {
3467
+ static async create(params, crypto = cryptoProvider.get()) {
3468
+ var _a;
3469
+ const name = params.issuer instanceof Name ? params.issuer : new Name(params.issuer);
3470
+ const asnX509Crl = new asn1X509__namespace.CertificateList({
3471
+ tbsCertList: new asn1X509__namespace.TBSCertList({
3472
+ version: asn1X509__namespace.Version.v2,
3473
+ issuer: asn1Schema.AsnConvert.parse(name.toArrayBuffer(), asn1X509__namespace.Name),
3474
+ thisUpdate: new asn1X509.Time(params.thisUpdate || new Date()),
3475
+ }),
3476
+ });
3477
+ if (params.nextUpdate) {
3478
+ asnX509Crl.tbsCertList.nextUpdate = new asn1X509.Time(params.nextUpdate);
3479
+ }
3480
+ if (params.extensions && params.extensions.length) {
3481
+ asnX509Crl.tbsCertList.crlExtensions = new asn1X509__namespace.Extensions(params.extensions.map((o) => asn1Schema.AsnConvert.parse(o.rawData, asn1X509__namespace.Extension)) || []);
3482
+ }
3483
+ if (params.entries && params.entries.length) {
3484
+ asnX509Crl.tbsCertList.revokedCertificates = [];
3485
+ for (const entry of params.entries) {
3486
+ const userCertificate = normalizeCertificateSerialNumber(entry.serialNumber);
3487
+ const index = asnX509Crl.tbsCertList.revokedCertificates.findIndex((cert) => pvtsutils.isEqual(cert.userCertificate, userCertificate));
3488
+ if (index > -1) {
3489
+ throw new Error(`Certificate serial number ${entry.serialNumber} already exists in tbsCertList`);
3490
+ }
3491
+ const revokedCert = new asn1X509.RevokedCertificate({
3492
+ userCertificate: userCertificate,
3493
+ revocationDate: new asn1X509.Time(entry.revocationDate || new Date()),
3494
+ });
3495
+ if ("extensions" in entry && ((_a = entry.extensions) === null || _a === void 0 ? void 0 : _a.length)) {
3496
+ revokedCert.crlEntryExtensions = entry.extensions.map((o) => asn1Schema.AsnConvert.parse(o.rawData, asn1X509__namespace.Extension));
3497
+ }
3498
+ else {
3499
+ revokedCert.crlEntryExtensions = [];
3500
+ }
3501
+ if (!(entry instanceof X509CrlEntry)) {
3502
+ if (entry.reason) {
3503
+ revokedCert.crlEntryExtensions.push(new asn1X509__namespace.Extension({
3504
+ extnID: asn1X509__namespace.id_ce_cRLReasons,
3505
+ critical: false,
3506
+ extnValue: new asn1Schema.OctetString(asn1Schema.AsnConvert.serialize(new asn1X509__namespace.CRLReason(entry.reason))),
3507
+ }));
3508
+ }
3509
+ if (entry.invalidity) {
3510
+ revokedCert.crlEntryExtensions.push(new asn1X509__namespace.Extension({
3511
+ extnID: asn1X509__namespace.id_ce_invalidityDate,
3512
+ critical: false,
3513
+ extnValue: new asn1Schema.OctetString(asn1Schema.AsnConvert.serialize(new asn1X509__namespace.InvalidityDate(entry.invalidity))),
3514
+ }));
3515
+ }
3516
+ if (entry.issuer) {
3517
+ const name = params.issuer instanceof Name ? params.issuer : new Name(params.issuer);
3518
+ revokedCert.crlEntryExtensions.push(new asn1X509__namespace.Extension({
3519
+ extnID: asn1X509__namespace.id_ce_certificateIssuer,
3520
+ critical: false,
3521
+ extnValue: new asn1Schema.OctetString(asn1Schema.AsnConvert.serialize(asn1Schema.AsnConvert.parse(name.toArrayBuffer(), asn1X509__namespace.Name))),
3522
+ }));
3523
+ }
3524
+ }
3525
+ asnX509Crl.tbsCertList.revokedCertificates.push(revokedCert);
3526
+ }
3527
+ }
3528
+ const signingAlgorithm = {
3529
+ ...params.signingAlgorithm,
3530
+ ...params.signingKey.algorithm,
3531
+ };
3532
+ const algProv = tsyringe.container.resolve(diAlgorithmProvider);
3533
+ asnX509Crl.tbsCertList.signature = asnX509Crl.signatureAlgorithm =
3534
+ algProv.toAsnAlgorithm(signingAlgorithm);
3535
+ const tbs = asn1Schema.AsnConvert.serialize(asnX509Crl.tbsCertList);
3536
+ const signature = await crypto.subtle.sign(signingAlgorithm, params.signingKey, tbs);
3537
+ const signatureFormatters = tsyringe.container
3538
+ .resolveAll(diAsnSignatureFormatter)
3539
+ .reverse();
3540
+ let asnSignature = null;
3541
+ for (const signatureFormatter of signatureFormatters) {
3542
+ asnSignature = signatureFormatter.toAsnSignature(signingAlgorithm, signature);
3543
+ if (asnSignature) {
3544
+ break;
3545
+ }
3546
+ }
3547
+ if (!asnSignature) {
3548
+ throw Error("Cannot convert ASN.1 signature value to WebCrypto format");
3549
+ }
3550
+ asnX509Crl.signature = asnSignature;
3551
+ return new X509Crl(asn1Schema.AsnConvert.serialize(asnX509Crl));
3552
+ }
3553
+ }
3554
+
3555
+ ExtensionFactory.register(asn1X509__namespace.id_ce_basicConstraints, BasicConstraintsExtension);
3556
+ ExtensionFactory.register(asn1X509__namespace.id_ce_extKeyUsage, ExtendedKeyUsageExtension);
3557
+ ExtensionFactory.register(asn1X509__namespace.id_ce_keyUsage, KeyUsagesExtension);
3558
+ ExtensionFactory.register(asn1X509__namespace.id_ce_subjectKeyIdentifier, SubjectKeyIdentifierExtension);
3559
+ ExtensionFactory.register(asn1X509__namespace.id_ce_authorityKeyIdentifier, AuthorityKeyIdentifierExtension);
3560
+ ExtensionFactory.register(asn1X509__namespace.id_ce_subjectAltName, SubjectAlternativeNameExtension);
3561
+ ExtensionFactory.register(asn1X509__namespace.id_ce_cRLDistributionPoints, CRLDistributionPointsExtension);
3562
+ ExtensionFactory.register(asn1X509__namespace.id_pe_authorityInfoAccess, AuthorityInfoAccessExtension);
3563
+ ExtensionFactory.register(asn1X509__namespace.id_ce_issuerAltName, IssuerAlternativeNameExtension);
3564
+ AttributeFactory.register(asnPkcs9__namespace.id_pkcs9_at_challengePassword, ChallengePasswordAttribute);
3565
+ AttributeFactory.register(asnPkcs9__namespace.id_pkcs9_at_extensionRequest, ExtensionsAttribute);
3566
+ tsyringe.container.registerSingleton(diAsnSignatureFormatter, AsnDefaultSignatureFormatter);
3567
+ tsyringe.container.registerSingleton(diAsnSignatureFormatter, AsnEcSignatureFormatter);
3568
+ AsnEcSignatureFormatter.namedCurveSize.set("P-256", 32);
3569
+ AsnEcSignatureFormatter.namedCurveSize.set("K-256", 32);
3570
+ AsnEcSignatureFormatter.namedCurveSize.set("P-384", 48);
3571
+ AsnEcSignatureFormatter.namedCurveSize.set("P-521", 66);
3572
+
3573
+ exports.AlgorithmProvider = AlgorithmProvider;
3574
+ exports.AsnData = AsnData;
3575
+ exports.AsnDefaultSignatureFormatter = AsnDefaultSignatureFormatter;
3576
+ exports.AsnEcSignatureFormatter = AsnEcSignatureFormatter;
3577
+ exports.Attribute = Attribute;
3578
+ exports.AttributeFactory = AttributeFactory;
3579
+ exports.AuthorityInfoAccessExtension = AuthorityInfoAccessExtension;
3580
+ exports.AuthorityKeyIdentifierExtension = AuthorityKeyIdentifierExtension;
3581
+ exports.BasicConstraintsExtension = BasicConstraintsExtension;
3582
+ exports.CRLDistributionPointsExtension = CRLDistributionPointsExtension;
3583
+ exports.CertificatePolicyExtension = CertificatePolicyExtension;
3584
+ exports.ChallengePasswordAttribute = ChallengePasswordAttribute;
3585
+ exports.CryptoProvider = CryptoProvider;
3586
+ exports.DN = DN;
3587
+ exports.DNS = DNS;
3588
+ exports.DefaultAlgorithmSerializer = DefaultAlgorithmSerializer;
3589
+ exports.EMAIL = EMAIL;
3590
+ exports.ExtendedKeyUsageExtension = ExtendedKeyUsageExtension;
3591
+ exports.Extension = Extension;
3592
+ exports.ExtensionFactory = ExtensionFactory;
3593
+ exports.ExtensionsAttribute = ExtensionsAttribute;
3594
+ exports.GUID = GUID;
3595
+ exports.GeneralName = GeneralName;
3596
+ exports.GeneralNames = GeneralNames;
3597
+ exports.IP = IP;
3598
+ exports.IssuerAlternativeNameExtension = IssuerAlternativeNameExtension;
3599
+ exports.KeyUsagesExtension = KeyUsagesExtension;
3600
+ exports.Name = Name;
3601
+ exports.NameIdentifier = NameIdentifier;
3602
+ exports.OidSerializer = OidSerializer;
3603
+ exports.PemConverter = PemConverter;
3604
+ exports.PemData = PemData;
3605
+ exports.Pkcs10CertificateRequest = Pkcs10CertificateRequest;
3606
+ exports.Pkcs10CertificateRequestGenerator = Pkcs10CertificateRequestGenerator;
3607
+ exports.PublicKey = PublicKey;
3608
+ exports.REGISTERED_ID = REGISTERED_ID;
3609
+ exports.SubjectAlternativeNameExtension = SubjectAlternativeNameExtension;
3610
+ exports.SubjectKeyIdentifierExtension = SubjectKeyIdentifierExtension;
3611
+ exports.TextConverter = TextConverter;
3612
+ exports.TextObject = TextObject;
3613
+ exports.UPN = UPN;
3614
+ exports.URL = URL;
3615
+ exports.X509Certificate = X509Certificate;
3616
+ exports.X509CertificateGenerator = X509CertificateGenerator;
3617
+ exports.X509Certificates = X509Certificates;
3618
+ exports.X509ChainBuilder = X509ChainBuilder;
3619
+ exports.X509Crl = X509Crl;
3620
+ exports.X509CrlEntry = X509CrlEntry;
3621
+ exports.X509CrlGenerator = X509CrlGenerator;
3622
+ exports.cryptoProvider = cryptoProvider;
3623
+ exports.diAlgorithm = diAlgorithm;
3624
+ exports.diAlgorithmProvider = diAlgorithmProvider;
3625
+ exports.diAsnSignatureFormatter = diAsnSignatureFormatter;
3626
+ exports.idEd25519 = idEd25519;
3627
+ exports.idEd448 = idEd448;
3628
+ exports.idX25519 = idX25519;
3629
+ exports.idX448 = idX448;